diff --git a/.gitattributes b/.gitattributes index ac481c8eb05e4d2496fbe076a38a7b4835dd733d..64f23e0770da589d2949e1c24149405f5eda3d68 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,7 @@ *.7z filter=lfs diff=lfs merge=lfs -text *.arrow filter=lfs diff=lfs merge=lfs -text *.bin filter=lfs diff=lfs merge=lfs -text +*.bin.* filter=lfs diff=lfs merge=lfs -text *.bz2 filter=lfs diff=lfs merge=lfs -text *.ftz filter=lfs diff=lfs merge=lfs -text *.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000000000000000000000000000000000..b7368caa279c72700682192b30918dbedb673829 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.formatting.provider": "black" +} diff --git a/README.md b/README.md index f406ec96118f8f974a92075675b55dd16a120d4a..d161c2aa2ce4baabf376511198475d255b61e30f 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,10 @@ --- -title: Musica -emoji: 🐢 -colorFrom: indigo -colorTo: yellow +title: Composer2 +emoji: 🪄 +colorFrom: gray +colorTo: black sdk: gradio -sdk_version: 3.0.3 -app_file: app.py +sdk_version: 2.9.4 +app_file: start.py pinned: false -license: apache-2.0 --- - -Check out the configuration reference at https://huggingface.co/docs/hub/spaces#reference diff --git a/app.py b/app.py new file mode 100644 index 0000000000000000000000000000000000000000..947de0915e0365e2e5ea42238cd8d202b91b7a5c --- /dev/null +++ b/app.py @@ -0,0 +1,276 @@ +# Copyright 2022 Tristan Behrens. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Lint as: python3 + +from fastapi import BackgroundTasks, FastAPI +from fastapi.staticfiles import StaticFiles +from fastapi.responses import FileResponse +from pydantic import BaseModel +from PIL import Image +import os +import io +import random +import base64 +from time import time +from statistics import mean +from collections import OrderedDict +import torch +import wave +from source.logging import create_logger +from source.tokensequence import token_sequence_to_audio, token_sequence_to_image +from source import constants +from transformers import AutoTokenizer, AutoModelForCausalLM + +logger = create_logger(__name__) + +# Load the auth-token from authtoken.txt. +auth_token = os.getenv("authtoken") + +# Loading the model and its tokenizer. +logger.info("Loading tokenizer and model...") +tokenizer = AutoTokenizer.from_pretrained( + "ai-guru/lakhclean_mmmtrack_4bars_d-2048", use_auth_token=auth_token +) +model = AutoModelForCausalLM.from_pretrained( + "ai-guru/lakhclean_mmmtrack_4bars_d-2048", use_auth_token=auth_token +) +logger.info("Done.") + + +# Create the app +logger.info("Creating app...") +app = FastAPI(docs_url=None, redoc_url=None) +app.mount("/static", StaticFiles(directory="static"), name="static") +logger.info("Done.") + + +class Options(BaseModel): + music_style: str + density: str + temperature: str + + +class NewTask(BaseModel): + music_style = "synth" + density = "medium" + temperature = "medium" + + +def get_place_in_queue(task_id): + queued_tasks = list( + task + for task in tasks.values() + if task["status"] == "queued" or task["status"] == "processing" + ) + + queued_tasks.sort(key=lambda task: task["created_at"]) + + queued_task_ids = list(task["task_id"] for task in queued_tasks) + + try: + return queued_task_ids.index(task_id) + 1 + except: + return 0 + + +def calculate_eta(task_id): + total_durations = list( + task["completed_at"] - task["started_at"] + for task in tasks.values() + if "completed_at" in task and task["status"] == "completed" + ) + + initial_place_in_queue = tasks[task_id]["initial_place_in_queue"] + + if len(total_durations): + eta = initial_place_in_queue * mean(total_durations) + else: + eta = initial_place_in_queue * 35 + + return round(eta, 1) + + +def next_task(task_id): + tasks[task_id]["completed_at"] = time() + + queued_tasks = list(task for task in tasks.values() if task["status"] == "queued") + + if queued_tasks: + print( + f"{task_id} {tasks[task_id]['status']}. Task/s remaining: {len(queued_tasks)}" + ) + process_task(queued_tasks[0]["task_id"]) + + +def process_task(task_id): + if "processing" in list(task["status"] for task in tasks.values()): + return + + if tasks[task_id]["last_poll"] and time() - tasks[task_id]["last_poll"] > 30: + tasks[task_id]["status"] = "abandoned" + next_task(task_id) + + tasks[task_id]["status"] = "processing" + tasks[task_id]["started_at"] = time() + print(f"Processing {task_id}") + + try: + tasks[task_id]["output"] = compose( + tasks[task_id]["music_style"], + tasks[task_id]["density"], + tasks[task_id]["temperature"], + ) + except Exception as ex: + tasks[task_id]["status"] = "failed" + tasks[task_id]["error"] = repr(ex) + else: + tasks[task_id]["status"] = "completed" + finally: + next_task(task_id) + + +def compose(music_style, density, temperature): + instruments = constants.get_instruments(music_style) + density = constants.get_density(density) + temperature = constants.get_temperature(temperature) + print(f"instruments: {instruments} density: {density} temperature: {temperature}") + + # Generate with the given parameters. + logger.info(f"Generating token sequence...") + generated_sequence = generate_sequence(instruments, density, temperature) + logger.info(f"Generated token sequence: {generated_sequence}") + + # Get the audio data as a array of int16. + logger.info("Generating audio...") + sample_rate, audio_data = token_sequence_to_audio(generated_sequence) + logger.info(f"Done. Audio data: {len(audio_data)}") + + # Encode the audio-data as wave file in memory. Use the wave module. + audio_data_bytes = io.BytesIO() + wave_file = wave.open(audio_data_bytes, "wb") + wave_file.setframerate(sample_rate) + wave_file.setnchannels(1) + wave_file.setsampwidth(2) + wave_file.writeframes(audio_data) + wave_file.close() + + # Return the audio-data as a base64-encoded string. + audio_data_bytes.seek(0) + audio_data_base64 = base64.b64encode(audio_data_bytes.read()).decode("utf-8") + audio_data_bytes.close() + + # Convert the audio data to an PIL image. + image = token_sequence_to_image(generated_sequence) + + # Save PIL image to harddrive as PNG. + logger.debug(f"Saving image to harddrive... {type(image)}") + image_file_name = "compose.png" + image.save(image_file_name, "PNG") + + # Save image to virtual file. + img_io = io.BytesIO() + image.save(img_io, "PNG", quality=70) + img_io.seek(0) + + # Return the image as a base64-encoded string. + image_data_base64 = base64.b64encode(img_io.read()).decode("utf-8") + img_io.close() + + # Return. + return { + "tokens": generated_sequence, + "audio": "data:audio/wav;base64," + audio_data_base64, + "image": "data:image/png;base64," + image_data_base64, + "status": "OK", + } + + +def generate_sequence(instruments, density, temperature): + instruments = instruments[::] + random.shuffle(instruments) + + generated_ids = tokenizer.encode("PIECE_START", return_tensors="pt")[0] + + for instrument in instruments: + more_ids = tokenizer.encode( + f"TRACK_START INST={instrument} DENSITY={density}", return_tensors="pt" + )[0] + generated_ids = torch.cat((generated_ids, more_ids)) + generated_ids = generated_ids.unsqueeze(0) + + generated_ids = model.generate( + generated_ids, + max_length=2048, + do_sample=True, + temperature=temperature, + eos_token_id=tokenizer.encode("TRACK_END")[0], + )[0] + + generated_sequence = tokenizer.decode(generated_ids) + print("GENERATING COMPLETE") + print(generate_sequence) + return generated_sequence + + +tasks = OrderedDict() + +# Route for the loading page. +@app.head("/") +@app.route("/") +def index(request): + return FileResponse(path="static/index.html", media_type="text/html") + + +@app.post("/task/create") +def create_task(background_tasks: BackgroundTasks, new_task: NewTask): + created_at = time() + + task_id = f"{str(created_at)}_{new_task.music_style}" + + tasks[task_id] = OrderedDict( + { + "task_id": task_id, + "status": "queued", + "eta": None, + "created_at": created_at, + "started_at": None, + "completed_at": None, + "last_poll": None, + "poll_count": 0, + "initial_place_in_queue": None, + "place_in_queue": None, + "music_style": new_task.music_style, + "density": new_task.density, + "temperature": new_task.temperature, + "output": None, + } + ) + + tasks[task_id]["initial_place_in_queue"] = get_place_in_queue(task_id) + tasks[task_id]["eta"] = calculate_eta(task_id) + + background_tasks.add_task(process_task, task_id) + + return tasks[task_id] + + +@app.get("/task/poll") +def poll_task(task_id: str): + tasks[task_id]["place_in_queue"] = get_place_in_queue(task_id) + tasks[task_id]["eta"] = calculate_eta(task_id) + tasks[task_id]["last_poll"] = time() + tasks[task_id]["poll_count"] += 1 + + return tasks[task_id] diff --git a/packages.txt b/packages.txt new file mode 100644 index 0000000000000000000000000000000000000000..b3a8889150afd349b2de561a012b2c0a7870d612 --- /dev/null +++ b/packages.txt @@ -0,0 +1,6 @@ +libfluidsynth1 +fluid-soundfont-gm +build-essential +libasound2-dev +libjack-dev +ffmpeg diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..f8252699437ec8b2ea955be2d1eb365d4e46c018 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,7 @@ +transformers==4.18.* +tokenizers==0.12.* +datasets==2.1.* +fastapi[all]==0.75.* +torch==1.11.* +pyfluidsynth==1.3.* +note-seq==0.0.* diff --git a/source/constants.py b/source/constants.py new file mode 100644 index 0000000000000000000000000000000000000000..b1cda5cb940a3f03fa1145894942f5cd24e9893b --- /dev/null +++ b/source/constants.py @@ -0,0 +1,104 @@ +compose_styles_config = { + "piano": { + "readable": "Piano", + "instruments": ["1"], + }, + "chamber": { + "readable": "Chamber Music", + "instruments": ["0", "40", "42"], + }, + "rock_and_metal": { + "readable": "Rock and Metal", + "instruments": ["DRUMS", "30", "34"], + }, + "synth": { + "readable": "Synthesizer", + "instruments": ["DRUMS", "38", "80"], + }, + "church": { + "readable": "Church", + "instruments": ["19", "52"], + }, + "timpani_strings_harp": { + "readable": "Timpani, Contrabass, Harp", + "instruments": ["47", "43", "46"], + }, + "country": { + "readable": "Country", + "instruments": ["DRUMS", "22", "32", "25"], + }, + "reggae": { + "readable": "Reggae-esque", + "instruments": ["114", "28", "1"], + }, +} + +densities_config = { + "low": { + "readable": "Low", + "density": 4, + }, + "medium": { + "readable": "Medium", + "density": 6, + }, + "high": { + "readable": "High", + "density": 8, + }, +} + +temperatures_config = { + "low": { + "readable": "Low", + "temperature": 0.5, + }, + "medium": { + "readable": "Medium", + "temperature": 0.75, + }, + "high": { + "readable": "High", + "temperature": 1.0, + }, + "very_high": { + "readable": "Very High", + "temperature": 1.25, + }, +} + + +def get_compose_styles_for_ui(): + compose_styles = [ + [key, compose_styles_config[key]["readable"]] + for key, value in compose_styles_config.items() + ] + return compose_styles + + +def get_densities_for_ui(): + densities = [ + [key, densities_config[key]["readable"]] + for key, value in densities_config.items() + ] + return densities + + +def get_temperatures_for_ui(): + temperatures = [ + [key, temperatures_config[key]["readable"]] + for key, value in temperatures_config.items() + ] + return temperatures + + +def get_instruments(key): + return compose_styles_config[key]["instruments"] + + +def get_density(key): + return densities_config[key]["density"] + + +def get_temperature(key): + return temperatures_config[key]["temperature"] diff --git a/source/logging.py b/source/logging.py new file mode 100644 index 0000000000000000000000000000000000000000..082d1c8bb3c60e29027026a50a6f7e7bb89d0ba3 --- /dev/null +++ b/source/logging.py @@ -0,0 +1,45 @@ +# Copyright 2021 Tristan Behrens. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Lint as: python3 + +import logging + +loggers_dict = {} + +def create_logger(name:str): + global loggers_dict + if name in loggers_dict: + return loggers_dict[name] + else: + logger = logging.getLogger(name) + loggers_dict[name] = logger + logger.setLevel(logging.DEBUG) + handler = logging.StreamHandler() + handler.setLevel(logging.DEBUG) + formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') + handler.setFormatter(formatter) + logger.addHandler(handler) + logger.propagate = False + return logger + +def set_log_level(name, level): + logger_names = [] + if name == "all": + logger_names = list(loggers_dict.keys()) + else: + logger_names = [name] + for name in logger_names: + logger = loggers_dict[name] + logger.setLevel(level) diff --git a/source/tokensequence.py b/source/tokensequence.py new file mode 100644 index 0000000000000000000000000000000000000000..a13377f1444d9897f7ceeba461b0b8add25e46a9 --- /dev/null +++ b/source/tokensequence.py @@ -0,0 +1,161 @@ +import note_seq +import numpy as np +from PIL import Image + +NOTE_LENGTH_16TH_120BPM = 0.25 * 60 / 120 +BAR_LENGTH_120BPM = 4.0 * 60 / 120 +SAMPLE_RATE=44100 + +def token_sequence_to_audio(token_sequence): + note_sequence = token_sequence_to_note_sequence(token_sequence) + synth = note_seq.midi_synth.fluidsynth + array_of_floats = synth(note_sequence, sample_rate=SAMPLE_RATE) + note_plot = note_seq.plot_sequence(note_sequence, False) + array_of_floats /=1.414 + array_of_floats *= 32767 + int16_data = array_of_floats.astype(np.int16) + return SAMPLE_RATE, int16_data + +def token_sequence_to_image(token_sequence): + + note_sequence = token_sequence_to_note_sequence(token_sequence) + + # Find minumum and maximum pitch. + min_pitch = 128 + max_pitch = 0 + for note in note_sequence.notes: + if note.pitch < min_pitch: + min_pitch = note.pitch + if note.pitch > max_pitch: + max_pitch = note.pitch + + image_height = max_pitch - min_pitch + 1 + image_width = int(16 * 4) + + color = (12, 12, 12) + + # Indicate that this bar was used for composition. + image = Image.new("RGB", (image_width, image_height), color) + + # colors = [(0, 0, 0), (255, 255, 255), (255, 0, 0), (0, 255, 0), (0, 0, 255), (255, 255, 0), (255, 0, 255), (0, 255, 255)] + colors = [(248, 249, 250), (233, 236, 239), (173, 181, 189), (52, 58, 64)] + + instrument_to_color_index = {} + + # Draw the notes. + for note in note_sequence.notes: + x = int(note.start_time / note_sequence.total_time * image_width) + y = note.pitch - min_pitch + width = int((note.end_time - note.start_time) / note_sequence.total_time * image_width) + height = 1 + + if note.instrument not in instrument_to_color_index: + instrument_to_color_index[note.instrument] = len(instrument_to_color_index) + color_index = instrument_to_color_index[note.instrument] + color = colors[color_index] + + #color = (255, 255, 255) + image.paste(color, (x, y, x + width, y + height)) + + # Rescale and rotate. + factor = 8 + image = image.resize((image_width * factor, image_height * factor), Image.NEAREST) + image = image.transpose(Image.FLIP_TOP_BOTTOM) + + return image + + + + +def token_sequence_to_note_sequence(token_sequence, use_program=True, use_drums=True, instrument_mapper=None, only_piano=False): + if isinstance(token_sequence, str): + token_sequence = token_sequence.split() + note_sequence = empty_note_sequence() + + # Render all notes. + current_program = 1 + current_is_drum = False + current_instrument = 0 + track_count = 0 + for token_index, token in enumerate(token_sequence): + + if token == "PIECE_START": + pass + elif token == "PIECE_END": + print("The end.") + break + elif token == "TRACK_START": + current_bar_index = 0 + track_count += 1 + pass + elif token == "TRACK_END": + pass + elif token.startswith("INST"): + instrument = token.split("=")[-1] + if instrument != "DRUMS" and use_program: + if instrument_mapper is not None: + if instrument in instrument_mapper: + instrument = instrument_mapper[instrument] + current_program = int(instrument) + current_instrument = track_count + current_is_drum = False + if instrument == "DRUMS" and use_drums: + current_instrument = 0 + current_program = 0 + current_is_drum = True + elif token == "BAR_START": + current_time = current_bar_index * BAR_LENGTH_120BPM + current_notes = {} + elif token == "BAR_END": + current_bar_index += 1 + pass + elif token.startswith("NOTE_ON"): + pitch = int(token.split("=")[-1]) + note = note_sequence.notes.add() + note.start_time = current_time + note.end_time = current_time + 4 * NOTE_LENGTH_16TH_120BPM + note.pitch = pitch + note.instrument = current_instrument + note.program = current_program + note.velocity = 80 + note.is_drum = current_is_drum + current_notes[pitch] = note + elif token.startswith("NOTE_OFF"): + pitch = int(token.split("=")[-1]) + if pitch in current_notes: + note = current_notes[pitch] + note.end_time = current_time + elif token.startswith("TIME_DELTA"): + delta = float(token.split("=")[-1]) * NOTE_LENGTH_16TH_120BPM + current_time += delta + elif token.startswith("DENSITY="): + pass + elif token == "[PAD]": + pass + else: + pass + + # Make the instruments right. + instruments_drums = [] + for note in note_sequence.notes: + pair = [note.program, note.is_drum] + if pair not in instruments_drums: + instruments_drums += [pair] + note.instrument = instruments_drums.index(pair) + + if only_piano: + for note in note_sequence.notes: + if not note.is_drum: + note.instrument = 0 + note.program = 0 + + note_sequence.total_time = current_time + + return note_sequence + +def empty_note_sequence(qpm=120.0, total_time=0.0): + note_sequence = note_seq.protobuf.music_pb2.NoteSequence() + note_sequence.tempos.add().qpm = qpm + note_sequence.ticks_per_quarter = note_seq.constants.STANDARD_PPQ + note_sequence.total_time = total_time + return note_sequence \ No newline at end of file diff --git a/source/ui/.eslintrc.cjs b/source/ui/.eslintrc.cjs new file mode 100644 index 0000000000000000000000000000000000000000..ad67da5bff667812c8816911652ffb5b501d1ec0 --- /dev/null +++ b/source/ui/.eslintrc.cjs @@ -0,0 +1,75 @@ +module.exports = { + root: true, + parser: '@typescript-eslint/parser', + extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'], + plugins: ['svelte3', '@typescript-eslint'], + ignorePatterns: ['*.cjs'], + overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], + settings: { + 'svelte3/typescript': () => require('typescript') + }, + parserOptions: { + sourceType: 'module', + ecmaVersion: 2020, + ecmaFeatures: { + impliedStrict: true + } + }, + env: { + browser: true, + es2017: true, + node: true + }, + rules: { + // Best Practices + 'class-methods-use-this': 'warn', + 'no-lone-blocks': 'error', + 'no-self-compare': 'error', + 'no-sequences': 'error', + 'no-useless-concat': 'error', + 'vars-on-top': 'error', + yoda: 'error', + + // Variables + 'no-use-before-define': 'error', + + // Stylistic Issues + 'comma-dangle': ['warn', 'only-multiline'], + 'eol-last': 'warn', + 'function-paren-newline': 'warn', + 'implicit-arrow-linebreak': 'error', + 'key-spacing': 'warn', + 'keyword-spacing': 'warn', + 'max-depth': ['warn', { max: 6 }], + 'max-nested-callbacks': ['warn', { max: 4 }], + 'max-params': ['warn', { max: 5 }], + 'max-statements-per-line': 'error', + 'new-cap': [ + 'warn', + { + newIsCap: true, + capIsNew: false, + properties: false + } + ], + 'no-mixed-operators': 'warn', + 'no-multi-assign': 'warn', + 'no-multiple-empty-lines': 'warn', + 'no-nested-ternary': 'warn', + 'no-trailing-spaces': 'warn', + 'no-whitespace-before-property': 'error', + 'one-var-declaration-per-line': 'warn', + 'quote-props': ['error', 'consistent-as-needed'], + semi: ['warn', 'always'], + 'semi-spacing': 'error', + 'semi-style': 'error', + 'space-before-function-paren': 'off', + 'switch-colon-spacing': 'error', + + // ECMAScript 6 + 'arrow-spacing': 'warn', + 'no-useless-computed-key': 'warn', + 'no-useless-constructor': 'error', + 'prefer-const': 'warn' + } +}; diff --git a/source/ui/.gitignore b/source/ui/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..f4401a32d2422dfefe83732d141eea9452ba2d8f --- /dev/null +++ b/source/ui/.gitignore @@ -0,0 +1,8 @@ +.DS_Store +node_modules +/build +/.svelte-kit +/package +.env +.env.* +!.env.example diff --git a/source/ui/.npmrc b/source/ui/.npmrc new file mode 100644 index 0000000000000000000000000000000000000000..b6f27f135954640c8cc5bfd7b8c9922ca6eb2aad --- /dev/null +++ b/source/ui/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/source/ui/.prettierrc b/source/ui/.prettierrc new file mode 100644 index 0000000000000000000000000000000000000000..40d739005e7c98119bfdd57f4fc4d3f5d8e542ac --- /dev/null +++ b/source/ui/.prettierrc @@ -0,0 +1,12 @@ +{ + "arrowParens": "always", + "bracketSpacing": true, + "printWidth": 120, + "quoteProps": "consistent", + "semi": true, + "singleQuote": true, + "svelteIndentScriptAndStyle": false, + "useTabs": false, + "tabWidth": 2, + "trailingComma": "es5" +} diff --git a/source/ui/README.md b/source/ui/README.md new file mode 100644 index 0000000000000000000000000000000000000000..374efec4c10bf004b18a3faa32566c225a8377af --- /dev/null +++ b/source/ui/README.md @@ -0,0 +1,38 @@ +# create-svelte + +Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte). + +## Creating a project + +If you're seeing this, you've probably already done this step. Congrats! + +```bash +# create a new project in the current directory +npm init svelte + +# create a new project in my-app +npm init svelte my-app +``` + +## Developing + +Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: + +```bash +npm run dev + +# or start the server and open the app in a new browser tab +npm run dev -- --open +``` + +## Building + +To create a production version of your app: + +```bash +npm run build +``` + +You can preview the production build with `npm run preview`. + +> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment. diff --git a/source/ui/package.json b/source/ui/package.json new file mode 100644 index 0000000000000000000000000000000000000000..17ac49d88b61cefe6a5c87d12e76250cb193f9dd --- /dev/null +++ b/source/ui/package.json @@ -0,0 +1,32 @@ +{ + "name": "composer-ui", + "version": "0.0.1", + "scripts": { + "dev": "svelte-kit dev", + "build": "svelte-kit build", + "package": "svelte-kit package", + "preview": "svelte-kit preview", + "prepare": "svelte-kit sync", + "check": "svelte-check --tsconfig ./tsconfig.json", + "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch", + "lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .", + "format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ." + }, + "devDependencies": { + "@sveltejs/adapter-static": "^1.0.0-next.29", + "@sveltejs/kit": "next", + "@typescript-eslint/eslint-plugin": "^5.10.1", + "@typescript-eslint/parser": "^5.10.1", + "eslint": "^7.32.0", + "eslint-config-prettier": "^8.3.0", + "eslint-plugin-svelte3": "^3.2.1", + "prettier": "^2.5.1", + "prettier-plugin-svelte": "^2.5.0", + "svelte": "^3.44.0", + "svelte-check": "^2.2.6", + "svelte-preprocess": "^4.10.1", + "tslib": "^2.3.1", + "typescript": "~4.6.2" + }, + "type": "module" +} diff --git a/source/ui/pnpm-lock.yaml b/source/ui/pnpm-lock.yaml new file mode 100644 index 0000000000000000000000000000000000000000..70a6f522be6c74e99ef885e65cb019102470e073 --- /dev/null +++ b/source/ui/pnpm-lock.yaml @@ -0,0 +1,1748 @@ +lockfileVersion: 5.3 + +specifiers: + '@sveltejs/adapter-static': ^1.0.0-next.29 + '@sveltejs/kit': next + '@typescript-eslint/eslint-plugin': ^5.10.1 + '@typescript-eslint/parser': ^5.10.1 + eslint: ^7.32.0 + eslint-config-prettier: ^8.3.0 + eslint-plugin-svelte3: ^3.2.1 + prettier: ^2.5.1 + prettier-plugin-svelte: ^2.5.0 + svelte: ^3.44.0 + svelte-check: ^2.2.6 + svelte-preprocess: ^4.10.1 + tslib: ^2.3.1 + typescript: ~4.6.2 + +devDependencies: + '@sveltejs/adapter-static': 1.0.0-next.29 + '@sveltejs/kit': 1.0.0-next.323_svelte@3.47.0 + '@typescript-eslint/eslint-plugin': 5.21.0_bb9518338a760ece3e1b033a5f6af62e + '@typescript-eslint/parser': 5.21.0_eslint@7.32.0+typescript@4.6.3 + eslint: 7.32.0 + eslint-config-prettier: 8.5.0_eslint@7.32.0 + eslint-plugin-svelte3: 3.4.1_eslint@7.32.0+svelte@3.47.0 + prettier: 2.6.2 + prettier-plugin-svelte: 2.7.0_prettier@2.6.2+svelte@3.47.0 + svelte: 3.47.0 + svelte-check: 2.7.0_svelte@3.47.0 + svelte-preprocess: 4.10.6_svelte@3.47.0+typescript@4.6.3 + tslib: 2.4.0 + typescript: 4.6.3 + +packages: + + /@babel/code-frame/7.12.11: + resolution: {integrity: sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==} + dependencies: + '@babel/highlight': 7.17.9 + dev: true + + /@babel/helper-validator-identifier/7.16.7: + resolution: {integrity: sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/highlight/7.17.9: + resolution: {integrity: sha512-J9PfEKCbFIv2X5bjTMiZu6Vf341N05QIY+d6FvVKynkG1S7G0j3I0QoRtWIrXhZ+/Nlb5Q0MzqL7TokEJ5BNHg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': 7.16.7 + chalk: 2.4.2 + js-tokens: 4.0.0 + dev: true + + /@eslint/eslintrc/0.4.3: + resolution: {integrity: sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==} + engines: {node: ^10.12.0 || >=12.0.0} + dependencies: + ajv: 6.12.6 + debug: 4.3.4 + espree: 7.3.1 + globals: 13.13.0 + ignore: 4.0.6 + import-fresh: 3.3.0 + js-yaml: 3.14.1 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@humanwhocodes/config-array/0.5.0: + resolution: {integrity: sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==} + engines: {node: '>=10.10.0'} + dependencies: + '@humanwhocodes/object-schema': 1.2.1 + debug: 4.3.4 + minimatch: 3.1.2 + transitivePeerDependencies: + - supports-color + dev: true + + /@humanwhocodes/object-schema/1.2.1: + resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} + dev: true + + /@nodelib/fs.scandir/2.1.5: + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + dev: true + + /@nodelib/fs.stat/2.0.5: + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + dev: true + + /@nodelib/fs.walk/1.2.8: + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.13.0 + dev: true + + /@rollup/pluginutils/4.2.1: + resolution: {integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==} + engines: {node: '>= 8.0.0'} + dependencies: + estree-walker: 2.0.2 + picomatch: 2.3.1 + dev: true + + /@sveltejs/adapter-static/1.0.0-next.29: + resolution: {integrity: sha512-0hjGnfT3BRyoHnzJ2w0/xL+xICRpKneDTm45ZzggiRrc0r71WJfF6toGeg8N4QUQnj8EJ3Itm453gsS1kt7VUQ==} + dependencies: + tiny-glob: 0.2.9 + dev: true + + /@sveltejs/kit/1.0.0-next.323_svelte@3.47.0: + resolution: {integrity: sha512-5JVBfXZqVcWhsvtxdwtFPEzLNM8FmttNNyN0h5P25KLryF3BeOg5OicRK3t7qNBmWTTNovDgChb/gWmne5Oicg==} + engines: {node: '>=14.13'} + hasBin: true + peerDependencies: + svelte: ^3.44.0 + dependencies: + '@sveltejs/vite-plugin-svelte': 1.0.0-next.42_svelte@3.47.0+vite@2.9.6 + chokidar: 3.5.3 + sade: 1.8.1 + svelte: 3.47.0 + vite: 2.9.6 + transitivePeerDependencies: + - diff-match-patch + - less + - sass + - stylus + - supports-color + dev: true + + /@sveltejs/vite-plugin-svelte/1.0.0-next.42_svelte@3.47.0+vite@2.9.6: + resolution: {integrity: sha512-I8ILzfjVQuOkl6eDHif6/QJhOEBnsA40u6/0RDWK0mujwOr+MfWCWEZEnrTKqa6YIVMO+uktfoknu61chbAIeg==} + engines: {node: ^14.13.1 || >= 16} + peerDependencies: + diff-match-patch: ^1.0.5 + svelte: ^3.44.0 + vite: ^2.9.0 + peerDependenciesMeta: + diff-match-patch: + optional: true + dependencies: + '@rollup/pluginutils': 4.2.1 + debug: 4.3.4 + kleur: 4.1.4 + magic-string: 0.26.1 + svelte: 3.47.0 + svelte-hmr: 0.14.11_svelte@3.47.0 + vite: 2.9.6 + transitivePeerDependencies: + - supports-color + dev: true + + /@types/json-schema/7.0.11: + resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==} + dev: true + + /@types/node/17.0.29: + resolution: {integrity: sha512-tx5jMmMFwx7wBwq/V7OohKDVb/JwJU5qCVkeLMh1//xycAJ/ESuw9aJ9SEtlCZDYi2pBfe4JkisSoAtbOsBNAA==} + dev: true + + /@types/pug/2.0.6: + resolution: {integrity: sha512-SnHmG9wN1UVmagJOnyo/qkk0Z7gejYxOYYmaAwr5u2yFYfsupN3sg10kyzN8Hep/2zbHxCnsumxOoRIRMBwKCg==} + dev: true + + /@types/sass/1.43.1: + resolution: {integrity: sha512-BPdoIt1lfJ6B7rw35ncdwBZrAssjcwzI5LByIrYs+tpXlj/CAkuVdRsgZDdP4lq5EjyWzwxZCqAoFyHKFwp32g==} + dependencies: + '@types/node': 17.0.29 + dev: true + + /@typescript-eslint/eslint-plugin/5.21.0_bb9518338a760ece3e1b033a5f6af62e: + resolution: {integrity: sha512-fTU85q8v5ZLpoZEyn/u1S2qrFOhi33Edo2CZ0+q1gDaWWm0JuPh3bgOyU8lM0edIEYgKLDkPFiZX2MOupgjlyg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + '@typescript-eslint/parser': ^5.0.0 + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/parser': 5.21.0_eslint@7.32.0+typescript@4.6.3 + '@typescript-eslint/scope-manager': 5.21.0 + '@typescript-eslint/type-utils': 5.21.0_eslint@7.32.0+typescript@4.6.3 + '@typescript-eslint/utils': 5.21.0_eslint@7.32.0+typescript@4.6.3 + debug: 4.3.4 + eslint: 7.32.0 + functional-red-black-tree: 1.0.1 + ignore: 5.2.0 + regexpp: 3.2.0 + semver: 7.3.7 + tsutils: 3.21.0_typescript@4.6.3 + typescript: 4.6.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/parser/5.21.0_eslint@7.32.0+typescript@4.6.3: + resolution: {integrity: sha512-8RUwTO77hstXUr3pZoWZbRQUxXcSXafZ8/5gpnQCfXvgmP9gpNlRGlWzvfbEQ14TLjmtU8eGnONkff8U2ui2Eg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/scope-manager': 5.21.0 + '@typescript-eslint/types': 5.21.0 + '@typescript-eslint/typescript-estree': 5.21.0_typescript@4.6.3 + debug: 4.3.4 + eslint: 7.32.0 + typescript: 4.6.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/scope-manager/5.21.0: + resolution: {integrity: sha512-XTX0g0IhvzcH/e3393SvjRCfYQxgxtYzL3UREteUneo72EFlt7UNoiYnikUtmGVobTbhUDByhJ4xRBNe+34kOQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + '@typescript-eslint/types': 5.21.0 + '@typescript-eslint/visitor-keys': 5.21.0 + dev: true + + /@typescript-eslint/type-utils/5.21.0_eslint@7.32.0+typescript@4.6.3: + resolution: {integrity: sha512-MxmLZj0tkGlkcZCSE17ORaHl8Th3JQwBzyXL/uvC6sNmu128LsgjTX0NIzy+wdH2J7Pd02GN8FaoudJntFvSOw==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: '*' + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/utils': 5.21.0_eslint@7.32.0+typescript@4.6.3 + debug: 4.3.4 + eslint: 7.32.0 + tsutils: 3.21.0_typescript@4.6.3 + typescript: 4.6.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/types/5.21.0: + resolution: {integrity: sha512-XnOOo5Wc2cBlq8Lh5WNvAgHzpjnEzxn4CJBwGkcau7b/tZ556qrWXQz4DJyChYg8JZAD06kczrdgFPpEQZfDsA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + + /@typescript-eslint/typescript-estree/5.21.0_typescript@4.6.3: + resolution: {integrity: sha512-Y8Y2T2FNvm08qlcoSMoNchh9y2Uj3QmjtwNMdRQkcFG7Muz//wfJBGBxh8R7HAGQFpgYpdHqUpEoPQk+q9Kjfg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': 5.21.0 + '@typescript-eslint/visitor-keys': 5.21.0 + debug: 4.3.4 + globby: 11.1.0 + is-glob: 4.0.3 + semver: 7.3.7 + tsutils: 3.21.0_typescript@4.6.3 + typescript: 4.6.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/utils/5.21.0_eslint@7.32.0+typescript@4.6.3: + resolution: {integrity: sha512-q/emogbND9wry7zxy7VYri+7ydawo2HDZhRZ5k6yggIvXa7PvBbAAZ4PFH/oZLem72ezC4Pr63rJvDK/sTlL8Q==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + dependencies: + '@types/json-schema': 7.0.11 + '@typescript-eslint/scope-manager': 5.21.0 + '@typescript-eslint/types': 5.21.0 + '@typescript-eslint/typescript-estree': 5.21.0_typescript@4.6.3 + eslint: 7.32.0 + eslint-scope: 5.1.1 + eslint-utils: 3.0.0_eslint@7.32.0 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + + /@typescript-eslint/visitor-keys/5.21.0: + resolution: {integrity: sha512-SX8jNN+iHqAF0riZQMkm7e8+POXa/fXw5cxL+gjpyP+FI+JVNhii53EmQgDAfDcBpFekYSlO0fGytMQwRiMQCA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + '@typescript-eslint/types': 5.21.0 + eslint-visitor-keys: 3.3.0 + dev: true + + /acorn-jsx/5.3.2_acorn@7.4.1: + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + dependencies: + acorn: 7.4.1 + dev: true + + /acorn/7.4.1: + resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==} + engines: {node: '>=0.4.0'} + hasBin: true + dev: true + + /ajv/6.12.6: + resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} + dependencies: + fast-deep-equal: 3.1.3 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.4.1 + dev: true + + /ajv/8.11.0: + resolution: {integrity: sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==} + dependencies: + fast-deep-equal: 3.1.3 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + uri-js: 4.4.1 + dev: true + + /ansi-colors/4.1.1: + resolution: {integrity: sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==} + engines: {node: '>=6'} + dev: true + + /ansi-regex/5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + dev: true + + /ansi-styles/3.2.1: + resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} + engines: {node: '>=4'} + dependencies: + color-convert: 1.9.3 + dev: true + + /ansi-styles/4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + dependencies: + color-convert: 2.0.1 + dev: true + + /anymatch/3.1.2: + resolution: {integrity: sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==} + engines: {node: '>= 8'} + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.1 + dev: true + + /argparse/1.0.10: + resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} + dependencies: + sprintf-js: 1.0.3 + dev: true + + /array-union/2.1.0: + resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} + engines: {node: '>=8'} + dev: true + + /astral-regex/2.0.0: + resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==} + engines: {node: '>=8'} + dev: true + + /balanced-match/1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + dev: true + + /binary-extensions/2.2.0: + resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} + engines: {node: '>=8'} + dev: true + + /brace-expansion/1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + dev: true + + /braces/3.0.2: + resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} + engines: {node: '>=8'} + dependencies: + fill-range: 7.0.1 + dev: true + + /buffer-crc32/0.2.13: + resolution: {integrity: sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=} + dev: true + + /callsites/3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + dev: true + + /chalk/2.4.2: + resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} + engines: {node: '>=4'} + dependencies: + ansi-styles: 3.2.1 + escape-string-regexp: 1.0.5 + supports-color: 5.5.0 + dev: true + + /chalk/4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + dev: true + + /chokidar/3.5.3: + resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==} + engines: {node: '>= 8.10.0'} + dependencies: + anymatch: 3.1.2 + braces: 3.0.2 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.2 + dev: true + + /color-convert/1.9.3: + resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} + dependencies: + color-name: 1.1.3 + dev: true + + /color-convert/2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + dependencies: + color-name: 1.1.4 + dev: true + + /color-name/1.1.3: + resolution: {integrity: sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=} + dev: true + + /color-name/1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + dev: true + + /concat-map/0.0.1: + resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} + dev: true + + /cross-spawn/7.0.3: + resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + engines: {node: '>= 8'} + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + dev: true + + /debug/4.3.4: + resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.2 + dev: true + + /deep-is/0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + dev: true + + /detect-indent/6.1.0: + resolution: {integrity: sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==} + engines: {node: '>=8'} + dev: true + + /dir-glob/3.0.1: + resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} + engines: {node: '>=8'} + dependencies: + path-type: 4.0.0 + dev: true + + /doctrine/3.0.0: + resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} + engines: {node: '>=6.0.0'} + dependencies: + esutils: 2.0.3 + dev: true + + /emoji-regex/8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + dev: true + + /enquirer/2.3.6: + resolution: {integrity: sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==} + engines: {node: '>=8.6'} + dependencies: + ansi-colors: 4.1.1 + dev: true + + /es6-promise/3.3.1: + resolution: {integrity: sha1-oIzd6EzNvzTQJ6FFG8kdS80ophM=} + dev: true + + /esbuild-android-64/0.14.38: + resolution: {integrity: sha512-aRFxR3scRKkbmNuGAK+Gee3+yFxkTJO/cx83Dkyzo4CnQl/2zVSurtG6+G86EQIZ+w+VYngVyK7P3HyTBKu3nw==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /esbuild-android-arm64/0.14.38: + resolution: {integrity: sha512-L2NgQRWuHFI89IIZIlpAcINy9FvBk6xFVZ7xGdOwIm8VyhX1vNCEqUJO3DPSSy945Gzdg98cxtNt8Grv1CsyhA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /esbuild-darwin-64/0.14.38: + resolution: {integrity: sha512-5JJvgXkX87Pd1Og0u/NJuO7TSqAikAcQQ74gyJ87bqWRVeouky84ICoV4sN6VV53aTW+NE87qLdGY4QA2S7KNA==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /esbuild-darwin-arm64/0.14.38: + resolution: {integrity: sha512-eqF+OejMI3mC5Dlo9Kdq/Ilbki9sQBw3QlHW3wjLmsLh+quNfHmGMp3Ly1eWm981iGBMdbtSS9+LRvR2T8B3eQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /esbuild-freebsd-64/0.14.38: + resolution: {integrity: sha512-epnPbhZUt93xV5cgeY36ZxPXDsQeO55DppzsIgWM8vgiG/Rz+qYDLmh5ts3e+Ln1wA9dQ+nZmVHw+RjaW3I5Ig==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /esbuild-freebsd-arm64/0.14.38: + resolution: {integrity: sha512-/9icXUYJWherhk+y5fjPI5yNUdFPtXHQlwP7/K/zg8t8lQdHVj20SqU9/udQmeUo5pDFHMYzcEFfJqgOVeKNNQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-32/0.14.38: + resolution: {integrity: sha512-QfgfeNHRFvr2XeHFzP8kOZVnal3QvST3A0cgq32ZrHjSMFTdgXhMhmWdKzRXP/PKcfv3e2OW9tT9PpcjNvaq6g==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-64/0.14.38: + resolution: {integrity: sha512-uuZHNmqcs+Bj1qiW9k/HZU3FtIHmYiuxZ/6Aa+/KHb/pFKr7R3aVqvxlAudYI9Fw3St0VCPfv7QBpUITSmBR1Q==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-arm/0.14.38: + resolution: {integrity: sha512-FiFvQe8J3VKTDXG01JbvoVRXQ0x6UZwyrU4IaLBZeq39Bsbatd94Fuc3F1RGqPF5RbIWW7RvkVQjn79ejzysnA==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-arm64/0.14.38: + resolution: {integrity: sha512-HlMGZTEsBrXrivr64eZ/EO0NQM8H8DuSENRok9d+Jtvq8hOLzrxfsAT9U94K3KOGk2XgCmkaI2KD8hX7F97lvA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-mips64le/0.14.38: + resolution: {integrity: sha512-qd1dLf2v7QBiI5wwfil9j0HG/5YMFBAmMVmdeokbNAMbcg49p25t6IlJFXAeLzogv1AvgaXRXvgFNhScYEUXGQ==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-ppc64le/0.14.38: + resolution: {integrity: sha512-mnbEm7o69gTl60jSuK+nn+pRsRHGtDPfzhrqEUXyCl7CTOCLtWN2bhK8bgsdp6J/2NyS/wHBjs1x8aBWwP2X9Q==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-riscv64/0.14.38: + resolution: {integrity: sha512-+p6YKYbuV72uikChRk14FSyNJZ4WfYkffj6Af0/Tw63/6TJX6TnIKE+6D3xtEc7DeDth1fjUOEqm+ApKFXbbVQ==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-linux-s390x/0.14.38: + resolution: {integrity: sha512-0zUsiDkGJiMHxBQ7JDU8jbaanUY975CdOW1YDrurjrM0vWHfjv9tLQsW9GSyEb/heSK1L5gaweRjzfUVBFoybQ==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /esbuild-netbsd-64/0.14.38: + resolution: {integrity: sha512-cljBAApVwkpnJZfnRVThpRBGzCi+a+V9Ofb1fVkKhtrPLDYlHLrSYGtmnoTVWDQdU516qYI8+wOgcGZ4XIZh0Q==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + dev: true + optional: true + + /esbuild-openbsd-64/0.14.38: + resolution: {integrity: sha512-CDswYr2PWPGEPpLDUO50mL3WO/07EMjnZDNKpmaxUPsrW+kVM3LoAqr/CE8UbzugpEiflYqJsGPLirThRB18IQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + dev: true + optional: true + + /esbuild-sunos-64/0.14.38: + resolution: {integrity: sha512-2mfIoYW58gKcC3bck0j7lD3RZkqYA7MmujFYmSn9l6TiIcAMpuEvqksO+ntBgbLep/eyjpgdplF7b+4T9VJGOA==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + dev: true + optional: true + + /esbuild-windows-32/0.14.38: + resolution: {integrity: sha512-L2BmEeFZATAvU+FJzJiRLFUP+d9RHN+QXpgaOrs2klshoAm1AE6Us4X6fS9k33Uy5SzScn2TpcgecbqJza1Hjw==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /esbuild-windows-64/0.14.38: + resolution: {integrity: sha512-Khy4wVmebnzue8aeSXLC+6clo/hRYeNIm0DyikoEqX+3w3rcvrhzpoix0S+MF9vzh6JFskkIGD7Zx47ODJNyCw==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /esbuild-windows-arm64/0.14.38: + resolution: {integrity: sha512-k3FGCNmHBkqdJXuJszdWciAH77PukEyDsdIryEHn9cKLQFxzhT39dSumeTuggaQcXY57UlmLGIkklWZo2qzHpw==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /esbuild/0.14.38: + resolution: {integrity: sha512-12fzJ0fsm7gVZX1YQ1InkOE5f9Tl7cgf6JPYXRJtPIoE0zkWAbHdPHVPPaLi9tYAcEBqheGzqLn/3RdTOyBfcA==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + esbuild-android-64: 0.14.38 + esbuild-android-arm64: 0.14.38 + esbuild-darwin-64: 0.14.38 + esbuild-darwin-arm64: 0.14.38 + esbuild-freebsd-64: 0.14.38 + esbuild-freebsd-arm64: 0.14.38 + esbuild-linux-32: 0.14.38 + esbuild-linux-64: 0.14.38 + esbuild-linux-arm: 0.14.38 + esbuild-linux-arm64: 0.14.38 + esbuild-linux-mips64le: 0.14.38 + esbuild-linux-ppc64le: 0.14.38 + esbuild-linux-riscv64: 0.14.38 + esbuild-linux-s390x: 0.14.38 + esbuild-netbsd-64: 0.14.38 + esbuild-openbsd-64: 0.14.38 + esbuild-sunos-64: 0.14.38 + esbuild-windows-32: 0.14.38 + esbuild-windows-64: 0.14.38 + esbuild-windows-arm64: 0.14.38 + dev: true + + /escape-string-regexp/1.0.5: + resolution: {integrity: sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=} + engines: {node: '>=0.8.0'} + dev: true + + /escape-string-regexp/4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} + engines: {node: '>=10'} + dev: true + + /eslint-config-prettier/8.5.0_eslint@7.32.0: + resolution: {integrity: sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==} + hasBin: true + peerDependencies: + eslint: '>=7.0.0' + dependencies: + eslint: 7.32.0 + dev: true + + /eslint-plugin-svelte3/3.4.1_eslint@7.32.0+svelte@3.47.0: + resolution: {integrity: sha512-7p59WG8qV8L6wLdl4d/c3mdjkgVglQCdv5XOTk/iNPBKXuuV+Q0eFP5Wa6iJd/G2M1qR3BkLPEzaANOqKAZczw==} + engines: {node: '>=10'} + peerDependencies: + eslint: '>=6.0.0' + svelte: ^3.2.0 + dependencies: + eslint: 7.32.0 + svelte: 3.47.0 + dev: true + + /eslint-scope/5.1.1: + resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} + engines: {node: '>=8.0.0'} + dependencies: + esrecurse: 4.3.0 + estraverse: 4.3.0 + dev: true + + /eslint-utils/2.1.0: + resolution: {integrity: sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==} + engines: {node: '>=6'} + dependencies: + eslint-visitor-keys: 1.3.0 + dev: true + + /eslint-utils/3.0.0_eslint@7.32.0: + resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==} + engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0} + peerDependencies: + eslint: '>=5' + dependencies: + eslint: 7.32.0 + eslint-visitor-keys: 2.1.0 + dev: true + + /eslint-visitor-keys/1.3.0: + resolution: {integrity: sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==} + engines: {node: '>=4'} + dev: true + + /eslint-visitor-keys/2.1.0: + resolution: {integrity: sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==} + engines: {node: '>=10'} + dev: true + + /eslint-visitor-keys/3.3.0: + resolution: {integrity: sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + + /eslint/7.32.0: + resolution: {integrity: sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==} + engines: {node: ^10.12.0 || >=12.0.0} + hasBin: true + dependencies: + '@babel/code-frame': 7.12.11 + '@eslint/eslintrc': 0.4.3 + '@humanwhocodes/config-array': 0.5.0 + ajv: 6.12.6 + chalk: 4.1.2 + cross-spawn: 7.0.3 + debug: 4.3.4 + doctrine: 3.0.0 + enquirer: 2.3.6 + escape-string-regexp: 4.0.0 + eslint-scope: 5.1.1 + eslint-utils: 2.1.0 + eslint-visitor-keys: 2.1.0 + espree: 7.3.1 + esquery: 1.4.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 6.0.1 + functional-red-black-tree: 1.0.1 + glob-parent: 5.1.2 + globals: 13.13.0 + ignore: 4.0.6 + import-fresh: 3.3.0 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + js-yaml: 3.14.1 + json-stable-stringify-without-jsonify: 1.0.1 + levn: 0.4.1 + lodash.merge: 4.6.2 + minimatch: 3.1.2 + natural-compare: 1.4.0 + optionator: 0.9.1 + progress: 2.0.3 + regexpp: 3.2.0 + semver: 7.3.7 + strip-ansi: 6.0.1 + strip-json-comments: 3.1.1 + table: 6.8.0 + text-table: 0.2.0 + v8-compile-cache: 2.3.0 + transitivePeerDependencies: + - supports-color + dev: true + + /espree/7.3.1: + resolution: {integrity: sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==} + engines: {node: ^10.12.0 || >=12.0.0} + dependencies: + acorn: 7.4.1 + acorn-jsx: 5.3.2_acorn@7.4.1 + eslint-visitor-keys: 1.3.0 + dev: true + + /esprima/4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + dev: true + + /esquery/1.4.0: + resolution: {integrity: sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==} + engines: {node: '>=0.10'} + dependencies: + estraverse: 5.3.0 + dev: true + + /esrecurse/4.3.0: + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} + engines: {node: '>=4.0'} + dependencies: + estraverse: 5.3.0 + dev: true + + /estraverse/4.3.0: + resolution: {integrity: sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==} + engines: {node: '>=4.0'} + dev: true + + /estraverse/5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + dev: true + + /estree-walker/2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + dev: true + + /esutils/2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + dev: true + + /fast-deep-equal/3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + dev: true + + /fast-glob/3.2.11: + resolution: {integrity: sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==} + engines: {node: '>=8.6.0'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.5 + dev: true + + /fast-json-stable-stringify/2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + dev: true + + /fast-levenshtein/2.0.6: + resolution: {integrity: sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=} + dev: true + + /fastq/1.13.0: + resolution: {integrity: sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==} + dependencies: + reusify: 1.0.4 + dev: true + + /file-entry-cache/6.0.1: + resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} + engines: {node: ^10.12.0 || >=12.0.0} + dependencies: + flat-cache: 3.0.4 + dev: true + + /fill-range/7.0.1: + resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} + engines: {node: '>=8'} + dependencies: + to-regex-range: 5.0.1 + dev: true + + /flat-cache/3.0.4: + resolution: {integrity: sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==} + engines: {node: ^10.12.0 || >=12.0.0} + dependencies: + flatted: 3.2.5 + rimraf: 3.0.2 + dev: true + + /flatted/3.2.5: + resolution: {integrity: sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg==} + dev: true + + /fs.realpath/1.0.0: + resolution: {integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=} + dev: true + + /fsevents/2.3.2: + resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /function-bind/1.1.1: + resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} + dev: true + + /functional-red-black-tree/1.0.1: + resolution: {integrity: sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=} + dev: true + + /glob-parent/5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + dependencies: + is-glob: 4.0.3 + dev: true + + /glob/7.2.0: + resolution: {integrity: sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==} + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + dev: true + + /globals/13.13.0: + resolution: {integrity: sha512-EQ7Q18AJlPwp3vUDL4mKA0KXrXyNIQyWon6T6XQiBQF0XHvRsiCSrWmmeATpUzdJN2HhWZU6Pdl0a9zdep5p6A==} + engines: {node: '>=8'} + dependencies: + type-fest: 0.20.2 + dev: true + + /globalyzer/0.1.0: + resolution: {integrity: sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==} + dev: true + + /globby/11.1.0: + resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} + engines: {node: '>=10'} + dependencies: + array-union: 2.1.0 + dir-glob: 3.0.1 + fast-glob: 3.2.11 + ignore: 5.2.0 + merge2: 1.4.1 + slash: 3.0.0 + dev: true + + /globrex/0.1.2: + resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==} + dev: true + + /graceful-fs/4.2.10: + resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==} + dev: true + + /has-flag/3.0.0: + resolution: {integrity: sha1-tdRU3CGZriJWmfNGfloH87lVuv0=} + engines: {node: '>=4'} + dev: true + + /has-flag/4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + dev: true + + /has/1.0.3: + resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==} + engines: {node: '>= 0.4.0'} + dependencies: + function-bind: 1.1.1 + dev: true + + /ignore/4.0.6: + resolution: {integrity: sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==} + engines: {node: '>= 4'} + dev: true + + /ignore/5.2.0: + resolution: {integrity: sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==} + engines: {node: '>= 4'} + dev: true + + /import-fresh/3.3.0: + resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} + engines: {node: '>=6'} + dependencies: + parent-module: 1.0.1 + resolve-from: 4.0.0 + dev: true + + /imurmurhash/0.1.4: + resolution: {integrity: sha1-khi5srkoojixPcT7a21XbyMUU+o=} + engines: {node: '>=0.8.19'} + dev: true + + /inflight/1.0.6: + resolution: {integrity: sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=} + dependencies: + once: 1.4.0 + wrappy: 1.0.2 + dev: true + + /inherits/2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + dev: true + + /is-binary-path/2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + dependencies: + binary-extensions: 2.2.0 + dev: true + + /is-core-module/2.9.0: + resolution: {integrity: sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==} + dependencies: + has: 1.0.3 + dev: true + + /is-extglob/2.1.1: + resolution: {integrity: sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=} + engines: {node: '>=0.10.0'} + dev: true + + /is-fullwidth-code-point/3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + dev: true + + /is-glob/4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + dependencies: + is-extglob: 2.1.1 + dev: true + + /is-number/7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + dev: true + + /isexe/2.0.0: + resolution: {integrity: sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=} + dev: true + + /js-tokens/4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + dev: true + + /js-yaml/3.14.1: + resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} + hasBin: true + dependencies: + argparse: 1.0.10 + esprima: 4.0.1 + dev: true + + /json-schema-traverse/0.4.1: + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + dev: true + + /json-schema-traverse/1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + dev: true + + /json-stable-stringify-without-jsonify/1.0.1: + resolution: {integrity: sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=} + dev: true + + /kleur/4.1.4: + resolution: {integrity: sha512-8QADVssbrFjivHWQU7KkMgptGTl6WAcSdlbBPY4uNF+mWr6DGcKrvY2w4FQJoXch7+fKMjj0dRrL75vk3k23OA==} + engines: {node: '>=6'} + dev: true + + /levn/0.4.1: + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} + engines: {node: '>= 0.8.0'} + dependencies: + prelude-ls: 1.2.1 + type-check: 0.4.0 + dev: true + + /lodash.merge/4.6.2: + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + dev: true + + /lodash.truncate/4.4.2: + resolution: {integrity: sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=} + dev: true + + /lru-cache/6.0.0: + resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} + engines: {node: '>=10'} + dependencies: + yallist: 4.0.0 + dev: true + + /magic-string/0.25.9: + resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} + dependencies: + sourcemap-codec: 1.4.8 + dev: true + + /magic-string/0.26.1: + resolution: {integrity: sha512-ndThHmvgtieXe8J/VGPjG+Apu7v7ItcD5mhEIvOscWjPF/ccOiLxHaSuCAS2G+3x4GKsAbT8u7zdyamupui8Tg==} + engines: {node: '>=12'} + dependencies: + sourcemap-codec: 1.4.8 + dev: true + + /merge2/1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + dev: true + + /micromatch/4.0.5: + resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} + engines: {node: '>=8.6'} + dependencies: + braces: 3.0.2 + picomatch: 2.3.1 + dev: true + + /min-indent/1.0.1: + resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} + engines: {node: '>=4'} + dev: true + + /minimatch/3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + dependencies: + brace-expansion: 1.1.11 + dev: true + + /minimist/1.2.6: + resolution: {integrity: sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==} + dev: true + + /mkdirp/0.5.6: + resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} + hasBin: true + dependencies: + minimist: 1.2.6 + dev: true + + /mri/1.2.0: + resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} + engines: {node: '>=4'} + dev: true + + /ms/2.1.2: + resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} + dev: true + + /nanoid/3.3.3: + resolution: {integrity: sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + dev: true + + /natural-compare/1.4.0: + resolution: {integrity: sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=} + dev: true + + /normalize-path/3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + dev: true + + /once/1.4.0: + resolution: {integrity: sha1-WDsap3WWHUsROsF9nFC6753Xa9E=} + dependencies: + wrappy: 1.0.2 + dev: true + + /optionator/0.9.1: + resolution: {integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==} + engines: {node: '>= 0.8.0'} + dependencies: + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 + word-wrap: 1.2.3 + dev: true + + /parent-module/1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} + engines: {node: '>=6'} + dependencies: + callsites: 3.1.0 + dev: true + + /path-is-absolute/1.0.1: + resolution: {integrity: sha1-F0uSaHNVNP+8es5r9TpanhtcX18=} + engines: {node: '>=0.10.0'} + dev: true + + /path-key/3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + dev: true + + /path-parse/1.0.7: + resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + dev: true + + /path-type/4.0.0: + resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} + engines: {node: '>=8'} + dev: true + + /picocolors/1.0.0: + resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} + dev: true + + /picomatch/2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + dev: true + + /postcss/8.4.12: + resolution: {integrity: sha512-lg6eITwYe9v6Hr5CncVbK70SoioNQIq81nsaG86ev5hAidQvmOeETBqs7jm43K2F5/Ley3ytDtriImV6TpNiSg==} + engines: {node: ^10 || ^12 || >=14} + dependencies: + nanoid: 3.3.3 + picocolors: 1.0.0 + source-map-js: 1.0.2 + dev: true + + /prelude-ls/1.2.1: + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} + engines: {node: '>= 0.8.0'} + dev: true + + /prettier-plugin-svelte/2.7.0_prettier@2.6.2+svelte@3.47.0: + resolution: {integrity: sha512-fQhhZICprZot2IqEyoiUYLTRdumULGRvw0o4dzl5jt0jfzVWdGqeYW27QTWAeXhoupEZJULmNoH3ueJwUWFLIA==} + peerDependencies: + prettier: ^1.16.4 || ^2.0.0 + svelte: ^3.2.0 + dependencies: + prettier: 2.6.2 + svelte: 3.47.0 + dev: true + + /prettier/2.6.2: + resolution: {integrity: sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==} + engines: {node: '>=10.13.0'} + hasBin: true + dev: true + + /progress/2.0.3: + resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} + engines: {node: '>=0.4.0'} + dev: true + + /punycode/2.1.1: + resolution: {integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==} + engines: {node: '>=6'} + dev: true + + /queue-microtask/1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + dev: true + + /readdirp/3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + dependencies: + picomatch: 2.3.1 + dev: true + + /regexpp/3.2.0: + resolution: {integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==} + engines: {node: '>=8'} + dev: true + + /require-from-string/2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + dev: true + + /resolve-from/4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} + engines: {node: '>=4'} + dev: true + + /resolve/1.22.0: + resolution: {integrity: sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==} + hasBin: true + dependencies: + is-core-module: 2.9.0 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + dev: true + + /reusify/1.0.4: + resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + dev: true + + /rimraf/2.7.1: + resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==} + hasBin: true + dependencies: + glob: 7.2.0 + dev: true + + /rimraf/3.0.2: + resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + hasBin: true + dependencies: + glob: 7.2.0 + dev: true + + /rollup/2.70.2: + resolution: {integrity: sha512-EitogNZnfku65I1DD5Mxe8JYRUCy0hkK5X84IlDtUs+O6JRMpRciXTzyCUuX11b5L5pvjH+OmFXiQ3XjabcXgg==} + engines: {node: '>=10.0.0'} + hasBin: true + optionalDependencies: + fsevents: 2.3.2 + dev: true + + /run-parallel/1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + dependencies: + queue-microtask: 1.2.3 + dev: true + + /sade/1.8.1: + resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==} + engines: {node: '>=6'} + dependencies: + mri: 1.2.0 + dev: true + + /sander/0.5.1: + resolution: {integrity: sha1-dB4kXiMfB8r7b98PEzrfohalAq0=} + dependencies: + es6-promise: 3.3.1 + graceful-fs: 4.2.10 + mkdirp: 0.5.6 + rimraf: 2.7.1 + dev: true + + /semver/7.3.7: + resolution: {integrity: sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==} + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 + dev: true + + /shebang-command/2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + dependencies: + shebang-regex: 3.0.0 + dev: true + + /shebang-regex/3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + dev: true + + /slash/3.0.0: + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} + engines: {node: '>=8'} + dev: true + + /slice-ansi/4.0.0: + resolution: {integrity: sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==} + engines: {node: '>=10'} + dependencies: + ansi-styles: 4.3.0 + astral-regex: 2.0.0 + is-fullwidth-code-point: 3.0.0 + dev: true + + /sorcery/0.10.0: + resolution: {integrity: sha1-iukK19fLBfxZ8asMY3hF1cFaUrc=} + hasBin: true + dependencies: + buffer-crc32: 0.2.13 + minimist: 1.2.6 + sander: 0.5.1 + sourcemap-codec: 1.4.8 + dev: true + + /source-map-js/1.0.2: + resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} + engines: {node: '>=0.10.0'} + dev: true + + /source-map/0.7.3: + resolution: {integrity: sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==} + engines: {node: '>= 8'} + dev: true + + /sourcemap-codec/1.4.8: + resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} + dev: true + + /sprintf-js/1.0.3: + resolution: {integrity: sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=} + dev: true + + /string-width/4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + dev: true + + /strip-ansi/6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + dependencies: + ansi-regex: 5.0.1 + dev: true + + /strip-indent/3.0.0: + resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} + engines: {node: '>=8'} + dependencies: + min-indent: 1.0.1 + dev: true + + /strip-json-comments/3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} + dev: true + + /supports-color/5.5.0: + resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} + engines: {node: '>=4'} + dependencies: + has-flag: 3.0.0 + dev: true + + /supports-color/7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + dependencies: + has-flag: 4.0.0 + dev: true + + /supports-preserve-symlinks-flag/1.0.0: + resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} + engines: {node: '>= 0.4'} + dev: true + + /svelte-check/2.7.0_svelte@3.47.0: + resolution: {integrity: sha512-GrvG24j0+i8AOm0k0KyJ6Dqc+TAR2yzB7rtS4nljHStunVxCTr/1KYlv4EsOeoqtHLzeWMOd5D2O6nDdP/yw4A==} + hasBin: true + peerDependencies: + svelte: ^3.24.0 + dependencies: + chokidar: 3.5.3 + fast-glob: 3.2.11 + import-fresh: 3.3.0 + picocolors: 1.0.0 + sade: 1.8.1 + source-map: 0.7.3 + svelte: 3.47.0 + svelte-preprocess: 4.10.6_svelte@3.47.0+typescript@4.6.3 + typescript: 4.6.3 + transitivePeerDependencies: + - '@babel/core' + - coffeescript + - less + - node-sass + - postcss + - postcss-load-config + - pug + - sass + - stylus + - sugarss + dev: true + + /svelte-hmr/0.14.11_svelte@3.47.0: + resolution: {integrity: sha512-R9CVfX6DXxW1Kn45Jtmx+yUe+sPhrbYSUp7TkzbW0jI5fVPn6lsNG9NEs5dFg5qRhFNAoVdRw5qQDLALNKhwbQ==} + engines: {node: ^12.20 || ^14.13.1 || >= 16} + peerDependencies: + svelte: '>=3.19.0' + dependencies: + svelte: 3.47.0 + dev: true + + /svelte-preprocess/4.10.6_svelte@3.47.0+typescript@4.6.3: + resolution: {integrity: sha512-I2SV1w/AveMvgIQlUF/ZOO3PYVnhxfcpNyGt8pxpUVhPfyfL/CZBkkw/KPfuFix5FJ9TnnNYMhACK3DtSaYVVQ==} + engines: {node: '>= 9.11.2'} + requiresBuild: true + peerDependencies: + '@babel/core': ^7.10.2 + coffeescript: ^2.5.1 + less: ^3.11.3 || ^4.0.0 + node-sass: '*' + postcss: ^7 || ^8 + postcss-load-config: ^2.1.0 || ^3.0.0 + pug: ^3.0.0 + sass: ^1.26.8 + stylus: ^0.55.0 + sugarss: ^2.0.0 + svelte: ^3.23.0 + typescript: ^3.9.5 || ^4.0.0 + peerDependenciesMeta: + '@babel/core': + optional: true + coffeescript: + optional: true + less: + optional: true + node-sass: + optional: true + postcss: + optional: true + postcss-load-config: + optional: true + pug: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + typescript: + optional: true + dependencies: + '@types/pug': 2.0.6 + '@types/sass': 1.43.1 + detect-indent: 6.1.0 + magic-string: 0.25.9 + sorcery: 0.10.0 + strip-indent: 3.0.0 + svelte: 3.47.0 + typescript: 4.6.3 + dev: true + + /svelte/3.47.0: + resolution: {integrity: sha512-4JaJp3HEoTCGARRWZQIZDUanhYv0iyoHikklVHVLH9xFE9db22g4TDv7CPeNA8HD1JgjXI1vlhR1JZvvhaTu2Q==} + engines: {node: '>= 8'} + dev: true + + /table/6.8.0: + resolution: {integrity: sha512-s/fitrbVeEyHKFa7mFdkuQMWlH1Wgw/yEXMt5xACT4ZpzWFluehAxRtUUQKPuWhaLAWhFcVx6w3oC8VKaUfPGA==} + engines: {node: '>=10.0.0'} + dependencies: + ajv: 8.11.0 + lodash.truncate: 4.4.2 + slice-ansi: 4.0.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + dev: true + + /text-table/0.2.0: + resolution: {integrity: sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=} + dev: true + + /tiny-glob/0.2.9: + resolution: {integrity: sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==} + dependencies: + globalyzer: 0.1.0 + globrex: 0.1.2 + dev: true + + /to-regex-range/5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + dependencies: + is-number: 7.0.0 + dev: true + + /tslib/1.14.1: + resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} + dev: true + + /tslib/2.4.0: + resolution: {integrity: sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==} + dev: true + + /tsutils/3.21.0_typescript@4.6.3: + resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} + engines: {node: '>= 6'} + peerDependencies: + typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' + dependencies: + tslib: 1.14.1 + typescript: 4.6.3 + dev: true + + /type-check/0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} + engines: {node: '>= 0.8.0'} + dependencies: + prelude-ls: 1.2.1 + dev: true + + /type-fest/0.20.2: + resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} + engines: {node: '>=10'} + dev: true + + /typescript/4.6.3: + resolution: {integrity: sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==} + engines: {node: '>=4.2.0'} + hasBin: true + dev: true + + /uri-js/4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + dependencies: + punycode: 2.1.1 + dev: true + + /v8-compile-cache/2.3.0: + resolution: {integrity: sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==} + dev: true + + /vite/2.9.6: + resolution: {integrity: sha512-3IffdrByHW95Yjv0a13TQOQfJs7L5dVlSPuTt432XLbRMriWbThqJN2k/IS6kXn5WY4xBLhK9XoaWay1B8VzUw==} + engines: {node: '>=12.2.0'} + hasBin: true + peerDependencies: + less: '*' + sass: '*' + stylus: '*' + peerDependenciesMeta: + less: + optional: true + sass: + optional: true + stylus: + optional: true + dependencies: + esbuild: 0.14.38 + postcss: 8.4.12 + resolve: 1.22.0 + rollup: 2.70.2 + optionalDependencies: + fsevents: 2.3.2 + dev: true + + /which/2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + dependencies: + isexe: 2.0.0 + dev: true + + /word-wrap/1.2.3: + resolution: {integrity: sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==} + engines: {node: '>=0.10.0'} + dev: true + + /wrappy/1.0.2: + resolution: {integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=} + dev: true + + /yallist/4.0.0: + resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} + dev: true diff --git a/source/ui/src/app.d.ts b/source/ui/src/app.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..121720c58d195ab07be625f967f63cd25d8af84d --- /dev/null +++ b/source/ui/src/app.d.ts @@ -0,0 +1,10 @@ +/// + +// See https://kit.svelte.dev/docs/types#app +// for information about these interfaces +declare namespace App { + // interface Locals {} + // interface Platform {} + // interface Session {} + // interface Stuff {} +} diff --git a/source/ui/src/app.html b/source/ui/src/app.html new file mode 100644 index 0000000000000000000000000000000000000000..ff2a90ff4321b57e3a3737e0c0bded56d67c3a10 --- /dev/null +++ b/source/ui/src/app.html @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + %svelte.head% + + +
%svelte.body%
+ + diff --git a/source/ui/src/lib/ComposeButton.svelte b/source/ui/src/lib/ComposeButton.svelte new file mode 100644 index 0000000000000000000000000000000000000000..9cc033f05c8e5b8ab0306f17601b3c5c1ef761d9 --- /dev/null +++ b/source/ui/src/lib/ComposeButton.svelte @@ -0,0 +1,138 @@ + + + + + diff --git a/source/ui/src/lib/DensityOptions.svelte b/source/ui/src/lib/DensityOptions.svelte new file mode 100644 index 0000000000000000000000000000000000000000..a914f94a728d4cc3d4b8150aff67de8d732116ff --- /dev/null +++ b/source/ui/src/lib/DensityOptions.svelte @@ -0,0 +1,28 @@ + + +
+
+ Note density + +
+
+ + diff --git a/source/ui/src/lib/Notes.svelte b/source/ui/src/lib/Notes.svelte new file mode 100644 index 0000000000000000000000000000000000000000..d5340b6572b8158adfd2596ee43f19db79574224 --- /dev/null +++ b/source/ui/src/lib/Notes.svelte @@ -0,0 +1,181 @@ + + +
+ +
(paused = !paused)} + tabindex="0" + > +
+ + diff --git a/source/ui/src/lib/Radio.svelte b/source/ui/src/lib/Radio.svelte new file mode 100644 index 0000000000000000000000000000000000000000..ff74f8505288cbc29c827cfab5a322efdedd8bb9 --- /dev/null +++ b/source/ui/src/lib/Radio.svelte @@ -0,0 +1,62 @@ + + +
+ {#each keys as key} + + {/each} +
+ + diff --git a/source/ui/src/lib/StyleOptions.svelte b/source/ui/src/lib/StyleOptions.svelte new file mode 100644 index 0000000000000000000000000000000000000000..f4a84f22eed87303a56b428f0e3fc8cae45d91ca --- /dev/null +++ b/source/ui/src/lib/StyleOptions.svelte @@ -0,0 +1,91 @@ + + +
+ {styles[$style] || 'Synthesizer'} +
+ {#each keys as key, i} + + {/each} +
+
+ + diff --git a/source/ui/src/lib/StyleOptionsButton.svelte b/source/ui/src/lib/StyleOptionsButton.svelte new file mode 100644 index 0000000000000000000000000000000000000000..2124acc37ce8937eaaf7b83ee42c182fcc61ddfd --- /dev/null +++ b/source/ui/src/lib/StyleOptionsButton.svelte @@ -0,0 +1,14 @@ + + + + + diff --git a/source/ui/src/lib/TemperatureOptions.svelte b/source/ui/src/lib/TemperatureOptions.svelte new file mode 100644 index 0000000000000000000000000000000000000000..b2a3a855618be431da915856f74207d166f9b2fd --- /dev/null +++ b/source/ui/src/lib/TemperatureOptions.svelte @@ -0,0 +1,28 @@ + + +
+
+ Temperature + +
+
+ + diff --git a/source/ui/src/lib/Tokens.svelte b/source/ui/src/lib/Tokens.svelte new file mode 100644 index 0000000000000000000000000000000000000000..b6036272d5d0d59d4e256507b7f4d08dfab904cc --- /dev/null +++ b/source/ui/src/lib/Tokens.svelte @@ -0,0 +1,23 @@ + + +{#if $notesTokens} +
+

Tokenized notes

+

{$notesTokens}

+
+{/if} + + diff --git a/source/ui/src/lib/config.json b/source/ui/src/lib/config.json new file mode 100644 index 0000000000000000000000000000000000000000..9f0c84ab00c0dbe24c00b311b73bf2834c739c26 --- /dev/null +++ b/source/ui/src/lib/config.json @@ -0,0 +1,23 @@ +{ + "styles": { + "piano": "Piano", + "chamber": "Chamber Music", + "rock_and_metal": "Rock and Metal", + "synth": "Synthesizer", + "church": "Church", + "timpani_strings_harp": "Timpani, Contrabass, Harp", + "country": "Country", + "reggae": "Reggae-esque" + }, + "densities": { + "low": "Low", + "medium": "Medium", + "high": "High" + }, + "temperatures": { + "low": "Low", + "medium": "Medium", + "high": "High", + "very_high": "Very High" + } +} diff --git a/source/ui/src/lib/stores.ts b/source/ui/src/lib/stores.ts new file mode 100644 index 0000000000000000000000000000000000000000..a1f95f559855edb897f7368a4c07f2f7542d035b --- /dev/null +++ b/source/ui/src/lib/stores.ts @@ -0,0 +1,20 @@ +import { writable } from 'svelte/store'; + +import type { Writable } from 'svelte/store'; + +/* Input parameters */ +export const style: Writable = writable('synth'); +export const density: Writable = writable('medium'); +export const temperature: Writable = writable('medium'); + +/* Audio state */ +export const composing: Writable = writable(false); +export const audioDuration: Writable = writable(0); +export const audioTime: Writable = writable(0); +export const audioPaused: Writable = writable(true); + +/* Composition outputs */ +export const audioBlob: Writable = writable(''); +export const notesImage: Writable = writable(''); +export const notesImageWidth: Writable = writable(0); +export const notesTokens: Writable = writable(''); diff --git a/source/ui/src/routes/index.svelte b/source/ui/src/routes/index.svelte new file mode 100644 index 0000000000000000000000000000000000000000..545680ad0747fbd9ab75afdef573379cf2a1ce4b --- /dev/null +++ b/source/ui/src/routes/index.svelte @@ -0,0 +1,80 @@ + + +
+

Composer

+

Trained on fifteen thousand songs. One AI model. Infinite compositions.

+

+ This space contains a deep neural network model that can compose music. You can use it to generate audio in + different styles, 4 bars at a time. +

+

+ Developed by Ron Au and + Tristan Behrens. +

+

Have fun! And always feel free to send us some feedback and share your compositions!

+
+ + + +
+ + {#if $audioBlob} + + + {/if} +
+ + diff --git a/source/ui/static/chamber.svg b/source/ui/static/chamber.svg new file mode 100644 index 0000000000000000000000000000000000000000..19aeaf88f1f78664c0b1073c2697e8462e001200 --- /dev/null +++ b/source/ui/static/chamber.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/source/ui/static/church.svg b/source/ui/static/church.svg new file mode 100644 index 0000000000000000000000000000000000000000..87c9a8097195a9f2c6f8d42bcf86b8e415fa5000 --- /dev/null +++ b/source/ui/static/church.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/source/ui/static/country.svg b/source/ui/static/country.svg new file mode 100644 index 0000000000000000000000000000000000000000..c723c6830b49c68b9418e59dbe507c41f111c254 --- /dev/null +++ b/source/ui/static/country.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/source/ui/static/hugging-face-headphones.png b/source/ui/static/hugging-face-headphones.png new file mode 100644 index 0000000000000000000000000000000000000000..a7f38d392f2852170a3ae568a3892a30a0b62ab4 Binary files /dev/null and b/source/ui/static/hugging-face-headphones.png differ diff --git a/source/ui/static/piano.svg b/source/ui/static/piano.svg new file mode 100644 index 0000000000000000000000000000000000000000..358c4e7152808e7dd3a4c3ff7d8393f18171ccb7 --- /dev/null +++ b/source/ui/static/piano.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/source/ui/static/play.svg b/source/ui/static/play.svg new file mode 100644 index 0000000000000000000000000000000000000000..2c4c81e35381676659ee5ce4cc11350975bff3e1 --- /dev/null +++ b/source/ui/static/play.svg @@ -0,0 +1,8 @@ + + + + + diff --git a/source/ui/static/reggae.svg b/source/ui/static/reggae.svg new file mode 100644 index 0000000000000000000000000000000000000000..984d32826b87d41dc31fdcda0f53016eb293031b --- /dev/null +++ b/source/ui/static/reggae.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/source/ui/static/rock_and_metal.svg b/source/ui/static/rock_and_metal.svg new file mode 100644 index 0000000000000000000000000000000000000000..e720a0cbd1168821794ff078797e996a99ff5814 --- /dev/null +++ b/source/ui/static/rock_and_metal.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/source/ui/static/style.css b/source/ui/static/style.css new file mode 100644 index 0000000000000000000000000000000000000000..4aefe85b80176e410faf40ff4952f4a36ace9d15 --- /dev/null +++ b/source/ui/static/style.css @@ -0,0 +1,34 @@ +html { + height: 100%; +} + +body { + padding: 1rem; + font-family: 'Lato', sans-serif; + background-color: hsl(0 0% 1%); + background: linear-gradient(hsl(0 0% 1%) 50%, hsl(0 0% 8%) 100%); + background-attachment: fixed; +} + +h1 { + font-family: 'Italiana', serif; + letter-spacing: 0.05ch; +} + + +body, h1 { + color: hsl(0 0% 97%); +} + +a, a:visited { + color: white; + text-decoration: none; + font-weight: 700; +} + + +@media (min-width: 600px) { + body { + padding: 2rem; + } +} diff --git a/source/ui/static/synth.svg b/source/ui/static/synth.svg new file mode 100644 index 0000000000000000000000000000000000000000..76bb68d272351fe96c951655dbf292acbcf0e2a2 --- /dev/null +++ b/source/ui/static/synth.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/source/ui/static/timpani_strings_harp.svg b/source/ui/static/timpani_strings_harp.svg new file mode 100644 index 0000000000000000000000000000000000000000..9b55a1522ef2bc5c344d65994c376d8f0041dbe7 --- /dev/null +++ b/source/ui/static/timpani_strings_harp.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/source/ui/static/wand.svg b/source/ui/static/wand.svg new file mode 100644 index 0000000000000000000000000000000000000000..03b42616ccee21b56cc6977917efadbf0ab5e99a --- /dev/null +++ b/source/ui/static/wand.svg @@ -0,0 +1,14 @@ + + + + + diff --git a/source/ui/svelte.config.js b/source/ui/svelte.config.js new file mode 100644 index 0000000000000000000000000000000000000000..efc91083348e241d3657831da4efc01049af7183 --- /dev/null +++ b/source/ui/svelte.config.js @@ -0,0 +1,29 @@ +import adapter from '@sveltejs/adapter-static'; +import preprocess from 'svelte-preprocess'; + +/** @type {import('@sveltejs/kit').Config} */ +const config = { + preprocess: preprocess(), + + kit: { + adapter: adapter({ + pages: '../../static', + assets: '../../static', + }), + paths: { + base: '/static', + }, + prerender: { + default: true, + }, + vite: { + server: { + watch: { + usePolling: true, + }, + }, + }, + }, +}; + +export default config; diff --git a/source/ui/tsconfig.json b/source/ui/tsconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..9b0e8bd52e08257418ce657e6d1597c014fdb1c3 --- /dev/null +++ b/source/ui/tsconfig.json @@ -0,0 +1,25 @@ +{ + "extends": "./.svelte-kit/tsconfig.json", + "compilerOptions": { + "allowJs": true, + "checkJs": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "importHelpers": true, + "importsNotUsedAsValues": "error", + "isolatedModules": true, + "lib": ["es2020", "DOM"], + "moduleResolution": "node", + "module": "es2020", + "paths": { + "$lib": ["src/lib"], + "$lib/*": ["src/lib/*"] + }, + "resolveJsonModule": true, + "skipLibCheck": true, + "sourceMap": true, + "strict": true, + "target": "es2020" + }, + "include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.svelte"], +} diff --git a/start.py b/start.py new file mode 100644 index 0000000000000000000000000000000000000000..e5d512289a4581dca4612d6aa2390ace7e534426 --- /dev/null +++ b/start.py @@ -0,0 +1,3 @@ +import subprocess + +subprocess.run("uvicorn app:app --host 0.0.0.0 --port 7860", shell=True) diff --git a/static/_app/assets/pages/index.svelte-ad990746.css b/static/_app/assets/pages/index.svelte-ad990746.css new file mode 100644 index 0000000000000000000000000000000000000000..017c57370c219cef7635a16af2598fc7a83bfe1a --- /dev/null +++ b/static/_app/assets/pages/index.svelte-ad990746.css @@ -0,0 +1 @@ +fieldset.svelte-1r9pswz.svelte-1r9pswz{position:relative;padding:0;border:none;margin-top:1rem}legend.svelte-1r9pswz.svelte-1r9pswz{text-align:center;font-size:1.25rem;font-weight:700;padding:0}.grid.svelte-1r9pswz.svelte-1r9pswz{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;width:min-content;margin:1rem auto}img.svelte-1r9pswz.svelte-1r9pswz{width:100%;height:100%;filter:invert(1);margin:auto}label.svelte-1r9pswz.svelte-1r9pswz{background-color:transparent;border-radius:.375rem;transition:background-color .25s;cursor:pointer}label.svelte-1r9pswz>div.svelte-1r9pswz{width:3rem;aspect-ratio:1 / 1}input.svelte-1r9pswz.svelte-1r9pswz{position:fixed;opacity:0;pointer-events:none}label[data-selected=true].svelte-1r9pswz.svelte-1r9pswz{background-color:#f7f7f7;border-radius:.375rem}label[data-selected=true].svelte-1r9pswz img.svelte-1r9pswz{filter:none}@media (min-width: 600px) and (max-width: 899px){.grid.svelte-1r9pswz.svelte-1r9pswz{display:flex;flex-direction:row}}@media (min-width: 900px){.grid.svelte-1r9pswz.svelte-1r9pswz{grid-template-columns:repeat(4,1fr)}}.options.svelte-1m848u0{display:flex;flex-direction:row;justify-content:center;width:100%;margin:auto}label.svelte-1m848u0{display:block;margin-bottom:1rem;padding:.5rem;border:2px solid hsl(0 0% 97%);border-right:none;text-align:center;transition:background-color .25s;cursor:pointer}label.svelte-1m848u0:nth-of-type(1){border-top-left-radius:.375rem;border-bottom-left-radius:.375rem;border-right-width:0}label.svelte-1m848u0:last-of-type{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;border-right:2px solid hsl(0 0% 97%)}label[data-selected=true].svelte-1m848u0{background-color:#fff;color:#333;font-weight:700}label.svelte-1m848u0:focus{outline:red}input.svelte-1m848u0{position:fixed;opacity:0;pointer-events:none}fieldset.svelte-1ikh8be{padding:0;border:none;margin-top:1rem}legend.svelte-1ikh8be{text-align:center;font-size:1.25rem;font-weight:700;padding:0;margin-bottom:1rem}button.svelte-18w38ow{display:block;font-size:1.2rem;font-family:Lato,sans-serif;font-weight:700;color:#f7f7f7;background:transparent;border:3px solid hsl(0 0% 97%);border-radius:.375rem;padding:.5rem 1rem;cursor:pointer;margin:1rem auto 2rem}button[disabled].svelte-18w38ow{border-color:gray;color:gray;cursor:initial}img.svelte-18w38ow{height:1.2rem;aspect-ratio:1 / 1;vertical-align:bottom}@media (min-width: 900px){button.svelte-18w38ow{margin-top:0}}section.svelte-1536b0c{display:flex;flex-direction:column;position:relative;border:2px solid hsl(0 0% 80%);border-radius:.375rem;padding:1rem}.player.svelte-1536b0c{position:absolute;left:50%;transform:translate(-50%);cursor:pointer}.notes.svelte-1536b0c{width:min(100%,512px);margin:auto;box-shadow:0 0 5px .1px #2e3338}audio.svelte-1536b0c{width:100%;margin:1rem auto}.play-button.svelte-1536b0c{position:absolute;left:50%;top:50%;width:20%;aspect-ratio:1 / 1;transform:translate(-50%,-50%);filter:drop-shadow(0 0 5px black);pointer-events:none;cursor:pointer}.handle.svelte-1536b0c{position:absolute;left:0;top:0;height:104%;width:.2rem;border-radius:.1rem;background-color:#fff;cursor:pointer;transform:translateY(-2%)}a.download.svelte-1536b0c{display:block;font-size:1.2rem;font-family:Lato,sans-serif;font-weight:700;color:#f7f7f7;background:transparent;border:3px solid hsl(0 0% 97%);border-radius:.375rem;padding:.5rem 1rem;cursor:pointer;margin:1rem auto auto}@media (min-width: 600px){section.svelte-1536b0c{padding:2rem}}section.svelte-4un5mw{border:2px solid hsl(0 0% 80%);border-radius:.375rem;padding:1rem}p.svelte-4un5mw{font-size:.75rem}main.svelte-1rfjlkw{width:100%;display:flex;flex-direction:column;gap:1rem;margin:0 auto}h1.svelte-1rfjlkw{font-size:1.5rem;border-left:.25ch solid hsl(0 0% 97%);padding-left:.5ch}.heading.svelte-1rfjlkw{font-size:2.25rem}p.svelte-1rfjlkw:not(.heading){max-width:40rem;font-size:1.2rem;line-height:1.5rem;margin:0}#options.svelte-1rfjlkw{display:flex;flex-direction:column;justify-content:space-between;margin-top:1rem}@media (min-width: 600px){main.svelte-1rfjlkw{max-width:60rem}}@media (min-width: 900px){#options.svelte-1rfjlkw{display:flex;flex-direction:row;justify-content:space-between}} diff --git a/static/_app/chunks/index-7c452e28.js b/static/_app/chunks/index-7c452e28.js new file mode 100644 index 0000000000000000000000000000000000000000..19ff28dff7c7325bb1b89ec48b60a832baf2d3e8 --- /dev/null +++ b/static/_app/chunks/index-7c452e28.js @@ -0,0 +1,4 @@ +function k(){}const rt=t=>t;function st(t,e){for(const n in e)t[n]=e[n];return t}function J(t){return t()}function I(){return Object.create(null)}function x(t){t.forEach(J)}function K(t){return typeof t=="function"}function Pt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let j;function qt(t,e){return j||(j=document.createElement("a")),j.href=e,t===j.href}function ct(t){return Object.keys(t).length===0}function lt(t,...e){if(t==null)return k;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Tt(t,e,n){t.$$.on_destroy.push(lt(e,n))}function zt(t,e,n,r){if(t){const s=Q(t,e,n,r);return t[0](s)}}function Q(t,e,n,r){return t[1]&&r?st(n.ctx.slice(),t[1](r(e))):n.ctx}function Bt(t,e,n,r){if(t[2]&&r){const s=t[2](r(n));if(e.dirty===void 0)return s;if(typeof s=="object"){const o=[],i=Math.max(e.dirty.length,s.length);for(let l=0;l32){const e=[],n=t.ctx.length/32;for(let r=0;rwindow.performance.now():()=>Date.now(),L=U?t=>requestAnimationFrame(t):k;const b=new Set;function V(t){b.forEach(e=>{e.c(t)||(b.delete(e),e.f())}),b.size!==0&&L(V)}function ut(t){let e;return b.size===0&&L(V),{promise:new Promise(n=>{b.add(e={c:t,f:n})}),abort(){b.delete(e)}}}let O=!1;function at(){O=!0}function ft(){O=!1}function _t(t,e,n,r){for(;t>1);n(s)<=r?t=s+1:e=s}return t}function dt(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const c=[];for(let u=0;u0&&e[n[s]].claim_order<=u?s+1:_t(1,s,a=>e[n[a]].claim_order,u))-1;r[c]=n[_]+1;const f=_+1;n[f]=c,s=Math.max(f,s)}const o=[],i=[];let l=e.length-1;for(let c=n[s]+1;c!=0;c=r[c-1]){for(o.push(e[c-1]);l>=c;l--)i.push(e[l]);l--}for(;l>=0;l--)i.push(e[l]);o.reverse(),i.sort((c,u)=>c.claim_order-u.claim_order);for(let c=0,u=0;c=o[u].claim_order;)u++;const _=ut.removeEventListener(e,n,r)}function Qt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Ut(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function bt(t){return Array.from(t.childNodes)}function xt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function Z(t,e,n,r,s=!1){xt(t);const o=(()=>{for(let i=t.claim_info.last_index;i=0;i--){const l=t[i];if(e(l)){const c=n(l);return c===void 0?t.splice(i,1):t[i]=c,s?c===void 0&&t.claim_info.last_index--:t.claim_info.last_index=i,l}}return r()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function $t(t,e,n,r){return Z(t,s=>s.nodeName===e,s=>{const o=[];for(let i=0;is.removeAttribute(i))},()=>r(e))}function Vt(t,e,n){return $t(t,e,n,Y)}function wt(t,e){return Z(t,n=>n.nodeType===3,n=>{const r=""+e;if(n.data.startsWith(r)){if(n.data.length!==r.length)return n.splitText(r.length)}else n.data=r},()=>F(e),!0)}function Xt(t){return wt(t," ")}function Yt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Zt(t,e,n,r){n===null?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function vt(t,e,n=!1){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,!1,e),r}const M=new Map;let R=0;function Et(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function kt(t,e){const n={stylesheet:mt(e),rules:{}};return M.set(t,n),n}function W(t,e,n,r,s,o,i,l=0){const c=16.666/r;let u=`{ +`;for(let p=0;p<=1;p+=c){const g=e+(n-e)*o(p);u+=p*100+`%{${i(g,1-g)}} +`}const _=u+`100% {${i(n,1-n)}} +}`,f=`__svelte_${Et(_)}_${l}`,a=X(t),{stylesheet:d,rules:h}=M.get(a)||kt(a,t);h[f]||(h[f]=!0,d.insertRule(`@keyframes ${f} ${_}`,d.cssRules.length));const y=t.style.animation||"";return t.style.animation=`${y?`${y}, `:""}${f} ${r}ms linear ${s}ms 1 both`,R+=1,f}function Nt(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?o=>o.indexOf(e)<0:o=>o.indexOf("__svelte")===-1),s=n.length-r.length;s&&(t.style.animation=r.join(", "),R-=s,R||jt())}function jt(){L(()=>{R||(M.forEach(t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}}),M.clear())})}let E;function v(t){E=t}function H(){if(!E)throw new Error("Function called outside component initialization");return E}function te(t){H().$$.on_mount.push(t)}function ee(t){H().$$.after_update.push(t)}function ne(t,e){H().$$.context.set(t,e)}const w=[],G=[],C=[],z=[],tt=Promise.resolve();let B=!1;function et(){B||(B=!0,tt.then(nt))}function ie(){return et(),tt}function D(t){C.push(t)}function re(t){z.push(t)}const q=new Set;let A=0;function nt(){const t=E;do{for(;A{$=null})),$}function T(t,e,n){t.dispatchEvent(vt(`${e?"intro":"outro"}${n}`))}const S=new Set;let m;function se(){m={r:0,c:[],p:m}}function ce(){m.r||x(m.c),m=m.p}function St(t,e){t&&t.i&&(S.delete(t),t.i(e))}function le(t,e,n,r){if(t&&t.o){if(S.has(t))return;S.add(t),m.c.push(()=>{S.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}}const Mt={duration:0};function oe(t,e,n,r){let s=e(t,n),o=r?0:1,i=null,l=null,c=null;function u(){c&&Nt(t,c)}function _(a,d){const h=a.b-o;return d*=Math.abs(h),{a:o,b:a.b,d:h,duration:d,start:a.start,end:a.start+d,group:a.group}}function f(a){const{delay:d=0,duration:h=300,easing:y=rt,tick:p=k,css:g}=s||Mt,P={start:ot()+d,b:a};a||(P.group=m,m.r+=1),i||l?l=P:(g&&(u(),c=W(t,o,a,h,d,y,g)),a&&p(0,1),i=_(P,h),D(()=>T(t,a,"start")),ut(N=>{if(l&&N>l.start&&(i=_(l,h),l=null,T(t,i.b,"start"),g&&(u(),c=W(t,o,i.b,i.duration,0,y,s.css))),i){if(N>=i.end)p(o=i.b,1-o),T(t,i.b,"end"),l||(i.b?u():--i.group.r||x(i.group.c)),i=null;else if(N>=i.start){const it=N-i.start;o=i.a+i.d*y(it/i.duration),p(o,1-o)}}return!!(i||l)}))}return{run(a){K(s)?Ct().then(()=>{s=s(),f(a)}):f(a)},end(){u(),i=l=null}}}function ue(t,e){const n={},r={},s={$$scope:1};let o=t.length;for(;o--;){const i=t[o],l=e[o];if(l){for(const c in i)c in l||(r[c]=1);for(const c in l)s[c]||(n[c]=l[c],s[c]=1);t[o]=l}else for(const c in i)s[c]=1}for(const i in r)i in n||(n[i]=void 0);return n}function ae(t){return typeof t=="object"&&t!==null?t:{}}function fe(t,e,n){const r=t.$$.props[e];r!==void 0&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function _e(t){t&&t.c()}function de(t,e){t&&t.l(e)}function Rt(t,e,n,r){const{fragment:s,on_mount:o,on_destroy:i,after_update:l}=t.$$;s&&s.m(e,n),r||D(()=>{const c=o.map(J).filter(K);i?i.push(...c):x(c),t.$$.on_mount=[]}),l.forEach(D)}function Dt(t,e){const n=t.$$;n.fragment!==null&&(x(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ot(t,e){t.$$.dirty[0]===-1&&(w.push(t),et(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const h=d.length?d[0]:a;return u.ctx&&s(u.ctx[f],u.ctx[f]=h)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](h),_&&Ot(t,f)),a}):[],u.update(),_=!0,x(u.before_update),u.fragment=r?r(u.ctx):!1,e.target){if(e.hydrate){at();const f=bt(e.target);u.fragment&&u.fragment.l(f),f.forEach(gt)}else u.fragment&&u.fragment.c();e.intro&&St(t.$$.fragment),Rt(t,e.target,e.anchor,e.customElement),ft(),nt()}v(c)}class me{$destroy(){Dt(this,1),this.$destroy=k}$on(e,n){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const s=r.indexOf(n);s!==-1&&r.splice(s,1)}}$set(e){this.$$set&&!ct(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{ae as A,Dt as B,st as C,ie as D,k as E,zt as F,Lt as G,Ft as H,Bt as I,yt as J,qt as K,Kt as L,Wt as M,Tt as N,G as O,fe as P,re as Q,Ht as R,me as S,rt as T,D as U,oe as V,Qt as W,x as X,L as Y,bt as a,Ut as b,Vt as c,gt as d,Y as e,Zt as f,It as g,wt as h,he as i,Yt as j,Gt as k,Jt as l,Xt as m,se as n,le as o,ce as p,St as q,ne as r,Pt as s,F as t,ee as u,te as v,_e as w,de as x,Rt as y,ue as z}; diff --git a/static/_app/chunks/index-d282aaf8.js b/static/_app/chunks/index-d282aaf8.js new file mode 100644 index 0000000000000000000000000000000000000000..281bfe9e6ada0cdbead51e9db68a6ee7cae25410 --- /dev/null +++ b/static/_app/chunks/index-d282aaf8.js @@ -0,0 +1 @@ +import{E as f,s as l}from"./index-7c452e28.js";const e=[];function h(n,u=f){let o;const i=new Set;function r(t){if(l(n,t)&&(n=t,o)){const c=!e.length;for(const s of i)s[1](),e.push(s,n);if(c){for(let s=0;s{i.delete(s),i.size===0&&(o(),o=null)}}return{set:r,update:b,subscribe:p}}export{h as w}; diff --git a/static/_app/error.svelte-929faa0c.js b/static/_app/error.svelte-929faa0c.js new file mode 100644 index 0000000000000000000000000000000000000000..3f6af9853892134ae45cb3f6744190aeb78518b0 --- /dev/null +++ b/static/_app/error.svelte-929faa0c.js @@ -0,0 +1 @@ +import{S as w,i as y,s as z,e as E,t as v,c as d,a as b,h as P,d as o,g as u,J as R,j as N,k as S,l as C,m as j,E as H}from"./chunks/index-7c452e28.js";function J(r){let l,t=r[1].frame+"",a;return{c(){l=E("pre"),a=v(t)},l(f){l=d(f,"PRE",{});var s=b(l);a=P(s,t),s.forEach(o)},m(f,s){u(f,l,s),R(l,a)},p(f,s){s&2&&t!==(t=f[1].frame+"")&&N(a,t)},d(f){f&&o(l)}}}function h(r){let l,t=r[1].stack+"",a;return{c(){l=E("pre"),a=v(t)},l(f){l=d(f,"PRE",{});var s=b(l);a=P(s,t),s.forEach(o)},m(f,s){u(f,l,s),R(l,a)},p(f,s){s&2&&t!==(t=f[1].stack+"")&&N(a,t)},d(f){f&&o(l)}}}function A(r){let l,t,a,f,s=r[1].message+"",c,k,n,p,i=r[1].frame&&J(r),_=r[1].stack&&h(r);return{c(){l=E("h1"),t=v(r[0]),a=S(),f=E("pre"),c=v(s),k=S(),i&&i.c(),n=S(),_&&_.c(),p=C()},l(e){l=d(e,"H1",{});var m=b(l);t=P(m,r[0]),m.forEach(o),a=j(e),f=d(e,"PRE",{});var q=b(f);c=P(q,s),q.forEach(o),k=j(e),i&&i.l(e),n=j(e),_&&_.l(e),p=C()},m(e,m){u(e,l,m),R(l,t),u(e,a,m),u(e,f,m),R(f,c),u(e,k,m),i&&i.m(e,m),u(e,n,m),_&&_.m(e,m),u(e,p,m)},p(e,[m]){m&1&&N(t,e[0]),m&2&&s!==(s=e[1].message+"")&&N(c,s),e[1].frame?i?i.p(e,m):(i=J(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),e[1].stack?_?_.p(e,m):(_=h(e),_.c(),_.m(p.parentNode,p)):_&&(_.d(1),_=null)},i:H,o:H,d(e){e&&o(l),e&&o(a),e&&o(f),e&&o(k),i&&i.d(e),e&&o(n),_&&_.d(e),e&&o(p)}}}function F({error:r,status:l}){return{props:{error:r,status:l}}}function B(r,l,t){let{status:a}=l,{error:f}=l;return r.$$set=s=>{"status"in s&&t(0,a=s.status),"error"in s&&t(1,f=s.error)},[a,f]}class G extends w{constructor(l){super(),y(this,l,B,A,z,{status:0,error:1})}}export{G as default,F as load}; diff --git a/static/_app/layout.svelte-6bd51f02.js b/static/_app/layout.svelte-6bd51f02.js new file mode 100644 index 0000000000000000000000000000000000000000..1e6ed97961bd3c4cef14b96cf0d8fb138f05ebda --- /dev/null +++ b/static/_app/layout.svelte-6bd51f02.js @@ -0,0 +1 @@ +import{S as l,i,s as r,F as u,G as f,H as _,I as c,q as p,o as d}from"./chunks/index-7c452e28.js";function m(n){let s;const o=n[1].default,e=u(o,n,n[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,a){e&&e.m(t,a),s=!0},p(t,[a]){e&&e.p&&(!s||a&1)&&f(e,o,t,t[0],s?c(o,t[0],a,null):_(t[0]),null)},i(t){s||(p(e,t),s=!0)},o(t){d(e,t),s=!1},d(t){e&&e.d(t)}}}function $(n,s,o){let{$$slots:e={},$$scope:t}=s;return n.$$set=a=>{"$$scope"in a&&o(0,t=a.$$scope)},[t,e]}class h extends l{constructor(s){super(),i(this,s,$,m,r,{})}}export{h as default}; diff --git a/static/_app/manifest.json b/static/_app/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..0fa0fcf2e7e1860a815b0d9b4bc657e19c011fd2 --- /dev/null +++ b/static/_app/manifest.json @@ -0,0 +1,56 @@ +{ + ".svelte-kit/runtime/client/start.js": { + "file": "start-36a09db6.js", + "src": ".svelte-kit/runtime/client/start.js", + "isEntry": true, + "imports": [ + "_index-7c452e28.js", + "_index-d282aaf8.js" + ], + "dynamicImports": [ + ".svelte-kit/runtime/components/layout.svelte", + ".svelte-kit/runtime/components/error.svelte", + "src/routes/index.svelte" + ] + }, + ".svelte-kit/runtime/components/layout.svelte": { + "file": "layout.svelte-6bd51f02.js", + "src": ".svelte-kit/runtime/components/layout.svelte", + "isEntry": true, + "isDynamicEntry": true, + "imports": [ + "_index-7c452e28.js" + ] + }, + ".svelte-kit/runtime/components/error.svelte": { + "file": "error.svelte-929faa0c.js", + "src": ".svelte-kit/runtime/components/error.svelte", + "isEntry": true, + "isDynamicEntry": true, + "imports": [ + "_index-7c452e28.js" + ] + }, + "src/routes/index.svelte": { + "file": "pages/index.svelte-9646dd5a.js", + "src": "src/routes/index.svelte", + "isEntry": true, + "isDynamicEntry": true, + "imports": [ + "_index-7c452e28.js", + "_index-d282aaf8.js" + ], + "css": [ + "assets/pages/index.svelte-ad990746.css" + ] + }, + "_index-7c452e28.js": { + "file": "chunks/index-7c452e28.js" + }, + "_index-d282aaf8.js": { + "file": "chunks/index-d282aaf8.js", + "imports": [ + "_index-7c452e28.js" + ] + } +} \ No newline at end of file diff --git a/static/_app/pages/index.svelte-9646dd5a.js b/static/_app/pages/index.svelte-9646dd5a.js new file mode 100644 index 0000000000000000000000000000000000000000..510a133267536503ed780d792110a1ff8173e49a --- /dev/null +++ b/static/_app/pages/index.svelte-9646dd5a.js @@ -0,0 +1,5 @@ +import{S as Z,i as x,s as ee,e as b,k as I,c as w,a as E,d as g,m as C,K as se,b as d,g as P,J as f,L as U,t as N,h as H,j as Ee,E as re,M as Re,N as R,O as fe,P as Ge,w as Y,x as J,y as K,Q as Ve,q as L,o as V,B as Q,R as ue,T as Fe,f as X,U as _e,V as ie,W as qe,n as $e,p as Te,X as We,v as Xe,u as Ye,Y as Je,l as Me}from"../chunks/index-7c452e28.js";import{w as le}from"../chunks/index-d282aaf8.js";const he=le("synth"),be=le("medium"),we=le("medium"),ve=le(!1),pe=le(""),ye=le(""),ke=le(""),ne={piano:"Piano",chamber:"Chamber Music",rock_and_metal:"Rock and Metal",synth:"Synthesizer",church:"Church",timpani_strings_harp:"Timpani, Contrabass, Harp",country:"Country",reggae:"Reggae-esque"},Ke={low:"Low",medium:"Medium",high:"High"},Qe={low:"Low",medium:"Medium",high:"High",very_high:"Very High"};function Ne(l,e,s){const t=l.slice();return t[4]=e[s],t[6]=s,t}function He(l){let e,s,t,o,n,a,i,c,u,p,r,_;return{c(){e=b("label"),s=b("div"),t=b("img"),a=I(),i=b("input"),u=I(),this.h()},l(m){e=w(m,"LABEL",{"data-selected":!0,class:!0});var T=E(e);s=w(T,"DIV",{class:!0});var v=E(s);t=w(v,"IMG",{src:!0,alt:!0,class:!0}),v.forEach(g),a=C(T),i=w(T,"INPUT",{type:!0,class:!0}),u=C(T),T.forEach(g),this.h()},h(){se(t.src,o=`static/${l[4]}.svg`)||d(t,"src",o),d(t,"alt",n=ne[l[4]]),d(t,"class","svelte-1r9pswz"),d(s,"class","svelte-1r9pswz"),d(i,"type","radio"),i.__value=c=l[4],i.value=i.__value,d(i,"class","svelte-1r9pswz"),l[3][0].push(i),d(e,"data-selected",p=l[0]===l[4]),d(e,"class","svelte-1r9pswz")},m(m,T){P(m,e,T),f(e,s),f(s,t),f(e,a),f(e,i),i.checked=i.__value===l[0],f(e,u),r||(_=U(i,"change",l[2]),r=!0)},p(m,T){T&1&&(i.checked=i.__value===m[0]),T&1&&p!==(p=m[0]===m[4])&&d(e,"data-selected",p)},d(m){m&&g(e),l[3][0].splice(l[3][0].indexOf(i),1),r=!1,_()}}}function Ze(l){let e,s,t=(ne[l[0]]||"Synthesizer")+"",o,n,a,i=l[1],c=[];for(let u=0;us(0,t=i));const o=Object.keys(ne),n=[[]];function a(){t=this.__value,he.set(t)}return[t,o,a,n]}class et extends Z{constructor(e){super(),x(this,e,xe,Ze,ee,{})}}function je(l,e,s){const t=l.slice();return t[5]=e[s],t}function Be(l){let e,s=l[1][l[5]]+"",t,o,n,a,i,c,u,p;return{c(){e=b("label"),t=N(s),o=I(),n=b("input"),i=I(),this.h()},l(r){e=w(r,"LABEL",{"data-selected":!0,class:!0});var _=E(e);t=H(_,s),o=C(_),n=w(_,"INPUT",{type:!0,class:!0}),i=C(_),_.forEach(g),this.h()},h(){d(n,"type","radio"),n.__value=a=l[5],n.value=n.__value,d(n,"class","svelte-1m848u0"),l[4][0].push(n),d(e,"data-selected",c=l[5]===l[0]),d(e,"class","svelte-1m848u0")},m(r,_){P(r,e,_),f(e,t),f(e,o),f(e,n),n.checked=n.__value===l[0],f(e,i),u||(p=U(n,"change",l[3]),u=!0)},p(r,_){_&2&&s!==(s=r[1][r[5]]+"")&&Ee(t,s),_&1&&(n.checked=n.__value===r[0]),_&1&&c!==(c=r[5]===r[0])&&d(e,"data-selected",c)},d(r){r&&g(e),l[4][0].splice(l[4][0].indexOf(n),1),u=!1,p()}}}function tt(l){let e,s=l[2],t=[];for(let o=0;o{"options"in c&&s(1,t=c.options),"selection"in c&&s(0,n=c.selection)},[n,t,o,i,a]}class Ue extends Z{constructor(e){super(),x(this,e,st,tt,ee,{options:1,selection:0})}}function nt(l){let e,s,t,o,n,a,i,c;function u(r){l[1](r)}let p={options:Ke};return l[0]!==void 0&&(p.selection=l[0]),a=new Ue({props:p}),fe.push(()=>Ge(a,"selection",u)),{c(){e=b("div"),s=b("fieldset"),t=b("legend"),o=N("Note density"),n=I(),Y(a.$$.fragment),this.h()},l(r){e=w(r,"DIV",{});var _=E(e);s=w(_,"FIELDSET",{class:!0});var m=E(s);t=w(m,"LEGEND",{class:!0});var T=E(t);o=H(T,"Note density"),T.forEach(g),n=C(m),J(a.$$.fragment,m),m.forEach(g),_.forEach(g),this.h()},h(){d(t,"class","svelte-1ikh8be"),d(s,"class","svelte-1ikh8be")},m(r,_){P(r,e,_),f(e,s),f(s,t),f(t,o),f(s,n),K(a,s,null),c=!0},p(r,[_]){const m={};!i&&_&1&&(i=!0,m.selection=r[0],Ve(()=>i=!1)),a.$set(m)},i(r){c||(L(a.$$.fragment,r),c=!0)},o(r){V(a.$$.fragment,r),c=!1},d(r){r&&g(e),Q(a)}}}function lt(l,e,s){let t;R(l,be,n=>s(0,t=n));function o(n){t=n,be.set(t)}return[t,o]}class at extends Z{constructor(e){super(),x(this,e,lt,nt,ee,{})}}function ot(l){let e,s,t,o,n,a,i,c;function u(r){l[1](r)}let p={options:Qe};return l[0]!==void 0&&(p.selection=l[0]),a=new Ue({props:p}),fe.push(()=>Ge(a,"selection",u)),{c(){e=b("div"),s=b("fieldset"),t=b("legend"),o=N("Temperature"),n=I(),Y(a.$$.fragment),this.h()},l(r){e=w(r,"DIV",{});var _=E(e);s=w(_,"FIELDSET",{class:!0});var m=E(s);t=w(m,"LEGEND",{class:!0});var T=E(t);o=H(T,"Temperature"),T.forEach(g),n=C(m),J(a.$$.fragment,m),m.forEach(g),_.forEach(g),this.h()},h(){d(t,"class","svelte-1ikh8be"),d(s,"class","svelte-1ikh8be")},m(r,_){P(r,e,_),f(e,s),f(s,t),f(t,o),f(s,n),K(a,s,null),c=!0},p(r,[_]){const m={};!i&&_&1&&(i=!0,m.selection=r[0],Ve(()=>i=!1)),a.$set(m)},i(r){c||(L(a.$$.fragment,r),c=!0)},o(r){V(a.$$.fragment,r),c=!1},d(r){r&&g(e),Q(a)}}}function rt(l,e,s){let t;R(l,we,n=>s(0,t=n));function o(n){t=n,we.set(t)}return[t,o]}class it extends Z{constructor(e){super(),x(this,e,rt,ot,ee,{})}}function ct(l){let e,s,t;return{c(){e=N("Compose "),s=b("img"),this.h()},l(o){e=H(o,"Compose "),s=w(o,"IMG",{src:!0,alt:!0,class:!0}),this.h()},h(){se(s.src,t="static/wand.svg")||d(s,"src",t),d(s,"alt","Magic wand"),d(s,"class","svelte-18w38ow")},m(o,n){P(o,e,n),P(o,s,n)},d(o){o&&g(e),o&&g(s)}}}function ut(l){let e;return{c(){e=N("Composing...")},l(s){e=H(s,"Composing...")},m(s,t){P(s,e,t)},d(s){s&&g(e)}}}function ft(l){let e,s,t;function o(i,c){return i[0]?ut:ct}let n=o(l),a=n(l);return{c(){e=b("button"),a.c(),this.h()},l(i){e=w(i,"BUTTON",{class:!0});var c=E(e);a.l(c),c.forEach(g),this.h()},h(){e.disabled=l[0],d(e,"class","svelte-18w38ow")},m(i,c){P(i,e,c),a.m(e,null),s||(t=U(e,"click",l[1]),s=!0)},p(i,[c]){n!==(n=o(i))&&(a.d(1),a=n(i),a&&(a.c(),a.m(e,null))),c&1&&(e.disabled=i[0])},i:re,o:re,d(i){i&&g(e),a.d(),s=!1,t()}}}function dt(l,e,s){let t,o,n,a,i,c,u;R(l,ve,v=>s(0,t=v)),R(l,ke,v=>s(2,o=v)),R(l,ye,v=>s(3,n=v)),R(l,pe,v=>s(4,a=v)),R(l,we,v=>s(5,i=v)),R(l,be,v=>s(6,c=v)),R(l,he,v=>s(7,u=v));const p=()=>{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new MediaMetadata({title:`${ne[u]} Composition`,artist:"AI Guru Composer",album:"Hugging Face",artwork:[{src:"static/hugging-face-headphones.png",sizes:"512x512",type:"image/png"}]}))},r=async({music_style:v,density:y,temperature:D})=>{var A;const S=await fetch("task/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({music_style:v,density:y,temperature:D})});if(!S.ok||!((A=S.headers.get("content-type"))!=null&&A.includes("application/json")))throw new Error(`Unable to create composition: [${S.status}] ${await S.text()}`);return await S.json()},_=async v=>{var D;const y=await fetch(`task/poll?task_id=${v.task_id}`);if(!y.ok||!((D=y.headers.get("content-type"))!=null&&D.includes("application/json")))throw new Error(`Unable to create composition: [${y.status}] ${await y.text()}`);return await y.json()},m=async(v,y=1e3,D=100)=>(v=await _(v),v.status==="completed"||v.status==="failed"||D&&v.poll_count>D?v:(await new Promise(S=>setTimeout(S,y)),await m(v,y,D)));return[t,async()=>{ue(ve,t=!0,t);try{const v=await r({music_style:u,density:c,temperature:i}),y=await m(v),{audio:D,image:S,tokens:j}=y.output;ue(pe,a=D,a),ue(ye,n=S,n),ue(ke,o=j,o),p()}catch(v){console.error(v)}finally{ue(ve,t=!1,t)}}]}class _t extends Z{constructor(e){super(),x(this,e,dt,ft,ee,{})}}function ce(l,{delay:e=0,duration:s=400,easing:t=Fe}={}){const o=+getComputedStyle(l).opacity;return{delay:e,duration:s,easing:t,css:n=>`opacity: ${n*o}`}}function Le(l){let e,s,t,o;return{c(){e=b("img"),this.h()},l(n){e=w(n,"IMG",{class:!0,src:!0,alt:!0,draggable:!0}),this.h()},h(){d(e,"class","play-button svelte-1536b0c"),se(e.src,s="static/play.svg")||d(e,"src",s),d(e,"alt","Play button"),d(e,"draggable","false"),X(e,"width",l[7]>100?"20%":"7.5%",!1)},m(n,a){P(n,e,a),o=!0},p(n,a){a&128&&X(e,"width",n[7]>100?"20%":"7.5%",!1)},i(n){o||(_e(()=>{t||(t=ie(e,ce,{},!0)),t.run(1)}),o=!0)},o(n){t||(t=ie(e,ce,{},!1)),t.run(0),o=!1},d(n){n&&g(e),n&&t&&t.end()}}}function ht(l){let e,s,t,o,n,a,i,c=!1,u,p=!0,r,_,m=`translate(${Math.min(l[6]*(l[1]/(l[2]-.9)),l[6])}px, -2%)`,T,v,y,D,S,j,A,q,W;function z(){cancelAnimationFrame(u),a.paused||(u=Je(z),c=!0),l[15].call(a)}let $=l[3]&&Le(l);return{c(){e=b("section"),s=b("img"),o=I(),n=b("div"),a=b("audio"),r=I(),_=b("div"),T=I(),$&&$.c(),v=I(),y=b("a"),D=N("Download"),this.h()},l(h){e=w(h,"SECTION",{class:!0});var k=E(e);s=w(k,"IMG",{class:!0,src:!0,alt:!0}),o=C(k),n=w(k,"DIV",{class:!0,tabindex:!0});var G=E(n);a=w(G,"AUDIO",{src:!0,class:!0}),E(a).forEach(g),r=C(G),_=w(G,"DIV",{class:!0}),E(_).forEach(g),T=C(G),$&&$.l(G),G.forEach(g),v=C(k),y=w(k,"A",{href:!0,download:!0,class:!0});var F=E(y);D=H(F,"Download"),F.forEach(g),k.forEach(g),this.h()},h(){d(s,"class","notes svelte-1536b0c"),se(s.src,t=l[8])||d(s,"src",t),d(s,"alt",""),se(a.src,i=l[9])||d(a,"src",i),d(a,"class","svelte-1536b0c"),l[2]===void 0&&_e(()=>l[16].call(a)),d(_,"class","handle svelte-1536b0c"),X(_,"transform",m,!1),d(n,"class","player svelte-1536b0c"),d(n,"tabindex","0"),X(n,"width",l[6]+"px",!1),X(n,"height",l[7]+"px",!1),d(y,"href",l[9]),d(y,"download",S=`${ne[l[10]]} Composition - AI Guru ft. Hugging Face.wav`),d(y,"class","download svelte-1536b0c"),d(e,"class","svelte-1536b0c")},m(h,k){P(h,e,k),f(e,s),l[14](s),f(e,o),f(e,n),f(n,a),f(n,r),f(n,_),f(n,T),$&&$.m(n,null),l[18](n),f(e,v),f(e,y),f(y,D),l[20](e),A=!0,q||(W=[U(a,"timeupdate",z),U(a,"durationchange",l[16]),U(a,"play",l[17]),U(a,"pause",l[17]),U(n,"mousemove",l[11]),U(n,"touchmove",qe(l[12])),U(n,"keydown",l[13]),U(n,"click",l[19])],q=!0)},p(h,[k]){(!A||k&256&&!se(s.src,t=h[8]))&&d(s,"src",t),(!A||k&512&&!se(a.src,i=h[9]))&&d(a,"src",i),!c&&k&2&&!isNaN(h[1])&&(a.currentTime=h[1]),c=!1,k&8&&p!==(p=h[3])&&a[p?"pause":"play"](),k&70&&m!==(m=`translate(${Math.min(h[6]*(h[1]/(h[2]-.9)),h[6])}px, -2%)`)&&X(_,"transform",m,!1),h[3]?$?($.p(h,k),k&8&&L($,1)):($=Le(h),$.c(),L($,1),$.m(n,null)):$&&($e(),V($,1,1,()=>{$=null}),Te()),k&64&&X(n,"width",h[6]+"px",!1),k&128&&X(n,"height",h[7]+"px",!1),(!A||k&512)&&d(y,"href",h[9]),(!A||k&1024&&S!==(S=`${ne[h[10]]} Composition - AI Guru ft. Hugging Face.wav`))&&d(y,"download",S)},i(h){A||(L($),_e(()=>{j||(j=ie(e,ce,{},!0)),j.run(1)}),A=!0)},o(h){V($),j||(j=ie(e,ce,{},!1)),j.run(0),A=!1},d(h){h&&g(e),l[14](null),$&&$.d(),l[18](null),l[20](null),h&&j&&j.end(),q=!1,We(W)}}}function pt(l,e,s){let t,o,n;R(l,ye,h=>s(8,t=h)),R(l,pe,h=>s(9,o=h)),R(l,he,h=>s(10,n=h));let a,i,c,u=!0,p,r,_,m;const T=()=>{s(6,_=r&&r.clientWidth),s(7,m=r&&r.clientHeight)};Xe(()=>{T(),"mediaSession"in navigator&&(navigator.mediaSession.setActionHandler("play",()=>s(3,u=!1)),navigator.mediaSession.setActionHandler("pause",()=>s(3,u=!0)),navigator.mediaSession.setActionHandler("stop",()=>{s(3,u=!0),s(1,i=0)})),window.scrollTo({top:a.offsetTop,behavior:"smooth"})}),Ye(()=>{T()});const v=h=>{if(!c||!h.buttons)return;const{left:k,right:G}=p.getBoundingClientRect();s(1,i=c*(h.clientX-k)/(G-k))},y=h=>{if(!c)return;const{left:k,right:G}=p.getBoundingClientRect();s(1,i=c*(h.touches[0].clientX-k)/(G-k))},D=h=>{h.preventDefault(),h.code==="Space"&&s(3,u=!u),h.code==="ArrowLeft"&&s(1,i=i>=1?i-1:0),h.code==="ArrowRight"&&s(1,i=i<=c-1?i+1:c)};function S(h){fe[h?"unshift":"push"](()=>{r=h,s(5,r)})}function j(){i=this.currentTime,s(1,i)}function A(){c=this.duration,s(2,c)}function q(){u=this.paused,s(3,u)}function W(h){fe[h?"unshift":"push"](()=>{p=h,s(4,p)})}const z=()=>s(3,u=!u);function $(h){fe[h?"unshift":"push"](()=>{a=h,s(0,a)})}return[a,i,c,u,p,r,_,m,t,o,n,v,y,D,S,j,A,q,W,z,$]}class mt extends Z{constructor(e){super(),x(this,e,pt,ht,ee,{})}}function ze(l){let e,s,t,o,n,a,i,c;return{c(){e=b("section"),s=b("h2"),t=N("Tokenized notes"),o=I(),n=b("p"),a=N(l[0]),this.h()},l(u){e=w(u,"SECTION",{class:!0});var p=E(e);s=w(p,"H2",{});var r=E(s);t=H(r,"Tokenized notes"),r.forEach(g),o=C(p),n=w(p,"P",{class:!0});var _=E(n);a=H(_,l[0]),_.forEach(g),p.forEach(g),this.h()},h(){d(n,"class","svelte-4un5mw"),d(e,"class","svelte-4un5mw")},m(u,p){P(u,e,p),f(e,s),f(s,t),f(e,o),f(e,n),f(n,a),c=!0},p(u,p){(!c||p&1)&&Ee(a,u[0])},i(u){c||(_e(()=>{i||(i=ie(e,ce,{},!0)),i.run(1)}),c=!0)},o(u){i||(i=ie(e,ce,{},!1)),i.run(0),c=!1},d(u){u&&g(e),u&&i&&i.end()}}}function gt(l){let e,s,t=l[0]&&ze(l);return{c(){t&&t.c(),e=Me()},l(o){t&&t.l(o),e=Me()},m(o,n){t&&t.m(o,n),P(o,e,n),s=!0},p(o,[n]){o[0]?t?(t.p(o,n),n&1&&L(t,1)):(t=ze(o),t.c(),L(t,1),t.m(e.parentNode,e)):t&&($e(),V(t,1,1,()=>{t=null}),Te())},i(o){s||(L(t),s=!0)},o(o){V(t),s=!1},d(o){t&&t.d(o),o&&g(e)}}}function vt(l,e,s){let t;return R(l,ke,o=>s(0,t=o)),[t]}class bt extends Z{constructor(e){super(),x(this,e,vt,gt,ee,{})}}function Pe(l){let e,s,t,o;return e=new mt({}),t=new bt({}),{c(){Y(e.$$.fragment),s=I(),Y(t.$$.fragment)},l(n){J(e.$$.fragment,n),s=C(n),J(t.$$.fragment,n)},m(n,a){K(e,n,a),P(n,s,a),K(t,n,a),o=!0},i(n){o||(L(e.$$.fragment,n),L(t.$$.fragment,n),o=!0)},o(n){V(e.$$.fragment,n),V(t.$$.fragment,n),o=!1},d(n){Q(e,n),n&&g(s),Q(t,n)}}}function wt(l){let e,s,t,o,n,a,i,c,u,p,r,_,m,T,v,y,D,S,j,A,q,W,z,$,h,k,G,F,me,te,ge,de;$=new et({}),k=new at({}),F=new it({}),te=new _t({});let M=l[0]&&Pe();return{c(){e=b("main"),s=b("h1"),t=N("Composer"),o=I(),n=b("p"),a=N("Trained on fifteen thousand songs. One AI model. Infinite compositions."),i=I(),c=b("p"),u=N(`This space contains a deep neural network model that can compose music. You can use it to generate audio in + different styles, 4 bars at a time.`),p=I(),r=b("p"),_=N("Developed by "),m=b("a"),T=N("Ron Au"),v=N(` and + `),y=b("a"),D=N("Tristan Behrens"),S=N("."),j=I(),A=b("p"),q=N("Have fun! And always feel free to send us some feedback and share your compositions!"),W=I(),z=b("section"),Y($.$$.fragment),h=I(),Y(k.$$.fragment),G=I(),Y(F.$$.fragment),me=I(),Y(te.$$.fragment),ge=I(),M&&M.c(),this.h()},l(B){e=w(B,"MAIN",{class:!0});var O=E(e);s=w(O,"H1",{class:!0});var Ie=E(s);t=H(Ie,"Composer"),Ie.forEach(g),o=C(O),n=w(O,"P",{class:!0});var Ce=E(n);a=H(Ce,"Trained on fifteen thousand songs. One AI model. Infinite compositions."),Ce.forEach(g),i=C(O),c=w(O,"P",{class:!0});var De=E(c);u=H(De,`This space contains a deep neural network model that can compose music. You can use it to generate audio in + different styles, 4 bars at a time.`),De.forEach(g),p=C(O),r=w(O,"P",{class:!0});var ae=E(r);_=H(ae,"Developed by "),m=w(ae,"A",{href:!0,rel:!0,target:!0});var Se=E(m);T=H(Se,"Ron Au"),Se.forEach(g),v=H(ae,` and + `),y=w(ae,"A",{href:!0,rel:!0,target:!0});var Ae=E(y);D=H(Ae,"Tristan Behrens"),Ae.forEach(g),S=H(ae,"."),ae.forEach(g),j=C(O),A=w(O,"P",{class:!0});var Oe=E(A);q=H(Oe,"Have fun! And always feel free to send us some feedback and share your compositions!"),Oe.forEach(g),W=C(O),z=w(O,"SECTION",{id:!0,class:!0});var oe=E(z);J($.$$.fragment,oe),h=C(oe),J(k.$$.fragment,oe),G=C(oe),J(F.$$.fragment,oe),oe.forEach(g),me=C(O),J(te.$$.fragment,O),ge=C(O),M&&M.l(O),O.forEach(g),this.h()},h(){d(s,"class","svelte-1rfjlkw"),d(n,"class","heading svelte-1rfjlkw"),d(c,"class","svelte-1rfjlkw"),d(m,"href","https://twitter.com/ronvoluted"),d(m,"rel","noopener"),d(m,"target","_blank"),d(y,"href","https://twitter.com/DrTBehrens"),d(y,"rel","noopener"),d(y,"target","_blank"),d(r,"class","svelte-1rfjlkw"),d(A,"class","svelte-1rfjlkw"),d(z,"id","options"),d(z,"class","svelte-1rfjlkw"),d(e,"class","svelte-1rfjlkw")},m(B,O){P(B,e,O),f(e,s),f(s,t),f(e,o),f(e,n),f(n,a),f(e,i),f(e,c),f(c,u),f(e,p),f(e,r),f(r,_),f(r,m),f(m,T),f(r,v),f(r,y),f(y,D),f(r,S),f(e,j),f(e,A),f(A,q),f(e,W),f(e,z),K($,z,null),f(z,h),K(k,z,null),f(z,G),K(F,z,null),f(e,me),K(te,e,null),f(e,ge),M&&M.m(e,null),de=!0},p(B,[O]){B[0]?M?O&1&&L(M,1):(M=Pe(),M.c(),L(M,1),M.m(e,null)):M&&($e(),V(M,1,1,()=>{M=null}),Te())},i(B){de||(L($.$$.fragment,B),L(k.$$.fragment,B),L(F.$$.fragment,B),L(te.$$.fragment,B),L(M),de=!0)},o(B){V($.$$.fragment,B),V(k.$$.fragment,B),V(F.$$.fragment,B),V(te.$$.fragment,B),V(M),de=!1},d(B){B&&g(e),Q($),Q(k),Q(F),Q(te),M&&M.d()}}}function yt(l,e,s){let t;return R(l,pe,o=>s(0,t=o)),[t]}class $t extends Z{constructor(e){super(),x(this,e,yt,wt,ee,{})}}export{$t as default}; diff --git a/static/_app/start-36a09db6.js b/static/_app/start-36a09db6.js new file mode 100644 index 0000000000000000000000000000000000000000..002ae4784c6f93566e944fe53f102f70c327f96f --- /dev/null +++ b/static/_app/start-36a09db6.js @@ -0,0 +1 @@ +var et=Object.defineProperty,tt=Object.defineProperties;var nt=Object.getOwnPropertyDescriptors;var fe=Object.getOwnPropertySymbols;var Te=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable;var Ie=(n,e,t)=>e in n?et(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,P=(n,e)=>{for(var t in e||(e={}))Te.call(e,t)&&Ie(n,t,e[t]);if(fe)for(var t of fe(e))De.call(e,t)&&Ie(n,t,e[t]);return n},ne=(n,e)=>tt(n,nt(e));var Ve=(n,e)=>{var t={};for(var s in n)Te.call(n,s)&&e.indexOf(s)<0&&(t[s]=n[s]);if(n!=null&&fe)for(var s of fe(n))e.indexOf(s)<0&&De.call(n,s)&&(t[s]=n[s]);return t};import{S as rt,i as st,s as it,e as at,c as ot,a as ct,d as V,b as we,f as B,g as q,t as lt,h as ft,j as ut,k as dt,l as C,m as pt,n as M,o as j,p as F,q as I,r as ht,u as _t,v as $e,w as z,x as se,y as J,z as ie,A as ae,B as K,C as oe,D as qe}from"./chunks/index-7c452e28.js";import{w as ue}from"./chunks/index-d282aaf8.js";let ze="",He="";function mt(n){ze=n.base,He=n.assets||ze}function gt(n){let e,t,s;const l=[n[1]||{}];var c=n[0][0];function f(r){let i={};for(let a=0;a{K(d,1)}),F()}c?(e=new c(f()),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(r){s||(e&&I(e.$$.fragment,r),s=!0)},o(r){e&&j(e.$$.fragment,r),s=!1},d(r){r&&V(t),e&&K(e,r)}}}function wt(n){let e,t,s;const l=[n[1]||{}];var c=n[0][0];function f(r){let i={$$slots:{default:[$t]},$$scope:{ctx:r}};for(let a=0;a{K(d,1)}),F()}c?(e=new c(f(r)),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(r){s||(e&&I(e.$$.fragment,r),s=!0)},o(r){e&&j(e.$$.fragment,r),s=!1},d(r){r&&V(t),e&&K(e,r)}}}function bt(n){let e,t,s;const l=[n[2]||{}];var c=n[0][1];function f(r){let i={};for(let a=0;a{K(d,1)}),F()}c?(e=new c(f()),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(r){s||(e&&I(e.$$.fragment,r),s=!0)},o(r){e&&j(e.$$.fragment,r),s=!1},d(r){r&&V(t),e&&K(e,r)}}}function yt(n){let e,t,s;const l=[n[2]||{}];var c=n[0][1];function f(r){let i={$$slots:{default:[vt]},$$scope:{ctx:r}};for(let a=0;a{K(d,1)}),F()}c?(e=new c(f(r)),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(r){s||(e&&I(e.$$.fragment,r),s=!0)},o(r){e&&j(e.$$.fragment,r),s=!1},d(r){r&&V(t),e&&K(e,r)}}}function vt(n){let e,t,s;const l=[n[3]||{}];var c=n[0][2];function f(r){let i={};for(let a=0;a{K(d,1)}),F()}c?(e=new c(f()),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(r){s||(e&&I(e.$$.fragment,r),s=!0)},o(r){e&&j(e.$$.fragment,r),s=!1},d(r){r&&V(t),e&&K(e,r)}}}function $t(n){let e,t,s,l;const c=[yt,bt],f=[];function r(i,a){return i[0][2]?0:1}return e=r(n),t=f[e]=c[e](n),{c(){t.c(),s=C()},l(i){t.l(i),s=C()},m(i,a){f[e].m(i,a),q(i,s,a),l=!0},p(i,a){let d=e;e=r(i),e===d?f[e].p(i,a):(M(),j(f[d],1,1,()=>{f[d]=null}),F(),t=f[e],t?t.p(i,a):(t=f[e]=c[e](i),t.c()),I(t,1),t.m(s.parentNode,s))},i(i){l||(I(t),l=!0)},o(i){j(t),l=!1},d(i){f[e].d(i),i&&V(s)}}}function Je(n){let e,t=n[5]&&Ke(n);return{c(){e=at("div"),t&&t.c(),this.h()},l(s){e=ot(s,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var l=ct(e);t&&t.l(l),l.forEach(V),this.h()},h(){we(e,"id","svelte-announcer"),we(e,"aria-live","assertive"),we(e,"aria-atomic","true"),B(e,"position","absolute"),B(e,"left","0"),B(e,"top","0"),B(e,"clip","rect(0 0 0 0)"),B(e,"clip-path","inset(50%)"),B(e,"overflow","hidden"),B(e,"white-space","nowrap"),B(e,"width","1px"),B(e,"height","1px")},m(s,l){q(s,e,l),t&&t.m(e,null)},p(s,l){s[5]?t?t.p(s,l):(t=Ke(s),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(s){s&&V(e),t&&t.d()}}}function Ke(n){let e;return{c(){e=lt(n[6])},l(t){e=ft(t,n[6])},m(t,s){q(t,e,s)},p(t,s){s&64&&ut(e,t[6])},d(t){t&&V(e)}}}function kt(n){let e,t,s,l,c;const f=[wt,gt],r=[];function i(d,R){return d[0][1]?0:1}e=i(n),t=r[e]=f[e](n);let a=n[4]&&Je(n);return{c(){t.c(),s=dt(),a&&a.c(),l=C()},l(d){t.l(d),s=pt(d),a&&a.l(d),l=C()},m(d,R){r[e].m(d,R),q(d,s,R),a&&a.m(d,R),q(d,l,R),c=!0},p(d,[R]){let y=e;e=i(d),e===y?r[e].p(d,R):(M(),j(r[y],1,1,()=>{r[y]=null}),F(),t=r[e],t?t.p(d,R):(t=r[e]=f[e](d),t.c()),I(t,1),t.m(s.parentNode,s)),d[4]?a?a.p(d,R):(a=Je(d),a.c(),a.m(l.parentNode,l)):a&&(a.d(1),a=null)},i(d){c||(I(t),c=!0)},o(d){j(t),c=!1},d(d){r[e].d(d),d&&V(s),a&&a.d(d),d&&V(l)}}}function Et(n,e,t){let{stores:s}=e,{page:l}=e,{components:c}=e,{props_0:f=null}=e,{props_1:r=null}=e,{props_2:i=null}=e;ht("__svelte__",s),_t(s.page.notify);let a=!1,d=!1,R=null;return $e(()=>{const y=s.page.subscribe(()=>{a&&(t(5,d=!0),t(6,R=document.title||"untitled page"))});return t(4,a=!0),y}),n.$$set=y=>{"stores"in y&&t(7,s=y.stores),"page"in y&&t(8,l=y.page),"components"in y&&t(0,c=y.components),"props_0"in y&&t(1,f=y.props_0),"props_1"in y&&t(2,r=y.props_1),"props_2"in y&&t(3,i=y.props_2)},n.$$.update=()=>{n.$$.dirty&384&&s.page.set(l)},[c,f,r,i,a,d,R,s,l]}class Rt extends rt{constructor(e){super(),st(this,e,Et,kt,it,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const St="modulepreload",Be={},Lt="https://hf.space/embed/ai-guru/composer/static/_app/",be=function(e,t){return!t||t.length===0?e():Promise.all(t.map(s=>{if(s=`${Lt}${s}`,s in Be)return;Be[s]=!0;const l=s.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${c}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":St,l||(f.as="script",f.crossOrigin=""),f.href=s,document.head.appendChild(f),l)return new Promise((r,i)=>{f.addEventListener("load",r),f.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>e())},Ut={},Ee=[()=>be(()=>import("./layout.svelte-6bd51f02.js"),["layout.svelte-6bd51f02.js","chunks/index-7c452e28.js"]),()=>be(()=>import("./error.svelte-929faa0c.js"),["error.svelte-929faa0c.js","chunks/index-7c452e28.js"]),()=>be(()=>import("./pages/index.svelte-9646dd5a.js"),["pages/index.svelte-9646dd5a.js","assets/pages/index.svelte-ad990746.css","chunks/index-7c452e28.js","chunks/index-d282aaf8.js"])],At={"":[[0,2],[1]]};function We(n){return n instanceof Error||n&&n.name&&n.message?n:new Error(JSON.stringify(n))}function Ye(n){if(n.fallthrough)throw new Error("fallthrough is no longer supported. Use matchers instead: https://kit.svelte.dev/docs/routing#advanced-routing-matching");if("maxage"in n)throw new Error("maxage should be replaced with cache: { maxage }");const e=n.status&&n.status>=400&&n.status<=599&&!n.redirect;if(n.error||e){const t=n.status;if(!n.error&&e)return{status:t||500,error:new Error};const s=typeof n.error=="string"?new Error(n.error):n.error;return s instanceof Error?!t||t<400||t>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:s}):{status:t,error:s}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof s}"`)}}if(n.redirect){if(!n.status||Math.floor(n.status/100)!==3)return{status:500,error:new Error('"redirect" property returned from load() must be accompanied by a 3xx status code')};if(typeof n.redirect!="string")return{status:500,error:new Error('"redirect" property returned from load() must be a string')}}if(n.dependencies&&(!Array.isArray(n.dependencies)||n.dependencies.some(t=>typeof t!="string")))return{status:500,error:new Error('"dependencies" property returned from load() must be of type string[]')};if(n.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return n}function Nt(n,e){return n==="/"||e==="ignore"?n:e==="never"?n.endsWith("/")?n.slice(0,-1):n:e==="always"&&!n.endsWith("/")?n+"/":n}function Ot(n){let e=5381,t=n.length;if(typeof n=="string")for(;t;)e=e*33^n.charCodeAt(--t);else for(;t;)e=e*33^n[--t];return(e>>>0).toString(36)}function Me(n){let e=n.baseURI;if(!e){const t=n.getElementsByTagName("base");e=t.length?t[0].href:n.URL}return e}function ke(){return{x:pageXOffset,y:pageYOffset}}function Fe(n){return n.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function Ge(n){return n instanceof SVGAElement?new URL(n.href.baseVal,document.baseURI):new URL(n.href)}function Xe(n){const e=ue(n);let t=!0;function s(){t=!0,e.update(f=>f)}function l(f){t=!1,e.set(f)}function c(f){let r;return e.subscribe(i=>{(r===void 0||t&&i!==r)&&f(r=i)})}return{notify:s,set:l,subscribe:c}}function xt(){const{set:n,subscribe:e}=ue(!1),t="1651582801212";let s;async function l(){clearTimeout(s);const f=await fetch(`https://hf.space/embed/ai-guru/composer/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(f.ok){const{version:r}=await f.json(),i=r!==t;return i&&(n(!0),clearTimeout(s)),i}else throw new Error(`Version check failed: ${f.status}`)}return{subscribe:e,check:l}}function Pt(n,e){let s=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof n=="string"?n:n.url)}]`;e&&typeof e.body=="string"&&(s+=`[sveltekit\\:data-body="${Ot(e.body)}"]`);const l=document.querySelector(s);if(l&&l.textContent){const c=JSON.parse(l.textContent),{body:f}=c,r=Ve(c,["body"]);return Promise.resolve(new Response(f,r))}return fetch(n,e)}const Ct=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function jt(n){const e=[],t=[];let s=!0;return{pattern:n===""?/^\/$/:new RegExp(`^${decodeURIComponent(n).split(/(?:@[a-zA-Z0-9_-]+)?(?:\/|$)/).map((c,f,r)=>{const i=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(c);if(i)return e.push(i[1]),t.push(i[2]),"(?:/(.*))?";const a=f===r.length-1;return c&&"/"+c.split(/\[(.+?)\]/).map((d,R)=>{if(R%2){const[,y,Z,G]=Ct.exec(d);return e.push(Z),t.push(G),y?"(.*?)":"([^/]+?)"}return a&&d.includes(".")&&(s=!1),d.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${s?"/?":""}$`),names:e,types:t}}function It(n,e,t,s){const l={};for(let c=0;c{const{pattern:i,names:a,types:d}=jt(l);return{id:l,exec:R=>{const y=i.exec(R);if(y)return It(y,a,d,t)},a:c.map(R=>n[R]),b:f.map(R=>n[R]),has_shadow:!!r}})}const Qe="sveltekit:scroll",W="sveltekit:index",ye=Tt(Ee,At,Ut),Dt=Ee[0](),Vt=Ee[1](),Ze={};let re={};try{re=JSON.parse(sessionStorage[Qe])}catch{}function ve(n){re[n]=ke()}function qt({target:n,session:e,base:t,trailing_slash:s}){var Ce;const l=new Map,c=[],f={url:Xe({}),page:Xe({}),navigating:ue(null),session:ue(e),updated:xt()},r={id:null,promise:null},i={before_navigate:[],after_navigate:[]};let a={branch:[],error:null,session_id:0,stuff:Ze,url:null},d=!1,R=!0,y=!1,Z=1,G=null,Re,Se,Le=!1;f.session.subscribe(async o=>{Se=o,Le&&(Z+=1,_e(new URL(location.href),[],!0))}),Le=!0;let X=!0,T=(Ce=history.state)==null?void 0:Ce[W];T||(T=Date.now(),history.replaceState(ne(P({},history.state),{[W]:T}),"",location.href));const de=re[T];de&&(history.scrollRestoration="manual",scrollTo(de.x,de.y));let pe=!1,he,Ue;async function Ae(o,{noscroll:p=!1,replaceState:w=!1,keepfocus:u=!1,state:h={}},b){const _=new URL(o,Me(document));if(X)return ge({url:_,scroll:p?ke():null,keepfocus:u,redirect_chain:b,details:{state:h,replaceState:w},accepted:()=>{},blocked:()=>{}});await ee(_)}async function Ne(o){const p=Pe(o);if(!p)throw new Error("Attempted to prefetch a URL that does not belong to this app");return r.promise=xe(p,!1),r.id=p.id,r.promise}async function _e(o,p,w,u){var g,$,S;const h=Pe(o),b=Ue={};let _=h&&await xe(h,w);if(!_&&o.origin===location.origin&&o.pathname===location.pathname&&(_=await Q({status:404,error:new Error(`Not found: ${o.pathname}`),url:o,routeId:null})),!_)return await ee(o),!1;if(Ue!==b)return!1;if(c.length=0,_.redirect)if(p.length>10||p.includes(o.pathname))_=await Q({status:500,error:new Error("Redirect loop"),url:o,routeId:null});else return X?Ae(new URL(_.redirect,o).href,{},[...p,o.pathname]):await ee(new URL(_.redirect,location.href)),!1;else(($=(g=_.props)==null?void 0:g.page)==null?void 0:$.status)>=400&&await f.updated.check()&&await ee(o);if(y=!0,u&&u.details){const{details:k}=u,E=k.replaceState?0:1;k.state[W]=T+=E,history[k.replaceState?"replaceState":"pushState"](k.state,"",o)}if(d?(a=_.state,Re.$set(_.props)):Oe(_),u){const{scroll:k,keepfocus:E}=u;if(!E){const m=document.body,A=m.getAttribute("tabindex");(S=getSelection())==null||S.removeAllRanges(),m.tabIndex=-1,m.focus(),A!==null?m.setAttribute("tabindex",A):m.removeAttribute("tabindex")}if(await qe(),R){const m=o.hash&&document.getElementById(o.hash.slice(1));k?scrollTo(k.x,k.y):m?m.scrollIntoView():scrollTo(0,0)}}else await qe();r.promise=null,r.id=null,R=!0,y=!1,_.props.page&&(he=_.props.page);const v=_.state.branch[_.state.branch.length-1];return X=(v==null?void 0:v.module.router)!==!1,!0}function Oe(o){a=o.state;const p=document.querySelector("style[data-sveltekit]");if(p&&p.remove(),he=o.props.page,Re=new Rt({target:n,props:ne(P({},o.props),{stores:f}),hydrate:!0}),d=!0,X){const w={from:null,to:new URL(location.href)};i.after_navigate.forEach(u=>u(w))}}async function me({url:o,params:p,stuff:w,branch:u,status:h,error:b,routeId:_}){var m,A;const v=u.filter(Boolean),g=v.find(U=>{var O;return(O=U.loaded)==null?void 0:O.redirect}),$={redirect:(m=g==null?void 0:g.loaded)==null?void 0:m.redirect,state:{url:o,params:p,branch:u,error:b,stuff:w,session_id:Z},props:{components:v.map(U=>U.module.default)}};for(let U=0;U{Object.defineProperty($.props.page,O,{get:()=>{throw new Error(`$page.${O} has been replaced by $page.url.${L}`)}})};U("origin","origin"),U("path","pathname"),U("query","searchParams")}const k=v[v.length-1],E=(A=k==null?void 0:k.loaded)==null?void 0:A.cache;if(E){const U=o.pathname+o.search;let O=!1;const L=()=>{l.get(U)===$&&l.delete(U),x(),clearTimeout(N)},N=setTimeout(L,E.maxage*1e3),x=f.session.subscribe(()=>{O&&L()});O=!0,l.set(U,$)}return $}async function H({status:o,error:p,module:w,url:u,params:h,stuff:b,props:_,routeId:v}){const g={module:w,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:b};function $(E){const{href:m}=new URL(E,u);g.uses.dependencies.add(m)}_&&g.uses.dependencies.add(u.href);const S={};for(const E in h)Object.defineProperty(S,E,{get(){return g.uses.params.add(E),h[E]},enumerable:!0});const k=Se;if(w.load){const E={routeId:v,params:S,props:_||{},get url(){return g.uses.url=!0,u},get session(){return g.uses.session=!0,k},get stuff(){return g.uses.stuff=!0,P({},b)},fetch(A,U){const O=typeof A=="string"?A:A.url;return $(O),d?fetch(A,U):Pt(A,U)},status:o!=null?o:null,error:p!=null?p:null},m=await w.load.call(null,E);if(!m)throw new Error("load function must return a value");g.loaded=Ye(m),g.loaded.stuff&&(g.stuff=g.loaded.stuff),g.loaded.dependencies&&g.loaded.dependencies.forEach($)}else _&&(g.loaded=Ye({props:_}));return g}async function xe({id:o,url:p,params:w,route:u},h){var A,U,O;if(r.id===o&&r.promise)return r.promise;if(!h){const L=l.get(o);if(L)return L}const{a:b,b:_,has_shadow:v}=u,g=a.url&&{url:o!==a.url.pathname+a.url.search,params:Object.keys(w).filter(L=>a.params[L]!==w[L]),session:Z!==a.session_id};let $=[],S=Ze,k=!1,E=200,m=null;b.forEach(L=>L());e:for(let L=0;LD.uses.params.has(Y))||g.session&&D.uses.session||Array.from(D.uses.dependencies).some(Y=>c.some(le=>le(Y)))||k&&D.uses.stuff){let Y={};const le=v&&L===b.length-1;if(le){const te=await fetch(`${p.pathname}${p.pathname.endsWith("/")?"":"/"}__data.json${p.search}`,{headers:{"x-sveltekit-load":"true"}});if(te.ok){const je=te.headers.get("x-sveltekit-location");if(je)return{redirect:je,props:{},state:a};Y=te.status===204?{}:await te.json()}else E=te.status,m=new Error("Failed to load data")}if(m||(N=await H({module:x,url:p,params:w,props:Y,stuff:S,routeId:u.id})),N&&(le&&(N.uses.url=!0),N.loaded)){if(N.loaded.error&&(E=N.loaded.status,m=N.loaded.error),N.loaded.redirect)return{redirect:N.loaded.redirect,props:{},state:a};N.loaded.stuff&&(k=!0)}}else N=D}catch(x){E=500,m=We(x)}if(m){for(;L--;)if(_[L]){let x,D,ce=L;for(;!(D=$[ce]);)ce-=1;try{if(x=await H({status:E,error:m,module:await _[L](),url:p,params:w,stuff:D.stuff,routeId:u.id}),(A=x==null?void 0:x.loaded)!=null&&A.error)continue;(U=x==null?void 0:x.loaded)!=null&&U.stuff&&(S=P(P({},S),x.loaded.stuff)),$=$.slice(0,ce+1).concat(x);break e}catch{continue}}return await Q({status:E,error:m,url:p,routeId:u.id})}else(O=N==null?void 0:N.loaded)!=null&&O.stuff&&(S=P(P({},S),N.loaded.stuff)),$.push(N)}return await me({url:p,params:w,stuff:S,branch:$,status:E,error:m,routeId:u.id})}async function Q({status:o,error:p,url:w,routeId:u}){var v,g;const h={},b=await H({module:await Dt,url:w,params:h,stuff:{},routeId:u}),_=await H({status:o,error:p,module:await Vt,url:w,params:h,stuff:b&&b.loaded&&b.loaded.stuff||{},routeId:u});return await me({url:w,params:h,stuff:P(P({},(v=b==null?void 0:b.loaded)==null?void 0:v.stuff),(g=_==null?void 0:_.loaded)==null?void 0:g.stuff),branch:[b,_],status:o,error:p,routeId:u})}function Pe(o){if(o.origin!==location.origin||!o.pathname.startsWith(t))return;const p=decodeURI(o.pathname.slice(t.length)||"/");for(const w of ye){const u=w.exec(p);if(u)return{id:o.pathname+o.search,route:w,params:u,url:o}}}async function ge({url:o,scroll:p,keepfocus:w,redirect_chain:u,details:h,accepted:b,blocked:_}){const v=a.url;let g=!1;const $={from:v,to:o,cancel:()=>g=!0};if(i.before_navigate.forEach(m=>m($)),g){_();return}const S=Nt(o.pathname,s),k=new URL(o.origin+S+o.search+o.hash);if(ve(T),b(),d&&f.navigating.set({from:a.url,to:k}),await _e(k,u,!1,{scroll:p,keepfocus:w,details:h})){const m={from:v,to:k};i.after_navigate.forEach(A=>A(m)),f.navigating.set(null)}}function ee(o){return location.href=o.href,new Promise(()=>{})}return{after_navigate:o=>{$e(()=>(i.after_navigate.push(o),()=>{const p=i.after_navigate.indexOf(o);i.after_navigate.splice(p,1)}))},before_navigate:o=>{$e(()=>(i.before_navigate.push(o),()=>{const p=i.before_navigate.indexOf(o);i.before_navigate.splice(p,1)}))},disable_scroll_handling:()=>{(y||!d)&&(R=!1)},goto:(o,p={})=>Ae(o,p,[]),invalidate:o=>{if(typeof o=="function")c.push(o);else{const{href:p}=new URL(o,location.href);c.push(w=>w===p)}return G||(G=Promise.resolve().then(async()=>{await _e(new URL(location.href),[],!0),G=null})),G},prefetch:async o=>{const p=new URL(o,Me(document));await Ne(p)},prefetch_routes:async o=>{const w=(o?ye.filter(u=>o.some(h=>u.exec(h))):ye).map(u=>Promise.all(u.a.map(h=>h())));await Promise.all(w)},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",u=>{let h=!1;const b={from:a.url,to:null,cancel:()=>h=!0};i.before_navigate.forEach(_=>_(b)),h?(u.preventDefault(),u.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){ve(T);try{sessionStorage[Qe]=JSON.stringify(re)}catch{}}});const o=u=>{const h=Fe(u);h&&h.href&&h.hasAttribute("sveltekit:prefetch")&&Ne(Ge(h))};let p;const w=u=>{clearTimeout(p),p=setTimeout(()=>{var h;(h=u.target)==null||h.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",o),addEventListener("mousemove",w),addEventListener("sveltekit:trigger_prefetch",o),addEventListener("click",u=>{if(!X||u.button||u.which!==1||u.metaKey||u.ctrlKey||u.shiftKey||u.altKey||u.defaultPrevented)return;const h=Fe(u);if(!h||!h.href)return;const b=h instanceof SVGAElement,_=Ge(h);if(!b&&_.origin==="null")return;const v=(h.getAttribute("rel")||"").split(/\s+/);if(h.hasAttribute("download")||v.includes("external")||h.hasAttribute("sveltekit:reload")||(b?h.target.baseVal:h.target))return;const[g,$]=_.href.split("#");if($!==void 0&&g===location.href.split("#")[0]){pe=!0,ve(T),f.page.set(ne(P({},he),{url:_})),f.page.notify();return}ge({url:_,scroll:h.hasAttribute("sveltekit:noscroll")?ke():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:_.href===location.href},accepted:()=>u.preventDefault(),blocked:()=>u.preventDefault()})}),addEventListener("popstate",u=>{if(u.state&&X){if(u.state[W]===T)return;ge({url:new URL(location.href),scroll:re[u.state[W]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{T=u.state[W]},blocked:()=>{const h=T-u.state[W];history.go(h)}})}}),addEventListener("hashchange",()=>{pe&&(pe=!1,history.replaceState(ne(P({},history.state),{[W]:++T}),"",location.href))})},_hydrate:async({status:o,error:p,nodes:w,params:u,routeId:h})=>{const b=new URL(location.href),_=[];let v={},g,$;try{for(let S=0;S \ No newline at end of file diff --git a/static/church.svg b/static/church.svg new file mode 100644 index 0000000000000000000000000000000000000000..87c9a8097195a9f2c6f8d42bcf86b8e415fa5000 --- /dev/null +++ b/static/church.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/country.svg b/static/country.svg new file mode 100644 index 0000000000000000000000000000000000000000..c723c6830b49c68b9418e59dbe507c41f111c254 --- /dev/null +++ b/static/country.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/hugging-face-headphones.png b/static/hugging-face-headphones.png new file mode 100644 index 0000000000000000000000000000000000000000..a7f38d392f2852170a3ae568a3892a30a0b62ab4 Binary files /dev/null and b/static/hugging-face-headphones.png differ diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000000000000000000000000000000000000..339a04a3f9be26b13f587dd29ac33486d7bf65c5 --- /dev/null +++ b/static/index.html @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + + + + + +
+ + +

Composer

+

Trained on fifteen thousand songs. One AI model. Infinite compositions.

+

This space contains a deep neural network model that can compose music. You can use it to generate audio in + different styles, 4 bars at a time. +

+

Developed by Ron Au and + Tristan Behrens. +

+

Have fun! And always feel free to send us some feedback and share your compositions!

+
Synthesizer +
+
+
Note density +
+
+
+
Temperature +
+
+
+ + +
+ + +
+ + diff --git a/static/piano.svg b/static/piano.svg new file mode 100644 index 0000000000000000000000000000000000000000..358c4e7152808e7dd3a4c3ff7d8393f18171ccb7 --- /dev/null +++ b/static/piano.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/play.svg b/static/play.svg new file mode 100644 index 0000000000000000000000000000000000000000..2c4c81e35381676659ee5ce4cc11350975bff3e1 --- /dev/null +++ b/static/play.svg @@ -0,0 +1,8 @@ + + + + + diff --git a/static/reggae.svg b/static/reggae.svg new file mode 100644 index 0000000000000000000000000000000000000000..984d32826b87d41dc31fdcda0f53016eb293031b --- /dev/null +++ b/static/reggae.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/rock_and_metal.svg b/static/rock_and_metal.svg new file mode 100644 index 0000000000000000000000000000000000000000..e720a0cbd1168821794ff078797e996a99ff5814 --- /dev/null +++ b/static/rock_and_metal.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000000000000000000000000000000000000..4aefe85b80176e410faf40ff4952f4a36ace9d15 --- /dev/null +++ b/static/style.css @@ -0,0 +1,34 @@ +html { + height: 100%; +} + +body { + padding: 1rem; + font-family: 'Lato', sans-serif; + background-color: hsl(0 0% 1%); + background: linear-gradient(hsl(0 0% 1%) 50%, hsl(0 0% 8%) 100%); + background-attachment: fixed; +} + +h1 { + font-family: 'Italiana', serif; + letter-spacing: 0.05ch; +} + + +body, h1 { + color: hsl(0 0% 97%); +} + +a, a:visited { + color: white; + text-decoration: none; + font-weight: 700; +} + + +@media (min-width: 600px) { + body { + padding: 2rem; + } +} diff --git a/static/synth.svg b/static/synth.svg new file mode 100644 index 0000000000000000000000000000000000000000..76bb68d272351fe96c951655dbf292acbcf0e2a2 --- /dev/null +++ b/static/synth.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/timpani_strings_harp.svg b/static/timpani_strings_harp.svg new file mode 100644 index 0000000000000000000000000000000000000000..9b55a1522ef2bc5c344d65994c376d8f0041dbe7 --- /dev/null +++ b/static/timpani_strings_harp.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/wand.svg b/static/wand.svg new file mode 100644 index 0000000000000000000000000000000000000000..03b42616ccee21b56cc6977917efadbf0ab5e99a --- /dev/null +++ b/static/wand.svg @@ -0,0 +1,14 @@ + + + + +