Spaces:
Runtime error
Runtime error
Ron Au
commited on
Commit
•
b450589
1
Parent(s):
3de2a7a
feat(ui): Configure SvelteKit
Browse files- app.py +12 -9
- source/ui/.eslintrc.cjs +56 -1
- source/ui/.prettierrc +9 -3
- source/ui/package.json +3 -3
- source/ui/pnpm-lock.yaml +4 -49
- source/ui/svelte.config.js +17 -7
- source/ui/tsconfig.json +9 -1
- templates/_app/chunks/index-60624bc8.js +1 -0
- templates/_app/error.svelte-5990926f.js +1 -0
- templates/_app/layout.svelte-e3a1ab0e.js +1 -0
- templates/_app/manifest.json +45 -0
- templates/_app/pages/index.svelte-47304b27.js +1 -0
- templates/_app/start-b41bef43.js +1 -0
- templates/_app/version.json +1 -0
- templates/favicon.png +0 -0
- templates/index.html +43 -0
app.py
CHANGED
@@ -18,7 +18,7 @@ from flask import Flask, render_template, request, send_file, jsonify, redirect,
|
|
18 |
from PIL import Image
|
19 |
import os
|
20 |
import io
|
21 |
-
import random
|
22 |
import base64
|
23 |
import torch
|
24 |
import wave
|
@@ -47,12 +47,13 @@ logger.info("Done.")
|
|
47 |
@app.route("/")
|
48 |
def index():
|
49 |
return render_template(
|
50 |
-
"
|
51 |
-
compose_styles
|
52 |
densities=constants.get_densities_for_ui(),
|
53 |
temperatures=constants.get_temperatures_for_ui(),
|
54 |
)
|
55 |
|
|
|
56 |
@app.route("/compose", methods=["POST"])
|
57 |
def compose():
|
58 |
|
@@ -98,10 +99,10 @@ def compose():
|
|
98 |
logger.debug(f"Saving image to harddrive... {type(image)}")
|
99 |
image_file_name = "compose.png"
|
100 |
image.save(image_file_name, "PNG")
|
101 |
-
|
102 |
# Save image to virtual file.
|
103 |
img_io = io.BytesIO()
|
104 |
-
image.save(img_io,
|
105 |
img_io.seek(0)
|
106 |
|
107 |
# Return the image as a base64-encoded string.
|
@@ -111,18 +112,19 @@ def compose():
|
|
111 |
# Return.
|
112 |
return jsonify({
|
113 |
"tokens": generated_sequence,
|
114 |
-
"audio": "data:audio/wav;base64," + audio_data_base64,
|
115 |
"image": "data:image/png;base64," + image_data_base64,
|
116 |
"status": "OK"
|
117 |
})
|
118 |
|
|
|
119 |
def generate_sequence(instruments, density, temperature):
|
120 |
|
121 |
instruments = instruments[::]
|
122 |
random.shuffle(instruments)
|
123 |
|
124 |
generated_ids = tokenizer.encode("PIECE_START", return_tensors="pt")[0]
|
125 |
-
|
126 |
for instrument in instruments:
|
127 |
more_ids = tokenizer.encode(f"TRACK_START INST={instrument} DENSITY={density}", return_tensors="pt")[0]
|
128 |
generated_ids = torch.cat((generated_ids, more_ids))
|
@@ -133,11 +135,12 @@ def generate_sequence(instruments, density, temperature):
|
|
133 |
max_length=2048,
|
134 |
do_sample=True,
|
135 |
temperature=temperature,
|
136 |
-
eos_token_id=tokenizer.encode("TRACK_END")[0]
|
137 |
)[0]
|
138 |
|
139 |
generated_sequence = tokenizer.decode(generated_ids)
|
140 |
return generated_sequence
|
141 |
|
|
|
142 |
if __name__ == "__main__":
|
143 |
-
app.run(host="0.0.0.0", port=7860)
|
|
|
18 |
from PIL import Image
|
19 |
import os
|
20 |
import io
|
21 |
+
import random
|
22 |
import base64
|
23 |
import torch
|
24 |
import wave
|
|
|
47 |
@app.route("/")
|
48 |
def index():
|
49 |
return render_template(
|
50 |
+
"index.html",
|
51 |
+
compose_styles=constants.get_compose_styles_for_ui(),
|
52 |
densities=constants.get_densities_for_ui(),
|
53 |
temperatures=constants.get_temperatures_for_ui(),
|
54 |
)
|
55 |
|
56 |
+
|
57 |
@app.route("/compose", methods=["POST"])
|
58 |
def compose():
|
59 |
|
|
|
99 |
logger.debug(f"Saving image to harddrive... {type(image)}")
|
100 |
image_file_name = "compose.png"
|
101 |
image.save(image_file_name, "PNG")
|
102 |
+
|
103 |
# Save image to virtual file.
|
104 |
img_io = io.BytesIO()
|
105 |
+
image.save(img_io, "PNG", quality=70)
|
106 |
img_io.seek(0)
|
107 |
|
108 |
# Return the image as a base64-encoded string.
|
|
|
112 |
# Return.
|
113 |
return jsonify({
|
114 |
"tokens": generated_sequence,
|
115 |
+
"audio": "data:audio/wav;base64," + audio_data_base64,
|
116 |
"image": "data:image/png;base64," + image_data_base64,
|
117 |
"status": "OK"
|
118 |
})
|
119 |
|
120 |
+
|
121 |
def generate_sequence(instruments, density, temperature):
|
122 |
|
123 |
instruments = instruments[::]
|
124 |
random.shuffle(instruments)
|
125 |
|
126 |
generated_ids = tokenizer.encode("PIECE_START", return_tensors="pt")[0]
|
127 |
+
|
128 |
for instrument in instruments:
|
129 |
more_ids = tokenizer.encode(f"TRACK_START INST={instrument} DENSITY={density}", return_tensors="pt")[0]
|
130 |
generated_ids = torch.cat((generated_ids, more_ids))
|
|
|
135 |
max_length=2048,
|
136 |
do_sample=True,
|
137 |
temperature=temperature,
|
138 |
+
eos_token_id=tokenizer.encode("TRACK_END")[0]
|
139 |
)[0]
|
140 |
|
141 |
generated_sequence = tokenizer.decode(generated_ids)
|
142 |
return generated_sequence
|
143 |
|
144 |
+
|
145 |
if __name__ == "__main__":
|
146 |
+
app.run(host="0.0.0.0", port=7860)
|
source/ui/.eslintrc.cjs
CHANGED
@@ -10,11 +10,66 @@ module.exports = {
|
|
10 |
},
|
11 |
parserOptions: {
|
12 |
sourceType: 'module',
|
13 |
-
ecmaVersion: 2020
|
|
|
|
|
|
|
14 |
},
|
15 |
env: {
|
16 |
browser: true,
|
17 |
es2017: true,
|
18 |
node: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
};
|
|
|
10 |
},
|
11 |
parserOptions: {
|
12 |
sourceType: 'module',
|
13 |
+
ecmaVersion: 2020,
|
14 |
+
ecmaFeatures: {
|
15 |
+
impliedStrict: true
|
16 |
+
}
|
17 |
},
|
18 |
env: {
|
19 |
browser: true,
|
20 |
es2017: true,
|
21 |
node: true
|
22 |
+
},
|
23 |
+
rules: {
|
24 |
+
// Best Practices
|
25 |
+
'class-methods-use-this': 'warn',
|
26 |
+
'no-lone-blocks': 'error',
|
27 |
+
'no-self-compare': 'error',
|
28 |
+
'no-sequences': 'error',
|
29 |
+
'no-useless-concat': 'error',
|
30 |
+
'vars-on-top': 'error',
|
31 |
+
yoda: 'error',
|
32 |
+
|
33 |
+
// Variables
|
34 |
+
'no-use-before-define': 'error',
|
35 |
+
|
36 |
+
// Stylistic Issues
|
37 |
+
'comma-dangle': ['warn', 'only-multiline'],
|
38 |
+
'eol-last': 'warn',
|
39 |
+
'function-paren-newline': 'warn',
|
40 |
+
'implicit-arrow-linebreak': 'error',
|
41 |
+
'key-spacing': 'warn',
|
42 |
+
'keyword-spacing': 'warn',
|
43 |
+
'max-depth': ['warn', { max: 6 }],
|
44 |
+
'max-nested-callbacks': ['warn', { max: 4 }],
|
45 |
+
'max-params': ['warn', { max: 5 }],
|
46 |
+
'max-statements-per-line': 'error',
|
47 |
+
'new-cap': [
|
48 |
+
'warn',
|
49 |
+
{
|
50 |
+
newIsCap: true,
|
51 |
+
capIsNew: false,
|
52 |
+
properties: false
|
53 |
+
}
|
54 |
+
],
|
55 |
+
'no-mixed-operators': 'warn',
|
56 |
+
'no-multi-assign': 'warn',
|
57 |
+
'no-multiple-empty-lines': 'warn',
|
58 |
+
'no-nested-ternary': 'warn',
|
59 |
+
'no-trailing-spaces': 'warn',
|
60 |
+
'no-whitespace-before-property': 'error',
|
61 |
+
'one-var-declaration-per-line': 'warn',
|
62 |
+
'quote-props': ['error', 'consistent-as-needed'],
|
63 |
+
semi: ['warn', 'always'],
|
64 |
+
'semi-spacing': 'error',
|
65 |
+
'semi-style': 'error',
|
66 |
+
'space-before-function-paren': 'off',
|
67 |
+
'switch-colon-spacing': 'error',
|
68 |
+
|
69 |
+
// ECMAScript 6
|
70 |
+
'arrow-spacing': 'warn',
|
71 |
+
'no-useless-computed-key': 'warn',
|
72 |
+
'no-useless-constructor': 'error',
|
73 |
+
'prefer-const': 'warn'
|
74 |
}
|
75 |
};
|
source/ui/.prettierrc
CHANGED
@@ -1,6 +1,12 @@
|
|
1 |
{
|
2 |
-
"
|
|
|
|
|
|
|
|
|
3 |
"singleQuote": true,
|
4 |
-
"
|
5 |
-
"
|
|
|
|
|
6 |
}
|
|
|
1 |
{
|
2 |
+
"arrowParens": "always",
|
3 |
+
"bracketSpacing": true,
|
4 |
+
"printWidth": 120,
|
5 |
+
"quoteProps": "consistent",
|
6 |
+
"semi": true,
|
7 |
"singleQuote": true,
|
8 |
+
"svelteIndentScriptAndStyle": false,
|
9 |
+
"useTabs": false,
|
10 |
+
"tabWidth": 2,
|
11 |
+
"trailingComma": "es5"
|
12 |
}
|
source/ui/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"name": "ui",
|
3 |
"version": "0.0.1",
|
4 |
"scripts": {
|
5 |
"dev": "svelte-kit dev",
|
@@ -13,7 +13,7 @@
|
|
13 |
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ."
|
14 |
},
|
15 |
"devDependencies": {
|
16 |
-
"@sveltejs/adapter-
|
17 |
"@sveltejs/kit": "next",
|
18 |
"@typescript-eslint/eslint-plugin": "^5.10.1",
|
19 |
"@typescript-eslint/parser": "^5.10.1",
|
@@ -29,4 +29,4 @@
|
|
29 |
"typescript": "~4.6.2"
|
30 |
},
|
31 |
"type": "module"
|
32 |
-
}
|
|
|
1 |
{
|
2 |
+
"name": "composer-ui",
|
3 |
"version": "0.0.1",
|
4 |
"scripts": {
|
5 |
"dev": "svelte-kit dev",
|
|
|
13 |
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ."
|
14 |
},
|
15 |
"devDependencies": {
|
16 |
+
"@sveltejs/adapter-static": "^1.0.0-next.29",
|
17 |
"@sveltejs/kit": "next",
|
18 |
"@typescript-eslint/eslint-plugin": "^5.10.1",
|
19 |
"@typescript-eslint/parser": "^5.10.1",
|
|
|
29 |
"typescript": "~4.6.2"
|
30 |
},
|
31 |
"type": "module"
|
32 |
+
}
|
source/ui/pnpm-lock.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
lockfileVersion: 5.3
|
2 |
|
3 |
specifiers:
|
4 |
-
'@sveltejs/adapter-
|
5 |
'@sveltejs/kit': next
|
6 |
'@typescript-eslint/eslint-plugin': ^5.10.1
|
7 |
'@typescript-eslint/parser': ^5.10.1
|
@@ -17,7 +17,7 @@ specifiers:
|
|
17 |
typescript: ~4.6.2
|
18 |
|
19 |
devDependencies:
|
20 |
-
'@sveltejs/adapter-
|
21 |
'@sveltejs/kit': 1.0.0-next.323_svelte@3.47.0
|
22 |
'@typescript-eslint/eslint-plugin': 5.21.0_bb9518338a760ece3e1b033a5f6af62e
|
23 |
'@typescript-eslint/parser': 5.21.0_eslint@7.32.0+typescript@4.6.3
|
@@ -86,10 +86,6 @@ packages:
|
|
86 |
resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==}
|
87 |
dev: true
|
88 |
|
89 |
-
/@iarna/toml/2.2.5:
|
90 |
-
resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==}
|
91 |
-
dev: true
|
92 |
-
|
93 |
/@nodelib/fs.scandir/2.1.5:
|
94 |
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
|
95 |
engines: {node: '>= 8'}
|
@@ -119,35 +115,12 @@ packages:
|
|
119 |
picomatch: 2.3.1
|
120 |
dev: true
|
121 |
|
122 |
-
/@sveltejs/adapter-
|
123 |
-
resolution: {integrity: sha512-
|
124 |
-
dependencies:
|
125 |
-
'@sveltejs/adapter-cloudflare': 1.0.0-next.19
|
126 |
-
'@sveltejs/adapter-netlify': 1.0.0-next.56
|
127 |
-
'@sveltejs/adapter-vercel': 1.0.0-next.50
|
128 |
-
dev: true
|
129 |
-
|
130 |
-
/@sveltejs/adapter-cloudflare/1.0.0-next.19:
|
131 |
-
resolution: {integrity: sha512-LET3DUYpl+deoKhkWCzhHUT7iipYkgVkOcRIJX7qT4m23A+MAbzcAC3npgwEYSe9RokOSWMVBr3tVujeES5EeA==}
|
132 |
-
dependencies:
|
133 |
-
esbuild: 0.14.38
|
134 |
-
worktop: 0.8.0-next.13
|
135 |
-
dev: true
|
136 |
-
|
137 |
-
/@sveltejs/adapter-netlify/1.0.0-next.56:
|
138 |
-
resolution: {integrity: sha512-fM3aBHsr7syCGfIJcuB1mEoZwynqyOxVijvmyrd9OWHi6MP3bXSP+GhKDMtDpQRwejJJiwuZNTx2PUbV3uirvA==}
|
139 |
dependencies:
|
140 |
-
'@iarna/toml': 2.2.5
|
141 |
-
esbuild: 0.14.38
|
142 |
tiny-glob: 0.2.9
|
143 |
dev: true
|
144 |
|
145 |
-
/@sveltejs/adapter-vercel/1.0.0-next.50:
|
146 |
-
resolution: {integrity: sha512-yta0AkuWEr7qrm8LB34F4ZdCtMxj+cHD4huwrRYCgjv+PSJHLPwe7aH53+Mhrv6La0TgeyQ/f2lTyhBMXZXn9Q==}
|
147 |
-
dependencies:
|
148 |
-
esbuild: 0.14.38
|
149 |
-
dev: true
|
150 |
-
|
151 |
/@sveltejs/kit/1.0.0-next.323_svelte@3.47.0:
|
152 |
resolution: {integrity: sha512-5JVBfXZqVcWhsvtxdwtFPEzLNM8FmttNNyN0h5P25KLryF3BeOg5OicRK3t7qNBmWTTNovDgChb/gWmne5Oicg==}
|
153 |
engines: {node: '>=14.13'}
|
@@ -1256,11 +1229,6 @@ packages:
|
|
1256 |
engines: {node: '>=4'}
|
1257 |
dev: true
|
1258 |
|
1259 |
-
/mrmime/1.0.0:
|
1260 |
-
resolution: {integrity: sha512-a70zx7zFfVO7XpnQ2IX1Myh9yY4UYvfld/dikWRnsXxbyvMcfz+u6UfgNAtH+k2QqtJuzVpv6eLTx1G2+WKZbQ==}
|
1261 |
-
engines: {node: '>=10'}
|
1262 |
-
dev: true
|
1263 |
-
|
1264 |
/ms/2.1.2:
|
1265 |
resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
|
1266 |
dev: true
|
@@ -1384,11 +1352,6 @@ packages:
|
|
1384 |
picomatch: 2.3.1
|
1385 |
dev: true
|
1386 |
|
1387 |
-
/regexparam/2.0.0:
|
1388 |
-
resolution: {integrity: sha512-gJKwd2MVPWHAIFLsaYDZfyKzHNS4o7E/v8YmNf44vmeV2e4YfVoDToTOKTvE7ab68cRJ++kLuEXJBaEeJVt5ow==}
|
1389 |
-
engines: {node: '>=8'}
|
1390 |
-
dev: true
|
1391 |
-
|
1392 |
/regexpp/3.2.0:
|
1393 |
resolution: {integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==}
|
1394 |
engines: {node: '>=8'}
|
@@ -1776,14 +1739,6 @@ packages:
|
|
1776 |
engines: {node: '>=0.10.0'}
|
1777 |
dev: true
|
1778 |
|
1779 |
-
/worktop/0.8.0-next.13:
|
1780 |
-
resolution: {integrity: sha512-aLPWSneFtPJr3RAf841orF9GNlVdVkQd2Wj/BbcGHp3whBZoXx6dcwwClA9fezm7muNan4SuT+ZTyMWdoJSCAg==}
|
1781 |
-
engines: {node: '>=12'}
|
1782 |
-
dependencies:
|
1783 |
-
mrmime: 1.0.0
|
1784 |
-
regexparam: 2.0.0
|
1785 |
-
dev: true
|
1786 |
-
|
1787 |
/wrappy/1.0.2:
|
1788 |
resolution: {integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=}
|
1789 |
dev: true
|
|
|
1 |
lockfileVersion: 5.3
|
2 |
|
3 |
specifiers:
|
4 |
+
'@sveltejs/adapter-static': ^1.0.0-next.29
|
5 |
'@sveltejs/kit': next
|
6 |
'@typescript-eslint/eslint-plugin': ^5.10.1
|
7 |
'@typescript-eslint/parser': ^5.10.1
|
|
|
17 |
typescript: ~4.6.2
|
18 |
|
19 |
devDependencies:
|
20 |
+
'@sveltejs/adapter-static': 1.0.0-next.29
|
21 |
'@sveltejs/kit': 1.0.0-next.323_svelte@3.47.0
|
22 |
'@typescript-eslint/eslint-plugin': 5.21.0_bb9518338a760ece3e1b033a5f6af62e
|
23 |
'@typescript-eslint/parser': 5.21.0_eslint@7.32.0+typescript@4.6.3
|
|
|
86 |
resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==}
|
87 |
dev: true
|
88 |
|
|
|
|
|
|
|
|
|
89 |
/@nodelib/fs.scandir/2.1.5:
|
90 |
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
|
91 |
engines: {node: '>= 8'}
|
|
|
115 |
picomatch: 2.3.1
|
116 |
dev: true
|
117 |
|
118 |
+
/@sveltejs/adapter-static/1.0.0-next.29:
|
119 |
+
resolution: {integrity: sha512-0hjGnfT3BRyoHnzJ2w0/xL+xICRpKneDTm45ZzggiRrc0r71WJfF6toGeg8N4QUQnj8EJ3Itm453gsS1kt7VUQ==}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
dependencies:
|
|
|
|
|
121 |
tiny-glob: 0.2.9
|
122 |
dev: true
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
/@sveltejs/kit/1.0.0-next.323_svelte@3.47.0:
|
125 |
resolution: {integrity: sha512-5JVBfXZqVcWhsvtxdwtFPEzLNM8FmttNNyN0h5P25KLryF3BeOg5OicRK3t7qNBmWTTNovDgChb/gWmne5Oicg==}
|
126 |
engines: {node: '>=14.13'}
|
|
|
1229 |
engines: {node: '>=4'}
|
1230 |
dev: true
|
1231 |
|
|
|
|
|
|
|
|
|
|
|
1232 |
/ms/2.1.2:
|
1233 |
resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
|
1234 |
dev: true
|
|
|
1352 |
picomatch: 2.3.1
|
1353 |
dev: true
|
1354 |
|
|
|
|
|
|
|
|
|
|
|
1355 |
/regexpp/3.2.0:
|
1356 |
resolution: {integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==}
|
1357 |
engines: {node: '>=8'}
|
|
|
1739 |
engines: {node: '>=0.10.0'}
|
1740 |
dev: true
|
1741 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1742 |
/wrappy/1.0.2:
|
1743 |
resolution: {integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=}
|
1744 |
dev: true
|
source/ui/svelte.config.js
CHANGED
@@ -1,15 +1,25 @@
|
|
1 |
-
import adapter from '@sveltejs/adapter-
|
2 |
import preprocess from 'svelte-preprocess';
|
3 |
|
4 |
/** @type {import('@sveltejs/kit').Config} */
|
5 |
const config = {
|
6 |
-
|
7 |
-
// for more information about preprocessors
|
8 |
-
preprocess: preprocess(),
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
};
|
14 |
|
15 |
export default config;
|
|
|
1 |
+
import adapter from '@sveltejs/adapter-static';
|
2 |
import preprocess from 'svelte-preprocess';
|
3 |
|
4 |
/** @type {import('@sveltejs/kit').Config} */
|
5 |
const config = {
|
6 |
+
preprocess: preprocess(),
|
|
|
|
|
7 |
|
8 |
+
kit: {
|
9 |
+
adapter: adapter({
|
10 |
+
pages: '../../templates',
|
11 |
+
}),
|
12 |
+
prerender: {
|
13 |
+
default: true,
|
14 |
+
},
|
15 |
+
vite: {
|
16 |
+
server: {
|
17 |
+
watch: {
|
18 |
+
usePolling: true,
|
19 |
+
},
|
20 |
+
},
|
21 |
+
},
|
22 |
+
},
|
23 |
};
|
24 |
|
25 |
export default config;
|
source/ui/tsconfig.json
CHANGED
@@ -5,13 +5,21 @@
|
|
5 |
"checkJs": true,
|
6 |
"esModuleInterop": true,
|
7 |
"forceConsistentCasingInFileNames": true,
|
|
|
|
|
|
|
8 |
"lib": ["es2020", "DOM"],
|
9 |
"moduleResolution": "node",
|
10 |
"module": "es2020",
|
|
|
|
|
|
|
|
|
11 |
"resolveJsonModule": true,
|
12 |
"skipLibCheck": true,
|
13 |
"sourceMap": true,
|
14 |
"strict": true,
|
15 |
"target": "es2020"
|
16 |
-
}
|
|
|
17 |
}
|
|
|
5 |
"checkJs": true,
|
6 |
"esModuleInterop": true,
|
7 |
"forceConsistentCasingInFileNames": true,
|
8 |
+
"importHelpers": true,
|
9 |
+
"importsNotUsedAsValues": "error",
|
10 |
+
"isolatedModules": true,
|
11 |
"lib": ["es2020", "DOM"],
|
12 |
"moduleResolution": "node",
|
13 |
"module": "es2020",
|
14 |
+
"paths": {
|
15 |
+
"$lib": ["src/lib"],
|
16 |
+
"$lib/*": ["src/lib/*"]
|
17 |
+
},
|
18 |
"resolveJsonModule": true,
|
19 |
"skipLibCheck": true,
|
20 |
"sourceMap": true,
|
21 |
"strict": true,
|
22 |
"target": "es2020"
|
23 |
+
},
|
24 |
+
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.svelte"],
|
25 |
}
|
templates/_app/chunks/index-60624bc8.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
function B(){}function F(t,n){for(const e in n)t[e]=n[e];return t}function T(t){return t()}function v(){return Object.create(null)}function p(t){t.forEach(T)}function H(t){return typeof t=="function"}function rt(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function I(t){return Object.keys(t).length===0}function ct(t,n,e,r){if(t){const c=O(t,n,e,r);return t[0](c)}}function O(t,n,e,r){return t[1]&&r?F(e.ctx.slice(),t[1](r(n))):e.ctx}function lt(t,n,e,r){if(t[2]&&r){const c=t[2](r(e));if(n.dirty===void 0)return c;if(typeof c=="object"){const f=[],l=Math.max(n.dirty.length,c.length);for(let o=0;o<l;o+=1)f[o]=n.dirty[o]|c[o];return f}return n.dirty|c}return n.dirty}function ot(t,n,e,r,c,f){if(c){const l=O(n,e,r,f);t.p(l,c)}}function ut(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let r=0;r<e;r++)n[r]=-1;return n}return-1}let $=!1;function G(){$=!0}function J(){$=!1}function L(t,n,e,r){for(;t<n;){const c=t+(n-t>>1);e(c)<=r?t=c+1:n=c}return t}function W(t){if(t.hydrate_init)return;t.hydrate_init=!0;let n=t.childNodes;if(t.nodeName==="HEAD"){const i=[];for(let u=0;u<n.length;u++){const s=n[u];s.claim_order!==void 0&&i.push(s)}n=i}const e=new Int32Array(n.length+1),r=new Int32Array(n.length);e[0]=-1;let c=0;for(let i=0;i<n.length;i++){const u=n[i].claim_order,s=(c>0&&n[e[c]].claim_order<=u?c+1:L(1,c,y=>n[e[y]].claim_order,u))-1;r[i]=e[s]+1;const a=s+1;e[a]=i,c=Math.max(a,c)}const f=[],l=[];let o=n.length-1;for(let i=e[c]+1;i!=0;i=r[i-1]){for(f.push(n[i-1]);o>=i;o--)l.push(n[o]);o--}for(;o>=0;o--)l.push(n[o]);f.reverse(),l.sort((i,u)=>i.claim_order-u.claim_order);for(let i=0,u=0;i<l.length;i++){for(;u<f.length&&l[i].claim_order>=f[u].claim_order;)u++;const s=u<f.length?f[u]:null;t.insertBefore(l[i],s)}}function K(t,n){if($){for(W(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;n!==t.actual_end_child?(n.claim_order!==void 0||n.parentNode!==t)&&t.insertBefore(n,t.actual_end_child):t.actual_end_child=n.nextSibling}else(n.parentNode!==t||n.nextSibling!==null)&&t.appendChild(n)}function ft(t,n,e){$&&!e?K(t,n):(n.parentNode!==t||n.nextSibling!=e)&&t.insertBefore(n,e||null)}function Q(t){t.parentNode.removeChild(t)}function R(t){return document.createElement(t)}function j(t){return document.createTextNode(t)}function at(){return j(" ")}function st(){return j("")}function dt(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function U(t){return Array.from(t.childNodes)}function V(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function P(t,n,e,r,c=!1){V(t);const f=(()=>{for(let l=t.claim_info.last_index;l<t.length;l++){const o=t[l];if(n(o)){const i=e(o);return i===void 0?t.splice(l,1):t[l]=i,c||(t.claim_info.last_index=l),o}}for(let l=t.claim_info.last_index-1;l>=0;l--){const o=t[l];if(n(o)){const i=e(o);return i===void 0?t.splice(l,1):t[l]=i,c?i===void 0&&t.claim_info.last_index--:t.claim_info.last_index=l,o}}return r()})();return f.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,f}function X(t,n,e,r){return P(t,c=>c.nodeName===n,c=>{const f=[];for(let l=0;l<c.attributes.length;l++){const o=c.attributes[l];e[o.name]||f.push(o.name)}f.forEach(l=>c.removeAttribute(l))},()=>r(n))}function _t(t,n,e){return X(t,n,e,R)}function Y(t,n){return P(t,e=>e.nodeType===3,e=>{const r=""+n;if(e.data.startsWith(r)){if(e.data.length!==r.length)return e.splitText(r.length)}else e.data=r},()=>j(n),!0)}function ht(t){return Y(t," ")}function mt(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}function pt(t,n,e,r){e===null?t.style.removeProperty(n):t.style.setProperty(n,e,r?"important":"")}let m;function h(t){m=t}function A(){if(!m)throw new Error("Function called outside component initialization");return m}function yt(t){A().$$.on_mount.push(t)}function gt(t){A().$$.after_update.push(t)}function xt(t,n){A().$$.context.set(t,n)}const _=[],C=[],x=[],M=[],q=Promise.resolve();let k=!1;function z(){k||(k=!0,q.then(D))}function bt(){return z(),q}function E(t){x.push(t)}const w=new Set;let g=0;function D(){const t=m;do{for(;g<_.length;){const n=_[g];g++,h(n),Z(n.$$)}for(h(null),_.length=0,g=0;C.length;)C.pop()();for(let n=0;n<x.length;n+=1){const e=x[n];w.has(e)||(w.add(e),e())}x.length=0}while(_.length);for(;M.length;)M.pop()();k=!1,w.clear(),h(t)}function Z(t){if(t.fragment!==null){t.update(),p(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(E)}}const b=new Set;let d;function $t(){d={r:0,c:[],p:d}}function wt(){d.r||p(d.c),d=d.p}function tt(t,n){t&&t.i&&(b.delete(t),t.i(n))}function kt(t,n,e,r){if(t&&t.o){if(b.has(t))return;b.add(t),d.c.push(()=>{b.delete(t),r&&(e&&t.d(1),r())}),t.o(n)}}function Et(t,n){const e={},r={},c={$$scope:1};let f=t.length;for(;f--;){const l=t[f],o=n[f];if(o){for(const i in l)i in o||(r[i]=1);for(const i in o)c[i]||(e[i]=o[i],c[i]=1);t[f]=o}else for(const i in l)c[i]=1}for(const l in r)l in e||(e[l]=void 0);return e}function jt(t){return typeof t=="object"&&t!==null?t:{}}function At(t){t&&t.c()}function Nt(t,n){t&&t.l(n)}function nt(t,n,e,r){const{fragment:c,on_mount:f,on_destroy:l,after_update:o}=t.$$;c&&c.m(n,e),r||E(()=>{const i=f.map(T).filter(H);l?l.push(...i):p(i),t.$$.on_mount=[]}),o.forEach(E)}function et(t,n){const e=t.$$;e.fragment!==null&&(p(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function it(t,n){t.$$.dirty[0]===-1&&(_.push(t),z(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function St(t,n,e,r,c,f,l,o=[-1]){const i=m;h(t);const u=t.$$={fragment:null,ctx:null,props:f,update:B,not_equal:c,bound:v(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(i?i.$$.context:[])),callbacks:v(),dirty:o,skip_bound:!1,root:n.target||i.$$.root};l&&l(u.root);let s=!1;if(u.ctx=e?e(t,n.props||{},(a,y,...N)=>{const S=N.length?N[0]:y;return u.ctx&&c(u.ctx[a],u.ctx[a]=S)&&(!u.skip_bound&&u.bound[a]&&u.bound[a](S),s&&it(t,a)),y}):[],u.update(),s=!0,p(u.before_update),u.fragment=r?r(u.ctx):!1,n.target){if(n.hydrate){G();const a=U(n.target);u.fragment&&u.fragment.l(a),a.forEach(Q)}else u.fragment&&u.fragment.c();n.intro&&tt(t.$$.fragment),nt(t,n.target,n.anchor,n.customElement),J(),D()}h(i)}class vt{$destroy(){et(this,1),this.$destroy=B}$on(n,e){const r=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return r.push(e),()=>{const c=r.indexOf(e);c!==-1&&r.splice(c,1)}}$set(n){this.$$set&&!I(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}export{Et as A,jt as B,et as C,F as D,bt as E,ct as F,ot as G,ut as H,lt as I,K as J,vt as S,U as a,dt as b,_t as c,Q as d,R as e,pt as f,ft as g,Y as h,St as i,mt as j,at as k,st as l,ht as m,B as n,$t as o,kt as p,wt as q,tt as r,rt as s,j as t,xt as u,gt as v,yt as w,At as x,Nt as y,nt as z};
|
templates/_app/error.svelte-5990926f.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
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 n,J as R,j as N,k as S,l as C,m as j,n as H}from"./chunks/index-60624bc8.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){n(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){n(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,u,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(),u=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),u=j(e),_&&_.l(e),p=C()},m(e,m){n(e,l,m),R(l,t),n(e,a,m),n(e,f,m),R(f,c),n(e,k,m),i&&i.m(e,m),n(e,u,m),_&&_.m(e,m),n(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(u.parentNode,u)):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(u),_&&_.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};
|
templates/_app/layout.svelte-e3a1ab0e.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{S as o,i,s as r,F as u,G as f,H as _,I as c,r as p,p as d}from"./chunks/index-60624bc8.js";function m(n){let s;const l=n[1].default,e=u(l,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,l,t,t[0],s?c(l,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,l){let{$$slots:e={},$$scope:t}=s;return n.$$set=a=>{"$$scope"in a&&l(0,t=a.$$scope)},[t,e]}class h extends o{constructor(s){super(),i(this,s,$,m,r,{})}}export{h as default};
|
templates/_app/manifest.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
".svelte-kit/runtime/client/start.js": {
|
3 |
+
"file": "start-b41bef43.js",
|
4 |
+
"src": ".svelte-kit/runtime/client/start.js",
|
5 |
+
"isEntry": true,
|
6 |
+
"imports": [
|
7 |
+
"_index-60624bc8.js"
|
8 |
+
],
|
9 |
+
"dynamicImports": [
|
10 |
+
".svelte-kit/runtime/components/layout.svelte",
|
11 |
+
".svelte-kit/runtime/components/error.svelte",
|
12 |
+
"src/routes/index.svelte"
|
13 |
+
]
|
14 |
+
},
|
15 |
+
".svelte-kit/runtime/components/layout.svelte": {
|
16 |
+
"file": "layout.svelte-e3a1ab0e.js",
|
17 |
+
"src": ".svelte-kit/runtime/components/layout.svelte",
|
18 |
+
"isEntry": true,
|
19 |
+
"isDynamicEntry": true,
|
20 |
+
"imports": [
|
21 |
+
"_index-60624bc8.js"
|
22 |
+
]
|
23 |
+
},
|
24 |
+
".svelte-kit/runtime/components/error.svelte": {
|
25 |
+
"file": "error.svelte-5990926f.js",
|
26 |
+
"src": ".svelte-kit/runtime/components/error.svelte",
|
27 |
+
"isEntry": true,
|
28 |
+
"isDynamicEntry": true,
|
29 |
+
"imports": [
|
30 |
+
"_index-60624bc8.js"
|
31 |
+
]
|
32 |
+
},
|
33 |
+
"src/routes/index.svelte": {
|
34 |
+
"file": "pages/index.svelte-47304b27.js",
|
35 |
+
"src": "src/routes/index.svelte",
|
36 |
+
"isEntry": true,
|
37 |
+
"isDynamicEntry": true,
|
38 |
+
"imports": [
|
39 |
+
"_index-60624bc8.js"
|
40 |
+
]
|
41 |
+
},
|
42 |
+
"_index-60624bc8.js": {
|
43 |
+
"file": "chunks/index-60624bc8.js"
|
44 |
+
}
|
45 |
+
}
|
templates/_app/pages/index.svelte-47304b27.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{S as y,i as K,s as V,e as v,t as c,k as W,c as u,a as _,h,d as l,m as b,b as q,g as x,J as o,n as k}from"../chunks/index-60624bc8.js";function A(E){let e,d,r,a,m,s,p,f;return{c(){e=v("h1"),d=c("Welcome to SvelteKit"),r=W(),a=v("p"),m=c("Visit "),s=v("a"),p=c("kit.svelte.dev"),f=c(" to read the documentation"),this.h()},l(t){e=u(t,"H1",{});var i=_(e);d=h(i,"Welcome to SvelteKit"),i.forEach(l),r=b(t),a=u(t,"P",{});var n=_(a);m=h(n,"Visit "),s=u(n,"A",{href:!0});var S=_(s);p=h(S,"kit.svelte.dev"),S.forEach(l),f=h(n," to read the documentation"),n.forEach(l),this.h()},h(){q(s,"href","https://kit.svelte.dev")},m(t,i){x(t,e,i),o(e,d),x(t,r,i),x(t,a,i),o(a,m),o(a,s),o(s,p),o(a,f)},p:k,i:k,o:k,d(t){t&&l(e),t&&l(r),t&&l(a)}}}class H extends y{constructor(e){super(),K(this,e,null,A,V,{})}}export{H as default};
|
templates/_app/start-b41bef43.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
var st=Object.defineProperty,rt=Object.defineProperties;var it=Object.getOwnPropertyDescriptors;var ue=Object.getOwnPropertySymbols;var Ve=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable;var De=(n,e,t)=>e in n?st(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,P=(n,e)=>{for(var t in e||(e={}))Ve.call(e,t)&&De(n,t,e[t]);if(ue)for(var t of ue(e))qe.call(e,t)&&De(n,t,e[t]);return n},se=(n,e)=>rt(n,it(e));var ze=(n,e)=>{var t={};for(var r in n)Ve.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&ue)for(var r of ue(n))e.indexOf(r)<0&&qe.call(n,r)&&(t[r]=n[r]);return t};import{n as be,s as et,S as at,i as ot,e as ct,c as lt,a as ft,d as V,b as ye,f as B,g as q,t as ut,h as dt,j as pt,k as ht,l as C,m as _t,o as M,p as j,q as F,r as I,u as mt,v as gt,w as Ee,x as z,y as ie,z as J,A as ae,B as oe,C as K,D as ce,E as Je}from"./chunks/index-60624bc8.js";const Z=[];function de(n,e=be){let t;const r=new Set;function l(s){if(et(n,s)&&(n=s,t)){const i=!Z.length;for(const a of r)a[1](),Z.push(a,n);if(i){for(let a=0;a<Z.length;a+=2)Z[a][0](Z[a+1]);Z.length=0}}}function o(s){l(s(n))}function f(s,i=be){const a=[s,i];return r.add(a),r.size===1&&(t=e(l)||be),s(n),()=>{r.delete(a),r.size===0&&(t(),t=null)}}return{set:l,update:o,subscribe:f}}let Ke="",tt="";function wt(n){Ke=n.base,tt=n.assets||Ke}function bt(n){let e,t,r;const l=[n[1]||{}];var o=n[0][0];function f(s){let i={};for(let a=0;a<l.length;a+=1)i=ce(i,l[a]);return{props:i}}return o&&(e=new o(f())),{c(){e&&z(e.$$.fragment),t=C()},l(s){e&&ie(e.$$.fragment,s),t=C()},m(s,i){e&&J(e,s,i),q(s,t,i),r=!0},p(s,i){const a=i&2?ae(l,[oe(s[1]||{})]):{};if(o!==(o=s[0][0])){if(e){M();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),F()}o?(e=new o(f()),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else o&&e.$set(a)},i(s){r||(e&&I(e.$$.fragment,s),r=!0)},o(s){e&&j(e.$$.fragment,s),r=!1},d(s){s&&V(t),e&&K(e,s)}}}function yt(n){let e,t,r;const l=[n[1]||{}];var o=n[0][0];function f(s){let i={$$slots:{default:[Et]},$$scope:{ctx:s}};for(let a=0;a<l.length;a+=1)i=ce(i,l[a]);return{props:i}}return o&&(e=new o(f(n))),{c(){e&&z(e.$$.fragment),t=C()},l(s){e&&ie(e.$$.fragment,s),t=C()},m(s,i){e&&J(e,s,i),q(s,t,i),r=!0},p(s,i){const a=i&2?ae(l,[oe(s[1]||{})]):{};if(i&525&&(a.$$scope={dirty:i,ctx:s}),o!==(o=s[0][0])){if(e){M();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),F()}o?(e=new o(f(s)),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else o&&e.$set(a)},i(s){r||(e&&I(e.$$.fragment,s),r=!0)},o(s){e&&j(e.$$.fragment,s),r=!1},d(s){s&&V(t),e&&K(e,s)}}}function vt(n){let e,t,r;const l=[n[2]||{}];var o=n[0][1];function f(s){let i={};for(let a=0;a<l.length;a+=1)i=ce(i,l[a]);return{props:i}}return o&&(e=new o(f())),{c(){e&&z(e.$$.fragment),t=C()},l(s){e&&ie(e.$$.fragment,s),t=C()},m(s,i){e&&J(e,s,i),q(s,t,i),r=!0},p(s,i){const a=i&4?ae(l,[oe(s[2]||{})]):{};if(o!==(o=s[0][1])){if(e){M();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),F()}o?(e=new o(f()),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else o&&e.$set(a)},i(s){r||(e&&I(e.$$.fragment,s),r=!0)},o(s){e&&j(e.$$.fragment,s),r=!1},d(s){s&&V(t),e&&K(e,s)}}}function $t(n){let e,t,r;const l=[n[2]||{}];var o=n[0][1];function f(s){let i={$$slots:{default:[kt]},$$scope:{ctx:s}};for(let a=0;a<l.length;a+=1)i=ce(i,l[a]);return{props:i}}return o&&(e=new o(f(n))),{c(){e&&z(e.$$.fragment),t=C()},l(s){e&&ie(e.$$.fragment,s),t=C()},m(s,i){e&&J(e,s,i),q(s,t,i),r=!0},p(s,i){const a=i&4?ae(l,[oe(s[2]||{})]):{};if(i&521&&(a.$$scope={dirty:i,ctx:s}),o!==(o=s[0][1])){if(e){M();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),F()}o?(e=new o(f(s)),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else o&&e.$set(a)},i(s){r||(e&&I(e.$$.fragment,s),r=!0)},o(s){e&&j(e.$$.fragment,s),r=!1},d(s){s&&V(t),e&&K(e,s)}}}function kt(n){let e,t,r;const l=[n[3]||{}];var o=n[0][2];function f(s){let i={};for(let a=0;a<l.length;a+=1)i=ce(i,l[a]);return{props:i}}return o&&(e=new o(f())),{c(){e&&z(e.$$.fragment),t=C()},l(s){e&&ie(e.$$.fragment,s),t=C()},m(s,i){e&&J(e,s,i),q(s,t,i),r=!0},p(s,i){const a=i&8?ae(l,[oe(s[3]||{})]):{};if(o!==(o=s[0][2])){if(e){M();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),F()}o?(e=new o(f()),z(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else o&&e.$set(a)},i(s){r||(e&&I(e.$$.fragment,s),r=!0)},o(s){e&&j(e.$$.fragment,s),r=!1},d(s){s&&V(t),e&&K(e,s)}}}function Et(n){let e,t,r,l;const o=[$t,vt],f=[];function s(i,a){return i[0][2]?0:1}return e=s(n),t=f[e]=o[e](n),{c(){t.c(),r=C()},l(i){t.l(i),r=C()},m(i,a){f[e].m(i,a),q(i,r,a),l=!0},p(i,a){let d=e;e=s(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]=o[e](i),t.c()),I(t,1),t.m(r.parentNode,r))},i(i){l||(I(t),l=!0)},o(i){j(t),l=!1},d(i){f[e].d(i),i&&V(r)}}}function Be(n){let e,t=n[5]&&We(n);return{c(){e=ct("div"),t&&t.c(),this.h()},l(r){e=lt(r,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var l=ft(e);t&&t.l(l),l.forEach(V),this.h()},h(){ye(e,"id","svelte-announcer"),ye(e,"aria-live","assertive"),ye(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(r,l){q(r,e,l),t&&t.m(e,null)},p(r,l){r[5]?t?t.p(r,l):(t=We(r),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(r){r&&V(e),t&&t.d()}}}function We(n){let e;return{c(){e=ut(n[6])},l(t){e=dt(t,n[6])},m(t,r){q(t,e,r)},p(t,r){r&64&&pt(e,t[6])},d(t){t&&V(e)}}}function Rt(n){let e,t,r,l,o;const f=[yt,bt],s=[];function i(d,R){return d[0][1]?0:1}e=i(n),t=s[e]=f[e](n);let a=n[4]&&Be(n);return{c(){t.c(),r=ht(),a&&a.c(),l=C()},l(d){t.l(d),r=_t(d),a&&a.l(d),l=C()},m(d,R){s[e].m(d,R),q(d,r,R),a&&a.m(d,R),q(d,l,R),o=!0},p(d,[R]){let y=e;e=i(d),e===y?s[e].p(d,R):(M(),j(s[y],1,1,()=>{s[y]=null}),F(),t=s[e],t?t.p(d,R):(t=s[e]=f[e](d),t.c()),I(t,1),t.m(r.parentNode,r)),d[4]?a?a.p(d,R):(a=Be(d),a.c(),a.m(l.parentNode,l)):a&&(a.d(1),a=null)},i(d){o||(I(t),o=!0)},o(d){j(t),o=!1},d(d){s[e].d(d),d&&V(r),a&&a.d(d),d&&V(l)}}}function St(n,e,t){let{stores:r}=e,{page:l}=e,{components:o}=e,{props_0:f=null}=e,{props_1:s=null}=e,{props_2:i=null}=e;mt("__svelte__",r),gt(r.page.notify);let a=!1,d=!1,R=null;return Ee(()=>{const y=r.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,r=y.stores),"page"in y&&t(8,l=y.page),"components"in y&&t(0,o=y.components),"props_0"in y&&t(1,f=y.props_0),"props_1"in y&&t(2,s=y.props_1),"props_2"in y&&t(3,i=y.props_2)},n.$$.update=()=>{n.$$.dirty&384&&r.page.set(l)},[o,f,s,i,a,d,R,r,l]}class Lt extends at{constructor(e){super(),ot(this,e,St,Rt,et,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const Ut="modulepreload",Ye={},At="/_app/",ve=function(e,t){return!t||t.length===0?e():Promise.all(t.map(r=>{if(r=`${At}${r}`,r in Ye)return;Ye[r]=!0;const l=r.endsWith(".css"),o=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${o}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":Ut,l||(f.as="script",f.crossOrigin=""),f.href=r,document.head.appendChild(f),l)return new Promise((s,i)=>{f.addEventListener("load",s),f.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>e())},Nt={},Se=[()=>ve(()=>import("./layout.svelte-e3a1ab0e.js"),["layout.svelte-e3a1ab0e.js","chunks/index-60624bc8.js"]),()=>ve(()=>import("./error.svelte-5990926f.js"),["error.svelte-5990926f.js","chunks/index-60624bc8.js"]),()=>ve(()=>import("./pages/index.svelte-47304b27.js"),["pages/index.svelte-47304b27.js","chunks/index-60624bc8.js"])],Ot={"":[[0,2],[1]]};function Me(n){return n instanceof Error||n&&n.name&&n.message?n:new Error(JSON.stringify(n))}function Fe(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 r=typeof n.error=="string"?new Error(n.error):n.error;return r 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:r}):{status:t,error:r}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof r}"`)}}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 xt(n,e){return n==="/"||e==="ignore"?n:e==="never"?n.endsWith("/")?n.slice(0,-1):n:e==="always"&&!n.endsWith("/")?n+"/":n}function Pt(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 Ge(n){let e=n.baseURI;if(!e){const t=n.getElementsByTagName("base");e=t.length?t[0].href:n.URL}return e}function Re(){return{x:pageXOffset,y:pageYOffset}}function Xe(n){return n.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function Ze(n){return n instanceof SVGAElement?new URL(n.href.baseVal,document.baseURI):new URL(n.href)}function He(n){const e=de(n);let t=!0;function r(){t=!0,e.update(f=>f)}function l(f){t=!1,e.set(f)}function o(f){let s;return e.subscribe(i=>{(s===void 0||t&&i!==s)&&f(s=i)})}return{notify:r,set:l,subscribe:o}}function Ct(){const{set:n,subscribe:e}=de(!1),t="1651120415467";let r;async function l(){clearTimeout(r);const f=await fetch(`${tt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(f.ok){const{version:s}=await f.json(),i=s!==t;return i&&(n(!0),clearTimeout(r)),i}else throw new Error(`Version check failed: ${f.status}`)}return{subscribe:e,check:l}}function jt(n,e){let r=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof n=="string"?n:n.url)}]`;e&&typeof e.body=="string"&&(r+=`[sveltekit\\:data-body="${Pt(e.body)}"]`);const l=document.querySelector(r);if(l&&l.textContent){const o=JSON.parse(l.textContent),{body:f}=o,s=ze(o,["body"]);return Promise.resolve(new Response(f,s))}return fetch(n,e)}const It=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function Tt(n){const e=[],t=[];let r=!0;return{pattern:n===""?/^\/$/:new RegExp(`^${decodeURIComponent(n).split(/(?:@[a-zA-Z0-9_-]+)?(?:\/|$)/).map((o,f,s)=>{const i=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(i)return e.push(i[1]),t.push(i[2]),"(?:/(.*))?";const a=f===s.length-1;return o&&"/"+o.split(/\[(.+?)\]/).map((d,R)=>{if(R%2){const[,y,H,G]=It.exec(d);return e.push(H),t.push(G),y?"(.*?)":"([^/]+?)"}return a&&d.includes(".")&&(r=!1),d.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${r?"/?":""}$`),names:e,types:t}}function Dt(n,e,t,r){const l={};for(let o=0;o<e.length;o+=1){const f=e[o],s=t[o],i=n[o+1]||"";if(s){const a=r[s];if(!a)throw new Error(`Missing "${s}" param matcher`);if(!a(i))return}l[f]=i}return l}function Vt(n,e,t){return Object.entries(e).map(([l,[o,f,s]])=>{const{pattern:i,names:a,types:d}=Tt(l);return{id:l,exec:R=>{const y=i.exec(R);if(y)return Dt(y,a,d,t)},a:o.map(R=>n[R]),b:f.map(R=>n[R]),has_shadow:!!s}})}const nt="sveltekit:scroll",W="sveltekit:index",$e=Vt(Se,Ot,Nt),qt=Se[0](),zt=Se[1](),Qe={};let re={};try{re=JSON.parse(sessionStorage[nt])}catch{}function ke(n){re[n]=Re()}function Jt({target:n,session:e,base:t,trailing_slash:r}){var Ie;const l=new Map,o=[],f={url:He({}),page:He({}),navigating:de(null),session:de(e),updated:Ct()},s={id:null,promise:null},i={before_navigate:[],after_navigate:[]};let a={branch:[],error:null,session_id:0,stuff:Qe,url:null},d=!1,R=!0,y=!1,H=1,G=null,Le,Ue,Ae=!1;f.session.subscribe(async c=>{Ue=c,Ae&&(H+=1,me(new URL(location.href),[],!0))}),Ae=!0;let X=!0,T=(Ie=history.state)==null?void 0:Ie[W];T||(T=Date.now(),history.replaceState(se(P({},history.state),{[W]:T}),"",location.href));const pe=re[T];pe&&(history.scrollRestoration="manual",scrollTo(pe.x,pe.y));let he=!1,_e,Ne;async function Oe(c,{noscroll:p=!1,replaceState:w=!1,keepfocus:u=!1,state:h={}},b){const _=new URL(c,Ge(document));if(X)return we({url:_,scroll:p?Re():null,keepfocus:u,redirect_chain:b,details:{state:h,replaceState:w},accepted:()=>{},blocked:()=>{}});await te(_)}async function xe(c){const p=je(c);if(!p)throw new Error("Attempted to prefetch a URL that does not belong to this app");return s.promise=Ce(p,!1),s.id=p.id,s.promise}async function me(c,p,w,u){var g,$,S;const h=je(c),b=Ne={};let _=h&&await Ce(h,w);if(!_&&c.origin===location.origin&&c.pathname===location.pathname&&(_=await ee({status:404,error:new Error(`Not found: ${c.pathname}`),url:c,routeId:null})),!_)return await te(c),!1;if(Ne!==b)return!1;if(o.length=0,_.redirect)if(p.length>10||p.includes(c.pathname))_=await ee({status:500,error:new Error("Redirect loop"),url:c,routeId:null});else return X?Oe(new URL(_.redirect,c).href,{},[...p,c.pathname]):await te(new URL(_.redirect,location.href)),!1;else(($=(g=_.props)==null?void 0:g.page)==null?void 0:$.status)>=400&&await f.updated.check()&&await te(c);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,"",c)}if(d?(a=_.state,Le.$set(_.props)):Pe(_),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 Je(),R){const m=c.hash&&document.getElementById(c.hash.slice(1));k?scrollTo(k.x,k.y):m?m.scrollIntoView():scrollTo(0,0)}}else await Je();s.promise=null,s.id=null,R=!0,y=!1,_.props.page&&(_e=_.props.page);const v=_.state.branch[_.state.branch.length-1];return X=(v==null?void 0:v.module.router)!==!1,!0}function Pe(c){a=c.state;const p=document.querySelector("style[data-sveltekit]");if(p&&p.remove(),_e=c.props.page,Le=new Lt({target:n,props:se(P({},c.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 ge({url:c,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:c,params:p,branch:u,error:b,stuff:w,session_id:H},props:{components:v.map(U=>U.module.default)}};for(let U=0;U<v.length;U+=1){const O=v[U].loaded;$.props[`props_${U}`]=O?await O.props:null}if(!a.url||c.href!==a.url.href||a.error!==b||a.stuff!==w){$.props.page={error:b,params:p,routeId:_,status:h,stuff:w,url:c};const U=(O,L)=>{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=c.pathname+c.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 Q({status:c,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=Ue;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):jt(A,U)},status:c!=null?c: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=Fe(m),g.loaded.stuff&&(g.stuff=g.loaded.stuff),g.loaded.dependencies&&g.loaded.dependencies.forEach($)}else _&&(g.loaded=Fe({props:_}));return g}async function Ce({id:c,url:p,params:w,route:u},h){var A,U,O;if(s.id===c&&s.promise)return s.promise;if(!h){const L=l.get(c);if(L)return L}const{a:b,b:_,has_shadow:v}=u,g=a.url&&{url:c!==a.url.pathname+a.url.search,params:Object.keys(w).filter(L=>a.params[L]!==w[L]),session:H!==a.session_id};let $=[],S=Qe,k=!1,E=200,m=null;b.forEach(L=>L());e:for(let L=0;L<b.length;L+=1){let N;try{if(!b[L])continue;const x=await b[L](),D=a.branch[L];if(!D||x!==D.module||g.url&&D.uses.url||g.params.some(Y=>D.uses.params.has(Y))||g.session&&D.uses.session||Array.from(D.uses.dependencies).some(Y=>o.some(fe=>fe(Y)))||k&&D.uses.stuff){let Y={};const fe=v&&L===b.length-1;if(fe){const ne=await fetch(`${p.pathname}${p.pathname.endsWith("/")?"":"/"}__data.json${p.search}`,{headers:{"x-sveltekit-load":"true"}});if(ne.ok){const Te=ne.headers.get("x-sveltekit-location");if(Te)return{redirect:Te,props:{},state:a};Y=ne.status===204?{}:await ne.json()}else E=ne.status,m=new Error("Failed to load data")}if(m||(N=await Q({module:x,url:p,params:w,props:Y,stuff:S,routeId:u.id})),N&&(fe&&(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=Me(x)}if(m){for(;L--;)if(_[L]){let x,D,le=L;for(;!(D=$[le]);)le-=1;try{if(x=await Q({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,le+1).concat(x);break e}catch{continue}}return await ee({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 ge({url:p,params:w,stuff:S,branch:$,status:E,error:m,routeId:u.id})}async function ee({status:c,error:p,url:w,routeId:u}){var v,g;const h={},b=await Q({module:await qt,url:w,params:h,stuff:{},routeId:u}),_=await Q({status:c,error:p,module:await zt,url:w,params:h,stuff:b&&b.loaded&&b.loaded.stuff||{},routeId:u});return await ge({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:c,error:p,routeId:u})}function je(c){if(c.origin!==location.origin||!c.pathname.startsWith(t))return;const p=decodeURI(c.pathname.slice(t.length)||"/");for(const w of $e){const u=w.exec(p);if(u)return{id:c.pathname+c.search,route:w,params:u,url:c}}}async function we({url:c,scroll:p,keepfocus:w,redirect_chain:u,details:h,accepted:b,blocked:_}){const v=a.url;let g=!1;const $={from:v,to:c,cancel:()=>g=!0};if(i.before_navigate.forEach(m=>m($)),g){_();return}const S=xt(c.pathname,r),k=new URL(c.origin+S+c.search+c.hash);if(ke(T),b(),d&&f.navigating.set({from:a.url,to:k}),await me(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 te(c){return location.href=c.href,new Promise(()=>{})}return{after_navigate:c=>{Ee(()=>(i.after_navigate.push(c),()=>{const p=i.after_navigate.indexOf(c);i.after_navigate.splice(p,1)}))},before_navigate:c=>{Ee(()=>(i.before_navigate.push(c),()=>{const p=i.before_navigate.indexOf(c);i.before_navigate.splice(p,1)}))},disable_scroll_handling:()=>{(y||!d)&&(R=!1)},goto:(c,p={})=>Oe(c,p,[]),invalidate:c=>{if(typeof c=="function")o.push(c);else{const{href:p}=new URL(c,location.href);o.push(w=>w===p)}return G||(G=Promise.resolve().then(async()=>{await me(new URL(location.href),[],!0),G=null})),G},prefetch:async c=>{const p=new URL(c,Ge(document));await xe(p)},prefetch_routes:async c=>{const w=(c?$e.filter(u=>c.some(h=>u.exec(h))):$e).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"){ke(T);try{sessionStorage[nt]=JSON.stringify(re)}catch{}}});const c=u=>{const h=Xe(u);h&&h.href&&h.hasAttribute("sveltekit:prefetch")&&xe(Ze(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",c),addEventListener("mousemove",w),addEventListener("sveltekit:trigger_prefetch",c),addEventListener("click",u=>{if(!X||u.button||u.which!==1||u.metaKey||u.ctrlKey||u.shiftKey||u.altKey||u.defaultPrevented)return;const h=Xe(u);if(!h||!h.href)return;const b=h instanceof SVGAElement,_=Ze(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]){he=!0,ke(T),f.page.set(se(P({},_e),{url:_})),f.page.notify();return}we({url:_,scroll:h.hasAttribute("sveltekit:noscroll")?Re():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;we({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",()=>{he&&(he=!1,history.replaceState(se(P({},history.state),{[W]:++T}),"",location.href))})},_hydrate:async({status:c,error:p,nodes:w,params:u,routeId:h})=>{const b=new URL(location.href),_=[];let v={},g,$;try{for(let S=0;S<w.length;S+=1){const k=S===w.length-1;let E;if(k){const A=document.querySelector('script[sveltekit\\:data-type="props"]');A&&(E=JSON.parse(A.textContent))}const m=await Q({module:await w[S],url:b,params:u,stuff:v,status:k?c:void 0,error:k?p:void 0,props:E,routeId:h});if(E&&(m.uses.dependencies.add(b.href),m.uses.url=!0),_.push(m),m&&m.loaded)if(m.loaded.error){if(p)throw m.loaded.error;$={status:m.loaded.status,error:m.loaded.error,url:b,routeId:h}}else m.loaded.stuff&&(v=P(P({},v),m.loaded.stuff))}g=$?await ee($):await ge({url:b,params:u,stuff:v,branch:_,status:c,error:p,routeId:h})}catch(S){if(p)throw S;g=await ee({status:500,error:Me(S),url:b,routeId:h})}g.redirect&&await te(new URL(g.redirect,location.href)),Pe(g)}}}async function Wt({paths:n,target:e,session:t,route:r,spa:l,trailing_slash:o,hydrate:f}){const s=Jt({target:e,session:t,base:n.base,trailing_slash:o});wt(n),f&&await s._hydrate(f),r&&(l&&s.goto(location.href,{replaceState:!0}),s._start_router()),dispatchEvent(new CustomEvent("sveltekit:start"))}export{Wt as start};
|
templates/_app/version.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"version":"1651120415467"}
|
templates/favicon.png
ADDED
templates/index.html
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8" />
|
5 |
+
<link rel="icon" href="./favicon.png" />
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
7 |
+
<meta http-equiv="content-security-policy" content="">
|
8 |
+
<link rel="modulepreload" href="/_app/start-b41bef43.js">
|
9 |
+
<link rel="modulepreload" href="/_app/chunks/index-60624bc8.js">
|
10 |
+
<link rel="modulepreload" href="/_app/layout.svelte-e3a1ab0e.js">
|
11 |
+
<link rel="modulepreload" href="/_app/pages/index.svelte-47304b27.js">
|
12 |
+
</head>
|
13 |
+
<body>
|
14 |
+
<div>
|
15 |
+
|
16 |
+
|
17 |
+
<h1>Welcome to SvelteKit</h1>
|
18 |
+
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
|
19 |
+
|
20 |
+
|
21 |
+
<script type="module" data-hydrate="1oibf46">
|
22 |
+
import { start } from "/_app/start-b41bef43.js";
|
23 |
+
start({
|
24 |
+
target: document.querySelector('[data-hydrate="1oibf46"]').parentNode,
|
25 |
+
paths: {"base":"","assets":""},
|
26 |
+
session: {},
|
27 |
+
route: true,
|
28 |
+
spa: false,
|
29 |
+
trailing_slash: "never",
|
30 |
+
hydrate: {
|
31 |
+
status: 200,
|
32 |
+
error: null,
|
33 |
+
nodes: [
|
34 |
+
import("/_app/layout.svelte-e3a1ab0e.js"),
|
35 |
+
import("/_app/pages/index.svelte-47304b27.js")
|
36 |
+
],
|
37 |
+
params: {},
|
38 |
+
routeId: ""
|
39 |
+
}
|
40 |
+
});
|
41 |
+
</script></div>
|
42 |
+
</body>
|
43 |
+
</html>
|