diff --git a/.dockerignore b/.dockerignore
deleted file mode 100644
index bc487890..00000000
--- a/.dockerignore
+++ /dev/null
@@ -1,3 +0,0 @@
-node_modules
-app
-sessions
\ No newline at end of file
diff --git a/.eslintrc.json b/.eslintrc.json
deleted file mode 100644
index 1f9fff30..00000000
--- a/.eslintrc.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "env": {
- "es2021": true,
- "browser": true,
- "node": true
- },
- "extends": "eslint:recommended",
- "parserOptions": {
- "sourceType": "module"
- },
- "rules": {
- "no-prototype-builtins": "off",
- "no-console": "off",
- "no-useless-escape": "off",
- "no-self-assign": "off",
- "no-empty": [
- "error",
- {
- "allowEmptyCatch": true
- }
- ],
- "no-unused-vars": [
- "error",
- {
- "args": "none"
- }
- ],
- "space-before-function-paren": [
- "error",
- "never"
- ],
- "indent": [
- "error",
- 4,
- {
- "SwitchCase": 1,
- "ObjectExpression": 1,
- "ArrayExpression": 1,
- "MemberExpression": "off",
- "ignoredNodes": ["ConditionalExpression", "TemplateElement"]
- }
- ],
- "linebreak-style": [
- "error",
- "unix"
- ],
- "quotes": [
- "error",
- "single",
- { "allowTemplateLiterals": true }
- ],
- "semi": [
- "error",
- "never"
- ]
- }
-}
diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml
deleted file mode 100644
index 68eaa5f3..00000000
--- a/.forgejo/workflows/build.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-name: Build
-on: [workflow_dispatch]
-
-jobs:
- Deploy:
- runs-on: docker
- container:
- image: ghcr.io/catthehacker/ubuntu:act-latest
-
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- with:
- lfs: 'true'
-
- - name: Docker Login
- run: |
- docker login -u riksolo -p ${{secrets.CONTAINER_REGISTRY_TOKEN}} git.riksolo.com
-
- - name: Build and push
- run: |
- docker build -t git.riksolo.com/riksolo/open-stage-control:latest -t git.riksolo.com/riksolo/open-stage-control:${{github.sha}} .
- docker push git.riksolo.com/riksolo/open-stage-control:latest
- docker push git.riksolo.com/riksolo/open-stage-control:${{github.sha}}
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 71086d11..1687d79e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,17 +1,2 @@
-# npmg
node_modules/
-
-# build
-/app/
-
-# python/midi build
-src/server/python/*
-!src/server/python/*.py
-
-# docs build
-src/docs/widgets-reference.js
-properties-reference.md
-
-# packaging
-dist/
-sessions/
\ No newline at end of file
+config.json
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..d2934df7
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,30 @@
+language: node_js
+node_js:
+ - "4.1"
+addons:
+ apt:
+ packages:
+ - wine
+deploy:
+ provider: releases
+ api-key:
+ secure: Nb4qJlmLEE2/ETHEYe8V8eGI08d4GuE5kdQef5ZnB4PrstppLlAjShv5E4DNTsyalMOMDjpw9v+9aQNzxGiGv+lCVVL5oFvqvDpcYusRuF9Qua7oJtFh+5FvjgC1DDjauk5Z7WQWMvzWwfNmqbY/lxPbA4zVy4kdYkGV/8WnzA9AL5fU0ZU8gDsFjcr9Pz81XDsDXtPH/+iMuclMsEl8V/ZuswWlZaFn1Jnb1tcGC5WUCsuNQo/+gGfSK6Qcf9AKsIrOjdzi55s4jqH1N7P/kKi4a2tWUTwmSLrOxdUmSYjXVOxMu0cAEnHSeYREv/5o6J0MbfQrDoxh2y5roPZzqE+FAuFLl+b/+bYlW0mrfYfSuP/VX9LYh5JSvrhN7rZuUfMqS1iM7c9Dx8sZadMnvYEAAJhH8IV/9SkuRa/8QoIpXf7YB9v1jERxs4gk5CPT5Aml6nY/CvMWiEQ/wJhC7iZd/QRHshgfNLfAGlbbNU2KP6ZsVAGD601fyST/8neoQqLqS9mteOr1QME3c5EFw+XaauIQNYZSl+wJr8Y1YMcKY+fbJqqR0TXkbsoxFgV9PRf/4ZCjIJYtmelQVlM7j20XavOHM/Ko6/y7a3pohFz+ql3YR9jGF5XW2foXb4+e6DwTGL91/f75hYcsvXxoKbeaBjWpaSK8532UTeVkhPM=
+ file:
+ - "./dist/open-stage-control-i386.deb"
+ - "./dist/open-stage-control-amd64.deb"
+ - "./dist/open-stage-control-osx.zip"
+ - "./dist/open-stage-control-win32.zip"
+ - "./dist/open-stage-control-win64.zip"
+ skip_cleanup: true
+ on:
+ tags: true
+before_deploy:
+ - cd dist
+ - zip -q -r --symlinks open-stage-control-osx open-stage-control-darwin-x64/open-stage-control.app
+ - zip -q -r open-stage-control-win32 open-stage-control-win32-ia32
+ - zip -q -r open-stage-control-win64 open-stage-control-win32-x64
+ - cd ..
+ - npm run deb32
+ - npm run deb64
+ - mv dist/open-stage-control-linux-ia32/*.deb dist/open-stage-control-i386.deb
+ - mv dist/open-stage-control-linux-x64/*.deb dist/open-stage-control-amd64.deb
diff --git a/AI_POLICY.md b/AI_POLICY.md
deleted file mode 100644
index 20067a2d..00000000
--- a/AI_POLICY.md
+++ /dev/null
@@ -1,7 +0,0 @@
-Anything AI-related is strictly prohibited from this project.
-
-If you think this project could benefit from a smart use of AI, think harder.
-
-Think harder about the (hundreds of) millions of data workers that make your AI "smart", not to mention the monumental ecological waste it represents.
-
-If you still think this way, don't tell me.
diff --git a/CHANGELOG.md b/CHANGELOG.md
deleted file mode 100644
index ff189256..00000000
--- a/CHANGELOG.md
+++ /dev/null
@@ -1,1778 +0,0 @@
-# Changelog
-
-## 1.31.2
-
-- bug fixes
- - editor: fix regression (1.30.0) causing errors when editing the value property
-
-- widgets
- - canvas: allow `onResize` to send and trigger widget synchronization and scripts
-
-## 1.31.1
-
-- bug fixes
- - clone: regression causing error when some widgets have a non-string id
-
-## 1.31.0
-
-- widgets
- - clone, fragment: add `scoped` property. This allows making the widget self-contained (independent from its original) by prefixing all widget ids automatically (and transparently resolving unprefixed ids in advanced syntaxes and scripts within the scope)
-
-- bug fixes
- - midi: unrecognized `no_auto_note_off` option
- - MacOs: the app now quits when all windows are closed
- - launcher: if the Tray icon is enabled, closing the launcher window won't quit the app if the server is running
- - scrollbar widget: fix initial value in vertical mode
- - console: fix copying using CmdOrCtrl+C when the editor is enabled
-
-- custom module
- - objects transmitted using `receive()` will be received as objects by the client app (instead of a json string)
-
-## 1.30.4
-
-- bug fixes
- - remote control: add support for icon transform suffixes
- - editor: fix moving/resing widgets inside folders when using percent units
- - clone: `@{parent.propertyName}` blocks in target widget now update when clone's parent property updates
-
-- widgets
- - encoder: add `horizontal` mode
- - knob: add `encoder` design
-
-## 1.30.3
-
-- bug fixes
- - scrollbar: missing update upon target container resize
- - server: regression breaking reception of osc message over tcp
-
-- widgets
- - file: remember last visited directy per widget if `directory` property is not set
- - knob: add `horizontal` mode
- - eq: filter responses are now only computed when needed; the widget's value is no longer exposed / sync'ed.
- - plot, eq: unclip line drawing on y-axis
-
-- scripting
- - add `uploadFile` function for reading client-side files
- - add `scrollIntoView` function
-
-## 1.30.2
-
-- bug fixes
- - when using objects in properties, numbers-as-strings and booleans-as-strings values are now preserved instead of being converted to their litteral counterparts
- - rgb: fix rendering issue
- - patchbay: interaction and rendering issues
- - `event.preventDefault` in `onTouch` now affect modal buttons
- - menu: use click event instead of tap in `toggle` and `doubleTap-toggle` modes
- - button: missing `move` events in `onTouch`
- - error when logging `event` object in `onTouch`
-
-- widgets
- - modal/button/file: add `click` property
-
-- editor
- - preserve code editor undo history between consecutive edits of a same widget's property
- - preserve fullscreen code editor focus when saving / submitting
-
-- client
- - add `noWarning` client option
-
-## 1.30.1
-
-- bug fixes
- - regression breaking user asset loading from a root directory named "assets"
- - regression breaking custom module's `nativeRequire()` for locally installed modules
-
-## 1.30.0
-
-- bug fixes
- - server: fix resolving absolute file urls containing the remote-root path
- - prevent editor zoom level from affecting drag events when the editor is disabled
- - prevent changing editor zoom level when it's disabled
- - fader: fix touchZone == knob for compact design
- - separator labels missing in inspector
- - make the client app more robust to restrictive browser settings (cookie must still be enabled for the app to fully work)
-
-- widgets
- - the html property is no longer restricted / sanitized
- - input/textarea/select no longer have their appearance property reset in custom html
- - canvas: added `contextType` property
- - file: honor server's `remote-root` option (remove root path from displayed path and returned value)
- - menu: changed default `layout` to `vertical`
- - root/panel/modal/tab: support setting `scroll` to `hidden` (hides scrollbars and allows scrolling)
- - add new `scrollbar` widget that connects to a scrolling container widget and acts as it scrollbar
- - input: add `noCanvas` option to avoid blurry text under some circumstances
- - xy: add `clipX` and `clipY` proprties (allows multixy to set per-pads anges limits)
- - button: add `onTouch` script
- - switch: make `values` property dynamic
-
-- editor
- - selecting a widget automatically shows it in the widget tree if it's not minimized
- - submitting an unchanged value for the `value` property will now affect the value state of the widget even if the property content itself did not change
-
-- scripting
- - user scripts are longer protected against infinite loop and the main window object may be reached (it's not supported to break out of scripting context, but resources are no longer wasted to prevent it)
- - `toolbar()` can now target menu actions by id instead of index
- - `getToolbar()` function added (returns the state of a menu entry toggle)
- - calling `setFocus()` without argument now unfocuses current active element
-
-- midi
- - add `no_auto_note_off` option
- - add `Restart backend` action to the launcher's menu
- - add `restartMidiBackend()` function to custom module context
-
-- breaking change
- - dropped support for iOS 10.3
- - minimum chromium version requirement raised to 70
- - macOS 11 (Big Sur) or above is now required (the node package will work on older system)
- - scrollbars are no longer emulated on iOS
- - scrollbar styling is now done using only the standard css scrollbar-* properties) to be more in line with system scrollbars in general
- - panels no longer use their value to set/get their scrolling state, nor do they sync scrolling automatically. Instead there's now a dedicated scrollbar widget that can be used for this.
-
-- misc
- - now using electron v36.9.5
-
-## 1.29.9
-
-- build
- - fix building from sources now that open stage control is not hosted on github
-
-- scripting
- - user scripts are longer protected against infinite loop
-
-## 1.29.8
-
-- bug fixes
- - firefox: `onTouch` error when the cursor goes outside the page
- - dropdown: label not initialized until a value is set
- - editor: regression (1.29.0) preventing color changes made with the color to be undoable unless validaed with the enter key
- - editor: color picker interaction issue in near #000000
- - rgb: incoming values were not queued when during user interaction
-
-- client
- - add `title` client option
-
-## 1.29.7
-
-- launcher
- - add tray icon and menu (landed in 1.29.6 accidentally), disabled by default (can be enabled from the launcher's menu)
-
-
-## 1.29.6
-
-- bug fixes
- - matrix: prevent error when `quantity` is invalid
- - multixy/xy: send value when setting `spring` to `true` (only if current value is different than spring value)
- - switch/menu/fader: more consistent rendering when `borderRadius` is set
-
-- widgets
- - multixy/xy: add `stepsX` and `stepsY` properties
-
-- misc
- - native silicon buids (osx-arm64)
-
-## 1.29.5
-
-- bug fixes
- - keyboard: regression (1.27.5) breaking `velocity` property
- - editor: retain scroll position in code editors
- - cli: regression (1.28) preventing from setting options from a terminal on windows
-
-
-## 1.29.4
-
-- bug fixes
- - regression (1.29.3) breaking some widget recreation routines
-
-## 1.29.3
-
-- widgets
- - frame: add `allow` property
- - matrix: make `quantity` a dynamic property to avoid losing widget state when it changes
- - patchbay: missing `preArgs` implementation
-
-## 1.29.1 / 1.29.2
-
-- bug fixes
- - scripting: `setFocus` not working on iOS
- - fader/range: drawing error with `pips` enabled
-
-## 1.29.0
-
-- bug fixes
- - file browser: drive listing failing on recent windows
- - root: `hideMenu` not working when `--read-only` is set
- - combining `--read-only` and `--fullscreen` now disables `F11` on built-in client
- - regression breaking `pips` for range widget
-
-- widgets
- - add `onTouch` to all container widgets
- - allow starting a traversing gesture outside a touchable widget
- - fader: make `knobSize` dynamic
-
-## 1.28.5
-
-- bug fixes
- - multixy: error when `points` is `0` (or empty array) (again)
-
-## 1.28.4
-
-- bug fixes
- - multixy: error when `points` is `0` (or empty array)
-
-## 1.28.3
-
-- bug fixes
- - multixy: correclty handle incoming feedback values and simultaneous touch releases
-
-## 1.28.2
-
-- bug fixes
- - regression in feedback handling (unfixes multixy simultaneous spring issue temporarily)
-
-## 1.28.1
-
-- bug fixes
- - eq: `highpass` filter not working as expected with `poles` set
- - fader: `touchZone` not applied to `doubleTap` events
- - fader: `touchZone` not affecting mousewheel interactions
- - fader: regression causing issues with `onTouch` scripts
-
-## 1.28.0
-
-- bug fixes
- - ui: global zoom (CmdOrCtrl + scroll / + / - / 0) issues and conflits with native browser zoom;
- - ui: limit ctrl + scroll zoom speed
- - broken cli when `ELECTRON_RUN_AS_NODE` is set
- - inspector: input bug when a code editor was focused using the tab key
- - inspector: prevent editing non-editable widgets (e.g matrix items) when clicking on their ids in error logs
- - multixy: simultaneous touch releases not working correctly when `spring` is set and feedback values are received shortly after being sent
-
-- widgets
- - fader: add `touchZone` property to allow restricting interaction to a part of the widget
- - eq: add support for n-poles lowpass and highpass filters with the filter's `poles` property
- - eq: adapt sampling frequency to the x-axis range
- - xy/multixy: add `auto` choice to `axisLock` (locks on the first moved axis)
- - file: `extension` can now be an array of strings
- - plot/eq: smoother curves
- - sliders/pads: `doubleTap` can now be `"script"`, in which case `onTouch` will be called with `event.type` set to `doubleTap`
- - xy: add `label` property
- - multixy: add `padsAttr` property for per-pad customization
- - panel: `tabsPosition` can now be `hidden`
- - pads: support percents in `pointSize`
-
-- scripting
- - `console.log` now always print the id of the widget that called it
-
-- editor
- - inspector: tab key navigation now works, property categories can be fold/unfold with enter/space when focused
- - inspector: `F2` now focuses the `html` property in the inpector if `label` is not present
- - tree: add `mod + f` to focus the search input
-
-
-
-## 1.27.5
-
-- bug fixes
- - patchbay: layout issue
- - widget: regression causing error when emptying the css property and leaving only class declarations
- - modal: incorrect position in scrolled containers when `relative` is `true`
- - menu: incorrect position in scrlled containers depending on menu's alignment
- - button: `locals.touchCoords` not updated upon release and incorrect when `doubleTap` is set
-
-## 1.27.4
-
-- bug fixes
- - fader: pips drawing issue causing small a position offset or errors with some browsers
- - script: setFocus not working with textarea widgets
-
-## 1.27.3
-
-- bug fixes
- - regression causing circular loop errors upon certain editions
- - fader: glitch with large `lineWidth` values in default design mode
-
-## 1.27.2
-
-- bug fixes
- - multixy: `default` not applied when points are named
- - clone: avoid some unnecessary property checks
- - clone: prevent missing editions in target properties (e.g. VAR{} renamed with the same return value)
-
-- client
- - show 3-dots menu in read-only mode with access to allowed items (e.g fullscreen)
- - hide console in read-only mode
-
-- widgets
- - matrix: don't implicitely override children's `label`, do it explicitely in `props`' default
-
-- custom module
- - `receive()` and `send()` now accept `host` and `port` to be provided as a single string argument joined by a colon
-
-## 1.27.1
-
-- bug fixes
- - server: `fullscreen` option not working when `read-only` is set
- - led and text widgets not client-syncing
- - patchbay: `address` not working properly when set to `auto`
- - patchbay: `ignoreDefaults` not working properly
- - editor: missing position indicator in color picker pad
- - file browser: fallback to home directory when last visited directory is not accessible
-
-- mobile
- - apply root's (or themes) background color the the browser's topbar when possible
-
-
-## 1.27.0
-
-- bug fixes
- - app address / qr code not updating when network changes
- - issue after theme auto reload (broken grid, colors not updated)
-
-- widgets
- - pads: expose css variable `--point-size`
-
-- custom module
- - provide error backtraces in module.exports functions
- - add `reload()` callback to provide finer control over the module's lifecycle
- - add `stop()` callback (runs when the server stops)
-
-- remote control
- - add /SESSION/CREATE command
-
-- client
- - file browser now remembers the last displayed directory
- - allow dismissing notifications by clicking on them
- - allow toggling notifications globally from main menu
- - add `notifications` client option
-
-## 1.26.2
-
-- bug fixes
- - user resources not loading when using an external browser
- - advanced syntaxes resolution order issue
-
-- advanced syntaxes
- - display an error in the console in some unsupported advanced syntaxes use cases
-
-## 1.26.1
-
-- bug fixes
- - mac: unable to show launcher windows when starting minimized
-
-## 1.26.0
-
-- bug fixes
- - scripting: `getProp()` now correctly returns a copy of the property if it is an object
- - prevent infinite loop when loading widgets with complex inter-dependencies
- - modal: layout issue on iOS 15+
-
-- widgets
- - dropdown: allow resubmitting the same value
- - switch: allow resubmitting the same value
- - plot: missing `logScaleX` and `logScaleY` properties
- - xy/multixy: add `axisLock` property; allow locking one the axis by holding `Shift` while dragging if `axisLock` is not set, bypasses it otherwise.
- - knob/fader/range: add `colorKnob` property
-
-- launcher
- - on Mac, start hidden if `Start minimized` is set
- - allow dropping files into file fields
-
-- custom module
- - expose `tcpServer` to allow monitoring the state of tcp connections
-
-## 1.25.7
-
-- bug fixes
- - rare issue that made the last widget(s) in a container disappear when other widgets in the same container had a specific property dependency pattern
-
-- remote control
- - `/EDIT*` commands sent by a custom module are not affected by the server's `read-only` option anymore
-
-- widgets
- - input: allow using a number in `numeric` to specify stepping value for mousewheel interaction
- - root: add `onPreload` scripting property
-
-## 1.25.6
-
-- bug fixes
- - sliders: error when `steps` is an array
-
-- scripting
- - `stateSet`: add optional `{send: false}` flag
-
-## 1.25.5
-
-- bug fixes
- - code editor: issue when middle clicking in the editor on linux
- - code editor: modern js operators such as `**` not recognized
- - sliders: prevent error when `steps` is not a number, add `auto` mode for using ranges values as steps (it did not work before)
- - pads, range: value not initialized as an array, causing errors in some cases
- - modal: popup not closing when `doubleTap` is true
-
-## 1.25.4
-
-- bug fixes
- - custom module: `receive()` not passing boolean arguments properly
- - fix `--authentication` on iOS clients
-
-- editor
- - display current widget value in the `value` property's help modal
-
-## 1.25.3
-
-- bug fixes
- - input: rendering issues with big font sizes
- - panel: tab rendering issue when initialized with a non-numeric value
- - panel: minor style issue in tab navigation bar
- - scripting: scripting functions not working inside `browseFile()` callback
- - scripting: using `external: true` in `set()` should prevent affected widget from sending any message
- - button: inconsistent value in `push` mode with `decoupled` enabled when setting value from script
-
-## 1.25.2
-
-- bug fixes
- - textarea: escape key not restoring previous value
- - scripting: `setFocus(id)` not affecting textarea widgets
- - led, text, variable: value not synchronized between different clients
- - error when running from sources on Mac
-
-## 1.25.1
-
-- bug fixes
- - regression in inter-widget sync mechanism
- - regression breaking `set()` function in scripts
- - textarea: display nothing instead of "null" when receing no value, null or an empty string
-
-## 1.25.0
-
-- bug fixes
- - multixy: doubleTap not working on touch devices
- - button: `x` and `y` variables not passed to `onValue` when `doubleTap` is true on touch devices
- - advanced syntax: update issue with clones using their own value in their properties
- - client: minor keyboard shortcut issues
- - panel: mitigate client synchronization issue with scrollbars
-
-- widgets
- - menu: add a background to menu items to help distinguish them
- - menu: merge different interaction modes into a single `mode` property
- - menu: add `swipe` mode
-
-- remote control
- - `/STATE/SET`: add optional argument to prevent widgets from sending their value
-
-## 1.24.2
-
-- bug fixes
- - editor: regression breaking widget context menu actions under "Position" submenu
- - touch devices: touchend event not fired on elements removed/detached during touchstart/touchmove callbacks (caused issues when switching tabs using a button inside a tab)
-
-
-## 1.24.1
-
-- bug fixes
- - launcher: `Ctrl+M` keyboard shortcut not working
- - widgets: regression incurring a small delay before resolving a property that depends on a widget's own value
- - server: `--client-size` and `--client-position` options not parsed correctly
-
-- advanced syntaxes
- - support `@{}` inside `IMPORT{}`
-
-## 1.24.0
-
-- bug fixes
- - widgets: circular value feedback issues
- - editor: `ctrl + e` not working when hit multiple times without releasing `ctrl`
- - mobile: "prevent sleep" feature not working
-
-- widgets
- - patchbay: add `in`, `out` and `both` modes to `exclusive` property
- - panel: replace `verticalTabs` property with `tabsPosition` (supports 4 directions)
-
-- custom module
- - add optional `errorCallback` argument to`loadJSON` and `saveJSON`
-
-- server
- - print multiple qrcodes if multiple network interfaces are available and prevent printing a qrcode for the localhost address
-
-- misc
- - add linux rpm packages
-
-## 1.23.0
-
-- bug fixes
- - linkId not working between two encoder widgets
- - fader: `gradient` breakpoints not positioned correctly
- - canvas: `onDraw()` called twice when calling `updateCanvas()`
-
-- midi
- - optional rpn/nrpn parsing as single messages
-
-- widgets
- - keyboard: incoming values different than the `off` property are now interpreted as `on`
-
-- editor
- - when focusing the label property with `F2`, select all text in the text area
- - preserve scroll position in code editor when validating
- - display the id of selected widget in the inspector's header
-
-- scripting
- - expose file browser (from the file widget) as a scripting function
-
-- custom module
- - don't restrict file extension in `loadJSON()` and `saveJSON` functions
-
-- misc
- - add polish locales (@ Manz4rk)
- - add css classes to some notification popups to allow targetting them with css themes
-
-## 1.22.0
-
-- bug fixes
- - keyboard widget: `linkId` not working (unable to link 2 keyboard widgets)
- - slides: issues with ranges containing decimal keys
-
-- launcher
- - add menu options to show the qr code again
- - mac: change "List MIDI devices" keyboard shortcut to `Ctrl+m`
-
-- widgets
- - image: add support for special value "qrcode"
-
-- misc
- - add german locales (@ Magnus Reichel)
- - package file names changed to follow debian's convention
- - add a cli option to disable the qr code (`--no-qrcode`)
-
-## 1.21.0
-
-- bug fixes
- - custom module: fix autoreload on nested submodules
-
-- launcher
- - print a qrcode when the server starts to help connecting mobile devices
-
-- editor
- - horizontal scrolling issues with maximized code editor
-
-- widgets
- - switch/menu/dropdown: add a syntax that supports duplicate labels in `values` property
-
-- custom module
- - expose `global` object that persists accross module reloads.
-
-- scripting
- - onCreate: expose `value`
-
-## 1.20.0
-
-- bug fixes
- - scripting: prevent some functions to be marked as undefined
- - advanced syntaxes: ignores quotes around file path in `IMPORT{}`
-
-- launcher
- - add `Start minimized` menu option
-
-- misc
- - change noFocus client option behavior: the default client window now doesn't take the focus at all, even when a text input is clicked.
- - colorize debug messages for sent and received osc/midi messages
-
-- scripting
- - add `setFocusable()` function to change the focusability of the window on the fly (allows reenabling focus temporarily to interact with a text widget using a dedicated toggle button for example)
- - add `reload()` function
- - expose Navigator object with `getNavigator()`
-
-- widgets
- - fragment: add `fallback` property
-
-## 1.19.2
-
-- bug fixes
- - regression breaking touch move events on desktop touchscreens
-
-## 1.19.1
-
-- bug fixes
- - editor zoom: adjust root widget size when zooming out
-
-## 1.19.0
-
-- editor
- - add keyboard shortcut "h" to hide selection and widget drag / resize handles while pressed
- - inspector: add some shortcut buttons in the header
-
-- widgets
- - add folder widget (flat container that doesn't affect layout)
- - input: add `maxLength` property
- - multixy: allow setting its own value from onValue script while touched
-
-- ui
- - add a virtual onscreen keyboard for desktop clients (can be enabled from the clients main menu)
- - change local zoom (alt+scroll) behavior so that it only affect widgets and add scrollbars to navigate while zooming instead of following the mouse
-
-- server
- - client-options: add `virtualKeyboard` option to enable virtual keyboard by default (desktop clients only)
-
-## 1.18.3
-
-- bug fixes
- - button: regression in push mode (`on` value not passed to `onValue` script when triggered from another widget)
- - button: decoupled push mode returning wrong value when activated from a widget script
-
-## 1.18.2
-
-- bug fixes
- - canvas: `onTouch` not triggered on iOS when when `event.force`, `event.altitudeAngle` or `event.azimuthAngle` changes
- - switch: interaction issue when value labels contain icons
- - ios: attempt to fix rendering glitch when waking up after sleep
-
-## 1.18.1
-
-- widgets
- - button: add `decoupled` property, compatible with all button modes
- - button: remove `decoupled` mode
-
-## 1.18.0
-
-- bug fixes
- - client script source map not loading (helps providing useful error messages)
-
-- widgets
- - button: add `decoupled` mode (toggle mode that only updates its state when it receives a value from osc/midi messages)
- - button: add client option `altTraversing` to allow one-way response to traversing gestures for toggle buttons
- - canvas: iOS: trigger `onTouch` when `event.force`, `event.altitudeAngle` or `event.azimuthAngle` updates
- - knob: add `snap-alt` mode (snap mode that allows jumping between range.min and range.max)
- - all: add `borderRadius` property
-
-- scripting
- - add `updateCanvas()` function (forces a canvas widget to redraw)
-
-- remote control
- - `/NOTIFY`: if multiple arguments are provided, interpret the first one as the icon's name for the client notification
-
-- midi
- - on Mac, name virtual ports after the device name to avoid confusion
-
-- server
- - client-options: add `clientSync` option to allow disabling client synchronization
- - client-options: add `altTraversing` option
-
-- editor
- - add `F2` keyboard shortcut to bring label property input into view if selected widget has one
-
-## 1.17.0
-
-- bug fixes
- - editor: error when ctrl+clicking on a root's child
- - range: multitouch interaction issue
-
-- widget
- - knob / encoder: `sensitivity` and ctrl+drag gesture preserve `circular` mode behavior
- - knob / encoder: `snap` mode now works like `circular` mode except for the touch start event (value can't jump from start to end anymore)
- - patchbay: add `exclusive` option
-
-- editor
- - allow interacting with a widget without selecting it by using the middle mouse button or by holding shift+win (shift+cmd on mac).
-
-## 1.16.6
-
-- bug fixes
- - visibility property update issues
-
-## 1.16.4
-
-- bug fixes
- - modal: display issue when a modal receives the same value multiple times
- - patchbay: `outputs` property not handling object value properly
- - server: resolution conflict between app files and user files
-
-- widgets
- - patchbay: trigger `onValue` script when a connection changes
-
-- misc
- - windows: allow accessing other drives than the default one (list drives when the file browser reaches the filesystem's root)
-
-## 1.16.3
-
-- bug fixes
- - custom module: submodules not loading their own submodules with relative paths properly
- - custom module: issue with circular submodule requires
- - server: harmless error message when importing css files from the main theme file
- - server: allow using folder names "client" and "assets" for user files (eg for images used in a session)
-
-- widgets
- - canvas: add `onResize` script property
- - scripting: expose javascript's `Image` constructor
-
-## 1.16.2
-
-- bug fixes
- - widget visibility not updated properly when set as a non-boolean value
-
-- widgets
- - tabs: detach hidden tabs from the DOM (reduces lag caused by heavy tabs)
-
-## 1.16.1
-
-- bug fixes
- - eq widgets not properly converted when importing v0 sessions
- - image paths with url queries not loaded properly
- - @{} syntax not returning truncated value according to the widget's precision property (fixed for primitive values only, object values are still returned as is)
-
-## 1.16.0
-
-- advanced syntaxes
- - `@{}` and `VAR{}` that return objects / arrays do not return a copy of their value anymore as it may introduce a significant overhead when used extensively. Mutating these objects in `#{}` and `JS{}` scripts will now affect the actual values and should be avoided at all cost.
-- widgets
- - `comments` property flagged as dynamic
- - multixy: add `doubleTap` property
-
-## 1.15.8
-
-- bug fixes
- - range: value update issue (internal touch state not updated properly)
- - scripting: send(): ignore `ignoreDefaults` property
- - script: onKeyboard script not cleaned upon edition / removal
- - editor: some variables not appearing as defined in `onKeyboard`
-
-## 1.15.7
-
-- bug fixes
- - matrix: property resolution issue with object/array items in `props`
- - bypass client option `nofocus=1` when the editor is enabled
- - menu/dropdown: display label when value is undefined
-
-- misc
- - updated midi bridge: provide more information when loading fails; may fix some compatibility issue on windows
-
-## 1.15.6
-
-- bug fixes
- - ios: prevent server error related to the use of cookies
- - scripting: `getVar()` now returns a copy of the variable to prevent mutations on saved object
-
-## 1.15.5
-
-- bug fixes
- - matrix: advanced property issue in `props` property (bis)
-
-- editor
- - inspector: add solo mode with `alt+click` for category panels
-
-## 1.15.4
-
-- bug fixes
- - matrix: advanced property issue in `props` property
-
-## 1.15.3
-
-- bug fixes
- - interaction issue ("deadzone") on touch screens
- - main menu not hidden when `read-only` is set
- - osc messages containing unicode characters not encoded correctly
-
-## 1.15.2
-
-- bug fixes
- - modal: scroll state not restored when the modal container is recreated
- - server: allow spaces and accentuated characters in client id
-
-## 1.15.1
-
-- bug fixes
- - prevent flickering on canvas based widgets when they are recreated
-
-- editor
- - added code editor for `html` and `css` properties
-
-- remote control
- - add `/RELOAD` command
-
-## 1.15.0
-
-- bug fixes
- - editor: prevent accessing non-editable widgets with right arrow
- - multixy: regression causing interaction issue
-
-- widgets
- - add `lock` property to all widgets
-
-- launcher
- - add `Autostart` menu option
-
-- misc
- - update FontAwesome icon font to version 6
-
-## 1.14.6
-
-- bug fixes
- - inspector: script editor: cursor alignment issue in indented lines
- - clone: prevent freeze and print an error when attempting to create a circular clone
- - modal: regression on android that prevents focusing input widgets in modals
-
-## 1.14.5
-
-- bug fixes
- - session loading error with some malformed property cases
-
-## 1.14.4
-
-- bug fixes
- - broken console interpreter since v1.14.0
-
-- widgets
- - button: add `momentary` mode for sending messages with no value; prevent button from getting stuck when `on` and `off` are equal in `momentary` and `tap` modes
-
-- inspector
- - color picker: inline picker widget (no longer in a modal); show color changes on the fly
- - code editor: validate input with `cmd+enter` instead of `ctrl+enter` on Mac
-
-- scripting
- - `screen.height` and `screen.width` always returns the current screen dimensions
- - added `screen.orientation` global variable
-
-- misc
- - some performance improvements
-
-## 1.14.3
-
-- bug fixes
- - osc receivers (`OSC{}` syntax) now apply the same rule as widgets regarding midi messages (only receive if the message's origin matches one of the host widget's midi targets)
- - modal: rendering issue on iOS
- - button: `locals.touchCoords` not updated since v1.14.0
-
-- widgets
- - clone/fragment: remove scripting properties as they are supposed to be overridden in `props`
-
-## 1.14.2
-
-- bug fixes
- - context-menu: double click issue in submenus on small touch screens
- - clone/fragment: broken onDraw / onTouch scripts if cloned widget is a canvas
-
-## 1.14.0, 1.14.1
-
-- bug fixes
- - misc: sending typed arguments (`{type, value}` objects) should override the widget's `typeTags` definition
- - multixy: errors when `ephemeral` is `true`
- - scripting: `setVar` not affecting all widgets when multiple widgets match provided id
-
-- widgets
- - renamed `script` property to `onValue`, `draw` to `onDraw`, `touch` to `onTouch`
- - added `onCreate` script property to all widgets
- - added `onTouch` script to widgets that supported the touch state variable in scripts (now deprecated)
- - script: added `onKeyboard` property, removed `event` property
- - canvas: expose additional touch event informations (`radiusX`, `radiusY`, `rotationAngle` and iOS-only `altitudeAngle`, `azimuthAngle` and `touchType`)
-
-- scripting
- - special keyword `this` now returns the string `"this"`
-
-- advanced syntaxes
- - added `IMPORT{file}` syntax to allow loading external files in properties
-
-- editor
- - add fullscreen mode for properties with code editor enabled
-
-## 1.13.2
-
-- bug fixes
- - editor: keep relative sizes and positions when resizing multiple widgets at a time
-
-- widgets
- - canvas: expose touch pressure (as `event.force`) in the `touch` script.
- - canvas: expose touch events for extra elements added with the `html` property
-
-## 1.13.1
-
-- bug fixes
- - editor: data loss when leaving the editor's focus with no modifications
-
-## 1.13.0
-
-- bug fixes
- - scripting: `storage.getItem()` not returning anything
-
-- editor
- - new code editor for `script`, `touch`, `draw` and `props` properties with syntax highlighting, line numbers, etc
-
-- scripting
- - `set()`: add an option to prevent target widget's script
-
-- widgets
- - root: add `hideMenu` property
-
-- misc
- - minor cosmetic changes
-
-## 1.12.0
-
-- widgets
- - new **canvas** widget (under `pads`): allows creating custom widgets
- - button: expose normalized touch coordinates in scripts as `locals.touchCoords`
- - print a warning in the console when using advanced syntaxes in the script property
-
-## 1.11.1
-
-- bug fixes
- - client options specified in server config not working unless lowercased
- - make disconnection detection less aggressive (don't display notification if reconnection succeeds quickly)
- - panel: initial scroll state issue
-
-## 1.11.0
-
-- bug fixes
- - menu: interaction issue on iOS
- - script: prevent script functions from being called in the wrong scope (ie when leaked using the `globals` object) and print an explicit error
- - containers: prevent errors with some color formats in colorWidget
- - theme: relative url not resolved correctly
-
-- widgets
- - when a panel contains widgets and has `scroll` set to `true`, its value will be used to represent the scroll position for x-axis and y-axis between 0 and 1.
-
-## 1.10.3
-
-- bug fixes
- - config not persistent on windows
-
-- misc
- - read-only mode now hides and disables the main menu
-
-## 1.10.2
-
-- bug fixes
- - certificate expiration issue
- - regression breaking colors in canvas-based widgets
-
-## 1.10.0
-
-- bug fixes
- - sliders: ignore key order in `range`
- - sliders: handle mousewheel increment when starting from a value between two steps with `steps` property defined
- - inspector: allow scrolling in the help modal
- - console: fix command history behavior and increase history size
-
-- widgets
- - encoder: expose angle in script (as `locals.angle`)
- - new textarea widget (multi line input)
- - expose the computed dimensions of canvas-based widgets in `css` (as `--widget-width` and `--widget-height`) and `script` (as `locals.width` and `locals.height`)
-
-- client
- - add `Save backup` menu action (saves a backup copy of current session with an incremented suffix appended to the file name)
-
-## 1.9.14
-
-- bug fixes
- - modal: remove `html` property
- - matrix: nested property inheritance (eg. `@{id_@{id_x}}`) not working in `props`
-
-## 1.9.13
-
-- bug fixes
- - nested property inheritance (eg. `@{id_@{id_x}}`) not updating properly
- - canvas based widgets not updating when hidden
-
-## 1.9.12
-
-- bug fixes
- - client options: options ignored if not lowercased
- - sliders: prevent errors for some edge-case `range` values
-
-## 1.9.11
-
-- bug fixes
- - range: value not properly updated with set()
-
-- misc
- - (built-in client only) add `nofocus` client option to prevent the client window from taking focus unless a text input or a dropdown is clicked.
-
-
-## 1.9.10
-
-- bug fixes
- - matrix: regression from 1.9.8 (broken nested @{} syntax in props property)
-
-- misc
- - midi: detect missing binary (eg when deleted by antivirus) and print a message
-
-## 1.9.9
-
-- bug fixes
- - matrix: regression from 1.9.8
-
-## 1.9.8
-
-- bug fixes
- - matrix: update children when `props` is modified even when the result for `$ = 0` doesn't change
- - fragments: fragment widgets empty when reloading
- - panel: scrollbar issue on iOS 13+
-
-- scripting
- - expose `console.clear()`
-
-## 1.9.7
-
-- bug fixes
- - issue when resizing widget using keyboard shortcuts
- - advanced syntaxes (VAR{}): avoid storing default value as string if it can be parsed as a javascript primitive (boolean, number, etc)
- - advanced syntaxes (VAR{}): ignore quotes around variable name
-
-- editor
- - change keyboard shortcuts for moving widgets (now `mod + arrows`) and navigating in widgets (now `arrows`) to feel more natural with the project tree view.
-
-- widgets
- - script: bypass keyboard shortcuts already used by the editor if it is enabled
- - matrix: removed ambiguous `start` property
- - matrix: advanced syntax blocks can be passed to children without being resolved at the matrix\' scope by adding an underscore before the opening bracket
- - text: add `soft` mode for the `wrap` property
- - input: improve `numeric` mode on iOS
-
-## 1.9.6
-
-- bug fixes
- - advanced syntaxes: `VAR{}` not updating when the default value is edited
- - editor: fix "Bring to front" and "Send to back" context menu actions
-
-- ui
- - add keyboard shortcuts `mod + "+"` and `mod + "-"` to control zoom level
-
-- widgets
- - input: add `numeric` property (allows numeric values only and displays numeric keyboard on mobile devices)
- - button: add `soft` mode for the `wrap` property
- - switch: add `wrap` property
-
-- editor
- - display dropdown and checkbox for boolean properties with extra choices
-
-## 1.9.5
-
-- bug fixes
- - advanced syntaxes: various issues and regressions
- - editor: preserve advanced syntaxes in `left` and `top` when pasting a widget
-
-- editor
- - tree: update widget visibility when it changes dynamically
-
-## 1.9.4
-
-- bug fixes
- - prevent error with empty `OSC{}` blocks
- - regression breaking advanced syntax blocks containing nested brackets
-
-- advanced syntaxes
- - new syntax for creating and using custom variables in properties: `VAR{name, default}`
- - `JS{}` blocks don't require 2 brackets anymore (`JS\{\{}}` still works)
-
-- scripting
- - add `getVar()` and `setVar()` for reading and modifying custom variables. This allows modifying properties directly from scripts (if they contain `VAR{}` blocks).
- - expose session path as `globals.session`
-
-- editor
- - make tree item blink when hitting "Show in tree"
-
-- remote control
- - add `/SCRIPT` command to run scripts remotely
-
-## 1.9.3
-
-- bug fixes
- - scripting: set() not working from a slider to a pad
- - tabs not sending messages / triggering scripts when clicked in editing mode
- - prevent hang with some syntax errors in advanced syntaxes
- - don't show project tree if minimized when creating a new widget (1.9.2 regression)
- - fix "ID + 1" paste for widgets with numeric ids
- - dropdown: reset the underlying dropdown when the widget's value is undefined
-
-- editor
- - tree: allow specifying multiple type filters
- - tree: add "Show in session" context menu action
-
-## 1.9.2
-
-- bug fixes
- - visualizer: remove `bars` and `dots` option
- - plot: fix `bars` option
- - project tree: clear filter input when loading a session
- - server: fix serving files from paths containing accents
- - editor: keep editor open when loading a session
- - menu: prevent clipping in container on iOS
-
-- widgets
- - image: add pre defined values for `size`, `position` and `repeat` properties
- - text: add vertical alignment choices to `align`
-
-- editor
- - tree: add icons before widget ids depending on the category
- - tree: activate tab when selecting it in the project tree
- - tree: allow dragging widgets from a container to another
- - tree: expand container when a new widget is created inside it
- - tree: add support for filtering widgets by type (by typing `type:fader` for example)
- - smarter shift+drag selection: allow selecting widgets in the area when the event started on the parent container
- - select newly created widgets/tab except when copy-pasting
-
-- remote control
- - add `/STATE/SEND` command
-
-## 1.9.1
-
-- bug fixes
- - button: allow writing strings like `"1.0"` in `label` without removing the decimals
- - editor: use css variable `--grid-width` at startup and after disabling & enabling the grid
- - launcher: regression preventing server halt when built-in client is closed manually beforehand
- - scripting: prevent crash (built-in client only) when using the variable `navigator`
-
-- widgets
- - menu/switch/dropdown: reset value to `undefined` when receiving a value that's not defined in `values`
-
-- scripting
- - expose instance of navigator [Clipboard](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard) as `globals.clipboard`
-
-- midi
- - allow sending note off with velocity
- - add option for receiving note off with velocity
-
-- misc
- - v0->v1 session conversion: remove `JS\{\{}}` in script property
-
-## 1.9.0
-
-**Warning** Sessions saved with this version will not open in older versions (sessions saved with older version will open in this version).
-
-- bug fixes
- - remote-root option not applied on resources loaded by the client app (css images, etc)
- - input: display issue when resizing the window
- - launcher: cancel stopping the server when there are unsaved changes in the built-in client
-
-- editor
- - context menu: add `export` action to export a widget as a fragment file
- - show project tree if minimized when clicking on "Show in tree"
-
-- widget
- - **new** `fragment` widgets (under `containers`): embedded session or fragment file with overridable properties.
- - add `comments` property to all widgets
-
-- launcher
- - add `Always on top` menu toggle
-
-## 1.8.15
-
-- bug fixes
- - editor: error when duplicating widget while if the clipboard is empty
- - ui: local zoom move issue when not in fullscreen
- - custom module: `clearInterval()` not working
- - regression breaking style attribute in html property
-
-- misc
- - faster local zoom
-
-## 1.8.14
-
-- bug fixes
- - `alt+shift+c` not working when pressed before dragging
- - incremental pasting issue with address property
- - generate scrollbars for panels on iOS 13+
- - fix scrolling on chrome for iOS 13+
-
-- editor
- - add `mod+d` and `mod+shift+d` for duplicating widgets
- - use a temporary clipboard when duplicating widgets
-
-- misc
- - inspector: move `script` property to `scripting` category
- - ui: minor style tweaks
-
-
-## 1.8.13
-
-- widgets
- - file: show save icon when mode is set to save
- - file: center icon when hidePath is set to true
- - sliders/pads: apply `spring` property dynamically
-
-- ui
- - add `alt`+`wheel` for local zoom centered on cursor
-
-- editor
- - add `alt+c+drag` and `alt+shift+c+drag` for duplicating dragged widgets
-
-## 1.8.12
-
-- bug fixes:
- - project tree: filter input position issue when scrolling
- - sliders/pads: apply `spring` property dynamically
-
-- project tree
- - select range of contiguous widgets with shift + click
-
-- misc
- - plot: remove unused `filters` property; fix description for `rangeX` and `rangeY`
- - console: focus input when the console opens
-
-## 1.8.11
-
-- bug fixes
- - switch: widget not reacting at first touch when traversing is enabled on parent
- - sliders: disable mousewheel when `spring` is enabled
-
-- widgets
- - script: add `once` event mode
- - encoder: remove `spring` property
-
-- custom module
- - expose `process` global
-
-- scripting
- - add `openUrl` function
-
-## 1.8.10
-
-- bug fixes
- - modal: issues with children's visibility
- - console: allow multiple arguments in console.log()
-
-- ui
- - launcher: add many keyboard shortcuts
- - client: add keyboard shortcuts for clearing the console
-
-- scripting
- - add `setFocus` function to focus an input widget programmatically
-
-- misc
- - add `usePercents` client option
-
-## 1.8.9
-
-- bug fixes
- - script: issue when using the `options` argument in `set()` (options leaked to subsequent set() calls in the script)
- - multixy: `decimals` property not applied
- - multixy: spring behavior not working until all points are released
- - custom module: prevent require() from reading submodules files each time and instead return the object in memory
-
-## 1.8.8
-
-- launcher
- - add file browser button for the `theme` option and fix parsing path containing spaces if only one theme is set
-
-- windows
- - remove `ctrl+w` shortcut for closing a window (use `alt+f4` instead)
-
-
-## 1.8.7
-
-- midi
- - add active sensing messages support (received as sysex)
-
-- remote control
- - restore `/TABS` command (for opening tabs by ids)
-
-- widgets
- - encoder: expose rotation speed in script (as `locals.speed`)
-
-## 1.8.6
-
-- bug fixes
- - range: per-fader touch event not emitted properly
- - rgb: fix `spring` property
- - rgb: touch event not emitted
-
-## 1.8.5
-
-- bug fixes
- - midi: debug messages displayed as errors
- - launcher: broken context menu
-
-## 1.8.4
-
-- bug fixes
- - input: prevent focus when selecting the widget for edition
- - input: submit content when leaving focus, not only when hitting `enter` or `tab` (`esc` still cancels)
- - midi: prevent midi bridge from stopping when an error occurs; provide meaningful errors when connection fails
-
-- editor
- - inspector: hitting ctrl+s while editing a property will submit the change before saving
-
-- ui
- - hide the console toggle button when the bottom panel is minimized and the editor is disabled
-
-- widgets
- - file: add `mode` property, for choosing between `open` and `save` modes
- - switch: add `flip` mode
-
-## 1.8.3
-
-- bug fixes
- - keyboard: allow note numbers up to 127
- - server: return http 404 error when a user-requested resource is not found instead of keeping a pending request
- - modal: `visible` property not applied correctly
-
-
-- project tree
- - add an input for filtering displayed widget by id
-
-## 1.8.2
-
-- bug fixes
- - menu: allow manual line breaks ("`\n`") in labels / values
- - custom module: parsing issue when sending widget data using `receive()` (`type` attribute erroneously parsed as an osc typetag)
-
-- widgets
- - html property: allow "href" attribute on "a" elements
-
-
-## 1.8.1
-
-- bug fixes
- - script: stops triggering osc messages under some circumstances
-
-## 1.8.0
-
-- bug fixes
- - project tree: layout issue with deeply nested widgets
- - ios 10.3 regression
- - file browser: layout issue with long paths
-
-- custom module
- - add `nativeRequire` function (allows loading native node modules or locally installed modules)
-
-## 1.7.8
-
-- bug fixes
- - canvas-based widgets not drawn when placed in a modal while having a conditional visibility set
- - text: missing `decimals` property
- - clone: fix usage of osc listener syntax (acts as if clone has an `address` property set to `auto`)
-
-- widgets
- - clone: make `props` property dynamic (avoid full widget rebuild when possible)
-
-- misc
- - increase client console history size and allow changing it with client url options
-
-## 1.7.7
-
-- bug fixes
- - startup regression
-
-## 1.7.6
-
-- bug fixes
- - (harmless) error raised when starting the server from the launcher with `debug` set to `true`
-
-- editor
- - display/save color picked values with css rgba notation instead of hexadecimal
-
-- widgets
- - modal: add `ignoreTabs` option (allows overflowing tab ancestors)
- - menu: add `ignoreTabs` option
-
-## 1.7.5
-
-- bug fixes
- - ios: cloned menu not displayed correctly
- - engine: downgrade to fix startup issue on windows
-
-## 1.7.4
-
-- bug fixes
- - editor: cloned `dropdown` and `input` widgets not opening when selected
- - widgets: prevent value-stateless widgets (tap buttons, clone, scripts, html and svg) from sending a value for cross-client synchronization (leads to unexpected script execution) and exclude them from state saves
- - input: apply `decimals` number before checking the value against the `validation` expression
- - range: `steps` and `dashed` property not working; remove `origin` property
- - config conflicts between launcher and server (affecting at least session history)
-
-## 1.7.3
-
-- bug fixes
- - custom module / theme: prevent reloading the module while the file is being written to
- - server: if a theme is used, attempt to resolve image urls against the theme file's location
- - modal/button: prevent error when `label` is updated
-
-- widgets
- - encoder: add `ticks` property back
-
-## 1.7.2
-
-- bug fixes
- - midi: mtc parsing error
- - custom module: hot reload cache issue on windows
-
-
-## 1.7.1
-
-- bug fixes
- - regression causing server errors
-
-## 1.7.0
-
-**Important change**
-
-Prebuilt binaries are now supplied only for 64bit Linux/MacOs/Windows. Other platforms should use the `node` package or build it from sources.
-
-**MIDI support**
-
-As of this version, packages except the `node` package are bundled with a midi binary that will be used whenever midi's `path` option is not set. It is no longer necessary to install `python` and `python-rtmidi`.
-
-**Changelog**
-
-
-- bug fixes
- - editor: missing context menu (copy, paste) in inspector inputs
- - widgets: osc listeners not resolving "auto" address
- - cli: `ELECTRON_RUN_AS_NODE` headless mode not working without `--no-gui` option
- - ios: clone widget not laid out properly in horizontal panels
- - ui: missing vertical scrollbar when root's height overflows the workspace
- - server: provide readable error when a file requested by the client file is not found
- - tab: content not drawn when changing visible property
- - matrix: addresses not generated property when matrix' address is `auto`
-
-- ui
- - add console bottom panel with a simple script interpreter
-
-- widgets
- - keyboard: add `velocity` property (allows mapping the touch coordinates between `off` (top) and `on` (bottom))
- - input: add `validation` property (allows defining a regular expression that the value must match)
- - modal: add `relative` position property
-
-- midi
- - accept sending sysex strings without spaces between the bytes
- - load prebuilt midi binary on 64bit linux/windows/osx
- - add support for midi time code messages
-
-- misc
- - sessions converted from v0 will use the widget's html property to display the former label property
-
-## 1.6.2
-
-- bug fixes
- - matrix: issues when changing non-dynamic properties (content not properly removed)
- - input: apply default value when receiving an empty value or no value at all
-
-## 1.6.1
-
-- bug fixes
- - keyboard: prevent `script` property from being copied to each key
-
-- widgets
- - keyboard: make `on` and `off` properties dynamic
- - script: add `getIndex` function
- - matrix/keyboard: `id` variable in script is now the `id` of the child widget that triggered the event
-
-## 1.6.0
-
-- bug fixes
- - range: error when setting `default` property
- - range: fix `doubleTap` property
-
-- widgets
- - all: add `html` property to allow inserting custom content in widgets (label, value, etc) and style it with the `css` property.
-
-- scripting:
- - `send()`: ignore the widget's `bypass` property (allows bypassing default messages and define custom ones)
- - `set()`: add supports for wildcards in the id parameter
- - `set()`: add a 3rd optional parameter for preventing further script executions and/or osc messages from being sent
-
-- custom module
- - automatically reload custom module when the file is modified
- - add support for loading submodules with `require()`
-
-- theme
- - automatically reload theme when the file is modified
-
-## 1.5.4
-
-- bug fixes
- - ssl: generate unique certificates (with random serial numbers) to avoid reuse errors. Certificates generated with older versions of o-s-c will be updated automatically.
- - `~/` path prefix not recognized when using remote control commands like `/SESSION/SAVE`
- - `~/` path prefix not recognized in `remote-root` option
- - editor: paste ID+1: midi-related addresses should not be incremented
-
-- remote control
- - add `/STATE/OPEN` and `/STATE/SAVE` commands
- - ignore unsaved changes when loading a session with `/SESSION/OPEN`
- - resolve relative file paths against `remote-root` setting
-
-## 1.5.3
-
-- bug fixes
- - editor: error when `preArgs` and `address` are modified at the same time (affects `/EDIT` command and matrix/clone widgets)
-
-## 1.5.2
-
-- bug fixes
- - launcher: midi device names containing multiple spaces not parsed correctly
- - fullscreen: lack of support not detected on some ios devices
- - multixy: labels not hidden when `ephemeral` is `true`
-
-- remote control
- - add `/SESSION/OPEN` and `/SESSION/SAVE` commands
-
-## 1.5.1
-
-- bug fixes
- - widgets: touch state scripts not triggering some synchronization mechanism
-
-- widgets
- - encoder: remove `steps`, `ticks` and `origin` properties
- - encoder: make `sensitivity` work with values below 1
-
-## 1.5.0
-
-- bug fixes
- - image: broken value validation
- - menu/dropdown: use correct z-index
- - dropdown: prevent dropdown from opening when selecting the widget for edition
-
-- editor
- - holding `alt` extends the north-west handle to the widget's size to ease dragging
- - widget properties reordered (e.g. style-related properties, even widget-specific, are now under the "style" category)
-
-- widgets
- - remove `colorBg` for all widgets except containers
- - widgets background color is now transparent by default (can be overridden with css)
- - keyboard: added `colorBlack` and `colorWhite` properties to customize key colors
- - dropdown/menu: add `label` property (with support easy key/value display)
- - dropdown/menu: add `icon` toggle property
- - modal: add `popupPadding` property to control the button's and the container's padding independently
-
-## 1.4.1
-
-- bug fixes
- - multixy/range: prevent some extra touch state events;`
-
-## 1.4.0
-
-- bug fixes
- - project tree: error when dropping a widget at its initial position
-
-- editor
- - validate property change when clicking on a widget
- - cancel property change when hitting escape
- - add menu and keyboard shortcuts to reorder widgets
- - add keyboard shortcut to show widget in project tree
- - selected widget is not showed on top of the others anymore
-
-- widgets
- - expose widgets unique identifiers with property name "uuid"
- - xy/multixy: add `ephemeral` property
- - fader/knob/xy/range/multixy: remove `touchAddress` property
- - fader/knob/xy/range/multixy: expose touch state in `script` property (`touchAddress` usages will be converted automatically)
-
-## 1.3.0
-
-- bug fixes
- - editor: hide impossible actions from context-menu (eg adding widgets in tab containers)
- - editor: error when selecting a tab/root widget while a property field contains unsubmitted changes
- - panel: layout issue with tabs & lineWidth property
- - input: extend focusable area
-
-- midi
- - remove variable args in sysex messages (dynamic properties and scripting can be used to this effect)
- - add support for sending sysex bytes as integers
- - allow sending any system message (eg MIDI time code)
- - add support for receiving MIDI time code messages (as raw sysex) (requires adding the `mtc` flag to the midi configuration)
-
-
-## 1.2.1
-
-- scripting
- - expose toolbar menu actions
-
-- remote control
- - optimise small changes made with /EDIT
-
-- widgets
- - button: add `wrap` and `vertical` properties
- - root: add `width` and `height` properties (helps building mobile layouts)
-
-## 1.2.0
-
-- bug fixes
- - editor: id not incremented when pasting multiple widgets with id+1
-
-- main
- - remove support for extra args in the `custom-module` option (fixes some path issues)
-
-- widgets
- - all: add `lineWidth` style property
- - knob: add `solid` & `line` designs
- - fader: add `knobSize` property
-
-- editor
- - preserve percentages in position/size
- - add 'Relative units (%)' option to use percents automatically on new widgets
-
-## 1.1.0
-
-- bug fixes
- - iOS 14+ scrolling issue
-
-- midi
- - add support for channel pressure and key pressure messages
-
-- widgets
- - svg: remove support for non-standard `%x` and `%y` units; fixed layout update when resized;
- - knob: add support for custom dash/gap size in `dashed` property
-
-## 1.0.4
-
-- bug fixes
- - script: broken `storage.getItem` and `storage.removeItem`
- - regression breaking `remote-root` option when starting with the launcher
-
-
-## 1.0.3
-
-- bug fixes
- - modal: layout issue on iOS
-
-- widgets
- - panels: added `contain` property to allow scrolling in vertical/horizontal layouts
-
-- midi
- - add support for named ports in midi configuration
-
-
-## 1.0.2
-
-- bug fixes
- - broken scrolling on iPhone iOS 13
- - window geometry issue
-
-## 1.0.1
-
-- UI
- - windows' dimensions and position are now saved upon closing and restored at startup
-
-## 1.0.0
-
-*This list is not exhaustive*
-
-- compatibility
- - dropped support for iOS 9
- - firefox (75+) support
-
-- UI
- - overhaul design reworked
- - foldable sidepanels
- - removed lobby
- - added toolbar menu
- - display loading (spinner) in a notification instead of a modal
- - mod + w to close window
- - context-menu now use click event to trigger actions, not mousedown/touchstart
- - no more uppercase text by default
-
-- themes
- - built-in themes removed except `orange`
-
-- translations
- - incomplete russian translation removed
-
-- editor
- - project tree
- - dropdown for properties with multiple choices
- - color picker
- - preview numeric values for style-related properties set to auto
- - context menu: added "show in tree" action
- - context menu: removed "edit parent" action
- - allow copying tabs (to tab containers only)
- - shared clipboard across all clients
- - prevent interaction with widgets when `shift` or `ctrl` is held
- - ensure @{} bindings are always updated upon edition
-
-
-- widget changes
- - all: removed `label` option except for buttons, tabs and modals (one should use `text` widgets if needed)
- - all: removed support for `null` and `"self"` targets
- - all: added `ignoreDefaults` property (allows ignoring the server's default targets)
- - all: `precision` property to `decimals`, don't set osc integer typetag when 0
- - all: added `typeTags` property
- - all: multiple style properties to control visibility, colors, alphas and padding
- - all: added `interaction` (=> css `pointer-events: none;`)
- - all: added `expand` (=> css `flex: 1;`)
- - all: prevent html tags in label
- - pads: removed `split` property -> use custom-module or script instead
- - root: can contain widgets or tabs
- - panels: added `layout`, `justify` and `gridTemplate` to help managing layouts (especially responsive ones)
- - panels: added `verticalTabs` property
- - panels: added `traversing` property, allow restricting `traversing` to a specific widget type
- - fader: removed `input`
- - fader: removed `meter`
- - fader: added `gradient`
- - fader: added `round` design style
- - fader: support setting dash size and gap size in `dashed` property
- - switch: added `layout` (including grid)
- - switch: added `click` mode
- - plot/eq: removed `smooth`
- - plots/sliders/pads: reversed `logScale` behavior to match standard implementations; can be either `false` (disabled), `true` (logarithmic scale) or `number` (manual log scale, negative for exponential scale)
- - visualizer: added `framerate` property
- - visualizer: added `freeze` property
- - menu: always centered menu
- - modal: modals can't overflow parent tab boundaries
- - input: removed `vertical`
- - pads, range: when `touchAddress` is set, one message per touched point is sent, in addition to the former touch state message
- - eq: removed `logScaleX` property, always draw logarithmic frequency response
- - eq: logarithmic x-axis scale fixed
- - eq: filters are now defined with the `filters` property, leaving the `value` to its default purpose
- - eq: added `rangeX`
- - html: allow `class`, `title` and `style` attributes
- - dropdown: close menu when receiving a value
- - dropdown: removed empty 1st option
- - switch: removed `showValues` (inconsistent with menu/dropdown, feature covered by `values` property)
- - frame: allow loading non local urls
-
-- widget removals
- - `push`, `toggle`: merged into `button`
- - `strip`: features now covered by `panel`
- - `meter`: duplicate of `fader` with `design` to `compact` and `interaction` to `false`
- - `switcher`, `state`, `crossfader`: removed => state management functions added to the `script` widget
- - `keys`: merged with `script`
- - `gyroscope`: not compatible since chrome 74 unless o-s-c goes HTTPS
-
-
-- remote control
- - removed /TABS
- - added /NOTIFY
-
-- scripting (general)
- - removed MathJS language
- - reuse #{} syntax as as shorthand for JS\{\{}} (one liner, implicit return)
- - added `locals` variable, a variable store scoped to the widget
- - renamed `global` to `globals`
- - expose environment variables in `globals`: `url`, `env` (query parameters), `platform`, `screen` (width/height)
-
-- script widget
- - always hidden except in project tree
- - `script` property must not be wrapped in a JS\{\{}} block anymore
- - added `stateGet` and `stateSet` functions
- - added `storage` object, proxy to the document's localStorage object (allows storing data that persist after refresh/close (cleared with the browser's cache)
- - added `setTimeout`, `clearTimeout`, `setInterval`, `clearInterval` function proxies with an extra `id` argument (they clear automatically when called multiple times and upon widget removal. `id` is scoped to the widget)
-
-
-- state
- - quickstate (store/recall from menu) is now stored in the clients cache and persists after refresh/close (cleared with the browser's cache)
-
-- custom module
- - `settings.read(name)`: `name` is now the long name of command-line options (not a camelCased one)
- - `receive()`: optional last argument to pass extra options such as `clientId`
- - client id persist upon page refresh and can be set manually with the client url option `id`
-
-
-- launcher
- - config save/load
- - allow starting/stopping server without rebooting
- - syntax check on `--midi` option
-
-- server
- - renamed `--url-options` to `--client-options` and make them apply even in remote browsers (can be overridden with url queries)
- - removed `--blank`, `--gui-only`, `--examples`
- - hide `--disable-gpu` (cli-only)
- - added cli-only `--cache-dir` and `--config-file`
- - added `--authentication` option
- - added `--use-ssl` option
-
-
-- misc
- - canvas: better visibility checks to avoid unnecessary draw calls
- - visualizer: perf improvement (avoid data processing when not visible), all visualizers hook on the same loop to avoid concurrent timeouts
- - button: in 'tap' mode (formerly push with `noRelease`), never send/sync `off` value, automatically reset to `off` when receiving `on`
- - more detached DOM for lighter nested canvas widgets (ie multixy)
- - unified (kind of) dom html structure for widgets, known css tricks will require adjustments.
- - cache and config files are now stored in a folder named `open-stage-control` (located in the system's default location for config file). The `.open-stage-control` is no longer used.
- - added support for icons rotate/flip transform suffixes (example: `^cog.spin`, `^play.rotate-horizontal`)
diff --git a/CHANGELOG.v0.md b/CHANGELOG.v0.md
deleted file mode 100644
index 32d3b1a5..00000000
--- a/CHANGELOG.v0.md
+++ /dev/null
@@ -1,1843 +0,0 @@
-# Changelog (v0)
-
-## 0.49.12
-
-
-**This is the last release of the v0 branch**
-
-- bug fixes
- - dropdown: value update issue on iOS 13
-- widgets
- - html: allow `class`, `title` and `style` attributes
-
-## 0.49.11
-
-- bug fixes
- - regression (0.49.10) breaking icon with short names (minimum valid length set to 2 characters)
- - html widget: content not initialized properly
-
-## 0.49.10
-
-- bug fixes
- - svg files not loading
- - canvas glitches when hardware acceleration is disabled (--disable-gpu) (built-in gui only)
-
-- misc
- - prevent `--disable-gpu` from bypassing the launcher window
- - prevent converting `"^icon-name"` to an icon (in text widgets and labels) when `icon-name` is too short to be a valid icon name (minimum 4 characters)
-
-## 0.49.9
-
-- bug fixes
- - downgrade electron engine to fix regression (v0.49.8) on some systems
-
-## 0.49.8
-
-- bug fixes
- - rgb: range not applied when receiving value
-
-## 0.49.7
-
-- bug fixes
- - sync issues when widgets have a single target set
-
-## 0.49.6
-
-- bug fixes
- - windows users launching the app from a terminal now need to add a double dash (--) before their options
- - launcher: disabled unstable `Relaunch` action
-
-## 0.49.5
-
-- bug fixes
- - launcher: file/folder browsing not working
-
-## 0.49.4
-
-- bug fixes
- - image: fixed absolute paths
- - image: reset to 'default' instead of 'value' when receiving an empty value
- - launcher: use current midi config for "List devices" action
- - fader built-in meter: use fader's target (allows midi sync)
-
-## 0.49.3
-
-- bug fixes
- - windows: process not terminated properly when exiting the app
-
-## 0.49.2
-
- - bug fixes
- - plots: prevent `plot/*` widgets from sending messages when using the sidepanel's "send all" function
- - editor: assign correct `address` when emptying the field
- - sidepanel: shadow color issue
-- misc
- - alt-buttons & flat theme tweaks
-
-## 0.49.1
-
-- bug fixes
- - modal: error when `label` depends on a child's property
- - custom module: `send()` function casting numbers to integers instead of floats by default
- - menu: push mode not working on touch devices
-
-## 0.49.0
-
-**Deprecation**
-MathJS syntax is now deprecated and will be removed in the future, sessions using it will be working for a few more versions but users are strongly encouraged to migrate to the javascript syntax.
-
-
-- bug fixes:
- - multiclient sync not working when `targets` is empty
- - widgets: missing `target` property for `plots/*` widgets, required for MIDI bindings
- - editor: set `label` to `auto` instead of `true` when using the toggle button
- - editor: errors when hitting `mod + a` and unselecting widgets
- - modal: correct popup title color
- - options: allow `midi:port_name` pairs in `--send` option
- - sidepanel/state: opening a state file now properly sets it as the next default save location
-- widgets:
- - **new** `menu` widget, circular alternative to the dropdown & switch widgets
- - file: allow selecting folders
- - text: optimize value update when there's no icon to draw
-- editor:
- - convert invalid quote characters automatically to avoid errors
- - tab: added `detached` property (set to false to prevent iframes from reloading when the tab opens)
-
-## 0.48.8
-
-- bug fixes
- - strip: layout issues when moving widget in a strip (min width/height still active)
- - tcp: prevent sending osc messages on udp port when the same port number is set as a tcp target
- - midi: take server default targets into account to determine widget matching
- - save dialog: prevent keys widgets from capturing keystrokes when typing the filename
-
-## 0.48.7
-
-- bug fixes
- - xy: broken `spring` property
- - macOs: add support for emulated right click via `ctrl+click`
- - midi: messages received from a midi port now only affect widgets that send to this port
-
-## 0.48.6
-
-- bug fixes
- - ios: prevent color issues with sliders
- - editor: prevent all keyboard shortcuts from triggering default browser actions
-- main
- - detect http server silent setup failure
-
-## 0.48.5
-
-- bug fixes
- - regression breaking support for utf-8 strings in received osc messages
-
-## 0.48.4
-
-- bug fixes
- - launcher: limit terminal history size to prevent slowdown/freeze
-- widgets
- - knob: text pips support
- - fader: add css variable `--gauge-width`
-
-## 0.48.3
-
-- bug fixes
- - widgets: prevent update errors when widgets are not fully initialized
- - prevent pinch-zoom on touch screen
-
-## 0.48.2
-
-- bug fixes
- - editor: checkbox position in multiline fields
- - patchbay: widget not responding to osc after being edited
-- widgets
- - script: added `httpGet` function for simple local http requests
-
-
-## 0.48.1
-
-- bug fixes
- - modal: `popupLabel` update issues
- - modal: `popupTop` not correctly interpreting percents
- - editor: scrollbar issue in editor's input fields on recent chromium
-
-## 0.48.0
-
-- bug fixes
- - midi: listing devices from context menu not working when the midi options is empty
- - package: broken build from sources on Windows
- - editor: incorrect position when moving a widget from an edge with the keyboard
- - modal: prevent touchend event from reaching the inner widgets when opening the container
- - matrix: clone matrices not properly storing their children's values
- - multipad/range: errors when dragging over when the gesture was initiated on a traversing widget (ie matrix)
-
-- widgets
- - **new** html widget
- - frames: allow loading local html files without requiring a web server to serve them
- - text: escape html tags characters (`<` & `>`)
- - input: added `asYouType` property
- - sliders/pads: added `sensitivity` property
-
-
-## 0.47.4
-
-- bug fixes
- - keys: prevent default browser actions when a combo is bound to a widget (for example print dialog with ctrl+p)
- - xy: broken `doubleTap`
- - widget: error when two sibling widgets have a non-dynamic property depending on each others and on another widget at the same time
- - cli: broken `--version` option
-
-## 0.47.3
-
-- bug fixes
- - regression causing errors with the `value` property
-
-## 0.47.2
-
-- bug fixes
- - midi: `path` option not applied to launcher's `list` contextual action
- - midi: pitchbend messages not received correctly
- - style: layout issues in recent chromium
- - encoder: `0` value in `back` property not working
- - editor: state not completely restored under some conditions
- - push: force release when the widget is removed/recreated while pressed
-
-## 0.47.1
-
-- bug fixes
- - css font faces not loading from absolute/relative paths
-- midi
- - added `path` option for setting python binary path manually
-
-## 0.47.0
-
-- bug fixes
- - launcher: spaces not properly escaped in quoted strings
-- widgets
- - sliders: `default` and `spring` properties are now dynamic
-- server
- - images urls are now resolved relatively to the session path directory by default (fallback to absolute path resolution if not found)
-- custom module
- - added `loadJSON` and `saveJSON` functions
-
-## 0.46.2
-
-- improved canvas rendering speed on chrome v69 and above
-- widgets
- - modal: `scroll` option
- - script: `get(id)` function added in `script`execution context
- - script: `getProp(id, property)` function added in `script`execution context
- - script: `id` variable added in `script`execution context (id of the widget that triggered the script)
-
-## 0.46.1
-
-- bug fixes
- - windows: midi debug strings not printed
-
-## 0.46.0
-
-- bug fixes:
- - modal: `css` not properly applied if the property was previously empty and the modal had been opened at least once
- - image: allow overriding css background-image when value is empty
-- widgets
- - switchers: new `state` widget
-- remote control
- - added `/STATE/[GET|SET|STORE|RECALL]` methods
-- midi
- - print port name in debug messages
- - added `pc_offset` option to act as if program change numbers where between 1 and 128
-
-## 0.45.7
-
-- bug fixes
- - image: `cache` option inverted
- - image: allow whitespaces in url
-- widgets
- - keyboard: `toggles` options
-
-## 0.45.6
-
-- bug fixes
- - bottom horizontal scrollbar not responding on small screens
- - remote file browser: hitting a letter to select a file based on its name was looping on the first two matches only
- - editor: preserve backslashes in enquoted strings (not in objects/arrays)
- - editor: clear the editor when selected widget is removed by an undo/redo action
-- widgets
- - `logScale` can be set to a number to use a logarithm base different from the default
- - knob: `compact` mode is back
-
-## 0.45.5
-
-- bug fixes
- - absolute file paths not resolved under windows
- - nested `@{}` calls issue ([#516](https://github.com/jean-emmanuel/open-stage-control/issues/516))
-
-## 0.45.4
-
-- bug fixes
- - handle network drops correctly (notify immediately and fix reconnection mechanism)
- - formulas breaking the property update mechanism when not resolved
- - modal: title layout issue
-
-## 0.45.3
-
-- bug fixes
- - broken client sync for widgets with `split` set
- - custom module: `receive` function not working when omitting host/port and sending only one argument
- - file browser: prevent error when files/folders cannot be read
-
-## 0.45.2
-
-- bug fixes
- - potential security issue in `JS{{}}` parser
-
-## 0.45.1
-
-- bug fixes
- - broken session local export
- - potential security issue in custom module parser
-
-## 0.45.0
-
-- bug fixes
- - regression (v0.41.4) breaking sync between clients
- - sessions not added to history when opened
- - switch: traversing mode issue
- - remote file browser reactivity issue
- - encoder: broken because `ticks` default was `auto` instead of `360`
-- main
- - state files can be saved remotely
-- widgets
- - **removed** deprecated widgets `multifader`, `multitoggle`, `multipush` and `formula`
- - new `JS{{}}` property syntax, allows writing formulas using javascript
- - errors encountered in `#{}` blocks are now printed to the client console (F12)
- - keys: renamed formula context variable `super` to `meta`
-
-## 0.44.0
-
-- bug fixes
- - ios: clone widget not displaying properly
- - keys: error when leaving the window with the cursor while holding a key-combbo pressed
- - session: disable saving when `--read-only` is set
-- main
- - sessions can be opened and saved from/to the server's filesystem directly
-- widgets
- - new `file` input widget (allows selecting a file on the the serve and sending its absolute filename)
-- midi
- - :warning: **breaking changes** :warning:
- - replaced python dependency `rtmidi` with `python-rtmidi` (provides pre-compiled binaries for all major platforms)
- - sysex messages are now discarded by default, they can be enabled by adding `sysex` to the midi options
-
-## 0.43.0
-
-- bug fixes
- - sidepanel: resize handle overflow issue
-- ui
- - sidepanel: hidden resize handle; show edge resize handle on hover
-- launcher
- - added context menu action to display midi device list without starting the server
-- widgets
- - switch: add `traversing` option (`true` by default)
- - knob: act as a relative encoder when traversing gestures are enabled and `snap` is `false`
- - keys: `key` variable in `keydown` and `keyup` is now always lowercased when referencing a single character
- - keys; expose `code` variable from the keyboard event object (https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code#Code_values)
-- custom module
- - expose shorthand functions `send` and `receives`
- - expose a client object instead of just an id in `app` event handlers to allow retrieving the client's ip address as well
- - custom modules can now be written like standard nodejs modules (using `module.exports` assignement instead of a self-invoking function pattern)
-
-## 0.42.0
-
-- widgets
- - `OSC{}` syntax accepts an optional third argument (`false`) to bypass the host widget's `preArgs`
-- editor
- - sticky header to remind selected widget's id
- - sidepanel can now be resized by dragging its edge
-
-## 0.41.7
-
-- bug fixes
- - matrix: `$` variable not starting at `start`
- - matrix: properties not reset to default when removed from `props`
-
-## 0.41.6
-
-- bug fixes
- - keys: binding conflict with editor
- - xy: drawing performance issue
-
-## 0.41.5
-
-- bug fixes
- - editor: changes applied to wrong widget when clicking on a widget while editing another widget's property
- - push: allow setting `value` property
- - allow whitespaces in path for `--custom-module`
- - error when changing a property that's inherited by a widget to define its address and at least one non-dynamic property
-- widgets
- - sliders: when `steps` is set, scrolling on the widget makes it go directly from one step to another
-
-## 0.41.4
-
-- bug fixes
- - broken `--remote-saving` option*
- - `fader`: built-in `meter` not updating its `address`, `preArgs` & `color` properties
- - incorrect osc messsages when widget's `split` and `preArgs` are set
-
-## 0.41.3
-
-- bug fixes
- - `rgb`: values were rounded even with `precision` different from `0`
-- osc
- - add support for utf8 string argments (encoded/decoded as per standard https://encoding.spec.whatwg.org/#utf-8)
-
-## 0.41.2
-
-- bug fixes
- - geometry properties not properly applied when reset to `auto`
- - `strip` layout not properly applied when changing the widget's `horizontal` property
- - `modal` glitch on chromium v70
-
-## 0.41.1
-
-- bug fixes
- - error when loading session file
- - prevent sidepanel issue when toggling quickly
-
-## 0.41.0
-
-- main
- - `--send` accepts `ip:port` and `domain:port` targets
- - removed previously deprecated `--sync` option
- - `--custom-module` now accepts extra options that can be consumed from the custom module's code
- - sessions located on the server can now be saved remotely, this becomes the default behavior for keyboard shortcut `mod + s`, local export is still available via `mod + shift + s`
- - added `--remote-saving` options to limit remote session saving feature to hosts that match the provided regular expression
-- ui
- - added notifications
-- widgets
- - `matrices`: **new** `patchbay` widget
-- bug fixes
- - layout break when hitting tab with sidepanel closed and editor enabled
- - crash when running the server in an environnement without user home folder
-
-## 0.40.5
-
-- bug fixes
- - clone: editor's selection rectangle appearing after editing the clone's target widget
- - windows: midi issue (python path not found)
-- widgets
- - input: hitting `tab` now validates the value before focusing the next input (hitting `esc` or clicking outside the widget still cancels); when focusing an input widget, its whole value is selected by default; focused/selected text color hint changes.
- - matrix: widgets inherit from the matrix' `id` and osc properties by default
-
-## 0.40.4
-
-- bug fixes
- - editor: widgets/tabs not properly reordered when changing a widget or tab's index by more than 1
- - main: `--no-gui` switch not working when running the app from a different directory
- - regression causing osc receivers (`OSC{}`) to conflict with property listeners (`@{}`)
-- widgets
- - push: add `doubleTap` option
- - osc listeners (`OSC{}`) now accept relative addresses (without leading '/'), automatically prefixed with the widget's address
-
-## 0.40.3
-
-- bug fixes
- - editor: sidepanel & dragging handles not always updated after edition
- - widgets: parsing error when a property contains more than 10 variables
-
-## 0.40.2
-
-- bug fixes
- - regression reversing tabs order
-
-## 0.40.1
-
-- bug fixes
- - editor: issue with tabs selection / edition
- - regression breaking `svg`
-
-## 0.40.0
-
-- bug fixes
- - `--read-only` option not properly working
- - `keyboard`: dynamic properties `target`, `precision` & `preArgs` not being updated dynamically
-- widgets
- - formulas: added `indexOf` function
- - **deprecated** `multifader` / `multipush` / `multitoggle` in favor of the generic `matrix` widget
- - meter: `gradient` can be set as an object to define uneven color breakpoints
-
-## 0.39.8
-
-- bug fixes
- - meter's properties not accessible (overridden with fader's properties)
-- mobile
- - button for preventing device sleep
-
-## 0.39.7
-
-- bug fixes
- - iOS 9.3 compatibility
-- widgets
- - sliders: `steps` property is now dynamic
-
-## 0.39.6
-
-- bug fixes
- - `modal` widgets not working since chrome v70
-
-## 0.39.5
-
-- bug fixes
- - sliders: `steps` option not working when `range.min` is not `0`
- - regression breaking the app for iOS 9.3
-
-## 0.39.4
-
-- widgets
- - multiXy: added `.pad-N` class to inner xy pads to help with css customization
- - xy/multiXy: added css variables `--background`, `--color-pips`, `--pips-opacity` and `--point-opacity`
- - rgb: added `alpha` option
- - xy/multiXy/rgb: design impovements;
- - sliders: new `steps` option
-
-## 0.39.3
-
-- bug fixes
- - broken tabs color property
- - broken `/TABS` command; this command doesn't makes panels send osc messages anymore
-
-## 0.39.2
-
-- bug fixes
- - regresssion: broken --theme option
- - regression: missing 'edit parent' action in editor's context menu
-
-## 0.39.1
-
-- bug fixes
- - regression breaking icons in switches' labels
-
-## 0.39.0
-
-- performance
- - rendering speed improved (session loading time reduced by about 30%)
-- widgets
- - remove support for deprecated properties `path`, `noPip` and `noSync`
- - sliders/pads: `precision` is no longer a dynamic property
-
-## 0.38.7
-
-- bug fixes
- - launcher compatibility issues with electron v3
-
-## 0.38.6
-
-- bug fixes
- - regression with dynamic property `color` in panels and matrices
-- packaging
- - node-only package can be run with electron too
-
-## 0.38.5
-
-- packaging
- - regression causing the client js bundle to be much bigger than needed
- - added node-only package built without electron for unsupported platforms (armv6, etc)
-
-## 0.38.4
-
-- bug fixes
- - `@{parent}` calls not working consistently in clone widgets
- - `slider/pads`: inteverted ranges not working
- - fix `doubleTap` for sliders with `snap` set to `true`
- - undo/redo errors
-- widgets
- - 1-level nested property inheritance calls (`@{id_@{id_2}}`) are now updated dynamically
- - support special css property `class` for adding custom classes to widgets
- - added "smart" traversing gestures mode that limits affected widgets by the type of the first touched widget
- - root: added `traversing` property
-- editor
- - major performance improvements (containers' children are reused whenever possible instead of being recreated)
- - removed widget deletion confirmation popup
- - properties categories can now be folded
- - added keyboard shortcut `F2` for editing the label quickly
- - added keyboard shortcut `mod + s` for saving the session
- - added keyboard shortcut `mod + o` for opening a session
- - use `backspace` instead of `delete` for deleting widgets on MacOs
- - added keyboard shortcut `mod + e` for enabling / disabling the editor
- - added keyboard shortcuts `mod + arrows` for selecting widgets
- - added keyboard shortcut `mod + a` for selecting a widget's siblings and itself
- - added keyboard shortcut `mod + shift + a` for cancelling selection
- - added multi widget selection with mouse when `shift` is pressed
- - right-click doesn't modify current selection when `mod` or `shift` is pressed
-- formulas
- - added `extend(x, y)` function for merging two objects
- - objects' closing brackets (`}`) don't need to be escaped with a backslash anymore
- - show property's computed value in the help popup
-
-## 0.37.4
-
-- bug fixes
- - osc receivers (`OSC{}`) not working in non-dynamic properties
-- remote control
- - added `/GET/#` to get a widget's value without using `/GET` as reply address
-
-## 0.37.3
-
-- bug fixes
- - gyroscope: osc sendings not properly triggered on value updates
-
-
-## 0.37.2
-
-- bug fixes
- - osc: regression making empty `preArgs` count as one empty string argument
-
-## 0.37.1
-
-- bug fixes
- - closing popups when clicking precisely on the "x"
-- translations
- - fr: corrections
- - ru: added russian translation
-
-## 0.37.0
-
-- bug fixes
- - editor: opening the sidepanel doesn't select the root widget anymore
- - ios: fix `doubleTap`
-- widgets
- - **new** `gyroscope` widget
- - **new** `frame` widget
- - **breaking change** in `panel`: dropped Visual Format Language support (`layout` and `spacing` properties)
- - maths: added `timestamp()` function
-- editor
- - widget property names can be clicked to show documentation
-- misc
- - the client app can be translated (https://github.com/jean-emmanuel/open-stage-control/issues/302)
-
-## 0.36.0
-
-- bug fixes
- - `linkId` synchronizations now correctly trigger property updates
- - widgets with multiple `linkId` are now properly handled
- - synchronization issue between `visualizer` widgets
-- widgets
- - `keys` (**breaking changes**): formulas in `keydown` and `keyup` must be explicitely written using the `#{}` syntax; variable `value` got removed from these formulas context (use `@{this}` instead); removed `widgetId` property, the value emitted by the widget on keypress events can be linked with other widgets via the `linkId` property or the property inheritance syntax;
- - `visualizer`: update rate set to default canvas framerate
-- editor
- - **new** keyboard shortcuts (undo, redo, copy, paste, etc)
-
-## 0.35.0
-
-- main
- - added `--state` option for loading a state file with a session file
-- state
- - loading a state file doesn't replace the quick save slot anymore
-- widgets
- - **new** `script` widget
-- misc
- - reduced session file size (indentation set to 2 instead of 4)
-
-## 0.34.4
-
-- bug fixes
- - widgets: dynamic `address` when `split` is `true`
- - strip: missing osc properties (`address` and `preArgs`) for remote control
- - switcher: update linked widgets' osc properties before sending if they depend on the switcher's value
-
-## 0.34.3
-
-- bug fixes
- - launcher: regression breaking the `port` option
-
-## 0.34.2
-
-- bug fixes
- - matrices: spacing issue when wrapped in strips
- - launcher: regression preventing options to be applied
-
-## 0.34.1
-
-- bug fixes
- - switch: display object-values properly when `showValues` is set to `true`
- - prevent non-dynamic properties updates from breaking an osc sending event chain
-- deprecations
- - `formula` has been removed from the editor's context menu
-- custom module
- - expose `app` to the custom module's scope: an event emitter for monitoring the events sent by the different clients
-- misc
- - fixed rpi build
-
-## 0.33.3
-
-- bug fixes
- - matrix: recreation loop issue with matrices of clones
- - multixy: glitch when some letters are used in the points' labels
-
-## 0.33.2
-
-- bug fixes
- - matrix: set initial value at widget's creation; missing border under widget's label
-- widgets
- - property math syntax: add `values()` and `keys()` functions
-
-## 0.33.1
-
-- bug fixes
- - widgets: remove unnused properties to avoid having hidden properties laying around when the type changes (especially dangerous when those properties where linked to other widgets)
-
-## 0.33.0
-
-- bug fixes
- - osc receivers: unregister properly when widgets are recreated (memory leak); allow non-string values (eg. objects)
- - circular property update issues
-- widgets
- - **new** generic `matrix` widget
- - fader: restore right-click focusing the input in compact mode (mouse only)
-
-## 0.32.6
-
-- bug fixes
- - css border-radius not applying correctly for some widgets
-- themes
- - multiple adjustments
-
-## 0.32.5
-
-- bug fixes
- - missing feedback support for widgets with typed preArgs
-- themes
- - improved `dark` theme
- - added `flat`
-
-## 0.32.4
-
-- bug fixes
- - regression breaking typed osc args
-
-
-## 0.32.3
-
-- bug fixes
- - regression in editor/resize function
-
-## 0.32.2
-
-- bug fixes
- - sliders colors not displayed correctly on iOS
-- widgets
- - xy: tiny knob style change
-- editor
- - reallow editing disabled properties
-
-## 0.32.1
-
-- bug fixes
- - error in osc receivers
-
-## 0.32.0
-
-- main
- - add tcp support
-
-## 0.31.0
-
-- bug fixes
- - regression breaking multitouch widgets
-- widgets
- - fader/knob/pad: right-click / long tap doesn't give focus to the input anymore
-
-## 0.30.4
-
-- bug fixes
- - regression breaking touch traversing gestures
- - clone widgets becoming unselectable for edition
- - `preArgs` property still being coerced to an array
-
-## 0.30.3
-
-- bug fixes
- - big regression breaking many touch gestures
-
-## 0.30.2
-
-- bug fixes
- - broken remote-control /TABS command
- - disabled `spacing` property in strips
- - disabled properties in modals
- - broken arm build
-
-
-## 0.30.1
-
-- midi
- - prevent the main process from exiting when MIDI setup fails
-
-## 0.30.0
-
-- widgets
- - `target` and `preArgs` properties are no longer coerced to arrays and can be written as single string values
- - `linkId` supports master and slave modes with `>>` and `<<` prefixes
- - the special `target` token `null` can now be used in conjunction with regular targets, it disables the default global targets set via the `--send` option
-- editor
- - disabled widget properties are now greyed out
-
-## 0.29.2
-
-- bug fixes
- - launcher: parsing errors are not fatal anymore
- - css parsing error on iOS
-
-## 0.29.1
-
-- bug fixes
- - editor: "wrap" deleting the widget just before the one being wrapped
- - regression breaking traversing gestures and high precision gestures (0.29.0)
-- server
- - allow sending osc to broadcast ip addresses
-- widgets
- - limited support for property inheritance nesting (`@{id_@{id_2}}`)
- - support using property inheritance syntax in osc listeners' addresses
-
-## 0.29.0
-
-- beaking changes
- - dropped supported for `.js` sessions (deprecated in 0.20.0)
-- bug fixes
- - zeroconf: unpublish when shutting down
- - ios 9.3 compatibility issue
- - function mispelling in rgb widget
-- widgets
- - modal: added `popupLeft` and `popupTop` properties
- - faders/meter: add css variable `--gauge-opacity` to allow setting a fixed gauge opacity for meters and compact faders
-- custom module
- - messages converted from midi inputs can be filtered
-
-
-## 0.28.3
-
-- bug fixes
- - widgets not correctly drawn when hidden/shown with dynamic css
- - iOS: file upload failing sometimes
-- widgets
- - knob: small design improvements (pips don't take extra space anymore)
-
-## 0.28.2
-
-- bug fixes
- - session list: fix "remove from history" always removing the first item in the list
-- custom module
- - expose `setInterval`
- - expose `clearTimeout` and `clearInterval`
- - prevent errors when failing to run the module
-
-
-## 0.28.1
-
-- bug fixes
- - regression in nested clones structures handling
-
-
-## 0.28.0
-
-- widgets
- - matrices: support setting `split` property as a string to allow using children's indexes in their address (`$` is replaced with the index number)
- - text: `wrap` property doesn't break words by default anymore
- - rgb: added `range` property
-- launcher
- - right-click context menu (copy, paste, clear console, toggle console autoscoll, relaunch app)
- - better font for the console
-
-## 0.27.2
-
-- bug fixes
- - session/state file upload sometimes failing silently
- - regression breaking the app for iOS
-
-## 0.27.1
-
-- bug fixes
- - error when resizing a widget and its clone(s) at the same time
- - error with non string css property
- - session list not reappearing when failing to load
- - broken state file loading
-- misc
- - added a loading indicator when uploading a session file or a state file
-
-## 0.27.0
-
-- bug fixes
- - strip: nested strips were inheriting their parent's `spacing`
- - modal: prevent error when retrieving a child's property
- - modal: prevent touch event from affecting elements behind the popup when closing it
- - clone: some properies in target widget were not applied to the clone
- - clone: prevent clone from resetting its target value when created
- - text: vertical centering issues in narrow widgets
- - dynamic properties: when using a widget's own value to determine its osc settings, these are checked and updated if needed before sending the message
- - prevent error when loading a session containing invalid property inheritance calls
- - broken build for iOS 9.3
-- editor
- - wrap in: insert wrapper at selected widget's index
- - wrap in: set label to false by default when wrapping in a strip or a panel
- - css property `pointer-events:none;` is now ignored when the editor is enabled
- - preverve pecentages when dragging/resizing a widget that has its position/size written in percents
-- widgets
- - **new** `OSC{/address, default_value}` syntax
-- ui
- - sidepanel is now resizable
-- themes
- - `responsive-fonts`: increase size for big screens
-- build
- - dropped support for node < 4.8
-
-## 0.26.3
-
-- bug fixes
- - ios: broken default accent color in clone Widgets
- - ios/android: closing the sidepanel opened the tab next to the menu button
-- editor
- - mac: use `shift` instead of `command` for multi widget selection to match native behaviour and prevent unwanted zoom with trackpads
-- widgets
- - strip: `spacing` now accepts percents
-
-## 0.26.2
-
-- bug fixes
- - regression preventing glass effect from using the widget's color
- - missing last key in keyboard widget
- - editor: select parent widget after deleting a widget
- - regression letting user to scroll the main document
- - editor: wrap/cut/delete multiple widget not working properly
-- widgets
- - text: set line-height relative to font size
- - meter: added `gradient` feature
-
-## 0.26.1
-
-- bug fixes
- - ios: text input fields not editable
-- editor
- - mac: use `command` instead of `ctrl` for multi widget selection
-
-## 0.26.0
-
-- bug fixes
- - editor: when selecting another widget while editing a property, changes where applied to the newly selected widget
- - widgets: css: @media queries parsing
- - prevent some errors when synchronizing clients
- - use command key instead of ctrl for zooming on mac
- - clone: memory leak / freeze
-- default client
- - mac: disabled unsupported pinch zoom
-- themes
- - alt-buttons: modal font-weight & color fix; push button active state colored border
- - added "responsive-fonts" theme
-- editor
- - allow multi widget resizing/dragging
- - tweaked ctrl+click/right-click selection behaviors
- - **new** "Wrap in" context menu
-
-
-## 0.25.0
-
-- bug fixes
- - launcher: parse array options correctly when an item contains spaces,
- - launcher: the terminal now grows and scrolls to bottom automatically
- - editor: broken children reordering; children
- list display bug with long `id`s
-- main
- - add `--fullscreen` switch (default gui only, bypasses the sidepanel fullscreen button)
- - added/updated some themes: `orange`, `light`, `dark`, `alt-buttons` (the latter can be combined with other themes)
-- widgets
- - knob: big knobs design tweaks
- - **new** `default` property that sets a widgets initial/doubleTap/spring value. The `value` property does no longer serve this purpose.
- - **new** `bypass` property that disable osc messages (except when requested via `/GET` and `/EDIT/GET`)
- - panel: **removed** `noSync` property (backward compatible fallback to `bypass`)
- - property inheritance: `@{widget_id.value}`, `@{widget_id}` and `@{widget_id._value}` now all refer to the widget's current value (the latter being kept for backward compatibility); If a property update triggers an osc message, it will now be sent after the other dynamic properties changes are resolved (such as osc `address`, `target`, etc)
- - text: added `align` and `wrap` properties
- - input: added `align` property
- - sliders/xy: `doubleTap` can be an osc address to send a special message instead of resetting the widget's value
-- editor
- - allow selecting multiple widgets (`ctrl + click`) if they share the same parent. Context-menu and sidepanel editing actions apply to all selected widgets
-
-## 0.24.3
-
-- bug fixes
- - property maths: variables names declared in a formula were replaced by their associated value if found in the formula's result
- - missing console logs on windows
-- ui
- - add iOS fullscreen support via add-to-home feature
-- editor
- - ask for confirmation when closing or refreshing the page if the editor has been enabled at least once
- - prevent default widget interaction when selecting a widget for edition
-- widgets
- - knob: small design tweaks
-- misc
- - remove proprietary ffmepg codec from package
-
-## 0.24.2
-
-- bug fixes
- - macOs app menu & shortcuts
-
-## 0.24.1
-
-- bug fixes
- - server/client communication errors
- - prevent error windows from spawning
-- main
- - added some menu items on macOs (including "Quit" !)
-
-## 0.24.0
-
-:warning: **BREAKING CHANGES** :warning:
-
-Read the changelog carefully, old sessions files are likely to need some adjustements to work as they used to. Plots and input widgets had their `widgetId` option removed because it was redundant with the generic `linkId` property.
-
-- bug fixes
- - regression preventing dropdown to display no option selected
- - crossfaders display issue on iOS
- - restored compatibility options for server-client communications
- - xy: `doubleTap` option
- - range: `spring` option
- - plot: crash when drawing only one point
- - widget css: fixed @media queries @keyframes parsings
-- main
- - theme files changes are automatically applied
- - server-client communication system rewritten -> HUGE latency reduction and stability improvement especially under stress conditions
- - engine update (electron@1.8.2)
-- widgets
- - **new** svg plot widget
- - switch: wrap non-array `values` property in an array
- - dropdown: wrap non-array `values` property in an array; always add a default empty value
- - property inheritance: added shorthand default to `_value` when no property is specified (`@{widgetId}`); some properties can now be dynamically changed without recreating the widget entirely
- - property maths: added support for math expressions everywhere via `#{}`
- - input: add glass effect when `editable` is `false`
- - `linkId` can now be set as an array of linkIds
- - plot: added `dots` options; **removed** `points` options (use `value` and property inheritance instead)
- - eq: **removed** `filters` options (use `value` and property inheritance instead)
- - plot/meter/led/rgbled/text: **removed** `widgetId` option
- - input: **removed** `widgetId` option
- - math: **deprecated** `formula` widget
-
-## 0.23.1
-
-- bug fixes
- - regression breaking modal's position in scrolled tab containers
- - widget with a `touchAddress` set now send their touch-off message when removed or recreated while being interacted with
- - broken windows builds (long path issue)
-
-## 0.23.0
-
-- bug fixes
- - plots now send their value to other widget for synchronization as expected
- - text widgets now apply their target widget's precision
- - property inheritance accepts targetting a parent widget by its id
- - multiple icons not displayed correctly
- - broken `--blank` option
-- main
- - added `--disable-gpu` option for disabling hardware acceleration (fixes rendering glitches and reduces input lag on some systems)
-- widgets
- - inputs: **new** `keys` widget, for keyboard bindings
- - property inheritance: new special property name `_value` (retrieve the widget's value, and update when it changes)
- - switch: added `showValues` to display both values and labels in the buttons; array values can now be selected via osc
- - range: both handles can be moved by holding `shift` while dragging
- - rgb: **removed** `touchAddress` option
- - labels/texts: multiple white spaces are no longer merged
- - plot: can receive stringified arrays of coordinates or stringified objects for merging coordinates sets; added `bars` option for drawing barcharts;
- - widgets' `precision` option allows setting a specific data type for numbers (sliders can send doubles !)
-- misc
- - event system rewritten
- - js build size reduced
-
-## 0.22.0
-
-- bug fixes
- - sessions opened from command line with relative paths are now added to the history with their absolute path
- - sending an empty message to a `text` widget resets it to its initial value and without ignoring its `value` property
- - sending no value to a widget with `preArgs` is now possible : all the arguments found in incoming osc messages are now taken into account to match the widgets in the session
- - regression breaking state quicksave from sidepanel
-- engine
- - downgraded to the latest *stable* electron release
-- main
- - added `zeroconf` / `bonjour` publishing for the app's http and osc input ports
- - added `--instance-name` option to differenciate mulitple instances in zeroconf networks
-- widgets
- - sliders/pads: holding `Ctrl` now enables high precision dragging with the mouse and bypasses the `snap` option
- - inputs: renamed `input`'s property `horizontal` to `vertical` to match how the widget actually displays
- - sliders: **new** `range` widget
- - plots: **new** `image` widget
-- remote control
- - **removed** deprecated `/EXEC`
- - renamed `/EDIT_SOFT` to `/EDIT/MERGE`
- - added `/EDIT/GET` (get a widget's data)
- - added `/GET` (get a widget's value)
- - added `/SET` (set a widget's value as if it was interacted with from the interface)
-
-
-## 0.21.3
-
-- bug fixes
- - session/state: regression (0.21.2) breaking save-to-file function
-- ui
- - FontAwesome 5 (icon font) !
-
-## 0.21.2
-
-- bug fixes
- - cli: broken long flag `--no-gui`
- - headless: when running with `node`, errors don't stop the server; when running with `electron` (default), errors are logged in the console instead of being showed in a dialog window
- - switcher widgets regression (broken)
-- midi
- - float values are now allowed and automatically rounded
-- misc
- - some code refactoring
-
-## 0.21.1
-
-- bug fixes
- - visualizer: fix memory leak when editing; fix ignored `smooth` option
- - plots: regression preventing widgets with no `target` option from receiving messages sent by other clients
-
-## 0.21.0
-
-- main
- - renamed `--sync` option to `--send` (deprecation, backward-compatible)
-- widgets
- - sliders/pads: when receiving feedback while touched, the widget waits to be released before updating to the latest received value.
- - input: the widget's value is no longer validated when leaving focus by clicking somewhere else or hitting the `Tab` key (it must be submitted by hitting the `Enter` key); when submitting a value to another widget, the feedback from this widget doesn't trigger a second osc message anymore; non-editable inputs can't steal focus anymore
- - added support for `null` value in `target` option to disable osc sending
-- misc
- - property fields are now parsed using [JSON5](https://github.com/json5/json5), a more flexible notation. Session files are still written in standard JSON format, this is just a way to avoid typing mistakes when using the editor.
- - remote editing also accepts JSON5 notation
-
-## 0.20.3
-
-- bug fixes
- - allow loading `.json` session files from the launcher
-- launcher
- - new log/error console (shows once the app is started)
-
-## 0.20.2
-
-- bug fixes
- - pads: regression breaking the built-in input
- - multifader: inverted order in horizontal mode
-- widgets
- - plots: add `smooth` option (thanks to [cardinal-spline-js](https://github.com/epistemex/cardinal-spline-js)); draw thicker lines
- - pads: draw thicker inner circle
- - mobile
- - prevent devices from entering sleep mode
-
-
-## 0.20.1
-
-- bug fixes
- - error popups not created
-- misc
- - rename sessions files to `.json`
-
-## 0.20.0
-
-- **breaking changes**
- - sessions are now saved as `.json`files by default (the deprecated `.js` extension can still be opened).
- - states are now saved as `.state` files (the old `.preset` files can be renamed without any problem)
-- bug fixes
- - touch release event is properly dispatched in traversing containers (ie keyboards and matrices) (#94)
-- widgets
- - css `border-radius` support enhanced
- - css `color` applies locally while `--color-text` applies to children too
- - plot/text: new lines are properly printed
-- packaging
- - added `arm64` binaries
-- iOS
- - compatibility improved (version 9.3 and above)
-- engine
- - electron 1.8.0 (chrome 59)
-
-## 0.19.6
-
-- hot fix
- - broken formula widget
-
-## 0.19.5
-
-- launcher
- - fixed typo in new version message
-- misc
- - client-side javascript's size reduced, now for real !!
-
-## 0.19.4
-
-- bug fixes
- - buttons: changing `css` background works as expected
- - widgets: changing `css` (text) color works as expected
- - fader: fix hidden input in horizontal + compact mode
- - pads: pips scaling bug
-- widgets
- - `css` font-sizes apply correctly to all children (better use percents)
- - formula: add `unit` option
-- misc
- - client-side javascript's size reduced !
-
-## 0.19.3
-
-- bug fixes
- - midi: noteOff messages not being sent;
-
-## 0.19.2
-
-- bug fixes
- - lobby: regression breaking the lobby for touch devices
-
-
-## 0.19.1
-
-- bug fixes
- - launcher: load correct font
- - midi: python3 compatibility fix
-
-## 0.19.0
-
-- ui
- - general design improved, heavily inspired by [budislavTVP](http://budislavtvp.deviantart.com/) works; color schemes are much simpler and easier to customize (try `--theme light` !); Font changed to Roboto; Texts are slightly thicker and uppercased in most cases for better readability (use css `text-transform:none` to disable the latter).
-- widgets
- - fader: added `dashed` option; added `input` option;
- - meter: added `alignRight` option; added `dashed` option;
- - knob: removed `compact` option; added `dashed` option; added `input` option;
- - xy/rgb: added `input` option; added `pips` option:
- - panel/strip: removed inner widgets dark borders; added `border` option;
- - buttons: new `dropdown` widget;
- - toggle: added `led` option to choose between the old appearance and the new one; added `douleTap` option
- - new `input` widget
- - containers: new `clone` widgets
- - added support for `"self"` value in `target` option (sends the message back to the clients, useful for sending `/EDIT` messages...)
-- editor
- - option fields are now multiline (`ctrl + enter` to add a new line), and pretty printed
- - added checkboxes for boolean options
- - added `Edit Parent` context menu option
-- midi
- - replaced `pyo` dependency with [`pyrtmidi`](https://github.com/patrickkidd/pyrtmidi): lighter, dedicated to midi only, and handling virtual ports (no `mididings` dependency anymore)
- - pitchbend value is now a single integer between 0 and 16383
-- bug fixes
- - fixed VisualFormat errors in iOS
-- main
- - added `--url-options` command line option
- - fixed `--disable-vsync` not working when starting from the launcher
-- documentation
- - new style, better organization
-
-## 0.18.0
-
-:warning: **Breaking changes** :warning:
-
-Sessions saved with this version will not be readable with older versions (old sessions a can be opened but wont be backward-compatible once saved).
-
-
-- widgets
- - add property inheritance between widgets with statements `@{parent.propertyName}`, `@{this.propertyName}` and `@{widgetID.propertyName}`
- - containers: added `variables` options (arbitrary varibles to pass to children)
- - panel: added full osc support (for sending/receiving tab changes)
- - modal: changed style to fit popups' appearance; added `popupWidth` and `popupHeight` options; :warning: removed `tabs` option; added full osc support; added `doubleTap` option (makes it openable with double taps instead of single taps)
- - strip: refactored widget using `panel` as base; added `stretch` and `spacing` option; now it's really cool
- - sliders: added `doubleTap` option (double taps reset the widget to its initial value when enabled)
- - knob/fader: renamed `noPip` option to `pips` (inverted behaviour; backward compatible)
- - encoder: mousewheel support
- - knob: compact design remake
-- bug fixes
- - sliders: fixed `spring` when `value` equals `0`
- - modal: fixed osc values (was `True`/`False` instead of `1`/`0`)
-- session
- - the root panel is now saved as a special `panel` widget (which means it has savable options)
-- custom module
- - add access to the app's `settings` object
-
-## 0.17.8
-
-- bug fixes
- - regression breaking widgets' `split` option (0.17.6)
- - regression breaking the state export button (0.17.7)
- - regression breaking editor's `cut` action (0.17.7)
-- osc
- - javascript object are now stringifyied before beeing sent
-- widgets
- - maths: add `condition` option to [`formula`](http://osc.ammd.net/user-guide/widgets-specifics/maths/#formula)
- - sliders/pads: add `touchAddress` option
- - fader: add `meterAddress`
-
-## 0.17.7
-
-- engine
- - socket.io v2
-- client
- - scripts are now transpiled to ES5 javascript code, thus increasing compatibility with some browser (iOS9's chrome, firefox, etc)
- - scripts size reduced from 2.4M to 1M thanks to minification
-- bug fixes
- - elements duplications in sidepanel when loading another session
-
-## 0.17.6
-
-- main
- - osc sending speed optimization: all static infos (target, address, preArgs) are cached server side to reduce network overhead
-- widgets
- - **new** encoder widget
-- mobile
- - `hdpi` support (add `?hdpi=1` to the server's url)
-- bug fixes
- - launcher: link to the app's address is now clickable
- - sidepanel: layout glitches with iOS
- - midi: `program` now works with the correct number of arguments
-- misc
- - some little style fixes
-
-## 0.17.5
-
-- bug fixes
- - `multixy` snap mode position offset
-- widgets
- - **new** [`rgbled`](http://osc.ammd.net/user-guide/widgets-specifics/plots/#rgbled)
-
-
-## 0.17.4
-
-- bug fixes
- - broken `--blank` option fixed (false-positive detection of concurrency with `--read-only`)
- - remove debug message in console when closing windows
-
-## 0.17.3
-
-Hot fix for `--read-only` switch.
-Dependencies updates.
-
-## 0.17.2 (deleted)
-
-- bug fixes
- - `editor`: correctly remove editing state when disabling the editor right after going to another tab
-- main
- - **new** `--read-only` switch for disabling the editor and preventing change to the session history
-- widgets
- - `panel/modal`: add `layout` option ([Visual Format Language](https://github.com/IjzerenHein/autolayout.js))
- - `css` option now interprets `&` as a selector for the widget's element itself (useful for targetting pseudo-elements such as `&:after`)
- - `plots`: add `widgetId` option to `text`, `meter` and `led`
-
-## 0.17.1
-
-- bug fixes
- - `midi`: missing dependency
- - `headless`: terminate `midi` correctly when process exits
-
-## 0.17.0
-
-- main
- - **new** `midi` support ([documentation](http://osc.ammd.net/user-guide/midi/))
-- ui
- - **new** `/TABS id1 id2 etc` osc address to remotely enable tabs
- - remote editing through `/EXEC` command is now deprecated, use `/EDIT` and `/EDIT_SOFT` instead
-- bug fixes
- - `push` widgets (and `keyboards`) not correctly synchronizing each other (with shared widget ids or between different clients)
-- widgets
- - `css` option now supports css selectors, scoped to the widgets element
- - `matrices` don't pass `css` option to their children anymore; subwidgets' indexes are now append to `preArgs` instead of being prepended.
-- misc
- - app's title uppercased
- - tabs titles' letter-spacing increased
-
-## 0.16.5
-
-- bug fixes
- - `modal`: correct z-stacking with absolutely positionned widgets; proper rendering for inner widgets; disable parent tab's scrolling when opened; fix various style glitches;
- - `strip`: resize glitch when containing compact horizontal sliders
-
-## 0.16.4
-
-- bug fixes
- - tab links broken after activating traversing gestures
- - `push` release is now handled per touch point (releasing one finger used to release all pressed buttons)
-- misc
- - destroy default client window when the app process exits
-
-## 0.16.3
-
-- bug fixes
- - crash when remote-editing widgets in disabled tabs
- - desktop client touch screen support restored
-
-## 0.16.1
-
-- bug fixes
- - string arguments overquoted in sent osc messages
-- custom module
- - added support for initialization script
- - unified expected formatting in sendOsc and receiveOsc methods
-- ui
- - reduced scrollbars width
-
-
-## 0.16.0
-
-- new logo :)
-- bug fixes
- - editor: new widgets are correctly positionned in scrolled areas
-- widgets
- - **new** `formula` widget, a [mathjs](http://mathjs.org/) expression evaluator that can process other widgets' values
- - `multixy` supports named points; fixed drag-dead zone in the border
-
-## 0.15.1
-
-- widgets
- - multifader: add `snap` option
-- misc
- - minor css-related performance fix
- - some titles in the editor had the first-letter uppercased
-
-## 0.15.0
-
-- style
- - improved coherence, no more pure greys, better differenciation between clickable and static elements. Went back from "pure flat" to "flatty" to help with that (ie a few shadows to make layout more self-explanatory). Some widgets were slightly repimped.
-- bug fixes
- - `push`: options separators not hidden in the editor
- - error when touching a non-interractive object while touching a widget with the other fingers
-- widgets
- - `multixy` now behaves smarter: points are assigned to the closest touch points
-- main
- - modifying a session file will automatically update clients that have loaded the same file
-
-## 0.14.0
-
-- bug fixes
- - some layout regressions in chrome v49
-- main
- - osc input port (`-o`) is now set to the http port (`-p`) by default
-- widgets
- - **new** `crossfader` and `switcher` widgets that store and recall the state of other widgets
- - `matrices` now accept multiple color values (that will be sequencially passed to their children)
- - `switches` accept icons in their values' labels
-- engine
- - electron v1.4.13
-- misc
- - all widgets classes were rewritten using ES6 class expressions
- - firefox's minimal version is now 46 because of a ES6 related bug (*note that it's still not officially supported*)
-
-## 0.13.1
-
-- bug fixes
- - regression preventing received osc messages to be properly routed to widgets with `preArgs`
-- debug
- - errors occuring in the browser process are now piped to the main process' console with the source file name and the line number.
-
-## 0.13.0
-
-- main
- - **new** `-b / --blank` option to start editing a new session directly
- - **new** `--disable-vsync` option that improves performance (reduce input lag) on some systems
- - some inconsistent parameter combinations are now prevented
- - firefox compatibility improved (yet not perfect)
- - launcher window is no longer of the `splash` type, as it was difficult to close with some window managers
-- widgets
- - **new** `modal` container : a button that turns into a fullscreen panel when clicked.
- - sliders/xy: add `spring` option that makes that widget jump back to its initial value when released
- - fader: horizontal mode default height fixed
- - keyboard: black keys pressed state is more noticeable
- - matrices: added `start` option to choose the first subwidget's `id`
- - labels' height reduced
-- editor
- - **new** snap-to-grid feature
- - widgets' min-width set to grid's width
-- misc
- - building with node 4 is fixed
-
-## 0.12.0
-
-- bug fixes
- - error popups raised by the main process can be closed
- - sliders don't send same value over network when the value change is below the widget's precision
-- widgets
- - **new** (piano) keyboard widget
- - matrices: fixed `preArgs` option; added `split` option (default to `false`), *this changes the default osc messages formatting for these widgets*
- - icons in labels are inserted using the `^` prefix
- - text: icons support in value
-- tabs
- - icons support in label
-- misc
- - fontawesome update (4.7.0)
-
-## 0.11.6
-
-- widgets
- - meter: rewritten using fader as base
- - strip: center widget horizontally if width is set
- - fader/knob: compact gauge's alpha varies slightly as the distance to the origin grows
-- misc
- - one example session added
-
-## 0.11.5
-
-- bug fixes
- - [regression] broken horizontal fader and pads
-
-## 0.11.4
-
-- bug fixes
- - fader: default `height/width` not set when `top/left` is `auto`
-
-## 0.11.3
-
-- widgets
- - knob: gesture's precision is proportionnal to the widget's size
- - fader: `height:auto` (or `width` for `horizontal` mode) makes the fader expand automatically
-- ui
- - cleaner forms in editor and launcher
-
-## 0.11.2
-
-- touch
- - using multiple fingers to control a widget increases the precision (reduces the gesture's computed speed)
-- widgets
- - fader: display pips in `compact` mode when `range` has multiple breakpoints
- - pads: display pips when `range` has multiple breakpoints
- - multixy: style update (stroked dots, bold number font); `snap` option added; points are automatically assigned to touches as they come; fix `logScale(X|Y)` options
-
-## 0.11.1
-
-- bug fixes
- - meters in faders were not always properly positionned
-- widgets
- - knob: gauge's width is proportionnal to the knob's size in `compact` mode; widget's content centering fixed; `compact` style update;
-
-## 0.11.0
-
-- bug fixes
- - `-g / --no-gui` not preventing the launcher from spawning
- - `-e / --examples` not correctly parsed
-- main
- - launcher displays options descriptions for booleans too
-- widgets
- - added generic `value` option for setting a widget's initial value (does not sync linked widgets nor send osc message)
- - **text** widget's `defaultText` replaced with `value`
- - multixy dots are drawn with filled background instead of stroke
-
-## 0.10.4
-
-- main
- - launcher displays new version if available
- - launcher stays opened after starting the server and/or the gui except if `--gui-only` is set
-
-## 0.10.3
-
-- main
- - launcher: resetting boolean option properly sets it to false
- - launcher: display package's version
- - guis: adjust window's background to match the app's
-- ui
- - launcher and session lobby appear more smoothly
-
-## 0.10.2
-
-- main
- - when executing the app with no CLI argument, a launcher window is created allowing user to adjust settings before starting the server (config is saved in the user's directory)
-
-## 0.10.1
-
-- bug fixes
- - rgb: minor visual glitch on extreme value, drawing performance improved
- - main: examples sessions path are properly stored as absolute paths (fixes `-e / --examples` mode)
-- ui
- - lobby: session file names are diplayed first, then shortened paths
-- misc
- - widgets `precision` doesn't affect their visual interraction accuracy since values are now rounded only before osc sending
-
-## 0.10.0-alpha-2
-
-- bug fixes
- - [windows] fix long path issue (#35) returns
-
-## 0.10.0-alpha
-
-- main
- - **new** `-c / --custom-module` switch allowing user to define custom osc filtering fonctions
- - `address` is now used everywhere instead of `path` to describe osc address to avoid confusion. Session files using the old `path` option for widgets are still supported.
- - **osc bundles** are properly received (subsequent messages are processed separately with a delay if the timetag is set)
- - widgets can be edited via osc messages using the special `/EXEC` address
-
-## 0.9.2
-
-- bug fixes
- - [windows] fix long path issue (#35)
-
-## 0.9.1
-
-- widgets
- - multiXy: added `pointSize` option; made default size bigger; points don't overflow the pad anymore
-
-## 0.9.0
-
-- widgets
- - **new** `multixy` pad
-- misc
- - rewritten `pads` with prototype inheritance and using faders under the hood to handle events (this adds *fader*'s `range` capabilities to *xy*)
-- engine
- - electron 1.4.4
-
-## 0.8.3
-
-- bug fixes
- - scrollbar arrows not showing
- - `fader` pips position when `noPip` is `true`
-- widgets
- - matrices : all `fader`, `push` and `toggle` options are now available to `multifader`, `multipush` and `multitoggle`
-
-## 0.8.2
-
-- bug
- - avoid crash when sending osc with incorrect typetags
- - fixed fallback typetag ('s')
- - fixed broken `null` value for `push` & `toggle`
-
-## 0.8.1
-
-- bug
- - broken `fader` with `horizontal` set to `true` and `compact` set to `false`
-- widgets
- - remove margins from `plots`
- - added `origin` options to `plots`
-
-## 0.8.0
-
-- main
- - the headless server/clients model is now the only one beeing used : the GUI mode is nothing more than an embedded chromium (electron) client
- - when a new client opens a session on the server, it is synchronized with the other clients
- - **new switches** : `--no-gui`, `--gui-only`, `--port`, `--osc-port`, `--version` (see docs)
-- ui
- - explicit loadings
-- widgets
- - make push's backlight only respond to external osc messages (not to synchronization messages from other widgets or clients)
- - removed special `false` value case for push/toggles (which used to disable osc sending)
- - add `norelease` option to `push` for disabling osc messages when releasing the button
- - `true` and `false` values are now properly sent as boolean
- - **args type definition** in `preArgs` option now uses the osc typetags only ('f', 'i', 'T', 'F', etc)
-- engine
- - electron 1.4.3
-- misc
- - rewritten matrices with prototypes inheritance
-
-## 0.7.0
-
-- bug fixes
- - osc messages with 0-item and 1-item args are correctly unpacked and routed
- - buttons can handle messages with 0 arg if one of their state has the value "null"
-- ui
- - nice and bigger scrollbar
- - right-click no longer starts a dragging gesture
-- editor
- - copy/paste data auto-incrementation fix
-- widgets
- - new equalizer plotter
- - push/toggles made more obvious
- - knob's new options: angle and origin
- - fader's new option: origin
-- engine
- - electron 1.4.1 (chrome 53, node 6.5.0)
-- misc
- - added `--examples` switch for showing the availabe example sessions instead of the history
- - rewritten sliders and plots using canvas and prototypes inheritance
- - reorganized package using the two-package.json structure: js and css assets are now create at build time, and only necessary dependencies are shipped with the app
-
-## 0.6.3
-
-- bug fixes
- - regression (since 498ba4a06adf63d76fe7181691299c1cc55e8240) breaking the editor on touch devices
-
-## 0.6.2
-
-- cool stuff
- - armv7l prebuilt binaries ! (raspberry 2, etc)
-- engine
- - electron 1.3.5
-
-## 0.6.1
-
-- bug fixes
- - editor: widgets/tabs can be accessed through their parent's children list (#27)
-- engine
- - electron 1.3.1
-
-## 0.6.0
-
-- bug fixes
- - pasted widget properly use the pointer's position
- - traversing gestures are effective from the first touch, not after the first move
- - out-of-range values are properly clipped by faders/knob
-- ui
- - Faders & Meters design improved
- - The main font (droid sans) is now loaded...
- - Knob's sizing got smarter
- - Widgets don't blink not jump when they appear for the first time or when they resize
-- misc
- - Fader's `align` option replaced with boolean option `alignRight`
- - Widget's `label` now accepts special directive `icon: fontawesome-class` to display icons from [FontAwesome](http://fontawesome.io/icons/)
- - Text widget `defaultText` option added
-- engine
- - electron 1.2.2
-
-## 0.5.4
-
-- bug fixes
- - [desktop] menu bar auto-hide
- - [headless] multitouch support
-- ui
- - [mobile] better faders pips rendering
- - fixed horizontal fader knob centering
- - [mobile] better numeric inputs rendering (not blurred anymore)
-- engine
- - [desktop] electron 1.2.0 (chrome 51)
-
-## 0.5.3
-
-- bug fixes
- - [again] touch fake-right-click only fires on long touch, not after every tap
- - traversing gestures bug with touch
-- misc
- - better mouse/touch drag events handlers
-- engine
- - electron 1.1.1
-
-## 0.5.2
-
-- bug fixes
- - touch fake-right-click only fires on long touch, not after every tap
-
-## 0.5.1
-
-- bug fixes
- - feedback is now handled precisely by widets (ie not rounded according to the `precision` option, see issue #21)
-- engine
- - electron 1.1.0
-
-## 0.5.0
-
-- bug fixes
- - touch/mouse events are both handled simultaneously, module rewritten for better performances (see issue #18)
-- engine
- - electron 1.0.2
-
-
-## 0.4.8
-
-- bug fixes
- - regression preventing newly created widgets from using the pointer's coordinates as position
- - add 0.4.7's fix to headless mode
-
-## 0.4.7
-
-- bug fixes
- - regression causing widgets with `preArgs` to not receive osc correctly
-
-## 0.4.6
-
-- engine
- - electron 0.37.6
- - node-osc 2.0.3
-- features
- - `compact` option added to knob and fader
- - if an osc input port is specified, osc messages will be sent from it. This enhances compatibility with apps that send their feedback messages directly to the sender.
-- misc
- - mouse/touch dragging handler rewritten, now using event delegation and direct handler calls instead of DOM event bubbling whenever it's possible
-
-## 0.4.5
-
-- engine
- - electron 0.37.3
-- ui
- - new logo
- - better lobby design
-- misc
- - renamed sliders/pads' `absolute` property to `snap`
-
-## 0.4.4
-
-- bug fixes
- - [headless] scripts are no longer bundled on the fly, it didn't work on some systems
- - touching widgets without changing their value doesn't make them send the same value again anymore
-- ui
- - slightly tightened layout
-- features
- - `noPip` option added to knob and fader
- - `preArgs` accepts object if the arg's type needs to be specified
- - knob supports breakpoints scale, same as fader's
- - fader and knob pip scales now support custom label
- - a push/toggle's value can be set to `null` if only the path needs to be sent in the osc messages
- - push buttons do not update their own leds and return their value (for state save and widgets sync) based on their last changed property (led state or touch on/off)
-- misc
- - refining the fader's pip scale that looked choppy on mobile devices. All pips are now evenly spaced, not relatively to the fader's height.
- - [desktop mode] saved sessions are added to history
-
-## 0.4.3
-
-- features
- - text widget can be `vertical`
- - panel widget `scroll` option
-- bug fixes
- - smart pasting now works when the clipboard contains several widgets whose unsuffixed ids are the identical
- - osc received array that contain only one item are correctly unpacked (fixes cross-app sync for widgets that don't accept array, broken since the introduction of `preArgs`)
- - memory leak when loading a new session (cached tabs were not properly purged)
-- misc
- - push widget doesn't fire its 'on' value if pressed while stuck in 'on' position
- - panel widgets don't have inner margins anymore
- - fader widget optimization : the pip scale is generated from a single gradient plus some elements for each breakpoint (instead of one element per percent), thus reducing the number of elements to draw.
-
-## 0.4.2
-
-- features
- - new widget : text (just displays received values)
-- bug fixes
- - widget linking doesn't cause multiple unwanted osc sends anymore
-
-## 0.4.1
-
-- features
- - `preArgs` option for widgets (prepends constants to osc messages args)
-
-## 0.4.0
-
-- engine
- - electron 0.37.2 (chrome 49)
-- ui
- - new flat ui
- - tab system rewritten : inactive tabs are detached from the DOM tree, thus improving performances while slowing down tab switching.
- - widget categories in editor's context menu
-- features
- - logarithmic scaling (log10) support added to knob, fader & xy
- - mousewheel support added to knob and fader (ctrlKey for fine control)
- - new widgets : plot, visualizer & meter. Fader built-in feedback meter option
- - traversing gestures switch in sidepanel
- - custom color property for all widgets with inheritance (containers)
- - editor pasting function now smartly increments widget's id and path while keeping label if different from default
- - true theming support
-- misc
- - sync/link event handling improved
- - stylesheets cannot be recompiled on the fly anymore (`--c` switch removed)
- - **new state save file format, no backward compatibility**
-
-## 0.3.1
-
-- electron updated to 0.36.11
-- editor paste menu lets you choose between `Same ID` (cloned widgets) or `New ID` (resets id, label, linkId, and path)
-- minor style updates
-
-## 0.3.0
-
-- 3 new widgets
- - multifader
- - multitoggle
- - multipush
-
-
-## 0.2.1
-
-- style update (push/toggle widgets, widgets' dragging handle)
-- widget dragging/resizing doesn't get broken when editing the root
-- sidepanel toggle doesn't select root for edition anymore
-
-## 0.2.0
-
-- editor code rewriting
- - right-click context-menu quick editing (widget copy/cut/paste, add & delete tabs/widgets)
diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index 921666c8..00000000
--- a/Dockerfile
+++ /dev/null
@@ -1,29 +0,0 @@
-FROM node:24-alpine
-
-RUN apk --no-cache add git
-
-WORKDIR /usr/src/app
-
-COPY package*.json ./
-
-RUN npm install
-
-COPY . .
-
-RUN npm run build
-
-RUN mkdir /sessions
-RUN touch /sessions/session.json
-
-EXPOSE 8080
-
-ENV ELECTRON_RUN_AS_NODE=1
-
-ENV SEND="127.0.0.1:8080"
-ENV LOAD="/sessions/main.json"
-ENV PORT=8080
-ENV OSC_PORT=8080
-ENV READ_ONLY=false
-
-RUN chmod +x entrypoint.sh
-ENTRYPOINT ["./entrypoint.sh"]
diff --git a/Procfile b/Procfile
new file mode 100644
index 00000000..ca8f8479
--- /dev/null
+++ b/Procfile
@@ -0,0 +1 @@
+web: node index.js -n $PORT
diff --git a/README.md b/README.md
index 89da9bd5..65fea34d 100644
--- a/README.md
+++ b/README.md
@@ -1,21 +1,76 @@
-
+[](https://travis-ci.org/jean-emmanuel/Open-Stage-Control)
-Open Stage Control
+## Open Stage Control
-*Libre and modular OSC / MIDI controller*
+Open Stage Control is a libre desktop OSC bi-directionnal control surface application. It's built with HTML, JavaScript & CSS on top of [Electron](http://electron.atom.io/) framework.
+
+### Demo
+
+You can try the app here http://openstagecontrol.herokuapp.com/
+
+Please note that :
+- Chrome 47 at least is required
+- Since there is only one instance running, all connected guests are synchronized (widgets using the same osc paths update each other's states) : you might experience some unwanted synchronization with other users unless you specify custom parameters for your widgets.
+- You might want to download the examples sessions files under *examples/* and load them from the app to get started.
-- Website: https://openstagecontrol.ammd.net/
-- Forum: https://openstagecontrol.discourse.group/
-- IRC: Libera.chat #openstagecontrol
+### Features
+- mouse & multi-touch sensitive widgets
+- modular & responsive layout
+- built-in live editor
+- bi-directionnal osc bindings
+- headless server mode with any number of clients using chromium
+- app state store / recall & import / export
+- light & dark themes !
-----
+### Getting started
-Docker additions by Rik Berkelder.
+Prebuilt binaries for Linux, Windows and OS X can be found on the [release](https://github.com/jean-emmanuel/open-stage-control/releases) page. If you want to build or run the app from sources, here's how to:
+- [Build from sources](resources/docs/build-from-sources.md)
+- [Run from sources](resources/docs/run-from-sources.md)
-mount `/sessions` directory. default session file is created and loaded there.
+**Command line switches**
+```
+Options:
+ -h, --help display help
+ -s, --sync synchronized hosts (ip:port pairs) (all osc messages will also be sent to these)
+ -c, --compile recompile stylesheets (increases startup time), if 'light' is specified, the light theme will be compiled, otherwise, the default dark theme will be compiled.
+ -l, --load session file to load
+ -p, --port osc input port (for synchronization)
+ -n, --nogui disable default gui and makes the app availabe through http on specified port
----
+Exemples :
-Copyleft © Jean-Emmanuel Doucet 2014-2025.
-This program is a free software released under the [GNU/GPL3](https://framagit.org/jean-emmanuel/open-stage-control/-/blob/master/LICENSE) license.
+$ open-stage-control -s 127.0.0.1:5555 127.0.0.1:6666 -p 7777
+
+This will create an app listening on port 7777 for synchronization messages, and sending its widgets state changes to ports 5555 and 6666.
+
+$ open-stage-control -n 8080 -l path/to/session.js
+
+This will create a headless app available through http on port 8080. Multiple clients can use the app (with chrome only) simultaneously, their widgets will be synchronized.
+
+```
+
+### Advanced usage
+
+Although the built-in editor might suits most of your needs while creating small control interfaces, you may need to write the session file yourself to create large and maintainable interfaces. The followings docs will help:
+- [Session reference](resources/docs/session-reference.md)
+- [Widgets reference](resources/docs/widgets-reference.md)
+
+### License & credits
+
+Copyleft © Jean-Emmanuel @ [AMMD](http://ammd.net). This program is released under the GNU/GPL3 license.
+
+It relies on the use of several libraries :
+- [Node.js](https://nodejs.org/)
+- [Electron](http://electron.atom.io/)
+- [node-osc](https://github.com/TheAlphaNerd/node-osc)
+- [socket.io]()
+- [browserify]()
+- [express]()
+- [Sass.js](https://github.com/medialize/sass.js/)
+- [jQuery](http://jquery.com/)
+- [jQuery-UI](http://jqueryui.com/) (draggable, resizable & sortable)
+- [Font Awesome](http://fontawesome.io/)
+
+Design was heavily inspired by [Atom](https://atom.io/)'s theme 'One Dark'
diff --git a/basesession.json b/basesession.json
deleted file mode 100644
index 9ddad0bb..00000000
--- a/basesession.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "createdWith": "Open Stage Control",
- "version": "1.31.2",
- "type": "session",
- "content": {
- "type": "root",
- "lock": false,
- "id": "root",
- "visible": true,
- "interaction": true,
- "comments": "",
- "width": "auto",
- "height": "auto",
- "colorText": "auto",
- "colorWidget": "auto",
- "alphaFillOn": "auto",
- "borderRadius": "auto",
- "padding": "auto",
- "html": "",
- "css": "",
- "colorBg": "auto",
- "layout": "default",
- "justify": "start",
- "gridTemplate": "",
- "contain": true,
- "scroll": true,
- "innerPadding": true,
- "tabsPosition": "top",
- "hideMenu": false,
- "variables": "@{parent.variables}",
- "traversing": false,
- "value": "",
- "default": "",
- "linkId": "",
- "address": "auto",
- "preArgs": "",
- "typeTags": "",
- "decimals": 2,
- "target": "",
- "ignoreDefaults": false,
- "bypass": false,
- "onCreate": "",
- "onValue": "",
- "onTouch": "",
- "onPreload": "",
- "widgets": [],
- "tabs": []
- }
-}
\ No newline at end of file
diff --git a/browser/css/style.css b/browser/css/style.css
new file mode 100644
index 00000000..1ee420f1
--- /dev/null
+++ b/browser/css/style.css
@@ -0,0 +1 @@
+* { margin: 0; padding: 0; box-sizing: border-box; text-decoration: none; outline: 0; font: inherit; cursor: inherit; -webkit-tap-highlight-color: transparent; }a { cursor: pointer; display: block; }::-webkit-scrollbar { width: 20rem; height: 20rem; opacity: 1; }::-webkit-scrollbar-track-piece { background: #22252c; }::-webkit-scrollbar-track-piece:vertical { border-left: 1rem solid #17191e; }::-webkit-scrollbar-track-piece:horizontal { border-top: 1rem solid #17191e; }::-webkit-scrollbar-corner { background: transparent; }::-webkit-scrollbar-thumb { background: #2d313a; }::-webkit-scrollbar-thumb:vertical { border-left: 1rem solid #17191e; }::-webkit-scrollbar-thumb:horizontal { border-top: 1rem solid #17191e; }* { -webkit-user-select: none; }input:focus::selection { background: #528bff; color: #eee; }input { cursor: text; }html, body { height: 100%; overflow: hidden; position: relative; }html { font-size: 1px; }body { font-size: 14rem; line-height: 16rem; font-family: sans-serif; color: #eee; white-space: nowrap; opacity: 1; cursor: default; }.btn { background: #2d313a; display: block; box-shadow: 0 0 0 1rem #17191e; padding: 15rem; position: relative; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; cursor: pointer; }.btn:hover { box-shadow: 0 0 0 1rem #17191e, 0 0 0 100rem rgba(238, 238, 238, 0.05) inset; }.btn.small { padding: 8rem; padding-right: 15rem; }.btn.warning { background: firebrick; }.btn.disabled { pointer-events: none; color: #aaa; }.btn.align-center { text-align: center; }#lobby { background: #22252c; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; border: 1rem solid #17191e; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 20rem; }#lobby .main { width: 600rem; max-height: 100%; }#lobby .header { background: #2d313a; padding: 20rem; font-weight: bold; box-shadow: 0 0 0 1rem #17191e inset; white-space: nowrap; text-overflow: ellipsis; }#lobby a { padding-right: 35rem; overflow: hidden; margin-top: 10rem; position: relative; white-space: nowrap; text-overflow: ellipsis; }#lobby a span { position: absolute; right: 0rem; top: 0rem; padding: 15rem; color: #aaa; }#container { background: #22252c; position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; transition: right .2s; }#container.sidepanel-open { right: 300rem; }#container #open-toggle { position: absolute; right: 0; top: 2rem; width: 60rem; background: #22252c; height: 58rem; padding: 0 10rem; line-height: 60rem; font-size: 24rem; text-align: center; color: #aaa; z-index: 2; }#container #open-toggle.sidepanel-open { color: #eee; }#sidepanel { position: absolute; z-index: 999999; width: 300rem; top: 0; right: 0; bottom: 0; margin-right: -300rem; background: #22252c; border-left: 1rem solid #17191e; transition: right .2s; overflow-y: auto; overflow-x: visible; }#sidepanel.sidepanel-open { right: 300rem; }#sidepanel #options { position: absolute; left: 0; top: 2rem; right: 0; bottom: 0; padding: 5rem; list-style: none; }#sidepanel #options li { display: block; margin-bottom: 5rem; background: #282c34; position: relative; }#sidepanel #options li:last-child { margin-bottom: 0; }#sidepanel #options li .title { padding-bottom: 15rem; }#sidepanel #options li .btn + span { position: absolute; right: 0rem; top: 0rem; padding: 8rem; color: #aaa; }#sidepanel #options li .btn + span:hover { color: #eee; }#sidepanel #options li > div { box-shadow: 0 0 0 1rem #17191e; padding: 15rem; }#sidepanel #options .editor .form { margin-top: 10rem; }#sidepanel #options .help { margin-top: 10rem; font-size: .75em; text-align: center; font-style: italic; }.actions { display: flex; align-items: stretch; flex-wrap: wrap; }.actions a { min-width: 33.33%; flex-grow: 3; padding: 10rem; display: block; text-align: center; }.actions a.on { pointer-events: none; }.actions a.on:after { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 2rem solid #528bff; }.widget.editing { z-index: 11 !important; }.widget.editing:after, a.editing:before, .content.editing:before, #container.editing:before { content: ""; z-index: 999; position: absolute; top: 1rem; left: 0; right: 0; bottom: 0; border: 1px dashed #528bff; pointer-events: none; }.context-menu { position: fixed; z-index: 999999999; background: #363b45; box-shadow: 0 0 4rem 0 #17191e; }.context-menu .context-menu { position: absolute; left: 100%; top: 0; opacity: 0; pointer-events: none; margin-left: 2rem; }.context-menu .context-menu:before { content: ""; position: absolute; top: 0; bottom: 0; left: -2rem; width: 2rem; }.context-menu > .item { padding: 10rem 15rem 10rem 10rem; position: relative; cursor: pointer; }.context-menu > .item i { margin-right: 5rem; width: 15rem; text-align: center; }.context-menu > .item:hover, .context-menu > .item:focus { background: #2d313a; }.context-menu > .item:hover > .context-menu, .context-menu > .item:focus > .context-menu { pointer-events: auto; opacity: 1; }.context-menu > .item.has-sub:before { content: "\f105"; display: block; font-family: FontAwseome; float: right; margin-top: 1rem; margin-right: -10rem; padding-left: 10rem; font-size: 17rem; }.ui-resizable-handle { position: absolute; z-index: 1000000; }.ui-resizable-handle.ui-resizable-se { bottom: 5rem; right: 5rem; width: 15rem; height: 15rem; border-right: 1rem solid #528bff; border-bottom: 1rem solid #528bff; cursor: se-resize; }.ui-resizable-handle.ui-resizable-e { top: 50%; margin-top: -7.5rem; right: 5rem; width: 15rem; height: 15rem; border-right: 1rem solid #528bff; cursor: e-resize; }.ui-resizable-handle.ui-resizable-s { bottom: 5rem; left: 50%; margin-left: -7.5rem; width: 15rem; height: 15rem; border-bottom: 1rem solid #528bff; cursor: s-resize; }.ui-helper { border: 1rem dashed #528bff; background: rgba(82, 139, 255, 0.25); min-width: 30rem !important; min-height: 30rem !important; z-index: 12 !important; opacity: 1 !important; }.ui-draggable-handle { position: absolute; position: absolute; top: 5rem; left: 5rem; right: 5rem; z-index: 100000; cursor: -webkit-grab; height: 25rem; border: 1rem solid #528bff; border-radius: 3rem; }.ui-draggable-handle:active { cursor: -webkit-grabbing; }a { color: inherit; }.navigation { position: absolute; top: 0; left: 0; right: 0; font-size: 14rem; background: #22252c; height: 60rem; }.navigation ::first-letter { text-transform: uppercase; }.navigation:before { content: ""; position: absolute; top: 1px; left: 0; width: 100%; height: 1px; background: #282c34; z-index: 3; }.navigation:after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 1px; background: #17191e; z-index: 3; }.navigation.main { padding-right: 55rem; right: 0; }.navigation ul { list-style: none; display: flex; padding: 7rem 6rem; }.navigation ul li.on + li { border-image: none; border-left: 1rem solid transparent; }.navigation ul li { display: block; max-width: 250rem; flex: 1; border-width: 0 0 0 1rem; border-image: linear-gradient(rgba(23, 25, 30, 0), #17191e, rgba(23, 25, 30, 0)) 0 0 0 1 stretch; }.navigation ul li:first-child, .navigation ul li.on { border-image: none; border-left: 1rem solid transparent; }.navigation ul li:first-child { border-left: 0; }.navigation ul li a { display: block; padding: 5rem 10rem; line-height: 34rem; border-radius: 3rem; overflow: hidden; text-align: center; border: 1rem solid transparent; position: relative; color: #aaa; }.navigation ul li a span { display: block; width: 100%; -webkit-mask: linear-gradient(to left, transparent, #000000 10rem) no-repeat; }.navigation ul li a.on { background: #2d313a; border: 1rem solid #17191e; color: #eee; }.navigation ul li a.on:before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; box-shadow: inset 0 1rem 1rem rgba(255, 255, 255, 0.06); background: linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)); }.navigation ul li a.on:after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4rem; }.content { position: absolute; left: 0; top: 60rem; right: 0; bottom: 0; background: #282c34; z-index: 1; }.content .content { top: 60rem; }#loading { position: absolute; top: 50%; left: 50%; margin-top: -15rem; text-align: center; }#loading .spinner { display: block; margin: 0 auto; height: 30rem; width: 30rem; border-radius: 50%; border: 2rem solid #17191e; border-top-color: #528bff; animation: spin .5s linear infinite; }#loading #status { margin-top: 10rem; display: inline-block; }@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }.popup { position: fixed; top: 0; left: 0; right: 0; bottom: 0; padding: 10%; display: flex; align-items: center; background: rgba(34, 37, 44, 0.5); z-index: 1000000; }.popup .popup-title { position: relative; padding: 15rem; background: #2d313a; }.popup .popup-title .closer { position: absolute; right: 0rem; top: 0; padding: 15rem; color: #aaa; cursor: pointer; }.popup .popup-wrapper { display: flex; flex-direction: column; align-items: stretch; background: #282c34; width: auto; max-width: 600rem; margin: 0 auto; position: relative; overflow: hidden; border: 1rem solid #17191e; }.popup .popup-wrapper .popup-content { height: 100%; width: 100%; padding: 10rem; overflow-y: auto; white-space: normal; }.form label { display: block; line-height: 15rem; font-size: 10rem; }.form .info { color: #aaa; margin-bottom: 10rem; }.form input, .form .input { display: block; background: #2d313a; font: inherit; color: #eee; border: 1rem solid #17191e; width: 100%; padding: 10rem; margin-bottom: 10rem; }.form input.invalid, .form .input.invalid { box-shadow: 0 0 0 1rem rgba(255, 0, 0, 0.3) !important; }.form input:focus, .form .input:focus { border-color: #528bff; }.form input .btn, .form .input .btn { background: #363b45; box-shadow: 0 0 0 1rem #22252c; }.form .checkbox { background: #2d313a; cursor: pointer; }.form .select-wrapper { position: relative; }.form .select-wrapper:after { content: "\f107"; font-family: FontAwesome; position: absolute; padding: 10rem; right: 0; top: 0; font-size: 20rem; }.form select { -webkit-appearance: none; }.form .submit { margin-top: 30rem; }.form .separator { line-height: 30rem; height: 30rem; margin-bottom: 5rem; position: relative; display: flex; align-items: center; }.form .separator:before, .form .separator:after { content: ""; top: 14rem; width: 100%; height: 1rem; background: #aaa; }.form .separator span { font-variant: small-caps; position: relative; display: block; width: 100%; text-align: center; }.tab { display: none; overflow: auto; position: relative; padding-top: 7rem; padding-left: 6rem; }.tab.on { display: block; height: 100%; width: auto; }.widget { display: inline-block; height: auto; overflow: hidden; position: relative; font-size: 13rem; padding: 35rem 0 0; vertical-align: top; box-shadow: 0 0 0 1rem #22252c inset; background: #2d313a; background-clip: padding-box; -webkit-tap-highlight-color: transparent; border-right: 6rem solid transparent; border-bottom: 6rem solid transparent; min-height: 30rem; min-width: 30rem; }.widget:before { position: absolute; top: 1rem; left: 0; right: 0; height: 4rem; box-shadow: inset 0 1rem 1rem rgba(255, 255, 255, 0.06); z-index: 3; pointer-events: none; }.widget.absolute-position { position: absolute; z-index: 10; border: 0 !important; }.widget.nolabel { padding-top: 0; }.widget.nolabel > .label { display: none; }.widget .label { padding: 10rem 10rem; position: absolute; top: 0; left: 0; right: 0; text-overflow: ellipsis; overflow: hidden; height: 35rem; }.widget .label.accent { color: #528bff; }.widget .input { width: 100%; height: 30rem; border: 0; background: transparent; color: #aaa; display: block; padding: 7rem 10rem; position: relative; }.widget .input input { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 7rem 10rem; width: 100%; font-family: 'sans-serif'; font-size: 13rem; border: 0; background: transparent; font: inherit; color: #528bff; }.widget .input canvas { width: 100%; height: 100%; opacity: 0; transition: opacity .2s; }.widget .input canvas.visible { opacity: .8; }.widget .input input + canvas { visibility: hidden; }.widget .input:focus { color: #528bff; }.widget .input[disabled] { color: #aaa; }/* STRIP (contains any widgets) */.strip-container { padding-top: 35rem; width: 100rem; height: 100%; overflow: visible; background: none; box-shadow: none; }.strip-container > .label { background: #2d313a; box-shadow: 0 0 0 1rem #22252c inset; }.strip-container.nolabel { padding: 0 !important; }.strip-container .strip { height: 100%; display: flex; flex-direction: column; }.strip-container .strip > .widget { display: block; width: auto; }.strip-container.vertical { padding-top: 35rem; border-bottom: 0; }.strip-container.vertical .strip > .widget { border: 0; max-width: 100%; margin-top: -1rem; }.strip-container.vertical .strip > .widget:last-child { border-bottom: 6rem solid transparent; }.strip-container.horizontal { padding-top: 0; padding-left: 35rem; width: 100%; height: auto; display: block; border-right: 0; }.strip-container.horizontal .strip { flex-direction: row; }.strip-container.horizontal .strip > .widget { flex-shrink: initial; width: 100%; min-height: 100%; max-height: 100%; border: 0; margin-left: -1rem; }.strip-container.horizontal .strip > .widget:last-child { border-right: 6rem solid transparent; }.strip-container.horizontal > .label { width: 35rem; height: 100%; left: 0; top: 0; }.strip-container.horizontal > .label span { transform: rotate(180deg); display: block; position: relative; overflow: hidden; text-overflow: ellipsis; -webkit-writing-mode: vertical-lr; text-align: center; height: 100%; }.panel-container { z-index: 2; }.panel-container ::-webkit-scrollbar-thumb, .panel-container ::-webkit-scrollbar-track-piece { border-top: 1rem solid #22252c; border-bottom: 1rem solid #22252c; }.panel-container > .label { box-shadow: 0 0 0 1rem #22252c inset; }.panel-container .panel { height: 100%; overflow: auto; position: relative; padding-top: 6rem; padding-left: 6rem; margin: 0 1rem; }.panel-container .panel.stretch { display: flex; justify-content: space-between; }.panel-container .panel.stretch > .widget { width: 100%; }.panel-container .panel > .navigation:before { display: none; }.panel-container .navigation { border-top: 0; background: transparent; }.panel-container .navigation:after { background: #22252c; }.panel-container .navigation a.on { border-color: #22252c; }.panel-container .content { background: transparent; }/* BUTTONS */.toggle-container, .push-container { width: 100rem; min-height: 65rem; flex-shrink: 0; padding: 0 !important; cursor: pointer; }.toggle-container .label, .push-container .label { position: absolute; top: 0; left: 0; right: 0; bottom: 0; height: auto; background: none !important; text-align: center; pointer-events: none; display: flex; justify-content: center; align-items: center; }.toggle { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }.toggle .light { position: absolute; left: 4rem; right: 4rem; top: 4rem; height: 4rem; background: #1c1f25; border-radius: 3rem; }.toggle.on .light { background: #528bff; }.push-container .label { z-index: 1; }.push.on .light { animation: none; background: #528bff; }.push .light { top: 6rem; left: 6rem; right: 6rem; bottom: 6rem; height: auto; }.push:active .light { background: #528bff; }.switch-container { width: 100rem; flex-shrink: 0; }.switch-container.nolabel .value:first-child { border-top: 0 !important; }.switch-container .switch { height: 100%; width: 100%; cursor: pointer; display: flex; flex-direction: column; align-items: stretch; border: 1rem solid transparent; }.switch-container .switch.horizontal { flex-direction: row; }.switch-container .switch.horizontal .value { padding: 28rem 12rem 12rem 12rem; text-align: center; display: flex; justify-content: center; flex-direction: column; }.switch-container .switch.horizontal .value:before { left: 50%; top: 8rem; width: 8rem; height: 8rem; margin-left: -4rem; margin-top: 0; }.switch-container .switch.horizontal .value:first-child { border-top: 1rem solid #282c34; }.switch-container .switch .value { background: #2d313a; color: #eee; width: 100%; height: 100%; position: relative; border-top: 1rem solid #282c34; padding: 12rem 12rem 12rem 24rem; white-space: normal; text-align: left; word-break: break-all; overflow: hidden; }.switch-container .switch .value:last-child { margin-bottom: 0; }.switch-container .switch .value:before { content: ""; position: absolute; left: 8rem; top: 50%; width: 8rem; height: 8rem; margin-top: -4rem; background: #1c1f25; border-radius: 8rem; }.switch-container .switch .value.on:before { background: #528bff; }.ripple:after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #528bff; animation: ripple 0.25s linear; animation-fill-mode: forwards; opacity: .4; }@keyframes ripple { 100% { opacity: 0; } }/* XY */.xy-container, .rgb-container { width: 200rem; height: 250rem; flex-shrink: 0; }.xy-container.nolabel .xy-wrapper, .rgb-container.nolabel .xy-wrapper { top: 0; }.xy-wrapper { position: absolute; top: 35rem; left: 0; right: 0; bottom: 0; overflow: hidden; padding-bottom: 60rem; }.xy-wrapper .value { width: 100%; position: absolute; bottom: 0; border-top: 1rem solid #22252c; }.xy-wrapper .input, .xy-wrapper input { width: 50%; float: left; height: 30rem; text-align: center; position: relative; }.xy { position: relative; width: auto; height: 100%; margin: 0 1rem; overflow: hidden; cursor: -webkit-grab; border-top: 1rem solid #22252c; background: rgba(34, 37, 44, 0.5); }.xy:active { cursor: -webkit-grabbing; }.xy:active .handle:after, .xy:active .handle:before { transform: scale(1.5); }.xy .handle { position: absolute; bottom: 0; left: 0; z-index: 2; pointer-events: none; backface-visibility: hidden; transform-origin: center; transform: translate3d(0, 0, 0); }.xy .handle:before { content: ""; position: absolute; top: -4rem; right: -4rem; height: 8rem; width: 8rem; background: #528bff; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 6rem rgba(82, 139, 255, 0.2), 0 0 2rem 0 #2c3038; }.xy .handle:after { content: ""; position: absolute; top: -10rem; right: -10rem; height: 20rem; width: 20rem; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 1rem rgba(82, 139, 255, 0.2) inset; }.rgb-wrapper { padding-bottom: 90rem; }.rgb-wrapper .input, .rgb-wrapper input { width: 33.33%; }.rgb .bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: red; opacity: .75; }.rgb .bg:before, .rgb .bg:after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; }.rgb .bg:before { background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%); }.rgb .bg:after { background: linear-gradient(to bottom, transparent 0%, black 100%); }.rgb .handle:before { content: ""; position: absolute; top: -4rem; right: -4rem; height: 8rem; width: 8rem; background: #eee; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 6rem rgba(238, 238, 238, 0.2); }.rgb .handle:after { content: ""; position: absolute; top: -10rem; right: -10rem; height: 20rem; width: 20rem; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 1rem rgba(238, 238, 238, 0.2) inset; }.hue { width: auto; height: 29rem; overflow: hidden; position: absolute; bottom: 61rem; left: 1rem; right: 1rem; cursor: -webkit-grab; }.hue .bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.5; background: transparent linear-gradient(to left, #F00, #FF0080, #F0F, #8000FF, #00F, #0080FF, #0FF, #00FF80, #0F0, #80FF00, #FF0, #FF8000, #F00) repeat scroll 0% 0%; }.hue:active { cursor: -webkit-grabbing; }.hue:active .handle:after { transform: scale(1.5); }.hue .handle { position: absolute; z-index: 2; left: 0; top: 50%; pointer-events: none; transform: translate3d(0, 0, 0); }.hue .handle:before { content: ""; position: absolute; top: -4rem; right: -4rem; height: 8rem; width: 8rem; border: none !important; border-radius: 100% !important; box-shadow: none; background: #eee; }.fader-container { width: 100rem; min-height: 200rem; height: 100%; }.fader-container.nolabel .fader-wrapper-outer { top: 0; }.fader-container .fader-wrapper-outer { padding-bottom: 30rem; position: absolute; top: 30rem; bottom: 0; left: 0; right: 0; }.fader-container .fader-wrapper-outer .input { position: absolute; bottom: 0; }.fader-container .fader-wrapper { padding: 20rem; overflow: hidden; height: 100%; position: relative; cursor: -webkit-grab; }.fader-container .fader-wrapper:active { cursor: -webkit-grabbing; }.fader-container .fader-wrapper .fader { height: 100%; width: 4rem; background: #1c1f25; position: relative; margin: 0 auto; left: -25rem; pointer-events: none; }.fader-container .fader-wrapper .fader.nogauge .handle { background: none; }.fader-container .fader-wrapper .fader .handle { position: absolute; bottom: 0 !important; top: auto !important; width: 100%; height: 100%; transform-origin: bottom; max-height: 100%; max-width: 100%; background: #528bff; z-index: 1; transform-style: preserve-3d; backface-visibility: hidden; }.fader-container .fader-wrapper .fader .handle span { position: absolute; bottom: 0; top: 0; width: 100%; height: 100%; transform-origin: top; backface-visibility: hidden; }.fader-container .fader-wrapper .fader .handle span:before { content: ""; position: absolute; top: -4rem; left: -2rem; height: 8rem; width: 8rem; background: #528bff; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 6rem rgba(82, 139, 255, 0.2), 0 0 2rem 0 #2c3038; }.fader-container .fader-wrapper .fader .handle span:after { content: ""; position: absolute; top: -10rem; left: -8rem; height: 20rem; width: 20rem; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 1rem rgba(82, 139, 255, 0.2) inset; }.fader-container .fader-wrapper .pips { position: absolute; top: 0; bottom: 0; left: 14rem; }.fader-container .fader-wrapper .pips .pip { height: 1%; width: 4rem; background: linear-gradient(#eee, transparent 1px); }.fader-container .fader-wrapper .pips .pip.val { width: 10rem; position: relative; }.fader-container .fader-wrapper .pips .pip.val span { position: relative; width: 30rem; display: block; text-align: center; font-size: 11rem; line-height: 12rem; left: 15rem; top: -5.5rem; color: #eee; }.fader-container.horizontal { min-height: 80rem; height: auto; width: 300rem; flex-shrink: 0; }.fader-container.horizontal .fader-wrapper-outer { position: relative; top: auto; padding-bottom: 30rem; height: 100%; }.fader-container.horizontal .fader-wrapper-outer .fader-wrapper { padding: 20rem 20rem 50rem; }.fader-container.horizontal .fader-wrapper-outer .fader { width: 100%; left: auto; top: 50%; height: 4rem; }.fader-container.horizontal .fader-wrapper-outer .fader .handle { height: 100%important; width: 100%; transform-origin: left; }.fader-container.horizontal .fader-wrapper-outer .fader .handle span { transform-origin: right; }.fader-container.horizontal .fader-wrapper-outer .fader .handle span:before { top: -2rem; right: -4rem; left: auto; }.fader-container.horizontal .fader-wrapper-outer .fader .handle span:after { top: -8rem; right: -10rem; left: auto; }.fader-container.horizontal .fader-wrapper-outer .pips { top: 14rem; left: 0; right: 0; font-size: 0; }.fader-container.horizontal .fader-wrapper-outer .pip { width: 1%; display: inline-block; height: 4rem; margin-bottom: 5rem; background: linear-gradient(90deg, #eee, transparent 1px); }.fader-container.horizontal .fader-wrapper-outer .pip.val { width: 1%; height: 10rem; }.fader-container.horizontal .fader-wrapper-outer .pip.val span { top: 15rem; left: -15rem; }.knob-container { width: 100rem; display: inline-flex !important; align-items: center; min-height: 135rem; flex-shrink: 0; }.knob-container.nolabel .knob-wrapper-outer { top: 0; padding-bottom: 30rem; }.knob-container .knob-wrapper-outer { width: 100%; top: 30rem; bottom: 0; padding-bottom: 50rem; height: 100%; display: flex; align-items: center; }.knob-container .knob-wrapper-outer .input { bottom: 0; position: absolute; left: 0; }.knob-container .knob-wrapper-outer .knob-wrapper { margin: 0 auto; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; cursor: -webkit-grab; }.knob-container .knob-wrapper-outer .knob-wrapper:active { cursor: -webkit-grabbing; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask { width: 58%; padding-bottom: 58%; flex-shrink: 0; border-radius: 100%; pointer-events: none; position: relative; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask:before { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 100%; border: 4rem solid #1c1f25; box-shadow: 0 0 0 1rem #2c3038, 0 0 0 1rem #2c3038 inset, 0 0 1rem 1rem #2c3038, 0 0 1rem 1rem #2c3038 inset; transform: rotate(45deg); z-index: 4; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask.pan-left:before { content: ""; border-left-color: transparent; border-bottom-color: transparent; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask.pan-left .knob:after { border-color: #1c1f25; border-left-color: #528bff; border-top-color: #528bff; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask.pan-right:before { content: ""; border-right-color: transparent; border-top-color: transparent; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask.pan-right .knob:after { border-color: #1c1f25; border-right-color: #528bff; border-bottom-color: #528bff; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask:after { content: ""; position: absolute; top: 0rem; left: -3rem; right: -3rem; bottom: -2rem; border-radius: 100%; border: 12rem solid transparent; border-bottom-color: #2d313a; z-index: 4; }.knob-container .knob-wrapper-outer .knob-wrapper .round { content: ""; position: absolute; top: 18rem; left: 18rem; right: 18rem; bottom: 18rem; border-radius: 100%; background: #363b45; box-shadow: 0 0 0 1rem #22252c; }.knob-container .knob-wrapper-outer .knob-wrapper .knob { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; transform: rotateZ(0deg); backface-visibility: hidden; z-index: 2; }.knob-container .knob-wrapper-outer .knob-wrapper .knob:after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 100%; border: 4rem solid #1c1f25; border-bottom-color: #528bff; }.knob-container .knob-wrapper-outer .knob-wrapper .knob.d2:after { border-right-color: #528bff; }.knob-container .knob-wrapper-outer .knob-wrapper .knob.d3:after { border-top-color: #528bff; border-right-color: #528bff; }.knob-container .knob-wrapper-outer .knob-wrapper .handle { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; transform: rotateZ(-45deg); backface-visibility: hidden; z-index: 5; }.knob-container .knob-wrapper-outer .knob-wrapper .handle:before { content: ""; position: absolute; top: 50%; left: -2rem; margin-top: -4rem; height: 8rem; width: 8rem; background: #528bff; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 6rem rgba(82, 139, 255, 0.2), 0 0 2rem 0 #2c3038; }.knob-container .knob-wrapper-outer .knob-wrapper .handle:after { content: ""; position: absolute; top: 50%; margin-top: -10rem; left: -8rem; height: 20rem; width: 20rem; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 1rem rgba(82, 139, 255, 0.2) inset; }.knob-container .knob-wrapper-outer .knob-wrapper .pip { position: absolute; font-size: 11rem; color: #eee; pointer-events: none; top: 50%; margin-top: 30%; }.knob-container .knob-wrapper-outer .knob-wrapper .pip.min { left: 0; right: 50%; width: 50%; text-align: center; }.knob-container .knob-wrapper-outer .knob-wrapper .pip.max { left: 50%; width: 50%; right: 0; text-align: center; }.led-container { width: 100rem; flex-shrink: 0; }.led-container .led { padding: 10rem; display: flex; align-items: center; height: 100%; }.led-container .led div { border-radius: 100%; width: 40rem; height: 40rem; margin: 0 auto; overflow: hidden; background: #17191e; }.led-container .led div span { height: 100%; display: block; background-color: #528bff; }
\ No newline at end of file
diff --git a/browser/fonts/font-awesome.min.css b/browser/fonts/font-awesome.min.css
new file mode 100644
index 00000000..9985f645
--- /dev/null
+++ b/browser/fonts/font-awesome.min.css
@@ -0,0 +1,4 @@
+/*!
+ * Font Awesome 4.4.0 by @davegandy - http://fontawesome.io - @fontawesome
+ * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
+ */@font-face{font-family:'FontAwesome';src:url('fontawesome-webfont.eot?v=4.4.0');src:url('fontawesome-webfont.woff2?v=4.4.0') format('woff2');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}
diff --git a/browser/fonts/fontawesome-webfont.woff2 b/browser/fonts/fontawesome-webfont.woff2
new file mode 100644
index 00000000..5560193c
Binary files /dev/null and b/browser/fonts/fontawesome-webfont.woff2 differ
diff --git a/browser/index-headless.html b/browser/index-headless.html
new file mode 100644
index 00000000..93de9f9e
--- /dev/null
+++ b/browser/index-headless.html
@@ -0,0 +1,16 @@
+
+
+
>>0?-2147483648:0):q)|0)>=0){q=g+2|0;r=m;return q|0}k[l>>2]=k[a>>2];k[l+4>>2]=k[a+4>>2];k[l+8>>2]=k[a+8>>2];k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[b>>2]=k[l>>2];k[b+4>>2]=k[l+4>>2];k[b+8>>2]=k[l+8>>2];q=g+3|0;r=m;return q|0}function Nk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=r;r=r+32|0;g=j+12|0;h=j;k[a+4>>2]=0;e=a+8|0;d=e+40|0;do{k[e>>2]=k[b>>2];e=e+4|0;b=b+4|0}while((e|0)<(d|0));i[a+48>>0]=0;i[a+49>>0]=0;i[a+50>>0]=0;f=a+56|0;k[a+64>>2]=0;i[f>>0]=0;i[f+1>>0]=0;i[f+2>>0]=0;i[f+3>>0]=0;i[f+4>>0]=0;k[a+52>>2]=7;k[a>>2]=22932;f=a+68|0;x=0;Oa(146,f|0,74203,0);e=x;x=0;if(e&1){j=gb()|0;wb(j|0)}b=a+80|0;x=0;ra(418,b|0,c|0);e=x;x=0;if(e&1)b=gb()|0;else{d=a+92|0;i[d>>0]=0;e=QD(c,124,0)|0;if((e|0)==-1){r=j;return}i[d>>0]=1;x=0;pa(4,g|0,c|0,0,e|0,c|0);d=x;x=0;if(!(d&1)){if(!(i[f>>0]&1)){i[f+1>>0]=0;i[f>>0]=0}else{i[k[a+76>>2]>>0]=0;k[a+72>>2]=0}x=0;ra(424,f|0,0);d=x;x=0;if(d&1){d=gb(0)|0;iaa(d)}k[f>>2]=k[g>>2];k[f+4>>2]=k[g+4>>2];k[f+8>>2]=k[g+8>>2];k[g>>2]=0;k[g+4>>2]=0;k[g+8>>2]=0;x0(g);x=0;pa(4,h|0,c|0,e+1|0,-1,c|0);c=x;x=0;if(!(c&1)){if(!(i[b>>0]&1)){i[b+1>>0]=0;i[b>>0]=0}else{i[k[a+88>>2]>>0]=0;k[a+84>>2]=0}x=0;ra(424,b|0,0);a=x;x=0;if(a&1){a=gb(0)|0;iaa(a)}k[b>>2]=k[h>>2];k[b+4>>2]=k[h+4>>2];k[b+8>>2]=k[h+8>>2];k[h>>2]=0;k[h+4>>2]=0;k[h+8>>2]=0;x0(h);r=j;return}}j=gb()|0;x0(b);b=j}x0(f);j=b;wb(j|0)}function Ok(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;f=r;r=r+320|0;g=f+160|0;d=f+148|0;e=f;if(!a){g=1;r=f;return g|0}b=k[a+80>>2]|0;if(b){g=b;r=f;return g|0}b=g+12|0;kC(g|0,0,148)|0;c=k[a+16>>2]|0;do if(!c){b=fb(8)|0;x=0;ra(425,b|0,63735);e=x;x=0;if(e&1){c=gb(0)|0;eb(b|0);b=c;c=16;break}else{x=0;Oa(143,b|0,19312,190);x=0;c=7;break}}else{if(!(i[c>>0]|0)){b=fb(8)|0;x=0;ra(425,b|0,63766);e=x;x=0;if(e&1){c=gb(0)|0;eb(b|0);b=c;c=16;break}else{x=0;Oa(143,b|0,19312,190);x=0;c=7;break}}h=EB(c)|0;x=0;Oa(146,d|0,c|0,h|0);c=x;x=0;if(c&1)c=7;else{x=0;Ia(855,b|0,d|0)|0;h=x;x=0;if(h&1){b=gb(0)|0;x0(d);c=16;break}x0(d);x=0;ra(526,e|0,g|0);h=x;x=0;if(h&1)c=19;else{x=0;b=Ia(901,a|0,e|0)|0;h=x;x=0;if(!(h&1)){Vs(e);c=23;break}h=gb()|0;Vs(e);Vs(g);wb(h|0)}}}while(0);if((c|0)==7){b=gb(0)|0;c=16}do if((c|0)==16){sb(b|0)|0;x=0;b=ta(198,a|0)|0;h=x;x=0;if(!(h&1)){x=0;Pa(4);h=x;x=0;if(h&1){c=19;break}else{b=b|1;c=23;break}}b=gb()|0;x=0;Pa(4);h=x;x=0;if(h&1){h=gb(0)|0;iaa(h)}else{h=b;Vs(g);wb(h|0)}}while(0);if((c|0)==19){h=gb()|0;Vs(g);wb(h|0)}else if((c|0)==23){Vs(g);h=b;r=f;return h|0}return 0}function Pk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0;h=0;j=a+4|0;c=k[a>>2]|0;e=(((k[j>>2]|0)-c|0)/20|0)+1|0;if(e>>>0>214748364){W3(a);c=k[a>>2]|0}l=a+8|0;d=((k[l>>2]|0)-c|0)/20|0;if(d>>>0<107374182){d=d<<1;d=d>>>0 >>0?b:p)|0;x0(s);x0(q);a=(((a|0)==0?(p>>>0>>0?-2147483648:0):a)|0)<0;r=t;return a|0}}else{x0(l);x0(j)}while(0);OE(m,g);x=0;ra(418,n|0,h|0);a=x;x=0;if(a&1){t=gb()|0;x0(m);wb(t|0)}else{s=i[m>>0]|0;q=(s&1)==0;s=q?(s&255)>>>1:k[m+4>>2]|0;b=i[n>>0]|0;a=(b&1)==0;b=a?(b&255)>>>1:k[n+4>>2]|0;a=pE(q?m+1|0:k[m+8>>2]|0,a?n+1|0:k[n+8>>2]|0,b>>>0>>0?b:s)|0;x0(n);x0(m);a=(((a|0)==0?(s>>>0>>0?-2147483648:0):a)|0)<0;r=t;return a|0}return 0}function Tf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0;w=0;u=r;r=r+176|0;n=u+164|0;v=u+152|0;g=u+96|0;s=u+112|0;m=u+84|0;o=u+72|0;p=u+56|0;q=u+16|0;t=u;c=k[a+156>>2]|0;f=k[a+160>>2]|0;e=f-c|0;if(e>>>0>4294967279){x3(g);w=5}else if(e>>>0<11){i[g>>0]=e<<1;b=g+1|0}else w=5;if((w|0)==5){l=e+16&-16;b=GE(l)|0;k[g+8>>2]=b;k[g>>2]=l|1;k[g+4>>2]=e}if((c|0)!=(f|0)){d=b;while(1){i[d>>0]=i[c>>0]|0;c=c+1|0;if((c|0)==(f|0))break;else d=d+1|0}b=b+e|0}i[b>>0]=0;x=0;ra(465,v|0,g|0);l=x;x=0;if(l&1){w=gb()|0;x0(g);wb(w|0)}x0(g);c=a+108|0;h=s;j=c;l=h+40|0;do{k[h>>2]=k[j>>2];h=h+4|0;j=j+4|0}while((h|0)<(l|0));x=0;b=xa(65,a|0,1,0)|0;l=x;x=0;a:do if(l&1)w=20;else{b:do if(!b){k[o>>2]=0;k[o+4>>2]=0;k[o+8>>2]=0;b=i[v>>0]|0;b=(b&1)==0?(b&255)>>>1:k[v+4>>2]|0;x=0;Sa(21,o|0,61203,19,b+19|0);l=x;x=0;if(!(l&1)){x=0;xa(45,o|0,((i[v>>0]&1)==0?v+1|0:k[v+8>>2]|0)|0,b|0)|0;l=x;x=0;if(!(l&1)){x=0;b=Ia(859,o|0,61223)|0;l=x;x=0;do if(l&1)b=gb()|0;else{k[m>>2]=k[b>>2];k[m+4>>2]=k[b+4>>2];k[m+8>>2]=k[b+8>>2];k[b>>2]=0;k[b+4>>2]=0;k[b+8>>2]=0;x=0;k[n>>2]=k[c>>2];k[n+4>>2]=k[c+4>>2];k[n+8>>2]=k[c+8>>2];Oa(193,a|0,m|0,n|0);n=x;x=0;if(n&1){b=gb()|0;x0(m);break}else{x0(m);x0(o);break b}}while(0);x0(o);break a}}b=gb()|0;x0(o);w=21;break a}while(0);f=a+76|0;x=0;Oa(197,p|0,a|0,k[f>>2]|0);o=x;x=0;if(o&1)w=20;else{if(!(i[p+13>>0]|0))w=30;else{b=k[p>>2]|0;if(!b)w=30;else{x=0;b=Ia(899,a|0,b|0)|0;p=x;x=0;if(p&1){w=20;break}}}if((w|0)==30){x=0;b=ta(178,a|0)|0;p=x;x=0;if(p&1){w=20;break}}i[b+48>>0]=0;g=0;c=0;c:while(1)while(1){d=k[f>>2]|0;x=0;e=ta(171,d|0)|0;p=x;x=0;if(p&1){w=19;break c}d=(e|0)!=0?e:d;x=0;e=ta(179,d|0)|0;p=x;x=0;if(p&1){w=19;break c}if(!e){x=0;d=ta(180,d|0)|0;p=x;x=0;if(p&1){w=19;break c}if(!d){f=c;break c}}x=0;d=xa(66,a|0,1,0)|0;p=x;x=0;if(p&1){w=19;break c}if(d){g=1;continue c}x=0;d=xa(67,a|0,1,0)|0;p=x;x=0;if(p&1){w=19;break c}c=c|(d|0)!=0}if((w|0)==19){b=gb()|0;w=21;break}d=(k[a+40>>2]|0)+4|0;x=0;e=Ia(853,d|0,84)|0;a=x;x=0;if(a&1)w=20;else{h=q;j=s;l=h+40|0;do{k[h>>2]=k[j>>2];h=h+4|0;j=j+4|0}while((h|0)<(l|0));x=0;ra(418,t|0,v|0);s=x;x=0;if(s&1)w=20;else{k[e+4>>2]=0;h=e+8|0;j=q;l=h+40|0;do{k[h>>2]=k[j>>2];h=h+4|0;j=j+4|0}while((h|0)<(l|0));c=e+52|0;k[c>>2]=0;k[e+56>>2]=0;i[e+60>>0]=0;k[e>>2]=32888;x=0;ra(418,e+64|0,t|0);s=x;x=0;if(!(s&1)){k[e+76>>2]=b;i[e+80>>0]=g;i[e+81>>0]=f&1;k[c>>2]=10;x=0;b=Ia(854,d|0,e|0)|0;s=x;x=0;if(!(s&1)){x0(t);x0(v);r=u;return b|0}}b=gb()|0;x0(t)}}}}while(0);if((w|0)==20){b=gb()|0;w=21}x0(v);w=b;wb(w|0);return 0}function Uf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;A=r;r=r+176|0;z=A;f=A+128|0;g=A+124|0;w=A+112|0;u=A+100|0;q=A+88|0;p=A+48|0;y=A+40|0;if(i[a+88>>0]|0){e=(k[a+4>>2]|0)+4|0;c=bB(e,72)|0;v=f;s=b+8|0;t=v+40|0;do{k[v>>2]=k[s>>2];v=v+4|0;s=s+4|0}while((v|0)<(t|0));d=k[b+64>>2]|0;d=Kc[k[(k[d>>2]|0)+16>>2]&1023](d,a)|0;d=vc[k[(k[d>>2]|0)+52>>2]&255](d)|0;k[c+4>>2]=0;v=c+8|0;s=f;t=v+40|0;do{k[v>>2]=k[s>>2];v=v+4|0;s=s+4|0}while((v|0)<(t|0));k[c+56>>2]=0;i[c+60>>0]=0;k[c+64>>2]=d;k[c>>2]=25540;k[c+68>>2]=0;k[c+52>>2]=8;f=r3(e,c)|0;c=b+68|0;if(!(k[c>>2]|0)){a=f;r=A;return a|0}k[g>>2]=0;d=a+68|0;e=k[d>>2]|0;if(e>>>0<(k[a+72>>2]|0)>>>0){k[e>>2]=0;k[d>>2]=(k[d>>2]|0)+4}else Tu(a+64|0,g);b=k[c>>2]|0;a=Kc[k[(k[b>>2]|0)+20>>2]&1023](b,a+8|0)|0;k[f+68>>2]=a;k[d>>2]=(k[d>>2]|0)+-4;a=f;r=A;return a|0}o=b+68|0;a:do if(i[b+73>>0]|0){c=k[o>>2]|0;if(c){c=Vr(c,488,56,0)|0;if(c){d=k[c+72>>2]|0;j=k[c+76>>2]|0;if((d|0)!=(j|0)){l=a+4|0;m=a+80|0;n=a+76|0;b:while(1){g=k[d>>2]|0;if(g){h=g;do{c=k[h+72>>2]|0;if(c){e=k[c+72>>2]|0;f=k[c+76>>2]|0;if((e|0)!=(f|0))do{c=k[e>>2]|0;if(c)if(Vr(c,40,520,0)|0){lV(w,k[l>>2]|0,1);x=0;Oa(k[(k[g>>2]|0)+28>>2]|0,u|0,g|0,w|0);v=x;x=0;if(v&1){d=25;break b}x=0;Oa(146,q|0,53615,78);v=x;x=0;if(v&1){d=26;break b}v=p;s=c+8|0;t=v+40|0;do{k[v>>2]=k[s>>2];v=v+4|0;s=s+4|0}while((v|0)<(t|0));c=k[m>>2]|0;if((c|0)==(k[n>>2]|0))c=0;else c=k[c+-4>>2]|0;x=0;v=z;s=p;t=v+40|0;do{k[v>>2]=k[s>>2];v=v+4|0;s=s+4|0}while((v|0)<(t|0));Oa(164,q|0,z|0,c|0);v=x;x=0;if(v&1){d=27;break b}x0(q);x0(u);tfa(w)}e=e+4|0}while((e|0)!=(f|0))}h=k[h+76>>2]|0}while((h|0)!=0)}d=d+4|0;if((d|0)==(j|0))break a}if((d|0)==25)c=gb()|0;else if((d|0)==26){c=gb()|0;d=28}else if((d|0)==27){c=gb()|0;x0(q);d=28}if((d|0)==28)x0(u);tfa(w);A=c;wb(A|0)}}}}while(0);c=k[o>>2]|0;c=Kc[k[(k[c>>2]|0)+20>>2]&1023](c,a+8|0)|0;if(!c)k[y>>2]=0;else{w=Vr(c,504,56,0)|0;k[y>>2]=w;f=w;if(w){g=a+68|0;c=k[g>>2]|0;if((c|0)==(k[a+72>>2]|0))Su(a+64|0,y);else{k[c>>2]=f;k[g>>2]=(k[g>>2]|0)+4}e=k[b+64>>2]|0;e=Kc[k[(k[e>>2]|0)+16>>2]&1023](e,a)|0;e=vc[k[(k[e>>2]|0)+52>>2]&255](e)|0;c=(k[a+4>>2]|0)+4|0;d=bB(c,76)|0;v=z;s=b+8|0;t=v+40|0;do{k[v>>2]=k[s>>2];v=v+4|0;s=s+4|0}while((v|0)<(t|0));k[d+4>>2]=0;v=d+8|0;s=z;t=v+40|0;do{k[v>>2]=k[s>>2];v=v+4|0;s=s+4|0}while((v|0)<(t|0));k[d+56>>2]=0;i[d+60>>0]=0;k[d+64>>2]=e;k[d>>2]=21812;k[d+68>>2]=f;i[d+72>>0]=0;i[d+73>>0]=0;k[d+52>>2]=1;a=r3(c,d)|0;k[g>>2]=(k[g>>2]|0)+-4;k[a+56>>2]=k[b+56>>2];r=A;return a|0}}c=fb(8)|0;x=0;ra(425,c|0,53694);A=x;x=0;if(!(A&1))Wb(c|0,19312,190);A=gb()|0;eb(c|0);wb(A|0);return 0}function Vf(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0;A=0;y=r;r=r+240|0;w=y;q=y+208|0;B=y+196|0;g=y+192|0;z=y+180|0;v=y+176|0;t=y+16|0;u=y+8|0;s=y+4|0;a=0;while(1){if((a|0)==3)break;k[B+(a<<2)>>2]=0;a=a+1|0}x=0;d=ta(142,d|0)|0;p=x;x=0;do if(p&1)a=gb()|0;else{k[g>>2]=d;x=0;a=Ia(863,g|0,43204)|0;p=x;x=0;if(!(p&1)){x=0;Na(k[(k[a>>2]|0)+32>>2]|0,a|0,72803,72829,q|0)|0;p=x;x=0;if(!(p&1)){zH(d)|0;a=0;while(1){if((a|0)==3)break;k[z+(a<<2)>>2]=0;a=a+1|0}if(!(i[z>>0]&1))a=10;else a=(k[z>>2]&-2)+-1|0;x=0;Oa(151,z|0,a|0,0);p=x;x=0;a:do if(p&1)A=36;else{o=z+8|0;p=z+1|0;d=(i[z>>0]&1)==0?p:k[o>>2]|0;k[v>>2]=d;k[u>>2]=t;k[s>>2]=0;n=z+4|0;a=k[b>>2]|0;b:while(1){if(!a)a=0;else if((k[a+12>>2]|0)==(k[a+16>>2]|0)){x=0;g=ta(k[(k[a>>2]|0)+36>>2]|0,a|0)|0;m=x;x=0;if(m&1){A=35;break}if((g|0)==-1){k[b>>2]=0;a=0}}g=(a|0)==0;h=k[c>>2]|0;do if(!h)A=25;else{if((k[h+12>>2]|0)!=(k[h+16>>2]|0))if(g)break;else{j=h;break b}x=0;j=ta(k[(k[h>>2]|0)+36>>2]|0,h|0)|0;m=x;x=0;if(m&1){A=35;break b}if((j|0)==-1){k[c>>2]=0;A=25;break}else if(g)break;else{j=h;break b}}while(0);if((A|0)==25){A=0;if(g){j=0;break}else h=0}g=i[z>>0]|0;g=(g&1)==0?(g&255)>>>1:k[n>>2]|0;if((k[v>>2]|0)==(d+g|0)){x=0;Oa(151,z|0,g<<1|0,0);m=x;x=0;if(m&1){A=35;break}if(!(i[z>>0]&1))d=10;else d=(k[z>>2]&-2)+-1|0;x=0;Oa(151,z|0,d|0,0);m=x;x=0;if(m&1){A=35;break}d=(i[z>>0]&1)==0?p:k[o>>2]|0;k[v>>2]=d+g}j=a+12|0;g=k[j>>2]|0;m=a+16|0;if((g|0)==(k[m>>2]|0)){x=0;g=ta(k[(k[a>>2]|0)+36>>2]|0,a|0)|0;C=x;x=0;if(C&1){A=35;break}}else g=l[g>>0]|0;if(zn(g&255,16,d,v,s,0,B,t,u,q)|0){j=h;break}g=k[j>>2]|0;if((g|0)==(k[m>>2]|0)){x=0;ta(k[(k[a>>2]|0)+40>>2]|0,a|0)|0;C=x;x=0;if(C&1){A=35;break}else continue}else{k[j>>2]=g+1;continue}}if((A|0)==35){a=gb()|0;break}x=0;Oa(151,z|0,(k[v>>2]|0)-d|0,0);C=x;x=0;if(C&1)A=36;else{h=i[z>>0]|0;d=k[o>>2]|0;x=0;g=Ma(4)|0;C=x;x=0;if(C&1)A=36;else{x=0;k[w>>2]=f;d=Na(9,((h&1)==0?p:d)|0,g|0,74187,w|0)|0;C=x;x=0;if(C&1)A=36;else{if((d|0)!=1)k[e>>2]=4;if(!a)a=0;else if((k[a+12>>2]|0)==(k[a+16>>2]|0)){x=0;d=ta(k[(k[a>>2]|0)+36>>2]|0,a|0)|0;C=x;x=0;if(C&1){A=36;break}if((d|0)==-1){k[b>>2]=0;a=0}}d=(a|0)==0;do if(!j)A=61;else{if((k[j+12>>2]|0)==(k[j+16>>2]|0)){x=0;a=ta(k[(k[j>>2]|0)+36>>2]|0,j|0)|0;C=x;x=0;if(C&1){A=36;break a}if((a|0)==-1){k[c>>2]=0;A=61;break}}if(!d)A=62}while(0);if((A|0)==61)if(d)A=62;if((A|0)==62)k[e>>2]=k[e>>2]|2;C=k[b>>2]|0;x0(z);x0(B);r=y;return C|0}}}}while(0);if((A|0)==36)a=gb()|0;x0(z);break}}a=gb()|0;zH(d)|0}while(0);x0(B);wb(a|0);return 0}function Wf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0;y=r;r=r+192|0;w=y;u=y+172|0;t=y+160|0;v=y+120|0;f=y+104|0;e=y+92|0;c=y+80|0;g=y+76|0;A=y+64|0;z=y+52|0;o=y+40|0;p=a+152|0;k[w>>2]=k[p>>2];k[w+4>>2]=k[p+4>>2];k[w+8>>2]=k[p+8>>2];q=a+76|0;d=k[q>>2]|0;s=a+84|0;k[u>>2]=k[s>>2];k[u+4>>2]=k[s+4>>2];k[u+8>>2]=k[s+8>>2];m=a+96|0;k[t>>2]=k[m>>2];k[t+4>>2]=k[m+4>>2];k[t+8>>2]=k[m+8>>2];n=a+108|0;h=v;j=n;l=h+40|0;do{k[h>>2]=k[j>>2];h=h+4|0;j=j+4|0}while((h|0)<(l|0));Xs(a,1,0)|0;a:do if(!(Wq(a,1,0)|0)){h=n;j=v;l=h+40|0;do{k[h>>2]=k[j>>2];h=h+4|0;j=j+4|0}while((h|0)<(l|0));k[p>>2]=k[w>>2];k[p+4>>2]=k[w+4>>2];k[p+8>>2]=k[w+8>>2];k[q>>2]=d;k[m>>2]=k[t>>2];k[m+4>>2]=k[t+4>>2];k[m+8>>2]=k[t+8>>2];k[s>>2]=k[u>>2];k[s+4>>2]=k[u+4>>2];k[s+8>>2]=k[u+8>>2];bC(f,60542,11);x=0;Oa(146,e|0,60554,7);l=x;x=0;if(l&1)c=gb()|0;else{x=0;Oa(146,c|0,60810,20);l=x;x=0;do if(l&1)c=gb()|0;else{x=0;Sa(37,a|0,f|0,e|0,c|0);l=x;x=0;if(l&1){A=gb()|0;x0(c);c=A;break}else{x0(c);x0(e);x0(f);break a}}while(0);x0(e)}x0(f);A=c;wb(A|0)}while(0);c=(k[a+40>>2]|0)+4|0;d=bB(c,88)|0;h=w;j=n;l=h+40|0;do{k[h>>2]=k[j>>2];h=h+4|0;j=j+4|0}while((h|0)<(l|0));k[d+4>>2]=0;h=d+8|0;j=w;l=h+40|0;do{k[h>>2]=k[j>>2];h=h+4|0;j=j+4|0}while((h|0)<(l|0));k[d+52>>2]=0;k[d+56>>2]=0;i[d+60>>0]=0;k[d+68>>2]=0;k[d+72>>2]=0;k[d+76>>2]=0;k[d>>2]=25308;k[d+64>>2]=25380;i[d+84>>0]=b&1;i[d+85>>0]=0;i[d+86>>0]=0;i[d+87>>0]=0;d=r3(c,d)|0;k[g>>2]=d;e=a+48|0;c=k[e>>2]|0;if((c|0)==(k[a+52>>2]|0))hv(a+44|0,g);else{k[c>>2]=d;k[e>>2]=(k[e>>2]|0)+4}Vv(a,0)|0;k[w>>2]=k[p>>2];k[w+4>>2]=k[p+4>>2];k[w+8>>2]=k[p+8>>2];c=k[q>>2]|0;k[u>>2]=k[s>>2];k[u+4>>2]=k[s+4>>2];k[u+8>>2]=k[s+8>>2];k[t>>2]=k[m>>2];k[t+4>>2]=k[m+4>>2];k[t+8>>2]=k[m+8>>2];h=v;j=n;l=h+40|0;do{k[h>>2]=k[j>>2];h=h+4|0;j=j+4|0}while((h|0)<(l|0));Xs(a,1,0)|0;if(Vq(a,1,0)|0){CF(d,n);A=k[e>>2]|0;A=A+-4|0;k[e>>2]=A;r=y;return d|0}h=n;j=v;l=h+40|0;do{k[h>>2]=k[j>>2];h=h+4|0;j=j+4|0}while((h|0)<(l|0));k[p>>2]=k[w>>2];k[p+4>>2]=k[w+4>>2];k[p+8>>2]=k[w+8>>2];k[q>>2]=c;k[m>>2]=k[t>>2];k[m+4>>2]=k[t+4>>2];k[m+8>>2]=k[t+8>>2];k[s>>2]=k[u>>2];k[s+4>>2]=k[u+4>>2];k[s+8>>2]=k[u+8>>2];bC(A,60542,11);x=0;Oa(146,z|0,60554,7);w=x;x=0;if(w&1)c=gb()|0;else{x=0;Oa(146,o|0,60831,20);w=x;x=0;do if(w&1)c=gb()|0;else{x=0;Sa(37,a|0,A|0,z|0,o|0);a=x;x=0;if(a&1){c=gb()|0;x0(o);break}x0(o);x0(z);x0(A);CF(d,n);A=k[e>>2]|0;A=A+-4|0;k[e>>2]=A;r=y;return d|0}while(0);x0(z)}x0(A);A=c;wb(A|0);return 0}function Xf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0;s=r;r=r+160|0;c=s+144|0;d=s+132|0;h=s+120|0;j=s+108|0;l=s+96|0;m=s+84|0;n=s+72|0;o=s+60|0;p=s+48|0;q=s+36|0;e=s+24|0;f=s+12|0;g=s;t=k[b+60>>2]|0;tc[k[(k[t>>2]|0)+8>>2]&1023](t,a);a:do switch(k[b+56>>2]|0){case 0:{bC(c,59484,5);x=0;ra(460,a+4|0,c|0);t=x;x=0;if(!(t&1)){x0(c);break a}t=gb()|0;x0(c);wb(t|0)}case 1:{bC(d,59490,4);x=0;ra(460,a+4|0,d|0);t=x;x=0;if(!(t&1)){x0(d);break a}t=gb()|0;x0(d);wb(t|0)}case 2:{bC(h,59495,4);x=0;ra(460,a+4|0,h|0);t=x;x=0;if(!(t&1)){x0(h);break a}t=gb()|0;x0(h);wb(t|0)}case 3:{bC(j,59500,4);x=0;ra(460,a+4|0,j|0);t=x;x=0;if(!(t&1)){x0(j);break a}t=gb()|0;x0(j);wb(t|0)}case 4:{bC(l,59505,3);x=0;ra(460,a+4|0,l|0);t=x;x=0;if(!(t&1)){x0(l);break a}t=gb()|0;x0(l);wb(t|0)}case 5:{bC(m,59509,4);x=0;ra(460,a+4|0,m|0);t=x;x=0;if(!(t&1)){x0(m);break a}t=gb()|0;x0(m);wb(t|0)}case 6:{bC(n,59514,3);x=0;ra(460,a+4|0,n|0);t=x;x=0;if(!(t&1)){x0(n);break a}t=gb()|0;x0(n);wb(t|0)}case 7:{bC(o,59518,4);x=0;ra(460,a+4|0,o|0);t=x;x=0;if(!(t&1)){x0(o);break a}t=gb()|0;x0(o);wb(t|0)}case 8:{bC(p,59523,3);x=0;ra(460,a+4|0,p|0);t=x;x=0;if(!(t&1)){x0(p);break a}t=gb()|0;x0(p);wb(t|0)}case 9:{bC(q,59527,3);x=0;ra(460,a+4|0,q|0);t=x;x=0;if(!(t&1)){x0(q);break a}t=gb()|0;x0(q);wb(t|0)}case 10:{bC(e,59531,3);x=0;ra(460,a+4|0,e|0);t=x;x=0;if(!(t&1)){x0(e);break a}t=gb()|0;x0(e);wb(t|0)}case 11:{t=(i[a+91>>0]|0)!=0;bC(f,t?59535:59986,t?3:1);x=0;ra(460,a+4|0,f|0);t=x;x=0;if(!(t&1)){x0(f);break a}t=gb()|0;x0(f);wb(t|0)}case 12:{bC(g,59539,3);x=0;ra(460,a+4|0,g|0);t=x;x=0;if(!(t&1)){x0(g);break a}t=gb()|0;x0(g);wb(t|0)}default:{}}while(0);t=k[b+64>>2]|0;tc[k[(k[t>>2]|0)+8>>2]&1023](t,a);r=s;return}function Yf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,m=0,n=0,o=0,q=0,s=0,t=0,u=0,v=0,w=0,y=0,z=0.0;g=0;y=r;r=r+208|0;n=y+168|0;e=y+128|0;w=y+112|0;f=y+72|0;j=y+56|0;q=y+16|0;v=y;m=b+60|0;o=k[m>>2]|0;o=Kc[k[(k[o>>2]|0)+20>>2]&1023](o,a)|0;h=b+56|0;if((k[h>>2]|0)==2){c=(k[a+8>>2]|0)+4|0;d=bB(c,64)|0;s=e;t=b+8|0;u=s+40|0;do{k[s>>2]=k[t>>2];s=s+4|0;t=t+4|0}while((s|0)<(u|0));a=vc[k[(k[o>>2]|0)+40>>2]&255](o)|0;k[d+4>>2]=0;s=d+8|0;t=e;u=s+40|0;do{k[s>>2]=k[t>>2];s=s+4|0;t=t+4|0}while((s|0)<(u|0));i[d+48>>0]=0;i[d+49>>0]=0;i[d+50>>0]=0;k[d>>2]=22348;i[d+56>>0]=a&1;k[d+60>>2]=0;k[d+52>>2]=1;b=r3(c,d)|0;w=b+56|0;i[w>>0]=i[w>>0]^1;r=y;return b|0}c=o+52|0;d=a+8|0;a=k[d>>2]|0;if((k[c>>2]|0)==2){a=a+4|0;c=bB(a,96)|0;k[c+4>>2]=k[o+4>>2];k[c>>2]=23812;s=c+8|0;t=o+8|0;u=s+40|0;do{k[s>>2]=k[t>>2];s=s+4|0;t=t+4|0}while((s|0)<(u|0));k[c>>2]=23860;b=o+48|0;v=b;v=l[v>>0]|l[v+1>>0]<<8|l[v+2>>0]<<16|l[v+3>>0]<<24;b=b+4|0;b=l[b>>0]|l[b+1>>0]<<8|l[b+2>>0]<<16|l[b+3>>0]<<24;g=c+48|0;w=g;i[w>>0]=v;i[w+1>>0]=v>>8;i[w+2>>0]=v>>16;i[w+3>>0]=v>>24;g=g+4|0;i[g>>0]=b;i[g+1>>0]=b>>8;i[g+2>>0]=b>>16;i[g+3>>0]=b>>24;k[c>>2]=21728;g=c+56|0;b=o+56|0;k[g>>2]=k[b>>2];k[g+4>>2]=k[b+4>>2];i[g+8>>0]=i[b+8>>0]|0;g=c+68|0;x=0;ra(431,g|0,o+68|0);b=x;x=0;if(b&1){y=gb()|0;wb(y|0)}x=0;ra(431,c+80|0,o+80|0);b=x;x=0;if(!(b&1)){k[c+92>>2]=k[o+92>>2];b=r3(a,c)|0;w=b+56|0;z=+p[w>>3];p[w>>3]=(k[h>>2]|0)==1?-z:z;r=y;return b|0}f=gb()|0;e=M;a=k[g>>2]|0;if(!a){y=f;wb(y|0)}d=c+72|0;c=k[d>>2]|0;if((c|0)!=(a|0)){do{y=c+-12|0;k[d>>2]=y;x0(y);c=k[d>>2]|0}while((c|0)!=(a|0));a=k[g>>2]|0}Ffa(a);y=f;wb(y|0)}lV(w,a,1);do if((k[c>>2]|0)==8){a=k[m>>2]|0;if(!a){x=0;Pa(3);x=0;break}if((k[(k[(k[a>>2]|0)+-4>>2]|0)+4>>2]|0)==52929){a=(k[d>>2]|0)+4|0;x=0;c=Ia(853,a|0,76)|0;u=x;x=0;if(!(u&1)){s=f;t=b+8|0;u=s+40|0;do{k[s>>2]=k[t>>2];s=s+4|0;t=t+4|0}while((s|0)<(u|0));x=0;Oa(146,j|0,74203,0);u=x;x=0;if(!(u&1)){x=0;s=n;t=f;u=s+40|0;do{k[s>>2]=k[t>>2];s=s+4|0;t=t+4|0}while((s|0)<(u|0));pa(5,c|0,n|0,j|0,0,0);u=x;x=0;if(!(u&1)){x=0;a=Ia(854,a|0,c|0)|0;u=x;x=0;if(!(u&1)){k[m>>2]=a;x0(j);g=26;break}}y=gb()|0;x0(j);tfa(w);wb(y|0)}}}else g=25}else g=25;while(0);if((g|0)==25){k[m>>2]=o;g=26}if((g|0)==26){a=(k[d>>2]|0)+4|0;x=0;c=Ia(853,a|0,76)|0;u=x;x=0;if(!(u&1)){s=q;t=b+8|0;u=s+40|0;do{k[s>>2]=k[t>>2];s=s+4|0;t=t+4|0}while((s|0)<(u|0));x=0;Oa(k[(k[b>>2]|0)+28>>2]|0,v|0,b|0,w|0);b=x;x=0;if(!(b&1)){x=0;s=n;t=q;u=s+40|0;do{k[s>>2]=k[t>>2];s=s+4|0;t=t+4|0}while((s|0)<(u|0));pa(5,c|0,n|0,v|0,0,0);b=x;x=0;if(!(b&1)){x=0;a=Ia(854,a|0,c|0)|0;b=x;x=0;if(!(b&1)){x0(v);tfa(w);b=a;r=y;return b|0}}y=gb()|0;x0(v);tfa(w);wb(y|0)}}}y=gb()|0;tfa(w);wb(y|0);return 0}function Zf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0;q=0;o=r;r=r+320|0;e=o+240|0;s=o+52|0;f=o;p=o+40|0;j=o+28|0;l=o+16|0;c=a+8|0;d=a+1|0;if((GI((i[a>>0]&1)==0?d:k[c>>2]|0,e)|0)==-1){s=0;r=o;return s|0}if((k[e+12>>2]&61440|0)==16384){s=0;r=o;return s|0}c=(i[a>>0]&1)==0?d:k[c>>2]|0;n=s+108|0;m=s+8|0;k[s>>2]=28136;k[n>>2]=28156;k[s+4>>2]=0;x=0;ra(435,s+108|0,m|0);h=x;x=0;if(h&1){s=gb()|0;p8(n);wb(s|0)}k[s+180>>2]=0;k[s+184>>2]=-1;k[s>>2]=28176;k[s+108>>2]=28196;x=0;qa(309,m|0);h=x;x=0;do if(h&1)b=gb()|0;else{g=s+72|0;if(!(k[g>>2]|0)){c=kA(c,54955)|0;k[g>>2]=c;if(!c)q=9;else{k[s+96>>2]=14;if(haa(c,0,2)|0){YB(k[g>>2]|0)|0;k[g>>2]=0;q=9}}}else q=9;if((q|0)==9){h=k[(k[s>>2]|0)+-12>>2]|0;x=0;ra(438,s+h|0,k[s+(h+16)>>2]|4|0);h=x;x=0;if(h&1){b=gb()|0;Ev(m);break}}a:do if(!(k[g>>2]|0))h=0;else{x=0;ra(499,f|0,s|0);h=x;x=0;do if(h&1)q=25;else{c=k[f+8>>2]|0;e=hd(c+1|0)|0;x=0;Na(8,s|0,0,0,0)|0;h=x;x=0;if(h&1)q=25;else{x=0;xa(56,s|0,e|0,c|0)|0;h=x;x=0;if(h&1)q=25;else{i[e+c>>0]=0;c=k[g>>2]|0;if(c){x=0;d=ta(k[(k[m>>2]|0)+24>>2]|0,m|0)|0;h=x;x=0;if(h&1){b=gb()|0;YB(c)|0;break}if(!(YB(c)|0)){k[g>>2]=0;if(!d){h=e;break a}}}h=k[(k[s>>2]|0)+-12>>2]|0;x=0;ra(438,s+h|0,k[s+(h+16)>>2]|4|0);h=x;x=0;if(h&1)q=25;else{h=e;break a}}}}while(0);if((q|0)==25)b=gb()|0;q=b;k[s>>2]=28176;k[n>>2]=28196;Ev(m);p8(n);wb(q|0)}while(0);k[p>>2]=0;k[p+4>>2]=0;k[p+8>>2]=0;c=i[a>>0]|0;c=(c&1)==0?(c&255)>>>1:k[a+4>>2]|0;do if(c>>>0>5){x=0;pa(4,j|0,a|0,c+-5|0,5,a|0);a=x;x=0;if(a&1)q=39;else{if(!(i[p>>0]&1)){i[p+1>>0]=0;i[p>>0]=0}else{i[k[p+8>>2]>>0]=0;k[p+4>>2]=0}x=0;ra(424,p|0,0);a=x;x=0;if(a&1){o=gb(0)|0;iaa(o)}else{k[p>>2]=k[j>>2];k[p+4>>2]=k[j+4>>2];k[p+8>>2]=k[j+8>>2];k[j>>2]=0;k[j+4>>2]=0;k[j+8>>2]=0;x0(j);b=p+4|0;g=b;c=i[p>>0]|0;b=k[b>>2]|0;q=29;break}}}else{g=p+4|0;c=0;b=0;q=29}while(0);b:do if((q|0)==29){c:do if(((c&1)==0?(c&255)>>>1:b)|0){e=p+8|0;f=p+1|0;d=0;while(1){x=0;b=ta(161,i[((c&1)==0?f:k[e>>2]|0)+d>>0]|0)|0;a=x;x=0;if(a&1)break;i[((i[p>>0]&1)==0?f:k[e>>2]|0)+d>>0]=b;d=d+1|0;c=i[p>>0]|0;if(d>>>0>=((c&1)==0?(c&255)>>>1:k[g>>2]|0)>>>0)break c}b=gb()|0;q=40;break b}while(0);do if((h|0)!=0&(qF(p,54947)|0)==0){a=EB(h)|0;x=0;Oa(146,l|0,h|0,a|0);a=x;x=0;if(a&1){q=39;break b}x=0;b=Ia(871,l|0,33)|0;a=x;x=0;if(a&1){b=gb()|0;x0(l);break b}else{x0(l);We(h);break}}else b=h;while(0);x0(p);k[s>>2]=28176;k[n>>2]=28196;Ev(m);p8(n);s=b;r=o;return s|0}while(0);if((q|0)==39){b=gb()|0;q=40}x0(p);q=b;k[s>>2]=28176;k[n>>2]=28196;Ev(m);p8(n);wb(q|0)}while(0);s=b;p8(n);wb(s|0);return 0}function _f(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0;u=0;t=r;r=r+512|0;q=t+400|0;c=t+388|0;d=t;v=t+280|0;h=t+152|0;f=t+136|0;e=t+96|0;o=t+192|0;m=t+56|0;p=t+40|0;nV(t+376|0,-1,-1,-1);hF(h,54908,0,-1);bC(f,54915,4);g=d;l=g+40|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(l|0));x=0;ra(418,c|0,f|0);s=x;x=0;do if(s&1)c=gb()|0;else{x=0;g=q;h=d;l=g+40|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(l|0));Oa(173,v|0,q|0,c|0);s=x;x=0;if(s&1){v=gb()|0;x0(c);c=v;break}x0(c);k[v>>2]=23036;x0(f);x=0;Sa(26,e|0,54908,0,-1);s=x;x=0;if(s&1)u=24;else{k[q+4>>2]=0;g=q+8|0;h=e;l=g+40|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(l|0));i[q+48>>0]=0;i[q+49>>0]=0;i[q+50>>0]=0;k[q>>2]=23936;e=q+56|0;k[q+64>>2]=0;k[e>>2]=0;i[e+4>>0]=0;k[q+52>>2]=7;n=q+68|0;k[n>>2]=24312;c=q+72|0;k[c>>2]=0;s=q+76|0;k[s>>2]=0;k[q+80>>2]=0;x=0;d=ta(139,4)|0;l=x;x=0;if(l&1)u=24;else{f=d;k[c>>2]=f;k[s>>2]=f;k[q+80>>2]=d+4;k[q>>2]=23460;k[n>>2]=23560;k[q+92>>2]=0;k[q+96>>2]=0;f=q+92|0;k[q+88>>2]=f;i[q+100>>0]=0;k[d>>2]=v;k[s>>2]=(k[s>>2]|0)+4;x=0;Sa(26,m|0,54908,0,-1);l=x;x=0;do if(l&1)c=gb()|0;else{k[o+4>>2]=0;g=o+8|0;h=m;l=g+40|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(l|0));i[o+48>>0]=0;i[o+49>>0]=0;i[o+50>>0]=0;d=o+56|0;k[o+64>>2]=0;k[d>>2]=0;i[d+4>>0]=0;k[o+52>>2]=7;k[o>>2]=23584;k[o+68>>2]=0;k[o+72>>2]=q;k[o+76>>2]=0;k[o+80>>2]=0;c=j[e>>1]|0;if((c&255)<<24>>24)i[d>>0]=1;if((c&65535)>=256)i[o+57>>0]=1;x=0;Oa(180,a|0,o|0,0);m=x;x=0;if(!(m&1)){x=0;Oa(180,b|0,o|0,0);o=x;x=0;if(!(o&1)){c=k[(k[a>>2]|0)+80>>2]|0;x=0;Oa(146,p|0,74203,0);o=x;x=0;if(!(o&1)){x=0;e=xa(c|0,a|0,b|0,p|0)|0;o=x;x=0;if(o&1){c=gb()|0;x0(p);break}x0(p);x=0;ta(157,a|0)|0;a=x;x=0;if(!(a&1)){x=0;ta(157,b|0)|0;b=x;x=0;if(!(b&1)){k[q>>2]=23460;k[n>>2]=23560;NB(q+88|0,k[f>>2]|0);k[n>>2]=24312;c=k[q+72>>2]|0;if(!c){k[v>>2]=22932;u=v+80|0;x0(u);v=v+68|0;x0(v);r=t;return e|0}d=k[s>>2]|0;if((d|0)!=(c|0))k[s>>2]=d+(~((d+-4-c|0)>>>2)<<2);Ffa(c);k[v>>2]=22932;u=v+80|0;x0(u);v=v+68|0;x0(v);r=t;return e|0}}}}}c=gb()|0}while(0);k[q>>2]=23460;k[n>>2]=23560;NB(q+88|0,k[f>>2]|0);k[n>>2]=24312;d=k[q+72>>2]|0;e=d;if(d){f=k[s>>2]|0;if((f|0)!=(d|0))k[s>>2]=f+(~((f+-4-e|0)>>>2)<<2);Ffa(d)}}}if((u|0)==24)c=gb()|0;k[v>>2]=22932;x0(v+80|0);x0(v+68|0);v=c;wb(v|0)}while(0);x0(f);v=c;wb(v|0);return 0}function $f(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0.0,h=0.0,i=0.0,j=0.0,l=0.0,m=0.0,n=0.0,o=0,q=0,s=0.0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;D=0;G=r;r=r+176|0;F=G+136|0;o=G+124|0;C=G+112|0;w=G+72|0;y=G+60|0;z=G+48|0;A=G+36|0;B=G+24|0;q=G+12|0;t=G;bC(o,55369,7);x=0;b=Ia(870,a|0,o|0)|0;E=x;x=0;if(E&1){G=gb()|0;x0(o);wb(G|0)}b=k[b>>2]|0;if(!b)x0(o);else{E=Vr(b,672,232,0)|0;x0(o);if(E){bC(q,55369,7);x=0;b=F;u=e;v=b+40|0;do{k[b>>2]=k[u>>2];b=b+4|0;u=u+4|0}while((b|0)<(v|0));Ka(1,q|0,a|0,d|0,F|0,0.0,100.0,f|0)|0;D=x;x=0;if(D&1){G=gb()|0;x0(q);wb(G|0)}x0(q);bC(t,55299,6);x=0;b=F;u=e;v=b+40|0;do{k[b>>2]=k[u>>2];b=b+4|0;u=u+4|0}while((b|0)<(v|0));o=Ja(25,t|0,a|0,d|0,F|0,f|0)|0;D=x;x=0;if(D&1){G=gb()|0;x0(t);wb(G|0)}x0(t);i=+p[o+56>>3]/255.0;j=+p[o+64>>3]/255.0;l=+p[o+72>>3]/255.0;b=j