A web-based drawing app
git clone git://soophie.de/outline
1
const fs = require('fs');2
const express = require('express');3
const app = express();4
const http = require('http');5
const https = require('https');6
const io = require('socket.io');8
let env = {9
port: 443,10
path: '/etc/letsencrypt/live/',11
domain: 'server.typable.dev',12
ssl: true13
};15
if(fs.existsSync(env.path)) {16
env.credentials = {17
key: fs.readFileSync(env.path + env.domain + '/privkey.pem', 'utf8'),18
cert: fs.readFileSync(env.path + env.domain + '/cert.pem', 'utf8'),19
ca: fs.readFileSync(env.path + env.domain + '/chain.pem', 'utf8')20
};21
}22
else {23
env.ssl = false;24
env.port = 80;25
}27
const proxy = env.ssl ? https.createServer(env.credentials, app) : http.createServer(app);28
const server = io(https);30
proxy.listen(env.port, function() {31
console.log('Server started on port:', env.port);32
});34
server.path('/pipe');35
server.listen(proxy);37
const { createCanvas } = require('canvas');38
const paint = require('./mod/paint');40
let client = {};41
let width = 1920;42
let height = 1080;43
let canvas = createCanvas(width, height);44
let g = canvas.getContext('2d');45
g.fillStyle = 'white';46
g.fillRect(0, 0, width, height);48
paint.init(g);50
server.on('connection', function(socket) {51
client[socket] = {};52
socket.on('request', function(data) {53
let { x, y, width, height } = data;54
let image = g.getImageData(x, y, width, height);55
socket.emit('load', new Uint8Array(image.data).buffer);56
});57
socket.on('data' , function(data) {58
paint.draw(data);59
socket.broadcast.emit('data', data);60
});61
socket.on('clear' , function(data) {62
g.fillStyle = 'white';63
g.fillRect(0, 0, width, height);64
socket.broadcast.emit('clear', data);65
});66
socket.on('background' , function(data) {67
g.fillStyle = data;68
g.fillRect(0, 0, width, height);69
g.fillStyle = 'black';70
socket.broadcast.emit('background', data);71
});72
socket.on('cursor' , function(data) {73
if(!client[socket]) {74
client[socket] = {};75
}76
client[socket].uuid = data.uuid;77
socket.broadcast.emit('cursor', data);78
});79
socket.on('disconnect', function() {80
if(client[socket]) {81
socket.broadcast.emit('cursor', {82
quit: true,83
uuid: client[socket].uuid84
});85
}86
delete client[socket];87
});88
});89
server.on('disconnect', function(socket) {90
if(client[socket]) {91
socket.broadcast.emit('cursor', {92
quit: true,93
uuid: client[socket].uuid94
});95
delete client[socket];96
}97
});
1
module.exports = {2
init: function(g, o) {3
this.g = g;4
this.o = o;5
},6
draw: function(args) {7
let { pos, last, radius, color } = args || {};8
if(last) {9
let delta = {10
x: last.x - pos.x,11
y: last.y - pos.y12
};13
let dist = Math.sqrt(Math.pow(delta.x, 2) + Math.pow(delta.y, 2));14
let length = dist / (radius / 2);15
for(let i = 0; i < length; i++) {16
let x = pos.x + (delta.x / length * i);17
let y = pos.y + (delta.y / length * i);18
this.g.fillStyle = color;19
this.g.beginPath();20
this.g.arc(x, y, 2 * radius, 0, 2 * Math.PI);21
this.g.fill();22
this.g.fillStyle = 'black';23
}24
}25
else {26
this.g.fillStyle = color;27
this.g.beginPath();28
this.g.arc(pos.x, pos.y, 2 * radius, 0, 2 * Math.PI);29
this.g.fill();30
this.g.fillStyle = 'black';31
}32
}33
};
1
{2
"name": "Outline",3
"version": "1.0.0",3
"version": "1.1.0",4
"description": "Draw with friends together",5
"main": "index.js",6
"scripts": {7
"build": "npm i --unsafe-perm --allow-root",8
"serve": "firebase serve --only hosting --port 80",9
"start": "node index"9
"start": "node index",10
"host": "http-server public --port 8080"11
},12
"repository": {13
"type": "git",
Binary file
Binary file
1
tool.colors=Farben2
tool.pencil=Stift3
tool.scale=Skalierung4
tool.clear=Löschen5
tool.capture=Capture6
tool.undo=Rückgängig7
tool.redo=Wiederholen9
action.multiplayer=Mehrspieler10
action.account=Konto11
action.more=Mehr13
pencil.pen=Stift14
pencil.pen.info=Standard Stift15
pencil.marker=Marker16
pencil.eraser=Radierer18
modal.clear.info=Willst du den Bildschirm löschen?19
modal.clear.action.cancel=Nein20
modal.clear.action.apply=Ja21
modal.capture.info=Willst du den Bildschirm speichern?22
modal.capture.action.cancel=Nein23
modal.capture.action.apply=Ja25
notification.input-device.mouse.add=Maus erkannt26
notification.input-device.touch.add=Touch erkannt27
notification.input-device.pencil.add=Stift erkannt28
notification.input-device.gamepad.add=Gamepad erkannt29
notification.input-device.gamepad.remove=Gamepad entfernt30
notification.clear=Bildschirm gelöscht31
notification.view-mode.on=View Mode aktiviert32
notification.view-mode.off=View Mode deaktiviert34
multiplayer.join=Beitreten35
multiplayer.join.info=Suche nach beitretbaren Channels36
multiplayer.create=Erstellen37
multiplayer.create.info=Erstelle einen Channel38
multiplayer.host=Hosten39
multiplayer.invite-friends=Freunde einladen40
multiplayer.invite-friends.info=Teile Channel mit anderen41
multiplayer.host.info=Hoste aktuellen Stand als Channel43
channel.information=Info44
channel.information.info=Personalisiere Channel Info45
channel.private=Privat46
channel.private.info=Verhindere Channel Listung47
channel.permanent=Permanent48
channel.permanent.info=Behalte Channel dauerhaft online49
channel.roles=Rollen50
channel.roles.info=Verwalte Nutzerberechtigungen52
account.upgrade=Upgrade53
account.upgrade.info=Schalte alle Features frei54
account.profile=Profil55
account.profile.info=Profil ansehen56
account.support=Unterstützen57
account.support.info=Spende eine Tasse Kaffee58
account.feedback=Feedback59
account.feedback.info=Verbessere unseren Service60
more.feedback.share-usage-data=Nutzungsdaten teilen61
more.feedback.share-usage-data.info=Sendet Fehlerberichte62
account.logout=Abmelden63
account.logout.info=Von Konto abmelden65
more.help=Hilfe66
more.help.info=Erfahre mehr über die Funktionen67
more.help.controls=Steuerung68
more.help.controls.info=Tastatur, Touch, Gamepad69
more.help.multiplayer=Mehrspieler70
more.help.multiplayer.info=Channel, Rollen71
more.language=Sprache72
more.language.info=Wähle bevorzugte Sprache73
more.language.default=Standard Sprache74
more.input-device=Eingabegerät75
more.input-device.info=Wähle bevorzugtes Eingabegerät76
more.input-device.default=Standard Eingabegerät77
more.input-device.empty=Keine Geräte erkannt78
more.input-device.mouse=Maus79
more.input-device.touch=Touch80
more.input-device.pencil=Stift81
more.input-device.gamepad=Gamepad82
more.input-device.touch.info=Fingerinteraktion83
more.input-device.pencil.info=Stylus Stift, touch deaktiviert84
more.input-device.gamepad.info=Stadia Controller unterstützt85
more.appearance=Erscheinungsbild86
more.appearance.info=Gestalte wie du möchtest87
more.appearance.fullscreen=Vollbild88
more.appearance.fullscreen.info=In den Vollbildmodus wechseln89
more.appearance.dark-mode=Dark Mode90
more.appearance.dark-mode.info=Angenehmer für deine Augen
1
tool.colors=Colors2
tool.pencil=Pencil3
tool.scale=Scale4
tool.clear=Clear5
tool.capture=Capture6
tool.undo=undo7
tool.redo=redo9
action.multiplayer=Multiplayer10
action.account=Account11
action.more=More13
pencil.pen=Pen14
pencil.pen.info=Default pen15
pencil.marker=Marker16
pencil.eraser=Eraser18
modal.clear.info=Do you want to clear the screen?19
modal.clear.action.cancel=No20
modal.clear.action.apply=Yes21
modal.capture.info=Do you want to save the screen?22
modal.capture.action.cancel=No23
modal.capture.action.apply=Yes25
notification.input-device.mouse.add=Mouse detected26
notification.input-device.touch.add=Touch detected27
notification.input-device.pencil.add=Pencil detected28
notification.input-device.gamepad.add=Gamepad detected29
notification.input-device.gamepad.remove=Gamepad removed30
notification.clear=Screen cleared31
notification.view-mode.on=View Mode enabled32
notification.view-mode.off=View Mode disabled34
multiplayer.join=Join35
multiplayer.join.info=Search for channel to join36
multiplayer.create=Create37
multiplayer.create.info=Create a new channel38
multiplayer.host=Host39
multiplayer.host.info=Host current state as channel40
multiplayer.invite-friends=Invite friends41
multiplayer.invite-friends.info=Share channel with others43
channel.information=Info44
channel.information.info=Customize channel info45
channel.private=Private46
channel.private.info=Prevent channel being listed47
channel.permanent=Permanent48
channel.permanent.info=Keep channel permanent online49
channel.roles=Roles50
channel.roles.info=Manage user permissions52
account.upgrade=Upgrade53
account.upgrade.info=Unlock all features54
account.profile=Profile55
account.profile.info=View your profile56
account.support=Support57
account.support.info=Donate a cup of coffee58
account.feedback=Feedback59
account.feedback.info=Improve our service60
more.feedback.share-usage-data=Share usage data61
more.feedback.share-usage-data.info=Sends crash reports62
account.logout=Log out63
account.logout.info=Sign out from account65
more.help=Help66
more.help.info=Learn more about the features67
more.help.controls=Controls68
more.help.controls.info=Keyboard, Touch, Controller69
more.help.multiplayer=Multiplayer70
more.help.multiplayer.info=Channel, Roles71
more.language=Language72
more.language.info=Choose preferred language73
more.language.default=Default language74
more.input-device=Input Device75
more.input-device.info=Choose preferred input device76
more.input-device.default=Default input device77
more.input-device.empty=No devices detected78
more.input-device.mouse=Mouse79
more.input-device.touch=Touch80
more.input-device.pencil=Pencil81
more.input-device.gamepad=Gamepad82
more.input-device.touch.info=Finger interaction83
more.input-device.pencil.info=Stylus pen, touch disabled84
more.input-device.gamepad.info=Stadia Controller supported85
more.appearance=Appearance86
more.appearance.info=Customize how you want87
more.appearance.fullscreen=Fullscreen88
more.appearance.fullscreen.info=Toggle Fullscreen89
more.appearance.dark-mode=Dark Mode90
more.appearance.dark-mode.info=More pleasant for your eyes
1
@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBBc4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu72xKOzY.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu5mxKOzY.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7mxKOzY.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7GxKOzY.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBBc4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Material Icons';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v50/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2')}.material-icons{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased}.ico{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;user-select:none;pointer-events:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:'liga'}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
1
@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBBc4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu72xKOzY.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu5mxKOzY.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7mxKOzY.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7GxKOzY.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBBc4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Material Icons';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v50/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2')}.material-icons{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased}.ico{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;user-select:none;pointer-events:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:'liga'}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:200;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{margin:0;padding:0;font-family:Roboto,sans-serif;box-sizing:border-box}:focus,:hover{outline:0}html{position:relative;overflow:hidden;min-height:100vh}body{width:100%;font-size:14px;min-height:100vh}img{pointer-events:none;user-select:none}input{-webkit-appearance:none}button{user-select:none;cursor:pointer}.hidden{display:none!important}canvas.canvas{position:relative;z-index:1;cursor:none;touch-action:none}canvas.overlay{pointer-events:none;user-select:none;position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.wrapper{width:100vw;height:100vh;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,.2);z-index:9999;user-select:none}.wrapper>.info{position:fixed;right:30px;bottom:30px;display:flex}.wrapper>.info ul.info-list{display:flex;list-style-type:none}.wrapper>.info ul.info-list li.info-item{color:#333C41;margin-left:15px;user-select:none;font-weight:500}.wrapper>.info ul.info-list li.info-item a{user-select:none;color:#007BFF;text-decoration:none}.wrapper>.info ul.info-list li.info-item a.subtle{color:#777}.wrapper>.info ul.info-list li.info-item a:hover{text-decoration:underline}.spinner{width:80px;height:80px;border-radius:40px;border:10px solid rgba(255,255,255,.2);border-top:10px solid #fff;animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.modal{background:#fff;width:400px;border-radius:6px;padding:20px;margin:20px;box-shadow:0 0 4px 0 rgba(0,0,0,.03)}.modal.modal-error{width:300px}.modal.modal-error .align{justify-content:flex-end}.modal.theme-dark{background:#333C41;color:#fff}.modal.theme-dark button.action-cancel{background:#555;color:#fff}.modal.theme-dark button.action-cancel:hover{background:#505050}.modal.theme-dark input[type=text]{background:#272F34;color:#fff}.modal.theme-dark input[type=text]:hover{background:#232a2e}.modal.theme-dark input[type=text]:focus{background:#232a2e}.modal.theme-dark .separator{border-color:#555}.modal.theme-dark input[type=range]{background:#2b343a}.modal.theme-dark .preview{background:#2b343a}.modal.theme-dark ul.avatar-list li.avatar{border-color:#333C41;background:#293237}.modal.theme-dark ul.avatar-list li.avatar:hover{border-color:#2f383e}.modal input.action-file,.modal input.action-uuid{padding:12px 14px;width:100%;border:none;background:#FAFAFA;border-radius:3px;font-size:16px;user-select:none;margin-bottom:3px}.modal input.action-file:hover,.modal input.action-uuid:hover{background:#F8F8F8}.modal input.action-file:focus,.modal input.action-uuid:focus{background:#F5F5F5}.modal input.action-file.invalid,.modal input.action-uuid.invalid{border-bottom:3px solid #FF4A4A;border-radius:3px 3px 0 0;margin-bottom:0}.modal .separator{border-top:1px solid #F5F5F5;margin:20px 0}.modal .align{display:flex;justify-content:space-between;align-items:center}.modal p{font-size:18px;letter-spacing:.2px;padding-top:5px;margin-bottom:25px}.modal button{padding:12px 14px;border:none;background:#F8F9FA;border-radius:3px;font-size:16px;cursor:pointer;user-select:none;transition:background .1s;color:#212121}.modal button:hover{background:#e9ecef}.modal button.success{background:#28A745;color:#fff}.modal button.success:hover{background:#23923c}.modal button.danger{background:#DC3545;color:#fff}.modal button.danger:hover{background:#d32535}.modal button.info{background:#007BFF;color:#fff}.modal button.info:hover{background:#006fe6}.modal button.action-join{width:100%}.modal button.action-cancel{width:calc(50% - 10px)}.modal button.action-background,.modal button.action-clear,.modal button.action-color,.modal button.action-default,.modal button.action-save,.modal button.action-scaling{width:calc(50% - 10px)}.modal ul.avatar-list{display:flex;flex-wrap:wrap;width:100%;list-style-type:none}.modal ul.avatar-list li.avatar{background:#EEE;border-radius:9999px;border:5px solid #fff;margin:10px;width:70px;height:70px;cursor:pointer;transition:border-color .1s}.modal ul.avatar-list li.avatar:hover{border:5px solid #F8F8F8}.modal input.action-range{width:calc(100% - 80px);-webkit-appearance:none;background:#F8F8F8;height:6px}.modal input.action-range:hover{background:#F5F5F5}.modal input.action-range:hover::-webkit-slider-thumb{background:#555}.modal input.action-range::-webkit-slider-thumb{-webkit-appearance:none;background:#888;width:20px;height:20px;border-radius:9999px;border:none;cursor:pointer;transition:background .1s}.modal input.action-range::-webkit-slider-runnable-track{-webkit-appearance:none}.modal .preview{width:60px;height:60px;background:#F5F5F5;border-radius:9999px;display:flex;justify-content:center;align-items:center}.modal .preview .circle{width:12px;height:12px;background:#212121;border-radius:9999px}.modal.modal-color{width:420px;position:relative}.modal.modal-color:before{content:'';display:block;position:absolute;top:20px;left:20px;right:26px;height:10px;background:linear-gradient(white,transparent);z-index:9}.modal.modal-color:after{content:'';display:block;position:absolute;bottom:82px;left:20px;right:26px;height:10px;background:linear-gradient(transparent,#fff);z-index:9}.modal.modal-color .bucket-list{display:flex;justify-content:center;max-height:400px;overflow-x:hidden;overflow-y:auto;padding-top:10px;padding-bottom:10px;margin-bottom:20px}.modal.modal-color .bucket-list::-webkit-scrollbar{width:6px}.modal.modal-color .bucket-list::-webkit-scrollbar-thumb{width:6px;background:#EEE}.modal.modal-color .bucket-list::-webkit-scrollbar-thumb:hover{background:#CACACA}.modal.modal-color .align{width:100%;justify-content:flex-end}.modal .bucket-list{display:flex;flex-wrap:wrap;width:100%;list-style-type:none}.modal .bucket-list .bucket{background:#EEE;border-radius:9999px;margin:5px;width:60px;height:60px;cursor:pointer;transition:transform .2s;box-shadow:0 0 8px 2px rgba(0,0,0,.05);transform:scale(.9);user-select:none}.modal .bucket-list .bucket:hover{transition:transform .2s;transform:scale(1)}.modal .bucket-list .bucket.active{transform:scale(1);border:3px solid #212121}.modal .bucket-list .bucket::after{position:absolute;bottom:-20%}.toolbar{position:fixed;left:calc(50% - 210px);bottom:30px;display:flex;z-index:999}.toolbar .bucket{width:56px;height:56px;border-radius:9999px;background:#CCC;margin:7px;transition:transform .2s;box-shadow:0 0 8px 2px rgba(0,0,0,.05);cursor:pointer;transform:scale(.9);user-select:none}.toolbar .bucket:hover{transition:transform .2s;transform:scale(1)}.toolbar .bucket.active{transform:scale(1.1)}.actions{position:fixed;top:30px;left:30px;display:flex}.action{user-select:none;position:relative;width:46px;height:46px;border:none;border-radius:9999px;background:0 0;cursor:pointer;outline:0;position:fixed;margin-right:8px}.action i{color:#212121;user-select:none;pointer-events:none}.action:hover{background:#ECECEC}.action::after{bottom:-60%}.tooltip{position:relative;display:flex;justify-content:center;align-items:center}.tooltip:hover::before{opacity:1;transition-delay:.6s}.tooltip:hover::after{opacity:1;transition-delay:.6s}.tooltip::after{display:flex;opacity:0;content:attr(data-title);justify-content:center;align-items:center;position:absolute;background:#212121;color:#fff;min-height:24px;padding:0 10px;border-radius:4px;font-size:12px;top:auto;bottom:-70%;white-space:nowrap;z-index:9999;pointer-events:none}.tooltip.up::before{top:calc(-90% + 26px);bottom:auto;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #212121;border-bottom:none}.tooltip.up::after{top:-60%;bottom:auto}.tooltip.down::before{top:auto;bottom:calc(-90% + 26px);border-left:6px solid transparent;border-right:6px solid transparent;border-top:none;border-bottom:6px solid #212121}.tooltip.down::after{top:auto;bottom:-60%}1
\ No newline at end of file1
* {2
margin: 0;3
padding: 0;4
font-family: 'Roboto', sans-serif;5
box-sizing: border-box;6
}7
*:hover,8
*:focus {9
outline: none;10
}11
html {12
position: relative;13
overflow-x: hidden;14
min-height: 100vh;15
}16
body {17
width: 100%;18
font-size: 14px;19
min-height: 100vh;20
}21
img {22
pointer-events: none;23
user-select: none;24
}25
input {26
-webkit-appearance: none;27
}28
button {29
user-select: none;30
cursor: pointer;31
}32
.hidden {33
display: none !important;34
}35
.ico {36
font-family: 'Material Icons';37
font-weight: normal;38
font-style: normal;39
font-size: 24px;40
display: inline-block;41
line-height: 1;42
text-transform: none;43
letter-spacing: normal;44
word-wrap: normal;45
white-space: nowrap;46
direction: ltr;47
-webkit-font-smoothing: antialiased;48
text-rendering: optimizeLegibility;49
-moz-osx-font-smoothing: grayscale;50
font-feature-settings: 'liga';51
user-select: none;52
pointer-events: none;53
}54
* {55
-webkit-tap-highlight-color: transparent;56
}57
html,58
body {59
overflow: hidden;60
}61
.wrapper {62
position: fixed;63
top: 0;64
left: 0;65
right: 0;66
bottom: 0;67
background: white;68
z-index: 999;69
}70
.header-list {71
width: 100%;72
height: 60px;73
background: white;74
border-bottom: 1px solid #F1F1F1;75
display: flex;76
justify-content: space-between;77
padding: 8px 14px;78
pointer-events: all;79
}80
.header-list.inactive .action-item,81
.header-list.inactive .tool-item,82
.header-list.inactive .option-item {83
pointer-events: none !important;84
}85
.header-list .tool ul,86
.header-list .action ul,87
.header-list .option ul {88
list-style-type: none;89
display: flex;90
gap: 10px;91
}92
.header-list .tool ul li,93
.header-list .action ul li,94
.header-list .option ul li {95
width: 44px;96
height: 44px;97
padding: 10px;98
border-radius: 22px;99
cursor: pointer;100
pointer-events: all;101
}102
.header-list .tool ul li:not(.inactive):not(.active):hover,103
.header-list .action ul li:not(.inactive):not(.active):hover,104
.header-list .option ul li:not(.inactive):not(.active):hover {105
background: rgba(250, 250, 250, 0.95);106
}107
.header-list .tool ul li:not(.inactive):not(.active):hover.ripple.ripple-active,108
.header-list .action ul li:not(.inactive):not(.active):hover.ripple.ripple-active,109
.header-list .option ul li:not(.inactive):not(.active):hover.ripple.ripple-active {110
background: rgba(245, 245, 245, 0.95);111
}112
.header-list .tool ul li.active,113
.header-list .action ul li.active,114
.header-list .option ul li.active {115
background: rgba(238, 238, 238, 0.95);116
}117
.header-list .tool ul li.active.ripple.ripple-active,118
.header-list .action ul li.active.ripple.ripple-active,119
.header-list .option ul li.active.ripple.ripple-active {120
background: rgba(233, 233, 233, 0.95);121
}122
.header-list .tool ul li.inactive i.ico,123
.header-list .action ul li.inactive i.ico,124
.header-list .option ul li.inactive i.ico {125
color: #E0E0E0;126
}127
.header-list .tool ul li i.ico,128
.header-list .action ul li i.ico,129
.header-list .option ul li i.ico {130
color: #555555;131
}132
#canvas,133
#overlay,134
.controls {135
position: fixed;136
top: 0;137
left: 0;138
right: 0;139
bottom: 0;140
}141
#overlay {142
pointer-events: none;143
}144
.badge {145
display: inline-block;146
margin-top: -1px;147
margin-left: 5px;148
padding: 2px 4px;149
border-radius: 2px;150
font-weight: 500;151
font-size: 12px;152
color: white !important;153
}154
.badge.prime {155
background: #0372EF;156
}157
.badge.beta {158
background: #388E3C;159
}160
.button {161
display: block;162
height: 44px;163
padding: 0 22px;164
border: none;165
border-radius: 4px;166
background: #F5F5F5;167
color: #24292E;168
font-size: 16px;169
}170
.button:hover.ripple-active {171
background: #f0f0f0;172
}173
.button.outline {174
border: 1px solid #F1F1F1;175
background: transparent;176
}177
.button.outline:hover.ripple-active {178
background: #fafafa;179
}180
.button.prime {181
background: #0372EF;182
color: white;183
}184
.button.prime:hover.ripple-active {185
background: #036de5;186
}187
.button.danger {188
background: #E53935;189
color: white;190
}191
.button.danger:hover.ripple-active {192
background: #e4302c;193
}194
.controls {195
pointer-events: none;196
}197
.controls .notification {198
top: 90px;199
position: fixed;200
display: flex;201
justify-content: center;202
width: 100%;203
opacity: 0;204
}205
.controls .notification p {206
display: inline-block;207
padding: 10px 24px;208
border-radius: 999px;209
background: #24292E;210
color: white;211
opacity: 0.95;212
user-select: none;213
pointer-events: none;214
}215
.controls .hotbar {216
display: flex;217
position: fixed;218
left: calc(50% - 216px);219
bottom: 30px;220
z-index: -1;221
}222
.controls .hotbar.inactive .color {223
pointer-events: none !important;224
}225
.controls .hotbar .color {226
margin: 6px;227
width: 60px;228
height: 60px;229
border-radius: 30px;230
background: #EEE;231
cursor: pointer;232
transition: transform 0.2s;233
transform: scale(0.9);234
pointer-events: all;235
}236
.controls .hotbar .color:not(.active):hover {237
transform: scale(1);238
}239
.controls .hotbar .color.focus {240
transform: scale(1);241
}242
.controls .hotbar .color.active {243
transform: scale(1.1);244
}245
.controls .pencil-modal {246
top: 75px;247
left: 120px;248
}249
.controls .scale-modal {250
top: 75px;251
left: 70px;252
width: 400px;253
height: 60px;254
}255
.controls .scale-modal input[type="range"] {256
-webkit-appearance: none;257
width: calc(400px - 54px);258
margin-top: 21px;259
margin-left: 27px;260
height: 6px;261
background: #EEEEEE;262
border: none;263
border-radius: 4px;264
}265
.controls .scale-modal input[type="range"]::-webkit-slider-runnable-track {266
-webkit-appearance: none;267
}268
.controls .scale-modal input[type="range"]::-webkit-slider-thumb {269
-webkit-appearance: none;270
height: 20px;271
width: 20px;272
margin-top: 0px;273
background: #9E9E9E;274
border-radius: 10px;275
cursor: pointer;276
}277
.controls .scale-modal input[type="range"]::-webkit-slider-thumb:hover {278
background: #757575;279
}280
.controls .clear-modal {281
top: calc(50% - 75.5px);282
left: calc(50% - 200px);283
width: 400px;284
padding: 25px;285
display: flex;286
flex-direction: column;287
}288
.controls .clear-modal .info {289
width: 100%;290
font-size: 20px;291
text-align: center;292
margin-bottom: 25px;293
color: #24292E;294
user-select: none;295
}296
.controls .clear-modal .align {297
display: flex;298
gap: 25px;299
}300
.controls .clear-modal .align .btn-cancel {301
width: 185px;302
height: 50px;303
border: none;304
border-radius: 3px;305
font-size: 17px;306
}307
.controls .clear-modal .align .btn-apply {308
width: 185px;309
height: 50px;310
border: none;311
border-radius: 3px;312
border-color: grey;313
font-size: 17px;314
}315
.controls .capture-modal {316
top: calc(50% - 213px);317
left: calc(50% - 200px);318
width: 400px;319
display: flex;320
flex-direction: column;321
padding: 25px;322
}323
.controls .capture-modal .info {324
font-size: 20px;325
width: 100%;326
text-align: center;327
margin-bottom: 25px;328
color: #24292E;329
user-select: none;330
}331
.controls .capture-modal .preview {332
height: 250px;333
background: #F5F5F5;334
border: 1px solid #f1f1f1;335
border-radius: 3px;336
margin-bottom: 25px;337
}338
.controls .capture-modal .align {339
display: flex;340
gap: 25px;341
}342
.controls .capture-modal .align .btn-cancel {343
width: 185px;344
height: 50px;345
border: none;346
border-radius: 3px;347
font-size: 17px;348
}349
.controls .capture-modal .align .btn-apply {350
width: 185px;351
height: 50px;352
border: none;353
border-radius: 3px;354
border-color: grey;355
font-size: 17px;356
}357
.controls .colors-modal {358
flex-wrap: wrap;359
min-width: 410px;360
width: 410px;361
max-width: 410px;362
padding: 30px !important;363
top: 75px;364
left: 15px;365
display: flex;366
gap: 12px;367
}368
.controls .colors-modal .color {369
width: 60px;370
height: 60px;371
border-radius: 30px;372
background: #EEE;373
cursor: pointer;374
transition: transform 0.2s;375
transform: scale(0.9);376
}377
.controls .colors-modal .color:not(.active):hover {378
transform: scale(1);379
}380
.controls .colors-modal .color.active {381
transform: scale(1.1);382
}383
.controls .colors-modal .color.focus {384
transform: scale(1);385
}386
.controls .multiplayer-modal {387
top: 75px;388
right: 130px;389
}390
.controls .account-modal {391
top: 75px;392
right: 80px;393
}394
.controls .more-modal {395
top: 75px;396
right: 20px;397
}398
.modal {399
width: 250px;400
position: fixed;401
background: white;402
border: 1px solid #F1F1F1;403
border-radius: 4px;404
padding: 6px 0;405
pointer-events: all;406
overflow: hidden;407
z-index: -1;408
display: flex;409
}410
.modal .main {411
width: 248px;412
min-width: 248px;413
7max-width: 248px;414
}415
.modal ul.tab-list {416
width: 248px;417
min-width: 248px;418
max-width: 248px;419
}420
.modal .header {421
display: flex;422
margin-bottom: 3px;423
}424
.modal .header .back {425
margin: 10px;426
margin-top: 15px;427
margin-right: 3px;428
width: 36px;429
height: 36px;430
border-radius: 18px;431
padding: 6px;432
padding-left: 5px;433
cursor: pointer;434
}435
.modal .header .back i.ico {436
color: #424242;437
}438
.modal .header .back:hover {439
background: #FAFAFA;440
}441
.modal .header .back.ripple.ripple-active {442
background: #f5f5f5;443
}444
.modal .header .info {445
display: flex;446
flex-direction: column;447
margin-top: 15px;448
}449
.modal .header .info p {450
display: flex;451
align-items: center;452
font-weight: 500;453
color: #555555;454
user-select: none;455
pointer-events: none;456
}457
.modal .header .info span {458
display: block;459
margin-top: 3px;460
font-size: 12px;461
color: #9E9E9E;462
user-select: none;463
pointer-events: none;464
}465
.modal ul.item-list .separator {466
margin: 6px 0;467
width: 100%;468
height: 1px;469
background: #F1F1F1;470
}471
.modal ul.item-list li.caption {472
padding: 2px 15px;473
padding-top: 12px;474
list-style: none;475
}476
.modal ul.item-list li.caption p {477
color: #9E9E9E;478
user-select: none;479
pointer-events: none;480
}481
.modal ul.item-list li.item {482
display: flex;483
align-items: center;484
padding: 15px;485
cursor: pointer;486
}487
.modal ul.item-list li.item.empty p {488
display: block;489
width: 100%;490
color: #9E9E9E;491
text-align: center;492
user-select: none;493
pointer-events: none;494
}495
.modal ul.item-list li.item:not(.active):not(.inactive):hover {496
background: #FAFAFA;497
}498
.modal ul.item-list li.item:not(.active):not(.inactive).ripple.ripple-active {499
background: #f5f5f5;500
}501
.modal ul.item-list li.item i.ico {502
color: #555555;503
user-select: none;504
pointer-events: none;505
}506
.modal ul.item-list li.item i.lang {507
display: flex;508
justify-content: center;509
align-items: center;510
font-style: normal;511
font-weight: 600;512
width: 24px;513
height: 24px;514
color: #555555;515
user-select: none;516
pointer-events: none;517
}518
.modal ul.item-list li.item .info {519
display: flex;520
flex-direction: column;521
margin-left: 10px;522
max-width: calc(100% - 24px - 10px);523
}524
.modal ul.item-list li.item .info p {525
display: flex;526
align-items: center;527
font-weight: 500;528
color: #555555;529
user-select: none;530
pointer-events: none;531
}532
.modal ul.item-list li.item .info span {533
display: block;534
margin-top: 3px;535
font-size: 12px;536
color: #9E9E9E;537
user-select: none;538
pointer-events: none;539
white-space: nowrap;540
overflow: hidden;541
text-overflow: ellipsis;542
}543
.modal ul.item-list li.item.active {544
background: #EEEEEE;545
}546
.modal ul.item-list li.item.active.ripple.ripple-active {547
background: #e9e9e9;548
}549
.modal ul.item-list li.item.inactive i.ico {550
color: #E0E0E0;551
}552
.modal ul.item-list li.item.inactive .info p {553
color: #9E9E9E;554
}555
.modal ul.item-list li.item.inactive .info span {556
color: #9E9E9E;557
}558
.tooltip {559
position: relative;560
display: flex;561
justify-content: center;562
align-items: center;563
}564
.tooltip:hover::before {565
opacity: 0.95;566
transition-delay: 0.6s;567
}568
.tooltip:hover::after {569
opacity: 0.95;570
transition-delay: 0.6s;571
}572
.tooltip::after {573
display: flex;574
opacity: 0;575
content: attr(data-title);576
justify-content: center;577
align-items: center;578
position: absolute;579
background: #24292E;580
color: white;581
min-height: 24px;582
padding: 0 12px;583
border-radius: 999px;584
font-size: 12px;585
top: auto;586
bottom: -64%;587
white-space: nowrap;588
z-index: 9999;589
pointer-events: none;590
}
4
<meta charset="utf-8">5
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">6
<meta name="author" content="typable">7
<meta name="keywords" content="">8
<meta name="description" content="Draw with friends together">9
<meta name="robots" content="index,follow">7
<meta name="keywords" content="outline, typable, drawing, multiplayer">8
<meta name="description" content="Draw with friends together.">9
<meta name="robots" content="noindex, nofollow">10
<meta name="google" content="notranslate">11
<meta name="theme-color" content="#FFFFFF" />12
<title>Outline</title>12
<link href="css/style.css" rel="stylesheet">13
<!-- <script src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" data-ad-client="ca-pub-3486258424475487" async></script> -->14
<script src="https://www.gstatic.com/firebasejs/7.14.5/firebase-app.js"></script>15
<script src="https://www.gstatic.com/firebasejs/7.14.5/firebase-analytics.js"></script>16
<script src="https://www.gstatic.com/firebasejs/7.14.5/firebase-performance.js"></script>17
<script src="js/lib/socket.io.min.js"></script>18
<script src="js/index.js" type="module"></script>13
<link href="./manifest.json" rel="manifest">14
<link href="./asset/img/favicon.png" rel="shortcut icon" type="image/png">15
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" type="text/css" rel="stylesheet">16
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" type="text/css" rel="stylesheet">17
<link href="./css/style.css" rel="stylesheet">18
<script src="./js/index.js" type="module"></script>19
</head>20
<body>21
<canvas class="canvas"></canvas>22
<canvas class="overlay"></canvas>23
<div class="toolbar">24
<div class="actions">25
<button class="action tooltip" data-title="Color ( C )" data-action="color">26
<i class="ico">color_lens</i>27
</button>28
<button class="action tooltip" data-title="Scaling ( V )" data-action="scaling">29
<i class="ico">bubble_chart</i>30
</button>31
<button class="action tooltip" data-title="Clear ( T )" data-action="clear">32
<i class="ico">delete</i>33
</button>34
<button class="action tooltip" data-title="Save ( S )" data-action="save">35
<i class="ico">save</i>36
</button>21
<div class="wrapper"></div>22
<canvas id="canvas"></canvas>23
<canvas id="overlay"></canvas>24
<div class="controls">25
<div class="notification">26
<p class="content"></p>27
</div>38
</div>39
<div class="wrapper">40
<div class="info">41
<ul class="info-list">42
<li class="info-item">43
<a href="https://github.com/typable/outline/issues" target="_blank">Found an issue?</a>44
</li>45
<li class="info-item">46
Powered by <a href="https://typable.dev">typable</a>47
</li>48
</ul>28
<div class="header-list">29
<div class="tool">30
<ul class="tool-list">31
<li class="tool-item ripple tooltip" data-lang="tool.colors" data-type="tooltip" data-title="Colors" data-event="toggle.modal" data-code="colors">32
<i class="ico">palette</i>33
</li>34
<li class="tool-item ripple tooltip" data-lang="tool.scale" data-type="tooltip" data-title="Scale" data-event="toggle.modal" data-code="scale">35
<i class="ico">bubble_chart</i>36
</li>37
<li class="tool-item ripple tooltip" data-lang="tool.pencil" data-type="tooltip" data-title="Pencil" data-event="toggle.modal" data-code="pencil">38
<i class="ico">edit</i>39
</li>40
<ul>41
</div>42
<div class="action">43
<ul class="action-list">44
<li class="action-item ripple tooltip inactive" data-lang="tool.undo" data-type="tooltip" data-title="Undo">45
<i class="ico">undo</i>46
</li>47
<li class="tool-item ripple tooltip inactive" data-lang="tool.redo" data-type="tooltip" data-title="Redo">48
<i class="ico">redo</i>49
</li>50
<li class="tool-item ripple tooltip" data-lang="tool.clear" data-type="tooltip" data-title="Clear" data-event="toggle.modal" data-code="clear">51
<i class="ico">clear</i>52
</li>53
<li class="tool-item ripple tooltip" data-lang="tool.capture" data-type="tooltip" data-title="Capture" data-event="toggle.modal" data-code="capture">54
<i class="ico">crop_free</i>55
</li>56
<ul>57
</div>58
<div class="option">59
<ul class="option-list">60
<li class="option-item ripple tooltip" data-lang="action.multiplayer" data-type="tooltip" data-title="Multiplayer" data-event="toggle.modal" data-code="multiplayer">61
<i class="ico">dns</i>62
</li>63
<li class="tool-item ripple tooltip" data-lang="action.account" data-type="tooltip" data-title="Account" data-event="toggle.modal" data-code="account">64
<i class="ico">person</i>65
</li>66
<li class="tool-item ripple tooltip" data-lang="action.more" data-type="tooltip" data-title="More" data-event="toggle.modal" data-code="more">67
<i class="ico">more_vert</i>68
</li>69
<ul>70
</div>71
</div>50
<div class="spinner hidden"></div>51
<div class="modal modal-join" data-modal="join">52
<input type="text" class="action-uuid" maxlength="20" spellcheck="false" autocomplete="off" placeholder="Choose a custom name">53
<div class="separator"></div>54
<button type="button" class="action-join success">Join</button>72
<div class="hotbar">73
<div class="color"></div>74
<div class="color"></div>75
<div class="color"></div>76
<div class="color"></div>77
<div class="color"></div>78
<div class="color"></div>79
</div>56
<div class="modal modal-save hidden" data-modal="save">57
<input type="text" class="action-file" maxlength="40" spellcheck="false" autocomplete="off" placeholder="Choose a file name">58
<div class="separator"></div>59
<div class="align">60
<button type="button" class="action-cancel">Cancel</button>61
<button type="button" class="action-save info">Save</button>80
<div class="modal colors-modal hidden">81
<div class="color"></div>82
<div class="color"></div>83
<div class="color"></div>84
<div class="color"></div>85
<div class="color"></div>86
<div class="color"></div>87
<div class="color"></div>88
<div class="color"></div>89
<div class="color"></div>90
<div class="color"></div>91
<div class="color"></div>92
<div class="color"></div>93
<div class="color"></div>94
<div class="color"></div>95
<div class="color"></div>96
<div class="color"></div>97
<div class="color"></div>98
<div class="color"></div>99
<div class="color"></div>100
<div class="color"></div>101
<div class="color"></div>102
<div class="color"></div>103
<div class="color"></div>104
<div class="color"></div>105
<div class="color"></div>106
<div class="color"></div>107
<div class="color"></div>108
<div class="color"></div>109
<div class="color"></div>110
<div class="color"></div>111
<div class="color"></div>112
<div class="color"></div>113
<div class="color"></div>114
<div class="color"></div>115
<div class="color"></div>116
<div class="color"></div>117
<div class="color"></div>118
<div class="color"></div>119
<div class="color"></div>120
<div class="color"></div>121
<div class="color"></div>122
<div class="color"></div>123
<div class="color"></div>124
<div class="color"></div>125
<div class="color"></div>126
<div class="color"></div>127
<div class="color"></div>128
<div class="color"></div>129
<div class="color"></div>130
<div class="color"></div>131
<div class="color"></div>132
<div class="color"></div>133
<div class="color"></div>134
<div class="color"></div>135
<div class="color"></div>136
</div>137
<div class="modal pencil-modal hidden">138
<div class="main">139
<ul class="item-list">140
<li class="item ripple active" data-event="change.pencil" data-code="pen">141
<i class="ico">edit</i>142
<div class="info">143
<p data-lang="pencil.pen">Pen</p>144
<span data-lang="pencil.pen.info">Default pen</span>145
</div>146
</li>147
<li class="item ripple" data-event="change.pencil" data-code="marker">148
<i class="ico">149
<svg style="width: 24px; height: 24px;" viewBox="0 0 24 24">150
<path fill="#555555" d="M18.62,1.5C18.11,1.5 17.6,1.69 17.21,2.09L10.75,8.55L14.95,12.74L21.41,6.29C22.2,5.5 22.2,4.24 21.41,3.46L20.04,2.09C19.65,1.69 19.14,1.5 18.62,1.5M9.8,9.5L3.23,16.07L3.93,16.77C3.4,17.24 2.89,17.78 2.38,18.29C1.6,19.08 1.6,20.34 2.38,21.12C3.16,21.9 4.42,21.9 5.21,21.12C5.72,20.63 6.25,20.08 6.73,19.58L7.43,20.27L14,13.7" />151
</svg>152
</i>153
<div class="info">154
<p data-lang="pencil.marker">Marker</p>155
</div>156
</li>157
<li class="item ripple" data-event="change.pencil" data-code="eraser">158
<i class="ico">159
<svg style="width: 24px; height: 24px;" viewBox="0 0 24 24">160
<path fill="#555555" d="M15.14,3C14.63,3 14.12,3.2 13.73,3.59L2.59,14.73C1.81,15.5 1.81,16.77 2.59,17.56L5.03,20H12.69L21.41,11.27C22.2,10.5 22.2,9.23 21.41,8.44L16.56,3.59C16.17,3.2 15.65,3 15.14,3M17,18L15,20H22V18" />161
</svg>162
</i>163
<div class="info">164
<p data-lang="pencil.eraser">Eraser</p>165
</div>166
</li>167
</ul>168
</div>169
</div>64
<div class="modal modal-clear hidden" data-modal="clear">65
<p>Do you want to clear the screen?</p>170
<div class="modal scale-modal hidden">171
<input class="scale" type="range" min="2" max="50" value="14" step="1">172
</div>173
<div class="modal clear-modal hidden">174
<p class="info" data-lang="modal.clear.info">Do you want to clear the screen?</p>175
<div class="align">67
<button type="button" class="action-cancel">Cancel</button>68
<button type="button" class="action-clear danger">Clear</button>176
<button class="btn btn-cancel button ripple" data-event="close.modal" data-lang="modal.clear.action.cancel">No</button>177
<button class="btn btn-apply button danger ripple" data-event="clear" data-lang="modal.clear.action.apply">Yes</button>178
</div>179
</div>71
<div class="modal modal-scaling hidden" data-modal="scaling">180
<div class="modal capture-modal hidden">181
<p class="info" data-lang="modal.capture.info">Do you want to save this screen?</p>182
<div class="preview"></div>183
<div class="align">73
<input type="range" min="1" max="15" value="3" step="0.5" class="action-range">74
<div class="preview">75
<div class="circle"></div>76
</div>184
<button class="btn btn-cancel button ripple " data-event="close.modal" data-lang="modal.capture.action.cancel">No</button>185
<button class="btn btn-apply button prime ripple" data-lang="modal.capture.action.apply">Yes</button>186
</div>78
<div class="separator"></div>79
<div class="align">80
<button type="button" class="action-cancel">Cancel</button>81
<button type="button" class="action-scaling info">Change</button>187
</div>188
<div class="modal multiplayer-modal hidden">189
<div class="main">190
<ul class="item-list">191
<li class="item ripple">192
<i class="ico">login</i>193
<div class="info">194
<p data-lang="multiplayer.join">Join</p>195
<span data-lang="multiplayer.join.info">Search for channel to join</span>196
</div>197
</li>198
<li class="item ripple">199
<i class="ico">add</i>200
<div class="info">201
<p data-lang="multiplayer.create">Create</p>202
<span data-lang="multiplayer.create.info">Create a new channel</span>203
</div>204
</li>205
<li class="item ripple inactive">206
<i class="ico">device_hub</i>207
<div class="info">208
<p data-lang="multiplayer.host" data-badge="true">Host<b class="badge prime">Prime</b></p>209
<span data-lang="multiplayer.host.info">Host current state as channel</span>210
</div>211
</li>212
<!--213
<li class="separator"></li>214
<li class="item ripple" data-event="open.tab" data-code="customize">215
<i class="ico">build</i>216
<div class="info">217
<p data-lang="multiplayer.customize">Customize</p>218
<span data-lang="multiplayer.host.info">Manage own channel</span>219
</div>220
</li>221
<li class="item ripple">222
<i class="ico">person_add</i>223
<div class="info">224
<p data-lang="multiplayer.invite-friends">Invite friends</p>225
<span data-lang="multiplayer.invite-friends.info">Share channel with others</span>226
</div>227
</li>228
<li class="item ripple">229
<i class="ico">close</i>230
<div class="info">231
<p data-lang="multiplayer.leave">Leave</p>232
<span data-lang="multiplayer.leave.info">Leave current channel</span>233
</div>234
</li>235
-->236
</ul>237
</div>238
<ul class="tab-list">239
<li class="tab customize-tab">240
<div class="header">241
<div class="back ripple" data-event="close.tab">242
<i class="ico">keyboard_arrow_left</i>243
</div>244
<div class="info">245
<p data-lang="multiplayer.customize">Customize</p>246
<span data-lang="multiplayer.host.info">Manage own channel</span>247
</div>248
</div>249
<ul class="item-list">250
<li class="item ripple">251
<i class="ico">info</i>252
<div class="info">253
<p data-lang="channel.information">Info</p>254
<span data-lang="channel.information.info">Customize channel info</span>255
</div>256
</li>257
<li class="item ripple">258
<i class="ico">lock</i>259
<div class="info">260
<p data-lang="channel.private">Private</p>261
<span data-lang="channel.private.info">Prevent channel being listed</span>262
</div>263
</li>264
<li class="item ripple inactive">265
<i class="ico">watch_later</i>266
<div class="info">267
<p data-lang="channel.permanent" data-badge="true">Permanent<b class="badge prime">Prime</b></p>268
<span data-lang="channel.permanent.info">Keep channel permanent online</span>269
</div>270
</li>271
<li class="item ripple inactive">272
<i class="ico">verified_user</i>273
<div class="info">274
<p data-lang="channel.roles" data-badge="true">Roles<b class="badge prime">Prime</b></p>275
<span data-lang="channel.roles.info">Manage user permissions</span>276
</div>277
</li>278
</ul>279
</li>280
</ul>281
</div>84
<div class="modal modal-color hidden" data-modal="color">85
<div class="bucket-list"></div>86
<div class="align">87
<button type="button" class="action-cancel">Cancel</button>282
<div class="modal account-modal hidden">283
<div class="main">284
<ul class="item-list">285
<li class="item ripple">286
<i class="ico">publish</i>287
<div class="info">288
<p data-lang="account.upgrade" data-badge="true">Upgrade<b class="badge prime">Get Prime</b></p>289
<span data-lang="account.upgrade.info">Unlock all features</span>290
</div>291
</li>292
<li class="separator"></li>293
<li class="item ripple">294
<i class="ico">card_giftcard</i>295
<div class="info">296
<p data-lang="account.support">Support</p>297
<span data-lang="account.support.info">Donate a cup of coffee</span>298
</div>299
</li>300
<li class="item ripple" data-event="open.tab" data-code="feedback">301
<i class="ico">question_answer</i>302
<div class="info">303
<p data-lang="account.feedback">Feedback</p>304
<span data-lang="account.feedback.info">Improve our service</span>305
</div>306
</li>307
<!--308
<li class="separator"></li>309
<li class="item ripple">310
<i class="ico">account_circle</i>311
<div class="info">312
<p data-lang="account.profile">Profile</p>313
<span data-lang="account.profile.info">View your profile</span>314
</div>315
</li>316
<li class="item ripple">317
<i class="ico">exit_to_app</i>318
<div class="info">319
<p data-lang="account.logout">Log out</p>320
<span data-lang="account.logout.info">Sign out from account</span>321
</div>322
</li>323
-->324
</ul>325
</div>326
<ul class="tab-list">327
<li class="tab feedback-tab hidden">328
<div class="header">329
<div class="back ripple" data-event="close.tab">330
<i class="ico">keyboard_arrow_left</i>331
</div>332
<div class="info">333
<p data-lang="account.feedback">Feedback</p>334
<span data-lang="account.feedback.info">Improve our service</span>335
</div>336
</div>337
<ul class="item-list">338
<li class="separator"></li>339
<li class="item ripple" data-event="toggle.share-usage-data">340
<i class="ico">toggle_off</i>341
<div class="info">342
<p data-lang="more.feedback.share-usage-data">Share usage data</p>343
<span data-lang="more.feedback.share-usage-data.info">Sends crash reports</span>344
</div>345
</li>346
</ul>347
</li>348
</ul>349
</div>90
<div class="modal modal-error hidden" data-modal="error">91
<p>Service currently unavailable! Try again later.</p>92
<div class="align">93
<button type="button" class="action-reconnect danger">Reconnect</button>350
<div class="modal more-modal hidden">351
<div class="main">352
<ul class="item-list">353
<li class="item ripple" data-event="open.tab" data-code="help">354
<i class="ico">help</i>355
<div class="info">356
<p data-lang="more.help">Help</p>357
<span data-lang="more.help.info">Learn more about the features</span>358
</div>359
</li>360
<li class="item ripple" data-event="open.tab" data-code="language">361
<i class="ico">language</i>362
<div class="info">363
<p data-lang="more.language" data-badge="true">Language<b class="badge beta">Beta</b></p>364
<span data-lang="more.language.info">Choose preferred language</span>365
</div>366
</li>367
<li class="item ripple" data-event="open.tab" data-code="device">368
<i class="ico">power</i>369
<div class="info">370
<p data-lang="more.input-device">Input Device</p>371
<span data-lang="more.input-device.info">Choose preferred input device</span>372
</div>373
</li>374
<li class="item ripple" data-event="open.tab" data-code="appearance">375
<i class="ico">brush</i>376
<div class="info">377
<p data-lang="more.appearance">Appearance</p>378
<span data-lang="more.appearance.info">Customize how you want</span>379
</div>380
</li>381
</ul>382
</div>383
<ul class="tab-list">384
<li class="tab help-tab hidden">385
<div class="header">386
<div class="back ripple" data-event="close.tab">387
<i class="ico">keyboard_arrow_left</i>388
</div>389
<div class="info">390
<p data-lang="more.help">Help</p>391
<span data-lang="more.help.info">Learn more about the features</span>392
</div>393
</div>394
<ul class="item-list">395
<li class="separator"></li>396
<li class="item ripple">397
<i class="ico">bookmark_border</i>398
<div class="info">399
<p data-lang="more.help.controls">Controls</p>400
<span data-lang="semoretting.help.controls.info">Keyboard, Touch, Controller</span>401
</div>402
</li>403
<li class="item ripple">404
<i class="ico">bookmark_border</i>405
<div class="info">406
<p data-lang="more.help.multiplayer">Multiplayer</p>407
<span data-lang="more.help.multiplayer.info">Channel, Roles</span>408
</div>409
</li>410
</ul>411
</li>412
<li class="tab language-tab hidden">413
<div class="header">414
<div class="back ripple" data-event="close.tab">415
<i class="ico">keyboard_arrow_left</i>416
</div>417
<div class="info">418
<p data-lang="more.language" data-badge="true">Language<b class="badge beta">Beta</b></p>419
<span data-lang="more.language.info">Choose preferred language</span>420
</div>421
</div>422
<ul class="item-list">423
<li class="separator"></li>424
<li class="item ripple active" data-event="change.language" data-code="en">425
<i class="lang">EN</i>426
<div class="info">427
<p>English</p>428
<span data-lang="more.language.default">Default language</span>429
</div>430
</li>431
<li class="item ripple" data-event="change.language" data-code="de">432
<i class="lang">DE</i>433
<div class="info">434
<p>Deutsch</p>435
</div>436
</li>437
</ul>438
</li>439
<li class="tab device-tab hidden">440
<div class="header">441
<div class="back ripple" data-event="close.tab">442
<i class="ico">keyboard_arrow_left</i>443
</div>444
<div class="info">445
<p data-lang="more.input-device">Input Device</p>446
<span data-lang="more.input-device.info">Choose preferred input device</span>447
</div>448
</div>449
<ul class="item-list">450
<li class="separator"></li>451
<li class="item ripple inactive" data-event="change.device" data-code="mouse">452
<i class="ico">mouse</i>453
<div class="info">454
<p data-lang="more.input-device.mouse">Mouse</p>455
<span data-lang="more.input-device.default">Default input device</span>456
</div>457
</li>458
<li class="item ripple inactive" data-event="change.device" data-code="touch">459
<i class="ico">gesture</i>460
<div class="info">461
<p data-lang="more.input-device.touch">Touch</p>462
<span data-lang="more.input-device.touch.info">Finger interaction</span>463
</div>464
</li>465
<li class="item ripple inactive" data-event="change.device" data-code="pen">466
<i class="ico">edit</i>467
<div class="info">468
<p data-lang="more.input-device.pencil" data-badge="true">Pencil<b class="badge prime">Prime</b></p>469
<span data-lang="more.input-device.pencil.info">Stylus pen, touch disabled</span>470
</div>471
</li>472
<li class="item ripple inactive" data-event="change.device" data-code="gamepad">473
<i class="ico">sports_esports</i>474
<div class="info">475
<p data-lang="more.input-device.gamepad" data-badge="true">Gamepad<b class="badge prime">Prime</b></p>476
<span data-lang="more.input-device.gamepad.info">Stadia Controller supported</span>477
</div>478
</li>479
</ul>480
</li>481
<li class="tab appearance-tab hidden">482
<div class="header">483
<div class="back ripple" data-event="close.tab">484
<i class="ico">keyboard_arrow_left</i>485
</div>486
<div class="info">487
<p data-lang="more.appearance">Appearance</p>488
<span data-lang="more.appearance.info">Customize how you want</span>489
</div>490
</div>491
<ul class="item-list">492
<li class="separator"></li>493
<li class="item ripple" data-event="toggle.fullscreen">494
<i class="ico">toggle_off</i>495
<div class="info">496
<p data-lang="more.appearance.fullscreen">Fullscreen</p>497
<span data-lang="more.appearance.fullscreen.info">Toggle Fullscreen</span>498
</div>499
</li>500
<li class="item ripple" data-event="toggle.view-mode">501
<i class="ico">toggle_off</i>502
<div class="info">503
<p data-lang="more.appearance.view-mode">View Mode</p>504
<span data-lang="more.appearance.view-mode.info">Tools and drawing disabled</span>505
</div>506
</li>507
<li class="item ripple inactive" data-event="toggle.dark-mode">508
<i class="ico">toggle_off</i>509
<div class="info">510
<p data-lang="more.appearance.dark-mode" data-badge="true">Dark Mode<b class="badge prime">Prime</b></p>511
<span data-lang="more.appearance.dark-mode.info">More pleasant for your eyes</span>512
</div>513
</li>514
</ul>515
</li>516
</ul>517
</div>518
</div>519
<script type="text/javascript">521
if('serviceWorker' in navigator) {522
window.addEventListener('load', function(event) {523
navigator.serviceWorker.register('https://server.typable.dev/outline/service-worker.js');524
});525
}527
</script>528
</body>529
</html>
1
const DEVICE_PIXEL_RATIO = window.devicePixelRatio || 1;3
import { COLORS } from '../constant.js';5
let active;6
let point_list = [];7
let width;8
let height;9
let size;10
let ratio;11
let backing_store_ratio;13
let canvas;14
let overlay;15
let memory;16
let g;17
let o;18
let m;20
function init() {21
width = window.innerWidth;22
height = window.innerHeight;23
canvas = document.querySelector('#canvas');24
overlay = document.querySelector('#overlay');25
memory = document.createElement('canvas');26
g = canvas.getContext('2d');27
o = overlay.getContext('2d');28
m = memory.getContext('2d');29
resize();30
window.addEventListener('resize', resize);31
}33
function get_canvas() {34
return canvas;35
}37
function resize() {38
width = window.innerWidth;39
height = window.innerHeight;40
let max = width > height ? width : height;41
if(!size || max > size) {42
size = max;43
}44
backing_store_ratio = (45
g.webkitBackingStorePixelRatio ||46
g.mozBackingStorePixelRatio ||47
g.msBackingStorePixelRatio ||48
g.oBackingStorePixelRatio ||49
g.backingStorePixelRatio || 150
)51
ratio = DEVICE_PIXEL_RATIO / backing_store_ratio;52
let buffer = document.createElement('canvas');53
let b = buffer.getContext('2d');54
scale_canvas(buffer, b);55
b.imageSmoothingEnabled = false;56
b.drawImage(canvas, 0, 0, size, size);57
scale_canvas(canvas, g);58
g.imageSmoothingEnabled = false;59
g.drawImage(buffer, 0, 0, size, size);60
scale_canvas(overlay, o);61
o.imageSmoothingEnabled = false;62
scale_canvas(memory, m);63
m.imageSmoothingEnabled = false;64
m.drawImage(canvas, 0, 0, size, size);65
}67
function scale_canvas(canvas, g) {68
if(DEVICE_PIXEL_RATIO !== backing_store_ratio) {69
canvas.width = size * ratio;70
canvas.height = size * ratio;71
canvas.style.width = size + 'px';72
canvas.style.height = size + 'px';73
}74
else {75
canvas.width = size;76
canvas.height = size;77
canvas.style.width = '';78
canvas.style.height = '';79
}80
g.scale(ratio, ratio);81
}83
function clear() {84
g.clearRect(0, 0, size, size);85
m.clearRect(0, 0, size, size);86
}88
function on_press(event, state) {89
point_list.push({90
x: event.layerX,91
y: event.layerY92
});93
active = true;94
}96
function on_move(event, state) {97
if(active) {98
g.clearRect(0, 0, size, size);99
g.drawImage(memory, 0, 0, size, size);100
point_list.push({101
x: event.layerX,102
y: event.layerY103
});104
draw_curve(state);105
}106
}108
function on_release(event) {109
if(active) {110
if(event && event.type === 'pointerup') {111
active = false;112
}113
m.clearRect(0, 0, size, size);114
m.drawImage(canvas, 0, 0, size, size);115
point_list = [];116
}117
}119
function draw_curve(state) {120
if(state.pencil === 'pen') {121
g.strokeStyle = COLORS[state.color];122
}123
if(state.pencil === 'marker') {124
g.strokeStyle = COLORS[state.color] + '88';125
}126
if(state.pencil === 'eraser') {127
g.strokeStyle = 'white';128
}129
g.lineCap = 'round';130
g.lineJoin = 'round';131
g.lineWidth = 2 * state.radius;132
if(point_list.length < 3) {133
g.fillStyle = COLORS[state.color];134
g.beginPath();135
g.arc(point_list[0].x, point_list[0].y, g.lineWidth / 2, 0, Math.PI * 2, !0);136
g.closePath();137
g.fill();138
return;139
}140
g.beginPath();141
g.moveTo(point_list[0].x, point_list[0].y);142
let i;143
for(i = 1; i < point_list.length - 2; i++) {144
let dx = (point_list[i].x + point_list[i + 1].x);145
let dy = (point_list[i].y + point_list[i + 1].y);146
g.quadraticCurveTo(point_list[i].x, point_list[i].y, parseInt(dx / 2), parseInt(dy / 2));147
}148
g.quadraticCurveTo(point_list[i].x, point_list[i].y, point_list[i + 1].x, point_list[i + 1].y);149
g.stroke();150
}152
function draw_cursor(state) {153
o.clearRect(0, 0, size, size);154
o.lineWidth = 2;155
if(state.point) {156
if(state.pencil === 'pen') {157
o.fillStyle = COLORS[state.color];158
}159
if(state.pencil === 'marker') {160
o.fillStyle = COLORS[state.color] + '88';161
}162
if(state.pencil === 'eraser') {163
o.fillStyle = COLORS[state.color] + '55';164
}165
o.beginPath();166
o.arc(state.point.x, state.point.y, 2 * state.radius / 2, 0, Math.PI * 2, !0);167
o.closePath();168
o.fill();169
o.strokeStyle = 'white';170
o.beginPath();171
o.arc(state.point.x, state.point.y, 2 * state.radius / 2, 0, Math.PI * 2, !0);172
o.closePath();173
o.stroke();174
if(state.pencil === 'eraser') {175
o.strokeStyle = 'white';176
o.beginPath();177
o.moveTo(state.point.x - state.radius * 0.5, state.point.y);178
o.lineTo(state.point.x + state.radius * 0.5, state.point.y);179
o.stroke();180
o.beginPath();181
o.moveTo(state.point.x, state.point.y - state.radius * 0.5);182
o.lineTo(state.point.x, state.point.y + state.radius * 0.5);183
o.stroke();184
}185
}186
}188
function clear_cursor() {189
o.clearRect(0, 0, size, size);190
}192
export default {193
init,194
get_canvas,195
resize,196
scale_canvas,197
clear,198
on_press,199
on_move,200
on_release,201
draw_curve,202
draw_cursor,203
clear_cursor204
};
1
const CONTROLLER_PATTERN = {2
0: 'A',3
1: 'B',4
2: 'X',5
3: 'Y',6
4: 'L1',7
5: 'R1',8
6: 'L2',9
7: 'R2',10
8: 'Option',11
9: 'Menu',12
10: 'L3',13
11: 'R3',14
12: 'Up',15
13: 'Down',16
14: 'Left',17
15: 'Right',18
16: 'Power',19
17: 'Assist',20
18: 'Capture'21
};23
let gamepad;24
let on_connect_callback;25
let on_disconnect_callback;27
/**28
Binds gamepad event handler.30
@function init31
@contructor32
*/33
function init() {34
window.addEventListener('gamepadconnected', function(event) {35
gamepad = event.gamepad;36
if(gamepad.vibrationActuator) {37
gamepad.vibrationActuator.playEffect('dual-rumble', {38
startDelay: 0,39
duration: 100,40
weakMagnitude: 1.0,41
strongMagnitude: 1.042
});43
}44
if(on_connect_callback) {45
on_connect_callback(gamepad);46
}47
});48
window.addEventListener('gamepaddisconnected', function() {49
gamepad = null;50
if(on_disconnect_callback) {51
on_disconnect_callback(gamepad);52
}53
});54
}56
/**57
Return controller formatted input.59
@function get60
@return {Object} The formatted input object.61
*/62
function get() {63
let result = {64
button: {},65
axes: {}66
};67
for(let [ id, key ] of Object.entries(CONTROLLER_PATTERN)) {68
if(gamepad.buttons[id]) {69
result.button[key] = gamepad.buttons[id];70
}71
}72
result.axes['Left'] = {73
x: gamepad.axes[0],74
y: gamepad.axes[1]75
};76
result.axes['Right'] = {77
x: gamepad.axes[2],78
y: gamepad.axes[3]79
};80
return result;81
}83
function on_connect(callback) {84
on_connect_callback = callback;85
}87
function on_disconnect(callback) {88
on_disconnect_callback = callback;89
}91
/**92
The callback gets called if a gamepad button was pressed.94
@function on_pressed95
@param {string} key - The input key.96
@callback callback97
*/98
function on_pressed(key, callback) {99
/*100
if(input.button[key]) {101
if(!pressed[key]) {102
pressed[key] = true;103
if(callback) {104
callback();105
}106
}107
}108
else {109
pressed[key] = false;110
}111
*/112
}114
export default {115
init,116
get,117
on_connect,118
on_disconnect,119
on_pressed120
};122
// !!! TODO !!!123
/*124
gamepad.init();125
// detect gamepad126
gamepad.on_connect(function(gamepad) {127
state.device_list.gamepad = true;128
show_notification('notification.input-device.gamepad.add');129
if(!state.device) {130
state.device = 'gamepad';131
state.device_fallback = 'gamepad';132
}133
update_device_list();134
});135
// gamepad removed136
gamepad.on_disconnect(function(gamepad) {137
state.device_list.gamepad = false;138
show_notification('notification.input-device.gamepad.remove');139
if(state.device === 'gamepad') {140
if(state.device !== state.device_fallback) {141
state.device = state.device_fallback;142
}143
else {144
state.device = null;145
}146
// point = { x: null, y: null };147
// last = { x: null, y: null };148
}149
update_device_list();150
});151
*/153
// !!! TODO !!!154
/*155
// cursor visible156
canvas.style.cursor = device === 'mouse' ? 'none' : 'default';157
if(device !== 'gamepad') {158
let pos = arrow_y * 5 + arrow_x;159
if(modal_colors[pos].classList.contains('focus')) {160
modal_colors[pos].classList.remove('focus');161
}162
}163
// navigate colors164
if(device === 'gamepad') {165
let pos = arrow_y * 5 + arrow_x;166
for(let [ i, item ] of Object.entries(modal_colors)) {167
item.classList[parseInt(i) == pos ? 'add' : 'remove']('focus');168
}169
}170
*/172
// !!! TODO !!!173
/*174
let gamepad = navigator.getGamepads()[0];175
if(gamepad) {176
if(device === 'gamepad') {177
if(point.x == null && point.y == null) {178
point.x = parseInt(window.innerWidth / 2);179
point.y = parseInt(window.innerHeight / 2);180
}181
let speed = 4;182
if(pressed['L2'] && !pressed['R2']) {183
speed = 10;184
}185
if(pressed['R2'] && !pressed['L2']) {186
speed = 1;187
}188
// colors189
key_pressed('Option', input, function() {190
toggle_modal(colors_modal);191
});192
// capture193
key_pressed('Capture', input, function() {194
toggle_modal(capture_modal);195
});196
// draw197
key_pressed('A', input, function() {198
last.x = null;199
last.y = null;200
if(!current_modal) {201
left_modal = false;202
}203
});204
// erase205
key_pressed('B', input, function() {206
last.x = null;207
last.y = null;208
if(current_tab) {209
close_tab(current_tab);210
left_modal = true;211
}212
else if(current_modal) {213
toggle_modal(current_modal);214
left_modal = true;215
}216
else {217
left_modal = false;218
}219
});220
// sprint221
key_pressed('L2', input);222
// sneak223
key_pressed('R2', input);224
// clear225
key_pressed('Y', input, function() {226
toggle_modal(clear_modal);227
});228
// radius229
let y = -(input.axes['Right'].y / 2);230
if(y !== 0 && radius + y > 2 && radius + y < 50 + 1) {231
radius += y;232
scale_range.value = radius;233
}234
// lock y235
key_pressed('L3', input, function() {236
lock_y = !lock_y;237
lock_x = false;238
});239
// lock x240
key_pressed('R3', input, function() {241
lock_x = !lock_x;242
lock_y = false;243
});244
// color-wheel left245
key_pressed('L1', input, function() {246
if(index > 0) {247
index--;248
for(let i in colors) {249
if(COLOR_LENGTH > i) {250
colors[i].classList[i == index ? 'add' : 'remove']('active');251
}252
}253
}254
});255
// color-wheel right256
key_pressed('R1', input, function() {257
if(index < COLOR_LENGTH - 1) {258
index++;259
for(let i in colors) {260
if(COLOR_LENGTH > i) {261
colors[i].classList[i == index ? 'add' : 'remove']('active');262
}263
}264
}265
});266
key_pressed('Up', input, function() {267
if(arrow_y > 0) {268
arrow_y--;269
}270
});271
key_pressed('Down', input, function() {272
if(arrow_y < 10) {273
arrow_y++;274
}275
});276
key_pressed('Left', input, function() {277
if(arrow_x > 0) {278
arrow_x--;279
}280
});281
key_pressed('Right', input, function() {282
if(arrow_x < 4) {283
arrow_x++;284
}285
});286
}287
}288
*/
1
const LINE_BREAK_PATTERN = /\r\n|\r|\n/;2
const PROPERTY_PATTERN = /^([\w+.-]+)=([^=]*)$/;4
let lang = {};5
let default_lang;6
let current_lang;8
/**9
Sets the default and current language.11
@function init12
@constructor13
@param {string} code - The locale code;14
*/15
function init(code) {16
default_lang = code;17
current_lang = code;18
}20
/**21
Reads all properties files in the given directory and specified locale code.23
@async24
@function load25
@param {string} path - The path to the locale files.26
@param {string[]} locales - The list containing all locales.27
@return {Object} The locale object.28
*/29
async function load(path, locales) {30
for(let code of locales) {31
let text = await fetch(`${path}/${code}.properties`)32
.then(function(response) {33
if(!response.ok) {34
throw new Error('(404) Not Found');35
}36
return response.text();37
})38
.catch(function(error) {39
console.error(`No properties file found for locale '${code}'!`, error);40
});41
if(text) {42
lang[code] = parse(text);43
}44
}45
}47
/**48
Converts properties text to a locale object.50
@function parse51
@param {string} text - Raw properties text data.52
@return {Object} The locale object.53
*/54
function parse(text) {55
let result = {};56
for(let line of text.split(LINE_BREAK_PATTERN)) {57
let match = PROPERTY_PATTERN.exec(line);58
if(match) {59
result[match[1]] = match[2];60
}61
}62
return result;63
}65
/**66
Returns the current locale.68
@function get_current69
@return {string} The current locale.70
*/71
function get_current() {72
return current_lang;73
}75
/**76
Returns the locale object by the given locale code.78
@function change79
@return {Object} The locale object.80
*/81
function get() {82
return lang[current_lang];83
}85
/**86
Changes language text from all HTMLElements with the specified datatag.88
@function change89
@param {string} code - The local code.90
*/91
function change(code) {92
if(lang[code]) {93
current_lang = code;94
let elements = document.querySelectorAll('[data-lang]');95
for(let item of elements) {96
let content = lang[code][item.dataset.lang];97
if(content) {98
let type = item.dataset.type || 'content';99
let badge;100
if(item.dataset.badge === 'true') {101
badge = item.querySelector('.badge');102
}103
switch(type) {104
case 'content':105
item.textContent = content;106
if(badge) {107
item.append(badge);108
}109
break;110
case 'tooltip':111
item.dataset.title = content;112
break;113
default:114
break;115
}116
}117
}118
}119
}121
export default {122
init,123
load,124
parse,125
get_current,126
get,127
change128
};
1
/**2
Binds event handler to provide ripple effect.4
@function init5
@constructor6
*/7
function init() {8
let elements = document.querySelectorAll('.ripple');9
for(let item of elements) {10
item.addEventListener('pointerdown', function(event) {11
item.classList.add('ripple-active');12
});13
}14
document.addEventListener('pointerup', function(event) {15
for(let item of elements) {16
item.classList.remove('ripple-active');17
}18
});19
}21
export default { init };
1
import constant from './mod/constant.js';2
import { uuid, download } from './mod/util.js';3
import { define, html } from './mod/node.js';4
import event from './mod/event.js';5
import paint from './mod/paint.js';6
import modal from './mod/modal.js';7
import socket from './mod/socket.js';9
const GOOGLE_API_KEY = 'QUl6YVN5QzZVcFRpNVlYc1h6eFJ2aEo4Z1RWbnJtTkpCQ2JCMjBn';11
export default {12
state: {13
last: null,14
cursor: null,15
radius: 3,16
color: '#000000',17
client: [],18
opened: true,19
current: undefined,20
modal: {},21
action: {},22
fps: 1000 / 60,23
then: Date.now()24
},25
template: {},26
modal: {},27
init: function() {28
this.constant = constant;29
this.event = event;30
this.paint = paint;31
this.modal = modal;32
this.socket = socket;34
// build35
this.node = define({36
canvas: '.canvas',37
overlay: '.overlay',38
toolbar: '.toolbar',39
wrapper: '.wrapper',40
modal: { query: '.modal', all: true },41
action: { query: '[data-action]', all: true },42
list: '.bucket-list',43
spinner: '.spinner'44
});46
this.template.bucket = html(function(item) {47
return `<div class="bucket${item.active ? ' active' : ''}"48
data-color="${item.code}"49
style="background: ${item.code}"></div>`;50
});51
this.node.bucket = [];52
for(let item of this.constant.basic) {53
let result = this.template.bucket.build(item);54
this.node.bucket.push(result.element);55
result.render(this.node.toolbar);56
}57
this.node.color = [];58
for(let item of this.constant.color) {59
let result = this.template.bucket.build(item);60
this.node.color.push(result.element);61
result.render(this.node.list);62
}64
// init65
this.event.init(this);66
this.paint.init(this);67
this.modal.init(this);68
this.socket.init(this);69
let that = this;71
// events72
this.event.bind(this.node.canvas, {73
prevent: ['dragstart', 'contextmenu'],74
begin: ['mousedown', 'touchstart'],75
drag: ['mousemove', 'touchmove']76
});77
this.event.bind(document, {78
move: ['mousemove', 'touchmove'],79
end: ['mouseup', 'touchend', 'mouseleave'],80
key: 'keydown',81
out: 'mouseout',82
scroll: { type: 'wheel', passive: false }83
});84
this.event.bind(window, {85
resize: 'resize'86
});87
this.event.bind(this.node.bucket, {88
button: 'mousedown'89
});90
this.event.resize();92
// actions93
this.modal.get('color').action.open.before = function(modal) {94
for(let item of that.node.color) {95
item.classList[that.state.color === item.dataset.color ? 'add' : 'remove']('active');96
}97
}99
this.modal.get('join').element.querySelector('.action-uuid').focus();100
this.event.action(this.modal.get('join').action.uuid, 'keydown', function(event) {101
let input = that.modal.get('join').element.querySelector('.action-uuid');102
input.classList.remove('invalid');103
if(event.keyCode === 13) {104
that.state.name = input.value.replace(/\s+/g, '');105
if(that.state.name.length >= 3 && that.state.name.length <= 20) {106
that.state.uuid = that.state.name + '-' + uuid();107
that.socket.connect();108
that.modal.load();109
}110
else {111
input.classList.add('invalid');112
}113
}114
});115
this.event.action(this.modal.get('join').action.join, 'click', function(event) {116
let input = that.modal.get('join').element.querySelector('.action-uuid');117
that.state.name = input.value.replace(/\s+/g, '');118
if(that.state.name.length >= 3 && that.state.name.length <= 20) {119
that.state.uuid = that.state.name + '-' + uuid();120
that.socket.connect();121
that.modal.load();122
}123
else {124
input.classList.add('invalid');125
}126
});127
this.modal.get('scaling').action.open.before = function(modal) {128
modal.element.querySelector('input.action-range').value = that.state.radius;129
let circle = modal.element.querySelector('.circle');130
circle.style.width = that.state.radius * 4 + 'px';131
circle.style.height = that.state.radius * 4 + 'px';132
}133
this.event.action(this.modal.get('scaling').action.range, 'input', function(event) {134
setTimeout(function() {135
let circle = that.modal.get('scaling').element.querySelector('.modal .circle');136
circle.style.width = event.target.value * 4 + 'px';137
circle.style.height = event.target.value * 4 + 'px';138
}, 10);139
});140
this.event.action(this.modal.get('scaling').action.scaling, 'click', function(event) {141
that.state.radius = parseInt(that.modal.get('scaling').element.querySelector('.modal input.action-range').value);142
that.modal.close();143
});144
this.event.action(this.modal.get('clear').action.clear, 'click', function(event) {145
that.paint.g.fillStyle = 'white';146
that.paint.g.fillRect(0, 0, window.innerWidth, window.innerHeight);147
that.socket.clear();148
that.modal.close();149
});150
this.modal.get('save').action.open.before = function(modal) {151
modal.element.querySelector('input.action-file').value = 'outline-image-' + uuid();152
let input = that.modal.get('save').element.querySelector('.modal input.action-file');153
input.classList.remove('invalid');154
}155
this.event.action(this.modal.get('save').action.save, 'click', function(event) {156
let input = that.modal.get('save').element.querySelector('.modal input.action-file');157
input.classList.remove('invalid');158
let file = input.value.replace(/\s+/g, '');159
if(file.length >= 3 && file.length <= 40) {160
download(file, that.node.canvas.toDataURL('image/jpg'));161
that.modal.close();162
}163
else {164
input.classList.add('invalid');165
}166
});167
for(let item of this.node.color) {168
item.addEventListener('click', function(event) {169
that.state.color = item.dataset.color;170
for(let _item of that.node.bucket) {171
_item.classList.remove('active');172
}173
that.modal.close();174
});175
}176
this.event.action(this.modal.get('error').action.reconnect, 'click', function(event) {177
that.modal.load();178
that.socket.reconnect();179
});180
this.loop();181
},182
update: function() {183
this.socket.cursor();184
this.paint.o.clearRect(0, 0, window.innerWidth, window.innerHeight);185
this.paint.cursor(this.state);186
for(let client of Object.values(this.state.client)) {187
this.paint.cursor(client);188
}189
},190
loop: function() {191
requestAnimationFrame(this.loop.bind(this));192
this.state.now = Date.now();193
this.state.elapsed = this.state.now - this.state.then;195
if(this.state.elapsed > this.state.fps) {196
this.state.then = this.state.now - (this.state.elapsed % this.state.fps);197
this.update();198
}199
}200
};
1
const COLORS = [2
'#FFCDD2',3
'#E57373',4
'#F44336',5
'#D32F2F',6
'#B71C1C',7
'#F8BBD0',8
'#F06292',9
'#E91E63',10
'#C2185B',11
'#880E4F',12
'#E1BEE7',13
'#BA68C8',14
'#9C27B0',15
'#7B1FA2',16
'#4A148C',17
'#BBDEFB',18
'#64B5F6',19
'#2196F3',20
'#1976D2',21
'#0D47A1',22
'#B2EBF2',23
'#4DD0E1',24
'#00BCD4',25
'#0097A7',26
'#006064',27
'#B2DFDB',28
'#4DB6AC',29
'#009688',30
'#00796B',31
'#004D40',32
'#C8E6C9',33
'#81C784',34
'#4CAF50',35
'#388E3C',36
'#1B5E20',37
'#FFF9C4',38
'#FFF176',39
'#FFEB3B',40
'#FBC02D',41
'#F57F17',42
'#FFE0B2',43
'#FFB74D',44
'#FF9800',45
'#F57C00',46
'#E65100',47
'#D7CCC8',48
'#A1887F',49
'#795548',50
'#5D4037',51
'#3E2723',52
'#F5F5F5',53
'#E0E0E0',54
'#9E9E9E',55
'#616161',56
'#141414'57
];59
export { COLORS };
1
import app from './app.js';1
import { COLORS } from './constant.js';2
import { uuid, query, prevent } from './util.js';3
const GOOGLE_API_KEY = 'QUl6YVN5QzZVcFRpNVlYc1h6eFJ2aEo4Z1RWbnJtTkpCQ2JCMjBn';4
// addons5
import canvas from './addon/canvas.js';6
import locale from './addon/locale.js';7
import ripple from './addon/ripple.js';8
// import gamepad from './addon/gamepad.js';5
window.addEventListener('load', function(event) {10
let node;11
let state = {12
color: 54,13
color_list: [54, 2, 17, 27, 37, 12],14
radius: 14,15
index: 0,16
device: null,17
device_fallback: null,18
device_list: {19
mouse: false,20
touch: false,21
pen: false,22
gamepad: false23
},24
pencil_list: [25
'pen',26
'marker',27
'eraser'28
],29
pencil: 'pen',30
timestamp: null,31
modal: null,32
tab: null,33
option: {34
view_mode: false35
}36
};38
window.addEventListener('load', init);40
function init() {42
canvas.init();43
locale.init('en');44
locale.load('./asset/lang', ['en', 'de']);45
ripple.init();47
node = query({48
wrapper: '.wrapper',49
controls: '.controls',50
modal_list: { query: '.modal', all: true },51
tab_list: { query: '.tab', all: true },52
header: '.header-list',53
hotbar: '.hotbar',54
hotbar_list: { query: '.hotbar .color', all: true },55
modal_color_list: { query: '.colors-modal .color', all: true },56
language_list: { query: '.more-modal .language-tab .item[data-event="change.language"]', all: true },57
device_list: { query: '.more-modal .device-tab .item[data-event="change.device"]', all: true },58
pencil_list: { query: '.pencil-modal .item[data-event="change.pencil"]', all: true },59
modal_event_list: { query: '[data-event*=".modal"]', all: true },60
tab_event_list: { query: '[data-event*=".tab"]', all: true },61
tool_list: { query: '.tool', all: true },62
action_list: { query: '.action', all: true },63
notification: '.notification',64
scale_input: 'input.scale[type="range"]',65
clear: 'button.btn-apply[data-event="clear"]',66
pencil_tool: '.tool-item[data-code="pencil"]',67
option_event_fullscreen: '[data-event="toggle.fullscreen"]',68
option_event_view_mode: '[data-event="toggle.view-mode"]'69
});71
fill_hotbar_list();72
fill_modal_color_list();74
bind_events();76
node.wrapper.animate([77
{ opacity: 1 },78
{ opacity: 0, pointerEvents: 'none' }79
], {80
delay: 100,81
duration: 500,82
fill: 'both'83
});84
node.hotbar.animate([85
{ opacity: 0, bottom: '-10px' },86
{ opacity: 1 }87
], {88
delay: 600,89
easing: 'ease-out',90
duration: 250,91
fill: 'both'92
});93
}95
function bind_events() {96
document.addEventListener('dragstart', prevent);97
document.addEventListener('contextmenu', prevent);98
document.addEventListener('pointerdown', on_pointerdown);99
document.addEventListener('pointermove', on_pointermove);100
document.addEventListener('pointerup', on_pointerup);101
document.addEventListener('pointerout', on_pointerout);102
document.addEventListener('keydown', on_keydown);103
document.addEventListener('wheel', on_wheel);104
document.addEventListener('wheel', function(event) {105
if(event.ctrlKey) {106
prevent(event);107
}108
}, { passive: false });109
document.addEventListener('touchmove', function(event) {110
if(event.target !== node.scale_input) {111
event.preventDefault();112
}113
}, { passive: false });7
if(typeof firebase !== 'undefined') {8
firebase.initializeApp({9
apiKey: atob(GOOGLE_API_KEY),10
authDomain: "typable-website.firebaseapp.com",11
databaseURL: "https://typable-website.firebaseio.com",12
projectId: "typable-website",13
storageBucket: "typable-website.appspot.com",14
messagingSenderId: "1097239723234",15
appId: "1:1097239723234:web:a9b8491f4778f46b96f2bb",16
measurementId: "G-6881VEFYTQ"115
for(let item of node.language_list) {116
item.addEventListener('click', function(event) {117
let code = item.dataset.code;118
locale.change(code);119
update_language_list();120
});121
}122
for(let item of node.device_list) {123
item.addEventListener('click', function(event) {124
let code = item.dataset.code;125
if(state.device_list[code]) {126
state.device = code;127
update_device_list();128
}129
});130
}131
for(let item of node.pencil_list) {132
item.addEventListener('click', function(event) {133
state.pencil = item.dataset.code;134
update_pencil_list();135
state.modal = null;136
update_modal_list();137
});138
}139
for(let item of node.modal_event_list) {140
item.addEventListener('click', function(event) {141
let code = item.dataset.code;142
let match = /^(toggle|open|close).modal$/.exec(item.dataset.event);143
if(match) {144
if(!item.classList.contains('inactive')) {145
switch(match[1]) {146
case 'toggle':147
if(code) {148
state.modal = state.modal !== code ? code : null;149
update_modal_list();150
}151
break;152
case 'open':153
if(code && state.modal !== code) {154
state.modal = code;155
update_modal_list();156
}157
break;158
case 'close':159
if(state.modal !== null) {160
state.modal = null;161
update_modal_list();162
}163
break;164
default:165
break;166
}167
}168
}169
});170
}171
for(let item of node.tab_event_list) {172
item.addEventListener('click', function(event) {173
let code = item.dataset.code;174
let match = /^(open|close).tab/.exec(item.dataset.event);175
if(match) {176
switch(match[1]) {177
case 'open':178
if(code && state.tab !== code) {179
state.tab = code;180
update_tab_list();181
}182
break;183
case 'close':184
if(state.tab !== null) {185
state.tab = null;186
update_tab_list();187
}188
break;189
default:190
break;191
}192
}193
});18
firebase.analytics();19
firebase.performance();194
}195
node.scale_input.addEventListener('input', function(event) {196
state.radius = parseInt(node.scale_input.value);197
state.point = {198
x: parseInt(window.innerWidth / 2),199
y: parseInt(window.innerHeight / 2)200
};201
canvas.draw_cursor(state);202
});203
node.clear.addEventListener('click', function(event) {204
canvas.clear();205
show_notification('notification.clear');206
state.modal = null;207
update_modal_list();208
});209
node.option_event_fullscreen.addEventListener('click', function(event) {210
if(!document.fullscreenElement) {211
document.documentElement.requestFullscreen();212
}213
else if(document.exitFullscreen) {214
document.exitFullscreen();215
}216
});217
document.addEventListener('fullscreenchange', on_fullscreenchange);218
node.option_event_view_mode.addEventListener('click', function(event) {219
state.option.view_mode = !state.option.view_mode;220
update_view_mode_option();221
});222
}224
function update_language_list() {225
let lang = locale.get_current();226
for(let item of node.language_list) {227
let code = item.dataset.code;228
item.classList[code === lang ? 'add' : 'remove']('active');229
}230
}232
function update_device_list() {233
canvas.get_canvas().style.cursor = state.device === 'mouse' ? 'none' : '';234
for(let item of node.device_list) {235
let code = item.dataset.code;236
item.classList[code === state.device ? 'add' : 'remove']('active');237
item.classList[state.device_list[code] ? 'remove' : 'add']('inactive');238
}239
}241
function update_pencil_list() {242
for(let item of node.pencil_list) {243
let code = item.dataset.code;244
item.classList[code === state.pencil ? 'add' : 'remove']('active');245
if(code === state.pencil) {246
node.pencil_tool.querySelector('i.ico').innerHTML = item.querySelector('i.ico').innerHTML;247
}248
}249
}251
function update_hotbar() {252
canvas.on_release(event);253
for(let item of node.hotbar_list) {254
item.classList[node.hotbar_list[state.index] === item ? 'add' : 'remove']('active');255
}256
}258
function update_focus(bool) {259
for(let item of node.hotbar_list) {260
item.style.pointerEvents = bool ? '' : 'none';261
}262
for(let item of node.tool_list) {263
item.style.pointerEvents = bool ? '' : 'none';264
}265
for(let item of node.action_list) {266
item.style.pointerEvents = bool ? '' : 'none';267
}268
}270
function update_modal_list() {271
for(let item of node.modal_list) {272
item.classList.add('hidden');273
}274
for(let item of node.modal_event_list) {275
item.classList.remove('active');276
}277
state.tab = null;278
update_tab_list();279
if(state.modal) {280
let modal = document.querySelector(`.modal.${state.modal}-modal`);281
let button = document.querySelector(`[data-event*=".modal"][data-code="${state.modal}"]`);282
if(modal) {283
modal.classList.remove('hidden');284
modal.animate([285
{ opacity: 0, marginTop: '-6px' },286
{ opacity: 1, marginTop: '0' }287
], {288
duration: 100,289
fill: 'both'290
});291
}292
if(button) {293
button.classList.add('active');294
}295
}296
}298
function update_tab_list() {299
for(let item of node.modal_list) {300
let main = item.querySelector('.main');301
if(main) {302
main.classList.remove('hidden');303
main.style.marginLeft = '0';304
}305
}306
for(let item of node.tab_list) {307
item.classList.add('hidden');308
}309
if(state.modal && state.tab) {310
let modal = document.querySelector(`.modal.${state.modal}-modal`);311
let tab = document.querySelector(`.${state.tab}-tab`);312
let main = modal.querySelector('.main');313
if(modal && tab && main) {314
tab.classList.remove('hidden');315
main.style.marginLeft = '-100%';316
main.classList.add('hidden');317
}318
}319
}321
function update_fullscreen_option() {322
let fullscreen = document.fullscreenElement;323
node.option_event_fullscreen.classList[fullscreen ? 'add' : 'remove']('active');324
node.option_event_fullscreen.querySelector('.ico').textContent = fullscreen ? 'toggle_on' : 'toggle_off';325
}327
function update_view_mode_option() {328
let view_mode = state.option.view_mode;329
show_notification(`notification.view-mode.${view_mode ? 'on' : 'off'}`);330
node.option_event_view_mode.classList[view_mode ? 'add' : 'remove']('active');331
node.option_event_view_mode.querySelector('.ico').textContent = view_mode ? 'toggle_on' : 'toggle_off';332
if(view_mode) {333
state.modal = null;334
state.tab = null;335
update_modal_list();336
canvas.on_release();337
canvas.clear_cursor();338
canvas.get_canvas().style.cursor = 'default';339
node.hotbar.classList.add('inactive');340
node.header.classList.add('inactive');341
node.hotbar.animate([342
{ opacity: 1 },343
{ opacity: 0, bottom: '-10px', pointerEvents: 'none' }344
], {345
easing: 'ease-out',346
duration: 250,347
fill: 'both'348
});349
node.header.animate([350
{ opacity: 1 },351
{ opacity: 0 }352
], {353
easing: 'ease-out',354
duration: 250,355
fill: 'both'356
});357
}358
else {359
canvas.get_canvas().style.cursor = 'none';360
node.hotbar.classList.remove('inactive');361
node.header.classList.remove('inactive');362
node.hotbar.animate([363
{ opacity: 0, bottom: '-10px' },364
{ opacity: 1, bottom: '30px' }365
], {366
easing: 'ease-out',367
duration: 250,368
fill: 'both'369
});370
node.header.animate([371
{ opacity: 0 },372
{ opacity: 1 }373
], {374
easing: 'ease-out',375
duration: 250,376
fill: 'both'377
});378
}379
}381
function on_pointerdown(event) {382
// detect touch383
if(!state.device_list.touch && event.pointerType === 'touch') {384
state.device_list.touch = true;385
if(state.device) {386
show_notification('notification.input-device.touch.add');387
}388
else {389
state.device = 'touch';390
state.device_fallback = 'touch';391
}392
update_device_list();393
}394
// detect pen395
if(!state.device_list.pen && event.pointerType === 'pen') {396
state.device_list.pen = true;397
show_notification('notification.input-device.pencil.add');398
if(!state.device) {399
state.device = 'pen';400
state.device_fallback = 'pen';401
}402
update_device_list();403
}404
// drawing405
if(!state.option.view_mode && state.device === event.pointerType) {406
if(event.target === canvas.get_canvas()) {407
update_focus(false);408
canvas.on_press(event, state);409
state.point = {410
x: event.layerX,411
y: event.layerY412
};413
canvas.draw_cursor(state);414
}415
}416
}418
function on_pointermove(event) {419
// detect mouse420
if(!state.device_list.mouse && event.pointerType === 'mouse') {421
state.device_list.mouse = true;422
if(state.device) {423
show_notification('notification.input-device.mouse.add');424
}425
else {426
state.device = 'mouse';427
state.device_fallback = 'mouse';428
}429
update_device_list();430
}431
// drawing432
if(!state.option.view_mode && state.device === event.pointerType) {433
if(event.target === canvas.get_canvas()) {434
canvas.on_move(event, state);435
state.point = {436
x: event.layerX,437
y: event.layerY438
};439
canvas.draw_cursor(state);440
}441
}442
}444
function on_pointerup(event) {445
if(!state.option.view_mode && state.device === event.pointerType) {446
canvas.on_release(event);447
canvas.draw_cursor(state);448
update_focus(true);449
}450
}452
function on_pointerout(event) {453
if(!state.option.view_mode && state.device === event.pointerType) {454
canvas.on_release(event);455
state.point = null;456
canvas.draw_cursor(state);457
}458
}460
function on_keydown(event) {461
let lock = event.getModifierState("CapsLock");462
if(event.code === 'Escape') {463
if(state.tab) {464
state.tab = null;465
update_tab_list();466
return;467
}468
if(state.modal) {469
state.modal = null;470
update_modal_list();471
return;472
}473
}474
if(!event.ctrlKey && !event.shiftKey && !event.altKey) {475
if(!state.option.view_mode) {476
if(!lock) {477
if(event.code.startsWith('Digit')) {478
let i = parseInt(event.code.substr(5)) - 1;479
if(state.index !== i) {480
if(i >= 0 && i < state.color_list.length) {481
state.color = state.color_list[i];482
state.index = i;483
canvas.draw_cursor(state);484
update_hotbar();485
}486
}487
}488
}489
if(event.code === 'KeyC') {490
state.modal = state.modal !== 'colors' ? 'colors' : null;491
update_modal_list();492
}493
if(event.code === 'KeyS') {494
state.modal = state.modal !== 'scale' ? 'scale' : null;495
update_modal_list();496
}497
if(event.code === 'KeyE') {498
state.modal = state.modal !== 'pencil' ? 'pencil' : null;499
update_modal_list();500
}501
if(event.code === 'KeyD') {502
state.modal = state.modal !== 'clear' ? 'clear' : null;503
update_modal_list();504
}505
if(event.code === 'KeyQ') {506
state.modal = state.modal !== 'capture' ? 'capture' : null;507
update_modal_list();508
}509
}510
if(event.code === 'KeyV') {511
state.option.view_mode = !state.option.view_mode;512
update_view_mode_option();513
}514
}515
// alt516
if(event.altKey && !event.ctrlKey && !event.shiftKey) {517
if(!state.option.view_mode) {518
if(!lock) {519
if(event.code.startsWith('Digit')) {520
let i = parseInt(event.code.substr(5)) - 1;521
if(i >= 0 && i < state.pencil_list.length) {522
state.pencil = state.pencil_list[i];523
canvas.on_release(event);524
canvas.draw_cursor(state);525
update_pencil_list();526
}527
}528
}529
if(event.code === 'KeyM') {530
state.modal = state.modal !== 'multiplayer' ? 'multiplayer' : null;531
update_modal_list();532
}533
if(event.code === 'KeyP') {534
state.modal = state.modal !== 'account' ? 'account' : null;535
update_modal_list();536
}537
if(event.code === 'KeyS') {538
state.modal = state.modal !== 'more' ? 'more' : null;539
update_modal_list();540
}541
if(event.code === 'KeyH') {542
if(state.tab !== 'help') {543
state.modal = 'more';544
update_modal_list();545
state.tab = 'help';546
update_tab_list();547
}548
else {549
state.modal = null;550
update_modal_list();551
}552
}553
if(event.code === 'KeyL') {554
if(state.tab !== 'language') {555
state.modal = 'more';556
update_modal_list();557
state.tab = 'language';558
update_tab_list();559
}560
else {561
state.modal = null;562
update_modal_list();563
}564
}565
if(event.code === 'KeyI') {566
if(state.tab !== 'device') {567
state.modal = 'more';568
update_modal_list();569
state.tab = 'device';570
update_tab_list();571
}572
else {573
state.modal = null;574
update_modal_list();575
}576
}577
if(event.code === 'KeyA') {578
if(state.tab !== 'appearance') {579
state.modal = 'more';580
update_modal_list();581
state.tab = 'appearance';582
update_tab_list();583
}584
else {585
state.modal = null;586
update_modal_list();587
}588
}589
}590
}591
}593
function on_wheel(event) {594
if(!state.option.view_mode && state.device === 'mouse') {595
let y = event.deltaY < 0 ? 1 : -1;596
if(state.radius + y > 2 - 1 && state.radius + y < 50 + 1) {597
canvas.on_release(event);598
state.radius += y;599
node.scale_input.value = state.radius;600
canvas.draw_cursor(state);601
}602
}603
}605
function on_fullscreenchange(event) {606
update_fullscreen_option();607
}609
function fill_hotbar_list() {610
for(let [ i, item ] of Object.entries(node.hotbar_list)) {611
if(state.color_list.length > i) {612
item.style.background = COLORS[state.color_list[i]];613
item.addEventListener('click', function(event) {614
state.color = state.color_list[i];615
state.index = i;616
canvas.draw_cursor(state);617
update_hotbar();618
});619
if(state.index == i) {620
item.classList.add('active');621
}622
}623
}624
}626
function fill_modal_color_list() {627
for(let [ i, item ] of Object.entries(node.modal_color_list)) {628
if(COLORS.length > i) {629
item.style.background = COLORS[i];630
item.addEventListener('pointerdown', function(event) {631
state.color = i;632
state.modal = null;633
update_modal_list();634
canvas.draw_cursor(state);635
state.index = null;636
update_hotbar();637
});638
}639
}640
}22
app.init();23
});642
function show_notification(message) {643
let code = uuid();644
state.timestamp = code;645
let content = node.notification.querySelector('.content');646
content.textContent = locale.get()[message];647
node.notification.animate([648
{ opacity: 0 },649
{ opacity: 1 }650
], {651
duration: 200,652
fill: 'both'653
});654
setTimeout(function() {655
if(state.timestamp === code) {656
node.notification.animate([657
{ opacity: 1 },658
{ opacity: 0 }659
], {660
duration: 200,661
fill: 'both'662
});663
}664
}, 2000);665
}
1
/*!2
* Socket.IO v2.3.03
* (c) 2014-2019 Guillermo Rauch4
* Released under the MIT License.5
*/6
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.io=e():t.io=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){function r(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r=o(t),i=r.source,u=r.id,p=r.path,h=c[u]&&p in c[u].nsps,f=e.forceNew||e["force new connection"]||!1===e.multiplex||h;return f?(a("ignoring socket cache for %s",i),n=s(i,e)):(c[u]||(a("new io instance for %s",i),c[u]=s(i,e)),n=c[u]),r.query&&!e.query&&(e.query=r.query),n.socket(r.path,e)}var o=n(1),i=n(7),s=n(15),a=n(3)("socket.io-client");t.exports=e=r;var c=e.managers={};e.protocol=i.protocol,e.connect=r,e.Manager=n(15),e.Socket=n(39)},function(t,e,n){function r(t,e){var n=t;e=e||"undefined"!=typeof location&&location,null==t&&(t=e.protocol+"//"+e.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?e.protocol+t:e.host+t),/^(https?|wss?):\/\//.test(t)||(i("protocol-less url %s",t),t="undefined"!=typeof e?e.protocol+"//"+t:"https://"+t),i("parse %s",t),n=o(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";var r=n.host.indexOf(":")!==-1,s=r?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port,n.href=n.protocol+"://"+s+(e&&e.port===n.port?"":":"+n.port),n}var o=n(2),i=n(3)("socket.io-client:url");t.exports=r},function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,o=t.indexOf("["),i=t.indexOf("]");o!=-1&&i!=-1&&(t=t.substring(0,o)+t.substring(o,i).replace(/:/g,";")+t.substring(i,t.length));for(var s=n.exec(t||""),a={},c=14;c--;)a[r[c]]=s[c]||"";return o!=-1&&i!=-1&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},function(t,e,n){(function(r){"use strict";function o(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),this.useColors){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(r++,"%c"===t&&(o=r))}),e.splice(o,0,n)}}function s(){var t;return"object"===("undefined"==typeof console?"undefined":p(console))&&console.log&&(t=console).log.apply(t,arguments)}function a(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}}function c(){var t=void 0;try{t=e.storage.getItem("debug")}catch(n){}return!t&&"undefined"!=typeof r&&"env"in r&&(t=r.env.DEBUG),t}function u(){try{return localStorage}catch(t){}}var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.log=s,e.formatArgs=i,e.save=a,e.load=c,e.useColors=o,e.storage=u(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.exports=n(5)(e);var h=t.exports.formatters;h.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(e,n(4))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(p===setTimeout)return setTimeout(t,0);if((p===n||!p)&&setTimeout)return p=setTimeout,setTimeout(t,0);try{return p(t,0)}catch(e){try{return p.call(null,t,0)}catch(e){return p.call(this,t,0)}}}function i(t){if(h===clearTimeout)return clearTimeout(t);if((h===r||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function s(){y&&l&&(y=!1,l.length?d=l.concat(d):m=-1,d.length&&a())}function a(){if(!y){var t=o(s);y=!0;for(var e=d.length;e;){for(l=d,d=[];++m<e;)l&&l[m].run();m=-1,e=d.length}l=null,y=!1,i(t)}}function c(t,e){this.fun=t,this.array=e}function u(){}var p,h,f=t.exports={};!function(){try{p="function"==typeof setTimeout?setTimeout:n}catch(t){p=n}try{h="function"==typeof clearTimeout?clearTimeout:r}catch(t){h=r}}();var l,d=[],y=!1,m=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new c(t,e)),1!==d.length||y||o(a)},c.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(t){return[]},f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t){function e(t){for(var e=0,n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e|=0;return o.colors[Math.abs(e)%o.colors.length]}function o(t){function n(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];if(n.enabled){var s=n,a=Number(new Date),c=a-(r||a);s.diff=c,s.prev=r,s.curr=a,r=a,e[0]=o.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");var u=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,function(t,n){if("%%"===t)return t;u++;var r=o.formatters[n];if("function"==typeof r){var i=e[u];t=r.call(s,i),e.splice(u,1),u--}return t}),o.formatArgs.call(s,e);var p=s.log||o.log;p.apply(s,e)}}var r=void 0;return n.namespace=t,n.enabled=o.enabled(t),n.useColors=o.useColors(),n.color=e(t),n.destroy=i,n.extend=s,"function"==typeof o.init&&o.init(n),o.instances.push(n),n}function i(){var t=o.instances.indexOf(this);return t!==-1&&(o.instances.splice(t,1),!0)}function s(t,e){var n=o(this.namespace+("undefined"==typeof e?":":e)+t);return n.log=this.log,n}function a(t){o.save(t),o.names=[],o.skips=[];var e=void 0,n=("string"==typeof t?t:"").split(/[\s,]+/),r=n.length;for(e=0;e<r;e++)n[e]&&(t=n[e].replace(/\*/g,".*?"),"-"===t[0]?o.skips.push(new RegExp("^"+t.substr(1)+"$")):o.names.push(new RegExp("^"+t+"$")));for(e=0;e<o.instances.length;e++){var i=o.instances[e];i.enabled=o.enabled(i.namespace)}}function c(){var t=[].concat(r(o.names.map(p)),r(o.skips.map(p).map(function(t){return"-"+t}))).join(",");return o.enable(""),t}function u(t){if("*"===t[t.length-1])return!0;var e=void 0,n=void 0;for(e=0,n=o.skips.length;e<n;e++)if(o.skips[e].test(t))return!1;for(e=0,n=o.names.length;e<n;e++)if(o.names[e].test(t))return!0;return!1}function p(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}function h(t){return t instanceof Error?t.stack||t.message:t}return o.debug=o,o["default"]=o,o.coerce=h,o.disable=c,o.enable=a,o.enabled=u,o.humanize=n(6),Object.keys(t).forEach(function(e){o[e]=t[e]}),o.instances=[],o.names=[],o.skips=[],o.formatters={},o.selectColor=e,o.enable(o.load()),o}t.exports=o},function(t,e){function n(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*h;case"weeks":case"week":case"w":return n*p;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(t){var e=Math.abs(t);return e>=u?Math.round(t/u)+"d":e>=c?Math.round(t/c)+"h":e>=a?Math.round(t/a)+"m":e>=s?Math.round(t/s)+"s":t+"ms"}function o(t){var e=Math.abs(t);return e>=u?i(t,e,u,"day"):e>=c?i(t,e,c,"hour"):e>=a?i(t,e,a,"minute"):e>=s?i(t,e,s,"second"):t+" ms"}function i(t,e,n,r){var o=e>=1.5*n;return Math.round(t/n)+" "+r+(o?"s":"")}var s=1e3,a=60*s,c=60*a,u=24*c,p=7*u,h=365.25*u;t.exports=function(t,e){e=e||{};var i=typeof t;if("string"===i&&t.length>0)return n(t);if("number"===i&&isFinite(t))return e["long"]?o(t):r(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){function r(){}function o(t){var n=""+t.type;if(e.BINARY_EVENT!==t.type&&e.BINARY_ACK!==t.type||(n+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(n+=t.nsp+","),null!=t.id&&(n+=t.id),null!=t.data){var r=i(t.data);if(r===!1)return g;n+=r}return f("encoded %j as %s",t,n),n}function i(t){try{return JSON.stringify(t)}catch(e){return!1}}function s(t,e){function n(t){var n=d.deconstructPacket(t),r=o(n.packet),i=n.buffers;i.unshift(r),e(i)}d.removeBlobs(t,n)}function a(){this.reconstructor=null}function c(t){var n=0,r={type:Number(t.charAt(0))};if(null==e.types[r.type])return h("unknown packet type "+r.type);if(e.BINARY_EVENT===r.type||e.BINARY_ACK===r.type){for(var o="";"-"!==t.charAt(++n)&&(o+=t.charAt(n),n!=t.length););if(o!=Number(o)||"-"!==t.charAt(n))throw new Error("Illegal attachments");r.attachments=Number(o)}if("/"===t.charAt(n+1))for(r.nsp="";++n;){var i=t.charAt(n);if(","===i)break;if(r.nsp+=i,n===t.length)break}else r.nsp="/";var s=t.charAt(n+1);if(""!==s&&Number(s)==s){for(r.id="";++n;){var i=t.charAt(n);if(null==i||Number(i)!=i){--n;break}if(r.id+=t.charAt(n),n===t.length)break}r.id=Number(r.id)}if(t.charAt(++n)){var a=u(t.substr(n)),c=a!==!1&&(r.type===e.ERROR||y(a));if(!c)return h("invalid payload");r.data=a}return f("decoded %s as %j",t,r),r}function u(t){try{return JSON.parse(t)}catch(e){return!1}}function p(t){this.reconPack=t,this.buffers=[]}function h(t){return{type:e.ERROR,data:"parser error: "+t}}var f=n(8)("socket.io-parser"),l=n(11),d=n(12),y=n(13),m=n(14);e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=r,e.Decoder=a;var g=e.ERROR+'"encode error"';r.prototype.encode=function(t,n){if(f("encoding packet %j",t),e.BINARY_EVENT===t.type||e.BINARY_ACK===t.type)s(t,n);else{var r=o(t);n([r])}},l(a.prototype),a.prototype.add=function(t){var n;if("string"==typeof t)n=c(t),e.BINARY_EVENT===n.type||e.BINARY_ACK===n.type?(this.reconstructor=new p(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!m(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,this.emit("decoded",n))}},a.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},p.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e=d.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},p.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,e,n){(function(r){"use strict";function o(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var o=0,i=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(o++,"%c"===t&&(i=o))}),t.splice(i,0,r)}}function s(){return"object"===("undefined"==typeof console?"undefined":p(console))&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(n){}}function c(){var t;try{t=e.storage.debug}catch(n){}return!t&&"undefined"!=typeof r&&"env"in r&&(t=r.env.DEBUG),t}function u(){try{return window.localStorage}catch(t){}}var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e=t.exports=n(9),e.log=s,e.formatArgs=i,e.save=a,e.load=c,e.useColors=o,e.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},e.enable(c())}).call(e,n(4))},function(t,e,n){"use strict";function r(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}function o(t){function n(){if(n.enabled){var t=n,r=+new Date,i=r-(o||r);t.diff=i,t.prev=o,t.curr=r,o=r;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=e.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var c=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;c++;var o=e.formatters[r];if("function"==typeof o){var i=s[c];n=o.call(t,i),s.splice(c,1),c--}return n}),e.formatArgs.call(t,s);var u=n.log||e.log||console.log.bind(console);u.apply(t,s)}}var o;return n.namespace=t,n.enabled=e.enabled(t),n.useColors=e.useColors(),n.color=r(t),n.destroy=i,"function"==typeof e.init&&e.init(n),e.instances.push(n),n}function i(){var t=e.instances.indexOf(this);return t!==-1&&(e.instances.splice(t,1),!0)}function s(t){e.save(t),e.names=[],e.skips=[];var n,r=("string"==typeof t?t:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&(t=r[n].replace(/\*/g,".*?"),"-"===t[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")));for(n=0;n<e.instances.length;n++){var i=e.instances[n];i.enabled=e.enabled(i.namespace)}}function a(){e.enable("")}function c(t){if("*"===t[t.length-1])return!0;var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1}function u(t){return t instanceof Error?t.stack||t.message:t}e=t.exports=o.debug=o["default"]=o,e.coerce=u,e.disable=a,e.enable=s,e.enabled=c,e.humanize=n(10),e.instances=[],e.names=[],e.skips=[],e.formatters={}},function(t,e){function n(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*p;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(t){return t>=u?Math.round(t/u)+"d":t>=c?Math.round(t/c)+"h":t>=a?Math.round(t/a)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function o(t){return i(t,u,"day")||i(t,c,"hour")||i(t,a,"minute")||i(t,s,"second")||t+" ms"}function i(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var s=1e3,a=60*s,c=60*a,u=24*c,p=365.25*u;t.exports=function(t,e){e=e||{};var i=typeof t;if("string"===i&&t.length>0)return n(t);if("number"===i&&isNaN(t)===!1)return e["long"]?o(t):r(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){function r(t){if(t)return o(t)}function o(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===e||r.fn===e){n.splice(o,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,e)}return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,n){function r(t,e){if(!t)return t;if(s(t)){var n={_placeholder:!0,num:e.length};return e.push(t),n}if(i(t)){for(var o=new Array(t.length),a=0;a<t.length;a++)o[a]=r(t[a],e);return o}if("object"==typeof t&&!(t instanceof Date)){var o={};for(var c in t)o[c]=r(t[c],e);return o}return t}function o(t,e){if(!t)return t;if(t&&t._placeholder)return e[t.num];if(i(t))for(var n=0;n<t.length;n++)t[n]=o(t[n],e);else if("object"==typeof t)for(var r in t)t[r]=o(t[r],e);return t}var i=n(13),s=n(14),a=Object.prototype.toString,c="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===a.call(Blob),u="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===a.call(File);e.deconstructPacket=function(t){var e=[],n=t.data,o=t;return o.data=r(n,e),o.attachments=e.length,{packet:o,buffers:e}},e.reconstructPacket=function(t,e){return t.data=o(t.data,e),t.attachments=void 0,t},e.removeBlobs=function(t,e){function n(t,a,p){if(!t)return t;if(c&&t instanceof Blob||u&&t instanceof File){r++;var h=new FileReader;h.onload=function(){p?p[a]=this.result:o=this.result,--r||e(o)},h.readAsArrayBuffer(t)}else if(i(t))for(var f=0;f<t.length;f++)n(t[f],f,t);else if("object"==typeof t&&!s(t))for(var l in t)n(t[l],l,t)}var r=0,o=t;n(o),r||e(o)}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){function n(t){return r&&Buffer.isBuffer(t)||o&&(t instanceof ArrayBuffer||i(t))}t.exports=n;var r="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,o="function"==typeof ArrayBuffer,i=function(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer}},function(t,e,n){function r(t,e){if(!(this instanceof r))return new r(t,e);t&&"object"==typeof t&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new f({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=e.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=e.autoConnect!==!1,this.autoConnect&&this.open()}var o=n(16),i=n(39),s=n(11),a=n(7),c=n(41),u=n(42),p=n(3)("socket.io-client:manager"),h=n(38),f=n(43),l=Object.prototype.hasOwnProperty;t.exports=r,r.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var t in this.nsps)l.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},r.prototype.updateSocketIds=function(){for(var t in this.nsps)l.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},r.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},s(r.prototype),r.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},r.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},r.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},r.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},r.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},r.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},r.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},r.prototype.open=r.prototype.connect=function(t,e){if(p("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;p("opening %s",this.uri),this.engine=o(this.uri,this.opts);var n=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var i=c(n,"open",function(){r.onopen(),t&&t()}),s=c(n,"error",function(e){if(p("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",e),t){var n=new Error("Connection error");n.data=e,t(n)}else r.maybeReconnectOnOpen()});if(!1!==this._timeout){var a=this._timeout;p("connect attempt will timeout after %d",a);var u=setTimeout(function(){p("connect attempt timed out after %d",a),i.destroy(),n.close(),n.emit("error","timeout"),r.emitAll("connect_timeout",a)},a);this.subs.push({destroy:function(){clearTimeout(u)}})}return this.subs.push(i),this.subs.push(s),this},r.prototype.onopen=function(){p("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(c(t,"data",u(this,"ondata"))),this.subs.push(c(t,"ping",u(this,"onping"))),this.subs.push(c(t,"pong",u(this,"onpong"))),this.subs.push(c(t,"error",u(this,"onerror"))),this.subs.push(c(t,"close",u(this,"onclose"))),this.subs.push(c(this.decoder,"decoded",u(this,"ondecoded")))},r.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},r.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},r.prototype.ondata=function(t){this.decoder.add(t)},r.prototype.ondecoded=function(t){this.emit("packet",t)},r.prototype.onerror=function(t){p("error",t),this.emitAll("error",t)},r.prototype.socket=function(t,e){function n(){~h(o.connecting,r)||o.connecting.push(r)}var r=this.nsps[t];if(!r){r=new i(this,t,e),this.nsps[t]=r;var o=this;r.on("connecting",n),r.on("connect",function(){r.id=o.generateId(t)}),this.autoConnect&&n()}return r},r.prototype.destroy=function(t){var e=h(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},r.prototype.packet=function(t){p("writing packet %j",t);var e=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,function(n){for(var r=0;r<n.length;r++)e.engine.write(n[r],t.options);e.encoding=!1,e.processPacketQueue()}))},r.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},r.prototype.cleanup=function(){p("cleanup");for(var t=this.subs.length,e=0;e<t;e++){var n=this.subs.shift();n.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},r.prototype.close=r.prototype.disconnect=function(){p("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},r.prototype.onclose=function(t){p("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},r.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)p("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();p("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(p("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(p("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(p("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e,n){t.exports=n(17),t.exports.parser=n(24)},function(t,e,n){function r(t,e){return this instanceof r?(e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=p(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=p(e.host).host),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.agent=e.agent||!1,this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=e.query||{},"string"==typeof this.query&&(this.query=h.decode(this.query)),this.upgrade=!1!==e.upgrade,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=!1!==e.jsonp,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.withCredentials=!1!==e.withCredentials,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.transportOptions=e.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.perMessageDeflate=!1!==e.perMessageDeflate&&(e.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=e.pfx||null,this.key=e.key||null,this.passphrase=e.passphrase||null,this.cert=e.cert||null,this.ca=e.ca||null,this.ciphers=e.ciphers||null,this.rejectUnauthorized=void 0===e.rejectUnauthorized||e.rejectUnauthorized,this.forceNode=!!e.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(e.extraHeaders&&Object.keys(e.extraHeaders).length>0&&(this.extraHeaders=e.extraHeaders),e.localAddress&&(this.localAddress=e.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,void this.open()):new r(t,e)}function o(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var i=n(18),s=n(11),a=n(3)("engine.io-client:socket"),c=n(38),u=n(24),p=n(2),h=n(32);t.exports=r,r.priorWebsocketSuccess=!1,s(r.prototype),r.protocol=u.protocol,r.Socket=r,r.Transport=n(23),r.transports=n(18),r.parser=n(24),r.prototype.createTransport=function(t){a('creating transport "%s"',t);var e=o(this.query);e.EIO=u.protocol,e.transport=t;var n=this.transportOptions[t]||{};this.id&&(e.sid=this.id);var r=new i[t]({query:e,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,withCredentials:n.withCredentials||this.withCredentials,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative});return r},r.prototype.open=function(){var t;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else{7
if(0===this.transports.length){var e=this;return void setTimeout(function(){e.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(n){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},r.prototype.setTransport=function(t){a("setting transport %s",t.name);var e=this;this.transport&&(a("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){e.onDrain()}).on("packet",function(t){e.onPacket(t)}).on("error",function(t){e.onError(t)}).on("close",function(){e.onClose("transport close")})},r.prototype.probe=function(t){function e(){if(f.onlyBinaryUpgrades){var e=!this.supportsBinary&&f.transport.supportsBinary;h=h||e}h||(a('probe transport "%s" opened',t),p.send([{type:"ping",data:"probe"}]),p.once("packet",function(e){if(!h)if("pong"===e.type&&"probe"===e.data){if(a('probe transport "%s" pong',t),f.upgrading=!0,f.emit("upgrading",p),!p)return;r.priorWebsocketSuccess="websocket"===p.name,a('pausing current transport "%s"',f.transport.name),f.transport.pause(function(){h||"closed"!==f.readyState&&(a("changing transport and sending upgrade packet"),u(),f.setTransport(p),p.send([{type:"upgrade"}]),f.emit("upgrade",p),p=null,f.upgrading=!1,f.flush())})}else{a('probe transport "%s" failed',t);var n=new Error("probe error");n.transport=p.name,f.emit("upgradeError",n)}}))}function n(){h||(h=!0,u(),p.close(),p=null)}function o(e){var r=new Error("probe error: "+e);r.transport=p.name,n(),a('probe transport "%s" failed because of error: %s',t,e),f.emit("upgradeError",r)}function i(){o("transport closed")}function s(){o("socket closed")}function c(t){p&&t.name!==p.name&&(a('"%s" works - aborting "%s"',t.name,p.name),n())}function u(){p.removeListener("open",e),p.removeListener("error",o),p.removeListener("close",i),f.removeListener("close",s),f.removeListener("upgrading",c)}a('probing transport "%s"',t);var p=this.createTransport(t,{probe:1}),h=!1,f=this;r.priorWebsocketSuccess=!1,p.once("open",e),p.once("error",o),p.once("close",i),this.once("close",s),this.once("upgrading",c),p.open()},r.prototype.onOpen=function(){if(a("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){a("starting upgrade probes");for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},r.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(a('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else a('packet received with socket readyState "%s"',this.readyState)},r.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},r.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout(function(){"closed"!==e.readyState&&e.onClose("ping timeout")},t||e.pingInterval+e.pingTimeout)},r.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){a("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)},r.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})},r.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},r.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(a("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},r.prototype.write=r.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},r.prototype.sendPacket=function(t,e,n,r){if("function"==typeof e&&(r=e,e=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){n=n||{},n.compress=!1!==n.compress;var o={type:t,data:e,options:n};this.emit("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}},r.prototype.close=function(){function t(){r.onClose("forced close"),a("socket closing - telling transport to close"),r.transport.close()}function e(){r.removeListener("upgrade",e),r.removeListener("upgradeError",e),t()}function n(){r.once("upgrade",e),r.once("upgradeError",e)}if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():t()}):this.upgrading?n():t()}return this},r.prototype.onError=function(t){a("socket error %j",t),r.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},r.prototype.onClose=function(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){a('socket close with reason: "%s"',t);var n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),n.writeBuffer=[],n.prevBufferLen=0}},r.prototype.filterUpgrades=function(t){for(var e=[],n=0,r=t.length;n<r;n++)~c(this.transports,t[n])&&e.push(t[n]);return e}},function(t,e,n){function r(t){var e,n=!1,r=!1,a=!1!==t.jsonp;if("undefined"!=typeof location){var c="https:"===location.protocol,u=location.port;u||(u=c?443:80),n=t.hostname!==location.hostname||u!==t.port,r=t.secure!==c}if(t.xdomain=n,t.xscheme=r,e=new o(t),"open"in e&&!t.forceJSONP)return new i(t);if(!a)throw new Error("JSONP disabled");return new s(t)}var o=n(19),i=n(21),s=n(35),a=n(36);e.polling=r,e.websocket=a},function(t,e,n){var r=n(20);t.exports=function(t){var e=t.xdomain,n=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||r))return new XMLHttpRequest}catch(i){}try{if("undefined"!=typeof XDomainRequest&&!n&&o)return new XDomainRequest}catch(i){}if(!e)try{return new(self[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(i){}}},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(n){t.exports=!1}},function(t,e,n){function r(){}function o(t){if(c.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,"undefined"!=typeof location){var e="https:"===location.protocol,n=location.port;n||(n=e?443:80),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||n!==t.port,this.xs=t.secure!==e}}function i(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function s(){for(var t in i.requests)i.requests.hasOwnProperty(t)&&i.requests[t].abort()}var a=n(19),c=n(22),u=n(11),p=n(33),h=n(3)("engine.io-client:polling-xhr");if(t.exports=o,t.exports.Request=i,p(o,c),o.prototype.supportsBinary=!0,o.prototype.request=function(t){return t=t||{},t.uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.withCredentials=this.withCredentials,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new i(t)},o.prototype.doWrite=function(t,e){var n="string"!=typeof t&&void 0!==t,r=this.request({method:"POST",data:t,isBinary:n}),o=this;r.on("success",e),r.on("error",function(t){o.onError("xhr post error",t)}),this.sendXhr=r},o.prototype.doPoll=function(){h("xhr poll");var t=this.request(),e=this;t.on("data",function(t){e.onData(t)}),t.on("error",function(t){e.onError("xhr poll error",t)}),this.pollXhr=t},u(i.prototype),i.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var e=this.xhr=new a(t),n=this;try{h("xhr open %s: %s",this.method,this.uri),e.open(this.method,this.uri,this.async);try{if(this.extraHeaders){e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0);for(var r in this.extraHeaders)this.extraHeaders.hasOwnProperty(r)&&e.setRequestHeader(r,this.extraHeaders[r])}}catch(o){}if("POST"===this.method)try{this.isBinary?e.setRequestHeader("Content-type","application/octet-stream"):e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(o){}try{e.setRequestHeader("Accept","*/*")}catch(o){}"withCredentials"in e&&(e.withCredentials=this.withCredentials),this.requestTimeout&&(e.timeout=this.requestTimeout),this.hasXDR()?(e.onload=function(){n.onLoad()},e.onerror=function(){n.onError(e.responseText)}):e.onreadystatechange=function(){if(2===e.readyState)try{var t=e.getResponseHeader("Content-Type");(n.supportsBinary&&"application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&(e.responseType="arraybuffer")}catch(r){}4===e.readyState&&(200===e.status||1223===e.status?n.onLoad():setTimeout(function(){n.onError("number"==typeof e.status?e.status:0)},0))},h("xhr data %s",this.data),e.send(this.data)}catch(o){return void setTimeout(function(){n.onError(o)},0)}"undefined"!=typeof document&&(this.index=i.requestsCount++,i.requests[this.index]=this)},i.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},i.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},i.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},i.prototype.cleanup=function(t){if("undefined"!=typeof this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=r:this.xhr.onreadystatechange=r,t)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete i.requests[this.index],this.xhr=null}},i.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(n){}t="application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e?this.xhr.response||this.xhr.responseText:this.xhr.responseText}catch(n){this.onError(n)}null!=t&&this.onData(t)},i.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},i.prototype.abort=function(){this.cleanup()},i.requestsCount=0,i.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",s);else if("function"==typeof addEventListener){var f="onpagehide"in self?"pagehide":"unload";addEventListener(f,s,!1)}},function(t,e,n){function r(t){var e=t&&t.forceBase64;p&&!e||(this.supportsBinary=!1),o.call(this,t)}var o=n(23),i=n(32),s=n(24),a=n(33),c=n(34),u=n(3)("engine.io-client:polling");t.exports=r;var p=function(){var t=n(19),e=new t({xdomain:!1});return null!=e.responseType}();a(r,o),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(t){function e(){u("paused"),n.readyState="paused",t()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(u("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){u("pre-pause polling complete"),--r||e()})),this.writable||(u("we are currently writing - waiting to pause"),r++,this.once("drain",function(){u("pre-pause writing complete"),--r||e()}))}else e()},r.prototype.poll=function(){u("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(t){var e=this;u("polling got data %s",t);var n=function(t,n,r){return"opening"===e.readyState&&e.onOpen(),"close"===t.type?(e.onClose(),!1):void e.onPacket(t)};s.decodePayload(t,this.socket.binaryType,n),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():u('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function t(){u("writing close packet"),e.write([{type:"close"}])}var e=this;"open"===this.readyState?(u("transport open - closing"),t()):(u("transport not open - deferring close"),this.once("open",t))},r.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")};s.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,n)})},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";!1!==this.timestampRequests&&(t[this.timestampParam]=c()),this.supportsBinary||t.sid||(t.b64=1),t=i.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t);var r=this.hostname.indexOf(":")!==-1;return e+"://"+(r?"["+this.hostname+"]":this.hostname)+n+this.path+t}},function(t,e,n){function r(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.isReactNative=t.isReactNative,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}var o=n(24),i=n(11);t.exports=r,i(r.prototype),r.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},r.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},r.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(t){var e=o.decodePacket(t,this.socket.binaryType);this.onPacket(e)},r.prototype.onPacket=function(t){this.emit("packet",t)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,e,n){function r(t,n){var r="b"+e.packets[t.type]+t.data.data;return n(r)}function o(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var o=t.data,i=new Uint8Array(o),s=new Uint8Array(1+o.byteLength);s[0]=v[t.type];for(var a=0;a<i.length;a++)s[a+1]=i[a];return r(s.buffer)}function i(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var o=new FileReader;return o.onload=function(){e.encodePacket({type:t.type,data:o.result},n,!0,r)},o.readAsArrayBuffer(t.data)}function s(t,n,r){if(!n)return e.encodeBase64Packet(t,r);if(g)return i(t,n,r);var o=new Uint8Array(1);o[0]=v[t.type];var s=new w([o.buffer,t.data]);return r(s)}function a(t){try{t=d.decode(t,{strict:!1})}catch(e){return!1}return t}function c(t,e,n){for(var r=new Array(t.length),o=l(t.length,n),i=function(t,n,o){e(n,function(e,n){r[t]=n,o(e,r)})},s=0;s<t.length;s++)i(s,t[s],o)}var u,p=n(25),h=n(26),f=n(27),l=n(28),d=n(29);"undefined"!=typeof ArrayBuffer&&(u=n(30));var y="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),m="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),g=y||m;e.protocol=3;var v=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},b=p(v),C={type:"error",data:"parser error"},w=n(31);e.encodePacket=function(t,e,n,i){"function"==typeof e&&(i=e,e=!1),"function"==typeof n&&(i=n,n=null);var a=void 0===t.data?void 0:t.data.buffer||t.data;if("undefined"!=typeof ArrayBuffer&&a instanceof ArrayBuffer)return o(t,e,i);if("undefined"!=typeof w&&a instanceof w)return s(t,e,i);if(a&&a.base64)return r(t,i);var c=v[t.type];return void 0!==t.data&&(c+=n?d.encode(String(t.data),{strict:!1}):String(t.data)),i(""+c)},e.encodeBase64Packet=function(t,n){var r="b"+e.packets[t.type];if("undefined"!=typeof w&&t.data instanceof w){var o=new FileReader;return o.onload=function(){var t=o.result.split(",")[1];n(r+t)},o.readAsDataURL(t.data)}var i;try{i=String.fromCharCode.apply(null,new Uint8Array(t.data))}catch(s){for(var a=new Uint8Array(t.data),c=new Array(a.length),u=0;u<a.length;u++)c[u]=a[u];i=String.fromCharCode.apply(null,c)}return r+=btoa(i),n(r)},e.decodePacket=function(t,n,r){if(void 0===t)return C;if("string"==typeof t){if("b"===t.charAt(0))return e.decodeBase64Packet(t.substr(1),n);if(r&&(t=a(t),t===!1))return C;var o=t.charAt(0);return Number(o)==o&&b[o]?t.length>1?{type:b[o],data:t.substring(1)}:{type:b[o]}:C}var i=new Uint8Array(t),o=i[0],s=f(t,1);return w&&"blob"===n&&(s=new w([s])),{type:b[o],data:s}},e.decodeBase64Packet=function(t,e){var n=b[t.charAt(0)];if(!u)return{type:n,data:{base64:!0,data:t.substr(1)}};var r=u.decode(t.substr(1));return"blob"===e&&w&&(r=new w([r])),{type:n,data:r}},e.encodePayload=function(t,n,r){function o(t){return t.length+":"+t}function i(t,r){e.encodePacket(t,!!s&&n,!1,function(t){r(null,o(t))})}"function"==typeof n&&(r=n,n=null);var s=h(t);return n&&s?w&&!g?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void c(t,i,function(t,e){return r(e.join(""))}):r("0:")},e.decodePayload=function(t,n,r){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,r);"function"==typeof n&&(r=n,n=null);var o;if(""===t)return r(C,0,1);for(var i,s,a="",c=0,u=t.length;c<u;c++){var p=t.charAt(c);if(":"===p){if(""===a||a!=(i=Number(a)))return r(C,0,1);if(s=t.substr(c+1,i),a!=s.length)return r(C,0,1);if(s.length){if(o=e.decodePacket(s,n,!1),C.type===o.type&&C.data===o.data)return r(C,0,1);var h=r(o,c+i,u);if(!1===h)return}c+=i,a=""}else a+=p}return""!==a?r(C,0,1):void 0},e.encodePayloadAsArrayBuffer=function(t,n){function r(t,n){e.encodePacket(t,!0,!0,function(t){return n(null,t)})}return t.length?void c(t,r,function(t,e){var r=e.reduce(function(t,e){var n;return n="string"==typeof e?e.length:e.byteLength,t+n.toString().length+n+2},0),o=new Uint8Array(r),i=0;return e.forEach(function(t){var e="string"==typeof t,n=t;if(e){for(var r=new Uint8Array(t.length),s=0;s<t.length;s++)r[s]=t.charCodeAt(s);n=r.buffer}e?o[i++]=0:o[i++]=1;for(var a=n.byteLength.toString(),s=0;s<a.length;s++)o[i++]=parseInt(a[s]);o[i++]=255;for(var r=new Uint8Array(n),s=0;s<r.length;s++)o[i++]=r[s]}),n(o.buffer)}):n(new ArrayBuffer(0))},e.encodePayloadAsBlob=function(t,n){function r(t,n){e.encodePacket(t,!0,!0,function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var r=new Uint8Array(t.length),o=0;o<t.length;o++)r[o]=t.charCodeAt(o);t=r.buffer,e[0]=0}for(var i=t instanceof ArrayBuffer?t.byteLength:t.size,s=i.toString(),a=new Uint8Array(s.length+1),o=0;o<s.length;o++)a[o]=parseInt(s[o]);if(a[s.length]=255,w){var c=new w([e.buffer,a.buffer,t]);n(null,c)}})}c(t,r,function(t,e){return n(new w(e))})},e.decodePayloadAsBinary=function(t,n,r){"function"==typeof n&&(r=n,n=null);for(var o=t,i=[];o.byteLength>0;){for(var s=new Uint8Array(o),a=0===s[0],c="",u=1;255!==s[u];u++){if(c.length>310)return r(C,0,1);c+=s[u]}o=f(o,2+c.length),c=parseInt(c);var p=f(o,0,c);if(a)try{p=String.fromCharCode.apply(null,new Uint8Array(p))}catch(h){var l=new Uint8Array(p);p="";for(var u=0;u<l.length;u++)p+=String.fromCharCode(l[u])}i.push(p),o=f(o,c)}var d=i.length;i.forEach(function(t,o){r(e.decodePacket(t,n,!0),o,d)})}},function(t,e){t.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var r in t)n.call(t,r)&&e.push(r);return e}},function(t,e,n){function r(t){if(!t||"object"!=typeof t)return!1;if(o(t)){for(var e=0,n=t.length;e<n;e++)if(r(t[e]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(t)||"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||s&&t instanceof Blob||a&&t instanceof File)return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return r(t.toJSON(),!0);for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&r(t[i]))return!0;return!1}var o=n(13),i=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);t.exports=r},function(t,e){t.exports=function(t,e,n){var r=t.byteLength;if(e=e||0,n=n||r,t.slice)return t.slice(e,n);if(e<0&&(e+=r),n<0&&(n+=r),n>r&&(n=r),e>=r||e>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(t),i=new Uint8Array(n-e),s=e,a=0;s<n;s++,a++)i[a]=o[s];return i.buffer}},function(t,e){function n(t,e,n){function o(t,r){if(o.count<=0)throw new Error("after called too many times");--o.count,t?(i=!0,e(t),e=n):0!==o.count||i||e(null,r)}var i=!1;return n=n||r,o.count=t,0===t?e():o}function r(){}t.exports=n},function(t,e){function n(t){for(var e,n,r=[],o=0,i=t.length;o<i;)e=t.charCodeAt(o++),e>=55296&&e<=56319&&o<i?(n=t.charCodeAt(o++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--)):r.push(e);return r}function r(t){for(var e,n=t.length,r=-1,o="";++r<n;)e=t[r],e>65535&&(e-=65536,o+=d(e>>>10&1023|55296),e=56320|1023&e),o+=d(e);return o}function o(t,e){if(t>=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function i(t,e){return d(t>>e&63|128)}function s(t,e){if(0==(4294967168&t))return d(t);var n="";return 0==(4294965248&t)?n=d(t>>6&31|192):0==(4294901760&t)?(o(t,e)||(t=65533),n=d(t>>12&15|224),n+=i(t,6)):0==(4292870144&t)&&(n=d(t>>18&7|240),n+=i(t,12),n+=i(t,6)),n+=d(63&t|128)}function a(t,e){e=e||{};for(var r,o=!1!==e.strict,i=n(t),a=i.length,c=-1,u="";++c<a;)r=i[c],u+=s(r,o);return u}function c(){if(l>=f)throw Error("Invalid byte index");var t=255&h[l];if(l++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function u(t){var e,n,r,i,s;if(l>f)throw Error("Invalid byte index");if(l==f)return!1;if(e=255&h[l],l++,0==(128&e))return e;if(192==(224&e)){if(n=c(),s=(31&e)<<6|n,s>=128)return s;throw Error("Invalid continuation byte")}if(224==(240&e)){if(n=c(),r=c(),s=(15&e)<<12|n<<6|r,s>=2048)return o(s,t)?s:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(n=c(),r=c(),i=c(),s=(7&e)<<18|n<<12|r<<6|i,s>=65536&&s<=1114111))return s;throw Error("Invalid UTF-8 detected")}function p(t,e){e=e||{};var o=!1!==e.strict;h=n(t),f=h.length,l=0;for(var i,s=[];(i=u(o))!==!1;)s.push(i);return r(s)}/*! https://mths.be/utf8js v2.1.2 by @mathias */8
var h,f,l,d=String.fromCharCode;t.exports={version:"2.1.2",encode:a,decode:p}},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<t.length;r++)n[t.charCodeAt(r)]=r;e.encode=function(e){var n,r=new Uint8Array(e),o=r.length,i="";for(n=0;n<o;n+=3)i+=t[r[n]>>2],i+=t[(3&r[n])<<4|r[n+1]>>4],i+=t[(15&r[n+1])<<2|r[n+2]>>6],i+=t[63&r[n+2]];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i},e.decode=function(t){var e,r,o,i,s,a=.75*t.length,c=t.length,u=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var p=new ArrayBuffer(a),h=new Uint8Array(p);for(e=0;e<c;e+=4)r=n[t.charCodeAt(e)],o=n[t.charCodeAt(e+1)],i=n[t.charCodeAt(e+2)],s=n[t.charCodeAt(e+3)],h[u++]=r<<2|o>>4,h[u++]=(15&o)<<4|i>>2,h[u++]=(3&i)<<6|63&s;return p}}()},function(t,e){function n(t){return t.map(function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var n=new Uint8Array(t.byteLength);n.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=n.buffer}return e}return t})}function r(t,e){e=e||{};var r=new i;return n(t).forEach(function(t){r.append(t)}),e.type?r.getBlob(e.type):r.getBlob()}function o(t,e){return new Blob(n(t),e||{})}var i="undefined"!=typeof i?i:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,s=function(){try{var t=new Blob(["hi"]);return 2===t.size}catch(e){return!1}}(),a=s&&function(){try{var t=new Blob([new Uint8Array([1,2])]);return 2===t.size}catch(e){return!1}}(),c=i&&i.prototype.append&&i.prototype.getBlob;"undefined"!=typeof Blob&&(r.prototype=Blob.prototype,o.prototype=Blob.prototype),t.exports=function(){return s?a?Blob:o:c?r:void 0}()},function(t,e){e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),r=0,o=n.length;r<o;r++){var i=n[r].split("=");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return e}},function(t,e){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){"use strict";function n(t){var e="";do e=s[t%a]+e,t=Math.floor(t/a);while(t>0);return e}function r(t){var e=0;for(p=0;p<t.length;p++)e=e*a+c[t.charAt(p)];return e}function o(){var t=n(+new Date);return t!==i?(u=0,i=t):t+"."+n(u++)}for(var i,s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),a=64,c={},u=0,p=0;p<a;p++)c[s[p]]=p;o.encode=n,o.decode=r,t.exports=o},function(t,e,n){(function(e){function r(){}function o(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof e?e:{}}function i(t){if(s.call(this,t),this.query=this.query||{},!c){var e=o();c=e.___eio=e.___eio||[]}this.index=c.length;var n=this;c.push(function(t){n.onData(t)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){n.script&&(n.script.onerror=r)},!1)}var s=n(22),a=n(33);t.exports=i;var c,u=/\n/g,p=/\\n/g;a(i,s),i.prototype.supportsBinary=!1,i.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),s.prototype.doClose.call(this)},i.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):(document.head||document.body).appendChild(e),this.script=e;var r="undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent);r&&setTimeout(function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)},i.prototype.doWrite=function(t,e){function n(){r(),e()}function r(){if(o.iframe)try{o.form.removeChild(o.iframe)}catch(t){o.onError("jsonp polling iframe removal error",t)}try{var e='<iframe src="javascript:0" name="'+o.iframeId+'">';i=document.createElement(e)}catch(t){i=document.createElement("iframe"),i.name=o.iframeId,i.src="javascript:0"}i.id=o.iframeId,o.form.appendChild(i),o.iframe=i}var o=this;if(!this.form){var i,s=document.createElement("form"),a=document.createElement("textarea"),c=this.iframeId="eio_iframe_"+this.index;s.className="socketio",s.style.position="absolute",s.style.top="-1000px",s.style.left="-1000px",s.target=c,s.method="POST",s.setAttribute("accept-charset","utf-8"),a.name="d",s.appendChild(a),document.body.appendChild(s),this.form=s,this.area=a}this.form.action=this.uri(),r(),t=t.replace(p,"\\\n"),this.area.value=t.replace(u,"\\n");try{this.form.submit()}catch(h){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===o.iframe.readyState&&n()}:this.iframe.onload=n}}).call(e,function(){return this}())},function(t,e,n){function r(t){var e=t&&t.forceBase64;e&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=o&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(l=i),s.call(this,t)}var o,i,s=n(23),a=n(24),c=n(32),u=n(33),p=n(34),h=n(3)("engine.io-client:websocket");if("undefined"!=typeof WebSocket?o=WebSocket:"undefined"!=typeof self&&(o=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{i=n(37)}catch(f){}var l=o||i;t.exports=r,u(r,s),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?e?new l(t,e):new l(t):new l(t,e,n)}catch(r){return this.emit("error",r)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},r.prototype.write=function(t){function e(){n.emit("flush"),setTimeout(function(){n.writable=!0,n.emit("drain")},0)}var n=this;this.writable=!1;for(var r=t.length,o=0,i=r;o<i;o++)!function(t){a.encodePacket(t,n.supportsBinary,function(o){if(!n.usingBrowserWebSocket){var i={};if(t.options&&(i.compress=t.options.compress),n.perMessageDeflate){var s="string"==typeof o?Buffer.byteLength(o):o.length;s<n.perMessageDeflate.threshold&&(i.compress=!1)}}try{n.usingBrowserWebSocket?n.ws.send(o):n.ws.send(o,i)}catch(a){h("websocket closed before onclose event")}--r||e()})}(t[o])},r.prototype.onClose=function(){s.prototype.onClose.call(this)},r.prototype.doClose=function(){"undefined"!=typeof this.ws&&this.ws.close()},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";this.port&&("wss"===e&&443!==Number(this.port)||"ws"===e&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=p()),this.supportsBinary||(t.b64=1),t=c.encode(t),t.length&&(t="?"+t);var r=this.hostname.indexOf(":")!==-1;return e+"://"+(r?"["+this.hostname+"]":this.hostname)+n+this.path+t},r.prototype.check=function(){return!(!l||"__initialize"in l&&this.name===r.prototype.name)}},function(t,e){},function(t,e){var n=[].indexOf;t.exports=function(t,e){if(n)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}},function(t,e,n){function r(t,e,n){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}var o=n(7),i=n(11),s=n(40),a=n(41),c=n(42),u=n(3)("socket.io-client:socket"),p=n(32),h=n(26);t.exports=e=r;var f={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},l=i.prototype.emit;i(r.prototype),r.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[a(t,"open",c(this,"onopen")),a(t,"packet",c(this,"onpacket")),a(t,"close",c(this,"onclose"))]}},r.prototype.open=r.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},r.prototype.send=function(){var t=s(arguments);return t.unshift("message"),this.emit.apply(this,t),this},r.prototype.emit=function(t){if(f.hasOwnProperty(t))return l.apply(this,arguments),this;var e=s(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:h(e))?o.BINARY_EVENT:o.EVENT,data:e};return n.options={},n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(u("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},r.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},r.prototype.onopen=function(){if(u("transport is open - connecting"),"/"!==this.nsp)if(this.query){var t="object"==typeof this.query?p.encode(this.query):this.query;u("sending connect packet with query %s",t),this.packet({type:o.CONNECT,query:t})}else this.packet({type:o.CONNECT})},r.prototype.onclose=function(t){u("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},r.prototype.onpacket=function(t){var e=t.nsp===this.nsp,n=t.type===o.ERROR&&"/"===t.nsp;if(e||n)switch(t.type){case o.CONNECT:this.onconnect();break;case o.EVENT:this.onevent(t);break;case o.BINARY_EVENT:this.onevent(t);break;case o.ACK:this.onack(t);break;case o.BINARY_ACK:this.onack(t);break;case o.DISCONNECT:this.ondisconnect();break;case o.ERROR:this.emit("error",t.data)}},r.prototype.onevent=function(t){var e=t.data||[];u("emitting event %j",e),null!=t.id&&(u("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?l.apply(this,e):this.receiveBuffer.push(e)},r.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var r=s(arguments);u("sending ack %j",r),e.packet({type:h(r)?o.BINARY_ACK:o.ACK,id:t,data:r})}}},r.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(u("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):u("bad ack %s",t.id)},r.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},r.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)l.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},r.prototype.ondisconnect=function(){u("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},r.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},r.prototype.close=r.prototype.disconnect=function(){return this.connected&&(u("performing disconnect (%s)",this.nsp),this.packet({type:o.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},r.prototype.compress=function(t){return this.flags.compress=t,this},r.prototype.binary=function(t){return this.flags.binary=t,this}},function(t,e){function n(t,e){var n=[];e=e||0;for(var r=e||0;r<t.length;r++)n[r-e]=t[r];return n}t.exports=n},function(t,e){function n(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}t.exports=n},function(t,e){var n=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}},function(t,e){function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}}])});
1
export default {2
color: [3
{ name: 'Salmon', code: '#FA8072' },4
{ name: 'Crimson', code: '#DC143C' },5
{ name: 'Pink', code: '#FFC0CB' },6
{ name: 'Hotpink', code: '#FF69B4' },7
{ name: 'Coral', code: '#FF7F50' },8
{ name: 'Tomato', code: '#FF6347' },9
{ name: 'Orange', code: '#FFA500' },10
{ name: 'Gold', code: '#FFD700' },11
{ name: 'Khaki', code: '#F0E68C' },12
{ name: 'Lavender', code: '#E6E6FA' },13
{ name: 'Plum', code: '#DDA0DD' },14
{ name: 'Violet', code: '#EE82EE' },15
{ name: 'Magenta', code: '#FF00FF' },16
{ name: 'Purple', code: '#800080' },17
{ name: 'Indigo', code: '#4B0082' },18
{ name: 'Lime', code: '#00FF00' },19
{ name: 'Olive', code: '#808000' },20
{ name: 'Teal', code: '#008080' },21
{ name: 'Cyan', code: '#00FFFF' },22
{ name: 'Aquamarine', code: '#7FFFD4' },23
{ name: 'Turquoise', code: '#40E0D0' },24
{ name: 'Bisque', code: '#FFE4C4' },25
{ name: 'Tan', code: '#D2B48C' },26
{ name: 'Peru', code: '#CD853F' },27
{ name: 'Chocolate', code: '#D2691E' },28
{ name: 'Sienna', code: '#A0522D' },29
{ name: 'Brown', code: '#A52A2A' },30
{ name: 'Silver', code: '#C0C0C0' }31
],32
basic: [33
{ name: 'Black', code: '#000000', active: true },34
{ name: 'White', code: '#FFFFFF' },35
{ name: 'Grey', code: '#808080' },36
{ name: 'Red', code: '#FF0000' },37
{ name: 'Blue', code: '#0000FF' },38
{ name: 'Yellow', code: '#FFFF00' }39
]40
};
1
import { uuid } from './util.js';3
export default {4
init: function(app) {5
this.app = app;6
},7
bind: function(element, args) {8
if(typeof args === 'object') {9
for(let entry of Object.entries(args)) {10
let [ key, value ] = entry;11
if(typeof this[key] === 'function' || typeof this.app.state.action[key] === 'object') {12
this.bindType(element, key, value);13
}14
}15
}16
},17
action: function(action, type, func, args) {18
action.element.addEventListener(type, function(event) {19
if(action.before) {20
action.before();21
}22
func(event);23
if(action.after) {24
action.after();25
}26
}, args);27
},28
bindType: function(element, key, value) {29
let that = this;30
if(typeof value === 'string') {31
if(Array.isArray(element)) {32
for(let item of element) {33
item.addEventListener(value, function(event) {34
if(that[key]) {35
that[key](event);36
}37
if(that.app.state.action[key]) {38
that.app.state.action[key].trigger();39
}40
});41
}42
}43
else {44
element.addEventListener(value, function(event) {45
if(that[key]) {46
that[key](event);47
}48
if(that.app.state.action[key]) {49
that.app.state.action[key].trigger();50
}51
});52
}53
}54
if(typeof value === 'object') {55
if(Array.isArray(value)) {56
for(let item of value) {57
this.bindType(element, key, item);58
}59
}60
else {61
let { type } = value;62
if(typeof type === 'string') {63
delete value.type;64
if(Array.isArray(element)) {65
for(let item of element) {66
item.addEventListener(type, function(event) {67
if(that[key]) {68
that[key](event);69
}70
if(that.app.state.action[key]) {71
that.app.state.action[key].trigger();72
}73
}, value);74
}75
}76
else {77
element.addEventListener(type, function(event) {78
if(that[key]) {79
that[key](event);80
}81
if(that.app.state.action[key]) {82
that.app.state.action[key].trigger();83
}84
}, value);85
}86
}87
}88
}89
},90
prevent: function(event) {91
event.preventDefault();92
},93
begin: function(event) {94
this.app.state.dragging = true;95
let state = this.state(event);96
this.app.socket.data(state);97
this.app.paint.draw(state);98
this.app.state.last = state.pos;99
this.app.node.toolbar.style.pointerEvents = 'none';100
},101
drag: function(event) {102
let state = this.state(event);103
if(this.app.state.dragging && document.hasFocus()) {104
this.app.socket.data(state);105
this.app.paint.draw(state);106
this.app.state.last = state.pos;107
if(event.type === 'touchmove') {108
this.prevent(event);109
}110
}111
},112
end: function(event) {113
this.state(event);114
this.app.state.dragging = false;115
this.app.state.last = null;116
this.app.node.toolbar.style.pointerEvents = '';117
},118
move: function(event) {119
this.app.state.cursor = event.target === this.app.node.canvas ? this.app.state.pos : null;120
},121
out: function(event) {122
this.app.state.cursor = null;123
},124
scroll: function(event) {125
if(event.ctrlKey) {126
event.preventDefault();127
return;128
}129
if(!this.app.modal.opened) {130
if(event.deltaY < 0) {131
this.app.state.radius += this.app.state.radius < 15 ? 1 : 0;132
}133
else {134
this.app.state.radius -= this.app.state.radius > 1 ? 1 : 0;135
}136
}137
},138
key: function(event) {139
if(!this.app.state.opened) {140
if(!event.getModifierState("CapsLock")) {141
let index;142
if(event.code.startsWith('Digit')) {143
index = parseInt(event.code.substr(5));144
}145
if(event.code.startsWith('Numpad')) {146
index = parseInt(event.code.substr(6));147
}148
if(Number.isInteger(index) && index < 7 && index > 0) {149
index--;150
for(let i in this.app.node.bucket) {151
let item = this.app.node.bucket[i];152
if(index === parseInt(i)) {153
item.classList.add('active');154
this.app.state.color = item.dataset.color;155
}156
else {157
item.classList.remove('active');158
}159
}160
}161
if(event.code === 'KeyC') {162
for(let item of this.app.node.color) {163
item.classList[this.app.state.color === item.dataset.color ? 'add' : 'remove']('active');164
}165
this.app.modal.open('color');166
}167
if(event.code === 'KeyV') {168
this.app.modal.open('scaling');169
}170
if(event.code === 'KeyT') {171
this.app.modal.open('clear');172
}173
if(event.code === 'KeyS') {174
this.app.modal.get('save').element.querySelector('input.action-file').value = 'outline-image-' + uuid();175
let input = this.app.modal.get('save').element.querySelector('.modal input.action-file');176
input.classList.remove('invalid');177
this.app.modal.open('save');178
}179
}180
}181
else if(this.app.state.current && this.app.state.current.action.cancel) {182
if(event.keyCode === 27) {183
this.app.modal.close();184
}185
}186
},187
button: function(event) {188
for(let item of this.app.node.bucket) {189
if(item === event.target) {190
item.classList.add('active');191
this.app.state.color = item.dataset.color;192
}193
else {194
item.classList.remove('active');195
}196
}197
},198
resize: function(event) {199
if(typeof event !== 'undefined') {200
let that = this;201
clearTimeout(this.app.state.delay);202
this.app.state.delay = setTimeout(function() {203
that.delayResize();204
}, 100);205
}206
else {207
this.delayResize();208
}209
},210
delayResize: function(event) {211
this.app.node.canvas.width = window.innerWidth;212
this.app.node.canvas.height = window.innerHeight;213
let cache = this.app.paint.o.getImageData(0, 0, this.app.node.overlay.width, this.app.node.overlay.height);214
this.app.node.overlay.width = window.innerWidth;215
this.app.node.overlay.height = window.innerHeight;216
this.app.paint.o.putImageData(cache, 0, 0);217
this.app.socket.request();218
},219
state: function(event) {220
let pos = null;221
if(event.type === 'mousemove' || event.type === 'mousedown') {222
pos = {223
x: event.layerX,224
y: event.layerY225
};226
}227
if(event.type === 'touchmove' || event.type === 'touchstart') {228
pos = {229
x: event.touches[0].pageX,230
y: event.touches[0].pageY231
};232
}233
return Object.assign(this.app.state, { pos: pos });234
}235
}
1
export default {2
init: function(app) {3
this.app = app;4
let that = this;5
for(let item of this.app.node.modal) {6
let name = item.dataset.modal;7
let modal = { element: item, action: {}, type: name };8
let cancel = item.querySelector('button.action-cancel');9
if(cancel) {10
modal.action.cancel = { element: cancel };11
cancel.addEventListener('click', function(event) {12
that.close();13
});14
}15
this.app.state.modal[name] = modal;16
for(let item of modal.element.querySelectorAll('[class*="action-"]')) {17
let name = item.classList[0].substr(7);18
if(name !== 'cancel') {19
modal.action[name] = { element: item };20
}21
}22
}23
this.app.state.current = this.get('join');24
for(let item of this.app.node.action) {25
let name = item.dataset.action;26
if(this.app.state.modal[name]) {27
let modal = this.app.state.modal[name];28
modal.action.open = {};29
item.addEventListener('click', function(event) {30
if(typeof modal.action.open.before === 'function') {31
modal.action.open.before(modal);32
}33
that.open(name);34
if(typeof modal.action.open.after === 'function') {35
modal.action.open.after(modal);36
}37
});38
}39
}40
},41
open: function(name) {42
if(this.app.state.modal[name]) {43
this.app.node.spinner.classList.add('hidden');44
for(let item of Object.values(this.app.state.modal)) {45
item.element.classList.add('hidden');46
}47
this.app.state.modal[name].element.classList.remove('hidden');48
this.app.node.wrapper.classList.remove('hidden');49
this.app.state.opened = true;50
this.app.state.current = this.app.state.modal[name];51
}52
},53
load: function() {54
this.app.node.wrapper.classList.remove('hidden');55
for(let item of Object.values(this.app.state.modal)) {56
item.element.classList.add('hidden');57
}58
this.app.node.spinner.classList.remove('hidden');59
this.app.state.opened = true;60
this.app.state.current = undefined;61
},62
close: function() {63
this.app.node.wrapper.classList.add('hidden');64
this.app.node.spinner.classList.add('hidden');65
for(let item of Object.values(this.app.state.modal)) {66
item.element.classList.add('hidden');67
}68
this.app.state.opened = false;69
this.app.state.current = undefined;70
},71
get: function(name) {72
if(this.app.state.modal[name]) {73
return this.app.state.modal[name];74
}75
}76
};
1
function define(args) {2
let node = {};3
if(typeof args === 'object') {4
for(let entry of Object.entries(args)) {5
let [ key, value ] = entry;6
if(typeof value === 'string') {7
node[key] = document.querySelector(value);8
}9
if(typeof value === 'object') {10
let { query, all = false, parent = document } = value;11
if(typeof query === 'string') {12
if(typeof parent === 'string') {13
parent = document.querySelector(parent);14
}15
node[key] = all ?16
Array.from(parent.querySelectorAll(query))17
: parent.querySelector(query);18
}19
}20
}21
return node;22
}23
}25
function html(func) {26
return {27
build: function(args) {28
let template = document.createElement('template');29
template.innerHTML = func(args);30
let fragment = template.content.cloneNode(true);31
return {32
element: fragment.firstElementChild,33
render: function(parent) {34
parent.appendChild(fragment);35
}36
};37
}38
};39
}41
export { define, html };
1
import { luma } from './util.js';3
export default {4
init: function(app) {5
this.app = app;6
this.g = this.app.node.canvas.getContext('2d');7
this.o = this.app.node.overlay.getContext('2d');8
},9
draw: function(args) {10
let { pos, last, radius, color } = args || {};11
if(pos) {12
if(last) {13
let delta = {14
x: last.x - pos.x,15
y: last.y - pos.y16
};17
let dist = Math.sqrt(Math.pow(delta.x, 2) + Math.pow(delta.y, 2));18
let length = dist / (radius / 2);19
for(let i = 0; i < length; i++) {20
let x = pos.x + (delta.x / length * i);21
let y = pos.y + (delta.y / length * i);22
this.g.fillStyle = color;23
this.g.beginPath();24
this.g.arc(x, y, 2 * radius, 0, 2 * Math.PI);25
this.g.fill();26
this.g.fillStyle = 'black';27
}28
}29
else {30
this.g.fillStyle = color;31
this.g.beginPath();32
this.g.arc(pos.x, pos.y, 2 * radius, 0, 2 * Math.PI);33
this.g.fill();34
this.g.fillStyle = 'black';35
}36
}37
},38
roundRect: function(x, y, w, h, r) {39
if(w < 2 * r) r = w / 2;40
if(h < 2 * r) r = h / 2;41
this.o.beginPath();42
this.o.moveTo(x + r, y);43
this.o.arcTo(x + w, y, x + w, y + h, r);44
this.o.arcTo(x + w, y + h, x, y + h, r);45
this.o.arcTo(x, y + h, x, y, r);46
this.o.arcTo(x, y, x + w, y, r);47
},48
cursor: function(state) {49
if(state.cursor) {50
this.o.fillStyle = state.color;51
this.o.lineWidth = 4;52
this.o.beginPath();53
this.o.arc(state.cursor.x, state.cursor.y, 2 * state.radius, 0, 2 * Math.PI);54
this.o.strokeStyle = luma(state.color) ? 'black' : 'white';55
this.o.stroke();56
this.o.beginPath();57
this.o.arc(state.cursor.x, state.cursor.y, 2 * state.radius, 0, 2 * Math.PI);58
this.o.fill();59
if(this.app.state !== state) {60
this.o.fillStyle = '#212121';61
this.o.font = '14px Roboto';62
this.o.textBaseline = 'top';63
this.o.textAlign = 'left';64
let text = this.o.measureText(state.name);65
this.roundRect(state.cursor.x, state.cursor.y, text.width + 12, 22, 4);66
this.o.fill();67
this.o.fillStyle = 'white';68
this.o.fillText(state.name, state.cursor.x + 6, state.cursor.y + 5);69
}70
}71
}72
};
1
export default {2
socket: null,3
connected: false,4
timeout: false,5
init: function(app) {6
this.app = app;7
},8
connect: function() {9
let that = this;10
this.socket = io('https://server.typable.dev', {11
path: '/pipe',12
reconnection: false13
});14
this.socket.on('connect', function() {15
that.connected = true;16
that.timeout = false;17
that.request();18
that.cursor();19
});20
this.socket.on('disconnect', function() {21
that.connected = false;22
that.timeout = true;23
that.app.modal.open('error');24
that.app.state.client = [];25
});26
this.socket.on('connect_error', function() {27
that.connected = false;28
that.timeout = true;29
that.app.modal.open('error');30
that.app.state.client = [];31
});32
this.socket.on('load', function(data) {33
let buffer = new Uint8Array(data);34
let image = that.app.paint.g.getImageData(0, 0, that.app.node.canvas.width, that.app.node.canvas.height);35
let array = image.data;36
for(let i = 0; i < buffer.length / 4; i++) {37
let p = i * 4;38
let data = buffer.slice(i * 4, i * 4 + 4);39
if(data[3] === 0) {40
data = [255, 255, 255, 255];41
}42
array[p] = data[0];43
array[p + 1] = data[1];44
array[p + 2] = data[2];45
array[p + 3] = data[3];46
}47
that.app.paint.g.putImageData(image, 0, 0);48
if(!that.app.state.current) {49
that.app.modal.close();50
}51
});52
this.socket.on('data', function(data) {53
that.app.paint.draw(data);54
});55
this.socket.on('clear', function(data) {56
that.app.paint.g.fillStyle = 'white';57
that.app.paint.g.fillRect(0, 0, window.innerWidth, window.innerHeight);58
});59
this.socket.on('background', function(data) {60
that.app.paint.g.fillStyle = data;61
that.app.paint.g.fillRect(0, 0, window.innerWidth, window.innerHeight);62
that.app.paint.g.fillStyle = 'black';63
});64
this.socket.on('cursor', function(data) {65
if(data.quit) {66
delete that.app.state.client[data.uuid];67
}68
else {69
that.app.state.client[data.uuid] = data;70
}71
});72
},73
reconnect: function() {74
this.socket.open();75
this.timeout = false;76
},77
send: function(key, data) {78
if(this.socket) {79
this.socket.emit(key, data);80
}81
},82
data: function({ pos, last }) {83
this.send('data', {84
pos: pos,85
last: last,86
radius: this.app.state.radius,87
color: this.app.state.color88
});89
},90
cursor: function() {91
this.send('cursor', {92
cursor: this.app.state.cursor,93
color: this.app.state.color,94
radius: this.app.state.radius,95
name: this.app.state.name,96
uuid: this.app.state.uuid97
});98
},99
request: function() {100
if(this.app.socket.connected) {101
if(!this.app.state.current) {102
this.app.modal.load();103
}104
}105
this.send('request', {106
x: 0,107
y: 0,108
width: window.innerWidth,109
height: window.innerHeight110
});111
},112
clear: function() {113
this.send('clear');114
}115
}
1
function uuid() {2
return 'xxxxxxxxxxxxxxxx'.replace(/[xy]/g, function(c) {3
let r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);4
return v.toString(16);5
});6
}8
function luma(color) {9
color = color.substr(1);10
let r = parseInt(color.substr(0, 2), 16);11
let g = parseInt(color.substr(2, 4), 16);12
let b = parseInt(color.substr(4, 6), 16);13
return ((r * 0.299) + (g * 0.587) + (b * 0.114)) > 50;14
}16
function download(file, data) {17
let link = document.createElement('a');18
link.classList.add('hidden');19
link.download = file;20
link.href = data;21
document.body.appendChild(link);22
link.click();23
}25
function isMobile() {26
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent.toLowerCase());27
}29
export { uuid, luma, download, isMobile };
1
/**2
Creates a unique identifier based on the current date.4
@function uuid5
@return {number} The unique identifier.6
*/7
function uuid() {8
return new Date().valueOf();9
}11
/**12
Creates a template Object to create HTMLElements.14
@function html15
@callback callback16
@return {Object} The template object.17
*/18
function html(callback) {19
return {20
build: function(args) {21
let template = document.createElement('template');22
template.innerHTML = callback(args);23
let fragment = template.content.cloneNode(true);24
return {25
element: fragment.firstElementChild,26
render: function(parent) {27
parent.appendChild(fragment);28
}29
};30
}31
};32
}34
/**35
Creates an object which contains the queried HTMLElements.37
@function query38
@param args - The query object.39
@return {Object} The object containing node elements.40
*/41
function query(args) {42
let result = {};43
if(typeof args === 'object') {44
for(let entry of Object.entries(args)) {45
let [ key, value ] = entry;46
if(typeof value === 'string') {47
result[key] = document.querySelector(value);48
}49
if(typeof value === 'object') {50
let { query, all = false, parent = document } = value;51
if(typeof query === 'string') {52
if(typeof parent === 'string') {53
parent = document.querySelector(parent);54
}55
result[key] = all56
? Array.from(parent.querySelectorAll(query))57
: parent.querySelector(query);58
}59
}60
}61
return result;62
}63
}65
/**66
Prevents an event.68
@function prevent69
@param {Event} event - The event to prevent.70
*/71
function prevent(event) {72
event.preventDefault();73
}75
export {76
uuid,77
html,78
query,79
prevent80
};
1
canvas.canvas {2
position: relative;3
z-index: 1;4
cursor: none;5
touch-action: none;1
* {2
-webkit-tap-highlight-color: transparent;3
}8
canvas.overlay {9
pointer-events: none;10
user-select: none;11
position: absolute;12
top: 0;13
left: 0;14
right: 0;15
bottom: 0;16
z-index: 99;5
html,6
body {7
overflow: hidden;8
}10
.wrapper {20
width: 100vw;21
height: 100vh;11
position: fixed;12
top: 0;13
left: 0;14
right: 0;15
bottom: 0;16
background: white;17
z-index: 999;18
}20
.header-list {21
width: 100%;22
height: 60px;23
background: white;24
border-bottom: 1px solid @brand-grey-5;25
display: flex;28
justify-content: center;29
align-items: center;30
background: rgba(0, 0, 0, 0.2);31
z-index: 9999;32
user-select: none;26
justify-content: space-between;27
padding: 8px 14px;28
pointer-events: all;34
& > .info {35
position: fixed;36
right: 30px;37
bottom: 30px;38
display: flex;30
&.inactive {40
ul.info-list {41
display: flex;32
.action-item,33
.tool-item,34
.option-item {35
pointer-events: none !important;36
}37
}39
.tool,40
.action,41
.option {43
ul {44
list-style-type: none;45
display: flex;46
gap: 10px;44
li.info-item {45
color: @color-dark;46
margin-left: 15px;47
user-select: none;48
font-weight: 500;48
li {49
width: 44px;50
height: 44px;51
padding: 10px;52
border-radius: 22px;53
cursor: pointer;54
pointer-events: all;50
a {51
user-select: none;52
color: @color-blue;53
text-decoration: none;56
&:not(.inactive):not(.active):hover {57
background: rgba(@brand-grey-7, 0.95);59
&.ripple {61
&.ripple-active {62
background: lighten(rgba(@brand-grey-7, 0.95), -2%);63
}64
}65
}67
&.active {68
background: rgba(#EEEEEE, 0.95);70
&.ripple {55
&.subtle {56
color: @color-grey;72
&.ripple-active {73
background: lighten(rgba(#EEEEEE, 0.95), -2%);74
}75
}76
}78
&.inactive {59
&:hover {60
text-decoration: underline;80
i.ico {81
color: @brand-grey-4;82
}83
}85
i.ico {86
color: @brand-grey-1;87
}88
}89
}90
}91
}68
.spinner {69
width: 80px;70
height: 80px;71
border-radius: 40px;72
border: 10px solid rgba(255,255,255,0.2);73
border-top: 10px solid white;74
animation: spin 2s linear infinite;93
#canvas,94
#overlay,95
.controls {96
position: fixed;97
top: 0;98
left: 0;99
right: 0;100
bottom: 0;101
}77
@keyframes spin {78
0% { transform: rotate(0deg); }79
100% { transform: rotate(360deg); }103
#overlay {104
pointer-events: none;105
}82
.modal {83
background: white;84
width: 400px;85
border-radius: 6px;86
padding: 20px;87
margin: 20px;88
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.03);90
&.modal-error {91
width: 300px;107
.badge {108
display: inline-block;109
margin-top: -1px;110
margin-left: 5px;111
padding: 2px 4px;112
border-radius: 2px;113
font-weight: 500;114
font-size: 12px;115
color: white !important;117
&.prime {118
background: @brand-blue;119
}93
.align {94
justify-content: flex-end;95
}121
&.beta {122
background: @brand-green;123
}124
}98
&.theme-dark {99
background: @color-dark;100
color: white;126
.button {127
display: block;128
height: 44px;129
padding: 0 22px;130
border: none;131
border-radius: 4px;132
background: @brand-grey-6;133
color: @brand-black;134
font-size: 16px;102
button.action-cancel {103
background: @color-dark-grey;104
color: white;136
&:hover {106
&:hover {107
background: lighten(@color-dark-grey, -2%);108
}138
&.ripple-active {139
background: lighten(@brand-grey-6, -2%);140
}141
}111
input[type="text"] {112
background: @color-black;113
color: white;143
&.outline {144
border: 1px solid @brand-grey-5;145
background: transparent;115
&:hover {116
background: lighten(@color-black, -2%);117
}147
&:hover {119
&:focus {120
background: lighten(@color-black, -2%);149
&.ripple-active {150
background: lighten(white, -2%);151
}152
}153
}124
.separator {125
border-color: @color-dark-grey;126
}128
input[type="range"] {129
background: lighten(@color-black, 2%);130
}132
.preview {133
background: lighten(@color-black, 2%);134
}136
ul.avatar-list {155
&.prime {156
background: @brand-blue;157
color: white;138
li.avatar {139
border-color: @color-dark;140
background: lighten(@color-black, 1%);159
&:hover {142
&:hover {143
border-color: lighten(@color-black, 3.5%);144
}161
&.ripple-active {162
background: lighten(@brand-blue, -2%);163
}164
}165
}149
input.action-uuid,150
input.action-file {151
padding: 12px 14px;152
width: 100%;153
border: none;154
background: #FAFAFA;155
border-radius: 3px;156
font-size: 16px;157
user-select: none;158
margin-bottom: 3px;167
&.danger {168
background: @brand-red;169
color: white;171
&:hover {161
background: #F8F8F8;162
}164
&:focus {165
background: #F5F5F5;166
}168
&.invalid {169
border-bottom: 3px solid #FF4A4A;170
border-radius: 3px 3px 0 0;171
margin-bottom: 0;173
&.ripple-active {174
background: lighten(@brand-red, -2%);175
}176
}177
}178
}175
.separator {176
border-top: 1px solid #F5F5F5;177
margin: 20px 0;178
}180
.controls {181
pointer-events: none;180
.align {183
.notification {184
top: 90px;185
position: fixed;186
display: flex;182
justify-content: space-between;183
align-items: center;184
}187
justify-content: center;188
width: 100%;189
opacity: 0;186
p {187
font-size: 18px;188
letter-spacing: 0.2px;189
padding-top: 5px;190
margin-bottom: 25px;191
p {192
display: inline-block;193
padding: 10px 24px;194
border-radius: 999px;195
background: @brand-black;196
color: white;197
opacity: 0.95;198
user-select: none;199
pointer-events: none;200
}201
}193
button {194
padding: 12px 14px;195
border: none;196
background: #F8F9FA;197
border-radius: 3px;198
font-size: 16px;199
cursor: pointer;200
user-select: none;201
transition: background 0.1s;202
color: #212121;204
&:hover {205
background: lighten(#F8F9FA, -5%);206
}203
.hotbar {204
display: flex;205
position: fixed;206
left: calc(50% - 216px);207
bottom: 30px;208
z-index: -1;208
&.success {209
background: #28A745;210
color: white;210
&.inactive {212
&:hover {213
background: lighten(#28A745, -5%);212
.color {213
pointer-events: none !important;214
}215
}217
&.danger {218
background: #DC3545;219
color: white;217
.color {218
margin: 6px;219
width: 60px;220
height: 60px;221
border-radius: 30px;222
background: #EEE;223
cursor: pointer;224
transition: transform 0.2s;225
transform: scale(0.9);226
pointer-events: all;221
&:hover {222
background: lighten(#DC3545, -5%);228
&:not(.active):hover {229
transform: scale(1);230
}224
}226
&.info {227
background: #007BFF;228
color: white;232
&.focus {233
transform: scale(1);234
}230
&:hover {231
background: lighten(#007BFF, -5%);236
&.active {237
transform: scale(1.1);238
}239
}240
}236
button.action-join {237
width: 100%;238
}240
button.action-cancel {241
width: calc(50% - 10px);242
.pencil-modal {243
top: 75px;244
left: 120px;245
}244
button.action-save,245
button.action-clear,246
button.action-background,247
button.action-scaling,248
button.action-color,249
button.action-default {250
width: calc(50% - 10px);251
}247
.scale-modal {248
top: 75px;249
left: 70px;250
width: 400px;251
height: 60px;253
ul.avatar-list {254
display: flex;255
flex-wrap: wrap;256
width: 100%;257
list-style-type: none;253
input[type="range"] {254
-webkit-appearance: none;255
width: calc(400px - 54px);256
margin-top: 21px;257
margin-left: 27px;258
height: 6px;259
background: #EEEEEE;260
border: none;261
border-radius: 4px;263
&::-webkit-slider-runnable-track {264
-webkit-appearance: none;265
}259
li.avatar {260
background: #EEE;261
border-radius: 9999px;262
border: 5px solid white;263
margin: 10px;264
width: 70px;265
height: 70px;266
cursor: pointer;267
transition: border-color 0.1s;267
&::-webkit-slider-thumb {268
-webkit-appearance: none;269
height: 20px;270
width: 20px;271
margin-top: -0px;272
background: @brand-grey-3;273
border-radius: 10px;274
cursor: pointer;269
&:hover {270
border: 5px solid #F8F8F8;276
&:hover {277
background: @brand-grey-2;278
}279
}280
}281
}275
input.action-range {276
width: calc(100% - 80px);277
-webkit-appearance: none;278
background: #F8F8F8;279
height: 6px;283
.clear-modal {284
top: calc(50% - 75.5px);285
left: calc(50% - 200px);286
width: 400px;287
padding: 25px;288
display: flex;289
flex-direction: column;291
.info {292
width: 100%;293
font-size: 20px;294
text-align: center;295
margin-bottom: 25px;296
color: @brand-black;297
user-select: none;298
}281
&:hover {282
background: #F5F5F5;300
.align {301
display: flex;302
gap: 25px;304
.btn-cancel {305
width: 185px;306
height: 50px;307
border: none;308
border-radius: 3px;309
font-size: 17px;310
}284
&::-webkit-slider-thumb {285
background: lighten(#888888, -20%);312
.btn-apply {313
width: 185px;314
height: 50px;315
border: none;316
border-radius: 3px;317
border-color: grey;318
font-size: 17px;319
}320
}321
}289
&::-webkit-slider-thumb {290
-webkit-appearance: none;291
background: #888888;292
width: 20px;293
height: 20px;294
border-radius: 9999px;295
border: none;296
cursor: pointer;297
transition: background 0.1s;323
.capture-modal {324
top: calc(50% - 213px);325
left: calc(50% - 200px);326
width: 400px;327
display: flex;328
flex-direction: column;329
padding: 25px;331
.info {332
font-size: 20px;333
width: 100%;334
text-align: center;335
margin-bottom: 25px;336
color: @brand-black;337
user-select: none;338
}300
&::-webkit-slider-runnable-track {301
-webkit-appearance: none;302
}303
}305
.preview {306
width: 60px;307
height: 60px;308
background: #F5F5F5;309
border-radius: 9999px;310
display: flex;311
justify-content: center;312
align-items: center;314
.circle {315
width: 12px;316
height: 12px;317
background: #212121;318
border-radius: 9999px;319
}320
}322
&.modal-color {323
width: 420px;324
position: relative;326
&:before {327
content: '';328
display: block;329
position: absolute;330
top: 20px;331
left: 20px;332
right: 26px;333
height: 10px;334
background: linear-gradient(white, transparent);335
z-index: 9;340
.preview {341
height: 250px;342
background: @brand-grey-6;343
border: 1px solid #f1f1f1;344
border-radius: 3px;345
margin-bottom: 25px;346
}338
&:after {339
content: '';340
display: block;341
position: absolute;342
bottom: 82px;343
left: 20px;344
right: 26px;345
height: 10px;346
background: linear-gradient(transparent, white);347
z-index: 9;348
.align {349
display: flex;350
gap: 25px;352
.btn-cancel {353
width: 185px;354
height: 50px;355
border: none;356
border-radius: 3px;357
font-size: 17px;358
}360
.btn-apply {361
width: 185px;362
height: 50px;363
border: none;364
border-radius: 3px;365
border-color: grey;366
font-size: 17px;367
}368
}369
}350
.bucket-list {351
display: flex;352
justify-content: center;353
max-height: 400px;354
overflow-x: hidden;355
overflow-y: auto;356
padding-top: 10px;357
padding-bottom: 10px;358
margin-bottom: 20px;360
&::-webkit-scrollbar {361
width: 6px;362
}364
&::-webkit-scrollbar-thumb {365
width: 6px;366
background: #EEE;368
&:hover {369
background: #CACACA;370
}371
}372
}374
.align {375
width: 100%;376
justify-content: flex-end;377
}378
}380
.bucket-list {381
display: flex;382
flex-wrap: wrap;383
width: 100%;384
list-style-type: none;386
.bucket {387
background: #EEE;388
border-radius: 9999px;389
margin: 5px;390
width: 60px;391
height: 60px;392
cursor: pointer;393
transition: transform 0.2s;394
box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);371
.colors-modal {372
flex-wrap: wrap;373
min-width: 410px;374
width: 410px;375
max-width: 410px;376
padding: 30px !important;377
top: 75px;378
left: 15px;379
display: flex;380
gap: 12px;382
.color {383
width: 60px;384
height: 60px;385
border-radius: 30px;386
background: #EEE;387
cursor: pointer;388
transition: transform 0.2s;389
transform: scale(0.9);397
user-select: none;399
&:hover {400
transition: transform 0.2s;391
&:not(.active):hover {392
transform: scale(1);393
}395
&.active {405
transform: scale(1);406
border: 3px solid #212121;396
transform: scale(1.1);397
}409
&::after {410
position: absolute;411
bottom: -20%;399
&.focus {400
transform: scale(1);401
}413
}414
}415
}417
.toolbar {418
position: fixed;419
left: calc(50% - 210px);420
bottom: 30px;421
display: flex;422
z-index: 999;402
}403
}424
.bucket {425
width: 56px;426
height: 56px;427
border-radius: 9999px;428
background: #CCC;429
margin: 7px;430
transition: transform 0.2s;431
box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);432
cursor: pointer;433
transform: scale(0.9);434
user-select: none;405
.multiplayer-modal {406
top: 75px;407
right: 130px;408
}436
&:hover {437
transition: transform 0.2s;438
transform: scale(1);439
}410
.account-modal {411
top: 75px;412
right: 80px;413
}441
&.active {442
transform: scale(1.1);443
}415
.more-modal {416
top: 75px;417
right: 20px;418
}419
}447
.actions {421
.modal {422
width: 250px;423
position: fixed;449
top: 30px;450
left: 30px;424
background: white;425
border: 1px solid @brand-grey-5;426
border-radius: 4px;427
padding: 6px 0;428
pointer-events: all;429
overflow: hidden;430
z-index: -1;431
display: flex;452
}454
.action {455
user-select: none;456
position: relative;457
width: 46px;458
height: 46px;459
border: none;460
border-radius: 9999px;461
background: transparent;462
cursor: pointer;463
outline: none;464
position: fixed;465
margin-right: 8px;467
i {468
color: #212121;469
user-select: none;470
pointer-events: none;433
.main {434
width: 248px;435
min-width: 248px;7436
max-width: 248px;437
}473
&:hover {474
background: #ECECEC;439
ul.tab-list {440
width: 248px;441
min-width: 248px;442
max-width: 248px;443
}477
&::after {478
bottom: -60%;479
}480
}445
.header {446
display: flex;447
margin-bottom: 3px;482
.tooltip {483
position: relative;484
display: flex;485
justify-content: center;486
align-items: center;449
.back {450
margin: 10px;451
margin-top: 15px;452
margin-right: 3px;453
width: 36px;454
height: 36px;455
border-radius: 18px;456
padding: 6px;457
padding-left: 5px;458
cursor: pointer;488
&:hover {460
i.ico {461
color: @brand-grey-0;462
}490
&::before {491
opacity: 1;492
transition-delay: 0.6s;493
}464
&:hover {465
background: @brand-grey-7;466
}468
&.ripple {495
&::after {496
opacity: 1;497
transition-delay: 0.6s;470
&.ripple-active {471
background: lighten(@brand-grey-7, -2%);472
}473
}474
}499
}501
&::after {502
display: flex;503
opacity: 0;504
content: attr(data-title);505
justify-content: center;506
align-items: center;507
position: absolute;508
background: #212121;509
color: white;510
min-height: 24px;511
padding: 0 10px;512
border-radius: 4px;513
font-size: 12px;514
top: auto;515
bottom: -70%;516
white-space: nowrap;517
z-index: 9999;518
pointer-events: none;519
}476
.info {477
display: flex;478
flex-direction: column;479
margin-top: 15px;521
&.up {481
p {482
display: flex;483
align-items: center;484
font-weight: 500;485
color: @brand-grey-1;486
user-select: none;487
pointer-events: none;488
}523
&::before {524
top: ~'calc(-90% + 26px)';525
bottom: auto;526
border-left: 6px solid transparent;527
border-right: 6px solid transparent;528
border-top: 6px solid #212121;529
border-bottom: none;490
span {491
display: block;492
margin-top: 3px;493
font-size: 12px;494
color: @brand-grey-3;495
user-select: none;496
pointer-events: none;497
}498
}499
}501
ul.item-list {532
&::after {533
top: -60%;534
bottom: auto;503
.separator {504
margin: 6px 0;505
width: 100%;506
height: 1px;507
background: @brand-grey-5;508
}536
}538
&.down {510
li.caption {511
padding: 2px 15px;512
padding-top: 12px;513
list-style: none;540
&::before {541
top: auto;542
bottom: ~'calc(-90% + 26px)';543
border-left: 6px solid transparent;544
border-right: 6px solid transparent;545
border-top: none;546
border-bottom: 6px solid #212121;515
p {516
color: @brand-grey-3;517
user-select: none;518
pointer-events: none;519
}520
}549
&::after {550
top: auto;551
bottom: -60%;522
li.item {523
display: flex;524
align-items: center;525
padding: 15px;526
cursor: pointer;528
&.empty {530
p {531
display: block;532
width: 100%;533
color: @brand-grey-3;534
text-align: center;535
user-select: none;536
pointer-events: none;537
}538
}540
&:not(.active):not(.inactive) {542
&:hover {543
background: @brand-grey-7;544
}546
&.ripple {548
&.ripple-active {549
background: lighten(@brand-grey-7, -2%);550
}551
}552
}554
i.ico {555
color: @brand-grey-1;556
user-select: none;557
pointer-events: none;558
}560
i.lang {561
display: flex;562
justify-content: center;563
align-items: center;564
font-style: normal;565
font-weight: 600;566
width: 24px;567
height: 24px;568
color: @brand-grey-1;569
user-select: none;570
pointer-events: none;571
}573
.info {574
display: flex;575
flex-direction: column;576
margin-left: 10px;577
max-width: calc(100% - 24px - 10px);579
p {580
display: flex;581
align-items: center;582
font-weight: 500;583
color: @brand-grey-1;584
user-select: none;585
pointer-events: none;586
}588
span {589
display: block;590
margin-top: 3px;591
font-size: 12px;592
color: @brand-grey-3;593
user-select: none;594
pointer-events: none;595
white-space: nowrap;596
overflow: hidden;597
text-overflow: ellipsis;598
}599
}601
&.active {602
background: #EEEEEE;604
&.ripple {606
&.ripple-active {607
background: lighten(#EEEEEE, -2%);608
}609
}610
}612
&.inactive {614
i.ico {615
color: @brand-grey-4;616
}618
.info {620
p {621
color: @brand-grey-3;622
}624
span {625
color: @brand-grey-3;626
}627
}628
}629
}630
}631
}
1
@import (less) '../css/lib/google-fonts.min.css';1
@import (less) 'variable.less';2
@import (less) 'theme.less';5
@import 'index.less';4
@import (less) 'index.less';5
@import (less) 'tooltip.less';
1
@color-dark: #333C41;2
@color-black: #272F34;3
@color-dark-grey: #555555;4
@color-grey: #777777;5
@color-blue: #007BFF;1
@brand-blue: #0372EF;2
@brand-green: #388E3C;3
@brand-red: #E53935;4
@brand-black: #24292E;6
@brand-grey-0: #424242;7
@brand-grey-1: #555555;8
@brand-grey-2: #757575;9
@brand-grey-3: #9E9E9E;10
@brand-grey-4: #E0E0E0;11
@brand-grey-5: #F1F1F1;12
@brand-grey-6: #F5F5F5;13
@brand-grey-7: #FAFAFA;
1
.tooltip {2
position: relative;3
display: flex;4
justify-content: center;5
align-items: center;7
&:hover {9
&::before {10
opacity: 0.95;11
transition-delay: 0.6s;12
}14
&::after {15
opacity: 0.95;16
transition-delay: 0.6s;17
}18
}20
&::after {21
display: flex;22
opacity: 0;23
content: attr(data-title);24
justify-content: center;25
align-items: center;26
position: absolute;27
background: @brand-black;28
color: white;29
min-height: 24px;30
padding: 0 12px;31
border-radius: 999px;32
font-size: 12px;33
top: auto;34
bottom: -64%;35
white-space: nowrap;36
z-index: 9999;37
pointer-events: none;38
}39
}
4
@screen-md: 992px;5
@screen-lg: 1200px;7
@color-success: #28A745;8
@color-danger: #DC3545;9
@color-info: #007BFF;7
* {8
margin: 0;9
padding: 0;
19
html {20
position: relative;25
overflow: hidden;21
overflow-x: hidden;22
min-height: 100vh;23
}
42
cursor: pointer;43
}49
.gutter(@unit, @width) {51
[class*="col"],52
.col-auto,53
.container,54
.container-fluid {55
padding-left: @unit;56
padding-right: @unit;57
}59
.col-auto-out {60
margin-left: @unit;61
margin-right: @unit;62
}64
.row {65
display: flex;66
margin-left: -@unit;67
margin-right: -@unit;68
}70
.container {71
max-width: @width;72
margin-left: auto;73
margin-right: auto;74
}75
}45
.hidden {46
display: none !important;47
}49
.ico {50
font-family: 'Material Icons';51
font-weight: normal;52
font-style: normal;53
font-size: 24px;54
display: inline-block;55
line-height: 1;56
text-transform: none;57
letter-spacing: normal;58
word-wrap: normal;59
white-space: nowrap;60
direction: ltr;61
-webkit-font-smoothing: antialiased;62
text-rendering: optimizeLegibility;63
-moz-osx-font-smoothing: grayscale;64
font-feature-settings: 'liga';65
user-select: none;66
pointer-events: none;67
}
1
{2
"name": "Outline",3
"short_name": "Outline",4
"icons": [{5
"src": "https://server.typable.dev/outline/asset/img/app/icon-192x192.png",6
"sizes": "192x192",7
"type": "image/png"8
}],9
"start_url": "https://server.typable.dev/outline/index.html",10
"display": "standalone",11
"theme_color": "#FFFFFF"12
}
1
const FILES_TO_CACHE = [];3
self.addEventListener('install', function(event) {4
event.waitUntil(5
caches.open('test').then((cache) => {6
return cache.addAll(FILES_TO_CACHE);7
})8
);9
});11
self.addEventListener('fetch', function(event) {12
event.respondWith(13
caches.match(event.request).then(function(response) {14
return response || fetch(event.request);15
})16
);17
});