Merge branch 'dev' into card-creator

This commit is contained in:
waifu 2025-07-02 19:15:07 -07:00
commit 928c1dfc5c
63 changed files with 3511 additions and 775 deletions

19
.gitignore vendored
View file

@ -1,3 +1,19 @@
# Kemoverse - a gacha-style bot for the Fediverse.
# Copyright © 2025 Waifu, VD15 and contributors.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/
*.py[cod] *.py[cod]
@ -185,5 +201,6 @@ cython_debug/
gacha_game*.db gacha_game*.db
gacha_game*.db.* gacha_game*.db.*
config*.ini config*.ini
run.sh
.idea .idea

1
.tool-versions Normal file
View file

@ -0,0 +1 @@
nodejs 23.4.0

722
LICENSE

File diff suppressed because it is too large Load diff

82
bot/add_card.py Normal file
View file

@ -0,0 +1,82 @@
# Kemoverse - a gacha-style bot for the Fediverse.
# Copyright © 2025 Waifu, Moon, VD15 and contributors.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
import requests
import config
from fediverse_factory import get_fediverse_service
import db_utils
def add_card(name: str, rarity: int, image_url: str, power: int, charm: int, wit: int) -> tuple[int, str]:
"""
Adds a card to the database, uploading the image from a public URL to the Fediverse instance.
Args:
name (str): Card name.
rarity (int): Card rarity (e.g., 1-5).
image_url (str): Public URL of the image from the post.
power (int): Card power value.
charm (int): Card charm value.
wit (int): Card wit value.
Returns:
tuple[int, str]: Card ID and file_id.
Raises:
ValueError: If inputs are invalid.
RuntimeError: If image download/upload or database operation fails.
"""
stripped_name = name.strip()
# Validate inputs
if not stripped_name:
raise ValueError('Card name cannot be empty.')
if rarity < 1:
raise ValueError('Rarity must be a positive integer.')
if rarity not in config.RARITY_TO_WEIGHT.keys():
raise ValueError(f'Invalid rarity: {rarity}')
if not image_url:
raise ValueError('Image URL must be provided.')
if power < 0 or charm < 0 or wit < 0:
raise ValueError('Power, charm, and wit must be non-negative integers.')
try:
# Download image
response = requests.get(image_url, stream=True, timeout=30)
if response.status_code != 200:
raise RuntimeError(f"Failed to download image from {image_url}")
# Upload to Fediverse instance
fediverse_service = get_fediverse_service(config.INSTANCE_TYPE)
try:
uploaded_file = fediverse_service.upload_file(response.raw)
file_id = uploaded_file.id
except RuntimeError as e:
raise RuntimeError(f"Failed to upload image: {e}") from e
# Insert into database using db_utils function
card_id = db_utils.insert_card(
stripped_name,
rarity,
file_id,
power,
charm,
wit
)
return card_id, file_id
except Exception as e:
raise

View file

@ -1,64 +0,0 @@
import requests
from misskey.exceptions import MisskeyAPIException
from client import client_connection
from db_utils import insert_character
from custom_types import Character
from config import RARITY_TO_WEIGHT
def add_character(
name: str,
rarity: int,
image_url: str) -> tuple[int, str]:
'''
Adds a character to the database, uploading the image from a public URL to
the bot's Misskey Drive.
Args:
name (str): Character name.
rarity (int): Character rarity (e.g., 1-5).
image_url (str): Public URL of the image from the post (e.g., from
note['files'][i]['url']).
Returns:
tuple[int, str]: Character ID and bot's Drive file_id.
Raises:
ValueError: If inputs are invalid.
RuntimeError: If image download/upload or database operation fails.
'''
stripped_name = name.strip()
# Validate inputs
if not stripped_name:
raise ValueError('Character name cannot be empty.')
if rarity < 1:
raise ValueError('Rarity must be a positive integer.')
if rarity not in RARITY_TO_WEIGHT.keys():
raise ValueError(f'Invalid rarity: {rarity}')
if not image_url:
raise ValueError('Image URL must be provided.')
# Download image
response = requests.get(image_url, stream=True, timeout=30)
if response.status_code != 200:
raise RuntimeError(f'Failed to download image from {image_url}')
# Upload to bot's Drive
mk = client_connection()
try:
media = mk.drive_files_create(response.raw)
file_id = media['id']
except MisskeyAPIException as e:
raise RuntimeError(f'Failed to upload image to bot\'s Drive: {e}')\
from e
# Insert into database
character_id = insert_character(
stripped_name,
rarity,
RARITY_TO_WEIGHT[rarity],
file_id
)
return character_id, file_id

View file

@ -1,18 +1,78 @@
# Kemoverse - a gacha-style bot for the Fediverse.
# Copyright © 2025 Waifu, VD15, Moon and contributors.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
import time import time
import misskey as misskey import traceback
from client import client_connection import config
import db_utils as db from notification import process_fediverse_notification
from db_utils import get_config, set_config, connect, setup_administrators
from fediverse_factory import get_fediverse_service
from config import NOTIFICATION_POLL_INTERVAL from config import USE_WHITELIST
from notification import process_notifications
if __name__ == '__main__': def stream_notifications():
# Initialize the Misskey client # Initialize database connection
client = client_connection() connect()
# Connect to DB
db.connect() # Setup default administrators
setup_administrators()
# Initialize the Fediverse service
fediverse_service = get_fediverse_service(config.INSTANCE_TYPE)
# Get the last seen notification ID from the database
last_seen_id = get_config("last_seen_notif_id")
# Show whitelist status
whitelist_status = "enabled" if USE_WHITELIST else "disabled"
print(f'Instance whitelisting: {whitelist_status}')
print('Listening for notifications...') print('Listening for notifications...')
while True: while True:
if not process_notifications(client): try:
time.sleep(NOTIFICATION_POLL_INTERVAL) # Get notifications from the fediverse service
notifications = fediverse_service.get_notifications(since_id=last_seen_id)
if notifications:
new_last_seen_id = last_seen_id
for notification in notifications:
notif_id = notification.id
# Skip old or same ID notifications
if last_seen_id is not None and notif_id <= last_seen_id:
continue
# Process the notification using the abstracted processor
process_fediverse_notification(notification, fediverse_service)
# Update only if this notif_id is greater
if new_last_seen_id is None or notif_id > new_last_seen_id:
new_last_seen_id = notif_id
# Save the latest seen ID
if new_last_seen_id and new_last_seen_id != last_seen_id:
set_config("last_seen_notif_id", new_last_seen_id)
last_seen_id = new_last_seen_id
time.sleep(5)
except Exception as e:
print(f"An exception has occured: {e}\n{traceback.format_exc()}")
time.sleep(5)
if __name__ == "__main__":
stream_notifications()

View file

@ -1,6 +0,0 @@
import misskey
import config
def client_connection() -> misskey.Misskey:
return misskey.Misskey(address=config.INSTANCE, i=config.KEY)

View file

@ -1,5 +1,23 @@
# Kemoverse - a gacha-style bot for the Fediverse.
# Copyright © 2025 Waifu, VD15, Moon and contributors.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
'''Essentials for the bot to function''' '''Essentials for the bot to function'''
import configparser import configparser
import json
import re
from os import environ, path from os import environ, path
@ -12,8 +30,10 @@ def get_config_file() -> str:
env: str | None = environ.get('KEMOVERSE_ENV') env: str | None = environ.get('KEMOVERSE_ENV')
if not env: if not env:
raise ConfigError('Error: KEMOVERSE_ENV is unset') raise ConfigError('Error: KEMOVERSE_ENV is unset')
if not (env in ['prod', 'dev']):
raise ConfigError(f'Error: Invalid environment: {env}') # Validate environment name contains only alphanumeric, dash, and underscore
if not re.match(r'^[a-zA-Z0-9_-]+$', env):
raise ValueError(f'KEMOVERSE_ENV "{env}" contains invalid characters. Only alphanumeric, dash (-), and underscore (_) are allowed.')
config_path: str = f'config_{env}.ini' config_path: str = f'config_{env}.ini'
@ -21,7 +41,53 @@ def get_config_file() -> str:
raise ConfigError(f'Could not find {config_path}') raise ConfigError(f'Could not find {config_path}')
return config_path return config_path
def get_rarity_to_weight(config_section):
def normalize_user(user_string: str) -> str:
"""
Normalizes a user string to the format @user@domain.tld where domain is lowercase and user is case-sensitive
Args:
user_string: User string in various formats
Returns:
Normalized user string
Raises:
ValueError: If the user string is invalid or domain is malformed
"""
if not user_string or not user_string.strip():
raise ValueError("User string cannot be empty")
user_string = user_string.strip()
# Add leading @ if missing
if not user_string.startswith('@'):
user_string = '@' + user_string
# Split into user and domain parts
parts = user_string[1:].split('@', 1) # Remove leading @ and split
if len(parts) != 2:
raise ValueError(f"Invalid user format: {user_string}. Expected @user@domain.tld")
username, domain = parts
if not username:
raise ValueError("Username cannot be empty")
if not domain:
raise ValueError("Domain cannot be empty")
# Validate domain format (basic check for valid domain structure)
domain_pattern = r'^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$'
if not re.match(domain_pattern, domain):
raise ValueError(f"Invalid domain format: {domain}")
# Return normalized format: @user@domain.tld (domain lowercase, user case-sensitive)
return f"@{username}@{domain.lower()}"
def get_rarity_to_weight(
config_section: configparser.SectionProxy) -> dict[int, float]:
"""Parses Rarity_X keys from config and returns a {rarity: weight} dict.""" """Parses Rarity_X keys from config and returns a {rarity: weight} dict."""
rarity_weights = {} rarity_weights = {}
for key, value in config_section.items(): for key, value in config_section.items():
@ -35,22 +101,40 @@ config = configparser.ConfigParser()
config.read(get_config_file()) config.read(get_config_file())
# Username for the bot # Username for the bot
USER = config['credentials']['User'].lower() if 'User' not in config['credentials'] or not config['credentials']['User'].strip():
raise ConfigError("User must be specified in config.ini under [credentials]")
USER = normalize_user(config['credentials']['User'])
# API key for the bot # API key for the bot
KEY = config['credentials']['Token'] KEY = config['credentials']['Token']
# Bot's Misskey instance URL # Bot's Misskey/Pleroma instance URL
INSTANCE = config['credentials']['Instance'].lower() INSTANCE = config['credentials']['Instance'].lower()
# TODO: move this to db # Instance type validation
if 'InstanceType' not in config['application']:
raise ValueError("InstanceType must be specified in config.ini")
instance_type = config['application']['InstanceType'].lower()
if instance_type not in ('misskey', 'pleroma'):
raise ValueError("InstanceType must be either 'misskey' or 'pleroma'")
INSTANCE_TYPE = instance_type
# Web server port
WEB_PORT = config['application'].getint('WebPort', 5000)
BIND_ADDRESS = config['application'].get('BindAddress', '127.0.0.1')
# Fedi handles in the traditional 'user@domain.tld' style, allows these users # Fedi handles in the traditional 'user@domain.tld' style, allows these users
# to use extra admin exclusive commands with the bot # to use extra admin exclusive commands with the bot
ADMINS = config['application']['DefaultAdmins'] ADMINS = json.loads(config['application']['DefaultAdmins'])
# SQLite Database location # SQLite Database location
DB_PATH = config['application']['DatabaseLocation'] DB_PATH = config['application'].get('DatabaseLocation', './gacha_game.db')
# Whether to enable the instance whitelist
USE_WHITELIST = config['application'].getboolean('UseWhitelist', True)
NOTIFICATION_POLL_INTERVAL = int(config['notification']['PollInterval']) NOTIFICATION_POLL_INTERVAL = int(config['notification']['PollInterval'])
NOTIFICATION_BATCH_SIZE = int(config['notification']['BatchSize']) NOTIFICATION_BATCH_SIZE = int(config['notification']['BatchSize'])
GACHA_ROLL_INTERVAL = int(config['gacha']['RollInterval']) GACHA_ROLL_INTERVAL = int(config['gacha']['RollInterval'])
RARITY_TO_WEIGHT = get_rarity_to_weight(config['gacha']) RARITY_TO_WEIGHT = get_rarity_to_weight(config['gacha'])

View file

@ -1,3 +1,19 @@
# Kemoverse - a gacha-style bot for the Fediverse.
# Copyright © 2025 VD15 and contributors.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
from typing import TypedDict, List, Dict, Any from typing import TypedDict, List, Dict, Any
BotResponse = TypedDict('BotResponse', { BotResponse = TypedDict('BotResponse', {
@ -5,7 +21,7 @@ BotResponse = TypedDict('BotResponse', {
'attachment_urls': List[str] | None 'attachment_urls': List[str] | None
}) })
Character = TypedDict('Character', { Card = TypedDict('Card', {
'id': int, 'id': int,
'name': str, 'name': str,
'rarity': int, 'rarity': int,

View file

@ -1,7 +1,23 @@
# Kemoverse - a gacha-style bot for the Fediverse.
# Copyright © 2025 Waifu, VD15, Moon, and contributors.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
from random import choices from random import choices
import sqlite3 import sqlite3
import config import config
from custom_types import Character from custom_types import Card
DB_PATH = config.DB_PATH DB_PATH = config.DB_PATH
CONNECTION: sqlite3.Connection CONNECTION: sqlite3.Connection
@ -18,16 +34,38 @@ def connect() -> None:
CURSOR = CONNECTION.cursor() CURSOR = CONNECTION.cursor()
def get_random_character() -> Character | None: def setup_administrators() -> None:
''' Gets a random character from the database''' '''Creates administrator players for each handle in the config file'''
CURSOR.execute('SELECT * FROM characters') # Get default admins from config
characters = CURSOR.fetchall() for username in config.ADMINS:
player_id = get_player(username)
if player_id == 0:
# Create player if not exists
print(f'Creating administrator player: {username}')
CURSOR.execute(
'INSERT INTO players (username, has_rolled, is_administrator) \
VALUES (?, ?, ?)',
(username, False, True)
)
else:
# Update is_administrator if exists
print(f'Granting administrator to player: {username}')
CURSOR.execute(
'UPDATE players SET is_administrator = 1 WHERE id = ?',
(player_id,)
)
if not characters:
def get_random_card() -> Card | None:
''' Gets a random card from the database'''
CURSOR.execute('SELECT * FROM cards')
cards = CURSOR.fetchall()
if not cards:
return None return None
weights = [config.RARITY_TO_WEIGHT[c['rarity']] for c in characters] weights = [config.RARITY_TO_WEIGHT[c['rarity']] for c in cards]
chosen = choices(characters, weights=weights, k=1)[0] chosen = choices(cards, weights=weights, k=1)[0]
return { return {
'id': chosen['id'], 'id': chosen['id'],
@ -37,76 +75,181 @@ def get_random_character() -> Character | None:
'image_url': chosen['file_id'] 'image_url': chosen['file_id']
} }
def get_cards(card_ids: list[int]) -> list[tuple]:
'''
Retrieves stats for a list of card IDs.
Returns a list of tuples: (id, name, rarity, file_id, power, charm, wit, ...)
'''
if not card_ids:
return []
placeholders = ','.join('?' for _ in card_ids)
query = f'SELECT * FROM cards WHERE id IN ({placeholders})'
CURSOR.execute(query, card_ids)
return CURSOR.fetchall()
def get_player(username: str) -> int: def get_player(username: str) -> int:
'''Retrieve a player ID by username, or return None if not found.''' '''Retrieve a player ID by username, or return None if not found.'''
CURSOR.execute('SELECT id FROM users WHERE username = ?', (username,))
user = CURSOR.fetchone()
if user:
return int(user[0])
def insert_player(username: str) -> int:
'''Insert a new player with default has_rolled = False and return their user ID.'''
CURSOR.execute( CURSOR.execute(
'INSERT INTO users (username, has_rolled) VALUES (?, ?)', 'SELECT id FROM players WHERE username = ?',
(username, False)
)
return CURSOR.lastrowid
def delete_player(username: str) -> bool:
'''Permanently deletes a user and all their pulls.'''
CURSOR.execute(
'SELECT id FROM users WHERE username = ?',
(username,) (username,)
) )
user = CURSOR.fetchone() player = CURSOR.fetchone()
if player:
return int(player[0])
return 0
user_id = user[0]
def insert_player(username: str) -> int:
'''Insert a new player with default has_rolled = False and return their
player ID.'''
CURSOR.execute(
'INSERT INTO players (username, has_rolled) VALUES (?, ?)',
(username, False)
)
return CURSOR.lastrowid if CURSOR.lastrowid else 0
def delete_player(username: str) -> bool:
'''Permanently deletes a player and all their pulls.'''
CURSOR.execute(
'SELECT id FROM players WHERE username = ?',
(username,)
)
player = CURSOR.fetchone()
if not player:
return False
player_id = player[0]
# Delete pulls # Delete pulls
CURSOR.execute( CURSOR.execute(
'DELETE FROM pulls WHERE user_id = ?', 'DELETE FROM pulls WHERE player_id = ?',
(user_id,) (player_id,)
) )
# Delete user # Delete player
CURSOR.execute( CURSOR.execute(
'DELETE FROM users WHERE id = ?', 'DELETE FROM players WHERE id = ?',
(user_id,) (player_id,)
) )
return True return True
def ban_player(username: str) -> bool:
'''Adds a player to the ban list.'''
try:
CURSOR.execute(
'INSERT INTO banned_players (handle) VALUES (?)',
(username,)
)
return True
except sqlite3.IntegrityError:
return False
def insert_character(
name: str, rarity: int, weight: float, file_id: str) -> int: def unban_player(username: str) -> bool:
'''Inserts a character''' '''Removes a player from the ban list.'''
CURSOR.execute( CURSOR.execute(
'INSERT INTO characters (name, rarity, weight, file_id) VALUES \ 'DELETE FROM banned_players WHERE handle = ?',
(?, ?, ?, ?)', (username,)
(name, rarity, weight, file_id)
) )
character_id = CURSOR.lastrowid return CURSOR.rowcount > 0
return character_id if character_id else 0
def insert_pull(user_id: int, character_id: int) -> None: def is_player_banned(username: str) -> bool:
CURSOR.execute(
'SELECT * FROM banned_players WHERE handle = ?',
(username,)
)
row = CURSOR.fetchone()
return row is not None
def is_player_administrator(username: str) -> bool:
CURSOR.execute(
'SELECT is_administrator FROM players WHERE username = ? LIMIT 1',
(username,)
)
row = CURSOR.fetchone()
return row[0] if row else False
def insert_card(
name: str, rarity: int, file_id: str,
power: int =None, charm: int = None, wit: int = None) -> int:
'''Inserts a card'''
if power is not None and charm is not None and wit is not None:
CURSOR.execute(
'''
INSERT INTO cards (name, rarity, file_id, power, charm, wit)
VALUES (?, ?, ?, ?, ?, ?)
''',
(name, rarity, file_id, power, charm, wit)
)
else:
CURSOR.execute(
'''
INSERT INTO cards (name, rarity, file_id)
VALUES (?, ?, ?)
''',
(name, rarity, file_id)
)
card_id = CURSOR.lastrowid
return card_id if card_id else 0
def insert_pull(player_id: int, card_id: int) -> None:
'''Creates a pull in the database''' '''Creates a pull in the database'''
CURSOR.execute( CURSOR.execute(
'INSERT INTO pulls (user_id, character_id) VALUES (?, ?)', 'INSERT INTO pulls (player_id, card_id) VALUES (?, ?)',
(user_id, character_id) (player_id, card_id)
) )
def get_last_rolled_at(user_id: int) -> int: def get_last_rolled_at(player_id: int) -> int:
'''Gets the timestamp when the user last rolled''' '''Gets the timestamp when the player last rolled'''
CURSOR.execute( CURSOR.execute(
"SELECT timestamp FROM pulls WHERE user_id = ? ORDER BY timestamp \ "SELECT timestamp FROM pulls WHERE player_id = ? ORDER BY timestamp \
DESC", DESC",
(user_id,)) (player_id,))
row = CURSOR.fetchone() row = CURSOR.fetchone()
return row[0] if row else 0 return row[0] if row else 0
# Configuration
def add_to_whitelist(instance: str) -> bool:
'''Adds an instance to the whitelist, returns false if instance was already
present'''
try:
CURSOR.execute(
'INSERT INTO instance_whitelist (tld) VALUES (?)', (instance,)
)
return True
except sqlite3.IntegrityError:
return False
def remove_from_whitelist(instance: str) -> bool:
'''Removes an instance to the whitelist, returns false if instance was not
present'''
CURSOR.execute(
'DELETE FROM instance_whitelist WHERE tld = ?', (instance,))
return CURSOR.rowcount > 0
def is_whitelisted(instance: str) -> bool:
'''Checks whether an instance is in the whitelist'''
if instance == 'local':
return True
CURSOR.execute(
'SELECT * FROM instance_whitelist WHERE tld = ?', (instance,))
row = CURSOR.fetchone()
return row is not None
def get_config(key: str) -> str: def get_config(key: str) -> str:
'''Reads the value for a specified config key from the db''' '''Reads the value for a specified config key from the db'''

56
bot/fediverse_factory.py Normal file
View file

@ -0,0 +1,56 @@
# Kemoverse - a gacha-style bot for the Fediverse.
# Copyright © 2025 Moon and contributors.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
from fediverse_service import FediverseService
from misskey_service import MisskeyService
from pleroma_service import PleromaService
class FediverseServiceFactory:
"""Factory for creating FediverseService implementations"""
@staticmethod
def create_service(instance_type: str) -> FediverseService:
"""
Create a FediverseService implementation based on the instance type.
Args:
instance_type: The type of instance ("misskey" or "pleroma")
Returns:
FediverseService implementation (MisskeyService or PleromaService)
Raises:
ValueError: If the instance type is not supported
"""
instance_type = instance_type.lower()
if instance_type == "misskey":
return MisskeyService()
elif instance_type == "pleroma":
return PleromaService()
else:
raise ValueError(f"Unsupported instance type: {instance_type}")
def get_fediverse_service(instance_type: str) -> FediverseService:
"""
Convenience function to get a FediverseService instance
Args:
instance_type: The instance type ("misskey" or "pleroma")
"""
return FediverseServiceFactory.create_service(instance_type)

90
bot/fediverse_service.py Normal file
View file

@ -0,0 +1,90 @@
# Kemoverse - a gacha-style bot for the Fediverse.
# Copyright © 2025 Moon and contributors.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
from abc import ABC, abstractmethod
from typing import List, Optional, Union, BinaryIO
from fediverse_types import FediverseNotification, FediversePost, FediverseFile, Visibility
class FediverseService(ABC):
"""Abstract interface for Fediverse platform services (Misskey, Pleroma, etc.)"""
@abstractmethod
def get_notifications(self, since_id: Optional[str] = None) -> List[FediverseNotification]:
"""
Retrieve notifications from the Fediverse instance.
Args:
since_id: Optional ID to get notifications newer than this ID
Returns:
List of FediverseNotification objects
"""
pass
@abstractmethod
def create_post(
self,
text: str,
reply_to_id: Optional[str] = None,
visibility: Visibility = Visibility.HOME,
file_ids: Optional[List[str]] = None,
visible_user_ids: Optional[List[str]] = None
) -> str:
"""
Create a new post on the Fediverse instance.
Args:
text: The text content of the post
reply_to_id: Optional ID of post to reply to
visibility: Visibility level for the post
file_ids: Optional list of file IDs to attach
visible_user_ids: Optional list of user IDs who can see the post (for specified visibility)
Returns:
ID of the created post
"""
pass
@abstractmethod
def get_post_by_id(self, post_id: str) -> Optional[FediversePost]:
"""
Retrieve a specific post by its ID.
Args:
post_id: The ID of the post to retrieve
Returns:
FediversePost object if found, None otherwise
"""
pass
@abstractmethod
def upload_file(self, file_data: Union[BinaryIO, bytes], filename: Optional[str] = None) -> FediverseFile:
"""
Upload a file to the Fediverse instance.
Args:
file_data: File data as binary stream or bytes
filename: Optional filename for the uploaded file
Returns:
FediverseFile object with ID, URL, and other metadata
Raises:
RuntimeError: If file upload fails
"""
pass

89
bot/fediverse_types.py Normal file
View file

@ -0,0 +1,89 @@
# Kemoverse - a gacha-style bot for the Fediverse.
# Copyright © 2025 Moon and contributors.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
from dataclasses import dataclass
from typing import Optional, List, Dict, Any
from enum import Enum
class NotificationType(Enum):
MENTION = "mention"
REPLY = "reply"
FOLLOW = "follow"
FAVOURITE = "favourite"
REBLOG = "reblog"
POLL = "poll"
OTHER = "other"
class Visibility(Enum):
PUBLIC = "public"
UNLISTED = "unlisted"
HOME = "home"
FOLLOWERS = "followers"
SPECIFIED = "specified"
DIRECT = "direct"
@dataclass
class FediverseUser:
"""Common user representation across Fediverse platforms"""
id: str
username: str
host: Optional[str] = None # None for local users
display_name: Optional[str] = None
@property
def full_handle(self) -> str:
"""Returns the full fediverse handle (@user@domain or @user for local)"""
if self.host:
return f"@{self.username}@{self.host}"
return f"@{self.username}"
@dataclass
class FediverseFile:
"""Common file/attachment representation"""
id: str
url: str
type: Optional[str] = None
name: Optional[str] = None
@dataclass
class FediversePost:
"""Common post representation across Fediverse platforms"""
id: str
text: Optional[str]
user: FediverseUser
visibility: Visibility
created_at: Optional[str] = None
files: List[FediverseFile] = None
reply_to_id: Optional[str] = None
def __post_init__(self):
if self.files is None:
self.files = []
@dataclass
class FediverseNotification:
"""Common notification representation across Fediverse platforms"""
id: str
type: NotificationType
user: FediverseUser
post: Optional[FediversePost] = None
created_at: Optional[str] = None

172
bot/misskey_service.py Normal file
View file

@ -0,0 +1,172 @@
# Kemoverse - a gacha-style bot for the Fediverse.
# Copyright © 2025 Moon and contributors.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
import misskey
from typing import List, Optional, Dict, Any, Union, BinaryIO
from fediverse_service import FediverseService
from fediverse_types import (
FediverseNotification, FediversePost, FediverseUser, FediverseFile,
NotificationType, Visibility
)
import config
class MisskeyService(FediverseService):
"""Misskey implementation of FediverseService"""
def __init__(self):
self.client = misskey.Misskey(address=config.INSTANCE, i=config.KEY)
def _convert_misskey_user(self, user_data: Dict[str, Any]) -> FediverseUser:
"""Convert Misskey user data to FediverseUser"""
return FediverseUser(
id=user_data.get("id", ""),
username=user_data.get("username", "unknown"),
host=user_data.get("host"),
display_name=user_data.get("name")
)
def _convert_misskey_file(self, file_data: Dict[str, Any]) -> FediverseFile:
"""Convert Misskey file data to FediverseFile"""
return FediverseFile(
id=file_data.get("id", ""),
url=file_data.get("url", ""),
type=file_data.get("type"),
name=file_data.get("name")
)
def _convert_misskey_visibility(self, visibility: str) -> Visibility:
"""Convert Misskey visibility to our enum"""
visibility_map = {
"public": Visibility.PUBLIC,
"unlisted": Visibility.UNLISTED,
"home": Visibility.HOME,
"followers": Visibility.FOLLOWERS,
"specified": Visibility.SPECIFIED
}
return visibility_map.get(visibility, Visibility.HOME)
def _convert_to_misskey_visibility(self, visibility: Visibility) -> str:
"""Convert our visibility enum to Misskey visibility"""
visibility_map = {
Visibility.PUBLIC: "public",
Visibility.UNLISTED: "unlisted",
Visibility.HOME: "home",
Visibility.FOLLOWERS: "followers",
Visibility.SPECIFIED: "specified",
Visibility.DIRECT: "specified" # Map direct to specified for Misskey
}
return visibility_map.get(visibility, "home")
def _convert_misskey_notification_type(self, notif_type: str) -> NotificationType:
"""Convert Misskey notification type to our enum"""
type_map = {
"mention": NotificationType.MENTION,
"reply": NotificationType.REPLY,
"follow": NotificationType.FOLLOW,
"favourite": NotificationType.FAVOURITE,
"reblog": NotificationType.REBLOG,
"poll": NotificationType.POLL
}
return type_map.get(notif_type, NotificationType.OTHER)
def _convert_misskey_post(self, note_data: Dict[str, Any]) -> FediversePost:
"""Convert Misskey note data to FediversePost"""
files = []
if note_data.get("files"):
files = [self._convert_misskey_file(f) for f in note_data["files"]]
return FediversePost(
id=note_data.get("id", ""),
text=note_data.get("text"),
user=self._convert_misskey_user(note_data.get("user", {})),
visibility=self._convert_misskey_visibility(note_data.get("visibility", "home")),
created_at=note_data.get("createdAt"),
files=files,
reply_to_id=note_data.get("replyId")
)
def _convert_misskey_notification(self, notification_data: Dict[str, Any]) -> FediverseNotification:
"""Convert Misskey notification data to FediverseNotification"""
post = None
if notification_data.get("note"):
post = self._convert_misskey_post(notification_data["note"])
return FediverseNotification(
id=notification_data.get("id", ""),
type=self._convert_misskey_notification_type(notification_data.get("type", "")),
user=self._convert_misskey_user(notification_data.get("user", {})),
post=post,
created_at=notification_data.get("createdAt")
)
def get_notifications(self, since_id: Optional[str] = None) -> List[FediverseNotification]:
"""Get notifications from Misskey instance"""
params = {
'include_types': ['mention', 'reply'],
'limit': 50
}
if since_id:
params["since_id"] = since_id
notifications = self.client.i_notifications(**params)
return [self._convert_misskey_notification(notif) for notif in notifications]
def create_post(
self,
text: str,
reply_to_id: Optional[str] = None,
visibility: Visibility = Visibility.HOME,
file_ids: Optional[List[str]] = None,
visible_user_ids: Optional[List[str]] = None
) -> str:
"""Create a post on Misskey instance"""
params = {
"text": text,
"visibility": self._convert_to_misskey_visibility(visibility)
}
if reply_to_id:
params["reply_id"] = reply_to_id
if file_ids:
params["file_ids"] = file_ids
if visible_user_ids and visibility == Visibility.SPECIFIED:
params["visible_user_ids"] = visible_user_ids
response = self.client.notes_create(**params)
return response.get("createdNote", {}).get("id", "")
def get_post_by_id(self, post_id: str) -> Optional[FediversePost]:
"""Get a specific post by ID from Misskey instance"""
try:
note = self.client.notes_show(noteId=post_id)
return self._convert_misskey_post(note)
except Exception:
return None
def upload_file(self, file_data: Union[BinaryIO, bytes], filename: Optional[str] = None) -> FediverseFile:
"""Upload a file to Misskey Drive"""
try:
from misskey.exceptions import MisskeyAPIException
media = self.client.drive_files_create(file_data)
return self._convert_misskey_file(media)
except MisskeyAPIException as e:
raise RuntimeError(f"Failed to upload file to Misskey Drive: {e}") from e
except Exception as e:
raise RuntimeError(f"Unexpected error during file upload: {e}") from e

View file

@ -0,0 +1,90 @@
# Kemoverse - a gacha-style bot for the Fediverse.
# Copyright © 2025 Moon and contributors.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
"""Mock FediverseService for testing purposes"""
from typing import List, Optional, Union, BinaryIO
from fediverse_service import FediverseService
from fediverse_types import FediverseNotification, FediversePost, FediverseFile, Visibility
class MockFediverseService(FediverseService):
"""Mock implementation of FediverseService for testing"""
def __init__(self):
self.notifications = []
self.created_posts = []
self.uploaded_files = []
def get_notifications(self, since_id: Optional[str] = None) -> List[FediverseNotification]:
"""Return mock notifications, optionally filtered by since_id"""
if since_id is None:
return self.notifications
# Filter notifications newer than since_id
filtered = []
for notif in self.notifications:
if notif.id > since_id:
filtered.append(notif)
return filtered
def create_post(
self,
text: str,
reply_to_id: Optional[str] = None,
visibility: Visibility = Visibility.HOME,
file_ids: Optional[List[str]] = None,
visible_user_ids: Optional[List[str]] = None
) -> str:
"""Mock post creation, returns fake post ID"""
post_id = f"mock_post_{len(self.created_posts)}"
# Store the post for assertions
self.created_posts.append({
'id': post_id,
'text': text,
'reply_to_id': reply_to_id,
'visibility': visibility,
'file_ids': file_ids,
'visible_user_ids': visible_user_ids
})
return post_id
def upload_file(self, file_data: Union[BinaryIO, bytes]) -> FediverseFile:
"""Mock file upload, returns fake file"""
file_id = f"mock_file_{len(self.uploaded_files)}"
mock_file = FediverseFile(
id=file_id,
url=f"https://example.com/files/{file_id}",
type="image/png",
name="test_file.png"
)
self.uploaded_files.append(mock_file)
return mock_file
# Helper methods for testing
def add_mock_notification(self, notification: FediverseNotification):
"""Add a mock notification for testing"""
self.notifications.append(notification)
def clear_all(self):
"""Clear all mock data"""
self.notifications.clear()
self.created_posts.clear()
self.uploaded_files.clear()

View file

@ -1,51 +1,71 @@
import traceback # Kemoverse - a gacha-style bot for the Fediverse.
from typing import Dict, Any # Copyright © 2025 Waifu, Moon, VD15, and contributors.
import misskey # This program is free software: you can redistribute it and/or modify
from misskey.exceptions import MisskeyAPIException # it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
from config import NOTIFICATION_BATCH_SIZE # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
import config
from parsing import parse_notification from parsing import parse_notification
from db_utils import get_config, set_config from db_utils import is_whitelisted, is_player_banned
from response import generate_response from response import generate_response
from custom_types import BotResponse from custom_types import BotResponse
from fediverse_factory import get_fediverse_service
# Define your whitelist from fediverse_types import FediverseNotification, NotificationType, Visibility
# TODO: move to config
WHITELISTED_INSTANCES: list[str] = []
def process_notification( def process_fediverse_notification(notification: FediverseNotification, fediverse_service=None) -> None:
client: misskey.Misskey, '''Processes an individual fediverse notification using the abstraction'''
notification: Dict[str, Any]) -> None: if fediverse_service is None:
'''Processes an individual notification''' fediverse_service = get_fediverse_service(config.INSTANCE_TYPE)
user = notification.get('user', {})
username = user.get('username', 'unknown') # Get user and instance info
host = user.get('host') # None if local user username = notification.user.username
host = notification.user.host
instance = host if host else 'local' instance = host if host else 'local'
if not (instance in WHITELISTED_INSTANCES or instance == 'local'): # Check whitelist
if config.USE_WHITELIST and not is_whitelisted(instance):
print(f'⚠️ Blocked notification from untrusted instance: {instance}') print(f'⚠️ Blocked notification from untrusted instance: {instance}')
return return
# Copy visibility of the post that was received when replying (so if people # Only process mentions and replies
# don't want to dump a bunch of notes on home they don't have to) if notification.type not in (NotificationType.MENTION, NotificationType.REPLY):
visibility = notification['note']['visibility'] return
if visibility != 'specified':
visibility = 'home'
notif_type = notification.get('type', 'unknown') # Return early if no post attached
notif_id = notification.get('id') if not notification.post:
return
# Determine visibility for reply
if notification.post.visibility != Visibility.SPECIFIED:
visibility = Visibility.HOME
else:
visibility = Visibility.SPECIFIED
notif_type = notification.type.value
notif_id = notification.id
print(f'📨 <{notif_id}> [{notif_type}] from @{username}@{instance}') print(f'📨 <{notif_id}> [{notif_type}] from @{username}@{instance}')
# 🧠 Send to the parser # 🧠 Send to the parser
parsed_notification = parse_notification(notification, client) parsed_notification = parse_notification(notification, fediverse_service)
if not parsed_notification: if not parsed_notification:
return return
# Get the note Id to reply to author = parsed_notification['author']
note_id = notification.get('note', {}).get('id') if is_player_banned(author):
print(f'⚠️ Blocked notification from banned player: {author}')
return
# Get the response # Get the response
response: BotResponse | None = generate_response(parsed_notification) response: BotResponse | None = generate_response(parsed_notification)
@ -53,70 +73,14 @@ def process_notification(
if not response: if not response:
return return
client.notes_create( # Handle attachment URLs (convert to file IDs if needed)
file_ids = response['attachment_urls'] if response['attachment_urls'] else None
# Send response using fediverse service
fediverse_service.create_post(
text=response['message'], text=response['message'],
reply_id=note_id, reply_to_id=notification.post.id,
visibility=visibility, visibility=visibility,
file_ids=response['attachment_urls'] file_ids=file_ids
# TODO: write actual visible users ids so pleromers can use the bot # visible_user_ids=[] # TODO: write actual visible users ids so pleromers can use the bot privately
# privately
# visible_user_ids=[]
) )
def process_notifications(client: misskey.Misskey) -> bool:
'''Processes a batch of unread notifications. Returns False if there are
no more notifications to process.'''
last_seen_id = get_config('last_seen_notif_id')
# process_notification writes to last_seen_id, so make a copy
new_last_seen_id = last_seen_id
try:
notifications = client.i_notifications(
# Fetch notifications we haven't seen yet. This option is a bit
# tempermental, sometimes it'll include since_id, sometimes it
# won't. We need to keep track of what notifications we've
# already processed.
since_id=last_seen_id,
# Let misskey handle the filtering
include_types=['mention', 'reply'],
# And handle the batch size while we're at it
limit=NOTIFICATION_BATCH_SIZE
)
# No notifications. Wait the poll period.
if not notifications:
return False
# Iterate oldest to newest
for notification in notifications:
try:
# Skip if we've processed already
notif_id = notification.get('id', '')
if notif_id <= last_seen_id:
continue
# Update new_last_seen_id and process
new_last_seen_id = notif_id
process_notification(client, notification)
except Exception as e:
print(f'An exception has occured while processing a \
notification: {e}')
print(traceback.format_exc())
# If we got as many notifications as we requested, there are probably
# more in the queue
return len(notifications) == NOTIFICATION_BATCH_SIZE
except MisskeyAPIException as e:
print(f'An exception has occured while reading notifications: {e}\n')
print(traceback.format_exc())
finally:
# Quality jank right here, but finally lets us update the last_seen_id
# even if we hit an exception or return early
if new_last_seen_id > last_seen_id:
set_config('last_seen_notif_id', new_last_seen_id)
return False

View file

@ -1,29 +1,58 @@
# Kemoverse - a gacha-style bot for the Fediverse.
# Copyright © 2025 Waifu, Moon, VD15, and contributors.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
import re import re
from typing import Dict, Any
import misskey
import config import config
from response import generate_response
from fediverse_factory import get_fediverse_service
from fediverse_types import FediverseNotification, NotificationType, Visibility
from custom_types import ParsedNotification from custom_types import ParsedNotification
def parse_notification(notification: FediverseNotification, fediverse_service=None):
'''Parses any notifications received by the bot and sends any commands to
generate_response()'''
if fediverse_service is None:
fediverse_service = get_fediverse_service(config.INSTANCE_TYPE)
def parse_notification( # We get the type of notification to filter the ones that we actually want
notification: Dict[str, Any], # to parse
client: misskey.Misskey) -> ParsedNotification | None: if notification.type not in (NotificationType.MENTION, NotificationType.REPLY):
'''Parses any notifications received by the bot''' return # Ignore anything that isn't a mention
# Return early if no post attached
if not notification.post:
return
# We want the visibility to be related to the type that was received (so if
# people don't want to dump a bunch of notes on home they don't have to)
if notification.post.visibility != Visibility.SPECIFIED:
visibility = Visibility.HOME
else:
visibility = Visibility.SPECIFIED
# Get the full Activitypub ID of the user # Get the full Activitypub ID of the user
user = notification.get("user", {}) full_user = notification.user.full_handle
username = user.get("username", "unknown")
host = user.get("host")
# Local users may not have a hostname attached
full_user = f"@{username}" if not host else f"@{username}@{host}"
note_obj = notification.get("note", {}) note_text = notification.post.text
note_text = note_obj.get("text") note_id = notification.post.id
note_id = note_obj.get("id")
note = note_text.strip().lower() if note_text else "" note = note_text.strip().lower() if note_text else ""
# Split words into tokens
parts = note.split()
# Check for both short and fully-qualified name mentions # Check for both short and fully-qualified name mentions
username_variants = [ username_variants = [
@ -31,22 +60,41 @@ def parse_notification(
f'@{config.USER.split("@")[1]}' f'@{config.USER.split("@")[1]}'
] ]
# Make sure the notification text explicitly mentions the bot # Notifs must consist of the initial mention and at least one other token
if not any(variant in note for variant in username_variants): if len(parts) <= 1:
return None return None
# Find command and arguments after the mention # Make sure the first token is a mention to the bot
# Removes all mentions if not parts[0] in username_variants:
# regex = mentions that start with @ and may contain @domain return None
cleaned_text = re.sub(r"@\w+(?:@\S+)?", "", note).strip()
parts = cleaned_text.split()
command = parts[0].lower() if parts else None command = parts[1].lower()
arguments = parts[1:] if len(parts) > 1 else [] arguments = parts[2:] if len(parts) > 2 else []
return { # Create ParsedNotification object for the new response system
parsed_notification: ParsedNotification = {
'author': full_user, 'author': full_user,
'command': command, 'command': command,
'arguments': arguments, 'arguments': arguments,
'note_obj': note_obj 'note_obj': {
'id': note_id,
'text': note_text,
'files': [{'url': f.url} for f in notification.post.files] if notification.post.files else []
}
} }
# Generate response using the new system
response = generate_response(parsed_notification)
if not response:
return
# Handle attachment URLs (convert to file IDs if needed)
file_ids = response['attachment_urls'] if response['attachment_urls'] else None
fediverse_service.create_post(
text=response['message'],
reply_to_id=note_id,
visibility=visibility,
file_ids=file_ids
#visible_user_ids=[] #todo: write actual visible users ids so pleromers can use the bot privately
)

204
bot/pleroma_service.py Normal file
View file

@ -0,0 +1,204 @@
# Kemoverse - a gacha-style bot for the Fediverse.
# Copyright © 2025 Moon and contributors.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
from mastodon import Mastodon
from typing import List, Optional, Dict, Any, Union, BinaryIO
import io
import filetype
from fediverse_service import FediverseService
from fediverse_types import (
FediverseNotification, FediversePost, FediverseUser, FediverseFile,
NotificationType, Visibility
)
import config
class PleromaService(FediverseService):
"""Pleroma implementation of FediverseService using Mastodon.py"""
def __init__(self):
self.client = Mastodon(
access_token=config.KEY,
api_base_url=config.INSTANCE
)
def _convert_mastodon_user(self, user_data: Dict[str, Any]) -> FediverseUser:
"""Convert Mastodon/Pleroma user data to FediverseUser"""
acct = user_data.get("acct", "")
if "@" in acct:
username, host = acct.split("@", 1)
else:
username = acct
host = None
return FediverseUser(
id=str(user_data.get("id", "")),
username=username,
host=host,
display_name=user_data.get("display_name")
)
def _convert_mastodon_file(self, file_data: Dict[str, Any]) -> FediverseFile:
"""Convert Mastodon/Pleroma media attachment to FediverseFile"""
return FediverseFile(
id=str(file_data.get("id", "")),
url=file_data.get("url", ""),
type=file_data.get("type"),
name=file_data.get("description")
)
def _convert_mastodon_visibility(self, visibility: str) -> Visibility:
"""Convert Mastodon/Pleroma visibility to our enum"""
visibility_map = {
"public": Visibility.PUBLIC,
"unlisted": Visibility.UNLISTED,
"private": Visibility.FOLLOWERS,
"direct": Visibility.DIRECT
}
return visibility_map.get(visibility, Visibility.PUBLIC)
def _convert_to_mastodon_visibility(self, visibility: Visibility) -> str:
"""Convert our visibility enum to Mastodon/Pleroma visibility"""
visibility_map = {
Visibility.PUBLIC: "public",
Visibility.UNLISTED: "unlisted",
Visibility.HOME: "unlisted", # Map home to unlisted for Pleroma
Visibility.FOLLOWERS: "private",
Visibility.SPECIFIED: "direct", # Map specified to direct for Pleroma
Visibility.DIRECT: "direct"
}
return visibility_map.get(visibility, "public")
def _convert_mastodon_notification_type(self, notif_type: str) -> NotificationType:
"""Convert Mastodon/Pleroma notification type to our enum"""
type_map = {
"mention": NotificationType.MENTION,
"follow": NotificationType.FOLLOW,
"favourite": NotificationType.FAVOURITE,
"reblog": NotificationType.REBLOG,
"poll": NotificationType.POLL
}
return type_map.get(notif_type, NotificationType.OTHER)
def _convert_mastodon_status(self, status_data: Dict[str, Any]) -> FediversePost:
"""Convert Mastodon/Pleroma status data to FediversePost"""
files = []
if status_data.get("media_attachments"):
files = [self._convert_mastodon_file(f) for f in status_data["media_attachments"]]
# Extract plain text from HTML content
content = status_data.get("content", "")
# Basic HTML stripping - in production you might want to use a proper HTML parser
import re
plain_text = re.sub(r'<[^>]+>', '', content) if content else None
return FediversePost(
id=str(status_data.get("id", "")),
text=plain_text,
user=self._convert_mastodon_user(status_data.get("account", {})),
visibility=self._convert_mastodon_visibility(status_data.get("visibility", "public")),
created_at=status_data.get("created_at"),
files=files,
reply_to_id=str(status_data["in_reply_to_id"]) if status_data.get("in_reply_to_id") else None
)
def _convert_mastodon_notification(self, notification_data: Dict[str, Any]) -> FediverseNotification:
"""Convert Mastodon/Pleroma notification data to FediverseNotification"""
post = None
if notification_data.get("status"):
post = self._convert_mastodon_status(notification_data["status"])
return FediverseNotification(
id=str(notification_data.get("id", "")),
type=self._convert_mastodon_notification_type(notification_data.get("type", "")),
user=self._convert_mastodon_user(notification_data.get("account", {})),
post=post,
created_at=notification_data.get("created_at")
)
def get_notifications(self, since_id: Optional[str] = None) -> List[FediverseNotification]:
"""Get notifications from Pleroma instance"""
params = {}
if since_id:
params["since_id"] = since_id
notifications = self.client.notifications(**params)
return [self._convert_mastodon_notification(notif) for notif in notifications]
def create_post(
self,
text: str,
reply_to_id: Optional[str] = None,
visibility: Visibility = Visibility.HOME,
file_ids: Optional[List[str]] = None,
visible_user_ids: Optional[List[str]] = None
) -> str:
"""Create a post on Pleroma instance"""
params = {
"status": text,
"visibility": self._convert_to_mastodon_visibility(visibility)
}
if reply_to_id:
params["in_reply_to_id"] = reply_to_id
if file_ids:
params["media_ids"] = file_ids
# Note: Pleroma/Mastodon doesn't have direct equivalent to visible_user_ids
# For direct messages, you typically mention users in the status text
response = self.client.status_post(**params)
return str(response.get("id", ""))
def get_post_by_id(self, post_id: str) -> Optional[FediversePost]:
"""Get a specific post by ID from Pleroma instance"""
try:
status = self.client.status(post_id)
return self._convert_mastodon_status(status)
except Exception:
return None
def upload_file(self, file_data: Union[BinaryIO, bytes], filename: Optional[str] = None) -> FediverseFile:
"""Upload a file to Pleroma instance"""
try:
# Convert file_data to bytes for MIME detection
if hasattr(file_data, 'read'):
# Check if we can seek back
try:
current_pos = file_data.tell()
file_bytes = file_data.read()
file_data.seek(current_pos)
file_data = io.BytesIO(file_bytes)
except (io.UnsupportedOperation, OSError):
# Non-seekable stream, already read all data
file_data = io.BytesIO(file_bytes)
else:
file_bytes = file_data
file_data = io.BytesIO(file_bytes)
# Use filetype library for robust MIME detection
kind = filetype.guess(file_bytes)
if kind is not None:
mime_type = kind.mime
else:
# Fallback to image/jpeg if detection fails
mime_type = 'image/jpeg'
media = self.client.media_post(file_data, mime_type=mime_type, description=filename)
return self._convert_mastodon_file(media)
except Exception as e:
raise RuntimeError(f"Failed to upload file to Pleroma: {e}") from e

View file

@ -1,22 +1,38 @@
#Kemoverse - a gacha-style bot for the Fediverse.
#Copyright © 2025 Waifu, VD15 and contributors.
#
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU Affero General Public License as
#published by the Free Software Foundation, either version 3 of the
#License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU Affero General Public License for more details.
#
#You should have received a copy of the GNU Affero General Public License
#along with this program. If not, see https://www.gnu.org/licenses/.
from datetime import datetime, timedelta, timezone from datetime import datetime, timedelta, timezone
from typing import TypedDict, Any, List, Dict from typing import TypedDict, Any, List, Dict
from db_utils import get_player, insert_player, delete_player, insert_pull, get_last_rolled_at, \ import db_utils as db
get_random_character from add_card import add_card
from add_character import add_character
from config import GACHA_ROLL_INTERVAL from config import GACHA_ROLL_INTERVAL
from custom_types import BotResponse, ParsedNotification from custom_types import BotResponse, ParsedNotification
def do_roll(author: str) -> BotResponse: def do_roll(author: str) -> BotResponse:
'''Determines whether the user can roll, then pulls a random character''' '''Determines whether the user can roll, then pulls a random card'''
user_id = get_player(author) user_id = db.get_player(author)
if not user_id: if not user_id:
return { return {
'message':f'{author} 🛑 You havent signed up yet! Use the `signup` command to start playing.', 'message': f'{author} 🛑 You havent signed up yet! Use the \
'attachment_urls': None `signup` command to start playing.',
'attachment_urls': None
} }
# Get date of user's last roll # Get date of user's last roll
date = get_last_rolled_at(user_id) date = db.get_last_rolled_at(user_id)
# No date means it's users first roll # No date means it's users first roll
if date: if date:
@ -45,39 +61,43 @@ def do_roll(author: str) -> BotResponse:
'attachment_urls': None 'attachment_urls': None
} }
character = get_random_character() card = db.get_random_card()
if not character: if not card:
return { return {
'message': f'{author} Uwaaa... something went wrong! No \ 'message': f'{author} Uwaaa... something went wrong! No \
characters found. 😿', cards found. 😿',
'attachment_urls': None 'attachment_urls': None
} }
insert_pull(user_id, character['id']) db.insert_pull(user_id, card['id'])
stars = '⭐️' * character['rarity'] stars = '⭐️' * card['rarity']
return { return {
'message': f'{author} 🎲 Congrats! You rolled {stars} \ 'message': f'{author} 🎲 Congrats! You rolled {stars} \
**{character['name']}**\nShe\'s all yours now~ 💖✨', **{card['name']}**\nShe\'s all yours now~ 💖✨',
'attachment_urls': [character['image_url']] 'attachment_urls': [card['image_url']]
} }
def do_signup(author: str) -> BotResponse: def do_signup(author: str) -> BotResponse:
'''Registers a new user if they havent signed up yet.''' '''Registers a new user if they havent signed up yet.'''
user_id = get_player(author) user_id = db.get_player(author)
if user_id: if user_id:
return { return {
'message':f'{author} 👀 Youre already signed up! Let the rolling begin~ 🎲', 'message': f'{author} 👀 Youre already signed up! Let the rolling \
begin~ 🎲',
'attachment_urls': None 'attachment_urls': None
} }
new_user_id = insert_player(author) new_user_id = db.insert_player(author)
return { return {
'message': f'{author} ✅ Signed up successfully! Your gacha destiny begins now... ✨ Use the roll command to start!', 'message': f'{author} ✅ Signed up successfully! Your gacha \
destiny begins now... Use the roll command to start!',
'attachment_urls': None 'attachment_urls': None
} }
def is_float(val: Any) -> bool: def is_float(val: Any) -> bool:
'''Returns true if `val` can be converted to a float''' '''Returns true if `val` can be converted to a float'''
try: try:
@ -91,22 +111,22 @@ def do_create(
author: str, author: str,
arguments: List[str], arguments: List[str],
note_obj: Dict[str, Any]) -> BotResponse: note_obj: Dict[str, Any]) -> BotResponse:
'''Creates a character''' '''Creates a card'''
# Example call from bot logic # Example call from bot logic
image_url = note_obj.get('files', [{}])[0].get('url') \ image_url = note_obj.get('files', [{}])[0].get('url') \
if note_obj.get('files') else None if note_obj.get('files') else None
if not image_url: if not image_url:
return { return {
'message': f'{author} You need an image to create a character, \ 'message': f'{author} You need an image to create a card, \
dumbass.', dumbass.',
'attachment_urls': None 'attachment_urls': None
} }
if len(arguments) != 2: if not(len(arguments) in (2,5)):
return { return {
'message': f'{author} Please specify the following attributes \ 'message': f'{author} Please specify the following attributes \
in order: name, rarity', in order: name, rarity. Optionally add [power, charm, wit].',
'attachment_urls': None 'attachment_urls': None
} }
@ -116,20 +136,35 @@ in order: name, rarity',
be a number between 1 and 5', be a number between 1 and 5',
'attachment_urls': None 'attachment_urls': None
} }
if not (is_float(arguments[2]) and 0.0 < float(arguments[2]) <= 1.0):
return {
'message': f'{author} Invalid drop weight: \'{arguments[2]}\' \
must be a decimal value between 0.0 and 1.0',
'attachment_urls': None
}
character_id, file_id = add_character( if len(arguments) == 2:
pass
else:
if not all(arg.isnumeric() for arg in arguments[2:]):
return {
'message': f'{author} Invalid attributes: power, charm and \
wit must be numbers.',
'attachment_urls': None
}
card_id, file_id = add_card(
name=arguments[0],
rarity=int(arguments[1]),
image_url=image_url,
power=int(arguments[2]),
charm=int(arguments[3]),
wit=int(arguments[4])
)
return {
'message': f'{author} Added {arguments[0]}, ID {card_id}.',
'attachment_urls': [file_id]
}
card_id, file_id = add_card(
name=arguments[0], name=arguments[0],
rarity=int(arguments[1]), rarity=int(arguments[1]),
image_url=image_url image_url=image_url
) )
return { return {
'message': f'{author} Added {arguments[0]}, ID {character_id}.', 'message': f'{author} Added {arguments[0]}, ID {card_id}.',
'attachment_urls': [file_id] 'attachment_urls': [file_id]
} }
@ -137,59 +172,145 @@ must be a decimal value between 0.0 and 1.0',
def do_help(author: str) -> BotResponse: def do_help(author: str) -> BotResponse:
'''Provides a list of commands that the bot can do.''' '''Provides a list of commands that the bot can do.'''
return { return {
'message':f'{author} Here\'s what I can do:\n \ 'message': f'{author} Here\'s what I can do:\n\
- `roll` Pulls a random character.\ - `roll` Pulls a random card.\n\
- `create <name> <rarity>` Creates a character using a given image.\ - `create <name> <rarity>` Creates a card using a given image.\n\
- `signup` Registers your account.\ - `signup` Registers your account.\n\
- `delete_account` Deletes your account.\ - `delete_account` Deletes your account.\n\
- `help` Shows this message', - `help` Shows this message',
'attachment_urls': None 'attachment_urls': None
} }
def delete_account(author: str) -> BotResponse: def delete_account(author: str) -> BotResponse:
return { return {
'message':f'{author} ⚠️ This will permanently delete your account and all your cards.\n' 'message': f'{author} ⚠️ This will permanently delete your account \
'If youre sure, reply with `confirm_delete` to proceed.\n\n' and all your cards.\n'
'If you\'re sure, reply with `confirm_delete_account` to proceed.\n\n'
'**There is no undo.** Your gacha luck will be lost to the void... 💀✨', '**There is no undo.** Your gacha luck will be lost to the void... 💀✨',
'attachment_urls': None 'attachment_urls': None
} }
def confirm_delete(author: str) -> BotResponse: def confirm_delete(author: str) -> BotResponse:
db.delete_player(author)
delete_player(author)
return { return {
'message':f'{author} 🧼 Your account and all your cards have been deleted. RIP your gacha history 🕊️✨', 'message': f'{author} 🧼 Your account and all your cards have been \
deleted. RIP your gacha history 🕊',
'attachment_urls': None 'attachment_urls': None
} }
def do_whitelist(author: str, args: list[str]) -> BotResponse:
if len(args) == 0:
return {
'message': f'{author} Please specify an instance to whitelist',
'attachment_urls': None
}
if db.add_to_whitelist(args[0]):
return {
'message': f'{author} Whitelisted instance: {args[0]}',
'attachment_urls': None
}
else:
return {
'message': f'{author} Instance already whitelisted: {args[0]}',
'attachment_urls': None
}
def do_unwhitelist(author: str, args: list[str]) -> BotResponse:
if len(args) == 0:
return {
'message': f'{author} Please specify an instance to remove from \
the whitelist',
'attachment_urls': None
}
if db.remove_from_whitelist(args[0]):
return {
'message': f'{author} Unwhitelisted instance: {args[0]}',
'attachment_urls': None
}
else:
return {
'message': f'{author} Instance not whitelisted: {args[0]}',
'attachment_urls': None
}
def do_ban(author: str, args: list[str]) -> BotResponse:
if len(args) == 0:
return {
'message': f'{author} Please specify a user to ban',
'attachment_urls': None
}
if db.is_player_administrator(args[0]):
return {
'message': f'{author} Cannot ban other administrators.',
'attachment_urls': None
}
if db.ban_player(args[0]):
# Delete banned player's account
db.delete_player(args[0])
return {
'message': f'{author} 🔨 **BONK!** Get banned, {args[0]}!',
'attachment_urls': None
}
else:
return {
'message': f'{author} Player is already banned: {args[0]}',
'attachment_urls': None
}
def do_unban(author: str, args: list[str]) -> BotResponse:
if len(args) == 0:
return {
'message': f'{author} Please specify a user to unban',
'attachment_urls': None
}
if db.unban_player(args[0]):
return {
'message': f'{author} Player unbanned: {args[0]}!',
'attachment_urls': None
}
else:
return {
'message': f'{author} Player was not banned: {args[0]}',
'attachment_urls': None
}
def generate_response(notification: ParsedNotification) -> BotResponse | None: def generate_response(notification: ParsedNotification) -> BotResponse | None:
'''Given a command with arguments, processes the game state and '''Given a command with arguments, processes the game state and
returns a response''' returns a response'''
# Temporary response variable # Temporary response variable
res: BotResponse | None = None res: BotResponse | None = None
# TODO: Check if the user has an account
author = notification['author'] author = notification['author']
user_id = get_player(author) player_id = db.get_player(author)
command = notification['command'] command = notification['command']
# Check if the user is an administrator
# user_is_administrator = user_is_administrator()
# Unrestricted commands # Unrestricted commands
match command: match command:
case 'roll':
res = do_roll(author)
case 'signup': case 'signup':
res = do_signup(author) res = do_signup(author)
case 'help': case 'help':
res = do_help(author) res = do_help(author)
case 'roll':
res = do_roll(author)
case _: case _:
pass pass
if not user_id: # Commands beyond this point require the user to have an account
if not player_id:
return res return res
# User commands # User commands
@ -200,15 +321,29 @@ def generate_response(notification: ParsedNotification) -> BotResponse | None:
notification['arguments'], notification['arguments'],
notification['note_obj'] notification['note_obj']
) )
case 'signup':
res = do_signup(author)
case 'delete_account': case 'delete_account':
res = delete_account(author) res = delete_account(author)
case 'confirm_delete': case 'confirm_delete_account':
res = confirm_delete(author) res = confirm_delete(author)
case _: case _:
pass pass
# if not user_is_administrator:
return res # Commands beyond this point require the user to be an administrator
if not db.is_player_administrator(author):
return res
# Admin commands
match command:
case 'whitelist':
res = do_whitelist(author, notification['arguments'])
case 'unwhitelist':
res = do_unwhitelist(author, notification['arguments'])
case 'ban':
res = do_ban(author, notification['arguments'])
case 'unban':
res = do_unban(author, notification['arguments'])
case _:
pass
# Administrator commands go here # Administrator commands go here
return res

49
contributing.md Normal file
View file

@ -0,0 +1,49 @@
<!--
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 Waifu
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
-->
# Contributing to Kemoverse
Contributions are welcome with the following requirements:
## Licensing
- All contributions must be licensed under the **AGPLv3-or-later** or a compatible license.
- If you include code from another project (e.g., MIT Expat), please **list the license and copyright holders** clearly.
- If your contribution introduces code under a different license, you **must clarify this**, so the project can remain license-compliant.
## Attribution
- Please **add your name** to the license header of any file where youve made a **nontrivial change**.
- Nontrivial changes include:
- New features
- Logic changes
- Major refactoring or structure changes
- Not: typo fixes or simple reformatting
## Commit Messages (optional but appreciated)
- Try to write clear, descriptive commit messages.
## Communication
- If you're planning a major change or feature, please open an issue or contact the maintainers first.
- This helps avoid duplicated work and makes collaboration easier.
---
Thank you for helping grow the Kemoverse 💫

View file

@ -1,3 +1,19 @@
# Kemoverse - a gacha-style bot for the Fediverse.
# Copyright © 2025 Waifu
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
import subprocess import subprocess
import os import os
from watchdog.observers import Observer from watchdog.observers import Observer

BIN
docs/images/cards/bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 KiB

View file

@ -0,0 +1,365 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
version="1.1"
viewBox="0 0 800 1120"
id="svg1542"
sodipodi:docname="card_back.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1544"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="0.74732143"
inkscape:cx="298.39904"
inkscape:cy="531.23059"
inkscape:window-width="1920"
inkscape:window-height="1003"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg1542" />
<!-- Generator: Adobe Illustrator 29.3.1, SVG Export Plug-In . SVG Version: 2.1.0 Build 151) -->
<defs
id="defs1216">
<style
id="style1211">
.st0 {
fill: #97baa6;
}
.st1 {
fill: #4d4d4d;
}
.st2 {
fill: #c9d9cf;
}
.st3 {
stroke-width: 8px;
}
.st3, .st4 {
fill: none;
stroke: #000;
stroke-miterlimit: 10;
}
.st5 {
clip-path: url(#clippath-1);
}
.st6 {
fill: #fdfefd;
}
.st7 {
fill: #c8d3c0;
}
.st8 {
fill: #5d685c;
}
.st9 {
fill: #9aa096;
}
.st10 {
fill: #333;
}
.st11 {
fill: #d9ebe0;
}
.st12 {
display: none;
}
.st13 {
fill: #5aa02c;
}
.st4 {
stroke-width: 5px;
}
.st14 {
fill: #8dd35f;
}
.st15 {
fill: #cadad0;
}
</style>
<clipPath
id="clippath-1">
<path
class="st3"
d="M727.2,1072.8H79c-18.5-19.7-28.8-30.8-47.3-50.5V109.1c18.5-19.7,28.8-30.8,47.3-50.5h648.3c18.5,19.7,28.8,30.8,47.3,50.5v913.3c-18.5,19.7-28.8,30.8-47.3,50.5Z"
id="path1213" />
</clipPath>
</defs>
<g
id="Capa_4"
style="display:inline">
<rect
class="st15"
x="3.0999999"
y="2"
width="800"
height="1120"
rx="35.5"
ry="35.5"
id="rect1411" />
<g
id="g1457">
<g
class="st5"
clip-path="url(#clippath-1)"
id="g1453">
<g
id="g1451">
<polygon
class="st11"
points="212.4,610.9 25.6,52.2 348.6,466.3 "
id="polygon1413" />
<polygon
class="st2"
points="501.7,666.4 492.9,337.8 248.6,339.1 "
id="polygon1415" />
<polygon
class="st11"
points="492.9,337.8 485.3,51.5 248.6,339.1 "
id="polygon1417" />
<polygon
class="st6"
points="485.3,51.5 668.5,321.9 501.7,666.4 "
id="polygon1419" />
<polygon
class="st6"
points="25.6,52.2 248.6,339.1 485.3,51.5 "
id="polygon1421" />
<polygon
class="st6"
points="25.6,52.2 212.4,610.9 22.9,575 "
id="polygon1423" />
<polygon
class="st6"
points="212.4,610.9 348.6,466.3 501.7,666.4 "
id="polygon1425" />
<polygon
class="st2"
points="501.7,666.4 22.9,575 254.8,824.6 "
id="polygon1427" />
<polygon
class="st2"
points="783,488.8 783.8,51.5 501.7,666.4 "
id="polygon1429" />
<polygon
class="st11"
points="663.2,314.1 485.3,51.5 783.8,51.5 "
id="polygon1431" />
<polygon
class="st11"
points="22.9,575 254.8,824.6 23.6,973.4 "
id="polygon1433" />
<polygon
class="st6"
points="23.6,973.4 501.7,666.4 259.9,1030 "
id="polygon1435" />
<polygon
class="st6"
points="501.7,666.4 783,488.8 720.9,694.2 "
id="polygon1437" />
<polygon
class="st11"
points="501.7,666.4 259.9,1030 490.2,1079.9 "
id="polygon1439" />
<polygon
class="st11"
points="501.7,666.4 720.9,694.2 668.5,847.3 "
id="polygon1441" />
<polygon
class="st2"
points="501.7,666.4 490.2,1079.9 668.5,847.3 "
id="polygon1443" />
<polygon
class="st2"
points="783,488.8 668.5,847.3 783,1077.9 "
id="polygon1445" />
<polygon
class="st6"
points="783,1077.9 668.5,847.3 490.2,1077.9 "
id="polygon1447" />
<polygon
class="st2"
points="22.3,1077.9 23.6,973.4 490.2,1077.9 "
id="polygon1449" />
</g>
</g>
<path
class="st3"
d="M 727.2,1072.8 H 79 C 60.5,1053.1 50.2,1042 31.7,1022.3 V 109.1 C 50.2,89.4 60.5,78.3 79,58.6 h 648.3 c 18.5,19.7 28.8,30.8 47.3,50.5 v 913.3 c -18.5,19.7 -28.8,30.8 -47.3,50.5 z"
id="path1455" />
</g>
<ellipse
class="st0"
cx="409.39999"
cy="896.40002"
rx="217.39999"
ry="22.9"
id="ellipse1459" />
<g
id="g1491">
<path
class="st14"
d="m 685.7,539.4 c 0,158.5 -127.9,287.1 -285.6,287.1 -157.7,0 -223.6,-75 -265.5,-181.2 31.8,39.8 177.7,38.3 318.4,-8.3 137.2,-45.4 222.1,-118 224.2,-167.5 5.6,22.4 8.6,45.8 8.6,70 z"
id="path1461" />
<g
id="g1467">
<path
class="st13"
d="m 664.9,480.1 c -1.9,46.8 -82.5,115.3 -212.7,158.1 -133.5,44 -271.9,45.5 -302.1,7.9 -2.1,-2.7 -3.7,-5.5 -4.8,-8.6 -1,-3 -1.5,-6.2 -1.6,-9.4 -1.6,-46 85.7,-111 219.3,-155 133.5,-44 266,-51.5 295.4,-14.7 2.1,2.6 3.7,5.5 4.7,8.5 1.4,4.1 1.9,8.6 1.7,13.2 z"
id="path1463" />
<path
d="m 253.4,681.4 c -35.7,0 -89.5,-4.5 -109.9,-29.9 -2.8,-3.5 -4.9,-7.3 -6.2,-11.2 -1.2,-3.8 -1.9,-7.7 -2.1,-11.8 -0.9,-25.9 20.7,-55.4 62.5,-85.4 41,-29.4 97.3,-56.4 162.7,-77.9 65.6,-21.6 132.7,-35.1 189,-38.1 41.6,-2.2 95.4,0.6 115.7,26.1 2.7,3.4 4.8,7.2 6.1,11.1 1.7,5.1 2.4,10.5 2.2,16.2 v 0 c -1.1,26.2 -22.9,57.1 -61.5,86.9 -40.2,31.1 -94.5,58.4 -156.9,78.9 -64.6,21.3 -132.9,33.7 -192.3,35 -2.9,0 -6,0 -9.2,0 z m 317.7,-238 c -6.7,0 -13.6,0.2 -20.9,0.6 -54.8,2.8 -120.3,16.1 -184.5,37.2 -62.9,20.7 -119,47.6 -158.1,75.6 -35.9,25.8 -56.1,51.7 -55.4,71.1 0,2.4 0.5,4.8 1.2,7 0.7,2.1 1.8,4 3.3,5.9 12.7,15.9 52.1,24.6 105.5,23.5 57.8,-1.2 124.3,-13.3 187.3,-34.1 60.7,-20 113.2,-46.4 151.9,-76.3 34.1,-26.3 54.1,-53.4 55,-74.2 v 0 c 0.2,-3.6 -0.3,-7 -1.3,-10.2 -0.7,-2.1 -1.8,-4 -3.2,-5.9 -10.5,-13.2 -39.4,-20.3 -80.7,-20.3 z"
id="path1465" />
</g>
<path
d="m 401.3,833.3 c -77.5,0 -150.3,-30.2 -205.1,-84.9 -54.8,-54.8 -84.9,-127.6 -84.9,-205.1 0,-77.5 30.2,-150.3 84.9,-205.1 54.7,-54.8 127.6,-84.9 205.1,-84.9 77.5,0 150.3,30.2 205.1,84.9 54.8,54.7 84.9,127.6 84.9,205.1 0,77.5 -30.2,150.3 -84.9,205.1 -54.8,54.8 -127.6,84.9 -205.1,84.9 z m 0,-563 c -150.6,0 -273.1,122.5 -273.1,273.1 0,150.6 122.5,273.1 273.1,273.1 150.6,0 273.1,-122.5 273.1,-273.1 0,-150.6 -122.5,-273.1 -273.1,-273.1 z"
id="path1469" />
<g
id="g1489">
<path
d="m 202.7,496 -44.2,-22 4.2,-8.4 44.2,22 z m -11.8,-11.6 -8,-4.7 c 1.5,-3 2.2,-5.9 2,-8.7 -0.1,-2.8 -0.9,-5.4 -2.3,-7.9 -1.4,-2.5 -3.2,-4.7 -5.4,-6.7 -2.2,-2 -4.8,-3.7 -7.6,-5.1 l 4.2,-8.5 c 3.9,2 7.4,4.4 10.4,7.4 3,3 5.4,6.3 7.1,10 1.7,3.7 2.6,7.6 2.6,11.7 0,4.1 -1,8.2 -3.1,12.4 z m 23.2,-11.3 -24.1,-0.7 0.7,-9.4 28.5,-0.2 z"
id="path1471" />
<path
d="m 188.7,435.4 -6.8,-5 20.6,-27.7 6.8,5 z m 32.9,24.4 -39.7,-29.5 5.6,-7.5 39.7,29.5 z m -16.5,-12.2 -6.8,-5.1 16.8,-22.6 6.8,5.1 z m 16.5,12.2 -6.8,-5 20.6,-27.7 6.8,5 z"
id="path1473" />
<path
d="m 245.4,428.5 -33.9,-35.9 6.3,-6 33.9,35.9 z m -1.6,-22.2 -19.1,-14 -1.6,1.5 -5.6,-6.8 3.8,-3.6 17.9,13.5 0.2,-0.2 7.6,6.6 -3.1,2.9 z m 1.4,-1.4 -6.1,-8 0.3,-0.3 -12.5,-18.6 3.8,-3.6 6.4,6 -1.6,1.5 13,19.9 -3.2,3.1 z m 19.1,5.8 -33.9,-35.9 6.3,-6 33.9,35.9 z"
id="path1475" />
<path
d="m 290,392.1 c -10.7,7 -20.6,3.6 -29.8,-10.3 -9.5,-14.3 -8.9,-25 1.8,-32 10.7,-7 20.7,-3.4 30.2,10.9 9.2,13.9 8.5,24.4 -2.2,31.5 z m -4.8,-7.3 c 5.2,-3.4 4.8,-9.7 -1.2,-18.7 -6.2,-9.4 -12,-12.4 -17.2,-9 -5.2,3.4 -4.7,9.9 1.6,19.3 6,9.1 11.6,11.9 16.8,8.4 z"
id="path1477" />
<path
d="m 318.5,375.1 -31.7,-40.1 8.9,-3.9 25.9,33.6 0.6,-0.3 -7.1,-41.8 8.9,-3.9 7.9,50.5 -13.3,5.8 z"
id="path1479" />
<path
d="m 337.9,323.4 -2,-8.2 33.5,-8.2 2,8.2 z m 9.7,39.7 -11.8,-48 9.1,-2.2 11.8,48 z m -4.8,-19.9 -2,-8.2 27.3,-6.7 2,8.2 z m 4.8,19.9 -2,-8.2 33.5,-8.2 2,8.2 z"
id="path1481" />
<path
d="m 386.4,354.2 -3.4,-49.3 9.3,-0.6 3.4,49.3 z m 7.6,-18.7 -0.6,-8.4 9,-0.6 c 2.2,-0.2 3.8,-0.9 4.9,-2.2 1.1,-1.3 1.6,-3.2 1.4,-5.4 -0.2,-2.3 -0.9,-4 -2.2,-5.2 -1.3,-1.2 -3,-1.7 -5.2,-1.5 l -8.9,0.6 -1.4,-8.4 9.7,-0.7 c 5.4,-0.4 9.7,0.6 12.8,3 3.1,2.4 4.9,6 5.2,10.7 0.4,5.2 -0.8,9.3 -3.6,12.3 -2.7,3.1 -6.8,4.8 -12.2,5.2 l -9,0.6 z m 17.9,16.9 -11.1,-22.5 9.8,-0.7 12.4,22.4 z"
id="path1483" />
<path
d="m 441.9,354.2 c -2.8,-0.3 -5.6,-0.8 -8.2,-1.5 -2.6,-0.7 -5,-1.6 -7,-2.7 l 2.2,-9.2 c 2.5,1.3 5,2.4 7.5,3.2 2.5,0.8 4.8,1.4 7,1.6 2.5,0.2 4.5,0 5.9,-0.7 1.4,-0.7 2.2,-1.9 2.4,-3.6 0.2,-2.1 -1,-4 -3.6,-5.5 l -6.9,-4.1 c -3.4,-2.1 -5.9,-4.4 -7.6,-7.2 -1.7,-2.7 -2.4,-5.6 -2.1,-8.6 0.4,-4.3 2.2,-7.5 5.3,-9.5 3.1,-2.1 7.3,-2.8 12.6,-2.3 3.1,0.3 5.9,1.1 8.6,2.5 2.7,1.3 5,3.1 6.9,5.3 l -7.1,6.6 c -1.5,-1.7 -3,-3 -4.5,-4 -1.6,-1 -3.1,-1.5 -4.6,-1.7 -2.1,-0.2 -3.7,0 -5,0.8 -1.2,0.8 -1.9,1.9 -2.1,3.6 -0.1,1.1 0.2,2.2 0.9,3.2 0.7,1 1.8,2 3.2,3 l 6.4,4.1 c 3.3,2.1 5.9,4.5 7.5,7.1 1.7,2.6 2.4,5.3 2.1,8 -0.4,4.4 -2.4,7.6 -5.8,9.6 -3.4,2 -8.1,2.8 -14,2.2 z"
id="path1485" />
<path
d="m 467.8,356.7 13.1,-47.6 9,2.5 -13.1,47.6 z m 0,0 2.2,-8.2 33.3,9.1 -2.2,8.2 z m 5.5,-19.8 2.2,-8.2 27.1,7.4 -2.2,8.2 z m 5.4,-19.7 2.2,-8.2 33.3,9.1 -2.2,8.2 z"
id="path1487" />
</g>
</g>
<path
d="m 26.8,1054.1 20.5,20.8 H 26.9 v -20.8 M 19.8,1037 20,1081.9 H 64.2 L 19.9,1037 v 0 z"
id="path1493" />
<path
d="m 779.3,1054.1 v 20.8 h -20.5 l 20.5,-20.8 m 7.1,-17.1 -44.3,44.9 h 44.2 l 0.2,-44.9 v 0 z"
id="path1495" />
<path
d="m 779.3,56.7 v 20.8 c 0,0 -20.4,-20.8 -20.4,-20.8 h 20.4 m 6.9,-7 H 742 l 44.3,44.9 -0.2,-44.9 v 0 z"
id="path1497" />
<path
d="M 47.4,56.7 26.9,77.5 V 56.7 h 20.5 m 16.7,-7 H 19.9 L 19.7,94.6 64,49.7 v 0 z"
id="path1499" />
<polygon
points="771.1,53.4 765.1,53.4 765.1,27.4 41,27.4 41,52.7 35,52.7 35,21.4 771.1,21.4 "
id="polygon1501" />
<polygon
points="771.1,1102.6 35,1102.6 35,1077.7 41,1077.7 41,1096.6 765.1,1096.6 765.1,1077.2 771.1,1077.2 "
id="polygon1503" />
<g
id="g1513">
<g
id="g1509">
<polygon
class="st13"
points="166.6,1036.4 204.6,997.6 601.6,997.6 639.6,1036.4 639.6,1072.9 599.6,1072.9 599.6,1052.7 584.8,1037.6 221.4,1037.6 206.6,1052.7 206.6,1072.9 166.6,1072.9 "
id="polygon1505" />
<path
d="m 639.6,1075.9 h -40 c -1.7,0 -3,-1.3 -3,-3 v -19 l -13.1,-13.4 H 222.7 l -13.1,13.4 v 19 c 0,1.7 -1.3,3 -3,3 h -40 c -1.7,0 -3,-1.3 -3,-3 v -36.5 c 0,-0.8 0.3,-1.5 0.9,-2.1 l 38,-38.8 c 0.6,-0.6 1.3,-0.9 2.1,-0.9 h 397 c 0.8,0 1.6,0.3 2.1,0.9 l 38,38.8 c 0.5,0.6 0.9,1.3 0.9,2.1 v 36.5 c 0,1.7 -1.3,3 -3,3 z m -37,-6 h 34 v -32.3 l -36.3,-37 H 205.8 l -36.3,37 v 32.3 h 34 v -17.2 c 0,-0.8 0.3,-1.5 0.9,-2.1 l 14.8,-15.1 c 0.6,-0.6 1.3,-0.9 2.1,-0.9 h 363.4 c 0.8,0 1.6,0.3 2.1,0.9 l 14.8,15.1 c 0.5,0.6 0.9,1.3 0.9,2.1 v 17.2 z"
id="path1507" />
</g>
<polygon
points="183.6,1043.4 211.7,1014.6 594.4,1014.6 622.6,1043.4 622.6,1072.9 616.6,1072.9 616.6,1045.8 591.9,1020.6 214.2,1020.6 189.6,1045.8 189.6,1072.9 183.6,1072.9 "
id="polygon1511" />
</g>
<g
id="g1523">
<g
id="g1519">
<polygon
class="st13"
points="639.6,94.7 601.6,133.5 204.6,133.5 166.6,94.7 166.6,58.2 206.6,58.2 206.6,78.4 221.4,93.5 584.8,93.5 599.6,78.4 599.6,58.2 639.6,58.2 "
id="polygon1515" />
<path
d="m 601.6,136.5 h -397 c -0.8,0 -1.6,-0.3 -2.1,-0.9 l -38,-38.8 c -0.5,-0.6 -0.9,-1.3 -0.9,-2.1 V 58.2 c 0,-1.7 1.3,-3 3,-3 h 40 c 1.7,0 3,1.3 3,3 v 19 l 13.1,13.4 h 360.9 l 13.1,-13.4 v -19 c 0,-1.7 1.3,-3 3,-3 h 40 c 1.7,0 3,1.3 3,3 v 36.5 c 0,0.8 -0.3,1.5 -0.9,2.1 l -38,38.8 c -0.6,0.6 -1.3,0.9 -2.1,0.9 z m -395.8,-6 h 394.5 l 36.3,-37 V 61.2 h -34 v 17.2 c 0,0.8 -0.3,1.5 -0.9,2.1 l -14.8,15.1 c -0.6,0.6 -1.3,0.9 -2.1,0.9 H 221.4 c -0.8,0 -1.6,-0.3 -2.1,-0.9 L 204.5,80.5 c -0.5,-0.6 -0.9,-1.3 -0.9,-2.1 V 61.2 h -34 v 32.3 l 36.3,37 z"
id="path1517" />
</g>
<polygon
points="616.6,85.4 616.6,58.2 622.6,58.2 622.6,87.8 594.4,116.5 211.7,116.5 183.6,87.8 183.6,58.2 189.6,58.2 189.6,85.4 214.2,110.5 591.9,110.5 "
id="polygon1521" />
</g>
<polygon
points="53.1,87.7 57.4,82.1 88.5,106 181.9,106.3 181.9,113.3 86.1,113 "
id="polygon1525" />
<polygon
points="626.1,105.6 717.2,106 750.2,81.7 754.4,87.4 719.5,113 626.1,112.6 "
id="polygon1527" />
<polygon
points="622.1,1021.7 622,1014.7 719.5,1014.2 758.1,1042.9 753.9,1048.5 717.2,1021.2 "
id="polygon1529" />
<polygon
points="86.2,1014.2 184.9,1014.3 184.9,1021.3 88.5,1021.2 51.8,1048.5 47.6,1042.9 "
id="polygon1531" />
<rect
x="20.1"
y="133.89999"
width="78.800003"
height="7"
transform="rotate(-45,59.494888,137.35641)"
id="rect1533" />
<rect
x="743.09998"
y="97.900002"
width="7"
height="79.900002"
transform="rotate(-44.9,746.27247,137.92587)"
id="rect1535" />
<rect
x="707"
y="986.40002"
width="79.199997"
height="7"
transform="rotate(-44.6,746.95439,990.10238)"
id="rect1537" />
<rect
x="55.200001"
y="948.70001"
width="7"
height="80.900002"
transform="rotate(-45,58.814477,989.13825)"
id="rect1539" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -0,0 +1,338 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
version="1.1"
viewBox="0 0 800 1120"
id="svg2256"
sodipodi:docname="card_base_gray.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
xml:space="preserve"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
id="namedview2258"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="4.2274884"
inkscape:cx="147.84192"
inkscape:cy="846.12887"
inkscape:window-width="1920"
inkscape:window-height="1003"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg2256" /><!-- Generator: Adobe Illustrator 29.3.1, SVG Export Plug-In . SVG Version: 2.1.0 Build 151) --><defs
id="defs2109"><style
id="style2107">
.st0 {
fill: #4d4d4d;
}
.st1 {
fill: #c8d3c0;
}
.st2 {
fill: #5d685c;
}
.st3 {
fill: #9aa096;
}
.st4 {
fill: #333;
}
.st5 {
display: none;
}
.st6 {
fill: none;
stroke: #000;
stroke-miterlimit: 10;
stroke-width: 5px;
}
.st7 {
fill: #cadad0;
}
</style><style
id="style2482">
.st0 {
fill: #4d4d4d;
}
.st1 {
fill: #c8d3c0;
}
.st2 {
fill: #5d685c;
}
.st3 {
fill: #9aa096;
}
.st4 {
fill: #333;
}
.st5 {
display: none;
}
.st6 {
fill: none;
stroke: #000;
stroke-miterlimit: 10;
stroke-width: 5px;
}
.st7 {
fill: #cadad0;
}
</style><style
id="style2712">
.st0 {
fill: #4d4d4d;
}
.st1 {
fill: #c8d3c0;
}
.st2 {
fill: #5d685c;
}
.st3 {
fill: #9aa096;
}
.st4 {
fill: #333;
}
.st5 {
display: none;
}
.st6 {
fill: none;
stroke: #000;
stroke-miterlimit: 10;
stroke-width: 5px;
}
.st7 {
fill: #cadad0;
}
</style></defs><g
id="Capa_1"
style="display:inline"><rect
class="st7"
x="1"
y="0.30000001"
width="800"
height="1120"
rx="35.5"
ry="35.5"
id="rect2111" /><path
d="M 731.8,1072.7 H 69.5 C 52,1055.2 42.2,1045.4 24.7,1027.9 V 104.8 C 42.5,87 52.6,76.9 70.4,59.1 h 662.3 c 17.4,17.4 27.4,27.4 44.8,44.8 V 1027 c -17.8,17.8 -27.9,27.9 -45.7,45.7 z"
id="path2113" /><g
id="g2119"><path
class="st4"
d="M 662.9,856.5 H 139.3 C 124.2,841.4 115.7,832.9 100.5,817.7 V 147.6 c 15.1,-15.1 23.6,-23.6 38.8,-38.8 h 523.6 c 15.1,15.1 23.6,23.6 38.8,38.8 v 670.2 c -15.1,15.1 -23.6,23.6 -38.8,38.8 z"
id="path2115" /><path
class="st1"
d="M 663.7,857.4 H 138.6 L 99.7,817.7 V 147.6 l 38.9,-39.7 h 525.1 l 38.9,39.7 v 670.2 l -38.9,39.7 z M 139.3,855.6 H 662.9 L 700.8,817 V 148.3 L 662.9,109.7 H 139.3 l -37.9,38.6 v 668.6 l 37.9,38.6 z"
id="path2117" /></g><path
class="st1"
d="M 686.9,928.7 H 115.3 L 67.9,880.3 V 130.5 l 47.4,-48.4 h 571.5 l 47.4,48.4 v 749.8 l -47.4,48.4 z m -570.8,-1.9 h 570 l 46.3,-47.3 V 131.2 L 686.1,83.9 h -570 l -46.3,47.3 v 748.3 z"
id="path2121" /><path
class="st2"
d="m 68.7,577.7 v 0 c -5,-5 -7.8,-7.8 -12.8,-12.8 V 400.4 c 5,-5 7.8,-7.8 12.8,-12.8 v 0 c 5,5 7.8,7.8 12.8,12.8 v 164.5 c -5,5 -7.8,7.8 -12.8,12.8 z"
id="path2123" /><path
class="st2"
d="m 733.5,575.9 v 0 c -5,-5 -7.8,-7.8 -12.8,-12.8 V 398.6 c 5,-5 7.8,-7.8 12.8,-12.8 v 0 c 5,5 7.8,7.8 12.8,12.8 v 164.5 c -5,5 -7.8,7.8 -12.8,12.8 z"
id="path2125" /><path
class="st2"
d="m 68.7,788.5 v 0 c -5,-5 -7.8,-7.8 -12.8,-12.8 V 611.2 c 5,-5 7.8,-7.8 12.8,-12.8 v 0 c 5,5 7.8,7.8 12.8,12.8 v 164.5 c -5,5 -7.8,7.8 -12.8,12.8 z"
id="path2127" /><path
class="st2"
d="m 733.5,786.6 v 0 L 720.7,773.8 V 609.3 c 5,-5 7.8,-7.8 12.8,-12.8 v 0 c 5,5 7.8,7.8 12.8,12.8 v 164.5 c -5,5 -7.8,7.8 -12.8,12.8 z"
id="path2129" /><path
class="st2"
d="m 68.7,362 v 0 c -5,-5 -7.8,-7.8 -12.8,-12.8 V 184.7 c 5,-5 7.8,-7.8 12.8,-12.8 v 0 c 5,5 7.8,7.8 12.8,12.8 v 164.5 c -5,5 -7.8,7.8 -12.8,12.8 z"
id="path2131" /><path
class="st2"
d="m 733.5,360.1 v 0 c -5,-5 -7.8,-7.8 -12.8,-12.8 V 182.8 c 5,-5 7.8,-7.8 12.8,-12.8 v 0 c 5,5 7.8,7.8 12.8,12.8 v 164.5 c -5,5 -7.8,7.8 -12.8,12.8 z"
id="path2133" /><path
class="st3"
d="m 184.6,1073.1 v -28.4 c 10.3,-10.5 16.1,-16.4 26.4,-27 h 380.2 c 10.3,10.5 16.1,16.4 26.4,27 v 28.4"
id="path2135" /><polygon
points="215.1,1027.9 194.5,1049 194.5,1073.1 192.7,1073.1 192.7,1048.2 214.4,1026.1 587.8,1026.1 609.5,1048.2 609.5,1073.1 607.7,1073.1 607.7,1049 587.1,1027.9 "
id="polygon2137" /><polygon
class="st1"
points="122,127 120.7,128.4 74.2,82.1 40.3,116.8 40.3,895.6 60.8,904.2 122.4,838.6 123.7,839.9 61.2,906.4 38.5,896.9 38.5,116 74.1,79.5 "
id="polygon2139" /><polygon
class="st1"
points="741.8,904.2 762.3,895.6 762.3,116.8 728.4,82.1 681.9,128.4 680.6,127 728.5,79.5 764.2,116 764.2,896.9 741.4,906.4 740.9,905.9 678.9,839.9 680.2,838.6 "
id="polygon2141" /><polygon
class="st1"
points="51.4,967.3 98.3,910.3 99.7,911.4 53,968.2 53,1015.2 87.5,1044.9 186,1044.9 186,1046.7 86.8,1046.7 51.2,1016.1 51.2,967.6 "
id="polygon2143" /><polygon
class="st1"
points="51.9,1002.8 115,927.2 116.4,928.3 55.8,1001 112.7,1001 133.1,1021.8 133.1,1072.3 131.2,1072.3 131.2,1022.6 111.9,1002.8 "
id="polygon2145" /><g
id="g2151"><path
class="st0"
d="m 292.8,907.1 c -9.5,0 -17.2,-7.9 -17.2,-17.6 0,-9.7 7.7,-17.6 17.2,-17.6 9.5,0 17.2,7.9 17.2,17.6 0,9.7 -7.7,17.6 -17.2,17.6 z m 0,-33.6 c -8.7,0 -15.8,7.2 -15.8,16.1 0,8.9 7.1,16.1 15.8,16.1 8.7,0 15.8,-7.2 15.8,-16.1 0,-8.9 -7.1,-16.1 -15.8,-16.1 z"
id="path2147" /><polygon
class="st0"
points="300.2,899.6 292.8,896.8 285.5,899.6 285.9,891.6 281,885.4 288.6,883.3 292.8,876.6 297.1,883.3 304.7,885.4 299.8,891.6 "
id="polygon2149" /></g><g
id="g2157"><path
class="st0"
d="m 346.7,907.1 c -9.5,0 -17.2,-7.9 -17.2,-17.6 0,-9.7 7.7,-17.6 17.2,-17.6 9.5,0 17.2,7.9 17.2,17.6 0,9.7 -7.7,17.6 -17.2,17.6 z m 0,-33.6 c -8.7,0 -15.8,7.2 -15.8,16.1 0,8.9 7.1,16.1 15.8,16.1 8.7,0 15.8,-7.2 15.8,-16.1 0,-8.9 -7.1,-16.1 -15.8,-16.1 z"
id="path2153" /><polygon
class="st0"
points="354,899.6 346.7,896.8 339.3,899.6 339.8,891.6 334.8,885.4 342.4,883.3 346.7,876.6 351,883.3 358.5,885.4 353.6,891.6 "
id="polygon2155" /></g><g
id="g2163"><path
class="st0"
d="m 400.5,907.1 c -9.5,0 -17.2,-7.9 -17.2,-17.6 0,-9.7 7.7,-17.6 17.2,-17.6 9.5,0 17.2,7.9 17.2,17.6 0,9.7 -7.7,17.6 -17.2,17.6 z m 0,-33.6 c -8.7,0 -15.8,7.2 -15.8,16.1 0,8.9 7.1,16.1 15.8,16.1 8.7,0 15.8,-7.2 15.8,-16.1 0,-8.9 -7.1,-16.1 -15.8,-16.1 z"
id="path2159" /><polygon
class="st0"
points="407.9,899.6 400.5,896.8 393.2,899.6 393.6,891.6 388.7,885.4 396.2,883.3 400.5,876.6 404.8,883.3 412.4,885.4 407.5,891.6 "
id="polygon2161" /></g><g
id="g2169"><path
class="st0"
d="m 454.4,907.1 c -9.5,0 -17.2,-7.9 -17.2,-17.6 0,-9.7 7.7,-17.6 17.2,-17.6 9.5,0 17.2,7.9 17.2,17.6 0,9.7 -7.7,17.6 -17.2,17.6 z m 0,-33.6 c -8.7,0 -15.8,7.2 -15.8,16.1 0,8.9 7.1,16.1 15.8,16.1 8.7,0 15.8,-7.2 15.8,-16.1 0,-8.9 -7.1,-16.1 -15.8,-16.1 z"
id="path2165" /><polygon
class="st0"
points="461.7,899.6 454.4,896.8 447,899.6 447.4,891.6 442.5,885.4 450.1,883.3 454.4,876.6 458.7,883.3 466.2,885.4 461.3,891.6 "
id="polygon2167" /></g><g
id="g2175"><path
class="st0"
d="m 508.2,907.1 c -9.5,0 -17.2,-7.9 -17.2,-17.6 0,-9.7 7.7,-17.6 17.2,-17.6 9.5,0 17.2,7.9 17.2,17.6 0,9.7 -7.7,17.6 -17.2,17.6 z m 0,-33.6 c -8.7,0 -15.8,7.2 -15.8,16.1 0,8.9 7.1,16.1 15.8,16.1 8.7,0 15.8,-7.2 15.8,-16.1 0,-8.9 -7.1,-16.1 -15.8,-16.1 z"
id="path2171" /><polygon
class="st0"
points="515.6,899.6 508.2,896.8 500.9,899.6 501.3,891.6 496.4,885.4 503.9,883.3 508.2,876.6 512.5,883.3 520.1,885.4 515.2,891.6 "
id="polygon2173" /></g><polygon
class="st1"
points="96.5,117 81.9,102 96.5,87.1 111.2,102 "
id="polygon2177" /><polygon
class="st1"
points="706.5,117 691.9,102 706.5,87.1 721.2,102 "
id="polygon2179" /><polygon
class="st1"
points="726.8,901.6 712.1,886.6 726.8,871.6 741.5,886.6 "
id="polygon2181" /><polygon
class="st1"
points="76.6,901.6 62,886.6 76.6,871.6 91.3,886.6 "
id="polygon2183" /><polygon
class="st1"
points="52.1,1016.9 37.4,1001.9 52.1,987 66.7,1001.9 "
id="polygon2185" /><polygon
class="st1"
points="750.2,1015.2 750.2,968.2 703.6,911.4 704.9,910.3 752,967.6 752,1016.1 751.7,1016.3 716.5,1046.7 617.3,1046.7 617.3,1044.9 715.8,1044.9 "
id="polygon2187" /><polygon
class="st1"
points="747.4,1001 686.9,928.3 688.2,927.2 751.4,1002.8 691.4,1002.8 672,1022.6 672,1072.3 670.2,1072.3 670.2,1021.8 690.6,1001 "
id="polygon2189" /><polygon
class="st1"
points="751.2,1016.9 765.9,1001.9 751.2,987 736.5,1001.9 "
id="polygon2191" /><path
d="m 23.7,1052.4 20.5,20.8 H 23.8 v -20.8 m -7.2,-17.1 0.2,44.9 H 61 l -44.3,-44.9 v 0 z"
id="path2193" /><path
d="m 777.2,1052.4 v 20.8 h -20.5 l 20.5,-20.8 m 7,-17.1 -44.3,44.9 h 44.2 l 0.2,-44.9 v 0 z"
id="path2195" /><path
d="m 776.8,54 v 20.8 c 0,0 -20.4,-20.8 -20.4,-20.8 h 20.4 m 7,-7 H 739.6 L 783.9,91.9 783.7,47 v 0 z"
id="path2197" /><path
d="M 44.9,54 24.4,74.8 V 54 H 44.9 M 61.7,47 H 17.5 L 17.3,91.9 61.6,47 v 0 z"
id="path2199" /><polyline
class="st6"
points="34.6 51 34.6 19.7 764.6 19.7 764.6 51.7"
id="polyline2201" /><polyline
class="st6"
points="34.6 1076 34.6 1097.9 764.6 1097.9 764.6 1075.5"
id="polyline2203" /></g><g
id="g2710"
transform="translate(0.4742529,4.915169)"
style="display:inline"><g
id="Capa_2"
style="display:inline"><polygon
class="st3"
points="683,817.3 653.3,844.4 148.9,844.4 120.3,815.6 166.1,766.3 635.5,766.3 "
id="polygon2581" /><polygon
points="574.1,134.9 547.6,172.9 248.6,172.9 222.2,134.9 "
id="polygon2583" /><path
class="st3"
d="m 617.6,58.3 v 52.8 c -10.4,10.4 -16.3,16.3 -26.7,26.7 H 211.3 C 200.9,127.4 195,121.5 184.6,111.1 V 58.3 C 195,47.9 200.9,42 211.3,31.6 H 591 c 10.4,10.4 16.3,16.3 26.7,26.7 z"
id="path2585" /><path
d="M 588.2,130.4 H 214 L 191.8,107.8 V 61.7 L 214,39.1 h 374.2 l 22.2,22.6 v 46.1 z m -372.7,-3.7 h 371.2 l 20.1,-20.5 V 63.1 L 586.7,42.6 H 215.5 l -20.1,20.5 v 43.1 z"
id="path2587" /><polygon
points="201.3,800.4 215.3,800.4 207.1,810.8 215.9,810.8 202.1,829.6 206.2,815.5 197.1,815.5 "
id="polygon2589" /><polygon
points="132.2,827.5 129.6,824.9 174.2,777.2 626.4,777.2 673.8,826.2 671.3,828.8 624.9,780.8 175.8,780.8 "
id="polygon2591" /><path
d="m 366.2,808.4 -3.5,-5.5 -6,-0.5 -6,6.8 -5.9,-6.8 c -2.3,0.2 -3.7,0.3 -6,0.5 l -3.5,5.5 v 7.4 l 15.3,12.5 v 0.2 c 0,0 0.1,0 0.1,0 h 0.1 c 0,0 0,0 0,0 L 366.1,816 v -7.4 z"
id="path2593" /><polygon
points="494.4,816.5 489.9,828.6 485.5,816.5 473.6,812 485.5,807.5 489.9,795.3 494.4,807.5 506.3,812 "
id="polygon2595" /><polygon
points="489.9,816.8 481.1,821 485.2,812 481.1,802.9 489.9,807.1 498.8,802.9 494.7,812 498.8,821 "
id="polygon2597" /></g></g><g
id="g2940"
transform="translate(-0.26235173,-0.08301381)"
style="display:inline"><g
id="Capa_3-3"
style="display:inline"><g
id="g2834"><path
class="st1"
d="m 292.8,907.1 c -9.5,0 -17.2,-7.9 -17.2,-17.6 0,-9.7 7.7,-17.6 17.2,-17.6 9.5,0 17.2,7.9 17.2,17.6 0,9.7 -7.7,17.6 -17.2,17.6 z m 0,-33.6 c -8.7,0 -15.8,7.2 -15.8,16.1 0,8.9 7.1,16.1 15.8,16.1 8.7,0 15.8,-7.2 15.8,-16.1 0,-8.9 -7.1,-16.1 -15.8,-16.1 z"
id="path2830" /><polygon
class="st1"
points="292.8,896.8 285.5,899.6 285.9,891.6 281,885.4 288.6,883.3 292.8,876.6 297.1,883.3 304.7,885.4 299.8,891.6 300.2,899.6 "
id="polygon2832" /></g><g
id="g2840"
style="display:inline"><path
class="st1"
d="m 346.7,907.1 c -9.5,0 -17.2,-7.9 -17.2,-17.6 0,-9.7 7.7,-17.6 17.2,-17.6 9.5,0 17.2,7.9 17.2,17.6 0,9.7 -7.7,17.6 -17.2,17.6 z m 0,-33.6 c -8.7,0 -15.8,7.2 -15.8,16.1 0,8.9 7.1,16.1 15.8,16.1 8.7,0 15.8,-7.2 15.8,-16.1 0,-8.9 -7.1,-16.1 -15.8,-16.1 z"
id="path2836" /><polygon
class="st1"
points="342.4,883.3 346.7,876.6 351,883.3 358.5,885.4 353.6,891.6 354,899.6 346.7,896.8 339.3,899.6 339.8,891.6 334.8,885.4 "
id="polygon2838" /></g><g
id="g2846"
style="display:inline"><path
class="st1"
d="m 400.5,907.1 c -9.5,0 -17.2,-7.9 -17.2,-17.6 0,-9.7 7.7,-17.6 17.2,-17.6 9.5,0 17.2,7.9 17.2,17.6 0,9.7 -7.7,17.6 -17.2,17.6 z m 0,-33.6 c -8.7,0 -15.8,7.2 -15.8,16.1 0,8.9 7.1,16.1 15.8,16.1 8.7,0 15.8,-7.2 15.8,-16.1 0,-8.9 -7.1,-16.1 -15.8,-16.1 z"
id="path2842" /><polygon
class="st1"
points="396.2,883.3 400.5,876.6 404.8,883.3 412.4,885.4 407.5,891.6 407.9,899.6 400.5,896.8 393.2,899.6 393.6,891.6 388.7,885.4 "
id="polygon2844" /></g><g
id="g2852"
style="display:inline"><path
class="st1"
d="m 454.4,907.1 c -9.5,0 -17.2,-7.9 -17.2,-17.6 0,-9.7 7.7,-17.6 17.2,-17.6 9.5,0 17.2,7.9 17.2,17.6 0,9.7 -7.7,17.6 -17.2,17.6 z m 0,-33.6 c -8.7,0 -15.8,7.2 -15.8,16.1 0,8.9 7.1,16.1 15.8,16.1 8.7,0 15.8,-7.2 15.8,-16.1 0,-8.9 -7.1,-16.1 -15.8,-16.1 z"
id="path2848" /><polygon
class="st1"
points="450.1,883.3 454.4,876.6 458.7,883.3 466.2,885.4 461.3,891.6 461.7,899.6 454.4,896.8 447,899.6 447.4,891.6 442.5,885.4 "
id="polygon2850" /></g><g
id="g2858"
style="display:inline"><path
class="st1"
d="m 508.2,907.1 c -9.5,0 -17.2,-7.9 -17.2,-17.6 0,-9.7 7.7,-17.6 17.2,-17.6 9.5,0 17.2,7.9 17.2,17.6 0,9.7 -7.7,17.6 -17.2,17.6 z m 0,-33.6 c -8.7,0 -15.8,7.2 -15.8,16.1 0,8.9 7.1,16.1 15.8,16.1 8.7,0 15.8,-7.2 15.8,-16.1 0,-8.9 -7.1,-16.1 -15.8,-16.1 z"
id="path2854" /><polygon
class="st1"
points="512.5,883.3 520.1,885.4 515.2,891.6 515.6,899.6 508.2,896.8 500.9,899.6 501.3,891.6 496.4,885.4 503.9,883.3 508.2,876.6 "
id="polygon2856" /></g></g></g></svg>

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
docs/images/logo/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

View file

@ -0,0 +1,181 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg id="Capa_2" data-name="Capa 2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 616.33 666.91">
<defs>
<style>
.cls-1 {
fill: #494949;
}
.cls-2 {
fill: #c9d9cf;
}
.cls-3, .cls-4 {
fill: none;
}
.cls-3, .cls-4, .cls-5 {
stroke: #000;
stroke-width: 14.61px;
}
.cls-3, .cls-5 {
stroke-linejoin: round;
}
.cls-6 {
fill: #2e3432;
}
.cls-7 {
fill: #fdfefd;
}
.cls-4 {
stroke-miterlimit: 10;
}
.cls-5 {
fill: #5aa02c;
}
.cls-8 {
fill: #116803;
}
.cls-9 {
font-family: CascadiaMonoRoman-Bold, 'Cascadia Mono';
font-size: 63.38px;
font-variation-settings: 'wght' 700;
font-weight: 700;
}
.cls-10 {
fill: #8dd35f;
}
</style>
</defs>
<g id="Capa_2-2" data-name="Capa 2">
<g>
<path class="cls-5" d="M528.42,278.54c-1.66,40.37-71.17,99.42-183.43,136.41-115.15,37.94-234.57,39.23-260.58,6.8-1.85-2.3-3.23-4.77-4.1-7.42-.86-2.61-1.33-5.31-1.42-8.08-1.37-39.71,73.91-95.74,189.18-133.71,115.15-37.94,229.48-44.44,254.82-12.7,1.81,2.26,3.16,4.7,4.03,7.35,1.18,3.58,1.67,7.38,1.5,11.36Z"/>
<g>
<g>
<path class="cls-2" d="M203.48,220.39c-.74-2.53.04-5.27.12-7.87.2-6.48-.94-15.51,3.34-20.66.84-1.01,2.1-2.25,3.04-3.3,6.86-7.58,14.17-14.76,21.23-22.17.61-.64,1.98-3.05,2.78-2.77.41.15,2.02,3.51,2.32,4.22,2.69,6.3,4.29,12.9,6.03,19.45.15.57,1.63,4.57,1.83,4.73.12.09.76-.07.46-.51l.43.6c-.18.38-.45,1.05-.58,1.29-.02.04-.51-.03-.52.31s.35,1.03.26,1.19c-.06.1-1.83.61-2.2.82-5.95,3.39-12.31,8.15-18.12,11.89-4.9,3.16-10.01,6.09-14.88,9.3-2.2,1.45-3.31,2.47-5.56,3.49ZM233.17,167.74l-20.51,19.89c.53.67,3.78-.62,4.55-.91,5.05-1.93,10.12-5.48,15.31-7.18,1.31-.43,2.5-.06,3.66-.89l-3.02-10.92Z"/>
<path class="cls-6" d="M385.54,127.79c.4.31.7.61.86,1.11.38,1.22-1.2,6.54-1.69,8.09-.91,2.88-2.05,5.68-3.02,8.53-.59.13-.68.52-.9.97-2.36,4.92-4.14,10.47-6.18,15.55-1.06,2.63-4.05,8-4.27,10.47-.03.36.04.18.06.28.08.27.12.56.19.83-2.22,1.12-4.04,2.83-6.1,4.09-2.35,1.43-5.38,2.49-7.81,3.85-3.01,1.68-18.65,11.11-20.91,10.4-.03,0-.01-.45-.32-.5-6.57-1.1-10.38-3.07-16.42-5.49-.47-.19-1.37-.36-1.41-.96.81.05,1.03-.09,1.66-.37.8-.37,1.39-.55,1.55-1.51.78,1.33,1.77,1.01,3.2.94,4.35-.21,8.67-.73,13.01-1.07,1.23-.1,5.52.07,6.18-.42,7.3-9.46,14.25-19.21,21.81-28.46,6-7.35,14.99-15.71,18.97-24.08.21-.45.35-.86.27-1.37.41-.3.86-.57,1.26-.87Z"/>
<path class="cls-6" d="M370.41,172.79s-.07-.27-.06-.28c.23-.17.35.34.06.28Z"/>
<path class="cls-2" d="M282.96,178.3c2.68.78,3.97,1.55,7.11,1.88-.57.36.55.52.71.57,12.01,3.96,23.68,8.88,35.16,14.18,2.42,1.12,4.46,2.69,7.03,3.53.27.09,2.18.02.77.63-1.01.43-2.08.67-3.11,1-.05-.41-1.02-.99-1.31-1.11-2.09-.85-4.41-1.48-6.56-2.4-3.98-1.71-16.81-8.49-20.25-8.14-7.71.79-14.33,4.02-21.51,6.29-1.88.59-3.37.26-5.11.55-9.81,1.68-19.33,4.72-28.86,7.41s-15.2,4.08-23.81,8.57c-.36-.8.33-.57.74-.82,9.03-5.64,17.79-11.35,26.88-16.72,4.13-2.44,7.94-5.25,12.04-7.7,4.4-2.62,10-5.7,14.74-7.42.5-.18.82-.7,1.3-.86,1.02-.35,1.95.32,2.96.56.4.1.92-.06,1.07-.02Z"/>
<path class="cls-1" d="M384.28,128.66c.08.5-.06.92-.27,1.37-3.98,8.37-12.97,16.73-18.97,24.08-7.56,9.26-14.52,19-21.81,28.46-.66.49-4.95.32-6.18.42-4.34.34-8.66.87-13.01,1.07-1.43.07-2.43.39-3.2-.94-.16.96-.74,1.15-1.55,1.51-.2-.54.21-1.67.51-2.05.88-1.12,3.84-2.99,5.11-4.19,10.78-10.24,21.63-20.81,33.05-30.14,8.34-6.81,17.57-13.13,26.34-19.59Z"/>
<path class="cls-6" d="M273.58,127.78c.16-.87,1.62-4.75,2.19-5.14.38-.27.45-.01.52.32.3,1.42.25,3.38.5,4.83,2.65,15.1,2.64,30.52,4.51,45.78.14,1.18-.61,2.47.61,3.87.28.32,1.02.18,1.06.86-.15-.04-.67.12-1.07.02-1-.25-1.94-.91-2.96-.56-.48.16-.8.68-1.3.86-4.74,1.72-10.34,4.79-14.74,7.42-2.04.14-3.86,1.8-5.75,2.44-4.62,1.58-7.57,3.43-11.92,5.5-.84.4-.54.09-.74-.59.13-.25.4-.91.58-1.29.45-.99.94-1.98,1.37-2.93l1.27,1.16,21.11-19.88c.91-6.57,1.74-13.18,2.5-19.77.82-7.15.98-16.07,2.26-22.89Z"/>
<path class="cls-1" d="M273.58,127.78c-1.28,6.81-1.44,15.74-2.26,22.89-.76,6.59-1.59,13.2-2.5,19.77l-21.11,19.88-1.27-1.16c8.89-19.2,15.74-39.25,25.26-58.18l1.88-3.2Z"/>
<path class="cls-1" d="M372.52,294.16c-.48,1.09-1.72,1.07-2.53,1.61-1.21.8-2.81,3.18-4,4.35-4.73,4.66-9.66,9.65-14.65,14-.73.64-1.67,1.48-2.44,2.02-.23.16-.69.67-.76.11,2.1-.9,1.03-1.37,1.3-2.27.04-.13.5-.32.61-.67,2.99-9.14,5.74-18.4,9.33-27.33,2.52-6.26,5.56-12.19,7.71-18.61.5-1.49,1.7-7.34,2.7-8.02.75-.52,1.06-.27,1.09.57-.26.7-.27,12.98-.28,14.88-.03,6.44.37,12.95.47,19.38.48-.09.96,0,1.44-.02Z"/>
<path class="cls-1" d="M317.01,184.86l-.21.34.55-.12c.08.02.18-.07.28-.06.04.6.94.77,1.41.96,6.04,2.42,9.85,4.39,16.42,5.49.31.05.29.49.32.5-.24.55-.08.92.15,1.43.65,1.4,1.84,3.06,2.62,4.52.16.3.71.93.3,1.21-.55-.72-1.87-1.98-2.45-.72-.57,1.24-.58,5.63-.78,7.33-.3,2.49-.86,2.74-.42,5.55-.17.07-.41.05-.55.12-1.16-2.45-2.69-4.7-3.42-7.35-1.78.3-3.66.7-5.45.92-5.17.65-10.39,1.18-15.48,2.32-1.01.23-2.79,1.66-3.29.18,7.83-2.6,15.76-4.84,23.63-7.37,1.03-.33,2.1-.57,3.11-1,1.41-.61-.5-.54-.77-.63-2.57-.85-4.61-2.41-7.03-3.53-11.48-5.3-23.16-10.22-35.16-14.18-.16-.05-1.28-.21-.71-.57,4.01.42,8,.44,12.18,1.18,4.99.88,9.9,2.63,14.75,3.5Z"/>
<path class="cls-1" d="M381.7,145.53c-2.06,6.08-3.96,12.69-6.91,18.35-.13.25.03.72-.15.93-.15.17-.65.14-.71.24-.13.23.33.88.2,1.33-.26.9-1.61,3.14-2.04,4.52-.24.76.12,1.52-.71,2.28-.19.08-.5.33-.77.46-.07-.27-.11-.56-.19-.83.28.06.17-.45-.06-.28.22-2.47,3.21-7.84,4.27-10.47,2.04-5.08,3.82-10.63,6.18-15.55.22-.46.3-.85.9-.97Z"/>
<path class="cls-1" d="M370.41,172.79c-.03-.1-.09.08-.06-.28-.01,0,.05.27.06.28Z"/>
<path class="cls-1" d="M385.54,127.79c1.15-.85,2.5-2.62,4.02-2.8-1.17,3.81-2.49,7.53-4.16,11.15-.18.38-.07.86-.69.86.49-1.55,2.07-6.87,1.69-8.09-.16-.51-.45-.8-.86-1.11Z"/>
<path class="cls-6" d="M317.35,185.07l-.55.12.21-.34c.11.02.24.19.34.21Z"/>
<path class="cls-2" d="M212.75,251.15c.16.5.05.8-.05,1.27-.91,4.06-5.76,4.95-7.69,8.25.08,6.95,1.66,13.43,4.24,19.87,1.94,4.86,7.8,10.45,11.87,13.88,2.25,1.9,4.51,2.63,6.96,4,8.79,4.89,17.05,10.17,27.45,10.82.03.04.59.1.8.41.62.9.97,1.97,1.49,2.92.45.83,1.93,1.67,1.21,3.16-2.33-.94-7.34-.69-10.05-1.55-8.2-4.06-15.66-7.64-22.95-13.25-5.63-4.33-19.15-14.96-21.4-21.33-1.43-4.06-3.02-10.63-3.67-14.89-.13-.87-.28-1.76-.01-2.62,1.78-2.59,4-5.43,5.62-8.08.67-1.09,1.19-2.92,1.86-3.92.15-.22.69-.93.85-1.02.83-.45,3.18,1.19,3.46,2.08Z"/>
<path class="cls-6" d="M216.36,234.93c.3,1.11-1.04.72-.84,1.48.7,2.65,2.6,4.83,3.95,7.12,2.34,3.98,4.96,7.91,6.81,12.13-.54-.66-1.53-1.2-1.67-2.24-.71.17,1.15,2.21.03,2.02-1.28-.21-2.73-2.71-3.63-3.26-.78-.48-1.61-.05-2.42-.3-2.04-.62-6.04-4.36-8.08-5.61-1.35-.83-3.06-.26-2.17-3.14.25-.82,1.48-2.08,1.62-3.13-.16-.27-.69.02-.95.11-7.09,2.31-15.46,7.23-22.13,10.7-2.7,1.4-5.88,2.6-8.46,4.03l11.88-6.61c-3.36-1.37-7.5.16-11.06.23-.79-.09-5.61.28-5.77-.07.99-.89,2.15-.69,3.11-.99.45-.14.82-.45,1.19-.57,6.59-2.04,12.88-4.22,19.39-6.38,6.48-2.15,12.71-3.68,19.21-5.54ZM224.07,252.96l.06.28c.16-.13.14-.23-.06-.28Z"/>
<path class="cls-1" d="M208.33,243.14c-.89,2.88.82,2.31,2.17,3.14,2.04,1.25,6.04,5,8.08,5.61.81.25,1.64-.18,2.42.3.9.55,2.36,3.05,3.63,3.26,1.12.19-.74-1.86-.03-2.02.15,1.04,1.14,1.58,1.67,2.24.79.98,1.14,1.89,1.63,2.54.29.38,2.38,1.49,1.23,1.75l-16.39-8.8c-.29-.89-2.63-2.53-3.46-2.08-.16.08-.7.79-.85,1.02-.75-1.17-.19-2.23-.48-3.53-.36-1.62-1.98-2.79.36-3.42Z"/>
<path class="cls-7" d="M338.84,199.12c.66.86,1.35,2.71,2.06,3.69.95,1.32,2.49,2.69,3.35,4.09,2.37,3.85,5.53,10.82,7.32,15.1.21.5-.06,1.18.77.82.02.04.41.69.46.77-.32.55.17,1.28.43,1.76,3.44,6.43,5.93,11.99,8.89,18.59.66,1.46,5.33,10.01,4.91,10.7-.07.12-.55.17-.7.38-3.86,5.35-5.72,10.4-10.55,15.17-1.67,1.65-4.21,5.01-5.85,6.98-6.97,8.37-13.07,17.53-20.01,25.79-1.77,2.1-2.62,3.45-3.6,6.03-.06.15-.29,1.25-.6.69.85-3.12.88-8.14.88-11.42,0-2.97.73-5.27.96-8.17.04-.55-.29-1.58-.25-1.7.5-1.65.5-2.63.72-4.53.38-3.2,1.7-8.36,1.16-11.6.9-.03.37-.53.38-1.05.07-3.3.67-7.05,1.12-10.34.24-1.76,1.13-9.2,1.65-10.23.42-.84,3.05-3.73,3.85-4.45.64-.58,2.44-.97,1.56-2.34l-4.65,1.93c-.12-.39-.21-.77-.19-1.19.15-4.21,1.09-9.47,1.43-13.92.43-5.69.86-11.31.8-17.05.77-.09.49-.13.43-.68s-.29-1.11-.37-1.66c-.44-2.81.12-3.06.42-5.55.2-1.7.21-6.1.78-7.33.58-1.27,1.9,0,2.45.72Z"/>
<path class="cls-8" d="M346.9,207.77c-.26-1.88-1.72-2.4-.12-4.46s5-4.8,6.95-6.71c5.22-5.1,10.47-10.68,16.22-15.24.85-.67,1.68-1.7,2.71-1.99s3.59-.5,4.75-.58c6.23-.39,12.91.61,19.22.74,7.48.15,14.93-.16,22.43-.2,5.02-.03,10.04.32,15.05.02l-13.77,15.85c-13.36,11.7-23.68,28.23-37.14,39.41-.62.52-1.86,2.05-2.37,2.31-.96.48-12.06.34-13.92.22-.94-.06-5.64-.51-6.15-.78-.82-.44-2.39-4.41-2.95-5.47-.78-1.47-3.01-4.45-2.97-6,0-.14.62-.74.64-1.02,4.5,1.02,14.46,3.09,18.61,1.19,1.58-.72,5.24-4.17,6.68-5.51,7.26-6.75,14.05-14.1,20.91-21.19,1.09-1.12,2.4-2.38,3.71-3.24-.5-1.12-.25-2.35-1.54-2.95-.9-.43-2.8.04-3.9-.59-8.16.3-16.38,1.07-24.58.61-2.37-.13-6.16-1.24-8.21-.33-.61.27-2.61,2.45-3.37,3.09-3.86,3.26-7.39,6.86-11.19,10.14-.34.29-.85.31-.55.94-.17.13-.33.27-.49.4l-.49.4c-1.16.88-1.99,2.37-3.62,1.98-.02-.09-.03-.19-.06-.28-.09-.29-.26-.54-.46-.77Z"/>
<path class="cls-6" d="M355.48,223.86c-.03.28-.64.88-.64,1.02-.57.07-1.76-.89-2.04-1.29-.05-.07-.45-.73-.46-.77-1.94-4.49-3.63-9.26-4.91-14.01,1.63.39,2.46-1.1,3.62-1.98.18-.14.32-.27.49-.4s.32-.27.49-.4c2.34-1.85,4.82-3.65,7.07-5.62,1.65-1.45,3.94-3.43,4.68-5.47.76-.64,2.76-2.82,3.37-3.09,1.12,1.14,2.92-1.09,3.11,1.12.15,1.77-4.62,8.99-5.73,11.11-2.79,5.35-6.35,11.84-8.74,17.25-.66,1.48-.21,1.47-.31,2.53Z"/>
<path class="cls-8" d="M319.72,301.14l5.68-4.48c-.31,1.66.06,3.25.04,4.89-.02,2.56-.91,7.37-.58,9.48.01.09.04.18.06.28,0,.64-.53,2.25-.5,2.64.03.53,1.07.9.61,1.7-2.59-.25-5.16-.69-7.76-.87.7-3.93.42-8.57,2.15-12.34.19-.41.33-.84.3-1.3Z"/>
<path class="cls-1" d="M327.31,288.38c-.04.12.3,1.15.25,1.7-.23,2.9-.95,5.2-.96,8.17,0,3.28-.03,8.31-.88,11.42-.11.41-.52,1.06-.86,1.36-.34-2.11.56-6.92.58-9.48.01-1.64-.35-3.23-.04-4.89l-5.68,4.48c-3.16,2.41-6.77,3.13-10.29,4.65l15.98-16.83,1.89-.59Z"/>
<path class="cls-1" d="M324.92,311.31c.12.52.54.98.61,1.45.08.58-.42,1.19-.15,1.74.48.96,2.09.06,2.26,1.15-.13-.04-1.88.08-2.62,0,.46-.8-.58-1.17-.61-1.7-.02-.39.51-2.01.5-2.64Z"/>
<path class="cls-6" d="M347.36,208.53c-1.09.39-.43-.52-.46-.77.2.22.37.48.46.77Z"/>
<path class="cls-7" d="M223.23,211.27c8.62-4.49,14.45-5.92,23.81-8.57s19.05-5.74,28.86-7.41c1.74-.3,3.23.04,5.11-.55,7.18-2.27,13.8-5.5,21.51-6.29,3.43-.35,16.27,6.42,20.25,8.14,2.14.92,4.47,1.55,6.56,2.4.29.12,1.26.7,1.31,1.11-7.88,2.53-15.8,4.77-23.63,7.37-3.66,1.22-7.51,2.09-11.04,3.34-.52.19-.15.65-.66.79-8.44,2.17-17.14,3.95-25.64,6.33-17.98,5.03-35.31,11.84-53.29,16.99-6.5,1.86-12.74,3.39-19.21,5.54-6.5,2.16-12.8,4.34-19.39,6.38-.31-.65.25-.64.55-.94,2.52-2.5,4.62-4.9,6.99-7.46s5.77-4.86,8.18-7.41c.36-.38.61-.66.49-1.23,9.43-7.87,18.36-12.86,29.26-18.53Z"/>
<path class="cls-2" d="M193.97,229.8c.12.57-.14.85-.49,1.23-2.4,2.55-5.72,4.76-8.18,7.41s-4.47,4.96-6.99,7.46c-.31.3-.87.29-.55.94-.37.11-.74.43-1.19.57-.96.29-2.12.09-3.11.99-.22-.47.03-.58.28-.89.64-.79,2.21-2.07,3.05-2.82,5.65-5.03,11.38-10.04,17.19-14.88Z"/>
<path class="cls-7" d="M233.17,167.74l3.02,10.92c-1.16.83-2.35.46-3.66.89-5.19,1.69-10.27,5.25-15.31,7.18-.78.3-4.03,1.58-4.55.91l20.51-19.89Z"/>
<path class="cls-2" d="M306.99,207.47c.5,1.49,2.28.05,3.29-.18,5.09-1.15,10.32-1.68,15.48-2.32,1.78-.22,3.67-.62,5.45-.92.73,2.65,2.26,4.9,3.42,7.35-1.58.8-1.81.55-3.32.75l-12.53-2.13-12.16-1.04c-5.57,2.04-11.33,4.43-16.44,7.44-2.82,1.66-6.13,4.36-8.46,6.64-.18-.57-.3-.96.13-1.46.26-.3.96-.34.82-.79-1.19.15-1.94-.31-3.37-.11-12.42,1.77-25.55,9.1-37.96,11.84l-21.88,10.98c-1.35-2.29-3.25-4.47-3.95-7.12-.2-.76,1.14-.38.84-1.48,17.98-5.15,35.31-11.96,53.29-16.99,8.5-2.38,17.2-4.15,25.64-6.33.52-.13.14-.6.66-.79,3.53-1.25,7.38-2.13,11.04-3.34Z"/>
<path class="cls-6" d="M331.32,212.16c1.51-.2,1.74.05,3.32-.75.15-.07.38-.06.55-.12.09.55.31,1.11.37,1.66-.84.08-.43.21-.43.68.06,5.74-.37,11.36-.8,17.05l-.83.19c-.03-1.06-.12-2.48-.55-3.45-.12-.27-2.95-4.02-3.22-4.28-.21-.2-2.43-2.04-2.59-2.1-.34-.12-1.02.1-1.54,0-1.87-.38-3.92-1.36-5.64-1.58-9.15-1.2-20.98.3-29.96,2.33-1.06.24-5.08,1.04-5.66,1.29-.2-.61-.31-.76.31-1.1.8-.43,5.25-1.69,5.4-1.94.1-.16-.62-1.3.09-1.72s3.05-.67,4.1-.97c3.62-1.02,7.28-2.12,11.02-2.79,8.55-1.54,17.74-1.3,26.06-2.38Z"/>
<path class="cls-7" d="M219.47,243.53l21.88-10.98c12.4-2.75,25.54-10.07,37.96-11.84,1.43-.2,2.18.26,3.37.11.14.45-.56.49-.82.79-.43.5-.31.89-.13,1.46-1.33,1.3-3.19,3.24-3.83,4.94-.96.74-2.09,1.79-2.54,3.04-.21.57.32,1.01.16,1.97-.24,1.44-1.41,1.88-1.59,3.15l21.34-3.36c-2.03,1.95-3.81,4.21-5.88,6.13l-.16.61,2.42,11.96c1.58,2.86,2.31,7.81,4.34,10.22.08.1-.05.54.3.53l8.11-.89c4.24.62,8.36-.51,12.38-.82,1.1-.09,2.13.59,3.25.3,1.59-1.13,3.04-2.52,4.6-3.68.47-.35,1.09-.33,1.56-.68,1.51-1.11,2.84-2.5,4.27-3.71.23,1.79-.48,3.56-.61,5.3-.04.59.38,1.89.16,2.35-1.96,4.12-3.95,8.42-5.52,12.95-1.21,3.5-2.06,7.45-3.92,10.86-4.63,8.49-20.23,19.1-29.08,22.91-.79.34-5.02,1.61-5.16,1.84-.17.27.73,1.23-.32,1.22-.36-.11-3.84-.4-4.39-.44-6.84-.47-13.88-1.15-20.79-1.94-1.71-.19-3.75-.86-5.39-.87-.65,0-.02,2.07.11,2.27-10.39-.65-18.66-5.92-27.45-10.82-2.46-1.37-4.71-2.1-6.96-4-4.07-3.43-9.93-9.02-11.87-13.88-2.57-6.44-4.16-12.92-4.24-19.87,1.92-3.3,6.78-4.2,7.69-8.25.1-.47.21-.77.05-1.27l16.39,8.8c1.15-.26-.94-1.38-1.23-1.75-.5-.65-.84-1.56-1.63-2.54-1.86-4.21-4.47-8.14-6.81-12.13ZM251.76,254c-3.95-.19-7.95-.61-11.53,1.45-.51,1.04,1.64,6.66,2.74,7.29,1.33.76,7.02-3.92,8.33-4.87.27-.65.88-3.5.46-3.88ZM238.75,267.09l1.28,5.67c.08.36,4.77,4.79,5.29,5.15.24.17.62.72.86.15l-7.42-10.97ZM267.63,264.93c-.49.02-.77.33-1.14.58-3.39,2.35-16.04,13.31-19.08,13.23-.22,0-1.48-.78-1.05.14.03.06.43.57.46.58.36.12,4.66-1.52,5.43-1.83,2.7-1.1,10.35-4.82,12.05-6.86,1.25-1.5,2.11-4.19,3.33-5.84Z"/>
<path class="cls-2" d="M330.01,260.44l.68.43c-.45,3.29-1.05,7.04-1.12,10.34-.01.52.52,1.02-.38,1.05-.05-.31-.12-1.46-.59-1.32-.07,1.43-.41,2.85-.59,4.25-.4,3.04-.56,5.84-.8,8.99l.81-.32c-.23,1.9-.22,2.87-.72,4.53l-1.89.59-15.98,16.83c-3.84,1.66-8.68,4.99-12.59,6.04-2.05.56-5.81-.65-8.02-1-1.57-.25-1.46-.2-2.81-.62,1.05,0,.15-.96.32-1.22.15-.23,4.37-1.5,5.16-1.84,8.85-3.81,24.45-14.43,29.08-22.91,1.86-3.41,2.71-7.36,3.92-10.86,1.57-4.53,3.56-8.83,5.52-12.95Z"/>
<path class="cls-1" d="M224.07,252.96c.2.05.22.14.06.28l-.06-.28Z"/>
<path class="cls-1" d="M334.33,230.67c-.34,4.45-1.28,9.71-1.43,13.92-.01.41.07.8.19,1.19l4.65-1.93c.88,1.37-.92,1.75-1.56,2.34-.8.72-3.43,3.61-3.85,4.45-.52,1.03-1.41,8.47-1.65,10.23l-.68-.43c.22-.46-.2-1.76-.16-2.35.13-1.74.84-3.51.61-5.3-1.43,1.21-2.77,2.59-4.27,3.71-.47.35-1.09.33-1.56.68-1.57,1.16-3.01,2.56-4.6,3.68-1.12.29-2.15-.39-3.25-.3-4.02.32-8.14,1.44-12.38.82l-8.11.89c-.35.02-.22-.43-.3-.53,2.08-.6,4.15-.63,6.13-1.47,6.81-2.88,13.52-6.54,20.17-9.79,1.38-.68,3.28-2.14,4.57-2.69.03-.01.28.23.64.08,1.4-.57,2.7-1.26,4.22-1.52.34-1.84.38-3.78.66-5.63.44-2.91,1.22-6.87,1.12-9.85l.83-.19Z"/>
<path class="cls-1" d="M329.19,272.25c.54,3.24-.78,8.4-1.16,11.6l-.81.32c.24-3.15.4-5.94.8-8.99.18-1.41.52-2.83.59-4.25.47-.14.53,1.01.59,1.32Z"/>
<path class="cls-1" d="M335.57,212.94c.07.54.34.59-.43.68,0-.47-.41-.6.43-.68Z"/>
<path class="cls-1" d="M367.15,191.85c2.05-.91,5.84.2,8.21.33,8.2.46,16.42-.31,24.58-.61,1.1.63,3,.16,3.9.59,1.29.61,1.04,1.83,1.54,2.95-1.31.86-2.62,2.12-3.71,3.24-6.86,7.09-13.65,14.44-20.91,21.19-1.44,1.34-5.1,4.78-6.68,5.51-4.15,1.9-14.11-.18-18.61-1.19.1-1.07-.35-1.05.31-2.53,2.4-5.41,5.95-11.9,8.74-17.25,1.11-2.12,5.88-9.34,5.73-11.11-.19-2.2-1.99.03-3.11-1.12Z"/>
<path class="cls-1" d="M363.78,194.94c-.74,2.04-3.02,4.02-4.68,5.47-2.24,1.97-4.73,3.76-7.07,5.62-.3-.64.21-.65.55-.94,3.81-3.28,7.33-6.88,11.19-10.14Z"/>
<path class="cls-1" d="M351.54,206.43c-.17.13-.31.26-.49.4l.49-.4Z"/>
<path class="cls-1" d="M331.32,212.16c-8.32,1.08-17.51.85-26.06,2.38-3.74.67-7.4,1.77-11.02,2.79-1.05.3-3.37.53-4.1.97s0,1.57-.09,1.72c-.15.24-4.6,1.5-5.4,1.94-.62.34-.51.49-.31,1.1-1.01.44-5.19,3.97-6.44,4.95.64-1.7,2.5-3.64,3.83-4.94,2.33-2.28,5.63-4.98,8.46-6.64,5.11-3.01,10.87-5.41,16.44-7.44l12.16,1.04,12.53,2.13Z"/>
<path class="cls-2" d="M284.34,223.06c.58-.25,4.59-1.05,5.66-1.29,8.98-2.03,20.8-3.53,29.96-2.33,1.72.23,3.78,1.2,5.64,1.58.51.1,1.2-.12,1.54,0,.16.06,2.38,1.9,2.59,2.1.27.27,3.1,4.02,3.22,4.28.44.96.52,2.39.55,3.45.1,2.98-.68,6.94-1.12,9.85-.28,1.84-.32,3.78-.66,5.63-1.53.26-2.82.94-4.22,1.52-.36.15-.61-.09-.64-.08l3.83-11.15c-3.03-3.07-5.82-6.33-9.26-8.99-3.03-2.35-8.24-6.18-12.08-5.86-.35.03-.6-.26-1.21.04-1.14.56-2.64,2.19-3.61,3.08-.14-.09-2.34-.74-3.01-1.07-.31-.15-.49-.58-.8-.7-1.08-.4-1.09.64-1.85,1.16-2.71,1.83-5.93,3.48-8.69,5.31.07.7.1.44.52.49,2.22.29,6.48-.31,8.77-.56-1.45.6-3.04,2.16-4.2,3.28l-21.34,3.36c.18-1.28,1.35-1.71,1.59-3.15.16-.96-.37-1.4-.16-1.97.45-1.25,1.59-2.3,2.54-3.04,1.26-.97,5.43-4.51,6.44-4.95Z"/>
<path class="cls-8" d="M326.86,247.77c-1.28.55-3.19,2.02-4.57,2.69-6.65,3.26-13.36,6.91-20.17,9.79-1.98.84-4.06.87-6.13,1.47-2.02-2.41-2.75-7.36-4.34-10.22l-2.42-11.96.16-.61c2.07-1.92,3.85-4.18,5.88-6.13,1.16-1.11,2.76-2.68,4.2-3.28,1.84-.2,6.31-.29,7.6-1.42.85-.74-.54-2.04-1.19-2.35l3.46-3.98c3.84-.33,9.04,3.51,12.08,5.86,3.45,2.67,6.23,5.93,9.26,8.99l-3.83,11.15Z"/>
<path class="cls-8" d="M251.76,254c.42.37-.19,3.23-.46,3.88-1.3.95-7,5.63-8.33,4.87-1.1-.63-3.25-6.26-2.74-7.29,3.57-2.06,7.57-1.64,11.53-1.45Z"/>
<path class="cls-2" d="M267.63,264.93c-1.22,1.66-2.07,4.34-3.33,5.84-1.71,2.04-9.35,5.76-12.05,6.86-.76.31-5.06,1.96-5.43,1.83-.04-.01-.43-.52-.46-.58-.43-.93.83-.15,1.05-.14,3.04.09,15.7-10.88,19.08-13.23.36-.25.65-.57,1.14-.58Z"/>
<path class="cls-2" d="M238.75,267.09l7.42,10.97c-.24.57-.61.02-.86-.15-.52-.36-5.21-4.79-5.29-5.15l-1.28-5.67Z"/>
<path class="cls-7" d="M299.47,229.53c-2.3.24-6.55.85-8.77.56-.41-.05-.45.21-.52-.49,2.76-1.82,5.98-3.48,8.69-5.31.77-.52.77-1.56,1.85-1.16.31.11.48.54.8.7.67.33,2.87.99,3.01,1.07.05.04.02.56.23.74.27.24.93.02,1.13.11.65.31,2.03,1.61,1.19,2.35-1.29,1.14-5.77,1.23-7.6,1.42Z"/>
<path class="cls-1" d="M309.35,221.77l-3.46,3.98c-.2-.1-.86.13-1.13-.11-.21-.19-.17-.71-.23-.74.97-.89,2.47-2.52,3.61-3.08.62-.31.86-.01,1.21-.04Z"/>
<g>
<path class="cls-8" d="M178.4,254.84c2.58-1.43,5.76-2.63,8.46-4.03,6.68-3.47,15.05-8.38,22.13-10.7.26-.08.79-.38.95-.11-.13,1.05-1.37,2.31-1.62,3.13-2.34.63-.73,1.81-.36,3.42.29,1.3-.27,2.36.48,3.53-.68,1-1.2,2.83-1.86,3.92-1.62,2.65-3.84,5.48-5.62,8.08-.27.85-.12,1.75.01,2.62.64,4.26,2.23,10.83,3.67,14.89,2.25,6.37,15.78,17,21.4,21.33,7.29,5.61,14.75,9.19,22.95,13.25,2.71.86,7.72.61,10.05,1.55,1.71.69,2.5,3.65,3.43,5.27,2.31,4,4.44,7.55,5.72,12,.08.3.39.55.42.64.38,1.56-.45,9.08-.67,11.2-.98,1.18-.19-1.85-1.17-1.79-.63.04-2.23,1.31-3.1,1.54-6.61,1.71-13.54,2.85-20.2,4.61-4.65,1.22-9.23,3.03-13.86,4.32-.9.25-1.96-.24-2.29.68,3.64,5.22,5.85,11.21,8.81,16.8,3.22,6.07,6.76,12.04,10.24,17.97,1.14,1.94,2.28,3.6,3.42,5.48.96,1.58.98,4.25,3.05,3.25-.04.06.04.75-.37.96-1.2-.36-.81.55-1.17.86-2.31,1.96-1.24,1.37-2.55,3.31-2.29,3.39-6.08,6.08-8.44,10.21-1.38,1.03-2.37,2.46-3.53,3.7-.88-2.73-3.71-4.16-4.73-6.78l-.42.67c-1.35-1.91-2.68-3.88-4.09-5.73-5.41-7.08-11.71-13.25-17.29-20.34-9.18-11.65-19.41-22.52-28.72-34.15-13.84-17.29-28.48-31.77-44.04-47.07-4.57-4.49-9.39-8.83-14.34-13-.63-.53-3.43-2.33-3.6-2.56-.33-.47.23-.48.5-.62,2.38-1.34,5.49-2.45,7.65-3.96.56-.39,1.51-1.58,2.02-1.93,4.34-2.93,9.99-5.02,14.66-7.47,11.52-6.04,22.71-12.66,34.05-18.95Z"/>
<path class="cls-1" d="M262.89,186.03c-4.1,2.44-7.91,5.26-12.04,7.7-9.09,5.37-17.84,11.08-26.88,16.72-.41.26-1.11.02-.74.82-10.89,5.67-19.83,10.66-29.26,18.53-5.81,4.85-11.54,9.86-17.19,14.88-.84.75-2.41,2.03-3.05,2.82-.25.31-.49.42-.28.89.16.35,4.98-.02,5.77.07,3.55-.07,7.7-1.6,11.06-.23l-11.88,6.61c-11.33,6.29-22.53,12.91-34.05,18.95-4.67,2.45-10.31,4.54-14.66,7.47-.84-.97-1.32-2.4-1.96-3.4-1.77-2.79-3.75-5.92-5.61-8.85-.96-1.51-2.74-3.43-3.53-4.95-.69-1.32,1.39-1.74,2.52-2.09,4.46-1.37,9.08-1.85,13.57-3.06,2.67-.71,5.46-1.97,8.1-2.71,2.87-.81,6.03-1.16,8.86-1.99,6-1.77,15.22-9.29,20.81-12.95,9.97-6.52,19.87-13.05,29.96-19.75.43-.29.97-1.09,1.04-1.12,2.24-1.02,3.35-2.04,5.56-3.49,4.87-3.21,9.98-6.13,14.88-9.3,5.81-3.75,12.18-8.5,18.12-11.89.37-.21,2.14-.72,2.2-.82.09-.16-.27-.84-.26-1.19s.5-.27.52-.31c.2.68-.11.99.74.59,4.35-2.07,7.3-3.92,11.92-5.5,1.89-.64,3.71-2.3,5.75-2.44Z"/>
<path class="cls-6" d="M252.83,397.68c-2.07,1-2.09-1.67-3.05-3.25-1.14-1.88-2.28-3.55-3.42-5.48-3.48-5.93-7.02-11.89-10.24-17.97-2.96-5.59-5.17-11.58-8.81-16.8.34-.92,1.4-.43,2.29-.68,4.63-1.29,9.21-3.09,13.86-4.32,6.66-1.75,13.59-2.9,20.2-4.61.87-.22,2.48-1.5,3.1-1.54.98-.06.19,2.97,1.17,1.79-.06.62-.02,1.37-.12,2.06-.64,4.41-2.31,4.87-4.86,7.96-3.5,4.24-11.97,13.72-12.95,18.74-1.21.47-1.07,1.63-.86,2.67.11.53.02,1.18.78.84,0,.17.1.37.12.55.06.45-.56,1.75.59,1.32.02.19.09.37.12.55.61,3.19,1.73,5.01,3.5,7.8.77,1.22,2.76,2.86,2.76,4.46,0,.37-.97,1.75-1.25,2.18-.75,1.14-2.32,2.67-2.95,3.71Z"/>
<path class="cls-1" d="M253.64,383.25c.82,1.36,1.51,1.98,2.33,3.26.89,1.39,1.98,3.55,2.74,5.06.48.96-1.34-.12-1.68.22,0-1.59-1.99-3.24-2.76-4.46-1.76-2.79-2.88-4.61-3.5-7.8l2.87,3.71Z"/>
<path class="cls-1" d="M250.01,373.6c-.18.94-.12,2.51-.08,3.51-.77.34-.68-.31-.78-.84-.21-1.04-.35-2.19.86-2.67Z"/>
<path class="cls-1" d="M250.64,378.98c-1.15.43-.53-.87-.59-1.32.45.12.53.89.59,1.32Z"/>
</g>
</g>
<g>
<g>
<path class="cls-8" d="M471.75,377.63c-3.15.25-6.73,1.22-9.84,1.31-.55.02-.85-.18-1.16-.6.03-.09-.14-.52-.02-.83,1.56-4.08,2.45-8.35,3.99-12.43l-.99-.16c-1.71,1.45-3.87,2.5-5.66,3.78-1.46,1.05-3.04,2.72-4.56,3.76-1.11.76-1.44-.5-1.11-1.36.09-.24,1.13-1.01,1.53-1.7,1.95-3.3,1.67-7.27,1.14-10.92-.06-.41-.07-.8-.49-1.02-1.08-.46-1.61,1.89-2.07,2.5-1.36,1.79-3.97,3.48-5.51,5.06-1.04,1.07-1.64,2.72-3.03,3.42.63-1.74.79-3.13,1.18-4.83.2-.88,1.59-4.14.37-4.23-1.98.14-1.57,2.52-2.5,3.56-.48.55-.6.29-.65-.25l2.84-5.44c-.49-.25-1.24,0-1.75-.04-13.93-1.05-27.9-2.05-41.75-3.57-10.27-1.13-20.56-2.16-30.96-3.18-5.23-.51-10.63-1.21-15.76-2.11-.49-.09-.56-.68-.8-.65-.23.03-.92.71-1.15.56-.3-.19-.15-.82.24-1.15s2.69-1.63,3.3-1.96c.37-.2.93-.14,1.21-.29-.09.35-.42,1.32.37,1.07,1.96-.65,4.05-1.91,6.14-2.53,10.16-3.02,20.41-5.87,30.56-8.93,5.57-1.68,10.39-3.97,15.67-5.88,3.09-1.12,6.02-1.02,9.05-1.76,4.67-1.14,9.61-3.94,14.22-5.25.95-.27,6.38-1.56,6.84-1.39.38.14.25.87.83.54.21-.11-.37-1.13.87-1.33.56-.09,1.09.29,1.78.17,2.4-.43,5.45-2.01,7.81-2.67"/>
<path class="cls-1" d="M451.95,316.92c-2.37.66-5.42,2.24-7.81,2.67-.69.12-1.23-.26-1.78-.17-1.24.21-.66,1.22-.87,1.33-.58.32-.45-.4-.83-.54-.45-.17-5.88,1.12-6.84,1.39-4.61,1.31-9.55,4.11-14.22,5.25-3.03.74-5.97.64-9.05,1.76.54-1.05,1.48-2.08,2.27-2.96,7.08-7.89,14.33-15.72,22.35-22.65.42-.52.18-1.18.02-1.77.65,0,1.11.45,1.63.79,2.08,1.38,3.32,2.7,5.76,3.93,5.1,2.56,11.22,4.44,16.56,6.55"/>
<path class="cls-6" d="M435.19,301.23c.16.58.4,1.24-.02,1.77-8.03,6.94-15.27,14.77-22.35,22.65-.79.88-1.73,1.91-2.27,2.96-5.28,1.91-10.1,4.19-15.67,5.88-10.15,3.06-20.4,5.91-30.56,8.93-2.09.62-4.18,1.89-6.14,2.53-.78.26-.46-.72-.37-1.07,4.53-2.31,8.81-4.62,13.24-7.06,7.33-4.04,15.09-7.78,22.44-12.04,11.03-6.41,21.74-13.88,32.33-20.98,1.09-.73,2.22-1.5,3.35-2.27.91-.62,3.34-2.33,4.21-2.57,1.3-.36,1.53.23,1.81,1.27Z"/>
</g>
<g>
<path class="cls-2" d="M371.36,173.16c.66-.27,1.88-.26,2.63-.22,4.81.28,9.67,1.12,14.47,1.51,16.52,1.33,33.06,1.64,49.55,3.05,1.11.09,6.26.56,6.8.87.24.14.52.24.54.57.05,1.09-6.25,6.28-7.4,7.44-8.72,8.72-17.17,17.46-26.12,25.97s-18.69,18.49-28.44,26.87c-1.3,1.12-5.57,4.92-6.79,5.44-2.8,1.18-7.42,1.48-10.48,1.8,1.27,4.35,3.89,8.73,5.26,12.96.18.57-.45.45-.47.5-.03-.84-.35-1.09-1.09-.57-.99.69-2.2,6.53-2.7,8.02-2.15,6.42-5.2,12.36-7.71,18.61-3.59,8.93-6.34,18.19-9.33,27.33-.11.34-.58.53-.61.67-.26.9.8,1.37-1.3,2.27.08.56.54.04.76-.11.77-.54,1.71-1.38,2.44-2.02,4.99-4.35,9.92-9.34,14.65-14,1.19-1.17,2.79-3.55,4-4.35.81-.54,2.04-.52,2.53-1.61,7.13-.32,14.02-1.85,20.93-3.29,2.56-.53,5.76-.46,8.2-.95,1.66-.33,3.16-1.28,4.91-1.4.32-.18-.12-.76-.04-.88.47-.76,3.83,2.03,4.61,2.28,3.57,1.16,7.29,2.32,10.73,3.58,4.36,1.59,10.33,3.27,14.34,5.17,1.89.9,1.42,1.75.61,3.35-.52-.35-.98-.8-1.63-.79-.28-1.04-.51-1.63-1.81-1.27-.87.24-3.3,1.95-4.21,2.57-1.13.77-2.26,1.54-3.35,2.27-.69-.93-1.93-1.25-2.9-1.99-5.06-3.89-9.28-9.08-14.53-12.67-.17-.12-1.84-.7-1.94-.69-.34.03-.49.5-.76.62-3.46,1.59-2.68,2.57-4.76,5.06-9.2,10.96-17.17,21.68-25.06,33.76-1.66,2.55-3.9,4.92-5.3,7.57l.47,1.36c-4.42,2.44-8.71,4.75-13.24,7.06-.29.15-.84.09-1.21.29-.61.33-2.93,1.64-3.3,1.96-.39.33-.54.96-.24,1.15.23.15.93-.53,1.15-.56.24-.03.31.56.8.65,5.13.9,10.53,1.59,15.76,2.11,10.41,1.03,20.69,2.06,30.96,3.18,13.85,1.52,27.82,2.52,41.75,3.57-.94,1.24,1.1.59.8.98-.4.52-1.74,1.99-2.26,2.49-3.48,3.37-6.52,4.66-10.27,7.28-4.58,3.19-9.65,7.3-14.04,10.82-11.2,9.01-21.21,19.59-33.23,27.53l19.49,9.53c.72-.03,3.46-6.11,5.07-6.36.12.58-.44,1.11-.79,1.63-1.13,1.66-1.52,3.41-2.33,4.58-.26.37-1.06.67-1.06,1,0,.36.87,1.01,1.17,1.32-.87.88-1.78-.03-2.52.04-.49.05-.85.45-1.28.53-1.6.31-6.29-3.36-8.15-4-.59-.2-.77-.08-1.31.02-.23-1.38-1.91-1.55-2.82-2.12-1.29-.81-7.91-5.8-8.87-5.38-.28.12-1.48,4.49-1.78,5.28-1.21,3.24-2.66,6.5-4.04,9.66-.89.3-3.04.3-3.84-.12-.54-.29-.72-.93-1.12-1.23-9.88-7.36-21.35-12.65-31.76-19.57-11.86-7.88-22.47-17.51-34.64-24.97-.36-.52-.2-1.54.02-2.12-1.09.59-1.85.47-2.92-.06.44-1.12.12-4,1.24-6.1,5.96-11.15,9.3-22.67,13.48-34.54l5-10.66c.43-.18,1.06.2,1.53.18,8.86-.24,17.63-1.06,26.49-2.13,1.74-.21,3.7-.67,5.45-.94-.67-.91-1.58-.4-2.39-.52-6.6-.98-13.38-1.44-19.97-2.56-1.76-.3-1.87-.53-3.86-.59-.32,0-.28-.5-.31-.51-.17-1.09-1.78-.19-2.26-1.15-.27-.54.23-1.15.15-1.74-.07-.47-.49-.93-.61-1.45-.02-.09-.05-.18-.06-.28.34-.3.74-.95.86-1.36.32.56.55-.53.6-.69.98-2.58,1.83-3.93,3.6-6.03,6.94-8.26,13.04-17.42,20.01-25.79,1.64-1.97,4.18-5.33,5.85-6.98,4.83-4.77,6.68-9.82,10.55-15.17.15-.21.63-.26.7-.38.42-.69-4.25-9.23-4.91-10.7-2.96-6.6-5.45-12.16-8.89-18.59-.26-.48-.75-1.21-.43-1.76.28.4,1.46,1.36,2.04,1.29-.04,1.55,2.19,4.53,2.97,6,.56,1.06,2.13,5.03,2.95,5.47.51.27,5.21.72,6.15.78,1.86.12,12.96.26,13.92-.22.51-.25,1.75-1.79,2.37-2.31,13.47-11.18,23.78-27.7,37.14-39.41l13.77-15.85c-5.02.3-10.04-.05-15.05-.02-7.5.04-14.95.36-22.43.2-6.31-.13-12.99-1.13-19.22-.74-1.16.07-3.74.3-4.75.58s-1.86,1.31-2.71,1.99c-5.75,4.56-11,10.14-16.22,15.24-1.95,1.91-5.39,4.68-6.95,6.71s-.14,2.58.12,4.46c.04.25-.63,1.16.46.77.03.09.04.19.06.28,1.28,4.76,2.97,9.52,4.91,14.01-.84.36-.57-.33-.77-.82-1.79-4.28-4.95-11.25-7.32-15.1-.86-1.4-2.4-2.77-3.35-4.09-.7-.98-1.39-2.83-2.06-3.69.41-.28-.14-.91-.3-1.21-.78-1.46-1.97-3.12-2.62-4.52-.23-.5-.39-.88-.15-1.43,2.27.71,17.9-8.71,20.91-10.4,2.43-1.36,5.46-2.41,7.81-3.85,2.06-1.26,3.88-2.98,6.1-4.09.27-.14.58-.39.77-.46ZM348.83,346.33c-.18-.39-.7-1.64-.69-1.96s1.74-3.6,2.06-4.17c3.49-6.13,9.17-12.45,12.04-18.61.16-.35,1.04-.74.78-1.29-.72-.24-5.5-.9-5.66-.61-.04.08.17.6.18.83,1.13-.36,2.05-.31,2.76.69-3.12,3.68-7.25,6.36-10.9,9.47-1.58,1.35-3.05,2.84-4.6,4.21-.88.78-3.04,2.09-3.59,2.72-.63.72.27,1-.74,1.31-.45-.84-.36-.51-1.02-.64-.3-.06-.57-.2-.89-.09l-.39-1.08-12.84,4-7.77,10.99-7.41,9.67c.05.23,0,.55.26.52,1.23-.12,3.49-3.31,4.55-4.24,3.45-3.07,7.41-5.83,10.96-8.86l26.11,1.67c.8-.17-1.79-2.39-1.94-2.57-.42-.53-.98-1.34-1.26-1.95ZM437.92,359.65c-.77.16-1.55.32-2.31.56-5.29,1.65-10.99,5.18-16.28,6.56-2.05.54-4.27.17-6.36-.1-10.52-1.35-18.28-5.85-27.96-9.44-5.26-1.95-18.99-7.09-24.04-6.64-5.43.49-16.69,5.79-22.37,7.89-7.52,2.78-19.05,5.78-25.27,10.6-.32.25-.22.66-.25.68-.13.08-.77-.14-1.22.04-1.55.62-3.24,1.76-4.79,2.46-1.18.54-3.39.27-1.97,2.19.87,1.17,1.75.79,2.62,1.11,14.32,5.31,28.18,11.73,42.37,17.43,5.82,2.34,11.35,4.97,17.52,6.43.88.21,2.15.13,2.87.34.97.29,3.11,2.23,4.14,2.11.58-.07,5.25-3.51,6.17-4.17,9.07-6.48,17.72-13.48,27.28-19.31,8.16-4.98,16.88-9.07,24.79-14.47,1.75-1.2,3.79-2.57,5.06-4.27Z"/>
<path class="cls-2" d="M320.06,453.3c.97-1.35,5.94-7.03,5.98-8.1-2.97-7.09-6.16-14.1-9.04-21.23-4.48-11.11-8.27-22.38-13.78-33.03-.62-1.2-3.54-6.36-4.32-6.98-.42-.33-2.84.26-3.54.26-3.47-.02-5.35-2.51-8.04-4.19-1.6-1-11.08-5.97-11.45-6.67-1.06-2.04,1.79-1.79,3.05-2.26,2.07-.77,4.11-1.95,6.12-2.78,1.05-.43,2.26-.82,3.37-1.08,1.88,2.91,3.98,6.62,5.86,9.31.42.6,1.21.81,1.47,1.25.11.18.06.65.23.94.52.89,1.11,1.69,1.51,2.7l1.85-.67c.09.39.96,2.18,1.22,2.7.89,1.77,2.38,4.18,3.54,6.12,1.7,2.86,3.43,3.98,5.28,6.29,11.22,13.99,22.16,27.83,32.91,42.17M277.93,466.31c-2.55-7.98-5.27-15.94-7.74-23.99-.98-3.18-1.61-6.27-2.71-9.42-4.1-11.65-10.31-22.84-15.01-34.27.41-.2.33-.89.37-.96.63-1.05,2.19-2.58,2.95-3.71.28-.43,1.25-1.81,1.25-2.18.35-.34,2.17.74,1.68-.22-.76-1.51-1.85-3.67-2.74-5.06-.82-1.28-1.51-1.9-2.33-3.26-.32-.52-1.75-2.72-1.8-2.94-.44-2.13,1.51-1.1,2.15-1.23.49-.1.88-.62,1.35-.8,2.22-.83,4.32-1.16,6.5-1.83,2.94-.9,5.84-2.03,8.81-2.86.14.38.14.75.12,1.14-.17,2.78-1.67,9.04-2.32,12.05-.72,3.29-1.87,6.45-2.52,9.68-.49.72-3.68-1.91-4.12-2.29-.73-.63-1.07-1.98-2.25-1.5,0,.45.43.07.65.35,5.54,7.21,10.18,15.12,16.1,22.14,2.51,2.98,10.02,9.99,11.1,13.23.77,2.3,1,10.38,1.22,13.35"/>
<path class="cls-2" d="M443.98,368.46c1.39-.7,1.99-2.35,3.03-3.42,1.54-1.58,4.15-3.27,5.51-5.06.46-.61.99-2.96,2.07-2.5.43.22.43.61.49,1.02.53,3.65.81,7.62-1.14,10.92-.41.69-1.45,1.46-1.53,1.7-.32.86,0,2.12,1.11,1.36,1.52-1.05,3.1-2.72,4.56-3.76,1.79-1.28,3.95-2.34,5.66-3.78l.99.16c-1.54,4.08-2.44,8.35-3.99,12.43-.12.31.05.74.02.83-.01.03-.39.03-.51.33-1.26,3.05-2.86,5.9-4.23,8.9l-7.49,4.88c.32-.35.87-1.23,1.07-1.69-5.27,1.84-9.69,5.45-14.38,8.35-1.51.93-4.03,1.87-5.42,3.1-.06-.45.13-.84.3-1.23,2.11-4.88,3.92-9.92,6-14.83,2.44-5.75,5.79-11.9,7.88-17.68Z"/>
<path class="cls-2" d="M214.55,447.04c-1.47-.31-2.59.24-3.81.21-1.33-.03-9.03-5.09-10.3-6.23-.58-.53-1.5-2.01-1.79-2.23-.25-.19-1.11-.12-1.67-.55-.73-.57-.92-1.4.16-1.38,1.46.03,1.89.01,3.41.23,3.84.55,15.65,1.24,18.64-.71.22-.15.08-.58.22-.62.51-.14.45.19.48.19l-.64,1.01c1.46.3,2.92.73,4.32,1.23,5.96,2.14,17.18,7.51,21.84,11.61.55.48.83,1.04,1.23,1.61-1.1.35-4.36,2.15-5.46,2.84-.86.54-1.84,1.76-2.65,2.13-1.2.54-4.4.66-6.09,1.14-5.01,1.42-9.36,4.36-13.82,6.93-4.38-1.5-.88-5.79-.13-8.61.22-.83.46-1.8.64-2.56.97-1.02,2.01-.69,2.96-1.07.87-.34,3.12-2.2,4.14-2.86,1.38-.9,3.48-1.53,4.13-2.96-4.9.93-10.11-.27-15.1.05-.55.04-1.06-.22-.74.62Z"/>
<path class="cls-1" d="M252.47,398.63c4.7,11.43,10.91,22.62,15.01,34.27,1.11,3.14,1.74,6.23,2.71,9.42-.26.01-.62.21-.83.19-.56-.06-1.31-.62-1.91-.73-1.69-2.1-4.42-3.22-6.48-4.96-1.9-1.6-3.38-3.63-5.2-5.29-3.74-3.41-7.73-6.55-11.59-9.82-1.33-1.13-3.38-3.49-4.63-4.31-.8-.52-2.5-.46-1.66-1.28.55-.54,1.58-1.26,1.98-1.84.31-.45.27-.98.43-1.27,2.36-4.12,6.15-6.82,8.44-10.21,1.31-1.94.24-1.35,2.55-3.31.37-.31-.03-1.22,1.17-.86Z"/>
<path class="cls-2" d="M240.3,413.01c-.16.28-.12.82-.43,1.27-.4.57-1.43,1.3-1.98,1.84-.84.82.86.77,1.66,1.28,1.25.81,3.3,3.18,4.63,4.31,3.86,3.27,7.85,6.41,11.59,9.82,1.82,1.66,3.3,3.69,5.2,5.29,2.06,1.74,4.78,2.86,6.48,4.96-1.6-.29-3.75-.42-5.43-.6-11.43-1.22-22.95-2.06-34.33-3.87-2.21-.35-5.35-1.37-7.24-1.49-.13-.6.16-.83.5-1.23,1.93-2.26,4.66-4.12,6.71-6.68,1.06-1.33,2.03-3.47,2.82-4.39.62-.73,2.04-1.38,2.64-2.36,1.17-1.92,2.08-2.74,3.67-4.44,1.16-1.24,2.14-2.67,3.53-3.7Z"/>
<path class="cls-6" d="M220.44,435.82c1.89.12,5.03,1.14,7.24,1.49,11.38,1.81,22.9,2.65,34.33,3.87,1.68.18,3.83.31,5.43.6.6.11,1.35.67,1.91.73l-1.02,2.09c-3.02,3.42-5.8,7.63-8.95,10.83-.46.47-1.6.96-2.26.62-3.18-1.52-6.27-3.7-9.57-4.77-.31,0-.61.05-.91.14-.4-.58-.69-1.13-1.23-1.61-4.66-4.11-15.88-9.47-21.84-11.61-1.4-.5-2.87-.93-4.32-1.23l.64-1.01c.18-.01.4-.13.55-.12Z"/>
<path class="cls-1" d="M427.89,404.08l-3.17,7.84c1.52-.3.9,1.27,1.1,2.35.59,3.13,1.54,6.23,2.94,9.09-2.83.31-5.51,1.1-8.18-.19.19,3.17-2.07,2.17-4.04,1.32-2.8-1.2-8.46-4.36-10.5-6.47-.3-.31-1.18-.97-1.17-1.32,0-.33.8-.62,1.06-1,.81-1.17,1.2-2.92,2.33-4.58l-.11,2.06c1.01-.75,2.02-.2,2.87-.42,2.11-.53,6.2-3.52,8.41-4.67,2.75-1.43,5.76-2.62,8.46-4.03ZM424.67,412.37l.06.28c.16-.13.14-.23-.06-.28Z"/>
<path class="cls-2" d="M429.14,403.22c.89-.31.53.16.53.69,0,3.31-.54,4.58,1.07,7.67,2.05,3.94,5.96,5.4,8.52,8.48.54.64,1.62,2.58,1.09,3.28-.48.63-5.79-.66-7.02-.64-1.51.03-3.1.51-4.58.67-1.4-2.86-2.35-5.96-2.94-9.09-.2-1.09.42-2.65-1.1-2.35l3.17-7.84c.35-.18.97-.6,1.26-.87Z"/>
<path class="cls-1" d="M429.79,402.2c1.39-1.23,3.91-2.17,5.42-3.1,4.69-2.9,9.12-6.51,14.38-8.35-.2.47-.75,1.35-1.07,1.69-1.46,1.59-3.71,2.87-5.32,4.35-2.84,2.61-4.75,6.07-7.43,8.83-1.91,1.96-4.48,3.07-5.02,5.96-1.61-3.09-1.08-4.37-1.07-7.67,0-.53.36-1-.53-.69.1-.09.22-.65.64-1.02Z"/>
<path class="cls-1" d="M214.55,447.04c-.32-.84.19-.58.74-.62,4.99-.32,10.2.89,15.1-.05-.66,1.43-2.76,2.06-4.13,2.96-1.02.67-3.27,2.52-4.14,2.86-.96.38-2,.05-2.96,1.07.19-.8.14-.77.42-1.63.11-.33-.15-.79-.03-1.09.27-.66,1.33.02.6-1.3-.77-1.39-3.31-1.43-4.84-1.75-.39-.08-.69-.45-.76-.47Z"/>
<path class="cls-1" d="M255.54,309.24c-.14-.2-.77-2.27-.11-2.27,1.63,0,3.68.67,5.39.87,6.92.78,13.96,1.46,20.79,1.94.55.04,4.04.33,4.39.44,1.35.42,1.24.37,2.81.62,2.21.35,5.97,1.56,8.02,1l-.26.66,18.12,2.6c.25.77.51,1.61.36,2.43-.18,1-3.4,6.26-4.17,7.57-7.39,12.54-15.77,24.33-24.09,36.26-.27.39-.41.82-.96.94-3.55-5.77-7.28-11.38-10.61-17.38-1.76-3.16-3.13-6.71-5.12-9.74-.39-.6-1.07-.99-1.51-1.56-.02-.09-.33-.34-.42-.64-1.28-4.45-3.41-8-5.72-12-.93-1.61-1.73-4.58-3.43-5.27.72-1.48-.76-2.33-1.21-3.16-.52-.95-.87-2.02-1.49-2.92-.21-.31-.77-.37-.8-.41Z"/>
<path class="cls-2" d="M275.23,344.93c-2.68-.02-4.94,1.11-7.41,1.96.1-.69.05-1.44.12-2.06.22-2.12,1.05-9.64.67-11.2.44.57,1.11.96,1.51,1.56,1.99,3.03,3.36,6.58,5.12,9.74Z"/>
<path class="cls-7" d="M437.92,359.65c-1.27,1.71-3.31,3.07-5.06,4.27-7.91,5.41-16.63,9.5-24.79,14.47-9.55,5.82-18.21,12.83-27.28,19.31-.92.65-5.59,4.1-6.17,4.17-1.04.13-3.17-1.82-4.14-2.11-.72-.21-1.98-.13-2.87-.34-6.17-1.46-11.7-4.1-17.52-6.43-14.19-5.69-28.05-12.12-42.37-17.43-.87-.32-1.75.06-2.62-1.11-1.42-1.93.79-1.65,1.97-2.19,1.54-.7,3.24-1.84,4.79-2.46.45-.18,1.1.04,1.22-.04.03-.02-.07-.43.25-.68,6.22-4.82,17.74-7.82,25.27-10.6,5.68-2.1,16.94-7.4,22.37-7.89,5.05-.46,18.78,4.68,24.04,6.64,9.68,3.59,17.44,8.09,27.96,9.44,2.09.27,4.31.63,6.36.1,5.29-1.38,10.99-4.92,16.28-6.56.76-.24,1.53-.39,2.31-.56Z"/>
<path class="cls-7" d="M425.82,304.81c-10.6,7.1-21.3,14.57-32.33,20.98-7.34,4.27-15.11,8-22.44,12.04l-.47-1.36c1.39-2.65,3.63-5.02,5.3-7.57,7.88-12.08,15.86-22.8,25.06-33.76,2.09-2.49,1.3-3.47,4.76-5.06.27-.13.43-.6.76-.62.1,0,1.77.58,1.94.69,5.25,3.6,9.47,8.78,14.53,12.67.96.74,2.21,1.06,2.9,1.99Z"/>
<path class="cls-7" d="M443.47,357.23c.51.04,1.26-.21,1.75.04l-2.84,5.44c-4.83,5.11-8.07,11.42-12.29,17.04-.29.38-.61.81-.78,1.04-.08.11-.13.23-.21.34-.27.36-.4.64-.43.68-.09.12-.14.25-.21.34-2.05,2.71-7.72,8.75-8.39,11.78-.37.32-1.25.31-.92,1.08-2.29,2.21-4.68,7.07-6.49,9.9-.82.14-1.25.82-1.72,1.4-.62.77-1.73,2.17-1.62,3.13-.07.05-.21.01-.28.06-1.61.25-4.35,6.32-5.07,6.36l-19.49-9.53c12.01-7.94,22.03-18.53,33.23-27.53,4.39-3.53,9.46-7.63,14.04-10.82,3.75-2.61,6.79-3.9,10.27-7.28.51-.5,1.86-1.97,2.26-2.49.3-.39-1.74.26-.8-.98Z"/>
<path class="cls-6" d="M319.72,301.14c.03.46-.11.89-.3,1.3-1.73,3.77-1.45,8.41-2.15,12.34-.71,4-3,10.03-4.35,13.98-1.41,4.11-1.82,7.41-2.83,11.5-1.69,6.85-4.41,13.83-6.29,20.7-.62,2.28-1.2,4.62-1.58,6.95-1.12,2.1-.8,4.98-1.24,6.1-.02.04-.66.14-.69.62s.11,1.13.09,1.84c-1.03.07-1.08,1.35-1.37,1.61-.21.19-1.47-.06-1.66,1.1-.65-1.01.05-2.04-1.62-1.38-.26-.44-1.05-.65-1.47-1.25-1.88-2.69-3.98-6.4-5.86-9.31-1.07-1.65-1.65-3.45-2.57-4.94.54-.12.68-.55.96-.94,8.32-11.93,16.7-23.72,24.09-36.26.77-1.31,3.99-6.57,4.17-7.57.15-.82-.11-1.66-.36-2.43l-18.12-2.6.26-.66c3.91-1.06,8.76-4.39,12.59-6.04,3.52-1.52,7.13-2.24,10.29-4.65Z"/>
<path class="cls-7" d="M325.03,315.65c.73.07,2.49-.05,2.62,0,.03,0-.01.5.31.51,1.99.05,2.1.28,3.86.59,6.59,1.13,13.36,1.58,19.97,2.56.82.12,1.73-.39,2.39.52-1.76.27-3.71.73-5.45.94-8.87,1.08-17.63,1.9-26.49,2.13-.47.01-1.09-.37-1.53-.18l-5,10.66c-4.19,11.87-7.53,23.39-13.48,34.54.38-2.33.96-4.67,1.58-6.95,1.88-6.87,4.6-13.85,6.29-20.7,1.01-4.09,1.42-7.38,2.83-11.5,1.35-3.95,3.64-9.97,4.35-13.98,2.6.17,5.16.61,7.76.87Z"/>
<path class="cls-6" d="M430.09,400.97c-.17.39-.36.78-.3,1.23-.42.37-.55.93-.64,1.02-.29.27-.91.68-1.26.87-2.71,1.41-5.71,2.6-8.46,4.03-2.21,1.15-6.3,4.14-8.41,4.67-.85.22-1.86-.33-2.87.42l.11-2.06c.36-.52.91-1.06.79-1.63.07-.05.2-.01.28-.06,1.48-1.05,2.37-3.02,3.34-4.53,1.8-2.83,4.2-7.69,6.49-9.9.65-.62.66.11.92-1.08,1.29-1.11,1.81-2.36,2.83-3.55.6-.7,1.69-1.37,2.3-2.11,1.21-1.46,2.81-4.29,3.26-6.13.07-.09.13-.22.21-.34.6-.07.63-.11.43-.68.08-.11.13-.23.21-.34.79.15.72-.7.9-.78.71-.32,1.67-.07,2.03-1.05.53,1.6,0,3.6-.26,5.29-.84,5.47-2.99,11.21-1.89,16.72Z"/>
<path class="cls-7" d="M339.45,338.27c.07.92.23.88,1.02.64,1.43,2.66,5.04,4.12,7.07,6.84.06.08,0,.38.16.49s.41-.08.51-.06c.18.04.38.2.62.15.28.61.84,1.41,1.26,1.95.14.18,2.73,2.4,1.94,2.57l-26.11-1.67c2.49-2.12,4.83-4.53,7.32-6.65.8-.68,4.8-4.17,5.32-4.35.32-.11.59.03.89.09Z"/>
<path class="cls-1" d="M340.47,338.92c1.01-.31.11-.59.74-1.31.55-.63,2.7-1.94,3.59-2.72,1.56-1.37,3.02-2.86,4.6-4.21,3.65-3.12,7.78-5.79,10.9-9.47-.71-1-1.63-1.05-2.76-.69-.01-.23-.23-.75-.18-.83.16-.29,4.94.37,5.66.61.26.54-.61.93-.78,1.29-2.86,6.16-8.55,12.48-12.04,18.61-.33.57-2.05,3.85-2.06,4.17s.51,1.57.69,1.96c-.23.05-.44-.11-.62-.15-.07-.6-.11-.63-.68-.43-2.03-2.72-5.64-4.18-7.07-6.84-.79.24-.95.27-1.02-.64.66.13.56-.2,1.02.64Z"/>
<path class="cls-1" d="M325.92,349.18c-3.54,3.03-7.5,5.79-10.96,8.86-1.05.94-3.32,4.12-4.55,4.24-.27.03-.21-.29-.26-.52l7.41-9.67,7.77-10.99,12.84-4,.39,1.08c-.52.18-4.52,3.67-5.32,4.35-2.49,2.12-4.83,4.52-7.32,6.65Z"/>
<path class="cls-7" d="M342.26,438.06c-10.75-14.34-21.69-28.18-32.91-42.17-1.85-2.31-3.58-3.43-5.28-6.29-1.15-1.94-2.64-4.35-3.54-6.12-.26-.51-1.13-2.31-1.22-2.7-.2-.88.61-1.4.73-1.84.14-.5.32-1.97.33-2.47.02-.71-.12-1.37-.09-1.84s.67-.58.69-.62c1.07.54,1.82.65,2.92.06-.23.58-.39,1.6-.02,2.12,12.17,7.45,22.78,17.09,34.64,24.97,10.42,6.92,21.88,12.21,31.76,19.57.41.3.58.94,1.12,1.23.8.43,2.95.42,3.84.12"/>
<path class="cls-7" d="M288.63,441.75c-.22-2.98-.45-11.05-1.22-13.35-1.08-3.24-8.6-10.25-11.1-13.23-5.92-7.02-10.56-14.93-16.1-22.14-.22-.28-.66.1-.65-.35,1.19-.48,1.52.87,2.25,1.5.45.39,3.64,3.02,4.12,2.29.65-3.23,1.8-6.39,2.52-9.68.66-3.01,2.15-9.28,2.32-12.05.02-.4.02-.77-.12-1.14-2.97.83-5.87,1.95-8.81,2.86-2.17.67-4.28,1-6.5,1.83-.46.17-.86.7-1.35.8-.64.13-2.59-.9-2.15,1.23.05.22,1.48,2.42,1.8,2.94l-2.87-3.71c-.04-.18-.1-.37-.12-.55-.06-.43-.14-1.2-.59-1.32-.03-.19-.12-.38-.12-.55-.04-1-.1-2.57.08-3.51.98-5.02,9.45-14.5,12.95-18.74,2.55-3.1,4.22-3.56,4.86-7.96,2.46-.86,4.73-1.99,7.41-1.96,3.33,5.99,7.07,11.61,10.61,17.38.92,1.49,1.5,3.29,2.57,4.94-1.11.25-2.32.64-3.37,1.08-2,.83-4.05,2.01-6.12,2.78-1.26.47-4.12.22-3.05,2.26.37.71,9.85,5.67,11.45,6.67,2.69,1.68,4.57,4.16,8.04,4.19.7,0,3.12-.59,3.54-.26.78.62,3.7,5.78,4.32,6.98,5.51,10.65,9.29,21.92,13.78,33.03,2.88,7.13,6.07,14.14,9.04,21.23-.04,1.07-5.01,6.75-5.98,8.1"/>
<path class="cls-1" d="M300.38,376.47c-.01.5-.2,1.97-.33,2.47-.12.44-.93.96-.73,1.84l-1.85.67c-.39-1.01-.99-1.81-1.51-2.7-.17-.29-.12-.76-.23-.94,1.66-.67.97.37,1.62,1.38.19-1.17,1.44-.91,1.66-1.1.29-.26.34-1.55,1.37-1.61Z"/>
<path class="cls-1" d="M443.98,368.46c-2.09,5.77-5.44,11.93-7.88,17.68-2.08,4.91-3.89,9.95-6,14.83-1.1-5.5,1.06-11.25,1.89-16.72.26-1.68.8-3.68.26-5.29-.37.98-1.33.73-2.03,1.05-.18.08-.11.93-.9.78.17-.23.49-.65.78-1.04,4.22-5.61,7.46-11.93,12.29-17.04.05.54.16.8.65.25.92-1.04.51-3.42,2.5-3.56,1.22.09-.17,3.35-.37,4.23-.39,1.7-.55,3.09-1.18,4.83Z"/>
<path class="cls-2" d="M424.67,412.37c.2.05.22.14.06.28l-.06-.28Z"/>
<path class="cls-1" d="M428.46,382.14c-.45,1.83-2.05,4.67-3.26,6.13-.61.73-1.7,1.41-2.3,2.11-1.03,1.19-1.55,2.44-2.83,3.55-.26,1.19-.27.46-.92,1.08-.33-.77.55-.76.92-1.08.67-3.03,6.34-9.07,8.39-11.78Z"/>
<path class="cls-2" d="M412.66,404.9c-.97,1.51-1.86,3.49-3.34,4.53-.11-.96,1-2.36,1.62-3.13.47-.58.9-1.26,1.72-1.4Z"/>
<path class="cls-1" d="M429.1,381.13c.2.57.17.61-.43.68.03-.04.16-.31.43-.68Z"/>
<path class="cls-2" d="M347.54,345.75c.57-.2.61-.17.68.43-.1-.02-.35.17-.51.06s-.1-.41-.16-.49Z"/>
</g>
</g>
</g>
<path class="cls-10" d="M546.42,329.69c0,136.75-110.3,247.6-246.35,247.6-103.96,0-192.88-64.72-229.04-156.26,27.41,34.36,153.29,33,274.67-7.2,118.33-39.18,191.6-101.75,193.35-144.51,4.82,19.32,7.38,39.55,7.38,60.37Z"/>
<circle class="cls-4" cx="301.1" cy="333.04" r="242.83"/>
<text class="cls-9" transform="translate(46.04 201.91) rotate(-57.22) scale(1.03 1)"><tspan x="0" y="0">K</tspan></text>
<text class="cls-9" transform="translate(66.02 170.73) rotate(-49.69) scale(1.03 1)"><tspan x="0" y="0">E</tspan></text>
<text class="cls-9" transform="translate(89.92 142.43) rotate(-42.26) scale(1.03 1)"><tspan x="0" y="0">M</tspan></text>
<text class="cls-9" transform="translate(117.32 117.42) rotate(-34.92) scale(1.03 1)"><tspan x="0" y="0">O</tspan></text>
<text class="cls-9" transform="translate(147.67 96.13) rotate(-27.63) scale(1.03 1)"><tspan x="0" y="0">V</tspan></text>
<text class="cls-9" transform="translate(180.49 78.86) rotate(-20.38) scale(1.03 1)"><tspan x="0" y="0">E</tspan></text>
<text class="cls-9" transform="translate(215.25 65.86) rotate(-13.17) scale(1.03 1)"><tspan x="0" y="0">R</tspan></text>
<text class="cls-9" transform="translate(251.37 57.34) rotate(-6.02) scale(1.03 1)"><tspan x="0" y="0">S</tspan></text>
<text class="cls-9" transform="translate(288.26 53.37) rotate(.99) scale(1.03 1)"><tspan x="0" y="0">E</tspan></text>
<text class="cls-9" transform="translate(568.34 445.01) rotate(118.17) scale(1.03 1)"><tspan x="0" y="0">K</tspan></text>
<text class="cls-9" transform="translate(550.93 477.7) rotate(125.78) scale(1.03 1)"><tspan x="0" y="0">E</tspan></text>
<text class="cls-9" transform="translate(529.33 507.8) rotate(133.28) scale(1.03 1)"><tspan x="0" y="0">M</tspan></text>
<text class="cls-9" transform="translate(503.98 534.85) rotate(140.67) scale(1.03 1)"><tspan x="0" y="0">O</tspan></text>
<text class="cls-9" transform="translate(475.36 558.41) rotate(147.98) scale(1.03 1)"><tspan x="0" y="0">V</tspan></text>
<text class="cls-9" transform="translate(443.96 578.14) rotate(155.25) scale(1.03 1)"><tspan x="0" y="0">E</tspan></text>
<text class="cls-9" transform="translate(410.3 593.74) rotate(162.49) scale(1.03 1)"><tspan x="0" y="0">R</tspan></text>
<text class="cls-9" transform="translate(374.94 604.97) rotate(169.68) scale(1.03 1)"><tspan x="0" y="0">S</tspan></text>
<text class="cls-9" transform="translate(338.45 611.69) rotate(176.78) scale(1.03 1)"><tspan x="0" y="0">E</tspan></text>
<path class="cls-3" d="M522.9,259.84c1.81,2.26,3.16,4.7,4.03,7.35,1.18,3.58,1.67,7.38,1.5,11.36-1.66,40.37-71.17,99.42-183.43,136.41-115.15,37.94-234.57,39.23-260.58,6.8-1.85-2.3-3.23-4.77-4.1-7.42-.86-2.61-1.33-5.31-1.42-8.08"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 43 KiB

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg id="Capa_2" data-name="Capa 2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 579.98 579.98">
<defs>
<style>
.cls-1 {
fill: #5aa02c;
}
.cls-2 {
fill: #8dd35f;
}
</style>
</defs>
<g id="Capa_2-2" data-name="Capa 2">
<g>
<path class="cls-2" d="M574.39,286.11c0,158.54-127.87,287.06-285.61,287.06-120.52,0-223.61-75.03-265.54-181.16,31.78,39.84,177.72,38.25,318.44-8.35,137.18-45.42,222.13-117.96,224.16-167.54,5.59,22.4,8.56,45.85,8.56,69.99Z"/>
<g>
<path class="cls-1" d="M553.54,226.81c-1.92,46.8-82.51,115.27-212.66,158.14-133.5,43.99-271.95,45.48-302.1,7.88-2.15-2.67-3.75-5.54-4.76-8.6-1-3.02-1.54-6.15-1.65-9.37-1.59-46.03,85.69-110.99,219.32-155.01,133.49-43.98,266.05-51.52,295.43-14.72,2.09,2.62,3.66,5.45,4.67,8.52,1.37,4.15,1.94,8.55,1.74,13.17Z"/>
<path d="M142.08,428.06c-35.73,0-89.54-4.52-109.91-29.92-2.79-3.47-4.88-7.25-6.19-11.24-1.25-3.78-1.94-7.73-2.07-11.76-.9-25.9,20.71-55.44,62.48-85.41,41.02-29.43,97.27-56.37,162.66-77.91,65.63-21.62,132.74-35.14,188.97-38.07,41.56-2.16,95.38.61,115.73,26.1,2.73,3.41,4.78,7.16,6.09,11.15,1.67,5.07,2.4,10.51,2.16,16.17h0c-1.08,26.21-22.93,57.07-61.53,86.9-40.2,31.06-94.47,58.36-156.94,78.94-64.58,21.28-132.87,33.7-192.28,34.96-2.88.06-5.96.1-9.17.1ZM459.82,190.09c-6.67,0-13.65.19-20.93.57-54.76,2.85-120.3,16.08-184.55,37.24-62.86,20.71-119,47.55-158.08,75.59-35.9,25.75-56.1,51.66-55.42,71.09.08,2.43.49,4.78,1.23,7.01.68,2.05,1.79,4.05,3.31,5.94,12.71,15.85,52.13,24.63,105.51,23.5,57.77-1.23,124.3-13.35,187.33-34.11,60.67-19.99,113.19-46.36,151.88-76.26,34.07-26.33,54.11-53.37,54.96-74.19h0c.15-3.62-.29-7.04-1.32-10.16-.69-2.1-1.75-4.02-3.24-5.88-10.51-13.16-39.43-20.33-80.69-20.33Z"/>
</g>
<path d="M289.99,579.98c-77.46,0-150.28-30.17-205.06-84.94C30.17,440.27,0,367.45,0,289.99S30.17,139.71,84.94,84.94,212.53,0,289.99,0s150.28,30.16,205.05,84.94,84.94,127.59,84.94,205.05-30.17,150.28-84.94,205.05c-54.77,54.77-127.6,84.94-205.05,84.94ZM289.99,16.94C139.43,16.94,16.94,139.43,16.94,289.99s122.49,273.05,273.05,273.05,273.05-122.49,273.05-273.05S440.55,16.94,289.99,16.94Z"/>
<g>
<path d="M91.43,242.67l-44.24-22.01,4.17-8.37,44.24,22-4.17,8.37ZM79.61,231.13l-7.97-4.68c1.49-3,2.17-5.9,2.03-8.7-.14-2.8-.89-5.43-2.26-7.89-1.37-2.46-3.18-4.68-5.45-6.67s-4.79-3.67-7.57-5.05l4.23-8.5c3.93,1.95,7.4,4.42,10.42,7.4s5.39,6.31,7.09,10c1.7,3.68,2.56,7.57,2.57,11.66.01,4.09-1.03,8.23-3.11,12.42ZM102.79,219.83l-24.09-.71.7-9.38,28.53-.25-5.14,10.34Z"/>
<path d="M77.37,182.06l-6.79-5.04,20.57-27.69,6.79,5.04-20.57,27.7ZM110.24,206.48l-39.66-29.46,5.58-7.51,39.66,29.46-5.58,7.51ZM93.79,194.26l-6.81-5.06,16.77-22.58,6.82,5.06-16.77,22.58ZM110.24,206.48l-6.79-5.04,20.57-27.69,6.79,5.04-20.57,27.7Z"/>
<path d="M134.1,175.23l-33.94-35.9,6.33-5.99,33.94,35.9-6.33,5.99ZM132.44,153l-19.13-14.04-1.62,1.53-5.61-6.76,3.78-3.58,17.86,13.52.21-.19,7.6,6.6-3.09,2.92ZM133.93,151.59l-6.11-8.01.31-.29-12.5-18.58,3.78-3.58,6.44,5.98-1.62,1.53,12.95,19.88-3.24,3.07ZM152.94,157.42l-33.95-35.9,6.33-5.99,33.94,35.9-6.33,5.99Z"/>
<path d="M178.7,138.8c-10.65,7.05-20.59,3.61-29.8-10.32-9.47-14.31-8.88-25,1.77-32.05,10.65-7.05,20.71-3.42,30.19,10.9,9.22,13.93,8.5,24.42-2.16,31.47ZM173.86,131.49c5.2-3.44,4.8-9.69-1.19-18.74-6.25-9.44-11.97-12.44-17.17-9-5.2,3.44-4.67,9.88,1.57,19.32,5.99,9.05,11.58,11.86,16.78,8.42Z"/>
<path d="M207.14,121.82l-31.72-40.05,8.86-3.88,25.91,33.59.58-.26-7.09-41.83,8.86-3.88,7.9,50.48-13.3,5.82Z"/>
<path d="M226.58,70.03l-2.01-8.21,33.51-8.22,2.01,8.21-33.5,8.22ZM236.33,109.81l-11.77-47.99,9.08-2.23,11.77,47.99-9.08,2.23ZM231.45,89.9l-2.02-8.25,27.31-6.7,2.02,8.25-27.31,6.7ZM236.33,109.81l-2.01-8.21,33.51-8.22,2.01,8.21-33.51,8.22Z"/>
<path d="M275.12,100.89l-3.43-49.29,9.33-.65,3.43,49.29-9.33.65ZM282.69,82.23l-.59-8.43,9.01-.63c2.17-.15,3.81-.9,4.92-2.24,1.11-1.34,1.59-3.15,1.43-5.42-.16-2.29-.88-4.02-2.17-5.19-1.29-1.17-3.02-1.67-5.18-1.52l-8.87.62-1.43-8.38,9.72-.67c5.39-.38,9.65.63,12.78,3.02,3.12,2.39,4.85,5.96,5.18,10.73.36,5.16-.83,9.27-3.58,12.33-2.75,3.06-6.82,4.78-12.21,5.16l-9.01.63ZM300.59,99.12l-11.08-22.53,9.82-.68,12.39,22.44-11.13.77Z"/>
<path d="M330.61,100.85c-2.84-.28-5.58-.79-8.21-1.53-2.63-.74-4.96-1.64-6.99-2.7l2.2-9.22c2.48,1.32,4.96,2.39,7.46,3.22,2.49.83,4.82,1.35,6.98,1.57,2.51.25,4.48,0,5.91-.74,1.43-.74,2.22-1.94,2.38-3.58.21-2.15-.99-3.99-3.62-5.53l-6.85-4.14c-3.38-2.06-5.92-4.44-7.62-7.15-1.7-2.71-2.4-5.59-2.1-8.63.42-4.29,2.2-7.47,5.32-9.54,3.12-2.07,7.33-2.84,12.62-2.32,3.08.31,5.95,1.12,8.6,2.46,2.66,1.33,4.95,3.11,6.89,5.33l-7.13,6.6c-1.47-1.68-2.99-3.02-4.55-4-1.56-.98-3.11-1.55-4.64-1.7-2.07-.21-3.72.07-4.96.82-1.24.75-1.94,1.95-2.1,3.58-.11,1.09.2,2.15.91,3.2s1.79,2.04,3.21,2.98l6.43,4.1c3.35,2.15,5.86,4.52,7.54,7.11,1.68,2.59,2.38,5.26,2.11,8.01-.43,4.36-2.36,7.57-5.79,9.62s-8.09,2.78-13.99,2.2Z"/>
<path d="M356.53,103.4l13.07-47.65,9.02,2.47-13.08,47.65-9.02-2.47ZM356.53,103.4l2.24-8.15,33.27,9.13-2.24,8.15-33.27-9.13ZM361.95,83.63l2.25-8.19,27.12,7.44-2.25,8.19-27.12-7.44ZM367.37,63.9l2.24-8.15,33.27,9.13-2.24,8.15-33.27-9.13Z"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.1 KiB

View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg id="Capa_2" data-name="Capa 2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 152.41 152.41">
<defs>
<style>
.cls-1 {
fill: #5aa02c;
}
.cls-2 {
fill: #8dd35f;
}
</style>
</defs>
<g id="Capa_2-2" data-name="Capa 2">
<path class="cls-2" d="M150.94,75.18c0,41.66-33.6,75.44-75.05,75.44-31.67,0-58.76-19.72-69.78-47.61,8.35,10.47,46.7,10.05,83.68-2.19,36.05-11.94,58.37-31,58.91-44.03,1.47,5.89,2.25,12.05,2.25,18.39Z"/>
<g>
<path class="cls-1" d="M145.46,59.6c-.51,12.3-21.68,30.29-55.88,41.56-35.08,11.56-71.46,11.95-79.39,2.07-.56-.7-.98-1.45-1.25-2.26-.26-.79-.41-1.62-.43-2.46-.42-12.1,22.52-29.17,57.63-40.74,35.08-11.56,69.91-13.54,77.64-3.87.55.69.96,1.43,1.23,2.24.36,1.09.51,2.25.46,3.46Z"/>
<path d="M37.34,112.49c-9.39,0-23.53-1.19-28.88-7.86-.73-.91-1.28-1.91-1.63-2.95-.33-.99-.51-2.03-.54-3.09-.24-6.81,5.44-14.57,16.42-22.44,10.78-7.73,25.56-14.81,42.74-20.47,17.25-5.68,34.88-9.24,49.66-10,10.92-.57,25.06.16,30.41,6.86.72.89,1.26,1.88,1.6,2.93.44,1.33.63,2.76.57,4.25h0c-.28,6.89-6.03,15-16.17,22.84-10.56,8.16-24.82,15.34-41.24,20.75-16.97,5.59-34.92,8.86-50.53,9.19-.76.02-1.57.03-2.41.03ZM120.84,49.95c-1.75,0-3.59.05-5.5.15-14.39.75-31.61,4.22-48.5,9.79-16.52,5.44-31.27,12.5-41.54,19.86-9.43,6.77-14.74,13.58-14.56,18.68.02.64.13,1.26.32,1.84.18.54.47,1.06.87,1.56,3.34,4.17,13.7,6.47,27.73,6.18,15.18-.32,32.67-3.51,49.23-8.96,15.94-5.25,29.75-12.18,39.91-20.04,8.95-6.92,14.22-14.03,14.44-19.5h0c.04-.95-.08-1.85-.35-2.67-.18-.55-.46-1.06-.85-1.54-2.76-3.46-10.36-5.34-21.2-5.34Z"/>
</g>
<path d="M76.21,152.41c-20.36,0-39.49-7.93-53.89-22.32C7.93,115.7,0,96.56,0,76.21S7.93,36.71,22.32,22.32,55.85,0,76.21,0s39.49,7.93,53.89,22.32c14.39,14.39,22.32,33.53,22.32,53.89s-7.93,39.49-22.32,53.89c-14.39,14.39-33.53,22.32-53.89,22.32ZM76.21,4.45C36.64,4.45,4.45,36.64,4.45,76.21s32.19,71.75,71.75,71.75,71.75-32.19,71.75-71.75S115.77,4.45,76.21,4.45Z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2 KiB

41
docs/index.md Normal file
View file

@ -0,0 +1,41 @@
<!--
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 Waifu and contributors.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
-->
# 🎲 Kemoverse Documentation
Welcome to the developer documentation for **Kemoverse**, a gacha trading card game in the Fediverse!
Features collectible cards, rarity-based pulls, and integration with Misskey.
Name comes from Kemonomimi and Fediverse.
---
## 📁 Table of Contents
- [Installation](./install.md)
- [Game Design](./design.md)
- [Bot Architecture](./bot.md)
- [Database Structure](./database.md)
- [Card System](./cards.md)
- [Web UI](./web.md)
- [Theming and Assets](./theme.md)
- [Contributing](./contributing.md)
- [FAQ](./faq.md)
---

100
docs/install.md Normal file
View file

@ -0,0 +1,100 @@
<!--
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 Waifu, VD15 and contributors.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
-->
## 🧪 Installation
### Download and install dependencies
Clone the repo
```sh
git clone https://git.waifuism.life/waifu/kemoverse.git
cd kemoverse
```
Setup a virtual environment (Optional, recommended)
```sh
python3 -m venv venv
source venv/bin/activate
```
Install project dependencies via pip
```sh
python3 -m pip install -r requirements.txt
```
### Setup config file
A sample config file is included with the project as a template: `example_config.ini`
Create a copy of this file and replace its' values with your own. Consult the
template for more information about individual config values and their meaning.
Config files are environment-specific. Use `config_dev.ini` for development and
`config_prod.ini` for production. Switch between environments using the
`KEMOVERSE_ENV` environment variable.
```sh
cp example_config.ini config_dev.ini
# Edit config_dev.ini
```
### Setup database
To set up the database, run:
```sh
KEMOVERSE_ENV=dev python3 setup_db.py
```
### Run the bot
```sh
KEMOVERSE_ENV=dev ./startup.sh
```
If all goes well, you should now be able to interact with the bot.
### Running in production
To run the the in a production environment, use `KEMOVERSE_ENV=prod`. You will
also need to create a `config_prod.ini` file and run the database setup step
again if pointing prod to a different database. (you are pointing dev and prod
to different databases, right? 🤨)
### Updating
To update the bot, first pull new changes from upstream:
```sh
git pull
```
Then run any database migrations. We recommend testing in dev beforehand to
make sure nothing breaks in the update process.
**Always backup your prod database before running any migrations!**
```sh
# Backup database file
cp gacha_game_dev.db gacha_game_dev.db.bak
# Run migrations
KEMOVERSE_ENV=dev python3 setup_db.py
```

99
docs/theme.md Normal file
View file

@ -0,0 +1,99 @@
<!--
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 Waifu and contributors.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
-->
Welcome to the **Visual Identity** guide for the Kemoverse. This page contains the standard colors, logos, and graphic elements used across the game (cards, UI, web presence, bots, etc). Please follow these guidelines to ensure consistency.
---
## 🟢 Primary Color Palette
| Color Name | Hex Code | Usage |
| --------------- | --------- | ---------------------------------- |
| Green | `#5aa02c` | Main buttons, links, headers |
| Midnight Black | `#1A1A1A` | Backgrounds, dark mode |
| Misty White | `#FAFAFA` | Default backgrounds, light text bg |
| Soft Gray | `#CCCCCC` | Borders, placeholders, separators |
| Highlight Green | `#8dd35f` | Alerts, emphasis, icons |
| Rarity Gold | `#FFD700` | Special rare cards, SSR outlines |
| Rarity Silver | `#C0C0C0` | Rare card text, stat glow effects |
> ✅ Use `Green` and `Misty White` for the standard UI. Avoid mixing in extra palettes unless explicitly needed.
---
## 🖼 Logos
### Main Logo
<p align="center">
<img src="./images/logo/logo.png" width="300" height="auto">
</p>
- Usage: Favicon, watermark
### Mascot Logo
<p align="center">
<img src="./images/logo/logoLibbie.png" width="300" height="auto">
</p>
- Usage: Bot profile picture
---
## Cards
### Standard card template
Here is a template card for the main game to use.
<p align="center">
<img src="./images/cards/example.png" width="300" height="auto">
<img src="./images/cards/card_back.png" width="300" height="auto">
</p>
---
## Other logo versions
### No text
<p align="center">
<img src="./images/logo/logo no text.png" width="300" height="auto">
</p>
### Monochrome
<p align="center">
<img src="./images/logo/logo darkKemoverse.png" width="300" height="auto">
<img src="./images/logo/logo lightKemoverse.png" width="300" height="auto">
<img src="./images/logo/logo black monochrome.png" width="300" height="auto">
<img src="./images/logo/logo green monochrome.png" width="300" height="auto">
<img src="./images/logo/logo light green monochrome 2.png" width="300" height="auto">
<img src="./images/logo/logo light green monochrome.png" width="300" height="auto">
<img src="./images/logo/logo white monochrome.png" width="300" height="auto">
</p>
## Extras
<p align="center">
<img src="./images/cards/bg.png" width="300" height="auto">
<img src="./images/cards/special_card.png" width="300" height="auto">
</p>
The svg can be found in the images folder of the documentation.
All of the pieces of media in this repository, including images, video or audio are licensed under Creative Commons Attribution-ShareAlike 4.0 International unless stated otherwise © 2025 by Waifu and contributors <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a><img src="https://mirrors.creativecommons.org/presskit/icons/cc.svg" alt="" style="max-width: 1em;max-height:1em;margin-left: .2em;"><img src="https://mirrors.creativecommons.org/presskit/icons/by.svg" alt="" style="max-width: 1em;max-height:1em;margin-left: .2em;"><img src="https://mirrors.creativecommons.org/presskit/icons/sa.svg" alt="" style="max-width: 1em;max-height:1em;margin-left: .2em;">

View file

@ -1,10 +1,37 @@
; Kemoverse - a gacha-style bot for the Fediverse.
; Copyright © 2025 Waifu and VD15
; This program is free software: you can redistribute it and/or modify
; it under the terms of the GNU Affero General Public License as
; published by the Free Software Foundation, either version 3 of the
; License, or (at your option) any later version.
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU Affero General Public License for more details.
; You should have received a copy of the GNU Affero General Public License
; along with this program. If not, see https://www.gnu.org/licenses/.
; Rename me to config.ini and put your values in here ; Rename me to config.ini and put your values in here
[application] [application]
; Comma separated list of fedi handles for any administrator users ; Comma separated list of fedi handles for any administrator users
; More can be added through the application ; More can be added through the application
DefaultAdmins = ['admin@example.tld'] DefaultAdmins = ["@localadmin", "@remoteadmin@example.tld"]
; SQLite Database location ; SQLite Database location
DatabaseLocation = ./gacha_game.db DatabaseLocation = ./gacha_game.db
; Instance type - either "misskey" or "pleroma"
InstanceType = misskey
; Web server port (default: 5000)
WebPort = 5000
; Web server bind address (default: 127.0.0.1, set to 0.0.0.0 to listen on all interfaces)
BindAddress = 127.0.0.1
; Whether to lmit access to the bot via an instance whitelist
; The whitelist can be adjusted via the application
UseWhitelist = False
[gacha] [gacha]
; Number of seconds players have to wait between rolls ; Number of seconds players have to wait between rolls
@ -32,4 +59,3 @@ User = @bot@example.tld
; API key for the bot ; API key for the bot
; Generate one by going to Settings > API > Generate access token ; Generate one by going to Settings > API > Generate access token
Token = abcdefghijklmnopqrstuvwxyz012345 Token = abcdefghijklmnopqrstuvwxyz012345

View file

@ -1,3 +1,20 @@
/*
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 VD15 and contributors.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
*/
CREATE TABLE IF NOT EXISTS users ( CREATE TABLE IF NOT EXISTS users (
id INTEGER PRIMARY KEY AUTOINCREMENT, id INTEGER PRIMARY KEY AUTOINCREMENT,
username TEXT UNIQUE NOT NULL, username TEXT UNIQUE NOT NULL,

View file

@ -1 +1,18 @@
/*
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 VD15 and contributors.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
*/
INSERT OR IGNORE INTO config VALUES ("last_seen_notif_id", 0); INSERT OR IGNORE INTO config VALUES ("last_seen_notif_id", 0);

View file

@ -1 +1,19 @@
/*
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 Waifu and contributors.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
*/
ALTER TABLE characters DROP COLUMN weight; ALTER TABLE characters DROP COLUMN weight;

View file

@ -0,0 +1,22 @@
/*
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 VD15 and contributors.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
*/
ALTER TABLE users RENAME TO players;
ALTER TABLE characters RENAME TO cards;
ALTER TABLE pulls RENAME user_id TO player_id;
ALTER TABLE pulls RENAME character_id TO card_id;

View file

@ -0,0 +1,19 @@
/*
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 VD15
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
*/
ALTER TABLE players ADD COLUMN is_administrator BOOLEAN NOT NULL DEFAULT 0;

View file

@ -0,0 +1,25 @@
/*
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 VD15
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
*/
CREATE TABLE IF NOT EXISTS instance_whitelist (
tld TEXT UNIQUE PRIMARY KEY
);
CREATE TABLE IF NOT EXISTS banned_players (
handle TEXT UNIQUE PRIMARY KEY
);

View file

@ -0,0 +1,26 @@
/*
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 Waifu
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
*/
ALTER TABLE cards
ADD COLUMN power INTEGER NOT NULL DEFAULT 0;
ALTER TABLE cards
ADD COLUMN charm INTEGER NOT NULL DEFAULT 0;
ALTER TABLE cards
ADD COLUMN wit INTEGER NOT NULL DEFAULT 0;

127
readme.md
View file

@ -1,12 +1,33 @@
<!--
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 Waifu and contributors.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
-->
# Kemoverse # Kemoverse
A gacha-style bot for the Fediverse built with Python. Users can roll for characters, trade, duel, and perhaps engage with popularity-based mechanics. Currently designed for use with Misskey. Name comes from Kemonomimi and Fediverse. A gacha-style bot for the Fediverse built with Python. Users can roll for characters, trade, duel, and perhaps engage with popularity-based mechanics. Supports both Misskey and Pleroma instances. Name comes from Kemonomimi and Fediverse.
<p align="center">
<img src="./web/static/logo.png" alt="Fediverse Gacha Bot Logo" width="300" height="auto">
</p>
## Installation ## 📝 Docs
## Roadmap 👉 [**Start reading the docs**](./docs/index.md)
![Fediverse Gacha Bot Logo](./web/static/logo.png) 🤌 [**Install instructions for those in a rush**](docs/install.md)
## 🔧 Features ## 🔧 Features
@ -15,10 +36,11 @@ A gacha-style bot for the Fediverse built with Python. Users can roll for charac
- 🧠 Core database structure for cards - 🧠 Core database structure for cards
- 📦 Basic support for storing pulls per player - 📦 Basic support for storing pulls per player
- ⏱️ Time-based limitations on rolls - ⏱️ Time-based limitations on rolls
- ⚠️ Explicit account creation/deletion
### 🧩 In Progress ### 🧩 In Progress
- 📝 Whitelist system to limit access - 📝 Whitelist system to limit access
- ⚠️ Explicit account creation/deletion
## 🧠 Roadmap ## 🧠 Roadmap
@ -43,13 +65,13 @@ A gacha-style bot for the Fediverse built with Python. Users can roll for charac
- 🌐 Web app to generate cards from images - 🌐 Web app to generate cards from images
### 🌍 Fediverse Support ### 🌍 Fediverse Support
✅ Anyone from the fediverse can play, but the server only works using a Misskey instance. Want to rewrite the program in Elixir for Pleroma? Let us know! ✅ Anyone from the fediverse can play! The bot supports both Misskey and Pleroma instances through configurable backends.
## 🗃️ Tech Stack ## 🗃️ Tech Stack
- Python (3.12+) - Python (3.12+)
- SQLite - SQLite
- Fediverse API integration (via Misskey endpoints) - Fediverse API integration (Misskey and Pleroma support)
- Flask - Flask
- Modular DB design for extensibility - Modular DB design for extensibility
@ -57,99 +79,42 @@ A gacha-style bot for the Fediverse built with Python. Users can roll for charac
The bot is meant to feel *light, fun, and competitive*. Mixing social, gacha and duel tactics. The bot is meant to feel *light, fun, and competitive*. Mixing social, gacha and duel tactics.
## 🧪 Installation ## 📝 License
### Download and install dependencies Unless stated otherwise, this repository is:
Clone the repo **Copyright © 2025 Waifu and contributors**
**Licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later)**
```sh ---
git clone https://git.waifuism.life/waifu/kemoverse.git
cd kemoverse
```
Setup a virtual environment (Optional, recommended) ### 🛠️ What this means for you:
```sh - You are free to **use**, **modify**, and **redistribute** the code, as long as you preserve the same license.
python3 -m venv venv - If you run a modified version of this software as part of a service (e.g., a website or bot), you must also **share the source code** of your modifications with users.
source venv/bin/activate
```
Install project dependencies via pip A copy of the license should also be included in this repository.
If not, you can always find it at [gnu.org/licenses](https://www.gnu.org/licenses/).
```sh ---
python3 -m pip install -r requirements.txt
```
### Setup config file The AGPL exists to **protect user freedom**, especially in networked and server-side software. If you enhance or build upon this project, please help the community by sharing your changes too.
A sample config file is included with the project as a template: `example_config.ini` Unless explicitly stated otherwise, **all files in this repository are covered by the AGPL v3.0 or any later version**.
Create a copy of this file and replace its' values with your own. Consult the
template for more information about individual config values and their meaning.
Config files are environment-specific. Use `config_dev.ini` for development and
`config_prod.ini` for production. Switch between environments using the
`KEMOVERSE_ENV` environment variable.
```sh
cp example_config.ini config_dev.ini
# Edit config_dev.ini
```
### Setup database
To set up the database, run:
```sh
KEMOVERSE_ENV=dev python3 setup_db.py
```
### Run the bot
```sh
KEMOVERSE_ENV=dev ./startup.sh
```
If all goes well, you should now be able to interact with the bot.
### Running in production
To run the the in a production environment, use `KEMOVERSE_ENV=prod`. You will
also need to create a `config_prod.ini` file and run the database setup step
again if pointing prod to a different database. (you are pointing dev and prod
to different databases, right? 🤨)
### Updating
To update the bot, first pull new changes from upstream:
```sh
git pull
```
Then run any database migrations. We recommend testing in dev beforehand to
make sure nothing breaks in the update process.
**Always backup your prod database before running any migrations!**
```sh
# Backup database file
cp gacha_game_dev.db gacha_game_dev.db.bak
# Run migrations
KEMOVERSE_ENV=dev python3 setup_db.py
```
```mermaid ```mermaid
flowchart TD flowchart TD
subgraph Player Interaction subgraph Player Interaction
A1[Misskey bot] A1[Fediverse bot]
A2[Web] A2[Web]
end end
subgraph Misskey subgraph Fediverse
B1[Misskey instance] B1[Fediverse instance]
end end
subgraph Bot subgraph Bot
@ -157,7 +122,7 @@ flowchart TD
C2[Notification parser] C2[Notification parser]
C3[Gacha roll logic] C3[Gacha roll logic]
C4[Database interface] C4[Database interface]
C5[Misskey API poster] C5[Fediverse API poster]
end end
subgraph Website subgraph Website

View file

@ -1,3 +1,19 @@
# Kemoverse - a gacha-style bot for the Fediverse.
# Copyright © 2025 Waifu
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
blinker==1.9.0 blinker==1.9.0
click==8.1.8 click==8.1.8
Flask==3.1.0 Flask==3.1.0
@ -6,3 +22,5 @@ Jinja2==3.1.6
MarkupSafe==3.0.2 MarkupSafe==3.0.2
Werkzeug==3.1.3 Werkzeug==3.1.3
Misskey.py==4.1.0 Misskey.py==4.1.0
Mastodon.py==1.8.1
filetype==1.2.0

View file

@ -1,3 +1,19 @@
#Kemoverse - a gacha-style bot for the Fediverse.
#Copyright © 2025 Waifu
#
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU Affero General Public License as
#published by the Free Software Foundation, either version 3 of the
#License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU Affero General Public License for more details.
#
#You should have received a copy of the GNU Affero General Public License
#along with this program. If not, see https://www.gnu.org/licenses/.
import sqlite3 import sqlite3
import traceback import traceback
import os import os
@ -57,16 +73,14 @@ def perform_migration(cursor: sqlite3.Cursor, migration: tuple[int, str]) -> Non
def get_db_path() -> str | DBNotFoundError: def get_db_path() -> str | DBNotFoundError:
'''Gets the DB path from config.ini''' '''Gets the DB path from config.ini'''
env = os.environ.get('KEMOVERSE_ENV') env = os.environ.get('KEMOVERSE_ENV')
if not (env and env in ['prod', 'dev']):
raise KemoverseEnvUnset
print(f'Running in "{env}" mode')
config_path = f'config_{env}.ini' config_path = f'config_{env}.ini'
if not os.path.isfile(config_path): if not os.path.isfile(config_path):
raise ConfigError(f'Could not find {config_path}') raise ConfigError(f'Could not find {config_path}')
print(f'Running in "{env}" mode')
config = ConfigParser() config = ConfigParser()
config.read(config_path) config.read(config_path)
db_path = config['application']['DatabaseLocation'] db_path = config['application']['DatabaseLocation']
@ -96,7 +110,6 @@ def main():
return return
except KemoverseEnvUnset: except KemoverseEnvUnset:
print('Error: KEMOVERSE_ENV is either not set or has an invalid value.') print('Error: KEMOVERSE_ENV is either not set or has an invalid value.')
print('Please set KEMOVERSE_ENV to either "dev" or "prod" before running.')
print(traceback.format_exc()) print(traceback.format_exc())
return return

View file

@ -1,5 +1,21 @@
#!/bin/bash #!/bin/bash
# Kemoverse - a gacha-style bot for the Fediverse.
# Copyright © 2025 Waifu and VD15
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
# Navigate to the project directory (optional) # Navigate to the project directory (optional)
cd "$(dirname "$0")" cd "$(dirname "$0")"

View file

@ -1,13 +1,34 @@
#Kemoverse - a gacha-style bot for the Fediverse.
#Copyright © 2025 Waifu
#
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU Affero General Public License as
#published by the Free Software Foundation, either version 3 of the
#License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU Affero General Public License for more details.
#
#You should have received a copy of the GNU Affero General Public License
#along with this program. If not, see https://www.gnu.org/licenses/.
import sqlite3 import sqlite3
import sys
import os
# Add bot directory to path to import config
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'bot'))
import config
from flask import Flask, render_template, abort from flask import Flask, render_template, abort
from werkzeug.exceptions import HTTPException from werkzeug.exceptions import HTTPException
app = Flask(__name__) app = Flask(__name__)
DB_PATH = "./gacha_game.db" # Adjust path if needed
def get_db_connection(): def get_db_connection():
conn = sqlite3.connect(DB_PATH) conn = sqlite3.connect(config.DB_PATH)
conn.row_factory = sqlite3.Row conn.row_factory = sqlite3.Row
return conn return conn
@ -72,4 +93,4 @@ def card():
if __name__ == '__main__': if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000, debug=True) app.run(host=config.BIND_ADDRESS, port=config.WEB_PORT, debug=True)

View file

@ -1,13 +1,30 @@
/*
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 Waifu
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
*/
body { body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
background-color: #f4f6fa; background-color: #FAFAFA;
color: #333; color: #333;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
header { header {
background-color: #7289da; background-color: #5aa02c;
color: white; color: white;
padding: 20px; padding: 20px;
text-align: center; text-align: center;

View file

@ -1,3 +1,20 @@
<!--
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 Waifu
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
-->
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>

View file

@ -1,3 +1,20 @@
<!--
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 Waifu
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
-->
{% extends "_base.html" %} {% extends "_base.html" %}
{% block title %} {% block title %}
{{ error.code }} {{ error.code }}

View file

@ -1,3 +1,20 @@
<!--
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 Waifu
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
-->
{% extends "_base.html" %} {% extends "_base.html" %}
{% block content %} {% block content %}

View file

@ -1,3 +1,21 @@
<!--
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 Waifu
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
-->
{% extends "_base.html" %} {% extends "_base.html" %}
{% block header %} {% block header %}

View file

@ -1,3 +1,20 @@
<!--
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 Waifu
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
-->
{% extends "_base.html" %} {% extends "_base.html" %}
{% block content %} {% block content %}

View file

@ -1,3 +1,20 @@
<!--
Kemoverse - a gacha-style bot for the Fediverse.
Copyright © 2025 Waifu
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
-->
{% extends "_base.html" %} {% extends "_base.html" %}
{% block content %} {% block content %}
<div class="profile"> <div class="profile">