summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2020-10-13 17:28:54 -0700
committerMicah Lee <micah@micahflee.com>2020-10-13 17:28:54 -0700
commitb42f92d714145dcc6282773e61f68c00b4b79a28 (patch)
treeee4443ab3c5300db279a3cf0686380074d98c973
parentf4abcf1be9122a28005dc3e0949bf5952192e982 (diff)
downloadonionshare-b42f92d714145dcc6282773e61f68c00b4b79a28.tar.gz
onionshare-b42f92d714145dcc6282773e61f68c00b4b79a28.zip
Move docs back to root, move onionshare_gui into briefcase app, and make modifications so briefcase app will work
-rw-r--r--.gitignore1
-rw-r--r--CHANGELOG.md (renamed from desktop/CHANGELOG.md)0
-rw-r--r--LICENSE (renamed from cli/LICENSE)0
-rw-r--r--cli/CHANGELOG.md3
-rw-r--r--cli/README.md16
-rw-r--r--desktop/.gitignore1
-rw-r--r--desktop/LICENSE679
-rw-r--r--desktop/MANIFEST.in13
-rw-r--r--desktop/README.md84
-rw-r--r--desktop/apparmor/abstractions/onionshare29
-rw-r--r--desktop/apparmor/local/usr.bin.onionshare2
-rw-r--r--desktop/apparmor/local/usr.bin.onionshare-gui2
-rw-r--r--desktop/apparmor/usr.bin.onionshare10
-rw-r--r--desktop/apparmor/usr.bin.onionshare-gui28
-rwxr-xr-xdesktop/dev_scripts/onionshare30
-rwxr-xr-xdesktop/dev_scripts/onionshare-gui30
-rw-r--r--desktop/git-hooks/README.md3
-rwxr-xr-xdesktop/git-hooks/pre-push4
-rw-r--r--desktop/onionshare/__init__.py514
-rw-r--r--desktop/onionshare/common.py336
-rw-r--r--desktop/onionshare/mode_settings.py146
-rw-r--r--desktop/onionshare/onion.py775
-rw-r--r--desktop/onionshare/onionshare.py111
-rw-r--r--desktop/onionshare/settings.py199
-rw-r--r--desktop/onionshare/web/__init__.py21
-rw-r--r--desktop/onionshare/web/chat_mode.py159
-rw-r--r--desktop/onionshare/web/receive_mode.py492
-rw-r--r--desktop/onionshare/web/send_base_mode.py323
-rw-r--r--desktop/onionshare/web/share_mode.py412
-rw-r--r--desktop/onionshare/web/web.py426
-rw-r--r--desktop/onionshare/web/website_mode.py124
-rw-r--r--desktop/pyproject.toml21
-rw-r--r--desktop/setup.cfg2
-rw-r--r--desktop/setup.py98
-rw-r--r--desktop/share/static/css/style.css393
-rw-r--r--desktop/share/static/img/ajax.gifbin847 -> 0 bytes
-rw-r--r--desktop/share/static/img/favicon.icobin4286 -> 0 bytes
-rw-r--r--desktop/share/static/img/logo.pngbin3824 -> 0 bytes
-rw-r--r--desktop/share/static/img/logo_large.pngbin9663 -> 0 bytes
-rw-r--r--desktop/share/static/img/web_file.pngbin251 -> 0 bytes
-rw-r--r--desktop/share/static/img/web_folder.pngbin338 -> 0 bytes
-rw-r--r--desktop/share/static/js/chat.js165
-rw-r--r--desktop/share/static/js/jquery-3.5.1.min.js2
-rw-r--r--desktop/share/static/js/receive.js130
-rw-r--r--desktop/share/static/js/send.js75
-rw-r--r--desktop/share/static/js/socket.io.min.js3
-rw-r--r--desktop/share/templates/401.html21
-rw-r--r--desktop/share/templates/403.html21
-rw-r--r--desktop/share/templates/404.html21
-rw-r--r--desktop/share/templates/405.html21
-rw-r--r--desktop/share/templates/chat.html46
-rw-r--r--desktop/share/templates/denied.html15
-rw-r--r--desktop/share/templates/listing.html55
-rw-r--r--desktop/share/templates/receive.html46
-rw-r--r--desktop/share/templates/send.html69
-rw-r--r--desktop/share/templates/thankyou.html27
-rw-r--r--desktop/share/torrc_template8
-rw-r--r--desktop/share/torrc_template-meek_lite_amazon2
-rw-r--r--desktop/share/torrc_template-meek_lite_azure2
-rw-r--r--desktop/share/torrc_template-obfs427
-rw-r--r--desktop/share/version.txt1
-rw-r--r--desktop/share/wordlist.txt7776
-rw-r--r--desktop/src/onionshare/__init__.py1
-rw-r--r--desktop/src/onionshare/__main__.py (renamed from desktop/onionshare_gui/__init__.py)2
-rw-r--r--desktop/src/onionshare/gui_common.py (renamed from desktop/onionshare_gui/gui_common.py)18
-rw-r--r--desktop/src/onionshare/main_window.py (renamed from desktop/onionshare_gui/main_window.py)21
-rw-r--r--desktop/src/onionshare/resources/images/close_tab.png (renamed from desktop/share/images/close_tab.png)bin688 -> 688 bytes
-rw-r--r--desktop/src/onionshare/resources/images/file_delete.png (renamed from desktop/share/images/file_delete.png)bin182 -> 182 bytes
-rw-r--r--desktop/src/onionshare/resources/images/history_completed.png (renamed from desktop/share/images/history_completed.png)bin646 -> 646 bytes
-rw-r--r--desktop/src/onionshare/resources/images/history_completed_none.png (renamed from desktop/share/images/history_completed_none.png)bin437 -> 437 bytes
-rw-r--r--desktop/src/onionshare/resources/images/history_in_progress.png (renamed from desktop/share/images/history_in_progress.png)bin638 -> 638 bytes
-rw-r--r--desktop/src/onionshare/resources/images/history_in_progress_none.png (renamed from desktop/share/images/history_in_progress_none.png)bin412 -> 412 bytes
-rw-r--r--desktop/src/onionshare/resources/images/history_requests.png (renamed from desktop/share/images/history_requests.png)bin738 -> 738 bytes
-rw-r--r--desktop/src/onionshare/resources/images/history_requests_none.png (renamed from desktop/share/images/history_requests_none.png)bin754 -> 754 bytes
-rw-r--r--desktop/src/onionshare/resources/images/info.png (renamed from desktop/share/images/info.png)bin435 -> 435 bytes
-rw-r--r--desktop/src/onionshare/resources/images/logo.png (renamed from desktop/share/images/logo.png)bin3824 -> 3824 bytes
-rw-r--r--desktop/src/onionshare/resources/images/logo_grayscale.png (renamed from desktop/share/images/logo_grayscale.png)bin2258 -> 2258 bytes
-rw-r--r--desktop/src/onionshare/resources/images/logo_text.png (renamed from desktop/share/images/logo_text.png)bin3798 -> 3798 bytes
-rw-r--r--desktop/src/onionshare/resources/images/logo_transparent.png (renamed from desktop/share/images/logo_transparent.png)bin3740 -> 3740 bytes
-rw-r--r--desktop/src/onionshare/resources/images/mode_chat.png (renamed from desktop/share/images/mode_chat.png)bin27306 -> 27306 bytes
-rw-r--r--desktop/src/onionshare/resources/images/mode_chat.svg (renamed from desktop/share/images/mode_chat.svg)0
-rw-r--r--desktop/src/onionshare/resources/images/mode_new_tab_chat.png (renamed from desktop/share/images/mode_new_tab_chat.png)bin5213 -> 5213 bytes
-rw-r--r--desktop/src/onionshare/resources/images/mode_new_tab_receive.png (renamed from desktop/share/images/mode_new_tab_receive.png)bin6470 -> 6470 bytes
-rw-r--r--desktop/src/onionshare/resources/images/mode_new_tab_share.png (renamed from desktop/share/images/mode_new_tab_share.png)bin4485 -> 4485 bytes
-rw-r--r--desktop/src/onionshare/resources/images/mode_new_tab_website.png (renamed from desktop/share/images/mode_new_tab_website.png)bin3860 -> 3860 bytes
-rw-r--r--desktop/src/onionshare/resources/images/mode_receive.png (renamed from desktop/share/images/mode_receive.png)bin37288 -> 37288 bytes
-rw-r--r--desktop/src/onionshare/resources/images/mode_receive.svg (renamed from desktop/share/images/mode_receive.svg)0
-rw-r--r--desktop/src/onionshare/resources/images/mode_share.png (renamed from desktop/share/images/mode_share.png)bin9472 -> 9472 bytes
-rw-r--r--desktop/src/onionshare/resources/images/mode_share.svg (renamed from desktop/share/images/mode_share.svg)0
-rw-r--r--desktop/src/onionshare/resources/images/mode_website.png (renamed from desktop/share/images/mode_website.png)bin8126 -> 8126 bytes
-rw-r--r--desktop/src/onionshare/resources/images/mode_website.svg (renamed from desktop/share/images/mode_website.svg)0
-rw-r--r--desktop/src/onionshare/resources/images/open_folder.png (renamed from desktop/share/images/open_folder.png)bin221 -> 221 bytes
-rw-r--r--desktop/src/onionshare/resources/images/persistent_enabled.png (renamed from desktop/share/images/persistent_enabled.png)bin3398 -> 3398 bytes
-rw-r--r--desktop/src/onionshare/resources/images/receive_icon_toggle.png (renamed from desktop/share/images/receive_icon_toggle.png)bin380 -> 380 bytes
-rw-r--r--desktop/src/onionshare/resources/images/receive_icon_toggle_selected.png (renamed from desktop/share/images/receive_icon_toggle_selected.png)bin468 -> 468 bytes
-rw-r--r--desktop/src/onionshare/resources/images/receive_icon_transparent.png (renamed from desktop/share/images/receive_icon_transparent.png)bin2138 -> 2138 bytes
-rw-r--r--desktop/src/onionshare/resources/images/server_started.png (renamed from desktop/share/images/server_started.png)bin347 -> 347 bytes
-rw-r--r--desktop/src/onionshare/resources/images/server_stopped.png (renamed from desktop/share/images/server_stopped.png)bin342 -> 342 bytes
-rw-r--r--desktop/src/onionshare/resources/images/server_working.png (renamed from desktop/share/images/server_working.png)bin349 -> 349 bytes
-rw-r--r--desktop/src/onionshare/resources/images/settings.png (renamed from desktop/share/images/settings.png)bin1157 -> 1157 bytes
-rw-r--r--desktop/src/onionshare/resources/images/share_icon_toggle.png (renamed from desktop/share/images/share_icon_toggle.png)bin389 -> 389 bytes
-rw-r--r--desktop/src/onionshare/resources/images/share_icon_toggle_selected.png (renamed from desktop/share/images/share_icon_toggle_selected.png)bin473 -> 473 bytes
-rw-r--r--desktop/src/onionshare/resources/images/share_icon_transparent.png (renamed from desktop/share/images/share_icon_transparent.png)bin2096 -> 2096 bytes
-rw-r--r--desktop/src/onionshare/resources/locale/af.json (renamed from desktop/share/locale/af.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/am.json (renamed from desktop/share/locale/am.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/ar.json (renamed from desktop/share/locale/ar.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/bg.json (renamed from desktop/share/locale/bg.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/bn.json (renamed from desktop/share/locale/bn.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/ca.json (renamed from desktop/share/locale/ca.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/cs.json (renamed from desktop/share/locale/cs.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/da.json (renamed from desktop/share/locale/da.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/de.json (renamed from desktop/share/locale/de.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/el.json (renamed from desktop/share/locale/el.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/en.json (renamed from desktop/share/locale/en.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/eo.json (renamed from desktop/share/locale/eo.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/es.json (renamed from desktop/share/locale/es.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/fa.json (renamed from desktop/share/locale/fa.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/fi.json (renamed from desktop/share/locale/fi.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/fr.json (renamed from desktop/share/locale/fr.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/ga.json (renamed from desktop/share/locale/ga.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/gu.json (renamed from desktop/share/locale/gu.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/he.json (renamed from desktop/share/locale/he.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/hi.json (renamed from desktop/share/locale/hi.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/hr.json (renamed from desktop/share/locale/hr.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/hu.json (renamed from desktop/share/locale/hu.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/id.json (renamed from desktop/share/locale/id.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/is.json (renamed from desktop/share/locale/is.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/it.json (renamed from desktop/share/locale/it.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/ja.json (renamed from desktop/share/locale/ja.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/ka.json (renamed from desktop/share/locale/ka.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/km.json (renamed from desktop/share/locale/km.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/ko.json (renamed from desktop/share/locale/ko.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/lg.json (renamed from desktop/share/locale/lg.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/lt.json (renamed from desktop/share/locale/lt.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/mk.json (renamed from desktop/share/locale/mk.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/ms.json (renamed from desktop/share/locale/ms.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/nb_NO.json (renamed from desktop/share/locale/nb_NO.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/nl.json (renamed from desktop/share/locale/nl.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/pa.json (renamed from desktop/share/locale/pa.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/pl.json (renamed from desktop/share/locale/pl.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/pt_BR.json (renamed from desktop/share/locale/pt_BR.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/pt_PT.json (renamed from desktop/share/locale/pt_PT.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/ro.json (renamed from desktop/share/locale/ro.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/ru.json (renamed from desktop/share/locale/ru.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/sl.json (renamed from desktop/share/locale/sl.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/sn.json (renamed from desktop/share/locale/sn.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/sr_Latn.json (renamed from desktop/share/locale/sr_Latn.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/sv.json (renamed from desktop/share/locale/sv.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/sw.json (renamed from desktop/share/locale/sw.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/te.json (renamed from desktop/share/locale/te.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/tr.json (renamed from desktop/share/locale/tr.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/uk.json (renamed from desktop/share/locale/uk.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/wo.json (renamed from desktop/share/locale/wo.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/yo.json (renamed from desktop/share/locale/yo.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/zh_Hans.json (renamed from desktop/share/locale/zh_Hans.json)0
-rw-r--r--desktop/src/onionshare/resources/locale/zh_Hant.json (renamed from desktop/share/locale/zh_Hant.json)0
-rw-r--r--desktop/src/onionshare/settings_dialog.py (renamed from desktop/onionshare_gui/settings_dialog.py)12
-rw-r--r--desktop/src/onionshare/strings.py (renamed from desktop/onionshare/strings.py)3
-rw-r--r--desktop/src/onionshare/tab/__init__.py (renamed from desktop/onionshare_gui/tab/__init__.py)0
-rw-r--r--desktop/src/onionshare/tab/mode/__init__.py (renamed from desktop/onionshare_gui/tab/mode/__init__.py)4
-rw-r--r--desktop/src/onionshare/tab/mode/chat_mode/__init__.py (renamed from desktop/onionshare_gui/tab/mode/chat_mode/__init__.py)11
-rw-r--r--desktop/src/onionshare/tab/mode/file_selection.py (renamed from desktop/onionshare_gui/tab/mode/file_selection.py)8
-rw-r--r--desktop/src/onionshare/tab/mode/history.py (renamed from desktop/onionshare_gui/tab/mode/history.py)17
-rw-r--r--desktop/src/onionshare/tab/mode/mode_settings_widget.py (renamed from desktop/onionshare_gui/tab/mode/mode_settings_widget.py)2
-rw-r--r--desktop/src/onionshare/tab/mode/receive_mode/__init__.py (renamed from desktop/onionshare_gui/tab/mode/receive_mode/__init__.py)16
-rw-r--r--desktop/src/onionshare/tab/mode/share_mode/__init__.py (renamed from desktop/onionshare_gui/tab/mode/share_mode/__init__.py)17
-rw-r--r--desktop/src/onionshare/tab/mode/share_mode/threads.py (renamed from desktop/onionshare_gui/tab/mode/share_mode/threads.py)0
-rw-r--r--desktop/src/onionshare/tab/mode/website_mode/__init__.py (renamed from desktop/onionshare_gui/tab/mode/website_mode/__init__.py)17
-rw-r--r--desktop/src/onionshare/tab/server_status.py (renamed from desktop/onionshare_gui/tab/server_status.py)6
-rw-r--r--desktop/src/onionshare/tab/tab.py (renamed from desktop/onionshare_gui/tab/tab.py)15
-rw-r--r--desktop/src/onionshare/tab_widget.py (renamed from desktop/onionshare_gui/tab_widget.py)9
-rw-r--r--desktop/src/onionshare/threads.py (renamed from desktop/onionshare_gui/threads.py)5
-rw-r--r--desktop/src/onionshare/tor_connection_dialog.py (renamed from desktop/onionshare_gui/tor_connection_dialog.py)9
-rw-r--r--desktop/src/onionshare/update_checker.py (renamed from desktop/onionshare_gui/update_checker.py)6
-rw-r--r--desktop/src/onionshare/widgets.py (renamed from desktop/onionshare_gui/widgets.py)12
-rw-r--r--desktop/stdeb.cfg6
-rw-r--r--desktop/tests/conftest.py13
-rw-r--r--desktop/tests/gui_base_test.py18
-rw-r--r--desktop/tests/pytest.ini4
-rw-r--r--desktop/tests/run.bat13
-rwxr-xr-xdesktop/tests/run.sh29
-rw-r--r--desktop/tests/test_cli.py56
-rw-r--r--desktop/tests/test_cli_common.py275
-rw-r--r--desktop/tests/test_cli_settings.py149
-rw-r--r--desktop/tests/test_cli_strings.py46
-rw-r--r--desktop/tests/test_cli_web.py233
-rw-r--r--desktop/tests/test_gui_receive.py6
-rw-r--r--desktop/tests/test_gui_share.py18
-rw-r--r--desktop/tests/test_gui_tabs.py13
-rw-r--r--desktop/tests/test_gui_website.py2
-rw-r--r--docs/Makefile (renamed from desktop/docs/Makefile)0
-rw-r--r--docs/README.md (renamed from desktop/docs/README.md)0
-rwxr-xr-xdocs/build.sh (renamed from desktop/docs/build.sh)0
-rw-r--r--docs/gettext/.doctrees/advanced.doctree (renamed from desktop/docs/gettext/.doctrees/advanced.doctree)bin29050 -> 29050 bytes
-rw-r--r--docs/gettext/.doctrees/develop.doctree (renamed from desktop/docs/gettext/.doctrees/develop.doctree)bin41566 -> 41566 bytes
-rw-r--r--docs/gettext/.doctrees/environment.pickle (renamed from desktop/docs/gettext/.doctrees/environment.pickle)bin38898 -> 38898 bytes
-rw-r--r--docs/gettext/.doctrees/features.doctree (renamed from desktop/docs/gettext/.doctrees/features.doctree)bin43702 -> 43702 bytes
-rw-r--r--docs/gettext/.doctrees/help.doctree (renamed from desktop/docs/gettext/.doctrees/help.doctree)bin8171 -> 8171 bytes
-rw-r--r--docs/gettext/.doctrees/index.doctree (renamed from desktop/docs/gettext/.doctrees/index.doctree)bin3439 -> 3439 bytes
-rw-r--r--docs/gettext/.doctrees/install.doctree (renamed from desktop/docs/gettext/.doctrees/install.doctree)bin20103 -> 20103 bytes
-rw-r--r--docs/gettext/.doctrees/security.doctree (renamed from desktop/docs/gettext/.doctrees/security.doctree)bin15257 -> 15257 bytes
-rw-r--r--docs/gettext/.doctrees/tor.doctree (renamed from desktop/docs/gettext/.doctrees/tor.doctree)bin28661 -> 28661 bytes
-rw-r--r--docs/gettext/advanced.pot (renamed from desktop/docs/gettext/advanced.pot)0
-rw-r--r--docs/gettext/develop.pot (renamed from desktop/docs/gettext/develop.pot)0
-rw-r--r--docs/gettext/features.pot (renamed from desktop/docs/gettext/features.pot)0
-rw-r--r--docs/gettext/help.pot (renamed from desktop/docs/gettext/help.pot)0
-rw-r--r--docs/gettext/index.pot (renamed from desktop/docs/gettext/index.pot)0
-rw-r--r--docs/gettext/install.pot (renamed from desktop/docs/gettext/install.pot)0
-rw-r--r--docs/gettext/security.pot (renamed from desktop/docs/gettext/security.pot)0
-rw-r--r--docs/gettext/sphinx.pot (renamed from desktop/docs/gettext/sphinx.pot)0
-rw-r--r--docs/gettext/tor.pot (renamed from desktop/docs/gettext/tor.pot)0
-rw-r--r--docs/make.bat (renamed from desktop/docs/make.bat)0
-rw-r--r--docs/poetry.lock (renamed from desktop/docs/poetry.lock)0
-rw-r--r--docs/pyproject.toml (renamed from desktop/docs/pyproject.toml)0
-rw-r--r--docs/source/_static/apple-logo.png (renamed from desktop/docs/source/_static/apple-logo.png)bin6620 -> 6620 bytes
-rw-r--r--docs/source/_static/custom.css (renamed from desktop/docs/source/_static/custom.css)0
-rw-r--r--docs/source/_static/favicon.ico (renamed from desktop/docs/source/_static/favicon.ico)bin4286 -> 4286 bytes
-rw-r--r--docs/source/_static/linux-logo.png (renamed from desktop/docs/source/_static/linux-logo.png)bin10237 -> 10237 bytes
-rw-r--r--docs/source/_static/logo.png (renamed from desktop/docs/source/_static/logo.png)bin18375 -> 18375 bytes
-rw-r--r--docs/source/_static/screenshots/advanced-save-tabs.png (renamed from desktop/docs/source/_static/screenshots/advanced-save-tabs.png)bin18667 -> 18667 bytes
-rw-r--r--docs/source/_static/screenshots/advanced-schedule-start-timer.png (renamed from desktop/docs/source/_static/screenshots/advanced-schedule-start-timer.png)bin47799 -> 47799 bytes
-rw-r--r--docs/source/_static/screenshots/advanced-schedule-stop-timer.png (renamed from desktop/docs/source/_static/screenshots/advanced-schedule-stop-timer.png)bin114019 -> 114019 bytes
-rw-r--r--docs/source/_static/screenshots/chat-sharing.png (renamed from desktop/docs/source/_static/screenshots/chat-sharing.png)bin60339 -> 60339 bytes
-rw-r--r--docs/source/_static/screenshots/chat-torbrowser.png (renamed from desktop/docs/source/_static/screenshots/chat-torbrowser.png)bin48464 -> 48464 bytes
-rw-r--r--docs/source/_static/screenshots/chat.png (renamed from desktop/docs/source/_static/screenshots/chat.png)bin54235 -> 54235 bytes
-rw-r--r--docs/source/_static/screenshots/receive-sharing.png (renamed from desktop/docs/source/_static/screenshots/receive-sharing.png)bin84635 -> 84635 bytes
-rw-r--r--docs/source/_static/screenshots/receive-torbrowser.png (renamed from desktop/docs/source/_static/screenshots/receive-torbrowser.png)bin56883 -> 56883 bytes
-rw-r--r--docs/source/_static/screenshots/receive.png (renamed from desktop/docs/source/_static/screenshots/receive.png)bin84892 -> 84892 bytes
-rw-r--r--docs/source/_static/screenshots/settings.png (renamed from desktop/docs/source/_static/screenshots/settings.png)bin55802 -> 55802 bytes
-rw-r--r--docs/source/_static/screenshots/share-files.png (renamed from desktop/docs/source/_static/screenshots/share-files.png)bin48917 -> 48917 bytes
-rw-r--r--docs/source/_static/screenshots/share-sharing.png (renamed from desktop/docs/source/_static/screenshots/share-sharing.png)bin48161 -> 48161 bytes
-rw-r--r--docs/source/_static/screenshots/share-torbrowser.png (renamed from desktop/docs/source/_static/screenshots/share-torbrowser.png)bin42133 -> 42133 bytes
-rw-r--r--docs/source/_static/screenshots/share.png (renamed from desktop/docs/source/_static/screenshots/share.png)bin43822 -> 43822 bytes
-rw-r--r--docs/source/_static/screenshots/tabs.png (renamed from desktop/docs/source/_static/screenshots/tabs.png)bin61545 -> 61545 bytes
-rw-r--r--docs/source/_static/screenshots/website-files.png (renamed from desktop/docs/source/_static/screenshots/website-files.png)bin66994 -> 66994 bytes
-rw-r--r--docs/source/_static/screenshots/website.png (renamed from desktop/docs/source/_static/screenshots/website.png)bin46330 -> 46330 bytes
-rw-r--r--docs/source/_static/windows-logo.png (renamed from desktop/docs/source/_static/windows-logo.png)bin5187 -> 5187 bytes
-rw-r--r--docs/source/_templates/versions.html (renamed from desktop/docs/source/_templates/versions.html)0
-rw-r--r--docs/source/advanced.rst (renamed from desktop/docs/source/advanced.rst)0
-rw-r--r--docs/source/conf.py (renamed from desktop/docs/source/conf.py)0
-rw-r--r--docs/source/develop.rst (renamed from desktop/docs/source/develop.rst)0
-rw-r--r--docs/source/features.rst (renamed from desktop/docs/source/features.rst)0
-rw-r--r--docs/source/help.rst (renamed from desktop/docs/source/help.rst)0
-rw-r--r--docs/source/index.rst (renamed from desktop/docs/source/index.rst)0
-rw-r--r--docs/source/install.rst (renamed from desktop/docs/source/install.rst)0
-rw-r--r--docs/source/locale/ar/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/ar/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/ar/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/ar/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/ar/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/ar/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/ar/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/ar/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/ar/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/ar/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/ar/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/ar/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/ar/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/ar/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/ar/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/ar/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/ar/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/ar/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/ca/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/ca/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/ca/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/ca/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/ca/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/ca/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/ca/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/ca/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/ca/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/ca/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/ca/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/ca/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/ca/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/ca/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/ca/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/ca/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/ca/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/ca/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/da/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/da/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/da/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/da/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/da/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/da/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/da/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/da/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/da/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/da/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/da/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/da/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/da/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/da/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/da/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/da/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/da/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/da/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/de/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/de/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/de/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/de/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/de/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/de/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/de/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/de/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/de/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/de/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/de/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/de/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/de/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/de/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/de/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/de/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/de/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/de/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/el/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/el/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/el/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/el/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/el/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/el/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/el/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/el/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/el/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/el/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/el/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/el/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/el/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/el/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/el/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/el/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/el/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/el/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/en/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/en/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/en/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/en/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/en/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/en/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/en/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/en/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/en/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/en/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/en/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/en/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/en/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/en/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/en/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/en/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/en/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/en/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/es/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/es/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/es/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/es/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/es/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/es/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/es/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/es/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/es/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/es/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/es/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/es/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/es/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/es/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/es/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/es/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/es/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/es/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/fa/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/fa/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/fa/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/fa/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/fa/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/fa/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/fa/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/fa/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/fa/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/fa/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/fa/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/fa/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/fa/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/fa/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/fa/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/fa/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/fa/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/fa/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/fr/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/fr/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/fr/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/fr/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/fr/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/fr/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/fr/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/fr/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/fr/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/fr/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/fr/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/fr/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/fr/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/fr/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/fr/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/fr/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/fr/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/fr/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/ga/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/ga/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/ga/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/ga/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/ga/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/ga/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/ga/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/ga/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/ga/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/ga/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/ga/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/ga/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/ga/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/ga/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/ga/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/ga/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/ga/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/ga/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/is/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/is/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/is/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/is/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/is/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/is/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/is/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/is/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/is/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/is/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/is/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/is/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/is/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/is/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/is/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/is/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/is/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/is/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/it/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/it/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/it/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/it/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/it/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/it/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/it/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/it/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/it/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/it/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/it/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/it/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/it/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/it/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/it/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/it/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/it/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/it/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/ja/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/ja/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/ja/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/ja/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/ja/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/ja/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/ja/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/ja/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/ja/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/ja/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/ja/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/ja/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/ja/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/ja/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/ja/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/ja/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/ja/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/ja/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/nb_NO/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/nb_NO/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/nb_NO/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/nb_NO/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/nb_NO/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/nb_NO/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/nb_NO/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/nb_NO/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/nb_NO/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/nb_NO/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/nb_NO/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/nb_NO/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/nb_NO/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/nb_NO/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/nb_NO/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/nb_NO/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/nb_NO/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/nb_NO/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/nl/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/nl/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/nl/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/nl/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/nl/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/nl/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/nl/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/nl/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/nl/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/nl/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/nl/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/nl/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/nl/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/nl/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/nl/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/nl/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/nl/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/nl/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/pl/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/pl/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/pl/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/pl/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/pl/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/pl/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/pl/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/pl/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/pl/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/pl/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/pl/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/pl/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/pl/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/pl/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/pl/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/pl/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/pl/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/pl/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/pt_BR/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/pt_BR/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/pt_BR/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/pt_BR/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/pt_BR/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/pt_BR/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/pt_BR/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/pt_BR/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/pt_BR/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/pt_BR/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/pt_BR/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/pt_BR/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/pt_BR/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/pt_BR/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/pt_BR/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/pt_BR/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/pt_BR/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/pt_BR/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/pt_PT/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/pt_PT/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/pt_PT/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/pt_PT/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/pt_PT/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/pt_PT/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/pt_PT/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/pt_PT/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/pt_PT/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/pt_PT/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/pt_PT/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/pt_PT/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/pt_PT/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/pt_PT/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/pt_PT/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/pt_PT/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/pt_PT/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/pt_PT/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/ro/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/ro/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/ro/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/ro/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/ro/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/ro/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/ro/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/ro/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/ro/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/ro/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/ro/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/ro/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/ro/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/ro/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/ro/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/ro/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/ro/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/ro/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/ru/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/ru/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/ru/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/ru/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/ru/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/ru/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/ru/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/ru/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/ru/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/ru/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/ru/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/ru/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/ru/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/ru/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/ru/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/ru/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/ru/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/ru/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/sr@latin/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/sr@latin/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/sr@latin/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/sr@latin/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/sr@latin/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/sr@latin/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/sr@latin/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/sr@latin/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/sr@latin/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/sr@latin/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/sr@latin/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/sr@latin/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/sr@latin/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/sr@latin/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/sr@latin/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/sr@latin/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/sr@latin/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/sr@latin/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/sv/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/sv/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/sv/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/sv/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/sv/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/sv/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/sv/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/sv/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/sv/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/sv/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/sv/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/sv/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/sv/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/sv/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/sv/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/sv/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/sv/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/sv/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/te/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/te/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/te/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/te/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/te/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/te/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/te/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/te/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/te/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/te/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/te/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/te/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/te/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/te/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/te/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/te/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/te/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/te/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/tr/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/tr/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/tr/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/tr/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/tr/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/tr/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/tr/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/tr/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/tr/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/tr/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/tr/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/tr/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/tr/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/tr/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/tr/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/tr/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/tr/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/tr/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/uk/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/uk/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/uk/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/uk/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/uk/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/uk/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/uk/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/uk/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/uk/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/uk/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/uk/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/uk/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/uk/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/uk/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/uk/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/uk/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/uk/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/uk/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/zh_CN/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/zh_CN/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/zh_CN/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/zh_CN/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/zh_CN/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/zh_CN/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/zh_CN/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/zh_CN/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/zh_CN/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/zh_CN/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/zh_CN/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/zh_CN/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/zh_CN/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/zh_CN/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/zh_CN/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/zh_CN/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/zh_CN/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/zh_CN/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/locale/zh_TW/LC_MESSAGES/advanced.po (renamed from desktop/docs/source/locale/zh_TW/LC_MESSAGES/advanced.po)0
-rw-r--r--docs/source/locale/zh_TW/LC_MESSAGES/develop.po (renamed from desktop/docs/source/locale/zh_TW/LC_MESSAGES/develop.po)0
-rw-r--r--docs/source/locale/zh_TW/LC_MESSAGES/features.po (renamed from desktop/docs/source/locale/zh_TW/LC_MESSAGES/features.po)0
-rw-r--r--docs/source/locale/zh_TW/LC_MESSAGES/help.po (renamed from desktop/docs/source/locale/zh_TW/LC_MESSAGES/help.po)0
-rw-r--r--docs/source/locale/zh_TW/LC_MESSAGES/index.po (renamed from desktop/docs/source/locale/zh_TW/LC_MESSAGES/index.po)0
-rw-r--r--docs/source/locale/zh_TW/LC_MESSAGES/install.po (renamed from desktop/docs/source/locale/zh_TW/LC_MESSAGES/install.po)0
-rw-r--r--docs/source/locale/zh_TW/LC_MESSAGES/security.po (renamed from desktop/docs/source/locale/zh_TW/LC_MESSAGES/security.po)0
-rw-r--r--docs/source/locale/zh_TW/LC_MESSAGES/sphinx.po (renamed from desktop/docs/source/locale/zh_TW/LC_MESSAGES/sphinx.po)0
-rw-r--r--docs/source/locale/zh_TW/LC_MESSAGES/tor.po (renamed from desktop/docs/source/locale/zh_TW/LC_MESSAGES/tor.po)0
-rw-r--r--docs/source/security.rst (renamed from desktop/docs/source/security.rst)0
-rw-r--r--docs/source/tor.rst (renamed from desktop/docs/source/tor.rst)0
490 files changed, 226 insertions, 14886 deletions
diff --git a/.gitignore b/.gitignore
index 4f84c508..d75584e3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -55,3 +55,4 @@ venv
# other
.vscode
+onionshare.dist-info \ No newline at end of file
diff --git a/desktop/CHANGELOG.md b/CHANGELOG.md
index 272f8efc..272f8efc 100644
--- a/desktop/CHANGELOG.md
+++ b/CHANGELOG.md
diff --git a/cli/LICENSE b/LICENSE
index 5a3a9871..5a3a9871 100644
--- a/cli/LICENSE
+++ b/LICENSE
diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md
deleted file mode 100644
index cfb959c9..00000000
--- a/cli/CHANGELOG.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# OnionShare CLI Changelog
-
-Coming soon. \ No newline at end of file
diff --git a/cli/README.md b/cli/README.md
index cd3cf80b..3ebfd1bf 100644
--- a/cli/README.md
+++ b/cli/README.md
@@ -21,14 +21,6 @@
@@@@@@@@@
```
-# OnionShare CLI
-
-_This project is under development and not ready for use._
-
-OnionShare is an open source tool that lets you securely and anonymously share files, host websites, and chat with friends using the Tor network.
-
-This is the command line version of OnionShare. [Click here](https://github.com/micahflee/onionshare) for the graphical version.
-
## Installing OnionShare CLI
First, make sure you have `tor` installed. In Linux, install it through your package manager. In macOS, install it with [Homebrew](https://brew.sh): `brew install tor`.
@@ -74,14 +66,8 @@ Before making a release, make update the version in these places:
- `pyproject.toml`
- `onionshare_cli/resources/version.txt`
-And edit `CHANGELOG.md` to include a list of all major changes since the last release.
-
-Create a PGP-signed git tag. For example for OnionShare CLI 0.1.0, the tag must be `v0.1.0`.
-
Build and publish to PyPi:
```
poetry publish --build
-```
-
-Test status: [![CircleCI](https://circleci.com/gh/micahflee/onionshare-cli.svg?style=svg)](https://circleci.com/gh/micahflee/onionshare-cli) \ No newline at end of file
+``` \ No newline at end of file
diff --git a/desktop/.gitignore b/desktop/.gitignore
new file mode 100644
index 00000000..a08e1f35
--- /dev/null
+++ b/desktop/.gitignore
@@ -0,0 +1 @@
+linux
diff --git a/desktop/LICENSE b/desktop/LICENSE
deleted file mode 100644
index 5a3a9871..00000000
--- a/desktop/LICENSE
+++ /dev/null
@@ -1,679 +0,0 @@
-(Note: Third-party licenses can be found under install/licenses/.)
-
-OnionShare
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
- GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
- The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works. By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users. We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors. You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
- To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights. Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received. You must make sure that they, too, receive
-or can get the source code. And you must show them these terms so they
-know their rights.
-
- Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
- For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software. For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
- Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so. This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software. The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable. Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products. If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
- Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary. To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- TERMS AND CONDITIONS
-
- 0. Definitions.
-
- "This License" refers to version 3 of the GNU General Public License.
-
- "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
- "The Program" refers to any copyrightable work licensed under this
-License. Each licensee is addressed as "you". "Licensees" and
-"recipients" may be individuals or organizations.
-
- To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy. The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
- A "covered work" means either the unmodified Program or a work based
-on the Program.
-
- To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy. Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
- To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies. Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
- An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License. If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
- 1. Source Code.
-
- The "source code" for a work means the preferred form of the work
-for making modifications to it. "Object code" means any non-source
-form of a work.
-
- A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
- The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form. A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
- The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities. However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work. For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
- The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
- The Corresponding Source for a work in source code form is that
-same work.
-
- 2. Basic Permissions.
-
- All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met. This License explicitly affirms your unlimited
-permission to run the unmodified Program. The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work. This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
- You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force. You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright. Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
- Conveying under any other circumstances is permitted solely under
-the conditions stated below. Sublicensing is not allowed; section 10
-makes it unnecessary.
-
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
- No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
- When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
- 4. Conveying Verbatim Copies.
-
- You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
- You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
- 5. Conveying Modified Source Versions.
-
- You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
- a) The work must carry prominent notices stating that you modified
- it, and giving a relevant date.
-
- b) The work must carry prominent notices stating that it is
- released under this License and any conditions added under section
- 7. This requirement modifies the requirement in section 4 to
- "keep intact all notices".
-
- c) You must license the entire work, as a whole, under this
- License to anyone who comes into possession of a copy. This
- License will therefore apply, along with any applicable section 7
- additional terms, to the whole of the work, and all its parts,
- regardless of how they are packaged. This License gives no
- permission to license the work in any other way, but it does not
- invalidate such permission if you have separately received it.
-
- d) If the work has interactive user interfaces, each must display
- Appropriate Legal Notices; however, if the Program has interactive
- interfaces that do not display Appropriate Legal Notices, your
- work need not make them do so.
-
- A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit. Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
- 6. Conveying Non-Source Forms.
-
- You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
- a) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by the
- Corresponding Source fixed on a durable physical medium
- customarily used for software interchange.
-
- b) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by a
- written offer, valid for at least three years and valid for as
- long as you offer spare parts or customer support for that product
- model, to give anyone who possesses the object code either (1) a
- copy of the Corresponding Source for all the software in the
- product that is covered by this License, on a durable physical
- medium customarily used for software interchange, for a price no
- more than your reasonable cost of physically performing this
- conveying of source, or (2) access to copy the
- Corresponding Source from a network server at no charge.
-
- c) Convey individual copies of the object code with a copy of the
- written offer to provide the Corresponding Source. This
- alternative is allowed only occasionally and noncommercially, and
- only if you received the object code with such an offer, in accord
- with subsection 6b.
-
- d) Convey the object code by offering access from a designated
- place (gratis or for a charge), and offer equivalent access to the
- Corresponding Source in the same way through the same place at no
- further charge. You need not require recipients to copy the
- Corresponding Source along with the object code. If the place to
- copy the object code is a network server, the Corresponding Source
- may be on a different server (operated by you or a third party)
- that supports equivalent copying facilities, provided you maintain
- clear directions next to the object code saying where to find the
- Corresponding Source. Regardless of what server hosts the
- Corresponding Source, you remain obligated to ensure that it is
- available for as long as needed to satisfy these requirements.
-
- e) Convey the object code using peer-to-peer transmission, provided
- you inform other peers where the object code and Corresponding
- Source of the work are being offered to the general public at no
- charge under subsection 6d.
-
- A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
- A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling. In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage. For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product. A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
- "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source. The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
- If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information. But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
- The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed. Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
- Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
- 7. Additional Terms.
-
- "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law. If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
- When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it. (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.) You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
- Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
- a) Disclaiming warranty or limiting liability differently from the
- terms of sections 15 and 16 of this License; or
-
- b) Requiring preservation of specified reasonable legal notices or
- author attributions in that material or in the Appropriate Legal
- Notices displayed by works containing it; or
-
- c) Prohibiting misrepresentation of the origin of that material, or
- requiring that modified versions of such material be marked in
- reasonable ways as different from the original version; or
-
- d) Limiting the use for publicity purposes of names of licensors or
- authors of the material; or
-
- e) Declining to grant rights under trademark law for use of some
- trade names, trademarks, or service marks; or
-
- f) Requiring indemnification of licensors and authors of that
- material by anyone who conveys the material (or modified versions of
- it) with contractual assumptions of liability to the recipient, for
- any liability that these contractual assumptions directly impose on
- those licensors and authors.
-
- All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10. If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term. If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
- If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
- Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
- 8. Termination.
-
- You may not propagate or modify a covered work except as expressly
-provided under this License. Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
- However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
- Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
- Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License. If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
- 9. Acceptance Not Required for Having Copies.
-
- You are not required to accept this License in order to receive or
-run a copy of the Program. Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance. However,
-nothing other than this License grants you permission to propagate or
-modify any covered work. These actions infringe copyright if you do
-not accept this License. Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
- 10. Automatic Licensing of Downstream Recipients.
-
- Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License. You are not responsible
-for enforcing compliance by third parties with this License.
-
- An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations. If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
- You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License. For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
- 11. Patents.
-
- A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based. The
-work thus licensed is called the contributor's "contributor version".
-
- A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version. For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
- Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
- In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement). To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
- If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients. "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
- If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
- A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License. You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
- Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
- 12. No Surrender of Others' Freedom.
-
- If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all. For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
- 13. Use with the GNU Affero General Public License.
-
- Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
-combined work, and to convey the resulting work. The terms of this
-License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
-
- 14. Revised Versions of this License.
-
- The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
- Each version is given a distinguishing version number. If the
-Program specifies that a certain numbered version of the GNU General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation. If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
- If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
- Later license versions may give you additional or different
-permissions. However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
- 15. Disclaimer of Warranty.
-
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. Limitation of Liability.
-
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
- 17. Interpretation of Sections 15 and 16.
-
- If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-state the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-Also add information on how to contact you by electronic and paper mail.
-
- If the program does terminal interaction, make it output a short
-notice like this when it starts in an interactive mode:
-
- <program> Copyright (C) <year> <name of author>
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, your program's commands
-might be different; for a GUI interface, you would use an "about box".
-
- You should also get your employer (if you work as a programmer) or school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU GPL, see
-<http://www.gnu.org/licenses/>.
-
- The GNU General Public License does not permit incorporating your program
-into proprietary programs. If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications with
-the library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License. But first, please read
-<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/desktop/MANIFEST.in b/desktop/MANIFEST.in
deleted file mode 100644
index 7dd8a881..00000000
--- a/desktop/MANIFEST.in
+++ /dev/null
@@ -1,13 +0,0 @@
-include LICENSE
-include README.md
-include BUILD.md
-include share/*
-include share/images/*
-include share/locale/*
-include share/templates/*
-include share/static/*
-include install/org.onionshare.OnionShare.desktop
-include install/org.onionshare.OnionShare.appdata.xml
-include install/org.onionshare.OnionShare.svg
-include install/scripts/onionshare-nautilus.py
-include tests/*.py
diff --git a/desktop/README.md b/desktop/README.md
new file mode 100644
index 00000000..bba11d41
--- /dev/null
+++ b/desktop/README.md
@@ -0,0 +1,84 @@
+# OnionShare Desktop
+
+## Building OnionShare
+
+### Install platform-specific dependencies
+
+#### Linux
+
+If you're using Linux, install `tor` and `obfs4proxy` from either the [official Debian repository](https://support.torproject.org/apt/tor-deb-repo/), or from your package manager.
+
+Then download Qt 5.14.0 for Linux:
+
+```sh
+cd ~/Downloads
+wget https://download.qt.io/official_releases/qt/5.14/5.14.0/qt-opensource-linux-x64-5.14.0.run
+```
+
+If you'd like to check to make sure you have the exact installer I have, here is the sha256 checksum:
+
+```sh
+sha256sum qt-opensource-linux-x64-5.14.0.run
+4379f147c6793ec7e7349d2f9ee7d53b8ab6ea4e4edf8ee0574a75586a6a6e0e qt-opensource-linux-x64-5.14.0.run
+```
+
+Then make it executable and install Qt:
+
+```sh
+chmod +x qt-opensource-linux-x64-5.14.0.run
+./qt-opensource-linux-x64-5.14.0.run
+```
+
+You have to create a Qt account and login to install Qt. Choose the default installation folder in your home directory. The only component you need is `Qt 5.14.0` > `Desktop gcc 64-bit`.
+
+#### macOS
+
+#### Windows
+
+### Prepare the code
+
+Get the source code and change to the `desktop` folder:
+
+```sh
+git clone https://github.com/micahflee/onionshare.git
+cd onionshare/desktop
+```
+
+OnionShare uses [Briefcase](https://briefcase.readthedocs.io/en/latest/).
+
+Install Briefcase dependencies by following [these instructions](https://docs.beeware.org/en/latest/tutorial/tutorial-0.html#install-dependencies).
+
+Now create and/or activate a virtual environment.
+
+```
+python3 -m venv venv
+. venv/bin/activate
+```
+
+While your virtual environment is active, install briefcase from pip.
+
+```
+pip install briefcase
+```
+
+Run OnionShare from the source tree like this:
+
+```
+briefcase dev
+```
+
+## Running tests
+
+Install these packages inside your virtual environment:
+
+```sh
+pip install pytest pytest-briefcase pytest-faulthandler pytest-qt
+```
+
+Then run the tests:
+
+```sh
+./tests/run.sh
+```
+
+## Making a release \ No newline at end of file
diff --git a/desktop/apparmor/abstractions/onionshare b/desktop/apparmor/abstractions/onionshare
deleted file mode 100644
index fa94e68d..00000000
--- a/desktop/apparmor/abstractions/onionshare
+++ /dev/null
@@ -1,29 +0,0 @@
-#include <abstractions/base>
-#include <abstractions/nameservice>
-#include <abstractions/private-files-strict>
-#include <abstractions/python>
-
-# Why are these not in abstractions/python?
-/usr/lib{,32,64}/python{2,3}.[0-9]/__pycache__/ rw,
-/usr/lib{,32,64}/python{2,3}.[0-9]/__pycache__/* rw,
-/usr/lib{,32,64}/python{2,3}.[0-9]/**/__pycache__/ rw,
-/usr/lib{,32,64}/python{2,3}.[0-9]/**/__pycache__/* rw,
-/usr/lib{,32,64}/python{2,3}/**/__pycache__/ rw,
-/usr/lib{,32,64}/python{2,3}/**/__pycache__/* rw,
-
-/bin/dash rix,
-/proc/*/mounts r,
-/proc/*/fd/ r,
-/sbin/ldconfig rix,
-/sbin/ldconfig.real rix,
-/bin/uname rix,
-/etc/mime.types r,
-/usr/share/onionshare/ r,
-/usr/share/onionshare/** r,
-/tmp/ rw,
-/tmp/** rw,
-
-# Allow read on almost anything in @{HOME}. Lenient, but
-# private-files-strict is in effect.
-owner @{HOME}/ r,
-owner @{HOME}/[^.]** r,
diff --git a/desktop/apparmor/local/usr.bin.onionshare b/desktop/apparmor/local/usr.bin.onionshare
deleted file mode 100644
index 6453771d..00000000
--- a/desktop/apparmor/local/usr.bin.onionshare
+++ /dev/null
@@ -1,2 +0,0 @@
-# Site-specific additions and overrides for usr.bin.onionshare.
-# For more details, please see /etc/apparmor.d/local/README.
diff --git a/desktop/apparmor/local/usr.bin.onionshare-gui b/desktop/apparmor/local/usr.bin.onionshare-gui
deleted file mode 100644
index fa5ba3f0..00000000
--- a/desktop/apparmor/local/usr.bin.onionshare-gui
+++ /dev/null
@@ -1,2 +0,0 @@
-# Site-specific additions and overrides for usr.bin.onionshare-gui.
-# For more details, please see /etc/apparmor.d/local/README.
diff --git a/desktop/apparmor/usr.bin.onionshare b/desktop/apparmor/usr.bin.onionshare
deleted file mode 100644
index 1c14ccc1..00000000
--- a/desktop/apparmor/usr.bin.onionshare
+++ /dev/null
@@ -1,10 +0,0 @@
-#include <tunables/global>
-
-/usr/bin/onionshare {
- #include <abstractions/onionshare>
-
- /usr/bin/ r,
- /usr/bin/onionshare r,
-
- #include <local/usr.bin.onionshare>
-}
diff --git a/desktop/apparmor/usr.bin.onionshare-gui b/desktop/apparmor/usr.bin.onionshare-gui
deleted file mode 100644
index 746dadc1..00000000
--- a/desktop/apparmor/usr.bin.onionshare-gui
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <tunables/global>
-
-/usr/bin/onionshare-gui {
- #include <abstractions/gnome>
- #include <abstractions/ibus>
- #include <abstractions/onionshare>
-
- /usr/bin/ r,
- /usr/bin/onionshare-gui r,
- /proc/*/cmdline r,
-
- # The freedesktop.org abstraction doesn't allow `k`
- /usr/share/icons/*/index.theme k,
-
- # Why do these still emit audit journal entries?
- owner @{HOME}/.config/ibus/bus/ rw,
- owner @{HOME}/.config/ibus/bus/* rw,
- deny @{HOME}/.ICEauthority r,
-
- deny /etc/machine-id r,
- deny /var/lib/dbus/machine-id.* rw,
-
- # Accessibility support
- owner /{,var/}run/user/*/at-spi2-*/ rw,
- owner /{,var/}run/user/*/at-spi2-*/** rw,
-
- #include <local/usr.bin.onionshare-gui>
-}
diff --git a/desktop/dev_scripts/onionshare b/desktop/dev_scripts/onionshare
deleted file mode 100755
index 33e59203..00000000
--- a/desktop/dev_scripts/onionshare
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
-OnionShare | https://onionshare.org/
-
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-
-# Load onionshare module and resources from the source code tree
-import os, sys
-
-sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-sys.onionshare_dev_mode = True
-
-import onionshare
-
-onionshare.main()
diff --git a/desktop/dev_scripts/onionshare-gui b/desktop/dev_scripts/onionshare-gui
deleted file mode 100755
index 6585be02..00000000
--- a/desktop/dev_scripts/onionshare-gui
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
-OnionShare | https://onionshare.org/
-
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-
-# Load onionshare module and resources from the source code tree
-import os, sys
-
-sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-sys.onionshare_dev_mode = True
-
-import onionshare_gui
-
-onionshare_gui.main()
diff --git a/desktop/git-hooks/README.md b/desktop/git-hooks/README.md
deleted file mode 100644
index 0d8f80c9..00000000
--- a/desktop/git-hooks/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-To use these hooks, cp any of them to onionshare's `.git/hooks`.
-
-* `pre-push` runs the test suite, and will push if the tests pass.
diff --git a/desktop/git-hooks/pre-push b/desktop/git-hooks/pre-push
deleted file mode 100755
index 1d8e57f8..00000000
--- a/desktop/git-hooks/pre-push
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/bash
-
-# Pre-push hook. If you want to test with a different version of firefox, put
-# the path in the CFX_FIREFOX environment variable.
diff --git a/desktop/onionshare/__init__.py b/desktop/onionshare/__init__.py
deleted file mode 100644
index c1367b1e..00000000
--- a/desktop/onionshare/__init__.py
+++ /dev/null
@@ -1,514 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-OnionShare | https://onionshare.org/
-
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-
-import os, sys, time, argparse, threading
-from datetime import datetime
-from datetime import timedelta
-
-from .common import Common
-from .web import Web
-from .onion import *
-from .onionshare import OnionShare
-from .mode_settings import ModeSettings
-
-
-def build_url(mode_settings, app, web):
- # Build the URL
- if mode_settings.get("general", "public"):
- return f"http://{app.onion_host}"
- else:
- return f"http://onionshare:{web.password}@{app.onion_host}"
-
-
-def main(cwd=None):
- """
- The main() function implements all of the logic that the command-line version of
- onionshare uses.
- """
- common = Common()
-
- # Display OnionShare banner
- print(f"OnionShare {common.version} | https://onionshare.org/")
- reset = "\033[0m"
- purple = "\33[95m"
- print(purple)
- print(" @@@@@@@@@ ")
- print(" @@@@@@@@@@@@@@@@@@@ ")
- print(" @@@@@@@@@@@@@@@@@@@@@@@@@ ")
- print(" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ")
- print(
- " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ___ _ "
- )
- print(
- " @@@@@@ @@@@@@@@@@@@@ / _ \ (_) "
- )
- print(
- " @@@@ @ @@@@@@@@@@@ | | | |_ __ _ ___ _ __ "
- )
- print(
- " @@@@@@@@ @@@@@@@@@@ | | | | '_ \| |/ _ \| '_ \ "
- )
- print(
- " @@@@@@@@@@@@ @@@@@@@@@@ \ \_/ / | | | | (_) | | | | "
- )
- print(
- " @@@@@@@@@@@@@@@@ @@@@@@@@@ \___/|_| |_|_|\___/|_| |_| "
- )
- print(
- " @@@@@@@@@ @@@@@@@@@@@@@@@@ _____ _ "
- )
- print(
- " @@@@@@@@@@ @@@@@@@@@@@@ / ___| | "
- )
- print(
- " @@@@@@@@@@ @@@@@@@@ \ `--.| |__ __ _ _ __ ___ "
- )
- print(
- " @@@@@@@@@@@ @ @@@@ `--. \ '_ \ / _` | '__/ _ \\"
- )
- print(
- " @@@@@@@@@@@@@ @@@@@@ /\__/ / | | | (_| | | | __/"
- )
- print(
- " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ \____/|_| |_|\__,_|_| \___|"
- )
- print(" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ")
- print(" @@@@@@@@@@@@@@@@@@@@@@@@@ ")
- print(" @@@@@@@@@@@@@@@@@@@ ")
- print(" @@@@@@@@@ ")
- print(reset)
-
- # OnionShare CLI in OSX needs to change current working directory (#132)
- if common.platform == "Darwin":
- if cwd:
- os.chdir(cwd)
-
- # Parse arguments
- parser = argparse.ArgumentParser(
- formatter_class=lambda prog: argparse.HelpFormatter(prog, max_help_position=28)
- )
- # Select modes
- parser.add_argument(
- "--receive", action="store_true", dest="receive", help="Receive files"
- )
- parser.add_argument(
- "--website", action="store_true", dest="website", help="Publish website"
- )
- parser.add_argument(
- "--chat", action="store_true", dest="chat", help="Start chat server"
- )
- # Tor connection-related args
- parser.add_argument(
- "--local-only",
- action="store_true",
- dest="local_only",
- default=False,
- help="Don't use Tor (only for development)",
- )
- parser.add_argument(
- "--connect-timeout",
- metavar="SECONDS",
- dest="connect_timeout",
- default=120,
- help="Give up connecting to Tor after a given amount of seconds (default: 120)",
- )
- parser.add_argument(
- "--config",
- metavar="FILENAME",
- default=None,
- help="Filename of custom global settings",
- )
- # Persistent file
- parser.add_argument(
- "--persistent",
- metavar="FILENAME",
- default=None,
- help="Filename of persistent session",
- )
- # General args
- parser.add_argument(
- "--public",
- action="store_true",
- dest="public",
- default=False,
- help="Don't use a password",
- )
- parser.add_argument(
- "--auto-start-timer",
- metavar="SECONDS",
- dest="autostart_timer",
- default=0,
- help="Start onion service at scheduled time (N seconds from now)",
- )
- parser.add_argument(
- "--auto-stop-timer",
- metavar="SECONDS",
- dest="autostop_timer",
- default=0,
- help="Stop onion service at schedule time (N seconds from now)",
- )
- parser.add_argument(
- "--legacy",
- action="store_true",
- dest="legacy",
- default=False,
- help="Use legacy address (v2 onion service, not recommended)",
- )
- parser.add_argument(
- "--client-auth",
- action="store_true",
- dest="client_auth",
- default=False,
- help="Use client authorization (requires --legacy)",
- )
- # Share args
- parser.add_argument(
- "--autostop-sharing",
- action="store_true",
- dest="autostop_sharing",
- default=True,
- help="Share files: Stop sharing after files have been sent",
- )
- # Receive args
- parser.add_argument(
- "--data-dir",
- metavar="data_dir",
- default=None,
- help="Receive files: Save files received to this directory",
- )
- # Website args
- parser.add_argument(
- "--disable_csp",
- action="store_true",
- dest="disable_csp",
- default=False,
- help="Publish website: Disable Content Security Policy header (allows your website to use third-party resources)",
- )
- # Other
- parser.add_argument(
- "-v",
- "--verbose",
- action="store_true",
- dest="verbose",
- help="Log OnionShare errors to stdout, and web errors to disk",
- )
- parser.add_argument(
- "filename",
- metavar="filename",
- nargs="*",
- help="List of files or folders to share",
- )
- args = parser.parse_args()
-
- filenames = args.filename
- for i in range(len(filenames)):
- filenames[i] = os.path.abspath(filenames[i])
-
- receive = bool(args.receive)
- website = bool(args.website)
- chat = bool(args.chat)
- local_only = bool(args.local_only)
- connect_timeout = int(args.connect_timeout)
- config_filename = args.config
- persistent_filename = args.persistent
- public = bool(args.public)
- autostart_timer = int(args.autostart_timer)
- autostop_timer = int(args.autostop_timer)
- legacy = bool(args.legacy)
- client_auth = bool(args.client_auth)
- autostop_sharing = bool(args.autostop_sharing)
- data_dir = args.data_dir
- disable_csp = bool(args.disable_csp)
- verbose = bool(args.verbose)
-
- if receive:
- mode = "receive"
- elif website:
- mode = "website"
- elif chat:
- mode = "chat"
- else:
- mode = "share"
-
- # Verbose mode?
- common.verbose = verbose
-
- # client_auth can only be set if legacy is also set
- if client_auth and not legacy:
- print(
- "Client authentication (--client-auth) is only supported with with legacy onion services (--legacy)"
- )
- sys.exit()
-
- # Re-load settings, if a custom config was passed in
- if config_filename:
- common.load_settings(config_filename)
- else:
- common.load_settings()
-
- # Mode settings
- if persistent_filename:
- mode_settings = ModeSettings(common, persistent_filename)
- mode_settings.set("persistent", "enabled", True)
- else:
- mode_settings = ModeSettings(common)
-
- if mode_settings.just_created:
- # This means the mode settings were just created, not loaded from disk
- mode_settings.set("general", "public", public)
- mode_settings.set("general", "autostart_timer", autostart_timer)
- mode_settings.set("general", "autostop_timer", autostop_timer)
- mode_settings.set("general", "legacy", legacy)
- mode_settings.set("general", "client_auth", client_auth)
- if mode == "share":
- mode_settings.set("share", "autostop_sharing", autostop_sharing)
- if mode == "receive":
- if data_dir:
- mode_settings.set("receive", "data_dir", data_dir)
- if mode == "website":
- mode_settings.set("website", "disable_csp", disable_csp)
- else:
- # See what the persistent mode was
- mode = mode_settings.get("persistent", "mode")
-
- # In share and website mode, you must supply a list of filenames
- if mode == "share" or mode == "website":
- # Unless you passed in a persistent filename, in which case get the filenames from
- # the mode settings
- if persistent_filename and not mode_settings.just_created:
- filenames = mode_settings.get(mode, "filenames")
-
- else:
- # Make sure filenames given if not using receiver mode
- if len(filenames) == 0:
- if persistent_filename:
- mode_settings.delete()
-
- parser.print_help()
- sys.exit()
-
- # Validate filenames
- valid = True
- for filename in filenames:
- if not os.path.isfile(filename) and not os.path.isdir(filename):
- print(f"{filename} is not a valid file.")
- valid = False
- if not os.access(filename, os.R_OK):
- print(f"{filename} is not a readable file.")
- valid = False
- if not valid:
- sys.exit()
-
- # Create the Web object
- web = Web(common, False, mode_settings, mode)
-
- # Start the Onion object
- onion = Onion(common, use_tmp_dir=True)
- try:
- onion.connect(
- custom_settings=False,
- config=config_filename,
- connect_timeout=connect_timeout,
- local_only=local_only,
- )
- except KeyboardInterrupt:
- print("")
- sys.exit()
- except Exception as e:
- sys.exit(e.args[0])
-
- # Start the onionshare app
- try:
- common.settings.load()
- if not mode_settings.get("general", "public"):
- web.generate_password(mode_settings.get("onion", "password"))
- else:
- web.password = None
- app = OnionShare(common, onion, local_only, autostop_timer)
- app.choose_port()
-
- # Delay the startup if a startup timer was set
- if autostart_timer > 0:
- # Can't set a schedule that is later than the auto-stop timer
- if autostop_timer > 0 and autostop_timer < autostart_timer:
- print(
- "The auto-stop time can't be the same or earlier than the auto-start time. Please update it to start sharing."
- )
- sys.exit()
-
- app.start_onion_service(mode_settings, False, True)
- url = build_url(mode_settings, app, web)
- schedule = datetime.now() + timedelta(seconds=autostart_timer)
- if mode == "receive":
- print(
- f"Files sent to you appear in this folder: {mode_settings.get('receive', 'data_dir')}"
- )
- print("")
- print(
- "Warning: Receive mode lets people upload files to your computer. Some files can potentially take control of your computer if you open them. Only open things from people you trust, or if you know what you are doing."
- )
- print("")
- if mode_settings.get("general", "client_auth"):
- print(
- f"Give this address and HidServAuth lineto your sender, and tell them it won't be accessible until: {schedule.strftime('%I:%M:%S%p, %b %d, %y')}"
- )
- print(app.auth_string)
- else:
- print(
- f"Give this address to your sender, and tell them it won't be accessible until: {schedule.strftime('%I:%M:%S%p, %b %d, %y')}"
- )
- else:
- if mode_settings.get("general", "client_auth"):
- print(
- f"Give this address and HidServAuth line to your recipient, and tell them it won't be accessible until: {schedule.strftime('%I:%M:%S%p, %b %d, %y')}"
- )
- print(app.auth_string)
- else:
- print(
- f"Give this address to your recipient, and tell them it won't be accessible until: {schedule.strftime('%I:%M:%S%p, %b %d, %y')}"
- )
- print(url)
- print("")
- print("Waiting for the scheduled time before starting...")
- app.onion.cleanup(False)
- time.sleep(autostart_timer)
- app.start_onion_service(mode_settings)
- else:
- app.start_onion_service(mode_settings)
- except KeyboardInterrupt:
- print("")
- sys.exit()
- except (TorTooOld, TorErrorProtocolError) as e:
- print("")
- print(e.args[0])
- sys.exit()
-
- if mode == "website":
- # Prepare files to share
- try:
- web.website_mode.set_file_info(filenames)
- except OSError as e:
- print(e.strerror)
- sys.exit(1)
-
- if mode == "share":
- # Prepare files to share
- print("Compressing files.")
- try:
- web.share_mode.set_file_info(filenames)
- app.cleanup_filenames += web.share_mode.cleanup_filenames
- except OSError as e:
- print(e.strerror)
- sys.exit(1)
-
- # Warn about sending large files over Tor
- if web.share_mode.download_filesize >= 157286400: # 150mb
- print("")
- print("Warning: Sending a large share could take hours")
- print("")
-
- # Start OnionShare http service in new thread
- t = threading.Thread(target=web.start, args=(app.port,))
- t.daemon = True
- t.start()
-
- try: # Trap Ctrl-C
- # Wait for web.generate_password() to finish running
- time.sleep(0.2)
-
- # start auto-stop timer thread
- if app.autostop_timer > 0:
- app.autostop_timer_thread.start()
-
- # Save the web password if we are using a persistent private key
- if mode_settings.get("persistent", "enabled"):
- if not mode_settings.get("onion", "password"):
- mode_settings.set("onion", "password", web.password)
- # mode_settings.save()
-
- # Build the URL
- url = build_url(mode_settings, app, web)
-
- print("")
- if autostart_timer > 0:
- print("Server started")
- else:
- if mode == "receive":
- print(
- f"Files sent to you appear in this folder: {mode_settings.get('receive', 'data_dir')}"
- )
- print("")
- print(
- "Warning: Receive mode lets people upload files to your computer. Some files can potentially take control of your computer if you open them. Only open things from people you trust, or if you know what you are doing."
- )
- print("")
-
- if mode_settings.get("general", "client_auth"):
- print("Give this address and HidServAuth to the sender:")
- print(url)
- print(app.auth_string)
- else:
- print("Give this address to the sender:")
- print(url)
- else:
- if mode_settings.get("general", "client_auth"):
- print("Give this address and HidServAuth line to the recipient:")
- print(url)
- print(app.auth_string)
- else:
- print("Give this address to the recipient:")
- print(url)
- print("")
- print("Press Ctrl+C to stop the server")
-
- # Wait for app to close
- while t.is_alive():
- if app.autostop_timer > 0:
- # if the auto-stop timer was set and has run out, stop the server
- if not app.autostop_timer_thread.is_alive():
- if mode == "share" or (mode == "website"):
- # If there were no attempts to download the share, or all downloads are done, we can stop
- if web.share_mode.cur_history_id == 0 or web.done:
- print("Stopped because auto-stop timer ran out")
- web.stop(app.port)
- break
- if mode == "receive":
- if (
- web.receive_mode.cur_history_id == 0
- or not web.receive_mode.uploads_in_progress
- ):
- print("Stopped because auto-stop timer ran out")
- web.stop(app.port)
- break
- else:
- web.receive_mode.can_upload = False
- # Allow KeyboardInterrupt exception to be handled with threads
- # https://stackoverflow.com/questions/3788208/python-threading-ignores-keyboardinterrupt-exception
- time.sleep(0.2)
- except KeyboardInterrupt:
- web.stop(app.port)
- finally:
- # Shutdown
- app.cleanup()
- onion.cleanup()
-
-
-if __name__ == "__main__":
- main()
diff --git a/desktop/onionshare/common.py b/desktop/onionshare/common.py
deleted file mode 100644
index 27104669..00000000
--- a/desktop/onionshare/common.py
+++ /dev/null
@@ -1,336 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-OnionShare | https://onionshare.org/
-
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-import base64
-import hashlib
-import inspect
-import os
-import platform
-import random
-import socket
-import sys
-import tempfile
-import threading
-import time
-import shutil
-
-from .settings import Settings
-
-
-class Common:
- """
- The Common object is shared amongst all parts of OnionShare.
- """
-
- def __init__(self, verbose=False):
- self.verbose = verbose
-
- # The platform OnionShare is running on
- self.platform = platform.system()
- if self.platform.endswith("BSD") or self.platform == "DragonFly":
- self.platform = "BSD"
-
- # The current version of OnionShare
- with open(self.get_resource_path("version.txt")) as f:
- self.version = f.read().strip()
-
- def load_settings(self, config=None):
- """
- Loading settings, optionally from a custom config json file.
- """
- self.settings = Settings(self, config)
- self.settings.load()
-
- def log(self, module, func, msg=None):
- """
- If verbose mode is on, log error messages to stdout
- """
- if self.verbose:
- timestamp = time.strftime("%b %d %Y %X")
-
- final_msg = f"[{timestamp}] {module}.{func}"
- if msg:
- final_msg = f"{final_msg}: {msg}"
- print(final_msg)
-
- def get_resource_path(self, filename):
- """
- Returns the absolute path of a resource, regardless of whether OnionShare is installed
- systemwide, and whether regardless of platform
- """
- # On Windows, and in Windows dev mode, switch slashes in incoming filename to backslackes
- if self.platform == "Windows":
- filename = filename.replace("/", "\\")
-
- if getattr(sys, "onionshare_dev_mode", False):
- # Look for resources directory relative to python file
- prefix = os.path.join(
- os.path.dirname(
- os.path.dirname(
- os.path.abspath(inspect.getfile(inspect.currentframe()))
- )
- ),
- "share",
- )
- if not os.path.exists(prefix):
- # While running tests during stdeb bdist_deb, look 3 directories up for the share folder
- prefix = os.path.join(
- os.path.dirname(
- os.path.dirname(os.path.dirname(os.path.dirname(prefix)))
- ),
- "share",
- )
-
- elif self.platform == "BSD" or self.platform == "Linux":
- # Look for resources relative to the binary, so if the binary is /usr/bin/onionshare-gui and
- # the resource dir is /usr/share/onionshare, then the resource dir relative to the binary dir
- # is ../share/onionshare
- prefix = os.path.join(
- os.path.dirname(os.path.dirname(sys.argv[0])), "share/onionshare"
- )
-
- elif getattr(sys, "frozen", False):
- # Check if app is "frozen"
- # https://pythonhosted.org/PyInstaller/#run-time-information
- if self.platform == "Darwin":
- prefix = os.path.join(sys._MEIPASS, "share")
- elif self.platform == "Windows":
- prefix = os.path.join(os.path.dirname(sys.executable), "share")
-
- return os.path.join(prefix, filename)
-
- def get_tor_paths(self):
- if self.platform == "Linux":
- tor_path = shutil.which("tor")
- obfs4proxy_file_path = shutil.which("obfs4proxy")
- prefix = os.path.dirname(os.path.dirname(tor_path))
- tor_geo_ip_file_path = os.path.join(prefix, "share/tor/geoip")
- tor_geo_ipv6_file_path = os.path.join(prefix, "share/tor/geoip6")
- elif self.platform == "Windows":
- base_path = os.path.join(
- os.path.dirname(os.path.dirname(self.get_resource_path(""))), "tor"
- )
- tor_path = os.path.join(os.path.join(base_path, "Tor"), "tor.exe")
- obfs4proxy_file_path = os.path.join(
- os.path.join(base_path, "Tor"), "obfs4proxy.exe"
- )
- tor_geo_ip_file_path = os.path.join(
- os.path.join(os.path.join(base_path, "Data"), "Tor"), "geoip"
- )
- tor_geo_ipv6_file_path = os.path.join(
- os.path.join(os.path.join(base_path, "Data"), "Tor"), "geoip6"
- )
- elif self.platform == "Darwin":
- base_path = os.path.dirname(
- os.path.dirname(os.path.dirname(self.get_resource_path("")))
- )
- tor_path = os.path.join(base_path, "Resources", "Tor", "tor")
- tor_geo_ip_file_path = os.path.join(base_path, "Resources", "Tor", "geoip")
- tor_geo_ipv6_file_path = os.path.join(
- base_path, "Resources", "Tor", "geoip6"
- )
- obfs4proxy_file_path = os.path.join(
- base_path, "Resources", "Tor", "obfs4proxy"
- )
- elif self.platform == "BSD":
- tor_path = "/usr/local/bin/tor"
- tor_geo_ip_file_path = "/usr/local/share/tor/geoip"
- tor_geo_ipv6_file_path = "/usr/local/share/tor/geoip6"
- obfs4proxy_file_path = "/usr/local/bin/obfs4proxy"
-
- return (
- tor_path,
- tor_geo_ip_file_path,
- tor_geo_ipv6_file_path,
- obfs4proxy_file_path,
- )
-
- def build_data_dir(self):
- """
- Returns the path of the OnionShare data directory.
- """
- if self.platform == "Windows":
- try:
- appdata = os.environ["APPDATA"]
- onionshare_data_dir = f"{appdata}\\OnionShare"
- except:
- # If for some reason we don't have the 'APPDATA' environment variable
- # (like running tests in Linux while pretending to be in Windows)
- onionshare_data_dir = os.path.expanduser("~/.config/onionshare")
- elif self.platform == "Darwin":
- onionshare_data_dir = os.path.expanduser(
- "~/Library/Application Support/OnionShare"
- )
- else:
- onionshare_data_dir = os.path.expanduser("~/.config/onionshare")
-
- # Modify the data dir if running tests
- if getattr(sys, "onionshare_test_mode", False):
- onionshare_data_dir += "-testdata"
-
- os.makedirs(onionshare_data_dir, 0o700, True)
- return onionshare_data_dir
-
- def build_tmp_dir(self):
- """
- Returns path to a folder that can hold temporary files
- """
- tmp_dir = os.path.join(self.build_data_dir(), "tmp")
- os.makedirs(tmp_dir, 0o700, True)
- return tmp_dir
-
- def build_persistent_dir(self):
- """
- Returns the path to the folder that holds persistent files
- """
- persistent_dir = os.path.join(self.build_data_dir(), "persistent")
- os.makedirs(persistent_dir, 0o700, True)
- return persistent_dir
-
- def build_tor_dir(self):
- """
- Returns path to the tor data directory
- """
- tor_dir = os.path.join(self.build_data_dir(), "tor_data")
- os.makedirs(tor_dir, 0o700, True)
- return tor_dir
-
- def build_password(self, word_count=2):
- """
- Returns a random string made of words from the wordlist, such as "deter-trig".
- """
- with open(self.get_resource_path("wordlist.txt")) as f:
- wordlist = f.read().split()
-
- r = random.SystemRandom()
- return "-".join(r.choice(wordlist) for _ in range(word_count))
-
- def build_username(self, word_count=2):
- """
- Returns a random string made of words from the wordlist, such as "deter-trig".
- """
- with open(self.get_resource_path("wordlist.txt")) as f:
- wordlist = f.read().split()
-
- r = random.SystemRandom()
- return "-".join(r.choice(wordlist) for _ in range(word_count))
-
- @staticmethod
- def random_string(num_bytes, output_len=None):
- """
- Returns a random string with a specified number of bytes.
- """
- b = os.urandom(num_bytes)
- h = hashlib.sha256(b).digest()[:16]
- s = base64.b32encode(h).lower().replace(b"=", b"").decode("utf-8")
- if not output_len:
- return s
- return s[:output_len]
-
- @staticmethod
- def human_readable_filesize(b):
- """
- Returns filesize in a human readable format.
- """
- thresh = 1024.0
- if b < thresh:
- return "{:.1f} B".format(b)
- units = ("KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB")
- u = 0
- b /= thresh
- while b >= thresh:
- b /= thresh
- u += 1
- return "{:.1f} {}".format(b, units[u])
-
- @staticmethod
- def format_seconds(seconds):
- """Return a human-readable string of the format 1d2h3m4s"""
- days, seconds = divmod(seconds, 86400)
- hours, seconds = divmod(seconds, 3600)
- minutes, seconds = divmod(seconds, 60)
-
- human_readable = []
- if days:
- human_readable.append("{:.0f}d".format(days))
- if hours:
- human_readable.append("{:.0f}h".format(hours))
- if minutes:
- human_readable.append("{:.0f}m".format(minutes))
- if seconds or not human_readable:
- human_readable.append("{:.0f}s".format(seconds))
- return "".join(human_readable)
-
- @staticmethod
- def estimated_time_remaining(bytes_downloaded, total_bytes, started):
- now = time.time()
- time_elapsed = now - started # in seconds
- download_rate = bytes_downloaded / time_elapsed
- remaining_bytes = total_bytes - bytes_downloaded
- eta = remaining_bytes / download_rate
- return Common.format_seconds(eta)
-
- @staticmethod
- def get_available_port(min_port, max_port):
- """
- Find a random available port within the given range.
- """
- with socket.socket() as tmpsock:
- while True:
- try:
- tmpsock.bind(("127.0.0.1", random.randint(min_port, max_port)))
- break
- except OSError as e:
- pass
- _, port = tmpsock.getsockname()
- return port
-
- @staticmethod
- def dir_size(start_path):
- """
- Calculates the total size, in bytes, of all of the files in a directory.
- """
- total_size = 0
- for dirpath, dirnames, filenames in os.walk(start_path):
- for f in filenames:
- fp = os.path.join(dirpath, f)
- if not os.path.islink(fp):
- total_size += os.path.getsize(fp)
- return total_size
-
-
-class AutoStopTimer(threading.Thread):
- """
- Background thread sleeps t hours and returns.
- """
-
- def __init__(self, common, time):
- threading.Thread.__init__(self)
-
- self.common = common
-
- self.setDaemon(True)
- self.time = time
-
- def run(self):
- self.common.log(
- "AutoStopTimer", f"Server will shut down after {self.time} seconds"
- )
- time.sleep(self.time)
- return 1
diff --git a/desktop/onionshare/mode_settings.py b/desktop/onionshare/mode_settings.py
deleted file mode 100644
index b353fcde..00000000
--- a/desktop/onionshare/mode_settings.py
+++ /dev/null
@@ -1,146 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-OnionShare | https://onionshare.org/
-
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-import os
-import json
-import platform
-
-if platform.system() == "Darwin":
- import pwd
-
-
-class ModeSettings:
- """
- This stores the settings for a single instance of an OnionShare mode. In CLI there
- is only one ModeSettings, and in the GUI there is a separate ModeSettings for each tab
- """
-
- def __init__(self, common, filename=None, id=None):
- self.common = common
-
- self.default_settings = {
- "onion": {
- "private_key": None,
- "hidservauth_string": None,
- "password": None,
- },
- "persistent": {"mode": None, "enabled": False},
- "general": {
- "public": False,
- "autostart_timer": False,
- "autostop_timer": False,
- "legacy": False,
- "client_auth": False,
- "service_id": None,
- },
- "share": {"autostop_sharing": True, "filenames": []},
- "receive": {"data_dir": self.build_default_receive_data_dir()},
- "website": {"disable_csp": False, "filenames": []},
- "chat": {"room": "default"},
- }
- self._settings = {}
-
- self.just_created = False
- if id:
- self.id = id
- else:
- self.id = self.common.build_password(3)
-
- self.load(filename)
-
- def fill_in_defaults(self):
- """
- If there are any missing settings from self._settings, replace them with
- their default values.
- """
- for key in self.default_settings:
- if key in self._settings:
- for inner_key in self.default_settings[key]:
- if inner_key not in self._settings[key]:
- self._settings[key][inner_key] = self.default_settings[key][
- inner_key
- ]
- else:
- self._settings[key] = self.default_settings[key]
-
- def get(self, group, key):
- return self._settings[group][key]
-
- def set(self, group, key, val):
- self._settings[group][key] = val
- self.common.log(
- "ModeSettings", "set", f"updating {self.id}: {group}.{key} = {val}"
- )
- self.save()
-
- def build_default_receive_data_dir(self):
- """
- Returns the path of the default Downloads directory for receive mode.
- """
-
- if self.common.platform == "Darwin":
- # We can't use os.path.expanduser() in macOS because in the sandbox it
- # returns the path to the sandboxed homedir
- real_homedir = pwd.getpwuid(os.getuid()).pw_dir
- return os.path.join(real_homedir, "OnionShare")
- elif self.common.platform == "Windows":
- # On Windows, os.path.expanduser() needs to use backslash, or else it
- # retains the forward slash, which breaks opening the folder in explorer.
- return os.path.expanduser("~\OnionShare")
- else:
- # All other OSes
- return os.path.expanduser("~/OnionShare")
-
- def load(self, filename=None):
- # Load persistent settings from disk. If the file doesn't exist, create it
- if filename:
- self.filename = filename
- else:
- self.filename = os.path.join(
- self.common.build_persistent_dir(), f"{self.id}.json"
- )
-
- if os.path.exists(self.filename):
- try:
- with open(self.filename, "r") as f:
- self._settings = json.load(f)
- self.fill_in_defaults()
- self.common.log("ModeSettings", "load", f"loaded {self.filename}")
- return
- except:
- pass
-
- # If loading settings didn't work, create the settings file
- self.common.log("ModeSettings", "load", f"creating {self.filename}")
- self.fill_in_defaults()
- self.just_created = True
-
- def save(self):
- # Save persistent setting to disk
- if not self.get("persistent", "enabled"):
- return
-
- if self.filename:
- with open(self.filename, "w") as file:
- file.write(json.dumps(self._settings, indent=2))
-
- def delete(self):
- # Delete the file from disk
- if os.path.exists(self.filename):
- os.remove(self.filename)
diff --git a/desktop/onionshare/onion.py b/desktop/onionshare/onion.py
deleted file mode 100644
index c66c0df4..00000000
--- a/desktop/onionshare/onion.py
+++ /dev/null
@@ -1,775 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-OnionShare | https://onionshare.org/
-
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-
-from stem.control import Controller
-from stem import ProtocolError, SocketClosed
-from stem.connection import MissingPassword, UnreadableCookieFile, AuthenticationFailure
-from Crypto.PublicKey import RSA
-import base64, os, sys, tempfile, shutil, urllib, platform, subprocess, time, shlex
-
-from distutils.version import LooseVersion as Version
-from . import common, strings
-from .settings import Settings
-
-
-class TorErrorAutomatic(Exception):
- """
- OnionShare is failing to connect and authenticate to the Tor controller,
- using automatic settings that should work with Tor Browser.
- """
-
- pass
-
-
-class TorErrorInvalidSetting(Exception):
- """
- This exception is raised if the settings just don't make sense.
- """
-
- pass
-
-
-class TorErrorSocketPort(Exception):
- """
- OnionShare can't connect to the Tor controller using the supplied address and port.
- """
-
- pass
-
-
-class TorErrorSocketFile(Exception):
- """
- OnionShare can't connect to the Tor controller using the supplied socket file.
- """
-
- pass
-
-
-class TorErrorMissingPassword(Exception):
- """
- OnionShare connected to the Tor controller, but it requires a password.
- """
-
- pass
-
-
-class TorErrorUnreadableCookieFile(Exception):
- """
- OnionShare connected to the Tor controller, but your user does not have permission
- to access the cookie file.
- """
-
- pass
-
-
-class TorErrorAuthError(Exception):
- """
- OnionShare connected to the address and port, but can't authenticate. It's possible
- that a Tor controller isn't listening on this port.
- """
-
- pass
-
-
-class TorErrorProtocolError(Exception):
- """
- This exception is raised if onionshare connects to the Tor controller, but it
- isn't acting like a Tor controller (such as in Whonix).
- """
-
- pass
-
-
-class TorTooOld(Exception):
- """
- This exception is raised if onionshare needs to use a feature of Tor or stem
- (like stealth ephemeral onion services) but the version you have installed
- is too old.
- """
-
- pass
-
-
-class BundledTorNotSupported(Exception):
- """
- This exception is raised if onionshare is set to use the bundled Tor binary,
- but it's not supported on that platform, or in dev mode.
- """
-
-
-class BundledTorTimeout(Exception):
- """
- This exception is raised if onionshare is set to use the bundled Tor binary,
- but Tor doesn't finish connecting promptly.
- """
-
-
-class BundledTorCanceled(Exception):
- """
- This exception is raised if onionshare is set to use the bundled Tor binary,
- and the user cancels connecting to Tor
- """
-
-
-class BundledTorBroken(Exception):
- """
- This exception is raised if onionshare is set to use the bundled Tor binary,
- but the process seems to fail to run.
- """
-
-
-class Onion(object):
- """
- Onion is an abstraction layer for connecting to the Tor control port and
- creating onion services. OnionShare supports creating onion services by
- connecting to the Tor controller and using ADD_ONION, DEL_ONION.
-
- stealth: Should the onion service be stealth?
-
- settings: A Settings object. If it's not passed in, load from disk.
-
- bundled_connection_func: If the tor connection type is bundled, optionally
- call this function and pass in a status string while connecting to tor. This
- is necessary for status updates to reach the GUI.
- """
-
- def __init__(self, common, use_tmp_dir=False):
- self.common = common
- self.common.log("Onion", "__init__")
-
- self.use_tmp_dir = use_tmp_dir
-
- # Is bundled tor supported?
- if (
- self.common.platform == "Windows" or self.common.platform == "Darwin"
- ) and getattr(sys, "onionshare_dev_mode", False):
- self.bundle_tor_supported = False
- else:
- self.bundle_tor_supported = True
-
- # Set the path of the tor binary, for bundled tor
- (
- self.tor_path,
- self.tor_geo_ip_file_path,
- self.tor_geo_ipv6_file_path,
- self.obfs4proxy_file_path,
- ) = self.common.get_tor_paths()
-
- # The tor process
- self.tor_proc = None
-
- # The Tor controller
- self.c = None
-
- # Start out not connected to Tor
- self.connected_to_tor = False
-
- # Assigned later if we are using stealth mode
- self.auth_string = None
-
- def connect(
- self,
- custom_settings=None,
- config=None,
- tor_status_update_func=None,
- connect_timeout=120,
- local_only=False,
- ):
- if local_only:
- self.common.log(
- "Onion", "connect", "--local-only, so skip trying to connect"
- )
- return
-
- self.common.log("Onion", "connect")
-
- # Either use settings that are passed in, or use them from common
- if custom_settings:
- self.settings = custom_settings
- elif config:
- self.common.load_settings(config)
- self.settings = self.common.settings
- else:
- self.common.load_settings()
- self.settings = self.common.settings
-
- strings.load_strings(self.common)
-
- # The Tor controller
- self.c = None
-
- if self.settings.get("connection_type") == "bundled":
- if not self.bundle_tor_supported:
- raise BundledTorNotSupported(
- strings._("settings_error_bundled_tor_not_supported")
- )
-
- # Create a torrc for this session
- if self.use_tmp_dir:
- self.tor_data_directory = tempfile.TemporaryDirectory(
- dir=self.common.build_tmp_dir()
- )
- self.tor_data_directory_name = self.tor_data_directory.name
- else:
- self.tor_data_directory_name = self.common.build_tor_dir()
- self.common.log(
- "Onion",
- "connect",
- f"tor_data_directory_name={self.tor_data_directory_name}",
- )
-
- # Create the torrc
- with open(self.common.get_resource_path("torrc_template")) as f:
- torrc_template = f.read()
- self.tor_cookie_auth_file = os.path.join(
- self.tor_data_directory_name, "cookie"
- )
- try:
- self.tor_socks_port = self.common.get_available_port(1000, 65535)
- except:
- raise OSError(strings._("no_available_port"))
- self.tor_torrc = os.path.join(self.tor_data_directory_name, "torrc")
-
- if self.common.platform == "Windows" or self.common.platform == "Darwin":
- # Windows doesn't support unix sockets, so it must use a network port.
- # macOS can't use unix sockets either because socket filenames are limited to
- # 100 chars, and the macOS sandbox forces us to put the socket file in a place
- # with a really long path.
- torrc_template += "ControlPort {{control_port}}\n"
- try:
- self.tor_control_port = self.common.get_available_port(1000, 65535)
- except:
- raise OSError(strings._("no_available_port"))
- self.tor_control_socket = None
- else:
- # Linux and BSD can use unix sockets
- torrc_template += "ControlSocket {{control_socket}}\n"
- self.tor_control_port = None
- self.tor_control_socket = os.path.join(
- self.tor_data_directory_name, "control_socket"
- )
-
- torrc_template = torrc_template.replace(
- "{{data_directory}}", self.tor_data_directory_name
- )
- torrc_template = torrc_template.replace(
- "{{control_port}}", str(self.tor_control_port)
- )
- torrc_template = torrc_template.replace(
- "{{control_socket}}", str(self.tor_control_socket)
- )
- torrc_template = torrc_template.replace(
- "{{cookie_auth_file}}", self.tor_cookie_auth_file
- )
- torrc_template = torrc_template.replace(
- "{{geo_ip_file}}", self.tor_geo_ip_file_path
- )
- torrc_template = torrc_template.replace(
- "{{geo_ipv6_file}}", self.tor_geo_ipv6_file_path
- )
- torrc_template = torrc_template.replace(
- "{{socks_port}}", str(self.tor_socks_port)
- )
-
- with open(self.tor_torrc, "w") as f:
- f.write(torrc_template)
-
- # Bridge support
- if self.settings.get("tor_bridges_use_obfs4"):
- f.write(
- f"ClientTransportPlugin obfs4 exec {self.obfs4proxy_file_path}\n"
- )
- with open(
- self.common.get_resource_path("torrc_template-obfs4")
- ) as o:
- for line in o:
- f.write(line)
- elif self.settings.get("tor_bridges_use_meek_lite_azure"):
- f.write(
- f"ClientTransportPlugin meek_lite exec {self.obfs4proxy_file_path}\n"
- )
- with open(
- self.common.get_resource_path("torrc_template-meek_lite_azure")
- ) as o:
- for line in o:
- f.write(line)
-
- if self.settings.get("tor_bridges_use_custom_bridges"):
- if "obfs4" in self.settings.get("tor_bridges_use_custom_bridges"):
- f.write(
- f"ClientTransportPlugin obfs4 exec {self.obfs4proxy_file_path}\n"
- )
- elif "meek_lite" in self.settings.get(
- "tor_bridges_use_custom_bridges"
- ):
- f.write(
- f"ClientTransportPlugin meek_lite exec {self.obfs4proxy_file_path}\n"
- )
- f.write(self.settings.get("tor_bridges_use_custom_bridges"))
- f.write("\nUseBridges 1")
-
- # Execute a tor subprocess
- start_ts = time.time()
- if self.common.platform == "Windows":
- # In Windows, hide console window when opening tor.exe subprocess
- startupinfo = subprocess.STARTUPINFO()
- startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
- self.tor_proc = subprocess.Popen(
- [self.tor_path, "-f", self.tor_torrc],
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE,
- startupinfo=startupinfo,
- )
- else:
- self.tor_proc = subprocess.Popen(
- [self.tor_path, "-f", self.tor_torrc],
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE,
- )
-
- # Wait for the tor controller to start
- time.sleep(2)
-
- # Connect to the controller
- try:
- if (
- self.common.platform == "Windows"
- or self.common.platform == "Darwin"
- ):
- self.c = Controller.from_port(port=self.tor_control_port)
- self.c.authenticate()
- else:
- self.c = Controller.from_socket_file(path=self.tor_control_socket)
- self.c.authenticate()
- except Exception as e:
- raise BundledTorBroken(
- strings._("settings_error_bundled_tor_broken").format(e.args[0])
- )
-
- while True:
- try:
- res = self.c.get_info("status/bootstrap-phase")
- except SocketClosed:
- raise BundledTorCanceled()
-
- res_parts = shlex.split(res)
- progress = res_parts[2].split("=")[1]
- summary = res_parts[4].split("=")[1]
-
- # "\033[K" clears the rest of the line
- print(
- f"\rConnecting to the Tor network: {progress}% - {summary}\033[K",
- end="",
- )
-
- if callable(tor_status_update_func):
- if not tor_status_update_func(progress, summary):
- # If the dialog was canceled, stop connecting to Tor
- self.common.log(
- "Onion",
- "connect",
- "tor_status_update_func returned false, canceling connecting to Tor",
- )
- print()
- return False
-
- if summary == "Done":
- print("")
- break
- time.sleep(0.2)
-
- # If using bridges, it might take a bit longer to connect to Tor
- if (
- self.settings.get("tor_bridges_use_custom_bridges")
- or self.settings.get("tor_bridges_use_obfs4")
- or self.settings.get("tor_bridges_use_meek_lite_azure")
- ):
- # Only override timeout if a custom timeout has not been passed in
- if connect_timeout == 120:
- connect_timeout = 150
- if time.time() - start_ts > connect_timeout:
- print("")
- try:
- self.tor_proc.terminate()
- raise BundledTorTimeout(
- strings._("settings_error_bundled_tor_timeout")
- )
- except FileNotFoundError:
- pass
-
- elif self.settings.get("connection_type") == "automatic":
- # Automatically try to guess the right way to connect to Tor Browser
-
- # Try connecting to control port
- found_tor = False
-
- # If the TOR_CONTROL_PORT environment variable is set, use that
- env_port = os.environ.get("TOR_CONTROL_PORT")
- if env_port:
- try:
- self.c = Controller.from_port(port=int(env_port))
- found_tor = True
- except:
- pass
-
- else:
- # Otherwise, try default ports for Tor Browser, Tor Messenger, and system tor
- try:
- ports = [9151, 9153, 9051]
- for port in ports:
- self.c = Controller.from_port(port=port)
- found_tor = True
- except:
- pass
-
- # If this still didn't work, try guessing the default socket file path
- socket_file_path = ""
- if not found_tor:
- try:
- if self.common.platform == "Darwin":
- socket_file_path = os.path.expanduser(
- "~/Library/Application Support/TorBrowser-Data/Tor/control.socket"
- )
-
- self.c = Controller.from_socket_file(path=socket_file_path)
- found_tor = True
- except:
- pass
-
- # If connecting to default control ports failed, so let's try
- # guessing the socket file name next
- if not found_tor:
- try:
- if self.common.platform == "Linux" or self.common.platform == "BSD":
- socket_file_path = (
- f"/run/user/{os.geteuid()}/Tor/control.socket"
- )
- elif self.common.platform == "Darwin":
- socket_file_path = (
- f"/run/user/{os.geteuid()}/Tor/control.socket"
- )
- elif self.common.platform == "Windows":
- # Windows doesn't support unix sockets
- raise TorErrorAutomatic(strings._("settings_error_automatic"))
-
- self.c = Controller.from_socket_file(path=socket_file_path)
-
- except:
- raise TorErrorAutomatic(strings._("settings_error_automatic"))
-
- # Try authenticating
- try:
- self.c.authenticate()
- except:
- raise TorErrorAutomatic(strings._("settings_error_automatic"))
-
- else:
- # Use specific settings to connect to tor
-
- # Try connecting
- try:
- if self.settings.get("connection_type") == "control_port":
- self.c = Controller.from_port(
- address=self.settings.get("control_port_address"),
- port=self.settings.get("control_port_port"),
- )
- elif self.settings.get("connection_type") == "socket_file":
- self.c = Controller.from_socket_file(
- path=self.settings.get("socket_file_path")
- )
- else:
- raise TorErrorInvalidSetting(strings._("settings_error_unknown"))
-
- except:
- if self.settings.get("connection_type") == "control_port":
- raise TorErrorSocketPort(
- strings._("settings_error_socket_port").format(
- self.settings.get("control_port_address"),
- self.settings.get("control_port_port"),
- )
- )
- else:
- raise TorErrorSocketFile(
- strings._("settings_error_socket_file").format(
- self.settings.get("socket_file_path")
- )
- )
-
- # Try authenticating
- try:
- if self.settings.get("auth_type") == "no_auth":
- self.c.authenticate()
- elif self.settings.get("auth_type") == "password":
- self.c.authenticate(self.settings.get("auth_password"))
- else:
- raise TorErrorInvalidSetting(strings._("settings_error_unknown"))
-
- except MissingPassword:
- raise TorErrorMissingPassword(
- strings._("settings_error_missing_password")
- )
- except UnreadableCookieFile:
- raise TorErrorUnreadableCookieFile(
- strings._("settings_error_unreadable_cookie_file")
- )
- except AuthenticationFailure:
- raise TorErrorAuthError(
- strings._("settings_error_auth").format(
- self.settings.get("control_port_address"),
- self.settings.get("control_port_port"),
- )
- )
-
- # If we made it this far, we should be connected to Tor
- self.connected_to_tor = True
-
- # Get the tor version
- self.tor_version = self.c.get_version().version_str
- self.common.log("Onion", "connect", f"Connected to tor {self.tor_version}")
-
- # Do the versions of stem and tor that I'm using support ephemeral onion services?
- list_ephemeral_hidden_services = getattr(
- self.c, "list_ephemeral_hidden_services", None
- )
- self.supports_ephemeral = (
- callable(list_ephemeral_hidden_services) and self.tor_version >= "0.2.7.1"
- )
-
- # Do the versions of stem and tor that I'm using support stealth onion services?
- try:
- res = self.c.create_ephemeral_hidden_service(
- {1: 1},
- basic_auth={"onionshare": None},
- await_publication=False,
- key_type="NEW",
- key_content="RSA1024",
- )
- tmp_service_id = res.service_id
- self.c.remove_ephemeral_hidden_service(tmp_service_id)
- self.supports_stealth = True
- except:
- # ephemeral stealth onion services are not supported
- self.supports_stealth = False
-
- # Does this version of Tor support next-gen ('v3') onions?
- # Note, this is the version of Tor where this bug was fixed:
- # https://trac.torproject.org/projects/tor/ticket/28619
- self.supports_v3_onions = self.tor_version >= Version("0.3.5.7")
-
- def is_authenticated(self):
- """
- Returns True if the Tor connection is still working, or False otherwise.
- """
- if self.c is not None:
- return self.c.is_authenticated()
- else:
- return False
-
- def start_onion_service(self, mode_settings, port, await_publication):
- """
- Start a onion service on port 80, pointing to the given port, and
- return the onion hostname.
- """
- self.common.log("Onion", "start_onion_service", f"port={port}")
-
- if not self.supports_ephemeral:
- raise TorTooOld(strings._("error_ephemeral_not_supported"))
- if mode_settings.get("general", "client_auth") and not self.supports_stealth:
- raise TorTooOld(strings._("error_stealth_not_supported"))
-
- auth_cookie = None
- if mode_settings.get("general", "client_auth"):
- if mode_settings.get("onion", "hidservauth_string"):
- auth_cookie = mode_settings.get("onion", "hidservauth_string").split()[
- 2
- ]
- if auth_cookie:
- basic_auth = {"onionshare": auth_cookie}
- else:
- # If we had neither a scheduled auth cookie or a persistent hidservauth string,
- # set the cookie to 'None', which means Tor will create one for us
- basic_auth = {"onionshare": None}
- else:
- # Not using client auth at all
- basic_auth = None
-
- if mode_settings.get("onion", "private_key"):
- key_content = mode_settings.get("onion", "private_key")
- if self.is_v2_key(key_content):
- key_type = "RSA1024"
- else:
- # Assume it was a v3 key. Stem will throw an error if it's something illegible
- key_type = "ED25519-V3"
- else:
- key_type = "NEW"
- # Work out if we can support v3 onion services, which are preferred
- if self.supports_v3_onions and not mode_settings.get("general", "legacy"):
- key_content = "ED25519-V3"
- else:
- # fall back to v2 onion services
- key_content = "RSA1024"
-
- # v3 onions don't yet support basic auth. Our ticket:
- # https://github.com/micahflee/onionshare/issues/697
- if (
- key_type == "NEW"
- and key_content == "ED25519-V3"
- and not mode_settings.get("general", "legacy")
- ):
- basic_auth = None
-
- debug_message = f"key_type={key_type}"
- if key_type == "NEW":
- debug_message += f", key_content={key_content}"
- self.common.log("Onion", "start_onion_service", debug_message)
- try:
- res = self.c.create_ephemeral_hidden_service(
- {80: port},
- await_publication=await_publication,
- basic_auth=basic_auth,
- key_type=key_type,
- key_content=key_content,
- )
-
- except ProtocolError as e:
- raise TorErrorProtocolError(
- strings._("error_tor_protocol_error").format(e.args[0])
- )
-
- onion_host = res.service_id + ".onion"
-
- # Save the service_id
- mode_settings.set("general", "service_id", res.service_id)
-
- # Save the private key and hidservauth string
- if not mode_settings.get("onion", "private_key"):
- mode_settings.set("onion", "private_key", res.private_key)
- if mode_settings.get("general", "client_auth") and not mode_settings.get(
- "onion", "hidservauth_string"
- ):
- auth_cookie = list(res.client_auth.values())[0]
- self.auth_string = f"HidServAuth {onion_host} {auth_cookie}"
- mode_settings.set("onion", "hidservauth_string", self.auth_string)
-
- return onion_host
-
- def stop_onion_service(self, mode_settings):
- """
- Stop a specific onion service
- """
- onion_host = mode_settings.get("general", "service_id")
- if onion_host:
- self.common.log("Onion", "stop_onion_service", f"onion host: {onion_host}")
- try:
- self.c.remove_ephemeral_hidden_service(
- mode_settings.get("general", "service_id")
- )
- except:
- self.common.log(
- "Onion", "stop_onion_service", f"failed to remove {onion_host}"
- )
-
- def cleanup(self, stop_tor=True):
- """
- Stop onion services that were created earlier. If there's a tor subprocess running, kill it.
- """
- self.common.log("Onion", "cleanup")
-
- # Cleanup the ephemeral onion services, if we have any
- try:
- onions = self.c.list_ephemeral_hidden_services()
- for service_id in onions:
- onion_host = f"{service_id}.onion"
- try:
- self.common.log(
- "Onion", "cleanup", f"trying to remove onion {onion_host}"
- )
- self.c.remove_ephemeral_hidden_service(service_id)
- except:
- self.common.log(
- "Onion", "cleanup", f"failed to remove onion {onion_host}"
- )
- pass
- except:
- pass
-
- if stop_tor:
- # Stop tor process
- if self.tor_proc:
- self.tor_proc.terminate()
- time.sleep(0.2)
- if self.tor_proc.poll() is None:
- self.common.log(
- "Onion",
- "cleanup",
- "Tried to terminate tor process but it's still running",
- )
- try:
- self.tor_proc.kill()
- time.sleep(0.2)
- if self.tor_proc.poll() is None:
- self.common.log(
- "Onion",
- "cleanup",
- "Tried to kill tor process but it's still running",
- )
- except:
- self.common.log(
- "Onion", "cleanup", "Exception while killing tor process"
- )
- self.tor_proc = None
-
- # Reset other Onion settings
- self.connected_to_tor = False
-
- try:
- # Delete the temporary tor data directory
- if self.use_tmp_dir:
- self.tor_data_directory.cleanup()
- except:
- pass
-
- def get_tor_socks_port(self):
- """
- Returns a (address, port) tuple for the Tor SOCKS port
- """
- self.common.log("Onion", "get_tor_socks_port")
-
- if self.settings.get("connection_type") == "bundled":
- return ("127.0.0.1", self.tor_socks_port)
- elif self.settings.get("connection_type") == "automatic":
- return ("127.0.0.1", 9150)
- else:
- return (self.settings.get("socks_address"), self.settings.get("socks_port"))
-
- def is_v2_key(self, key):
- """
- Helper function for determining if a key is RSA1024 (v2) or not.
- """
- try:
- # Import the key
- key = RSA.importKey(base64.b64decode(key))
- # Is this a v2 Onion key? (1024 bits) If so, we should keep using it.
- if key.n.bit_length() == 1024:
- return True
- else:
- return False
- except:
- return False
diff --git a/desktop/onionshare/onionshare.py b/desktop/onionshare/onionshare.py
deleted file mode 100644
index 25c8ad90..00000000
--- a/desktop/onionshare/onionshare.py
+++ /dev/null
@@ -1,111 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-OnionShare | https://onionshare.org/
-
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-
-import os, shutil
-
-from . import common, strings
-from .onion import TorTooOld, TorErrorProtocolError
-from .common import AutoStopTimer
-
-
-class OnionShare(object):
- """
- OnionShare is the main application class. Pass in options and run
- start_onion_service and it will do the magic.
- """
-
- def __init__(self, common, onion, local_only=False, autostop_timer=0):
- self.common = common
-
- self.common.log("OnionShare", "__init__")
-
- # The Onion object
- self.onion = onion
-
- self.hidserv_dir = None
- self.onion_host = None
- self.port = None
-
- # files and dirs to delete on shutdown
- self.cleanup_filenames = []
-
- # do not use tor -- for development
- self.local_only = local_only
-
- # optionally shut down after N hours
- self.autostop_timer = autostop_timer
- # init auto-stop timer thread
- self.autostop_timer_thread = None
-
- def choose_port(self):
- """
- Choose a random port.
- """
- try:
- self.port = self.common.get_available_port(17600, 17650)
- except:
- raise OSError(strings._("no_available_port"))
-
- def start_onion_service(self, mode_settings, await_publication=True):
- """
- Start the onionshare onion service.
- """
- self.common.log("OnionShare", "start_onion_service")
-
- if not self.port:
- self.choose_port()
-
- if self.autostop_timer > 0:
- self.autostop_timer_thread = AutoStopTimer(self.common, self.autostop_timer)
-
- if self.local_only:
- self.onion_host = f"127.0.0.1:{self.port}"
- return
-
- self.onion_host = self.onion.start_onion_service(
- mode_settings, self.port, await_publication
- )
-
- if mode_settings.get("general", "client_auth"):
- self.auth_string = self.onion.auth_string
-
- def stop_onion_service(self, mode_settings):
- """
- Stop the onion service
- """
- self.onion.stop_onion_service(mode_settings)
-
- def cleanup(self):
- """
- Shut everything down and clean up temporary files, etc.
- """
- self.common.log("OnionShare", "cleanup")
-
- # Cleanup files
- try:
- for filename in self.cleanup_filenames:
- if os.path.isfile(filename):
- os.remove(filename)
- elif os.path.isdir(filename):
- shutil.rmtree(filename)
- except:
- # Don't crash if file is still in use
- pass
- self.cleanup_filenames = []
diff --git a/desktop/onionshare/settings.py b/desktop/onionshare/settings.py
deleted file mode 100644
index 6b6ed6ab..00000000
--- a/desktop/onionshare/settings.py
+++ /dev/null
@@ -1,199 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-OnionShare | https://onionshare.org/
-
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-
-import json
-import os
-import platform
-import locale
-
-try:
- # We only need pwd module in macOS, and it's not available in Windows
- import pwd
-except:
- pass
-
-from . import strings
-
-
-class Settings(object):
- """
- This class stores all of the settings for OnionShare, specifically for how
- to connect to Tor. If it can't find the settings file, it uses the default,
- which is to attempt to connect automatically using default Tor Browser
- settings.
- """
-
- def __init__(self, common, config=False):
- self.common = common
-
- self.common.log("Settings", "__init__")
-
- # If a readable config file was provided, use that instead
- if config:
- if os.path.isfile(config):
- self.filename = config
- else:
- self.common.log(
- "Settings",
- "__init__",
- "Supplied config does not exist or is unreadable. Falling back to default location",
- )
- self.filename = self.build_filename()
-
- else:
- # Default config
- self.filename = self.build_filename()
-
- # Dictionary of available languages in this version of OnionShare,
- # mapped to the language name, in that language
- self.available_locales = {
- "ar": "العربية", # Arabic
- #'bn': 'বাংলা', # Bengali (commented out because not at 90% translation)
- "ca": "Català", # Catalan
- "zh_Hant": "正體中文 (繁體)", # Traditional Chinese
- "zh_Hans": "中文 (简体)", # Simplified Chinese
- "da": "Dansk", # Danish
- "nl": "Nederlands", # Dutch
- "en": "English", # English
- # "fi": "Suomi", # Finnish (commented out because not at 90% translation)
- "fr": "Français", # French
- "de": "Deutsch", # German
- "el": "Ελληνικά", # Greek
- "is": "Íslenska", # Icelandic
- "ga": "Gaeilge", # Irish
- "it": "Italiano", # Italian
- "ja": "日本語", # Japanese
- "nb_NO": "Norsk Bokmål", # Norwegian Bokmål
- "fa": "فارسی", # Persian
- "pl": "Polski", # Polish
- "pt_BR": "Português (Brasil)", # Portuguese Brazil
- "pt_PT": "Português (Portugal)", # Portuguese Portugal
- "ro": "Română", # Romanian
- "ru": "Русский", # Russian
- "sr_Latn": "Srpska (latinica)", # Serbian (latin)
- "es": "Español", # Spanish
- "sv": "Svenska", # Swedish
- "te": "తెలుగు", # Telugu
- "tr": "Türkçe", # Turkish
- "uk": "Українська", # Ukrainian
- }
-
- # These are the default settings. They will get overwritten when loading from disk
- self.default_settings = {
- "version": self.common.version,
- "connection_type": "bundled",
- "control_port_address": "127.0.0.1",
- "control_port_port": 9051,
- "socks_address": "127.0.0.1",
- "socks_port": 9050,
- "socket_file_path": "/var/run/tor/control",
- "auth_type": "no_auth",
- "auth_password": "",
- "use_autoupdate": True,
- "autoupdate_timestamp": None,
- "no_bridges": True,
- "tor_bridges_use_obfs4": False,
- "tor_bridges_use_meek_lite_azure": False,
- "tor_bridges_use_custom_bridges": "",
- "persistent_tabs": [],
- "locale": None, # this gets defined in fill_in_defaults()
- }
- self._settings = {}
- self.fill_in_defaults()
-
- def fill_in_defaults(self):
- """
- If there are any missing settings from self._settings, replace them with
- their default values.
- """
- for key in self.default_settings:
- if key not in self._settings:
- self._settings[key] = self.default_settings[key]
-
- # Choose the default locale based on the OS preference, and fall-back to English
- if self._settings["locale"] is None:
- language_code, encoding = locale.getdefaultlocale()
-
- # Default to English
- if not language_code:
- language_code = "en_US"
-
- if language_code == "pt_PT" and language_code == "pt_BR":
- # Portuguese locales include country code
- default_locale = language_code
- else:
- # All other locales cut off the country code
- default_locale = language_code[:2]
-
- if default_locale not in self.available_locales:
- default_locale = "en"
- self._settings["locale"] = default_locale
-
- def build_filename(self):
- """
- Returns the path of the settings file.
- """
- return os.path.join(self.common.build_data_dir(), "onionshare.json")
-
- def load(self):
- """
- Load the settings from file.
- """
- self.common.log("Settings", "load")
-
- # If the settings file exists, load it
- if os.path.exists(self.filename):
- try:
- self.common.log("Settings", "load", f"Trying to load {self.filename}")
- with open(self.filename, "r") as f:
- self._settings = json.load(f)
- self.fill_in_defaults()
- except:
- pass
-
- # Make sure data_dir exists
- try:
- os.makedirs(self.get("data_dir"), exist_ok=True)
- except:
- pass
-
- def save(self):
- """
- Save settings to file.
- """
- self.common.log("Settings", "save")
- open(self.filename, "w").write(json.dumps(self._settings, indent=2))
- self.common.log("Settings", "save", f"Settings saved in {self.filename}")
-
- def get(self, key):
- return self._settings[key]
-
- def set(self, key, val):
- # If typecasting int values fails, fallback to default values
- if key == "control_port_port" or key == "socks_port":
- try:
- val = int(val)
- except:
- if key == "control_port_port":
- val = self.default_settings["control_port_port"]
- elif key == "socks_port":
- val = self.default_settings["socks_port"]
-
- self._settings[key] = val
diff --git a/desktop/onionshare/web/__init__.py b/desktop/onionshare/web/__init__.py
deleted file mode 100644
index f036d011..00000000
--- a/desktop/onionshare/web/__init__.py
+++ /dev/null
@@ -1,21 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-OnionShare | https://onionshare.org/
-
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-
-from .web import Web
diff --git a/desktop/onionshare/web/chat_mode.py b/desktop/onionshare/web/chat_mode.py
deleted file mode 100644
index 15e236d3..00000000
--- a/desktop/onionshare/web/chat_mode.py
+++ /dev/null
@@ -1,159 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-OnionShare | https://onionshare.org/
-
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-
-from flask import (
- Request,
- request,
- render_template,
- make_response,
- jsonify,
- redirect,
- session,
-)
-from werkzeug.utils import secure_filename
-from flask_socketio import emit, join_room, leave_room
-
-
-class ChatModeWeb:
- """
- All of the web logic for chat mode
- """
-
- def __init__(self, common, web):
- self.common = common
- self.common.log("ChatModeWeb", "__init__")
-
- self.web = web
-
- # This tracks users in the room
- self.connected_users = []
-
- # This tracks the history id
- self.cur_history_id = 0
-
- self.define_routes()
-
- def define_routes(self):
- """
- The web app routes for chatting
- """
-
- @self.web.app.route("/")
- def index():
- history_id = self.cur_history_id
- self.cur_history_id += 1
- session["name"] = (
- session.get("name")
- if session.get("name")
- else self.common.build_username()
- )
- session["room"] = self.web.settings.default_settings["chat"]["room"]
- self.web.add_request(
- request.path, {"id": history_id, "status_code": 200},
- )
-
- self.web.add_request(self.web.REQUEST_LOAD, request.path)
- r = make_response(
- render_template(
- "chat.html",
- static_url_path=self.web.static_url_path,
- username=session.get("name"),
- )
- )
- return self.web.add_security_headers(r)
-
- @self.web.app.route("/update-session-username", methods=["POST"])
- def update_session_username():
- history_id = self.cur_history_id
- data = request.get_json()
- if data.get("username", "") not in self.connected_users:
- session["name"] = data.get("username", session.get("name"))
- self.web.add_request(
- request.path, {"id": history_id, "status_code": 200},
- )
-
- self.web.add_request(self.web.REQUEST_LOAD, request.path)
- r = make_response(jsonify(username=session.get("name"), success=True,))
- return self.web.add_security_headers(r)
-
- @self.web.socketio.on("joined", namespace="/chat")
- def joined(message):
- """Sent by clients when they enter a room.
- A status message is broadcast to all people in the room."""
- self.connected_users.append(session.get("name"))
- join_room(session.get("room"))
- emit(
- "status",
- {
- "username": session.get("name"),
- "msg": "{} has joined.".format(session.get("name")),
- "connected_users": self.connected_users,
- "user": session.get("name"),
- },
- room=session.get("room"),
- )
-
- @self.web.socketio.on("text", namespace="/chat")
- def text(message):
- """Sent by a client when the user entered a new message.
- The message is sent to all people in the room."""
- emit(
- "message",
- {"username": session.get("name"), "msg": message["msg"]},
- room=session.get("room"),
- )
-
- @self.web.socketio.on("update_username", namespace="/chat")
- def update_username(message):
- """Sent by a client when the user updates their username.
- The message is sent to all people in the room."""
- current_name = session.get("name")
- if message["username"] not in self.connected_users:
- session["name"] = message["username"]
- self.connected_users[
- self.connected_users.index(current_name)
- ] = session.get("name")
- emit(
- "status",
- {
- "msg": "{} has updated their username to: {}".format(
- current_name, session.get("name")
- ),
- "connected_users": self.connected_users,
- "old_name": current_name,
- "new_name": session.get("name"),
- },
- room=session.get("room"),
- )
-
- @self.web.socketio.on("disconnect", namespace="/chat")
- def disconnect():
- """Sent by clients when they disconnect from a room.
- A status message is broadcast to all people in the room."""
- self.connected_users.remove(session.get("name"))
- leave_room(session.get("room"))
- emit(
- "status",
- {
- "msg": "{} has left the room.".format(session.get("name")),
- "connected_users": self.connected_users,
- },
- room=session.get("room"),
- )
diff --git a/desktop/onionshare/web/receive_mode.py b/desktop/onionshare/web/receive_mode.py
deleted file mode 100644
index a9876c40..00000000
--- a/desktop/onionshare/web/receive_mode.py
+++ /dev/null
@@ -1,492 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-OnionShare | https://onionshare.org/
-
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-
-import os
-import tempfile
-import json
-from datetime import datetime
-from flask import Request, request, render_template, make_response, flash, redirect
-from werkzeug.utils import secure_filename
-
-from .. import strings
-
-
-class ReceiveModeWeb:
- """
- All of the web logic for receive mode
- """
-
- def __init__(self, common, web):
- self.common = common
- self.common.log("ReceiveModeWeb", "__init__")
-
- self.web = web
-
- self.can_upload = True
- self.uploads_in_progress = []
-
- # This tracks the history id
- self.cur_history_id = 0
-
- self.define_routes()
-
- def define_routes(self):
- """
- The web app routes for receiving files
- """
-
- @self.web.app.route("/")
- def index():
- history_id = self.cur_history_id
- self.cur_history_id += 1
- self.web.add_request(
- self.web.REQUEST_INDIVIDUAL_FILE_STARTED,
- request.path,
- {"id": history_id, "status_code": 200},
- )
-
- self.web.add_request(self.web.REQUEST_LOAD, request.path)
- r = make_response(
- render_template(
- "receive.html", static_url_path=self.web.static_url_path
- )
- )
- return self.web.add_security_headers(r)
-
- @self.web.app.route("/upload", methods=["POST"])
- def upload(ajax=False):
- """
- Handle the upload files POST request, though at this point, the files have
- already been uploaded and saved to their correct locations.
- """
- files = request.files.getlist("file[]")
- filenames = []
- for f in files:
- if f.filename != "":
- filename = secure_filename(f.filename)
- filenames.append(filename)
- local_path = os.path.join(request.receive_mode_dir, filename)
- basename = os.path.basename(local_path)
-
- # Tell the GUI the receive mode directory for this file
- self.web.add_request(
- self.web.REQUEST_UPLOAD_SET_DIR,
- request.path,
- {
- "id": request.history_id,
- "filename": basename,
- "dir": request.receive_mode_dir,
- },
- )
-
- self.common.log(
- "ReceiveModeWeb",
- "define_routes",
- f"/upload, uploaded {f.filename}, saving to {local_path}",
- )
- print(f"\nReceived: {local_path}")
-
- if request.upload_error:
- self.common.log(
- "ReceiveModeWeb",
- "define_routes",
- "/upload, there was an upload error",
- )
-
- self.web.add_request(
- self.web.REQUEST_ERROR_DATA_DIR_CANNOT_CREATE,
- request.path,
- {"receive_mode_dir": request.receive_mode_dir},
- )
- print(
- f"Could not create OnionShare data folder: {request.receive_mode_dir}"
- )
-
- msg = "Error uploading, please inform the OnionShare user"
- if ajax:
- return json.dumps({"error_flashes": [msg]})
- else:
- flash(msg, "error")
- return redirect("/")
-
- # Note that flash strings are in English, and not translated, on purpose,
- # to avoid leaking the locale of the OnionShare user
- if ajax:
- info_flashes = []
-
- if len(filenames) == 0:
- msg = "No files uploaded"
- if ajax:
- info_flashes.append(msg)
- else:
- flash(msg, "info")
- else:
- msg = "Sent "
- for filename in filenames:
- msg += f"{filename}, "
- msg = msg.rstrip(", ")
- if ajax:
- info_flashes.append(msg)
- else:
- flash(msg, "info")
-
- if self.can_upload:
- if ajax:
- return json.dumps({"info_flashes": info_flashes})
- else:
- return redirect("/")
- else:
- if ajax:
- return json.dumps(
- {
- "new_body": render_template(
- "thankyou.html",
- static_url_path=self.web.static_url_path,
- )
- }
- )
- else:
- # It was the last upload and the timer ran out
- r = make_response(
- render_template("thankyou.html"),
- static_url_path=self.web.static_url_path,
- )
- return self.web.add_security_headers(r)
-
- @self.web.app.route("/upload-ajax", methods=["POST"])
- def upload_ajax_public():
- if not self.can_upload:
- return self.web.error403()
- return upload(ajax=True)
-
-
-class ReceiveModeWSGIMiddleware(object):
- """
- Custom WSGI middleware in order to attach the Web object to environ, so
- ReceiveModeRequest can access it.
- """
-
- def __init__(self, app, web):
- self.app = app
- self.web = web
-
- def __call__(self, environ, start_response):
- environ["web"] = self.web
- environ["stop_q"] = self.web.stop_q
- return self.app(environ, start_response)
-
-
-class ReceiveModeFile(object):
- """
- A custom file object that tells ReceiveModeRequest every time data gets
- written to it, in order to track the progress of uploads. It starts out with
- a .part file extension, and when it's complete it removes that extension.
- """
-
- def __init__(self, request, filename, write_func, close_func):
- self.onionshare_request = request
- self.onionshare_filename = filename
- self.onionshare_write_func = write_func
- self.onionshare_close_func = close_func
-
- self.filename = os.path.join(self.onionshare_request.receive_mode_dir, filename)
- self.filename_in_progress = f"{self.filename}.part"
-
- # Open the file
- self.upload_error = False
- try:
- self.f = open(self.filename_in_progress, "wb+")
- except:
- # This will only happen if someone is messing with the data dir while
- # OnionShare is running, but if it does make sure to throw an error
- self.upload_error = True
- self.f = tempfile.TemporaryFile("wb+")
-
- # Make all the file-like methods and attributes actually access the
- # TemporaryFile, except for write
- attrs = [
- "closed",
- "detach",
- "fileno",
- "flush",
- "isatty",
- "mode",
- "name",
- "peek",
- "raw",
- "read",
- "read1",
- "readable",
- "readinto",
- "readinto1",
- "readline",
- "readlines",
- "seek",
- "seekable",
- "tell",
- "truncate",
- "writable",
- "writelines",
- ]
- for attr in attrs:
- setattr(self, attr, getattr(self.f, attr))
-
- def write(self, b):
- """
- Custom write method that calls out to onionshare_write_func
- """
- if self.upload_error or (not self.onionshare_request.stop_q.empty()):
- self.close()
- self.onionshare_request.close()
- return
-
- try:
- bytes_written = self.f.write(b)
- self.onionshare_write_func(self.onionshare_filename, bytes_written)
-
- except:
- self.upload_error = True
-
- def close(self):
- """
- Custom close method that calls out to onionshare_close_func
- """
- try:
- self.f.close()
-
- if not self.upload_error:
- # Rename the in progress file to the final filename
- os.rename(self.filename_in_progress, self.filename)
-
- except:
- self.upload_error = True
-
- self.onionshare_close_func(self.onionshare_filename, self.upload_error)
-
-
-class ReceiveModeRequest(Request):
- """
- A custom flask Request object that keeps track of how much data has been
- uploaded for each file, for receive mode.
- """
-
- def __init__(self, environ, populate_request=True, shallow=False):
- super(ReceiveModeRequest, self).__init__(environ, populate_request, shallow)
- self.web = environ["web"]
- self.stop_q = environ["stop_q"]
-
- self.web.common.log("ReceiveModeRequest", "__init__")
-
- # Prevent running the close() method more than once
- self.closed = False
-
- # Is this a valid upload request?
- self.upload_request = False
- if self.method == "POST":
- if self.path == "/upload" or self.path == "/upload-ajax":
- self.upload_request = True
-
- if self.upload_request:
- # No errors yet
- self.upload_error = False
-
- # Figure out what files should be saved
- now = datetime.now()
- date_dir = now.strftime("%Y-%m-%d")
- time_dir = now.strftime("%H.%M.%S")
- self.receive_mode_dir = os.path.join(
- self.web.settings.get("receive", "data_dir"), date_dir, time_dir
- )
-
- # Create that directory, which shouldn't exist yet
- try:
- os.makedirs(self.receive_mode_dir, 0o700, exist_ok=False)
- except OSError:
- # If this directory already exists, maybe someone else is uploading files at
- # the same second, so use a different name in that case
- if os.path.exists(self.receive_mode_dir):
- # Keep going until we find a directory name that's available
- i = 1
- while True:
- new_receive_mode_dir = f"{self.receive_mode_dir}-{i}"
- try:
- os.makedirs(new_receive_mode_dir, 0o700, exist_ok=False)
- self.receive_mode_dir = new_receive_mode_dir
- break
- except OSError:
- pass
- i += 1
- # Failsafe
- if i == 100:
- self.web.common.log(
- "ReceiveModeRequest",
- "__init__",
- "Error finding available receive mode directory",
- )
- self.upload_error = True
- break
- except PermissionError:
- self.web.add_request(
- self.web.REQUEST_ERROR_DATA_DIR_CANNOT_CREATE,
- request.path,
- {"receive_mode_dir": self.receive_mode_dir},
- )
- print(
- f"Could not create OnionShare data folder: {self.receive_mode_dir}"
- )
- self.web.common.log(
- "ReceiveModeRequest",
- "__init__",
- "Permission denied creating receive mode directory",
- )
- self.upload_error = True
-
- # If there's an error so far, finish early
- if self.upload_error:
- return
-
- # A dictionary that maps filenames to the bytes uploaded so far
- self.progress = {}
-
- # Prevent new uploads if we've said so (timer expired)
- if self.web.receive_mode.can_upload:
-
- # Create an history_id, attach it to the request
- self.history_id = self.web.receive_mode.cur_history_id
- self.web.receive_mode.cur_history_id += 1
-
- # Figure out the content length
- try:
- self.content_length = int(self.headers["Content-Length"])
- except:
- self.content_length = 0
-
- date_str = datetime.now().strftime("%b %d, %I:%M%p")
- size_str = self.web.common.human_readable_filesize(self.content_length)
- print(f"{date_str}: Upload of total size {size_str} is starting")
-
- # Don't tell the GUI that a request has started until we start receiving files
- self.told_gui_about_request = False
-
- self.previous_file = None
-
- def _get_file_stream(
- self, total_content_length, content_type, filename=None, content_length=None
- ):
- """
- This gets called for each file that gets uploaded, and returns an file-like
- writable stream.
- """
- if self.upload_request:
- if not self.told_gui_about_request:
- # Tell the GUI about the request
- self.web.add_request(
- self.web.REQUEST_STARTED,
- self.path,
- {"id": self.history_id, "content_length": self.content_length},
- )
- self.web.receive_mode.uploads_in_progress.append(self.history_id)
-
- self.told_gui_about_request = True
-
- self.filename = secure_filename(filename)
-
- self.progress[self.filename] = {"uploaded_bytes": 0, "complete": False}
-
- f = ReceiveModeFile(
- self, self.filename, self.file_write_func, self.file_close_func
- )
- if f.upload_error:
- self.web.common.log(
- "ReceiveModeRequest", "_get_file_stream", "Error creating file"
- )
- self.upload_error = True
- return f
-
- def close(self):
- """
- Closing the request.
- """
- super(ReceiveModeRequest, self).close()
-
- # Prevent calling this method more than once per request
- if self.closed:
- return
- self.closed = True
-
- self.web.common.log("ReceiveModeRequest", "close")
-
- try:
- if self.told_gui_about_request:
- history_id = self.history_id
-
- if (
- not self.web.stop_q.empty()
- or not self.progress[self.filename]["complete"]
- ):
- # Inform the GUI that the upload has canceled
- self.web.add_request(
- self.web.REQUEST_UPLOAD_CANCELED, self.path, {"id": history_id}
- )
- else:
- # Inform the GUI that the upload has finished
- self.web.add_request(
- self.web.REQUEST_UPLOAD_FINISHED, self.path, {"id": history_id}
- )
- self.web.receive_mode.uploads_in_progress.remove(history_id)
-
- except AttributeError:
- pass
-
- def file_write_func(self, filename, length):
- """
- This function gets called when a specific file is written to.
- """
- if self.closed:
- return
-
- if self.upload_request:
- self.progress[filename]["uploaded_bytes"] += length
-
- if self.previous_file != filename:
- self.previous_file = filename
-
- size_str = self.web.common.human_readable_filesize(
- self.progress[filename]["uploaded_bytes"]
- )
- print(f"\r=> {size_str} {filename} ", end="")
-
- # Update the GUI on the upload progress
- if self.told_gui_about_request:
- self.web.add_request(
- self.web.REQUEST_PROGRESS,
- self.path,
- {"id": self.history_id, "progress": self.progress},
- )
-
- def file_close_func(self, filename, upload_error=False):
- """
- This function gets called when a specific file is closed.
- """
- self.progress[filename]["complete"] = True
-
- # If the file tells us there was an upload error, let the request know as well
- if upload_error:
- self.upload_error = True
diff --git a/desktop/onionshare/web/send_base_mode.py b/desktop/onionshare/web/send_base_mode.py
deleted file mode 100644
index 9d5f876b..00000000
--- a/desktop/onionshare/web/send_base_mode.py
+++ /dev/null
@@ -1,323 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-OnionShare | https://onionshare.org/
-
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-
-import os
-import sys
-import tempfile
-import mimetypes
-import gzip
-from flask import Response, request, render_template, make_response
-
-from .. import strings
-
-
-class SendBaseModeWeb:
- """
- All of the web logic shared between share and website mode (modes where the user sends files)
- """
-
- def __init__(self, common, web):
- super(SendBaseModeWeb, self).__init__()
- self.common = common
- self.web = web
-
- # Information about the file to be shared
- self.is_zipped = False
- self.download_filename = None
- self.download_filesize = None
- self.gzip_filename = None
- self.gzip_filesize = None
- self.zip_writer = None
-
- # If autostop_sharing, only allow one download at a time
- self.download_in_progress = False
-
- # This tracks the history id
- self.cur_history_id = 0
-
- self.define_routes()
- self.init()
-
- def set_file_info(self, filenames, processed_size_callback=None):
- """
- Build a data structure that describes the list of files
- """
- # If there's just one folder, replace filenames with a list of files inside that folder
- if len(filenames) == 1 and os.path.isdir(filenames[0]):
- filenames = [
- os.path.join(filenames[0], x) for x in os.listdir(filenames[0])
- ]
-
- # Re-initialize
- self.files = {} # Dictionary mapping file paths to filenames on disk
- self.root_files = (
- {}
- ) # This is only the root files and dirs, as opposed to all of them
- self.cleanup_filenames = []
- self.cur_history_id = 0
- self.file_info = {"files": [], "dirs": []}
- self.gzip_individual_files = {}
- self.init()
-
- # Build the file list
- for filename in filenames:
- basename = os.path.basename(filename.rstrip("/"))
-
- # If it's a filename, add it
- if os.path.isfile(filename):
- self.files[basename] = filename
- self.root_files[basename] = filename
-
- # If it's a directory, add it recursively
- elif os.path.isdir(filename):
- self.root_files[basename + "/"] = filename
-
- for root, _, nested_filenames in os.walk(filename):
- # Normalize the root path. So if the directory name is "/home/user/Documents/some_folder",
- # and it has a nested folder foobar, the root is "/home/user/Documents/some_folder/foobar".
- # The normalized_root should be "some_folder/foobar"
- normalized_root = os.path.join(
- basename, root[len(filename) :].lstrip("/")
- ).rstrip("/")
-
- # Add the dir itself
- self.files[normalized_root + "/"] = root
-
- # Add the files in this dir
- for nested_filename in nested_filenames:
- self.files[
- os.path.join(normalized_root, nested_filename)
- ] = os.path.join(root, nested_filename)
-
- self.set_file_info_custom(filenames, processed_size_callback)
-
- def directory_listing(self, filenames, path="", filesystem_path=None):
- # Tell the GUI about the directory listing
- history_id = self.cur_history_id
- self.cur_history_id += 1
- self.web.add_request(
- self.web.REQUEST_INDIVIDUAL_FILE_STARTED,
- f"/{path}",
- {"id": history_id, "method": request.method, "status_code": 200},
- )
-
- breadcrumbs = [("☗", "/")]
- parts = path.split("/")[:-1]
- for i in range(len(parts)):
- breadcrumbs.append((parts[i], f"/{'/'.join(parts[0 : i + 1])}/"))
- breadcrumbs_leaf = breadcrumbs.pop()[0]
-
- # If filesystem_path is None, this is the root directory listing
- files, dirs = self.build_directory_listing(filenames, filesystem_path)
- r = self.directory_listing_template(
- path, files, dirs, breadcrumbs, breadcrumbs_leaf
- )
- return self.web.add_security_headers(r)
-
- def build_directory_listing(self, filenames, filesystem_path):
- files = []
- dirs = []
-
- for filename in filenames:
- if filesystem_path:
- this_filesystem_path = os.path.join(filesystem_path, filename)
- else:
- this_filesystem_path = self.files[filename]
-
- is_dir = os.path.isdir(this_filesystem_path)
-
- if is_dir:
- dirs.append({"basename": filename})
- else:
- size = os.path.getsize(this_filesystem_path)
- size_human = self.common.human_readable_filesize(size)
- files.append({"basename": filename, "size_human": size_human})
- return files, dirs
-
- def stream_individual_file(self, filesystem_path):
- """
- Return a flask response that's streaming the download of an individual file, and gzip
- compressing it if the browser supports it.
- """
- use_gzip = self.should_use_gzip()
-
- # gzip compress the individual file, if it hasn't already been compressed
- if use_gzip:
- if filesystem_path not in self.gzip_individual_files:
- gzip_filename = tempfile.mkstemp("wb+")[1]
- self._gzip_compress(filesystem_path, gzip_filename, 6, None)
- self.gzip_individual_files[filesystem_path] = gzip_filename
-
- # Make sure the gzip file gets cleaned up when onionshare stops
- self.cleanup_filenames.append(gzip_filename)
-
- file_to_download = self.gzip_individual_files[filesystem_path]
- filesize = os.path.getsize(self.gzip_individual_files[filesystem_path])
- else:
- file_to_download = filesystem_path
- filesize = os.path.getsize(filesystem_path)
-
- path = request.path
-
- # Tell GUI the individual file started
- history_id = self.cur_history_id
- self.cur_history_id += 1
-
- # Only GET requests are allowed, any other method should fail
- if request.method != "GET":
- return self.web.error405(history_id)
-
- self.web.add_request(
- self.web.REQUEST_INDIVIDUAL_FILE_STARTED,
- path,
- {"id": history_id, "filesize": filesize},
- )
-
- def generate():
- chunk_size = 102400 # 100kb
-
- fp = open(file_to_download, "rb")
- done = False
- while not done:
- chunk = fp.read(chunk_size)
- if chunk == b"":
- done = True
- else:
- try:
- yield chunk
-
- # Tell GUI the progress
- downloaded_bytes = fp.tell()
- percent = (1.0 * downloaded_bytes / filesize) * 100
- if (
- not self.web.is_gui
- or self.common.platform == "Linux"
- or self.common.platform == "BSD"
- ):
- sys.stdout.write(
- "\r{0:s}, {1:.2f}% ".format(
- self.common.human_readable_filesize(
- downloaded_bytes
- ),
- percent,
- )
- )
- sys.stdout.flush()
-
- self.web.add_request(
- self.web.REQUEST_INDIVIDUAL_FILE_PROGRESS,
- path,
- {
- "id": history_id,
- "bytes": downloaded_bytes,
- "filesize": filesize,
- },
- )
- done = False
- except:
- # Looks like the download was canceled
- done = True
-
- # Tell the GUI the individual file was canceled
- self.web.add_request(
- self.web.REQUEST_INDIVIDUAL_FILE_CANCELED,
- path,
- {"id": history_id},
- )
-
- fp.close()
-
- if self.common.platform != "Darwin":
- sys.stdout.write("\n")
-
- basename = os.path.basename(filesystem_path)
-
- r = Response(generate())
- if use_gzip:
- r.headers.set("Content-Encoding", "gzip")
- r.headers.set("Content-Length", filesize)
- r.headers.set("Content-Disposition", "inline", filename=basename)
- r = self.web.add_security_headers(r)
- (content_type, _) = mimetypes.guess_type(basename, strict=False)
- if content_type is not None:
- r.headers.set("Content-Type", content_type)
- return r
-
- def should_use_gzip(self):
- """
- Should we use gzip for this browser?
- """
- return (not self.is_zipped) and (
- "gzip" in request.headers.get("Accept-Encoding", "").lower()
- )
-
- def _gzip_compress(
- self, input_filename, output_filename, level, processed_size_callback=None
- ):
- """
- Compress a file with gzip, without loading the whole thing into memory
- Thanks: https://stackoverflow.com/questions/27035296/python-how-to-gzip-a-large-text-file-without-memoryerror
- """
- bytes_processed = 0
- blocksize = 1 << 16 # 64kB
- with open(input_filename, "rb") as input_file:
- output_file = gzip.open(output_filename, "wb", level)
- while True:
- if processed_size_callback is not None:
- processed_size_callback(bytes_processed)
-
- block = input_file.read(blocksize)
- if len(block) == 0:
- break
- output_file.write(block)
- bytes_processed += blocksize
-
- output_file.close()
-
- def init(self):
- """
- Inherited class will implement this
- """
- pass
-
- def define_routes(self):
- """
- Inherited class will implement this
- """
- pass
-
- def directory_listing_template(self):
- """
- Inherited class will implement this. It should call render_template and return
- the response.
- """
- pass
-
- def set_file_info_custom(self, filenames, processed_size_callback):
- """
- Inherited class will implement this.
- """
- pass
-
- def render_logic(self, path=""):
- """
- Inherited class will implement this.
- """
- pass
diff --git a/desktop/onionshare/web/share_mode.py b/desktop/onionshare/web/share_mode.py
deleted file mode 100644
index ccd29e1c..00000000
--- a/desktop/onionshare/web/share_mode.py
+++ /dev/null
@@ -1,412 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-OnionShare | https://onionshare.org/
-
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-
-import os
-import sys
-import tempfile
-import zipfile
-import mimetypes
-from flask import Response, request, render_template, make_response
-
-from .send_base_mode import SendBaseModeWeb
-from .. import strings
-
-
-class ShareModeWeb(SendBaseModeWeb):
- """
- All of the web logic for share mode
- """
-
- def init(self):
- self.common.log("ShareModeWeb", "init")
-
- # Allow downloading individual files if "Stop sharing after files have been sent" is unchecked
- self.download_individual_files = not self.web.settings.get(
- "share", "autostop_sharing"
- )
-
- def define_routes(self):
- """
- The web app routes for sharing files
- """
-
- @self.web.app.route("/", defaults={"path": ""})
- @self.web.app.route("/<path:path>")
- def index(path):
- """
- Render the template for the onionshare landing page.
- """
- self.web.add_request(self.web.REQUEST_LOAD, request.path)
-
- # Deny new downloads if "Stop sharing after files have been sent" is checked and there is
- # currently a download
- deny_download = (
- self.web.settings.get("share", "autostop_sharing")
- and self.download_in_progress
- )
- if deny_download:
- r = make_response(
- render_template("denied.html"),
- static_url_path=self.web.static_url_path,
- )
- return self.web.add_security_headers(r)
-
- # If download is allowed to continue, serve download page
- if self.should_use_gzip():
- self.filesize = self.gzip_filesize
- else:
- self.filesize = self.download_filesize
-
- return self.render_logic(path)
-
- @self.web.app.route("/download")
- def download():
- """
- Download the zip file.
- """
- # Deny new downloads if "Stop After First Download" is checked and there is
- # currently a download
- deny_download = (
- self.web.settings.get("share", "autostop_sharing")
- and self.download_in_progress
- )
- if deny_download:
- r = make_response(
- render_template(
- "denied.html", static_url_path=self.web.static_url_path
- )
- )
- return self.web.add_security_headers(r)
-
- # Prepare some variables to use inside generate() function below
- # which is outside of the request context
- shutdown_func = request.environ.get("werkzeug.server.shutdown")
- path = request.path
-
- # If this is a zipped file, then serve as-is. If it's not zipped, then,
- # if the http client supports gzip compression, gzip the file first
- # and serve that
- use_gzip = self.should_use_gzip()
- if use_gzip:
- file_to_download = self.gzip_filename
- self.filesize = self.gzip_filesize
- else:
- file_to_download = self.download_filename
- self.filesize = self.download_filesize
-
- # Tell GUI the download started
- history_id = self.cur_history_id
- self.cur_history_id += 1
- self.web.add_request(
- self.web.REQUEST_STARTED, path, {"id": history_id, "use_gzip": use_gzip}
- )
-
- basename = os.path.basename(self.download_filename)
-
- def generate():
- # Starting a new download
- if self.web.settings.get("share", "autostop_sharing"):
- self.download_in_progress = True
-
- chunk_size = 102400 # 100kb
-
- fp = open(file_to_download, "rb")
- self.web.done = False
- canceled = False
- while not self.web.done:
- # The user has canceled the download, so stop serving the file
- if not self.web.stop_q.empty():
- self.web.add_request(
- self.web.REQUEST_CANCELED, path, {"id": history_id}
- )
- break
-
- chunk = fp.read(chunk_size)
- if chunk == b"":
- self.web.done = True
- else:
- try:
- yield chunk
-
- # tell GUI the progress
- downloaded_bytes = fp.tell()
- percent = (1.0 * downloaded_bytes / self.filesize) * 100
-
- # only output to stdout if running onionshare in CLI mode, or if using Linux (#203, #304)
- if (
- not self.web.is_gui
- or self.common.platform == "Linux"
- or self.common.platform == "BSD"
- ):
- sys.stdout.write(
- "\r{0:s}, {1:.2f}% ".format(
- self.common.human_readable_filesize(
- downloaded_bytes
- ),
- percent,
- )
- )
- sys.stdout.flush()
-
- self.web.add_request(
- self.web.REQUEST_PROGRESS,
- path,
- {"id": history_id, "bytes": downloaded_bytes},
- )
- self.web.done = False
- except:
- # looks like the download was canceled
- self.web.done = True
- canceled = True
-
- # tell the GUI the download has canceled
- self.web.add_request(
- self.web.REQUEST_CANCELED, path, {"id": history_id}
- )
-
- fp.close()
-
- if self.common.platform != "Darwin":
- sys.stdout.write("\n")
-
- # Download is finished
- if self.web.settings.get("share", "autostop_sharing"):
- self.download_in_progress = False
-
- # Close the server, if necessary
- if self.web.settings.get("share", "autostop_sharing") and not canceled:
- print("Stopped because transfer is complete")
- self.web.running = False
- try:
- if shutdown_func is None:
- raise RuntimeError("Not running with the Werkzeug Server")
- shutdown_func()
- except:
- pass
-
- r = Response(generate())
- if use_gzip:
- r.headers.set("Content-Encoding", "gzip")
- r.headers.set("Content-Length", self.filesize)
- r.headers.set("Content-Disposition", "attachment", filename=basename)
- r = self.web.add_security_headers(r)
- # guess content type
- (content_type, _) = mimetypes.guess_type(basename, strict=False)
- if content_type is not None:
- r.headers.set("Content-Type", content_type)
- return r
-
- def directory_listing_template(
- self, path, files, dirs, breadcrumbs, breadcrumbs_leaf
- ):
- return make_response(
- render_template(
- "send.html",
- file_info=self.file_info,
- files=files,
- dirs=dirs,
- breadcrumbs=breadcrumbs,
- breadcrumbs_leaf=breadcrumbs_leaf,
- filename=os.path.basename(self.download_filename),
- filesize=self.filesize,
- filesize_human=self.common.human_readable_filesize(
- self.download_filesize
- ),
- is_zipped=self.is_zipped,
- static_url_path=self.web.static_url_path,
- download_individual_files=self.download_individual_files,
- )
- )
-
- def set_file_info_custom(self, filenames, processed_size_callback):
- self.common.log("ShareModeWeb", "set_file_info_custom")
- self.web.cancel_compression = False
- self.build_zipfile_list(filenames, processed_size_callback)
-
- def render_logic(self, path=""):
- if path in self.files:
- filesystem_path = self.files[path]
-
- # If it's a directory
- if os.path.isdir(filesystem_path):
- # Render directory listing
- filenames = []
- for filename in os.listdir(filesystem_path):
- if os.path.isdir(os.path.join(filesystem_path, filename)):
- filenames.append(filename + "/")
- else:
- filenames.append(filename)
- filenames.sort()
- return self.directory_listing(filenames, path, filesystem_path)
-
- # If it's a file
- elif os.path.isfile(filesystem_path):
- if self.download_individual_files:
- return self.stream_individual_file(filesystem_path)
- else:
- history_id = self.cur_history_id
- self.cur_history_id += 1
- return self.web.error404(history_id)
-
- # If it's not a directory or file, throw a 404
- else:
- history_id = self.cur_history_id
- self.cur_history_id += 1
- return self.web.error404(history_id)
- else:
- # Special case loading /
-
- if path == "":
- # Root directory listing
- filenames = list(self.root_files)
- filenames.sort()
- return self.directory_listing(filenames, path)
-
- else:
- # If the path isn't found, throw a 404
- history_id = self.cur_history_id
- self.cur_history_id += 1
- return self.web.error404(history_id)
-
- def build_zipfile_list(self, filenames, processed_size_callback=None):
- self.common.log("ShareModeWeb", "build_zipfile_list")
- for filename in filenames:
- info = {
- "filename": filename,
- "basename": os.path.basename(filename.rstrip("/")),
- }
- if os.path.isfile(filename):
- info["size"] = os.path.getsize(filename)
- info["size_human"] = self.common.human_readable_filesize(info["size"])
- self.file_info["files"].append(info)
- if os.path.isdir(filename):
- info["size"] = self.common.dir_size(filename)
- info["size_human"] = self.common.human_readable_filesize(info["size"])
- self.file_info["dirs"].append(info)
- self.file_info["files"] = sorted(
- self.file_info["files"], key=lambda k: k["basename"]
- )
- self.file_info["dirs"] = sorted(
- self.file_info["dirs"], key=lambda k: k["basename"]
- )
-
- # Check if there's only 1 file and no folders
- if len(self.file_info["files"]) == 1 and len(self.file_info["dirs"]) == 0:
- self.download_filename = self.file_info["files"][0]["filename"]
- self.download_filesize = self.file_info["files"][0]["size"]
-
- # Compress the file with gzip now, so we don't have to do it on each request
- self.gzip_filename = tempfile.mkstemp("wb+")[1]
- self._gzip_compress(
- self.download_filename, self.gzip_filename, 6, processed_size_callback
- )
- self.gzip_filesize = os.path.getsize(self.gzip_filename)
-
- # Make sure the gzip file gets cleaned up when onionshare stops
- self.cleanup_filenames.append(self.gzip_filename)
-
- self.is_zipped = False
-
- else:
- # Zip up the files and folders
- self.zip_writer = ZipWriter(
- self.common, processed_size_callback=processed_size_callback
- )
- self.download_filename = self.zip_writer.zip_filename
- for info in self.file_info["files"]:
- self.zip_writer.add_file(info["filename"])
- # Canceling early?
- if self.web.cancel_compression:
- self.zip_writer.close()
- return False
-
- for info in self.file_info["dirs"]:
- if not self.zip_writer.add_dir(info["filename"]):
- return False
-
- self.zip_writer.close()
- self.download_filesize = os.path.getsize(self.download_filename)
-
- # Make sure the zip file gets cleaned up when onionshare stops
- self.cleanup_filenames.append(self.zip_writer.zip_filename)
-
- self.is_zipped = True
-
- return True
-
-
-class ZipWriter(object):
- """
- ZipWriter accepts files and directories and compresses them into a zip file
- with. If a zip_filename is not passed in, it will use the default onionshare
- filename.
- """
-
- def __init__(self, common, zip_filename=None, processed_size_callback=None):
- self.common = common
- self.cancel_compression = False
-
- if zip_filename:
- self.zip_filename = zip_filename
- else:
- self.zip_filename = (
- f"{tempfile.mkdtemp()}/onionshare_{self.common.random_string(4, 6)}.zip"
- )
-
- self.z = zipfile.ZipFile(self.zip_filename, "w", allowZip64=True)
- self.processed_size_callback = processed_size_callback
- if self.processed_size_callback is None:
- self.processed_size_callback = lambda _: None
- self._size = 0
- self.processed_size_callback(self._size)
-
- def add_file(self, filename):
- """
- Add a file to the zip archive.
- """
- self.z.write(filename, os.path.basename(filename), zipfile.ZIP_DEFLATED)
- self._size += os.path.getsize(filename)
- self.processed_size_callback(self._size)
-
- def add_dir(self, filename):
- """
- Add a directory, and all of its children, to the zip archive.
- """
- dir_to_strip = os.path.dirname(filename.rstrip("/")) + "/"
- for dirpath, dirnames, filenames in os.walk(filename):
- for f in filenames:
- # Canceling early?
- if self.cancel_compression:
- return False
-
- full_filename = os.path.join(dirpath, f)
- if not os.path.islink(full_filename):
- arc_filename = full_filename[len(dir_to_strip) :]
- self.z.write(full_filename, arc_filename, zipfile.ZIP_DEFLATED)
- self._size += os.path.getsize(full_filename)
- self.processed_size_callback(self._size)
-
- return True
-
- def close(self):
- """
- Close the zip archive.
- """
- self.z.close()
diff --git a/desktop/onionshare/web/web.py b/desktop/onionshare/web/web.py
deleted file mode 100644
index 117ea83a..00000000
--- a/desktop/onionshare/web/web.py
+++ /dev/null
@@ -1,426 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-OnionShare | https://onionshare.org/
-
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-
-import hmac
-import logging
-import os
-import queue
-import socket
-import sys
-import tempfile
-import requests
-from distutils.version import LooseVersion as Version
-from urllib.request import urlopen
-
-import flask
-from flask import (
- Flask,
- request,
- render_template,
- abort,
- make_response,
- send_file,
- __version__ as flask_version,
-)
-from flask_httpauth import HTTPBasicAuth
-from flask_socketio import SocketIO
-
-from .. import strings
-
-from .share_mode import ShareModeWeb
-from .receive_mode import ReceiveModeWeb, ReceiveModeWSGIMiddleware, ReceiveModeRequest
-from .website_mode import WebsiteModeWeb
-from .chat_mode import ChatModeWeb
-
-# Stub out flask's show_server_banner function, to avoiding showing warnings that
-# are not applicable to OnionShare
-def stubbed_show_server_banner(env, debug, app_import_path, eager_loading):
- pass
-
-
-try:
- flask.cli.show_server_banner = stubbed_show_server_banner
-except:
- pass
-
-
-class Web:
- """
- The Web object is the OnionShare web server, powered by flask
- """
-
- REQUEST_LOAD = 0
- REQUEST_STARTED = 1
- REQUEST_PROGRESS = 2
- REQUEST_CANCELED = 3
- REQUEST_RATE_LIMIT = 4
- REQUEST_UPLOAD_FILE_RENAMED = 5
- REQUEST_UPLOAD_SET_DIR = 6
- REQUEST_UPLOAD_FINISHED = 7
- REQUEST_UPLOAD_CANCELED = 8
- REQUEST_INDIVIDUAL_FILE_STARTED = 9
- REQUEST_INDIVIDUAL_FILE_PROGRESS = 10
- REQUEST_INDIVIDUAL_FILE_CANCELED = 11
- REQUEST_ERROR_DATA_DIR_CANNOT_CREATE = 12
- REQUEST_OTHER = 13
- REQUEST_INVALID_PASSWORD = 14
-
- def __init__(self, common, is_gui, mode_settings, mode="share"):
- self.common = common
- self.common.log("Web", "__init__", f"is_gui={is_gui}, mode={mode}")
-
- self.settings = mode_settings
-
- # The flask app
- self.app = Flask(
- __name__,
- static_folder=self.common.get_resource_path("static"),
- static_url_path=f"/static_{self.common.random_string(16)}", # randomize static_url_path to avoid making /static unusable
- template_folder=self.common.get_resource_path("templates"),
- )
- self.app.secret_key = self.common.random_string(8)
- self.generate_static_url_path()
- self.auth = HTTPBasicAuth()
- self.auth.error_handler(self.error401)
-
- # Verbose mode?
- if self.common.verbose:
- self.verbose_mode()
-
- # Are we running in GUI mode?
- self.is_gui = is_gui
-
- # If the user stops the server while a transfer is in progress, it should
- # immediately stop the transfer. In order to make it thread-safe, stop_q
- # is a queue. If anything is in it, then the user stopped the server
- self.stop_q = queue.Queue()
-
- # Are we using receive mode?
- self.mode = mode
- if self.mode == "receive":
- # Use custom WSGI middleware, to modify environ
- self.app.wsgi_app = ReceiveModeWSGIMiddleware(self.app.wsgi_app, self)
- # Use a custom Request class to track upload progess
- self.app.request_class = ReceiveModeRequest
-
- # Starting in Flask 0.11, render_template_string autoescapes template variables
- # by default. To prevent content injection through template variables in
- # earlier versions of Flask, we force autoescaping in the Jinja2 template
- # engine if we detect a Flask version with insecure default behavior.
- if Version(flask_version) < Version("0.11"):
- # Monkey-patch in the fix from https://github.com/pallets/flask/commit/99c99c4c16b1327288fd76c44bc8635a1de452bc
- Flask.select_jinja_autoescape = self._safe_select_jinja_autoescape
-
- self.security_headers = [
- ("X-Frame-Options", "DENY"),
- ("X-Xss-Protection", "1; mode=block"),
- ("X-Content-Type-Options", "nosniff"),
- ("Referrer-Policy", "no-referrer"),
- ("Server", "OnionShare"),
- ]
-
- self.q = queue.Queue()
- self.password = None
-
- self.reset_invalid_passwords()
-
- self.done = False
-
- # shutting down the server only works within the context of flask, so the easiest way to do it is over http
- self.shutdown_password = self.common.random_string(16)
-
- # Keep track if the server is running
- self.running = False
-
- # Define the web app routes
- self.define_common_routes()
-
- # Create the mode web object, which defines its own routes
- self.share_mode = None
- self.receive_mode = None
- self.website_mode = None
- self.chat_mode = None
- if self.mode == "share":
- self.share_mode = ShareModeWeb(self.common, self)
- elif self.mode == "receive":
- self.receive_mode = ReceiveModeWeb(self.common, self)
- elif self.mode == "website":
- self.website_mode = WebsiteModeWeb(self.common, self)
- elif self.mode == "chat":
- self.socketio = SocketIO()
- self.socketio.init_app(self.app)
- self.chat_mode = ChatModeWeb(self.common, self)
-
- def get_mode(self):
- if self.mode == "share":
- return self.share_mode
- elif self.mode == "receive":
- return self.receive_mode
- elif self.mode == "website":
- return self.website_mode
- elif self.mode == "chat":
- return self.chat_mode
- else:
- return None
-
- def generate_static_url_path(self):
- # The static URL path has a 128-bit random number in it to avoid having name
- # collisions with files that might be getting shared
- self.static_url_path = f"/static_{self.common.random_string(16)}"
- self.common.log(
- "Web",
- "generate_static_url_path",
- f"new static_url_path is {self.static_url_path}",
- )
-
- # Update the flask route to handle the new static URL path
- self.app.static_url_path = self.static_url_path
- self.app.add_url_rule(
- self.static_url_path + "/<path:filename>",
- endpoint="static",
- view_func=self.app.send_static_file,
- )
-
- def define_common_routes(self):
- """
- Common web app routes between all modes.
- """
-
- @self.auth.get_password
- def get_pw(username):
- if username == "onionshare":
- return self.password
- else:
- return None
-
- @self.app.before_request
- def conditional_auth_check():
- # Allow static files without basic authentication
- if request.path.startswith(self.static_url_path + "/"):
- return None
-
- # If public mode is disabled, require authentication
- if not self.settings.get("general", "public"):
-
- @self.auth.login_required
- def _check_login():
- return None
-
- return _check_login()
-
- @self.app.errorhandler(404)
- def not_found(e):
- mode = self.get_mode()
- history_id = mode.cur_history_id
- mode.cur_history_id += 1
- return self.error404(history_id)
-
- @self.app.route("/<password_candidate>/shutdown")
- def shutdown(password_candidate):
- """
- Stop the flask web server, from the context of an http request.
- """
- if password_candidate == self.shutdown_password:
- self.force_shutdown()
- return ""
- abort(404)
-
- if self.mode != "website":
-
- @self.app.route("/favicon.ico")
- def favicon():
- return send_file(
- f"{self.common.get_resource_path('static')}/img/favicon.ico"
- )
-
- def error401(self):
- auth = request.authorization
- if auth:
- if (
- auth["username"] == "onionshare"
- and auth["password"] not in self.invalid_passwords
- ):
- print(f"Invalid password guess: {auth['password']}")
- self.add_request(Web.REQUEST_INVALID_PASSWORD, data=auth["password"])
-
- self.invalid_passwords.append(auth["password"])
- self.invalid_passwords_count += 1
-
- if self.invalid_passwords_count == 20:
- self.add_request(Web.REQUEST_RATE_LIMIT)
- self.force_shutdown()
- print(
- "Someone has made too many wrong attempts to guess your password, so OnionShare has stopped the server. Start sharing again and send the recipient a new address to share."
- )
-
- r = make_response(
- render_template("401.html", static_url_path=self.static_url_path), 401
- )
- return self.add_security_headers(r)
-
- def error403(self):
- self.add_request(Web.REQUEST_OTHER, request.path)
- r = make_response(
- render_template("403.html", static_url_path=self.static_url_path), 403
- )
- return self.add_security_headers(r)
-
- def error404(self, history_id):
- self.add_request(
- self.REQUEST_INDIVIDUAL_FILE_STARTED,
- request.path,
- {"id": history_id, "status_code": 404},
- )
-
- self.add_request(Web.REQUEST_OTHER, request.path)
- r = make_response(
- render_template("404.html", static_url_path=self.static_url_path), 404
- )
- return self.add_security_headers(r)
-
- def error405(self, history_id):
- self.add_request(
- self.REQUEST_INDIVIDUAL_FILE_STARTED,
- request.path,
- {"id": history_id, "status_code": 405},
- )
-
- self.add_request(Web.REQUEST_OTHER, request.path)
- r = make_response(
- render_template("405.html", static_url_path=self.static_url_path), 405
- )
- return self.add_security_headers(r)
-
- def add_security_headers(self, r):
- """
- Add security headers to a request
- """
- for header, value in self.security_headers:
- r.headers.set(header, value)
- # Set a CSP header unless in website mode and the user has disabled it
- if not self.settings.get("website", "disable_csp") or self.mode != "website":
- r.headers.set(
- "Content-Security-Policy",
- "default-src 'self'; style-src 'self'; script-src 'self'; img-src 'self' data:;",
- )
- return r
-
- def _safe_select_jinja_autoescape(self, filename):
- if filename is None:
- return True
- return filename.endswith((".html", ".htm", ".xml", ".xhtml"))
-
- def add_request(self, request_type, path=None, data=None):
- """
- Add a request to the queue, to communicate with the GUI.
- """
- self.q.put({"type": request_type, "path": path, "data": data})
-
- def generate_password(self, saved_password=None):
- self.common.log("Web", "generate_password", f"saved_password={saved_password}")
- if saved_password != None and saved_password != "":
- self.password = saved_password
- self.common.log(
- "Web",
- "generate_password",
- f'saved_password sent, so password is: "{self.password}"',
- )
- else:
- self.password = self.common.build_password()
- self.common.log(
- "Web", "generate_password", f'built random password: "{self.password}"'
- )
-
- def verbose_mode(self):
- """
- Turn on verbose mode, which will log flask errors to a file.
- """
- flask_log_filename = os.path.join(self.common.build_data_dir(), "flask.log")
- log_handler = logging.FileHandler(flask_log_filename)
- log_handler.setLevel(logging.WARNING)
- self.app.logger.addHandler(log_handler)
-
- def reset_invalid_passwords(self):
- self.invalid_passwords_count = 0
- self.invalid_passwords = []
-
- def force_shutdown(self):
- """
- Stop the flask web server, from the context of the flask app.
- """
- # Shutdown the flask service
- try:
- func = request.environ.get("werkzeug.server.shutdown")
- if func is None:
- raise RuntimeError("Not running with the Werkzeug Server")
- func()
- except:
- pass
- self.running = False
-
- def start(self, port):
- """
- Start the flask web server.
- """
- self.common.log("Web", "start", f"port={port}")
-
- # Make sure the stop_q is empty when starting a new server
- while not self.stop_q.empty():
- try:
- self.stop_q.get(block=False)
- except queue.Empty:
- pass
-
- # In Whonix, listen on 0.0.0.0 instead of 127.0.0.1 (#220)
- if os.path.exists("/usr/share/anon-ws-base-files/workstation"):
- host = "0.0.0.0"
- else:
- host = "127.0.0.1"
-
- self.running = True
- if self.mode == "chat":
- self.socketio.run(self.app, host=host, port=port)
- else:
- self.app.run(host=host, port=port, threaded=True)
-
- def stop(self, port):
- """
- Stop the flask web server by loading /shutdown.
- """
- self.common.log("Web", "stop", "stopping server")
-
- # Let the mode know that the user stopped the server
- self.stop_q.put(True)
-
- # To stop flask, load http://shutdown:[shutdown_password]@127.0.0.1/[shutdown_password]/shutdown
- # (We're putting the shutdown_password in the path as well to make routing simpler)
- if self.running:
- if self.password:
- requests.get(
- f"http://127.0.0.1:{port}/{self.shutdown_password}/shutdown",
- auth=requests.auth.HTTPBasicAuth("onionshare", self.password),
- )
- else:
- requests.get(
- f"http://127.0.0.1:{port}/{self.shutdown_password}/shutdown"
- )
-
- # Reset any password that was in use
- self.password = None
diff --git a/desktop/onionshare/web/website_mode.py b/desktop/onionshare/web/website_mode.py
deleted file mode 100644
index 2838fc05..00000000
--- a/desktop/onionshare/web/website_mode.py
+++ /dev/null
@@ -1,124 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-OnionShare | https://onionshare.org/
-
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-
-import os
-import sys
-import tempfile
-import mimetypes
-from flask import Response, request, render_template, make_response
-
-from .send_base_mode import SendBaseModeWeb
-from .. import strings
-
-
-class WebsiteModeWeb(SendBaseModeWeb):
- """
- All of the web logic for website mode
- """
-
- def init(self):
- pass
-
- def define_routes(self):
- """
- The web app routes for sharing a website
- """
-
- @self.web.app.route("/", defaults={"path": ""})
- @self.web.app.route("/<path:path>")
- def path_public(path):
- return path_logic(path)
-
- def path_logic(path=""):
- """
- Render the onionshare website.
- """
- return self.render_logic(path)
-
- def directory_listing_template(
- self, path, files, dirs, breadcrumbs, breadcrumbs_leaf
- ):
- return make_response(
- render_template(
- "listing.html",
- path=path,
- files=files,
- dirs=dirs,
- breadcrumbs=breadcrumbs,
- breadcrumbs_leaf=breadcrumbs_leaf,
- static_url_path=self.web.static_url_path,
- )
- )
-
- def set_file_info_custom(self, filenames, processed_size_callback):
- self.common.log("WebsiteModeWeb", "set_file_info_custom")
- self.web.cancel_compression = True
-
- def render_logic(self, path=""):
- if path in self.files:
- filesystem_path = self.files[path]
-
- # If it's a directory
- if os.path.isdir(filesystem_path):
- # Is there an index.html?
- index_path = os.path.join(path, "index.html")
- if index_path in self.files:
- # Render it
- return self.stream_individual_file(self.files[index_path])
-
- else:
- # Otherwise, render directory listing
- filenames = []
- for filename in os.listdir(filesystem_path):
- if os.path.isdir(os.path.join(filesystem_path, filename)):
- filenames.append(filename + "/")
- else:
- filenames.append(filename)
- filenames.sort()
- return self.directory_listing(filenames, path, filesystem_path)
-
- # If it's a file
- elif os.path.isfile(filesystem_path):
- return self.stream_individual_file(filesystem_path)
-
- # If it's not a directory or file, throw a 404
- else:
- history_id = self.cur_history_id
- self.cur_history_id += 1
- return self.web.error404(history_id)
- else:
- # Special case loading /
-
- if path == "":
- index_path = "index.html"
- if index_path in self.files:
- # Render it
- return self.stream_individual_file(self.files[index_path])
- else:
- # Root directory listing
- filenames = list(self.root_files)
- filenames.sort()
- return self.directory_listing(filenames, path)
-
- else:
- # If the path isn't found, throw a 404
- history_id = self.cur_history_id
- self.cur_history_id += 1
- return self.web.error404(history_id)
diff --git a/desktop/pyproject.toml b/desktop/pyproject.toml
index 79ae4a43..0dcaa5e6 100644
--- a/desktop/pyproject.toml
+++ b/desktop/pyproject.toml
@@ -7,12 +7,13 @@ license = "GPLv3"
author = 'Micah Lee'
author_email = "micah@micahflee.com"
-[tool.briefcase.app.helloworld]
+[tool.briefcase.app.onionshare]
formal_name = "OnionShare"
description = "OnionShare lets you securely and anonymously send and receive files. It works by starting a web server, making it accessible as a Tor onion service, and generating an unguessable web address so others can download files from you, or upload files to you. It does _not_ require setting up a separate server or using a third party file-sharing service."
-icon = "src/helloworld/resources/helloworld"
+icon = "src/onionshare/resources/onionshare"
sources = ['src/onionshare']
requires = [
+ "onionshare-cli==0.1.3",
"Click",
"eventlet",
"Flask",
@@ -29,23 +30,19 @@ requires = [
"urllib3",
]
-[tool.briefcase.app.helloworld.macOS]
+[tool.briefcase.app.onionshare.macOS]
requires = []
-[tool.briefcase.app.helloworld.linux]
+[tool.briefcase.app.onionshare.linux]
requires = []
-system_requires = []
+system_requires = ["tor", "obfs4proxy"]
-[tool.briefcase.app.helloworld.windows]
+[tool.briefcase.app.onionshare.windows]
requires = ["pywin32"]
# Mobile deployments
-[tool.briefcase.app.helloworld.iOS]
+[tool.briefcase.app.onionshare.iOS]
requires = []
-[tool.briefcase.app.helloworld.android]
+[tool.briefcase.app.onionshare.android]
requires = []
-
-# TODO: Figure out tests with briefcase
-# Test dependencies: pytest, pytest-faulthandler, pytest-qt
-# Also probably https://pypi.org/project/pytest-briefcase/ \ No newline at end of file
diff --git a/desktop/setup.cfg b/desktop/setup.cfg
deleted file mode 100644
index 0a8df87a..00000000
--- a/desktop/setup.cfg
+++ /dev/null
@@ -1,2 +0,0 @@
-[wheel]
-universal = 1 \ No newline at end of file
diff --git a/desktop/setup.py b/desktop/setup.py
deleted file mode 100644
index ebecd40b..00000000
--- a/desktop/setup.py
+++ /dev/null
@@ -1,98 +0,0 @@
-#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-"""
-OnionShare | https://onionshare.org/
-
-Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""
-
-import os, sys, platform, tempfile
-from distutils.core import setup
-
-
-def file_list(path):
- files = []
- for filename in os.listdir(path):
- if os.path.isfile(os.path.join(path, filename)):
- files.append(os.path.join(path, filename))
- return files
-
-
-version = open("share/version.txt").read().strip()
-description = "OnionShare is an open source tool that lets you securely and anonymously share files, host websites, and chat with friends using the Tor network."
-
-author = "Micah Lee"
-author_email = "micah@micahflee.com"
-url = "https://onionshare.org"
-license = "GPL v3"
-keywords = "onion, share, onionshare, tor, anonymous, web server"
-classifiers = [
- "Programming Language :: Python :: 3",
- "Framework :: Flask",
- "Topic :: Communications :: File Sharing",
- "Topic :: Security :: Cryptography",
- "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
- "Intended Audience :: End Users/Desktop",
- "Operating System :: OS Independent",
- "Environment :: Web Environment",
-]
-data_files = [
- ("share/applications", ["install/org.onionshare.OnionShare.desktop"],),
- ("share/icons/hicolor/512x512/apps", ["install/org.onionshare.OnionShare.png"],),
- ("share/metainfo", ["install/org.onionshare.OnionShare.appdata.xml"],),
- ("share/onionshare", file_list("share")),
- ("share/onionshare/images", file_list("share/images")),
- ("share/onionshare/locale", file_list("share/locale")),
- ("share/onionshare/templates", file_list("share/templates"),),
- ("share/onionshare/static/css", file_list("share/static/css"),),
- ("share/onionshare/static/img", file_list("share/static/img"),),
- ("share/onionshare/static/js", file_list("share/static/js"),),
-]
-if not platform.system().endswith("BSD") and platform.system() != "DragonFly":
- data_files.append(
- (
- "share/nautilus-python/extensions/",
- ["install/scripts/onionshare-nautilus.py"],
- )
- )
-
-setup(
- name="onionshare",
- version=version,
- description=description,
- author=author,
- author_email=author_email,
- maintainer=author,
- maintainer_email=author_email,
- url=url,
- license=license,
- keywords=keywords,
- classifiers=classifiers,
- packages=[
- "onionshare",
- "onionshare.web",
- "onionshare_gui",
- "onionshare_gui.tab",
- "onionshare_gui.tab.mode",
- "onionshare_gui.tab.mode.share_mode",
- "onionshare_gui.tab.mode.receive_mode",
- "onionshare_gui.tab.mode.website_mode",
- "onionshare_gui.tab.mode.chat_mode",
- ],
- include_package_data=True,
- scripts=["install/scripts/onionshare", "install/scripts/onionshare-gui"],
- data_files=data_files,
-)
diff --git a/desktop/share/static/css/style.css b/desktop/share/static/css/style.css
deleted file mode 100644
index 88d9cb79..00000000
--- a/desktop/share/static/css/style.css
+++ /dev/null
@@ -1,393 +0,0 @@
-.clearfix:after {
- content: ".";
- display: block;
- clear: both;
- visibility: hidden;
- line-height: 0;
- height: 0;
-}
-
-body {
- margin: 0;
- font-family: Helvetica, sans-serif;
-}
-
-.d-flex {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- align-items: center;
-}
-
-header {
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
- background: #fcfcfc;
- background: -webkit-linear-gradient(top, #fcfcfc 0%, #f2f2f2 100%);
- padding: 0.8rem;
-}
-
-header .logo {
- vertical-align: middle;
- width: 45px;
- height: 45px;
-}
-
-header h1 {
- display: inline-block;
- margin: 0 0 0 0.5rem;
- vertical-align: middle;
- font-weight: normal;
- font-size: 1.5rem;
- color: #666666;
-}
-
-header .information {
- font-size: 1rem;
-}
-
-.button {
- color: #ffffff;
- background-color: #4e064f;
- padding: 10px;
- border: 0;
- border-radius: 5px;
- text-decoration: none;
- margin-left: 1rem;
- cursor: pointer;
-}
-
-a.button:visited {
- color: #ffffff;
-}
-
-.close-button {
- color: #ffffff;
- background-color: #c90c0c;
- padding: 10px;
- border: 0;
- border-radius: 5px;
- text-decoration: none;
- margin-left: 1rem;
- cursor: pointer;
- position: absolute;
- right: 10px;
- bottom: 10px;
-}
-
-ul.breadcrumbs {
- display: block;
- list-style: none;
- margin: 10px 0;
- padding: 0;
-}
-
-ul.breadcrumbs li {
- display: inline-block;
- list-style: none;
- margin: 0;
- padding: 5px;
- color: #999999;
-}
-
-ul.breadcrumbs li span.sep {
- padding-left: 5px;
-}
-
-ul.breadcrumbs li a:link, ul.breadcrumbs li a:visited {
- color: #666666;
- border-bottom: 1px solid #666666;
-}
-
-.file-list {
- width: 100%;
- margin: 0 auto;
- border-collapse: collapse;
-}
-
-.file-list .heading {
- text-align: left;
- text-transform: uppercase;
- font-weight: normal;
- color: #666666;
- padding: 0.5rem;
-}
-
-.file-list div.d-flex {
- border-bottom: 1px solid #e0e0e0;
- justify-content: flex-start;
-}
-
-.file-list div.d-flex div {
- white-space: nowrap;
- padding: 0.5rem 0.8rem 0.5rem 0.8rem;
-}
-
-.file-list div.d-flex div img {
- vertical-align: middle;
- margin-right: 0.5rem;
-}
-
-.file-list div.d-flex div:last-child {
- padding-right: 0.8rem;
- flex-basis: 0;
- flex-grow: 1;
-}
-
-.file-list div.d-flex div:first-child {
- flex-basis: 0;
- flex-grow: 2;
-}
-
-@media (max-width: 950px) {
- .file-list div.d-flex div:last-child {
- flex-basis: auto;
- flex-grow: 0;
- }
-}
-
-@media (max-width: 655px) {
- .file-list div.d-flex {
- display: block;
- }
- .file-list div.d-flex span {
- max-width: 100%;
- word-break: break-all;
- white-space: normal;
- }
- .file-list div.d-flex #size-header {
- display: none;
- }
- .file-list div.d-flex div:last-child {
- padding-left: 3.5rem;
- font-size: 0.85rem;
- padding-top: 0;
- }
- header .information {
- padding: 1rem 0;
- }
-}
-
-.chat-container {
- display: flex;
- font-family: monospace;
-}
-
-.chat-users {
- width: 20%;
- border: 1px solid rgba(0, 0, 0, 0.1);
- border-radius: 2px;
- overflow: auto;
- background: #f2f2f2;
- margin: 1rem 0 1rem 1rem;
-}
-
-.chat-users .editable-username {
- display: flex;
- padding: 1rem;
- flex-direction: column;
-}
-
-.chat-users .editable-username input {
- font-family: monospace;
- font-size: 1em;
-}
-
-.chat-users .editable-username #username-error {
- color: #c90c0c;
- margin: 0.5rem;
-}
-
-.chat-users #user-list li {
- margin-bottom: 1em;
-}
-
-.chat-wrapper {
- display: flex;
- flex-direction: column;
- flex: 1;
- margin: 1rem 1rem 0 1rem;
- height: calc(100vh - (65px + 2em));
-}
-
-.chat-wrapper #chat {
- border: 1px solid rgba(0, 0, 0, 0.1);
- border-radius: 2px;
- flex: 1;
- overflow: auto;
- background: #f2f2f2;
- padding: 0 1rem;
-}
-
-.chat-wrapper .status {
- font-style: italic;
- font-size: 0.8em;
- color: #666666;
-}
-
-.chat-wrapper .username {
- font-weight: bold;
- display: block;
-}
-.chat-wrapper .message {
- font-weight: normal;
- display: block;
- margin-bottom: 0.3em;
-}
-
-.chat-wrapper .chat-form {
- display: block;
- margin: 0.2rem 1rem 1rem 0;
- padding: -0.5em;
-}
-
-.chat-wrapper input#new-message {
- height: 100%;
- width: 100%;
- font-family: monospace;
- font-size: 1em;
-}
-
-@media (max-width: 992px) {
- .chat-users .editable-username {
- display: block;
- }
-
- .chat-users input#username {
- width: 90%;
- }
-}
-
-.no-js {
- display: none;
-}
-
-.upload-wrapper {
- align-items: center;
- justify-content: center;
- min-height: 400px;
- text-align: center;
-}
-
-.upload-wrapper img.logo {
- width: 120px;
- height: 120px;
-}
-
-.upload-wrapper .upload-header {
- font-size: 30px;
- font-weight: normal;
- color: #666666;
- margin: 0 0 10px 0;
-}
-
-.upload-wrapper .upload-description {
- color: #666666;
- margin: 0 0 20px 0;
-}
-
-div#uploads {
- width: 800px;
- max-width: 90%;
- margin: 0 auto;
-}
-
-div#uploads .upload {
- border: 1px solid #DDDDDD;
- margin: 20px 0;
- padding: 10px;
- text-align: left;
-}
-
-div#uploads .upload .upload-filename {
- font-weight: bold;
- font-family: monospace;
- font-size: 1.1em;
- margin-bottom: 5px;
-}
-
-div#uploads .upload .upload-status {
- color: #999999;
- font-size: 0.9em;
- margin-bottom: 5px;
-}
-
-div#uploads .upload input.cancel {
- color: #d0011b;
- border: 0;
- background: none;
- box-shadow: none;
- border-radius: 0px;
- cursor: pointer;
- font-family: sans-serif;
- font-size: 12px;
- text-decoration: none;
- display: inline-block;
- float:right;
-}
-
-div#uploads .upload progress {
- width: 100%;
- height: 20px;
-}
-
-ul.flashes {
- list-style: none;
- margin: 0;
- padding: 0;
- width: 800px;
- max-width: 100%;
- margin: 0 auto;
-}
-
-ul.flashes li {
- margin: 0 0 5px 0;
- padding: 5px;
- list-style: none;
- text-align: center;
- word-break: break-word;
-}
-
-li.error {
- color: #d0011b;
-}
-
-li.info {
- color: #5fa416;
-}
-
-.closed-wrapper {
- display: flex;
- align-items: center;
- justify-content: center;
- min-height: 400px;
-}
-
-.info {
- text-align: center;
-}
-
-.info img {
- width: 120px;
- height: 120px;
-}
-
-.info .info-header {
- font-size: 30px;
- font-weight: normal;
- color: #666666;
- margin: 0 0 10px 0;
-}
-
-.info .info-description {
- color: #666666;
- margin: 0 0 20px 0;
-}
-
-a {
- text-decoration: none;
- color: #1c1ca0;
-}
-
-a:visited {
- color: #601ca0;
-} \ No newline at end of file
diff --git a/desktop/share/static/img/ajax.gif b/desktop/share/static/img/ajax.gif
deleted file mode 100644
index 01d955aa..00000000
--- a/desktop/share/static/img/ajax.gif
+++ /dev/null
Binary files differ
diff --git a/desktop/share/static/img/favicon.ico b/desktop/share/static/img/favicon.ico
deleted file mode 100644
index 63e65d8b..00000000
--- a/desktop/share/static/img/favicon.ico
+++ /dev/null
Binary files differ
diff --git a/desktop/share/static/img/logo.png b/desktop/share/static/img/logo.png
deleted file mode 100644
index 43884c1f..00000000
--- a/desktop/share/static/img/logo.png
+++ /dev/null
Binary files differ
diff --git a/desktop/share/static/img/logo_large.png b/desktop/share/static/img/logo_large.png
deleted file mode 100644
index ee8f26ac..00000000
--- a/desktop/share/static/img/logo_large.png
+++ /dev/null
Binary files differ
diff --git a/desktop/share/static/img/web_file.png b/desktop/share/static/img/web_file.png
deleted file mode 100644
index 1931aff0..00000000
--- a/desktop/share/static/img/web_file.png
+++ /dev/null
Binary files differ
diff --git a/desktop/share/static/img/web_folder.png b/desktop/share/static/img/web_folder.png
deleted file mode 100644
index 3ca5df21..00000000
--- a/desktop/share/static/img/web_folder.png
+++ /dev/null
Binary files differ
diff --git a/desktop/share/static/js/chat.js b/desktop/share/static/js/chat.js
deleted file mode 100644
index 39547725..00000000
--- a/desktop/share/static/js/chat.js
+++ /dev/null
@@ -1,165 +0,0 @@
-$(function () {
- $(document).ready(function () {
- $('.chat-container').removeClass('no-js');
- var socket = io.connect('http://' + document.domain + ':' + location.port + '/chat');
-
- // Store current username received from app context
- var current_username = $('#username').val();
-
- // On browser connect, emit a socket event to be added to
- // room and assigned random username
- socket.on('connect', function () {
- socket.emit('joined', {});
- });
-
- // Triggered on any status change by any user, such as some
- // user joined, or changed username, or left, etc.
- socket.on('status', function (data) {
- addMessageToRoom(data, current_username, 'status');
- console.log(data, current_username);
- });
-
- // Triggered when message is received from a user. Even when sent
- // by self, it get triggered after the server sends back the emit.
- socket.on('message', function (data) {
- addMessageToRoom(data, current_username, 'chat');
- console.log(data, current_username);
- });
-
- // Triggered when disconnected either by server stop or timeout
- socket.on('disconnect', function (data) {
- addMessageToRoom({ 'msg': 'The chat server is disconnected.' }, current_username, 'status');
- })
- socket.on('connect_error', function (error) {
- console.log("error");
- })
-
- // Trigger new message on enter or click of send message button.
- $('#new-message').on('keypress', function (e) {
- var code = e.keyCode || e.which;
- if (code == 13) {
- emitMessage(socket);
- }
- });
-
- // Keep buttons disabled unless changed or not empty
- $('#username').on('keyup', function (event) {
- if ($('#username').val() !== '' && $('#username').val() !== current_username) {
- if (event.keyCode == 13) {
- current_username = updateUsername(socket) || current_username;
- }
- }
- });
-
- // Show warning of losing data
- $(window).on('beforeunload', function (e) {
- e.preventDefault();
- e.returnValue = '';
- return '';
- });
- });
-});
-
-var addMessageToRoom = function (data, current_username, messageType) {
- var scrollDiff = getScrollDiffBefore();
- if (messageType === 'status') {
- addStatusMessage(data.msg);
- if (data.connected_users) {
- addUserList(data.connected_users, current_username);
- }
- } else if (messageType === 'chat') {
- addChatMessage(data.username, data.msg)
- }
- scrollBottomMaybe(scrollDiff);
-}
-
-var emitMessage = function (socket) {
- var text = $('#new-message').val();
- $('#new-message').val('');
- $('#chat').scrollTop($('#chat')[0].scrollHeight);
- socket.emit('text', { msg: text });
-}
-
-var updateUsername = function (socket) {
- var username = $('#username').val();
- if (!checkUsernameExists(username)) {
- socket.emit('update_username', { username: username });
- $.ajax({
- method: 'POST',
- url: `http://${document.domain}:${location.port}/update-session-username`,
- contentType: 'application/json',
- dataType: 'json',
- data: JSON.stringify({ 'username': username })
- }).done(function (response) {
- console.log(response);
- });
- return username;
- }
- return false;
-}
-
-/************************************/
-/********* Util Functions ***********/
-/************************************/
-
-var createUserListHTML = function (connected_users, current_user) {
- var userListHTML = '';
- connected_users.sort();
- connected_users.forEach(function (username) {
- if (username !== current_user) {
- userListHTML += `<li>${sanitizeHTML(username)}</li>`;
- }
- });
- return userListHTML;
-}
-
-var checkUsernameExists = function (username) {
- $('#username-error').text('');
- var userMatches = $('#user-list li').filter(function () {
- return $(this).text() === username;
- });
- if (userMatches.length) {
- $('#username-error').text('User with that username exists!');
- return true;
- }
- return false;
-}
-
-var getScrollDiffBefore = function () {
- return $('#chat').scrollTop() - ($('#chat')[0].scrollHeight - $('#chat')[0].offsetHeight);
-}
-
-var scrollBottomMaybe = function (scrollDiff) {
- // Scrolls to bottom if the user is scrolled at bottom
- // if the user has scrolled upp, it wont scroll at bottom.
- // Note: when a user themselves send a message, it will still
- // scroll to the bottom even if they had scrolled up before.
- if (scrollDiff > 0) {
- $('#chat').scrollTop($('#chat')[0].scrollHeight);
- }
-}
-
-var addStatusMessage = function (message) {
- $('#chat').append(
- `<p class="status">${sanitizeHTML(message)}</p>`
- );
-}
-
-var addChatMessage = function (username, message) {
- $('#chat').append(`<p><span class="username">${sanitizeHTML(username)}</span><span class="message">${sanitizeHTML(message)}</span></p>`);
-}
-
-var addUserList = function (connected_users, current_username) {
- $('#user-list').html(
- createUserListHTML(
- connected_users,
- current_username
- )
- );
-}
-
-var sanitizeHTML = function (str) {
- var temp = document.createElement('span');
- temp.textContent = str;
- return temp.innerHTML;
-};
diff --git a/desktop/share/static/js/jquery-3.5.1.min.js b/desktop/share/static/js/jquery-3.5.1.min.js
deleted file mode 100644
index b0614034..00000000
--- a/desktop/share/static/js/jquery-3.5.1.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */
-!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),D=function(e,t){return e===t&&(l=!0),0},j={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&j.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(D),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(B," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var y="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=y!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(y){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[k,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[k,d]),a===e))break;return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace($,"$1"));return s[S]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[k,p];if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===k&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,v,y,e){return v&&!v[S]&&(v=Ce(v)),y&&!y[S]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?y||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v){i=Te(p,u),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(y||d){if(y){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);y(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=y?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):H.apply(t,p)})}function Ee(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace($," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,v,y,m,x,r,i=[],o=[],a=A[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Ee(t[n]))[S]?i.push(a):o.push(a);(a=A(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=k+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!E);while(s=v[a++])if(s(o,t||C,n)){r.push(o);break}i&&(k=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort(r)}return i&&(k=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=S.split("").sort(D).join("")===S,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);S.find=d,S.expr=d.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=d.uniqueSort,S.text=d.getText,S.isXMLDoc=d.isXML,S.contains=d.contains,S.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=S.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1<i.call(n,e)!==r}):S.filter(n,e,r)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return 1<r?S.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&k.test(e)?S(e):e||[],!1).length}});var j,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(S(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(r,i){S.fn[r]=function(e,t){var n=S.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(H[r]||S.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},S.each(e.match(P)||[],function(e,t){n[t]=!0}),n):S.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){S.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return S.each(arguments,function(e,t){var n;while(-1<(n=S.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<S.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},S.extend({Deferred:function(e){var o=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return S.Deferred(function(r){S.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,R,s),l(u,o,M,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),C.setTimeout(t))}}return S.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return S.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=S.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(I(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){C.setTimeout(function(){throw e})};var F=S.Deferred();function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),S.ready()}S.fn.ready=function(e){return F.then(e)["catch"](function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||F.resolveWith(E,[S])}}),S.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(S.ready):(E.addEventListener("DOMContentLoaded",B),C.addEventListener("load",B));var $=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=S.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n--)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),S.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):$(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:S.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=E.documentElement,ie=function(e){return S.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===S.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&te.exec(S.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)S.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,S.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=S.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?S(this).show():S(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",y.option=!!ce.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,y.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))S.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;S.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<S.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Ee(){return!1}function Se(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function ke(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)ke(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ee;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function Ae(e,i,o){o?(Y.set(e,i,!1),S.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(S.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Y.set(this,i,{value:S.event.trigger(S.extend(r[0],S.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&S.event.add(e,i,Ce)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(re,i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=Te.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=Te.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=S.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=S.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ae(t,"click",Ce),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&be.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&we.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Ae(this,e,Se),!1},trigger:function(){return Ae(this,e),!0},delegateType:t}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),S.fn.extend({on:function(e,t,n,r){return ke(this,e,t,n,r)},one:function(e,t,n,r){return ke(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){S.event.remove(this,e,n,t)})}});var Ne=/<script|<style|<link/i,De=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=S.extend({},o),Q.set(t,a))}}function Pe(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&De.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),Pe(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=S.map(ve(e,"script"),Le)).length;c<f;c++)u=e,c!==p&&(u=S.clone(u,!0,!0),s&&S.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,He),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(je,""),u,l))}return n}function Re(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Oe(o[r],a[r]);else Oe(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return $(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Pe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)})},prepend:function(){return Pe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=qe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Pe(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=[],r=S(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),S(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Me=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Ie=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},We=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Fe=new RegExp(ne.join("|"),"i");function Be(e,t,n){var r,i,o,a,s=e.style;return(n=n||Ie(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=S.style(e,t)),!y.pixelBoxStyles()&&Me.test(a)&&Fe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=E.createElement("div"),l=E.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=3<parseInt(r.height),re.removeChild(e)),a}}))}();var _e=["Webkit","Moz","ms"],ze=E.createElement("div").style,Ue={};function Xe(e){var t=S.cssProps[e]||Ue[e];return t||(e in ze?e:Ue[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=_e.length;while(n--)if((e=_e[n]+t)in ze)return e}(e)||e)}var Ve=/^(none|table(?!-c[ea]).+)/,Ge=/^--/,Ye={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function Je(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ke(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=S.css(e,"border"+ne[a]+"Width",!0,i))):(u+=S.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=S.css(e,"border"+ne[a]+"Width",!0,i):s+=S.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function Ze(e,t,n){var r=Ie(e),i=(!y.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=Be(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Me.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Ke(e,t,n||(i?"border":"content"),o,r,a)+"px"}function et(e,t,n,r,i){return new et.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Be(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Ge.test(t),l=e.style;if(u||(t=Xe(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Ge.test(t)||(t=Xe(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Be(e,t,r)),"normal"===i&&t in Qe&&(i=Qe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,u){S.cssHooks[u]={get:function(e,t,n){if(t)return!Ve.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,u,n):We(e,Ye,function(){return Ze(e,u,n)})},set:function(e,t,n){var r,i=Ie(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===S.css(e,"boxSizing",!1,i),s=n?Ke(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Ke(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=S.css(e,u)),Je(0,t,s)}}}),S.cssHooks.marginLeft=$e(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(S.cssHooks[i+o].set=Je)}),S.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ie(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=et).prototype={constructor:et,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):et.propHooks._default.set(this),this}}).init.prototype=et.prototype,(et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=et.prototype.init,S.fx.step={};var tt,nt,rt,it,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){nt&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(st):C.setTimeout(st,S.fx.interval),S.fx.tick())}function ut(){return C.setTimeout(function(){tt=void 0}),tt=Date.now()}function lt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ct(e,t,n){for(var r,i=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ft(o,e,t){var n,a,r=0,i=ft.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=tt||ut(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:tt||ut(),duration:t.duration,tweens:[],createTween:function(e,t){var n=S.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=ft.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ct,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ot.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||S.style(e,r)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=S.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=S.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===S.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,"fxshow"),d)S.style(e,r,d[r])})),u=ct(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=ft(this,S.extend({},t),o);(i||Y.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=S.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&at.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(lt(r,!0),e,t,n)}}),S.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){S.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(tt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),tt=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){nt||(nt=!0,st())},S.fx.stop=function(){nt=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=S.fx&&S.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},rt=E.createElement("input"),it=E.createElement("select").appendChild(E.createElement("option")),rt.type="checkbox",y.checkOn=""!==rt.value,y.optSelected=it.selected,(rt=E.createElement("input")).value="t",rt.type="radio",y.radioValue="t"===rt.value;var pt,dt=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return $(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=dt[t]||S.find.attr;dt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=dt[o],dt[o]=r,r=null!=a(e,t,n)?o:null,dt[o]=i),r}});var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function vt(e){return(e.match(P)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}S.fn.extend({prop:function(e,t){return $(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).addClass(t.call(this,e,yt(this)))});if((e=mt(t)).length)while(n=this[u++])if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).removeClass(t.call(this,e,yt(this)))});if(!arguments.length)return this.attr("class","");if((e=mt(t)).length)while(n=this[u++])if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):m(i)?this.each(function(e){S(this).toggleClass(i.call(this,e,yt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=S(this),r=mt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=yt(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+vt(yt(n))+" ").indexOf(t))return!0;return!1}});var xt=/\r/g;S.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,S(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(r=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=S.valHooks[t.type]||S.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(xt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:vt(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=S.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<S.inArray(S.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},y.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;var bt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,"type")?e.type:e,h=v.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!bt.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,bt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Y.get(o,"events")||Object.create(null))[e.type]&&Y.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&V(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!V(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),S.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,wt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,wt),S.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),y.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){S.event.simulate(r,e.target,S.event.fix(e))};S.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var Tt=C.location,Ct={guid:Date.now()},Et=/\?/;S.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+e),t};var St=/\[\]$/,kt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function Dt(n,e,r,i){var t;if(Array.isArray(e))S.each(e,function(e,t){r||St.test(n)?i(n,t):Dt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)Dt(n+"["+t+"]",e[t],r,i)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)Dt(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&Nt.test(this.nodeName)&&!At.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(kt,"\r\n")}}):{name:t.name,value:n.replace(kt,"\r\n")}}).get()}});var jt=/%20/g,qt=/#.*$/,Lt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Pt=/^\/\//,Rt={},Mt={},It="*/".concat("*"),Wt=E.createElement("a");function Ft(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Bt(t,i,o,a){var s={},u=t===Mt;function l(e){var r;return s[e]=!0,S.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function $t(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Wt.href=Tt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$t($t(e,S.ajaxSettings),t):$t(S.ajaxSettings,e)},ajaxPrefilter:Ft(Rt),ajaxTransport:Ft(Mt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=S.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?S(y):S.event,x=S.Deferred(),b=S.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Ht.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Tt.href)+"").replace(Pt,Tt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(P)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Wt.protocol+"//"+Wt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=S.param(v.data,v.traditional)),Bt(Rt,v,t,T),h)return T;for(i in(g=S.event&&v.global)&&0==S.active++&&S.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ot.test(v.type),f=v.url.replace(qt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(jt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(Et.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Lt,"$1"),o=(Et.test(f)?"&":"?")+"_="+Ct.guid+++o),v.url=f+o),v.ifModified&&(S.lastModified[f]&&T.setRequestHeader("If-Modified-Since",S.lastModified[f]),S.etag[f]&&T.setRequestHeader("If-None-Match",S.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+It+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Bt(Mt,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<S.inArray("script",v.dataTypes)&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(S.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(S.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,i){S[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:i,dataType:r,data:t,success:n},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},zt=S.ajaxSettings.xhr();y.cors=!!zt&&"withCredentials"in zt,y.ajax=zt=!!zt,S.ajaxTransport(function(i){var o,a;if(y.cors||zt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(_t[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=S("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=vt(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Be(e,n),Me.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Gt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=m,S.isWindow=x,S.camelCase=X,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Gt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Yt=C.jQuery,Qt=C.$;return S.noConflict=function(e){return C.$===S&&(C.$=Qt),e&&C.jQuery===S&&(C.jQuery=Yt),S},"undefined"==typeof e&&(C.jQuery=C.$=S),S});
diff --git a/desktop/share/static/js/receive.js b/desktop/share/static/js/receive.js
deleted file mode 100644
index eac67412..00000000
--- a/desktop/share/static/js/receive.js
+++ /dev/null
@@ -1,130 +0,0 @@
-$(function(){
- // Add a flash message
- var flash = function(category, message) {
- $('#flashes').append($('<li>').addClass(category).text(message));
- };
-
- var scriptSrc = document.getElementById('receive-script').src;
- var staticImgPath = scriptSrc.substr(0, scriptSrc.lastIndexOf( '/' )+1).replace('js', 'img');
-
- // Intercept submitting the form
- $('#send').submit(function(event){
- event.preventDefault();
-
- // Create form data, and list of filenames
- var files = $('#file-select').get(0).files;
- var filenames = [];
- var formData = new FormData();
- for(var i = 0; i < files.length; i++) {
- var file = files[i];
- filenames.push(file.name);
- formData.append('file[]', file, file.name);
- }
-
- // Reset the upload form
- $('#send').get(0).reset();
-
- // Don't use jQuery for ajax request, because the upload progress event doesn't
- // have access to the the XMLHttpRequest object
- var ajax = new XMLHttpRequest();
-
- ajax.upload.addEventListener('progress', function(event){
- // Update progress bar for this specific upload
- if(event.lengthComputable) {
- $('progress', ajax.$upload_div).attr({
- value: event.loaded,
- max: event.total,
- });
- }
-
- // If it's finished sending all data to the first Tor node, remove cancel button
- // and update the status
- if(event.loaded == event.total) {
- $('.cancel', ajax.$upload_div).remove();
- $('.upload-status', ajax.$upload_div).html('<img src="' + staticImgPath + '/ajax.gif" alt="" /> Waiting for data to finish traversing Tor network ...');
- }
- }, false);
-
- ajax.addEventListener('load', function(event){
- // Remove the upload div
- ajax.$upload_div.remove();
-
- // Parse response
- try {
- var response = JSON.parse(ajax.response);
-
- // The 'new_body' response replaces the whole HTML document and ends
- if('new_body' in response) {
- $('body').html(response['new_body']);
- return;
- }
-
- // Show error flashes
- if('error_flashes' in response) {
- for(var i=0; i<response['error_flashes'].length; i++) {
- flash('error', response['error_flashes'][i]);
- }
- }
-
- // Show info flashes
- if('info_flashes' in response) {
- for(var i=0; i<response['info_flashes'].length; i++) {
- flash('info', response['info_flashes'][i]);
- }
- }
- } catch(e) {
- flash('error', 'Invalid response from server: '+data);
- }
- }, false);
-
- ajax.addEventListener('error', function(event){
- flash('error', 'Error uploading: '+filenames.join(', '));
-
- // Remove the upload div
- ajax.$upload_div.remove()
- }, false);
-
- ajax.addEventListener('abort', function(event){
- flash('error', 'Upload aborted: '+filenames.join(', '));
- }, false);
-
- // Make the upload div
-
- /* The DOM for an upload looks something like this:
- <div class="upload">
- <div class="upload-meta">
- <input class="cancel" type="button" value="Cancel" />
- <div class="upload-filename">educational-video.mp4, secret-plans.pdf</div>
- <div class="upload-status">Sending to first Tor node ...</div>
- </div>
- <progress value="25" max="100"></progress>
- </div> */
- var $progress = $('<progress>').attr({ value: '0', max: 100 });
- var $cancel_button = $('<input>').addClass('cancel').attr({ type: 'button', value: 'Cancel' });
- var $upload_filename = $('<div>').addClass('upload-filename').text(filenames.join(', '));
- var $upload_status = $('<div>').addClass('upload-status').text('Sending data to initial Tor node ...');
-
- var $upload_div = $('<div>')
- .addClass('upload')
- .append(
- $('<div>').addClass('upload-meta')
- .append($cancel_button)
- .append($upload_filename)
- .append($upload_status)
- )
- .append($progress);
-
- $cancel_button.click(function(){
- // Abort the upload, and remove the upload div
- ajax.abort();
- $upload_div.remove()
- });
-
- ajax.$upload_div = $upload_div;
- $('#uploads').append($upload_div);
-
- // Send the request
- ajax.open('POST', '/upload-ajax', true);
- ajax.send(formData);
- });
-});
diff --git a/desktop/share/static/js/send.js b/desktop/share/static/js/send.js
deleted file mode 100644
index 43e9892d..00000000
--- a/desktop/share/static/js/send.js
+++ /dev/null
@@ -1,75 +0,0 @@
-// Function to convert human-readable sizes back to bytes, for sorting
-function unhumanize(text) {
- var powers = {'b': 0, 'k': 1, 'm': 2, 'g': 3, 't': 4};
- var regex = /(\d+(?:\.\d+)?)\s?(B|K|M|G|T)?/i;
- var res = regex.exec(text);
- if(res[2] === undefined) {
- // Account for alphabetical words (file/dir names)
- return text;
- } else {
- return res[1] * Math.pow(1024, powers[res[2].toLowerCase()]);
- }
-}
-function sortTable(n) {
- var table, rows, switching, i, x, y, shouldSwitch, dir, switchcount = 0;
- table = document.getElementById("file-list");
- switching = true;
- // Set the sorting direction to ascending:
- dir = "asc";
- /* Make a loop that will continue until
- no switching has been done: */
- while (switching) {
- // Start by saying: no switching is done:
- switching = false;
- rows = table.getElementsByTagName("TR");
- /* Loop through all table rows (except the
- first, which contains table headers): */
- for (i = 1; i < (rows.length - 1); i++) {
- // Start by saying there should be no switching:
- shouldSwitch = false;
- /* Get the two elements you want to compare,
- one from current row and one from the next: */
- x = rows[i].getElementsByTagName("TD")[n];
- y = rows[i + 1].getElementsByTagName("TD")[n];
- /* Check if the two rows should switch place,
- based on the direction, asc or desc: */
- if (dir == "asc") {
- if (unhumanize(x.innerHTML.toLowerCase()) > unhumanize(y.innerHTML.toLowerCase())) {
- // If so, mark as a switch and break the loop:
- shouldSwitch= true;
- break;
- }
- } else if (dir == "desc") {
- if (unhumanize(x.innerHTML.toLowerCase()) < unhumanize(y.innerHTML.toLowerCase())) {
- // If so, mark as a switch and break the loop:
- shouldSwitch= true;
- break;
- }
- }
- }
- if (shouldSwitch) {
- /* If a switch has been marked, make the switch
- and mark that a switch has been done: */
- rows[i].parentNode.insertBefore(rows[i + 1], rows[i]);
- switching = true;
- // Each time a switch is done, increase this count by 1:
- switchcount ++;
- } else {
- /* If no switching has been done AND the direction is "asc",
- set the direction to "desc" and run the while loop again. */
- if (switchcount == 0 && dir == "asc") {
- dir = "desc";
- switching = true;
- }
- }
- }
-}
-
-
-// Set click handlers
-document.getElementById("filename-header").addEventListener("click", function(){
- sortTable(0);
-});
-document.getElementById("size-header").addEventListener("click", function(){
- sortTable(1);
-});
diff --git a/desktop/share/static/js/socket.io.min.js b/desktop/share/static/js/socket.io.min.js
deleted file mode 100644
index b622e1b9..00000000
--- a/desktop/share/static/js/socket.io.min.js
+++ /dev/null
@@ -1,3 +0,0 @@
-!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.io=t()}}(function(){var t;return function e(t,n,r){function o(s,a){if(!n[s]){if(!t[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}var p=n[s]={exports:{}};t[s][0].call(p.exports,function(e){var n=t[s][1][e];return o(n?n:e)},p,p.exports,e,t,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e){e.exports=t("./lib/")},{"./lib/":2}],2:[function(t,e,n){function r(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r=o(t),i=r.source,p=r.id;return e.forceNew||e["force new connection"]||!1===e.multiplex?(a("ignoring socket cache for %s",i),n=s(i,e)):(c[p]||(a("new io instance for %s",i),c[p]=s(i,e)),n=c[p]),n.socket(r.path)}var o=t("./url"),i=t("socket.io-parser"),s=t("./manager"),a=t("debug")("socket.io-client");e.exports=n=r;var c=n.managers={};n.protocol=i.protocol,n.connect=r,n.Manager=t("./manager"),n.Socket=t("./socket")},{"./manager":3,"./socket":5,"./url":6,debug:10,"socket.io-parser":46}],3:[function(t,e){function n(t,e){return this instanceof n?(t&&"object"==typeof t&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new f({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connected=[],this.encoding=!1,this.packetBuffer=[],this.encoder=new s.Encoder,this.decoder=new s.Decoder,this.autoConnect=e.autoConnect!==!1,void(this.autoConnect&&this.open())):new n(t,e)}var r=(t("./url"),t("engine.io-client")),o=t("./socket"),i=t("component-emitter"),s=t("socket.io-parser"),a=t("./on"),c=t("component-bind"),p=(t("object-component"),t("debug")("socket.io-client:manager")),u=t("indexof"),f=t("backo2");e.exports=n,n.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var t in this.nsps)this.nsps[t].emit.apply(this.nsps[t],arguments)},n.prototype.updateSocketIds=function(){for(var t in this.nsps)this.nsps[t].id=this.engine.id},i(n.prototype),n.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},n.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},n.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},n.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},n.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},n.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},n.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},n.prototype.open=n.prototype.connect=function(t){if(p("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;p("opening %s",this.uri),this.engine=r(this.uri,this.opts);var e=this.engine,n=this;this.readyState="opening",this.skipReconnect=!1;var o=a(e,"open",function(){n.onopen(),t&&t()}),i=a(e,"error",function(e){if(p("connect_error"),n.cleanup(),n.readyState="closed",n.emitAll("connect_error",e),t){var r=new Error("Connection error");r.data=e,t(r)}else n.maybeReconnectOnOpen()});if(!1!==this._timeout){var s=this._timeout;p("connect attempt will timeout after %d",s);var c=setTimeout(function(){p("connect attempt timed out after %d",s),o.destroy(),e.close(),e.emit("error","timeout"),n.emitAll("connect_timeout",s)},s);this.subs.push({destroy:function(){clearTimeout(c)}})}return this.subs.push(o),this.subs.push(i),this},n.prototype.onopen=function(){p("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(a(t,"data",c(this,"ondata"))),this.subs.push(a(this.decoder,"decoded",c(this,"ondecoded"))),this.subs.push(a(t,"error",c(this,"onerror"))),this.subs.push(a(t,"close",c(this,"onclose")))},n.prototype.ondata=function(t){this.decoder.add(t)},n.prototype.ondecoded=function(t){this.emit("packet",t)},n.prototype.onerror=function(t){p("error",t),this.emitAll("error",t)},n.prototype.socket=function(t){var e=this.nsps[t];if(!e){e=new o(this,t),this.nsps[t]=e;var n=this;e.on("connect",function(){e.id=n.engine.id,~u(n.connected,e)||n.connected.push(e)})}return e},n.prototype.destroy=function(t){var e=u(this.connected,t);~e&&this.connected.splice(e,1),this.connected.length||this.close()},n.prototype.packet=function(t){p("writing packet %j",t);var e=this;e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,function(t){for(var n=0;n<t.length;n++)e.engine.write(t[n]);e.encoding=!1,e.processPacketQueue()}))},n.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},n.prototype.cleanup=function(){for(var t;t=this.subs.shift();)t.destroy();this.packetBuffer=[],this.encoding=!1,this.decoder.destroy()},n.prototype.close=n.prototype.disconnect=function(){this.skipReconnect=!0,this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},n.prototype.onclose=function(t){p("close"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},n.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)p("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();p("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(p("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(p("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(p("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},n.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},{"./on":4,"./socket":5,"./url":6,backo2:7,"component-bind":8,"component-emitter":9,debug:10,"engine.io-client":11,indexof:42,"object-component":43,"socket.io-parser":46}],4:[function(t,e){function n(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}e.exports=n},{}],5:[function(t,e,n){function r(t,e){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.io.autoConnect&&this.open(),this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0}var o=t("socket.io-parser"),i=t("component-emitter"),s=t("to-array"),a=t("./on"),c=t("component-bind"),p=t("debug")("socket.io-client:socket"),u=t("has-binary");e.exports=n=r;var f={connect:1,connect_error:1,connect_timeout:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1},h=i.prototype.emit;i(r.prototype),r.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[a(t,"open",c(this,"onopen")),a(t,"packet",c(this,"onpacket")),a(t,"close",c(this,"onclose"))]}},r.prototype.open=r.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"==this.io.readyState&&this.onopen(),this)},r.prototype.send=function(){var t=s(arguments);return t.unshift("message"),this.emit.apply(this,t),this},r.prototype.emit=function(t){if(f.hasOwnProperty(t))return h.apply(this,arguments),this;var e=s(arguments),n=o.EVENT;u(e)&&(n=o.BINARY_EVENT);var r={type:n,data:e};return"function"==typeof e[e.length-1]&&(p("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),r.id=this.ids++),this.connected?this.packet(r):this.sendBuffer.push(r),this},r.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},r.prototype.onopen=function(){p("transport is open - connecting"),"/"!=this.nsp&&this.packet({type:o.CONNECT})},r.prototype.onclose=function(t){p("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},r.prototype.onpacket=function(t){if(t.nsp==this.nsp)switch(t.type){case o.CONNECT:this.onconnect();break;case o.EVENT:this.onevent(t);break;case o.BINARY_EVENT:this.onevent(t);break;case o.ACK:this.onack(t);break;case o.BINARY_ACK:this.onack(t);break;case o.DISCONNECT:this.ondisconnect();break;case o.ERROR:this.emit("error",t.data)}},r.prototype.onevent=function(t){var e=t.data||[];p("emitting event %j",e),null!=t.id&&(p("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?h.apply(this,e):this.receiveBuffer.push(e)},r.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var r=s(arguments);p("sending ack %j",r);var i=u(r)?o.BINARY_ACK:o.ACK;e.packet({type:i,id:t,data:r})}}},r.prototype.onack=function(t){p("calling ack %s with %j",t.id,t.data);var e=this.acks[t.id];e.apply(this,t.data),delete this.acks[t.id]},r.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},r.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)h.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},r.prototype.ondisconnect=function(){p("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},r.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},r.prototype.close=r.prototype.disconnect=function(){return this.connected&&(p("performing disconnect (%s)",this.nsp),this.packet({type:o.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}},{"./on":4,"component-bind":8,"component-emitter":9,debug:10,"has-binary":38,"socket.io-parser":46,"to-array":50}],6:[function(t,e){(function(n){function r(t,e){var r=t,e=e||n.location;return null==t&&(t=e.protocol+"//"+e.host),"string"==typeof t&&("/"==t.charAt(0)&&(t="/"==t.charAt(1)?e.protocol+t:e.hostname+t),/^(https?|wss?):\/\//.test(t)||(i("protocol-less url %s",t),t="undefined"!=typeof e?e.protocol+"//"+t:"https://"+t),i("parse %s",t),r=o(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/",r.id=r.protocol+"://"+r.host+":"+r.port,r.href=r.protocol+"://"+r.host+(e&&e.port==r.port?"":":"+r.port),r}var o=t("parseuri"),i=t("debug")("socket.io-client:url");e.exports=r}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{debug:10,parseuri:44}],7:[function(t,e){function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}},{}],8:[function(t,e){var n=[].slice;e.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}},{}],9:[function(t,e){function n(t){return t?r(t):void 0}function r(t){for(var e in n.prototype)t[e]=n.prototype[e];return t}e.exports=n,n.prototype.on=n.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},n.prototype.once=function(t,e){function n(){r.off(t,n),e.apply(this,arguments)}var r=this;return this._callbacks=this._callbacks||{},n.fn=e,this.on(t,n),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks[t];if(!n)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===e||r.fn===e){n.splice(o,1);break}return this},n.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks[t];if(n){n=n.slice(0);for(var r=0,o=n.length;o>r;++r)n[r].apply(this,e)}return this},n.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},n.prototype.hasListeners=function(t){return!!this.listeners(t).length}},{}],10:[function(t,e){function n(t){return n.enabled(t)?function(e){e=r(e);var o=new Date,i=o-(n[t]||o);n[t]=o,e=t+" "+e+" +"+n.humanize(i),window.console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}:function(){}}function r(t){return t instanceof Error?t.stack||t.message:t}e.exports=n,n.names=[],n.skips=[],n.enable=function(t){try{localStorage.debug=t}catch(e){}for(var r=(t||"").split(/[\s,]+/),o=r.length,i=0;o>i;i++)t=r[i].replace("*",".*?"),"-"===t[0]?n.skips.push(new RegExp("^"+t.substr(1)+"$")):n.names.push(new RegExp("^"+t+"$"))},n.disable=function(){n.enable("")},n.humanize=function(t){var e=1e3,n=6e4,r=60*n;return t>=r?(t/r).toFixed(1)+"h":t>=n?(t/n).toFixed(1)+"m":t>=e?(t/e|0)+"s":t+"ms"},n.enabled=function(t){for(var e=0,r=n.skips.length;r>e;e++)if(n.skips[e].test(t))return!1;for(var e=0,r=n.names.length;r>e;e++)if(n.names[e].test(t))return!0;return!1};try{window.localStorage&&n.enable(localStorage.debug)}catch(o){}},{}],11:[function(t,e){e.exports=t("./lib/")},{"./lib/":12}],12:[function(t,e){e.exports=t("./socket"),e.exports.parser=t("engine.io-parser")},{"./socket":13,"engine.io-parser":25}],13:[function(t,e){(function(n){function r(t,e){if(!(this instanceof r))return new r(t,e);if(e=e||{},t&&"object"==typeof t&&(e=t,t=null),t&&(t=u(t),e.host=t.host,e.secure="https"==t.protocol||"wss"==t.protocol,e.port=t.port,t.query&&(e.query=t.query)),this.secure=null!=e.secure?e.secure:n.location&&"https:"==location.protocol,e.host){var o=e.host.split(":");e.hostname=o.shift(),o.length?e.port=o.pop():e.port||(e.port=this.secure?"443":"80")}this.agent=e.agent||!1,this.hostname=e.hostname||(n.location?location.hostname:"localhost"),this.port=e.port||(n.location&&location.port?location.port:this.secure?443:80),this.query=e.query||{},"string"==typeof this.query&&(this.query=h.decode(this.query)),this.upgrade=!1!==e.upgrade,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=!1!==e.jsonp,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.callbackBuffer=[],this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.pfx=e.pfx||null,this.key=e.key||null,this.passphrase=e.passphrase||null,this.cert=e.cert||null,this.ca=e.ca||null,this.ciphers=e.ciphers||null,this.rejectUnauthorized=e.rejectUnauthorized||null,this.open()}function o(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var i=t("./transports"),s=t("component-emitter"),a=t("debug")("engine.io-client:socket"),c=t("indexof"),p=t("engine.io-parser"),u=t("parseuri"),f=t("parsejson"),h=t("parseqs");e.exports=r,r.priorWebsocketSuccess=!1,s(r.prototype),r.protocol=p.protocol,r.Socket=r,r.Transport=t("./transport"),r.transports=t("./transports"),r.parser=t("engine.io-parser"),r.prototype.createTransport=function(t){a('creating transport "%s"',t);var e=o(this.query);e.EIO=p.protocol,e.transport=t,this.id&&(e.sid=this.id);var n=new i[t]({agent:this.agent,hostname:this.hostname,port:this.port,secure:this.secure,path:this.path,query:e,forceJSONP:this.forceJSONP,jsonp:this.jsonp,forceBase64:this.forceBase64,enablesXDR:this.enablesXDR,timestampRequests:this.timestampRequests,timestampParam:this.timestampParam,policyPort:this.policyPort,socket:this,pfx:this.pfx,key:this.key,passphrase:this.passphrase,cert:this.cert,ca:this.ca,ciphers:this.ciphers,rejectUnauthorized:this.rejectUnauthorized});return n},r.prototype.open=function(){var t;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&-1!=this.transports.indexOf("websocket"))t="websocket";else{if(0==this.transports.length){var e=this;return void setTimeout(function(){e.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";var t;try{t=this.createTransport(t)}catch(n){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},r.prototype.setTransport=function(t){a("setting transport %s",t.name);var e=this;this.transport&&(a("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){e.onDrain()}).on("packet",function(t){e.onPacket(t)}).on("error",function(t){e.onError(t)}).on("close",function(){e.onClose("transport close")})},r.prototype.probe=function(t){function e(){if(h.onlyBinaryUpgrades){var e=!this.supportsBinary&&h.transport.supportsBinary;f=f||e}f||(a('probe transport "%s" opened',t),u.send([{type:"ping",data:"probe"}]),u.once("packet",function(e){if(!f)if("pong"==e.type&&"probe"==e.data){if(a('probe transport "%s" pong',t),h.upgrading=!0,h.emit("upgrading",u),!u)return;r.priorWebsocketSuccess="websocket"==u.name,a('pausing current transport "%s"',h.transport.name),h.transport.pause(function(){f||"closed"!=h.readyState&&(a("changing transport and sending upgrade packet"),p(),h.setTransport(u),u.send([{type:"upgrade"}]),h.emit("upgrade",u),u=null,h.upgrading=!1,h.flush())})}else{a('probe transport "%s" failed',t);var n=new Error("probe error");n.transport=u.name,h.emit("upgradeError",n)}}))}function n(){f||(f=!0,p(),u.close(),u=null)}function o(e){var r=new Error("probe error: "+e);r.transport=u.name,n(),a('probe transport "%s" failed because of error: %s',t,e),h.emit("upgradeError",r)}function i(){o("transport closed")}function s(){o("socket closed")}function c(t){u&&t.name!=u.name&&(a('"%s" works - aborting "%s"',t.name,u.name),n())}function p(){u.removeListener("open",e),u.removeListener("error",o),u.removeListener("close",i),h.removeListener("close",s),h.removeListener("upgrading",c)}a('probing transport "%s"',t);var u=this.createTransport(t,{probe:1}),f=!1,h=this;r.priorWebsocketSuccess=!1,u.once("open",e),u.once("error",o),u.once("close",i),this.once("close",s),this.once("upgrading",c),u.open()},r.prototype.onOpen=function(){if(a("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"==this.transport.name,this.emit("open"),this.flush(),"open"==this.readyState&&this.upgrade&&this.transport.pause){a("starting upgrade probes");for(var t=0,e=this.upgrades.length;e>t;t++)this.probe(this.upgrades[t])}},r.prototype.onPacket=function(t){if("opening"==this.readyState||"open"==this.readyState)switch(a('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(f(t.data));break;case"pong":this.setPing();break;case"error":var e=new Error("server error");e.code=t.data,this.emit("error",e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else a('packet received with socket readyState "%s"',this.readyState)},r.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!=this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},r.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout(function(){"closed"!=e.readyState&&e.onClose("ping timeout")},t||e.pingInterval+e.pingTimeout)},r.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){a("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)},r.prototype.ping=function(){this.sendPacket("ping")},r.prototype.onDrain=function(){for(var t=0;t<this.prevBufferLen;t++)this.callbackBuffer[t]&&this.callbackBuffer[t]();this.writeBuffer.splice(0,this.prevBufferLen),this.callbackBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0==this.writeBuffer.length?this.emit("drain"):this.flush()},r.prototype.flush=function(){"closed"!=this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(a("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},r.prototype.write=r.prototype.send=function(t,e){return this.sendPacket("message",t,e),this},r.prototype.sendPacket=function(t,e,n){if("closing"!=this.readyState&&"closed"!=this.readyState){var r={type:t,data:e};this.emit("packetCreate",r),this.writeBuffer.push(r),this.callbackBuffer.push(n),this.flush()}},r.prototype.close=function(){function t(){r.onClose("forced close"),a("socket closing - telling transport to close"),r.transport.close()}function e(){r.removeListener("upgrade",e),r.removeListener("upgradeError",e),t()}function n(){r.once("upgrade",e),r.once("upgradeError",e)}if("opening"==this.readyState||"open"==this.readyState){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():t()}):this.upgrading?n():t()}return this},r.prototype.onError=function(t){a("socket error %j",t),r.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},r.prototype.onClose=function(t,e){if("opening"==this.readyState||"open"==this.readyState||"closing"==this.readyState){a('socket close with reason: "%s"',t);var n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),setTimeout(function(){n.writeBuffer=[],n.callbackBuffer=[],n.prevBufferLen=0},0),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e)}},r.prototype.filterUpgrades=function(t){for(var e=[],n=0,r=t.length;r>n;n++)~c(this.transports,t[n])&&e.push(t[n]);return e}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./transport":14,"./transports":15,"component-emitter":9,debug:22,"engine.io-parser":25,indexof:42,parsejson:34,parseqs:35,parseuri:36}],14:[function(t,e){function n(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized}var r=t("engine.io-parser"),o=t("component-emitter");e.exports=n,o(n.prototype),n.timestamps=0,n.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},n.prototype.open=function(){return("closed"==this.readyState||""==this.readyState)&&(this.readyState="opening",this.doOpen()),this},n.prototype.close=function(){return("opening"==this.readyState||"open"==this.readyState)&&(this.doClose(),this.onClose()),this},n.prototype.send=function(t){if("open"!=this.readyState)throw new Error("Transport not open");this.write(t)},n.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},n.prototype.onData=function(t){var e=r.decodePacket(t,this.socket.binaryType);this.onPacket(e)},n.prototype.onPacket=function(t){this.emit("packet",t)},n.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},{"component-emitter":9,"engine.io-parser":25}],15:[function(t,e,n){(function(e){function r(t){var n,r=!1,a=!1,c=!1!==t.jsonp;if(e.location){var p="https:"==location.protocol,u=location.port;u||(u=p?443:80),r=t.hostname!=location.hostname||u!=t.port,a=t.secure!=p}if(t.xdomain=r,t.xscheme=a,n=new o(t),"open"in n&&!t.forceJSONP)return new i(t);if(!c)throw new Error("JSONP disabled");return new s(t)}var o=t("xmlhttprequest"),i=t("./polling-xhr"),s=t("./polling-jsonp"),a=t("./websocket");n.polling=r,n.websocket=a}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./polling-jsonp":16,"./polling-xhr":17,"./websocket":19,xmlhttprequest:20}],16:[function(t,e){(function(n){function r(){}function o(t){i.call(this,t),this.query=this.query||{},a||(n.___eio||(n.___eio=[]),a=n.___eio),this.index=a.length;var e=this;a.push(function(t){e.onData(t)}),this.query.j=this.index,n.document&&n.addEventListener&&n.addEventListener("beforeunload",function(){e.script&&(e.script.onerror=r)},!1)}var i=t("./polling"),s=t("component-inherit");e.exports=o;var a,c=/\n/g,p=/\\n/g;s(o,i),o.prototype.supportsBinary=!1,o.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),i.prototype.doClose.call(this)},o.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n),this.script=e;var r="undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent);r&&setTimeout(function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)},o.prototype.doWrite=function(t,e){function n(){r(),e()}function r(){if(o.iframe)try{o.form.removeChild(o.iframe)}catch(t){o.onError("jsonp polling iframe removal error",t)}try{var e='<iframe src="javascript:0" name="'+o.iframeId+'">';i=document.createElement(e)}catch(t){i=document.createElement("iframe"),i.name=o.iframeId,i.src="javascript:0"}i.id=o.iframeId,o.form.appendChild(i),o.iframe=i}var o=this;if(!this.form){var i,s=document.createElement("form"),a=document.createElement("textarea"),u=this.iframeId="eio_iframe_"+this.index;s.className="socketio",s.style.position="absolute",s.style.top="-1000px",s.style.left="-1000px",s.target=u,s.method="POST",s.setAttribute("accept-charset","utf-8"),a.name="d",s.appendChild(a),document.body.appendChild(s),this.form=s,this.area=a}this.form.action=this.uri(),r(),t=t.replace(p,"\\\n"),this.area.value=t.replace(c,"\\n");try{this.form.submit()}catch(f){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"==o.iframe.readyState&&n()}:this.iframe.onload=n}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./polling":18,"component-inherit":21}],17:[function(t,e){(function(n){function r(){}function o(t){if(c.call(this,t),n.location){var e="https:"==location.protocol,r=location.port;r||(r=e?443:80),this.xd=t.hostname!=n.location.hostname||r!=t.port,this.xs=t.secure!=e}}function i(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!=t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.create()}function s(){for(var t in i.requests)i.requests.hasOwnProperty(t)&&i.requests[t].abort()}var a=t("xmlhttprequest"),c=t("./polling"),p=t("component-emitter"),u=t("component-inherit"),f=t("debug")("engine.io-client:polling-xhr");e.exports=o,e.exports.Request=i,u(o,c),o.prototype.supportsBinary=!0,o.prototype.request=function(t){return t=t||{},t.uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,new i(t)},o.prototype.doWrite=function(t,e){var n="string"!=typeof t&&void 0!==t,r=this.request({method:"POST",data:t,isBinary:n}),o=this;r.on("success",e),r.on("error",function(t){o.onError("xhr post error",t)}),this.sendXhr=r},o.prototype.doPoll=function(){f("xhr poll");var t=this.request(),e=this;t.on("data",function(t){e.onData(t)}),t.on("error",function(t){e.onError("xhr poll error",t)}),this.pollXhr=t},p(i.prototype),i.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var e=this.xhr=new a(t),r=this;try{if(f("xhr open %s: %s",this.method,this.uri),e.open(this.method,this.uri,this.async),this.supportsBinary&&(e.responseType="arraybuffer"),"POST"==this.method)try{this.isBinary?e.setRequestHeader("Content-type","application/octet-stream"):e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(o){}"withCredentials"in e&&(e.withCredentials=!0),this.hasXDR()?(e.onload=function(){r.onLoad()},e.onerror=function(){r.onError(e.responseText)}):e.onreadystatechange=function(){4==e.readyState&&(200==e.status||1223==e.status?r.onLoad():setTimeout(function(){r.onError(e.status)},0))},f("xhr data %s",this.data),e.send(this.data)}catch(o){return void setTimeout(function(){r.onError(o)},0)}n.document&&(this.index=i.requestsCount++,i.requests[this.index]=this)},i.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},i.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},i.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},i.prototype.cleanup=function(t){if("undefined"!=typeof this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=r:this.xhr.onreadystatechange=r,t)try{this.xhr.abort()}catch(e){}n.document&&delete i.requests[this.index],this.xhr=null}},i.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type").split(";")[0]}catch(n){}t="application/octet-stream"===e?this.xhr.response:this.supportsBinary?"ok":this.xhr.responseText}catch(n){this.onError(n)}null!=t&&this.onData(t)},i.prototype.hasXDR=function(){return"undefined"!=typeof n.XDomainRequest&&!this.xs&&this.enablesXDR},i.prototype.abort=function(){this.cleanup()},n.document&&(i.requestsCount=0,i.requests={},n.attachEvent?n.attachEvent("onunload",s):n.addEventListener&&n.addEventListener("beforeunload",s,!1))}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./polling":18,"component-emitter":9,"component-inherit":21,debug:22,xmlhttprequest:20}],18:[function(t,e){function n(t){var e=t&&t.forceBase64;
-(!c||e)&&(this.supportsBinary=!1),r.call(this,t)}var r=t("../transport"),o=t("parseqs"),i=t("engine.io-parser"),s=t("component-inherit"),a=t("debug")("engine.io-client:polling");e.exports=n;var c=function(){var e=t("xmlhttprequest"),n=new e({xdomain:!1});return null!=n.responseType}();s(n,r),n.prototype.name="polling",n.prototype.doOpen=function(){this.poll()},n.prototype.pause=function(t){function e(){a("paused"),n.readyState="paused",t()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(a("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){a("pre-pause polling complete"),--r||e()})),this.writable||(a("we are currently writing - waiting to pause"),r++,this.once("drain",function(){a("pre-pause writing complete"),--r||e()}))}else e()},n.prototype.poll=function(){a("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},n.prototype.onData=function(t){var e=this;a("polling got data %s",t);var n=function(t){return"opening"==e.readyState&&e.onOpen(),"close"==t.type?(e.onClose(),!1):void e.onPacket(t)};i.decodePayload(t,this.socket.binaryType,n),"closed"!=this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"==this.readyState?this.poll():a('ignoring poll - transport state "%s"',this.readyState))},n.prototype.doClose=function(){function t(){a("writing close packet"),e.write([{type:"close"}])}var e=this;"open"==this.readyState?(a("transport open - closing"),t()):(a("transport not open - deferring close"),this.once("open",t))},n.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")},e=this;i.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,n)})},n.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(t[this.timestampParam]=+new Date+"-"+r.timestamps++),this.supportsBinary||t.sid||(t.b64=1),t=o.encode(t),this.port&&("https"==e&&443!=this.port||"http"==e&&80!=this.port)&&(n=":"+this.port),t.length&&(t="?"+t),e+"://"+this.hostname+n+this.path+t}},{"../transport":14,"component-inherit":21,debug:22,"engine.io-parser":25,parseqs:35,xmlhttprequest:20}],19:[function(t,e){function n(t){var e=t&&t.forceBase64;e&&(this.supportsBinary=!1),r.call(this,t)}var r=t("../transport"),o=t("engine.io-parser"),i=t("parseqs"),s=t("component-inherit"),a=t("debug")("engine.io-client:websocket"),c=t("ws");e.exports=n,s(n,r),n.prototype.name="websocket",n.prototype.supportsBinary=!0,n.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=void 0,n={agent:this.agent};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.ws=new c(t,e,n),void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.binaryType="arraybuffer",this.addEventListeners()}},n.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},"undefined"!=typeof navigator&&/iPad|iPhone|iPod/i.test(navigator.userAgent)&&(n.prototype.onData=function(t){var e=this;setTimeout(function(){r.prototype.onData.call(e,t)},0)}),n.prototype.write=function(t){function e(){n.writable=!0,n.emit("drain")}var n=this;this.writable=!1;for(var r=0,i=t.length;i>r;r++)o.encodePacket(t[r],this.supportsBinary,function(t){try{n.ws.send(t)}catch(e){a("websocket closed before onclose event")}});setTimeout(e,0)},n.prototype.onClose=function(){r.prototype.onClose.call(this)},n.prototype.doClose=function(){"undefined"!=typeof this.ws&&this.ws.close()},n.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";return this.port&&("wss"==e&&443!=this.port||"ws"==e&&80!=this.port)&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=+new Date),this.supportsBinary||(t.b64=1),t=i.encode(t),t.length&&(t="?"+t),e+"://"+this.hostname+n+this.path+t},n.prototype.check=function(){return!(!c||"__initialize"in c&&this.name===n.prototype.name)}},{"../transport":14,"component-inherit":21,debug:22,"engine.io-parser":25,parseqs:35,ws:37}],20:[function(t,e){var n=t("has-cors");e.exports=function(t){var e=t.xdomain,r=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||n))return new XMLHttpRequest}catch(i){}try{if("undefined"!=typeof XDomainRequest&&!r&&o)return new XDomainRequest}catch(i){}if(!e)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(i){}}},{"has-cors":40}],21:[function(t,e){e.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},{}],22:[function(t,e,n){function r(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function o(){var t=arguments,e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+n.humanize(this.diff),!e)return t;var r="color: "+this.color;t=[t[0],r,"color: inherit"].concat(Array.prototype.slice.call(t,1));var o=0,i=0;return t[0].replace(/%[a-z%]/g,function(t){"%"!==t&&(o++,"%c"===t&&(i=o))}),t.splice(i,0,r),t}function i(){return"object"==typeof console&&"function"==typeof console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(t){try{null==t?localStorage.removeItem("debug"):localStorage.debug=t}catch(e){}}function a(){var t;try{t=localStorage.debug}catch(e){}return t}n=e.exports=t("./debug"),n.log=i,n.formatArgs=o,n.save=s,n.load=a,n.useColors=r,n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(t){return JSON.stringify(t)},n.enable(a())},{"./debug":23}],23:[function(t,e,n){function r(){return n.colors[u++%n.colors.length]}function o(t){function e(){}function o(){var t=o,e=+new Date,i=e-(p||e);t.diff=i,t.prev=p,t.curr=e,p=e,null==t.useColors&&(t.useColors=n.useColors()),null==t.color&&t.useColors&&(t.color=r());var s=Array.prototype.slice.call(arguments);s[0]=n.coerce(s[0]),"string"!=typeof s[0]&&(s=["%o"].concat(s));var a=0;s[0]=s[0].replace(/%([a-z%])/g,function(e,r){if("%"===e)return e;a++;var o=n.formatters[r];if("function"==typeof o){var i=s[a];e=o.call(t,i),s.splice(a,1),a--}return e}),"function"==typeof n.formatArgs&&(s=n.formatArgs.apply(t,s));var c=o.log||n.log||console.log.bind(console);c.apply(t,s)}e.enabled=!1,o.enabled=!0;var i=n.enabled(t)?o:e;return i.namespace=t,i}function i(t){n.save(t);for(var e=(t||"").split(/[\s,]+/),r=e.length,o=0;r>o;o++)e[o]&&(t=e[o].replace(/\*/g,".*?"),"-"===t[0]?n.skips.push(new RegExp("^"+t.substr(1)+"$")):n.names.push(new RegExp("^"+t+"$")))}function s(){n.enable("")}function a(t){var e,r;for(e=0,r=n.skips.length;r>e;e++)if(n.skips[e].test(t))return!1;for(e=0,r=n.names.length;r>e;e++)if(n.names[e].test(t))return!0;return!1}function c(t){return t instanceof Error?t.stack||t.message:t}n=e.exports=o,n.coerce=c,n.disable=s,n.enable=i,n.enabled=a,n.humanize=t("ms"),n.names=[],n.skips=[],n.formatters={};var p,u=0},{ms:24}],24:[function(t,e){function n(t){var e=/^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"y":return n*u;case"days":case"day":case"d":return n*p;case"hours":case"hour":case"h":return n*c;case"minutes":case"minute":case"m":return n*a;case"seconds":case"second":case"s":return n*s;case"ms":return n}}}function r(t){return t>=p?Math.round(t/p)+"d":t>=c?Math.round(t/c)+"h":t>=a?Math.round(t/a)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function o(t){return i(t,p,"day")||i(t,c,"hour")||i(t,a,"minute")||i(t,s,"second")||t+" ms"}function i(t,e,n){return e>t?void 0:1.5*e>t?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var s=1e3,a=60*s,c=60*a,p=24*c,u=365.25*p;e.exports=function(t,e){return e=e||{},"string"==typeof t?n(t):e.long?o(t):r(t)}},{}],25:[function(t,e,n){(function(e){function r(t,e){var r="b"+n.packets[t.type]+t.data.data;return e(r)}function o(t,e,r){if(!e)return n.encodeBase64Packet(t,r);var o=t.data,i=new Uint8Array(o),s=new Uint8Array(1+o.byteLength);s[0]=m[t.type];for(var a=0;a<i.length;a++)s[a+1]=i[a];return r(s.buffer)}function i(t,e,r){if(!e)return n.encodeBase64Packet(t,r);var o=new FileReader;return o.onload=function(){t.data=o.result,n.encodePacket(t,e,!0,r)},o.readAsArrayBuffer(t.data)}function s(t,e,r){if(!e)return n.encodeBase64Packet(t,r);if(g)return i(t,e,r);var o=new Uint8Array(1);o[0]=m[t.type];var s=new w([o.buffer,t.data]);return r(s)}function a(t,e,n){for(var r=new Array(t.length),o=h(t.length,n),i=function(t,n,o){e(n,function(e,n){r[t]=n,o(e,r)})},s=0;s<t.length;s++)i(s,t[s],o)}var c=t("./keys"),p=t("has-binary"),u=t("arraybuffer.slice"),f=t("base64-arraybuffer"),h=t("after"),l=t("utf8"),d=navigator.userAgent.match(/Android/i),y=/PhantomJS/i.test(navigator.userAgent),g=d||y;n.protocol=3;var m=n.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},v=c(m),b={type:"error",data:"parser error"},w=t("blob");n.encodePacket=function(t,n,i,a){"function"==typeof n&&(a=n,n=!1),"function"==typeof i&&(a=i,i=null);var c=void 0===t.data?void 0:t.data.buffer||t.data;if(e.ArrayBuffer&&c instanceof ArrayBuffer)return o(t,n,a);if(w&&c instanceof e.Blob)return s(t,n,a);if(c&&c.base64)return r(t,a);var p=m[t.type];return void 0!==t.data&&(p+=i?l.encode(String(t.data)):String(t.data)),a(""+p)},n.encodeBase64Packet=function(t,r){var o="b"+n.packets[t.type];if(w&&t.data instanceof w){var i=new FileReader;return i.onload=function(){var t=i.result.split(",")[1];r(o+t)},i.readAsDataURL(t.data)}var s;try{s=String.fromCharCode.apply(null,new Uint8Array(t.data))}catch(a){for(var c=new Uint8Array(t.data),p=new Array(c.length),u=0;u<c.length;u++)p[u]=c[u];s=String.fromCharCode.apply(null,p)}return o+=e.btoa(s),r(o)},n.decodePacket=function(t,e,r){if("string"==typeof t||void 0===t){if("b"==t.charAt(0))return n.decodeBase64Packet(t.substr(1),e);if(r)try{t=l.decode(t)}catch(o){return b}var i=t.charAt(0);return Number(i)==i&&v[i]?t.length>1?{type:v[i],data:t.substring(1)}:{type:v[i]}:b}var s=new Uint8Array(t),i=s[0],a=u(t,1);return w&&"blob"===e&&(a=new w([a])),{type:v[i],data:a}},n.decodeBase64Packet=function(t,n){var r=v[t.charAt(0)];if(!e.ArrayBuffer)return{type:r,data:{base64:!0,data:t.substr(1)}};var o=f.decode(t.substr(1));return"blob"===n&&w&&(o=new w([o])),{type:r,data:o}},n.encodePayload=function(t,e,r){function o(t){return t.length+":"+t}function i(t,r){n.encodePacket(t,s?e:!1,!0,function(t){r(null,o(t))})}"function"==typeof e&&(r=e,e=null);var s=p(t);return e&&s?w&&!g?n.encodePayloadAsBlob(t,r):n.encodePayloadAsArrayBuffer(t,r):t.length?void a(t,i,function(t,e){return r(e.join(""))}):r("0:")},n.decodePayload=function(t,e,r){if("string"!=typeof t)return n.decodePayloadAsBinary(t,e,r);"function"==typeof e&&(r=e,e=null);var o;if(""==t)return r(b,0,1);for(var i,s,a="",c=0,p=t.length;p>c;c++){var u=t.charAt(c);if(":"!=u)a+=u;else{if(""==a||a!=(i=Number(a)))return r(b,0,1);if(s=t.substr(c+1,i),a!=s.length)return r(b,0,1);if(s.length){if(o=n.decodePacket(s,e,!0),b.type==o.type&&b.data==o.data)return r(b,0,1);var f=r(o,c+i,p);if(!1===f)return}c+=i,a=""}}return""!=a?r(b,0,1):void 0},n.encodePayloadAsArrayBuffer=function(t,e){function r(t,e){n.encodePacket(t,!0,!0,function(t){return e(null,t)})}return t.length?void a(t,r,function(t,n){var r=n.reduce(function(t,e){var n;return n="string"==typeof e?e.length:e.byteLength,t+n.toString().length+n+2},0),o=new Uint8Array(r),i=0;return n.forEach(function(t){var e="string"==typeof t,n=t;if(e){for(var r=new Uint8Array(t.length),s=0;s<t.length;s++)r[s]=t.charCodeAt(s);n=r.buffer}o[i++]=e?0:1;for(var a=n.byteLength.toString(),s=0;s<a.length;s++)o[i++]=parseInt(a[s]);o[i++]=255;for(var r=new Uint8Array(n),s=0;s<r.length;s++)o[i++]=r[s]}),e(o.buffer)}):e(new ArrayBuffer(0))},n.encodePayloadAsBlob=function(t,e){function r(t,e){n.encodePacket(t,!0,!0,function(t){var n=new Uint8Array(1);if(n[0]=1,"string"==typeof t){for(var r=new Uint8Array(t.length),o=0;o<t.length;o++)r[o]=t.charCodeAt(o);t=r.buffer,n[0]=0}for(var i=t instanceof ArrayBuffer?t.byteLength:t.size,s=i.toString(),a=new Uint8Array(s.length+1),o=0;o<s.length;o++)a[o]=parseInt(s[o]);if(a[s.length]=255,w){var c=new w([n.buffer,a.buffer,t]);e(null,c)}})}a(t,r,function(t,n){return e(new w(n))})},n.decodePayloadAsBinary=function(t,e,r){"function"==typeof e&&(r=e,e=null);for(var o=t,i=[],s=!1;o.byteLength>0;){for(var a=new Uint8Array(o),c=0===a[0],p="",f=1;255!=a[f];f++){if(p.length>310){s=!0;break}p+=a[f]}if(s)return r(b,0,1);o=u(o,2+p.length),p=parseInt(p);var h=u(o,0,p);if(c)try{h=String.fromCharCode.apply(null,new Uint8Array(h))}catch(l){var d=new Uint8Array(h);h="";for(var f=0;f<d.length;f++)h+=String.fromCharCode(d[f])}i.push(h),o=u(o,p)}var y=i.length;i.forEach(function(t,o){r(n.decodePacket(t,e,!0),o,y)})}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./keys":26,after:27,"arraybuffer.slice":28,"base64-arraybuffer":29,blob:30,"has-binary":31,utf8:33}],26:[function(t,e){e.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var r in t)n.call(t,r)&&e.push(r);return e}},{}],27:[function(t,e){function n(t,e,n){function o(t,r){if(o.count<=0)throw new Error("after called too many times");--o.count,t?(i=!0,e(t),e=n):0!==o.count||i||e(null,r)}var i=!1;return n=n||r,o.count=t,0===t?e():o}function r(){}e.exports=n},{}],28:[function(t,e){e.exports=function(t,e,n){var r=t.byteLength;if(e=e||0,n=n||r,t.slice)return t.slice(e,n);if(0>e&&(e+=r),0>n&&(n+=r),n>r&&(n=r),e>=r||e>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(t),i=new Uint8Array(n-e),s=e,a=0;n>s;s++,a++)i[a]=o[s];return i.buffer}},{}],29:[function(t,e,n){!function(t){"use strict";n.encode=function(e){var n,r=new Uint8Array(e),o=r.length,i="";for(n=0;o>n;n+=3)i+=t[r[n]>>2],i+=t[(3&r[n])<<4|r[n+1]>>4],i+=t[(15&r[n+1])<<2|r[n+2]>>6],i+=t[63&r[n+2]];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i},n.decode=function(e){var n,r,o,i,s,a=.75*e.length,c=e.length,p=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var u=new ArrayBuffer(a),f=new Uint8Array(u);for(n=0;c>n;n+=4)r=t.indexOf(e[n]),o=t.indexOf(e[n+1]),i=t.indexOf(e[n+2]),s=t.indexOf(e[n+3]),f[p++]=r<<2|o>>4,f[p++]=(15&o)<<4|i>>2,f[p++]=(3&i)<<6|63&s;return u}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},{}],30:[function(t,e){(function(t){function n(t,e){e=e||{};for(var n=new r,o=0;o<t.length;o++)n.append(t[o]);return e.type?n.getBlob(e.type):n.getBlob()}var r=t.BlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder||t.MozBlobBuilder,o=function(){try{var t=new Blob(["hi"]);return 2==t.size}catch(e){return!1}}(),i=r&&r.prototype.append&&r.prototype.getBlob;e.exports=function(){return o?t.Blob:i?n:void 0}()}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],31:[function(t,e){(function(n){function r(t){function e(t){if(!t)return!1;if(n.Buffer&&n.Buffer.isBuffer(t)||n.ArrayBuffer&&t instanceof ArrayBuffer||n.Blob&&t instanceof Blob||n.File&&t instanceof File)return!0;if(o(t)){for(var r=0;r<t.length;r++)if(e(t[r]))return!0}else if(t&&"object"==typeof t){t.toJSON&&(t=t.toJSON());for(var i in t)if(t.hasOwnProperty(i)&&e(t[i]))return!0}return!1}return e(t)}var o=t("isarray");e.exports=r}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{isarray:32}],32:[function(t,e){e.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},{}],33:[function(e,n,r){(function(e){!function(o){function i(t){for(var e,n,r=[],o=0,i=t.length;i>o;)e=t.charCodeAt(o++),e>=55296&&56319>=e&&i>o?(n=t.charCodeAt(o++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--)):r.push(e);return r}function s(t){for(var e,n=t.length,r=-1,o="";++r<n;)e=t[r],e>65535&&(e-=65536,o+=b(e>>>10&1023|55296),e=56320|1023&e),o+=b(e);return o}function a(t,e){return b(t>>e&63|128)}function c(t){if(0==(4294967168&t))return b(t);var e="";return 0==(4294965248&t)?e=b(t>>6&31|192):0==(4294901760&t)?(e=b(t>>12&15|224),e+=a(t,6)):0==(4292870144&t)&&(e=b(t>>18&7|240),e+=a(t,12),e+=a(t,6)),e+=b(63&t|128)}function p(t){for(var e,n=i(t),r=n.length,o=-1,s="";++o<r;)e=n[o],s+=c(e);return s}function u(){if(v>=m)throw Error("Invalid byte index");var t=255&g[v];if(v++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function f(){var t,e,n,r,o;if(v>m)throw Error("Invalid byte index");if(v==m)return!1;if(t=255&g[v],v++,0==(128&t))return t;if(192==(224&t)){var e=u();if(o=(31&t)<<6|e,o>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&t)){if(e=u(),n=u(),o=(15&t)<<12|e<<6|n,o>=2048)return o;throw Error("Invalid continuation byte")}if(240==(248&t)&&(e=u(),n=u(),r=u(),o=(15&t)<<18|e<<12|n<<6|r,o>=65536&&1114111>=o))return o;throw Error("Invalid UTF-8 detected")}function h(t){g=i(t),m=g.length,v=0;for(var e,n=[];(e=f())!==!1;)n.push(e);return s(n)}var l="object"==typeof r&&r,d="object"==typeof n&&n&&n.exports==l&&n,y="object"==typeof e&&e;(y.global===y||y.window===y)&&(o=y);var g,m,v,b=String.fromCharCode,w={version:"2.0.0",encode:p,decode:h};if("function"==typeof t&&"object"==typeof t.amd&&t.amd)t(function(){return w});else if(l&&!l.nodeType)if(d)d.exports=w;else{var k={},x=k.hasOwnProperty;for(var A in w)x.call(w,A)&&(l[A]=w[A])}else o.utf8=w}(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],34:[function(t,e){(function(t){var n=/^[\],:{}\s]*$/,r=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,o=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,i=/(?:^|:|,)(?:\s*\[)+/g,s=/^\s+/,a=/\s+$/;e.exports=function(e){return"string"==typeof e&&e?(e=e.replace(s,"").replace(a,""),t.JSON&&JSON.parse?JSON.parse(e):n.test(e.replace(r,"@").replace(o,"]").replace(i,""))?new Function("return "+e)():void 0):null}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],35:[function(t,e,n){n.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},n.decode=function(t){for(var e={},n=t.split("&"),r=0,o=n.length;o>r;r++){var i=n[r].split("=");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return e}},{}],36:[function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(t){var e=t,o=t.indexOf("["),i=t.indexOf("]");-1!=o&&-1!=i&&(t=t.substring(0,o)+t.substring(o,i).replace(/:/g,";")+t.substring(i,t.length));for(var s=n.exec(t||""),a={},c=14;c--;)a[r[c]]=s[c]||"";return-1!=o&&-1!=i&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},{}],37:[function(t,e){function n(t,e){var n;return n=e?new o(t,e):new o(t)}var r=function(){return this}(),o=r.WebSocket||r.MozWebSocket;e.exports=o?n:null,o&&(n.prototype=o.prototype)},{}],38:[function(t,e){(function(n){function r(t){function e(t){if(!t)return!1;if(n.Buffer&&n.Buffer.isBuffer(t)||n.ArrayBuffer&&t instanceof ArrayBuffer||n.Blob&&t instanceof Blob||n.File&&t instanceof File)return!0;if(o(t)){for(var r=0;r<t.length;r++)if(e(t[r]))return!0}else if(t&&"object"==typeof t){t.toJSON&&(t=t.toJSON());for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return!0}return!1}return e(t)}var o=t("isarray");e.exports=r}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{isarray:39}],39:[function(t,e){e.exports=t(32)},{}],40:[function(t,e){var n=t("global");try{e.exports="XMLHttpRequest"in n&&"withCredentials"in new n.XMLHttpRequest}catch(r){e.exports=!1}},{global:41}],41:[function(t,e){e.exports=function(){return this}()},{}],42:[function(t,e){var n=[].indexOf;e.exports=function(t,e){if(n)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}},{}],43:[function(t,e,n){var r=Object.prototype.hasOwnProperty;n.keys=Object.keys||function(t){var e=[];for(var n in t)r.call(t,n)&&e.push(n);return e},n.values=function(t){var e=[];for(var n in t)r.call(t,n)&&e.push(t[n]);return e},n.merge=function(t,e){for(var n in e)r.call(e,n)&&(t[n]=e[n]);return t},n.length=function(t){return n.keys(t).length},n.isEmpty=function(t){return 0==n.length(t)}},{}],44:[function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(t){for(var e=n.exec(t||""),o={},i=14;i--;)o[r[i]]=e[i]||"";return o}},{}],45:[function(t,e,n){(function(e){var r=t("isarray"),o=t("./is-buffer");n.deconstructPacket=function(t){function e(t){if(!t)return t;if(o(t)){var i={_placeholder:!0,num:n.length};return n.push(t),i}if(r(t)){for(var s=new Array(t.length),a=0;a<t.length;a++)s[a]=e(t[a]);return s}if("object"==typeof t&&!(t instanceof Date)){var s={};for(var c in t)s[c]=e(t[c]);return s}return t}var n=[],i=t.data,s=t;return s.data=e(i),s.attachments=n.length,{packet:s,buffers:n}},n.reconstructPacket=function(t,e){function n(t){if(t&&t._placeholder){var o=e[t.num];return o}if(r(t)){for(var i=0;i<t.length;i++)t[i]=n(t[i]);return t}if(t&&"object"==typeof t){for(var s in t)t[s]=n(t[s]);return t}return t}return t.data=n(t.data),t.attachments=void 0,t},n.removeBlobs=function(t,n){function i(t,c,p){if(!t)return t;if(e.Blob&&t instanceof Blob||e.File&&t instanceof File){s++;var u=new FileReader;u.onload=function(){p?p[c]=this.result:a=this.result,--s||n(a)},u.readAsArrayBuffer(t)}else if(r(t))for(var f=0;f<t.length;f++)i(t[f],f,t);else if(t&&"object"==typeof t&&!o(t))for(var h in t)i(t[h],h,t)}var s=0,a=t;i(a),s||n(a)}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./is-buffer":47,isarray:48}],46:[function(t,e,n){function r(){}function o(t){var e="",r=!1;return e+=t.type,(n.BINARY_EVENT==t.type||n.BINARY_ACK==t.type)&&(e+=t.attachments,e+="-"),t.nsp&&"/"!=t.nsp&&(r=!0,e+=t.nsp),null!=t.id&&(r&&(e+=",",r=!1),e+=t.id),null!=t.data&&(r&&(e+=","),e+=f.stringify(t.data)),u("encoded %j as %s",t,e),e}function i(t,e){function n(t){var n=l.deconstructPacket(t),r=o(n.packet),i=n.buffers;i.unshift(r),e(i)}l.removeBlobs(t,n)}function s(){this.reconstructor=null}function a(t){var e={},r=0;if(e.type=Number(t.charAt(0)),null==n.types[e.type])return p();if(n.BINARY_EVENT==e.type||n.BINARY_ACK==e.type){for(var o="";"-"!=t.charAt(++r)&&(o+=t.charAt(r),r!=t.length););if(o!=Number(o)||"-"!=t.charAt(r))throw new Error("Illegal attachments");e.attachments=Number(o)}if("/"==t.charAt(r+1))for(e.nsp="";++r;){var i=t.charAt(r);if(","==i)break;if(e.nsp+=i,r==t.length)break}else e.nsp="/";var s=t.charAt(r+1);if(""!==s&&Number(s)==s){for(e.id="";++r;){var i=t.charAt(r);if(null==i||Number(i)!=i){--r;break}if(e.id+=t.charAt(r),r==t.length)break}e.id=Number(e.id)}if(t.charAt(++r))try{e.data=f.parse(t.substr(r))}catch(a){return p()}return u("decoded %s as %j",t,e),e}function c(t){this.reconPack=t,this.buffers=[]}function p(){return{type:n.ERROR,data:"parser error"}}var u=t("debug")("socket.io-parser"),f=t("json3"),h=(t("isarray"),t("component-emitter")),l=t("./binary"),d=t("./is-buffer");n.protocol=4,n.types=["CONNECT","DISCONNECT","EVENT","BINARY_EVENT","ACK","BINARY_ACK","ERROR"],n.CONNECT=0,n.DISCONNECT=1,n.EVENT=2,n.ACK=3,n.ERROR=4,n.BINARY_EVENT=5,n.BINARY_ACK=6,n.Encoder=r,n.Decoder=s,r.prototype.encode=function(t,e){if(u("encoding packet %j",t),n.BINARY_EVENT==t.type||n.BINARY_ACK==t.type)i(t,e);else{var r=o(t);e([r])}},h(s.prototype),s.prototype.add=function(t){var e;if("string"==typeof t)e=a(t),n.BINARY_EVENT==e.type||n.BINARY_ACK==e.type?(this.reconstructor=new c(e),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",e)):this.emit("decoded",e);else{if(!d(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");e=this.reconstructor.takeBinaryData(t),e&&(this.reconstructor=null,this.emit("decoded",e))}},s.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},c.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length==this.reconPack.attachments){var e=l.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},c.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},{"./binary":45,"./is-buffer":47,"component-emitter":9,debug:10,isarray:48,json3:49}],47:[function(t,e){(function(t){function n(e){return t.Buffer&&t.Buffer.isBuffer(e)||t.ArrayBuffer&&e instanceof ArrayBuffer}e.exports=n}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],48:[function(t,e){e.exports=t(32)},{}],49:[function(e,n,r){!function(e){function n(t){if(n[t]!==s)return n[t];var e;if("bug-string-char-index"==t)e="a"!="a"[0];else if("json"==t)e=n("json-stringify")&&n("json-parse");else{var r,o='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var i=u.stringify,c="function"==typeof i&&f;if(c){(r=function(){return 1}).toJSON=r;try{c="0"===i(0)&&"0"===i(new Number)&&'""'==i(new String)&&i(a)===s&&i(s)===s&&i()===s&&"1"===i(r)&&"[1]"==i([r])&&"[null]"==i([s])&&"null"==i(null)&&"[null,null,null]"==i([s,a,null])&&i({a:[r,!0,!1,null,"\x00\b\n\f\r "]})==o&&"1"===i(null,r)&&"[\n 1,\n 2\n]"==i([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==i(new Date(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==i(new Date(864e13))&&'"-000001-01-01T00:00:00.000Z"'==i(new Date(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==i(new Date(-1))}catch(p){c=!1}}e=c}if("json-parse"==t){var h=u.parse;if("function"==typeof h)try{if(0===h("0")&&!h(!1)){r=h(o);var l=5==r.a.length&&1===r.a[0];if(l){try{l=!h('" "')}catch(p){}if(l)try{l=1!==h("01")}catch(p){}if(l)try{l=1!==h("1.")}catch(p){}}}}catch(p){l=!1}e=l}}return n[t]=!!e}var o,i,s,a={}.toString,c="function"==typeof t&&t.amd,p="object"==typeof JSON&&JSON,u="object"==typeof r&&r&&!r.nodeType&&r;u&&p?(u.stringify=p.stringify,u.parse=p.parse):u=e.JSON=p||{};var f=new Date(-0xc782b5b800cec);try{f=-109252==f.getUTCFullYear()&&0===f.getUTCMonth()&&1===f.getUTCDate()&&10==f.getUTCHours()&&37==f.getUTCMinutes()&&6==f.getUTCSeconds()&&708==f.getUTCMilliseconds()}catch(h){}if(!n("json")){var l="[object Function]",d="[object Date]",y="[object Number]",g="[object String]",m="[object Array]",v="[object Boolean]",b=n("bug-string-char-index");if(!f)var w=Math.floor,k=[0,31,59,90,120,151,181,212,243,273,304,334],x=function(t,e){return k[e]+365*(t-1970)+w((t-1969+(e=+(e>1)))/4)-w((t-1901+e)/100)+w((t-1601+e)/400)};(o={}.hasOwnProperty)||(o=function(t){var e,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=a?o=function(t){var e=this.__proto__,n=t in(this.__proto__=null,this);return this.__proto__=e,n}:(e=n.constructor,o=function(t){var n=(this.constructor||e).prototype;return t in this&&!(t in n&&this[t]===n[t])}),n=null,o.call(this,t)});var A={"boolean":1,number:1,string:1,undefined:1},B=function(t,e){var n=typeof t[e];return"object"==n?!!t[e]:!A[n]};if(i=function(t,e){var n,r,s,c=0;(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n;for(s in r)o.call(r,s)&&c++;return n=r=null,c?i=2==c?function(t,e){var n,r={},i=a.call(t)==l;for(n in t)i&&"prototype"==n||o.call(r,n)||!(r[n]=1)||!o.call(t,n)||e(n)}:function(t,e){var n,r,i=a.call(t)==l;for(n in t)i&&"prototype"==n||!o.call(t,n)||(r="constructor"===n)||e(n);(r||o.call(t,n="constructor"))&&e(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],i=function(t,e){var n,i,s=a.call(t)==l,c=!s&&"function"!=typeof t.constructor&&B(t,"hasOwnProperty")?t.hasOwnProperty:o;for(n in t)s&&"prototype"==n||!c.call(t,n)||e(n);for(i=r.length;n=r[--i];c.call(t,n)&&e(n));}),i(t,e)},!n("json-stringify")){var C={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},S="000000",E=function(t,e){return(S+(e||0)).slice(-t)},T="\\u00",j=function(t){var e,n='"',r=0,o=t.length,i=o>10&&b;for(i&&(e=t.split(""));o>r;r++){var s=t.charCodeAt(r);switch(s){case 8:case 9:case 10:case 12:case 13:case 34:case 92:n+=C[s];break;default:if(32>s){n+=T+E(2,s.toString(16));break}n+=i?e[r]:b?t.charAt(r):t[r]}}return n+'"'},_=function(t,e,n,r,c,p,u){var f,h,l,b,k,A,B,C,S,T,P,R,N,O,q,D;try{f=e[t]}catch(U){}if("object"==typeof f&&f)if(h=a.call(f),h!=d||o.call(f,"toJSON"))"function"==typeof f.toJSON&&(h!=y&&h!=g&&h!=m||o.call(f,"toJSON"))&&(f=f.toJSON(t));else if(f>-1/0&&1/0>f){if(x){for(k=w(f/864e5),l=w(k/365.2425)+1970-1;x(l+1,0)<=k;l++);for(b=w((k-x(l,0))/30.42);x(l,b+1)<=k;b++);k=1+k-x(l,b),A=(f%864e5+864e5)%864e5,B=w(A/36e5)%24,C=w(A/6e4)%60,S=w(A/1e3)%60,T=A%1e3}else l=f.getUTCFullYear(),b=f.getUTCMonth(),k=f.getUTCDate(),B=f.getUTCHours(),C=f.getUTCMinutes(),S=f.getUTCSeconds(),T=f.getUTCMilliseconds();f=(0>=l||l>=1e4?(0>l?"-":"+")+E(6,0>l?-l:l):E(4,l))+"-"+E(2,b+1)+"-"+E(2,k)+"T"+E(2,B)+":"+E(2,C)+":"+E(2,S)+"."+E(3,T)+"Z"}else f=null;if(n&&(f=n.call(e,t,f)),null===f)return"null";if(h=a.call(f),h==v)return""+f;if(h==y)return f>-1/0&&1/0>f?""+f:"null";if(h==g)return j(""+f);if("object"==typeof f){for(O=u.length;O--;)if(u[O]===f)throw TypeError();if(u.push(f),P=[],q=p,p+=c,h==m){for(N=0,O=f.length;O>N;N++)R=_(N,f,n,r,c,p,u),P.push(R===s?"null":R);D=P.length?c?"[\n"+p+P.join(",\n"+p)+"\n"+q+"]":"["+P.join(",")+"]":"[]"}else i(r||f,function(t){var e=_(t,f,n,r,c,p,u);e!==s&&P.push(j(t)+":"+(c?" ":"")+e)}),D=P.length?c?"{\n"+p+P.join(",\n"+p)+"\n"+q+"}":"{"+P.join(",")+"}":"{}";return u.pop(),D}};u.stringify=function(t,e,n){var r,o,i,s;if("function"==typeof e||"object"==typeof e&&e)if((s=a.call(e))==l)o=e;else if(s==m){i={};for(var c,p=0,u=e.length;u>p;c=e[p++],s=a.call(c),(s==g||s==y)&&(i[c]=1));}if(n)if((s=a.call(n))==y){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+=" ");}else s==g&&(r=n.length<=10?n:n.slice(0,10));return _("",(c={},c[""]=t,c),o,i,r,"",[])}}if(!n("json-parse")){var P,R,N=String.fromCharCode,O={92:"\\",34:'"',47:"/",98:"\b",116:" ",110:"\n",102:"\f",114:"\r"},q=function(){throw P=R=null,SyntaxError()},D=function(){for(var t,e,n,r,o,i=R,s=i.length;s>P;)switch(o=i.charCodeAt(P)){case 9:case 10:case 13:case 32:P++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=b?i.charAt(P):i[P],P++,t;case 34:for(t="@",P++;s>P;)if(o=i.charCodeAt(P),32>o)q();else if(92==o)switch(o=i.charCodeAt(++P)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=O[o],P++;break;case 117:for(e=++P,n=P+4;n>P;P++)o=i.charCodeAt(P),o>=48&&57>=o||o>=97&&102>=o||o>=65&&70>=o||q();t+=N("0x"+i.slice(e,P));break;default:q()}else{if(34==o)break;for(o=i.charCodeAt(P),e=P;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++P);t+=i.slice(e,P)}if(34==i.charCodeAt(P))return P++,t;q();default:if(e=P,45==o&&(r=!0,o=i.charCodeAt(++P)),o>=48&&57>=o){for(48==o&&(o=i.charCodeAt(P+1),o>=48&&57>=o)&&q(),r=!1;s>P&&(o=i.charCodeAt(P),o>=48&&57>=o);P++);if(46==i.charCodeAt(P)){for(n=++P;s>n&&(o=i.charCodeAt(n),o>=48&&57>=o);n++);n==P&&q(),P=n}if(o=i.charCodeAt(P),101==o||69==o){for(o=i.charCodeAt(++P),(43==o||45==o)&&P++,n=P;s>n&&(o=i.charCodeAt(n),o>=48&&57>=o);n++);n==P&&q(),P=n}return+i.slice(e,P)}if(r&&q(),"true"==i.slice(P,P+4))return P+=4,!0;if("false"==i.slice(P,P+5))return P+=5,!1;
-if("null"==i.slice(P,P+4))return P+=4,null;q()}return"$"},U=function(t){var e,n;if("$"==t&&q(),"string"==typeof t){if("@"==(b?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];t=D(),"]"!=t;n||(n=!0))n&&(","==t?(t=D(),"]"==t&&q()):q()),","==t&&q(),e.push(U(t));return e}if("{"==t){for(e={};t=D(),"}"!=t;n||(n=!0))n&&(","==t?(t=D(),"}"==t&&q()):q()),(","==t||"string"!=typeof t||"@"!=(b?t.charAt(0):t[0])||":"!=D())&&q(),e[t.slice(1)]=U(D());return e}q()}return t},I=function(t,e,n){var r=L(t,e,n);r===s?delete t[e]:t[e]=r},L=function(t,e,n){var r,o=t[e];if("object"==typeof o&&o)if(a.call(o)==m)for(r=o.length;r--;)I(o,r,n);else i(o,function(t){I(o,t,n)});return n.call(t,e,o)};u.parse=function(t,e){var n,r;return P=0,R=""+t,n=U(D()),"$"!=D()&&q(),P=R=null,e&&a.call(e)==l?L((r={},r[""]=n,r),"",e):n}}}c&&t(function(){return u})}(this)},{}],50:[function(t,e){function n(t,e){var n=[];e=e||0;for(var r=e||0;r<t.length;r++)n[r-e]=t[r];return n}e.exports=n},{}]},{},[1])(1)}); \ No newline at end of file
diff --git a/desktop/share/templates/401.html b/desktop/share/templates/401.html
deleted file mode 100644
index 5e43ca01..00000000
--- a/desktop/share/templates/401.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
- <title>OnionShare: 401 Unauthorized Access</title>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon" />
- <link rel="stylesheet" rel="subresource" type="text/css" href="{{ static_url_path }}/css/style.css" media="all">
-</head>
-
-<body>
- <div class="info-wrapper">
- <div class="info">
- <p><img class="logo" src="{{ static_url_path }}/img/logo_large.png" title="OnionShare"></p>
- <p class="info-header">401 Unauthorized Access</p>
- </div>
- </div>
-</body>
-
-</html>
diff --git a/desktop/share/templates/403.html b/desktop/share/templates/403.html
deleted file mode 100644
index c9d28eea..00000000
--- a/desktop/share/templates/403.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
- <title>OnionShare: 403 Forbidden</title>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon" />
- <link rel="stylesheet" rel="subresource" type="text/css" href="{{ static_url_path }}/css/style.css" media="all">
-</head>
-
-<body>
- <div class="info-wrapper">
- <div class="info">
- <p><img class="logo" src="{{ static_url_path }}/img/logo_large.png" title="OnionShare"></p>
- <p class="info-header">You are not allowed to perform that action at this time.</p>
- </div>
- </div>
-</body>
-
-</html>
diff --git a/desktop/share/templates/404.html b/desktop/share/templates/404.html
deleted file mode 100644
index e816f2c4..00000000
--- a/desktop/share/templates/404.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
- <title>OnionShare: 404 Not Found</title>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon">
- <link rel="stylesheet" rel="subresource" type="text/css" href="{{ static_url_path }}/css/style.css" media="all">
-</head>
-
-<body>
- <div class="info-wrapper">
- <div class="info">
- <p><img class="logo" src="{{ static_url_path }}/img/logo_large.png" title="OnionShare"></p>
- <p class="info-header">404 Not Found</p>
- </div>
- </div>
-</body>
-
-</html>
diff --git a/desktop/share/templates/405.html b/desktop/share/templates/405.html
deleted file mode 100644
index 63888004..00000000
--- a/desktop/share/templates/405.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
- <title>OnionShare: 405 Method Not Allowed</title>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon">
- <link rel="stylesheet" rel="subresource" type="text/css" href="{{ static_url_path }}/css/style.css" media="all">
-</head>
-
-<body>
- <div class="info-wrapper">
- <div class="info">
- <p><img class="logo" src="{{ static_url_path }}/img/logo_large.png" title="OnionShare"></p>
- <p class="info-header">405 Method Not Allowed</p>
- </div>
- </div>
-</body>
-
-</html>
diff --git a/desktop/share/templates/chat.html b/desktop/share/templates/chat.html
deleted file mode 100644
index b4443c09..00000000
--- a/desktop/share/templates/chat.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
- <title>OnionShare</title>
- <link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon">
- <link rel="stylesheet" rel="subresource" type="text/css" href="{{ static_url_path }}/css/style.css" media="all">
-</head>
-
-<body>
-
- <header class="clearfix">
- <img class="logo" src="{{ static_url_path }}/img/logo.png" title="OnionShare">
- <h1>OnionShare</h1>
- </header>
- <noscript>
- <p>
- Chat <b>requires JavaScript</b>, so you must set your Tor Browser security
- level to <b>Safer</b> or <b>Standard</b> to join.
- </p>
- </noscript>
-
- <div class="chat-container no-js">
- <div class="chat-users">
- <div class="editable-username">
- <input id="username" value="{{ username }}" />
- <p id="username-error"></p>
- </div>
- <ul id="user-list">
- </ul>
- </div>
- <div class="chat-wrapper">
- <div id="chat"></div>
-
- <div class="chat-form">
- <input type="text" id="new-message" name="new-message" placeholder="Type your message" />
- </div>
-
- </div>
- </div>
- <script src="{{ static_url_path }}/js/jquery-3.5.1.min.js"></script>
- <script src="{{ static_url_path }}/js/socket.io.min.js"></script>
- <script async src="{{ static_url_path }}/js/chat.js"></script>
-</body>
-
-</html> \ No newline at end of file
diff --git a/desktop/share/templates/denied.html b/desktop/share/templates/denied.html
deleted file mode 100644
index 49147ef2..00000000
--- a/desktop/share/templates/denied.html
+++ /dev/null
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
- <title>OnionShare</title>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon" />
-</head>
-
-<body>
- <p>OnionShare download in progress</p>
-</body>
-
-</html>
diff --git a/desktop/share/templates/listing.html b/desktop/share/templates/listing.html
deleted file mode 100644
index ea050710..00000000
--- a/desktop/share/templates/listing.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>OnionShare</title>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon" />
- <link href="{{ static_url_path }}/css/style.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
-
- <header class="clearfix">
- <img class="logo" src="{{ static_url_path }}/img/logo.png" title="OnionShare">
- <h1>OnionShare</h1>
- </header>
-
- {% if breadcrumbs %}
- <ul class="breadcrumbs">
- {% for breadcrumb in breadcrumbs %}<li><a href="{{ breadcrumb[1] }}">{{ breadcrumb[0] }}</a> <span class="sep">&#8227;</span></li>{% endfor %}<li>{{ breadcrumbs_leaf }}</li>
- </ul>
- {% endif %}
-
- <table class="file-list" id="file-list">
- <tr>
- <th id="filename-header">Filename</th>
- <th id="size-header">Size</th>
- <th></th>
- </tr>
-
- {% for info in dirs %}
- <tr>
- <td>
- <img width="30" height="30" title="" alt="" src="{{ static_url_path }}/img/web_folder.png" />
- <a href="{{ info.basename }}">
- {{ info.basename }}
- </a>
- </td>
- <td>&mdash;</td>
- </tr>
- {% endfor %}
-
- {% for info in files %}
- <tr>
- <td>
- <img width="30" height="30" title="" alt="" src="{{ static_url_path }}/img/web_file.png" />
- <a href="{{ info.basename }}">
- {{ info.basename }}
- </a>
- </td>
- <td>{{ info.size_human }}</td>
- </tr>
- {% endfor %}
- </table>
- </body>
-</html>
diff --git a/desktop/share/templates/receive.html b/desktop/share/templates/receive.html
deleted file mode 100644
index 20f4bb7e..00000000
--- a/desktop/share/templates/receive.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>OnionShare</title>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon">
- <link rel="stylesheet" rel="subresource" type="text/css" href="{{ static_url_path }}/css/style.css" media="all">
- </head>
- <body>
-
- <header class="clearfix">
- <img class="logo" src="{{ static_url_path }}/img/logo.png" title="OnionShare">
- <h1>OnionShare</h1>
- </header>
-
- <div class="upload-wrapper">
- <p><img class="logo" src="{{ static_url_path }}/img/logo_large.png" title="OnionShare"></p>
-
- <p class="upload-header">Send Files</p>
- <p class="upload-description">Select the files you want to send, then click "Send Files"...</p>
-
- <div id="uploads"></div>
-
- <div>
- <ul id="flashes" class="flashes">
- {% with messages = get_flashed_messages(with_categories=true) %}
- {% if messages %}
- {% for category, message in messages %}
- <li class="{{ category }}">{{ message }}</li>
- {% endfor %}
- {% endif %}
- {% endwith %}
- </ul>
- </div>
-
- <form id="send" method="post" enctype="multipart/form-data" action="/upload">
- <p><input type="file" id="file-select" name="file[]" multiple /></p>
- <p><button type="submit" id="send-button" class="button">Send Files</button></p>
- </form>
-
- </div>
- <script src="{{ static_url_path }}/js/jquery-3.5.1.min.js"></script>
- <script async src="{{ static_url_path }}/js/receive.js" id="receive-script"></script>
- </body>
-</html>
diff --git a/desktop/share/templates/send.html b/desktop/share/templates/send.html
deleted file mode 100644
index dd30bfdd..00000000
--- a/desktop/share/templates/send.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
- <title>OnionShare</title>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon">
- <link rel="stylesheet" rel="subresource" type="text/css" href="{{ static_url_path }}/css/style.css" media="all">
- <meta name="onionshare-filename" content="{{ filename }}">
- <meta name="onionshare-filesize" content="{{ filesize }}">
-</head>
-
-<body>
-
- <header class="d-flex">
- <div class="logo-container">
- <img class="logo" src="{{ static_url_path }}/img/logo.png" title="OnionShare">
- <h1>OnionShare</h1>
- </div>
- <div class="information d-flex">
- <div>Total size: <strong>{{ filesize_human }}</strong> {% if is_zipped %} (compressed){% endif %}</div>
- <a class="button" href='/download'>Download Files</a>
- </div>
- </header>
-
- {% if breadcrumbs %}
- <ul class="breadcrumbs">
- {% for breadcrumb in breadcrumbs %}<li><a href="{{ breadcrumb[1] }}">{{ breadcrumb[0] }}</a> <span class="sep">&#8227;</span></li>{% endfor %}<li>{{ breadcrumbs_leaf }}</li>
- </ul>
- {% endif %}
-
- <div class="file-list" id="file-list">
- <div class="d-flex">
- <div id="filename-header" class="heading">Filename</div>
- <div id="size-header" class="heading">Size</div>
- </div>
- {% for info in dirs %}
- <div class="d-flex">
- <div>
- <img width="30" height="30" title="" alt="" src="{{ static_url_path }}/img/web_folder.png" />
- <a href="{{ info.basename }}">
- <span>{{ info.basename }}</span>
- </a>
- </div>
- <div>&mdash;</div>
- </div>
- {% endfor %}
-
- {% for info in files %}
- <div class="d-flex">
- <div>
- <img width="30" height="30" title="" alt="" src="{{ static_url_path }}/img/web_file.png" />
- {% if download_individual_files %}
- <a href="{{ info.basename }}">
- <span>{{ info.basename }}</span>
- </a>
- {% else %}
- <span>{{ info.basename }}</span>
- {% endif %}
- </div>
- <div>{{ info.size_human }}</div>
- </div>
- {% endfor %}
- </div>
- <script async src="{{ static_url_path }}/js/send.js" charset="utf-8"></script>
-</body>
-
-</html>
diff --git a/desktop/share/templates/thankyou.html b/desktop/share/templates/thankyou.html
deleted file mode 100644
index aa0bc553..00000000
--- a/desktop/share/templates/thankyou.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
- <title>OnionShare is closed</title>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon">
- <link rel="stylesheet" rel="subresource" type="text/css" href="{{ static_url_path }}/css/style.css" media="all">
-</head>
-
-<body>
- <header class="clearfix">
- <img class="logo" src="{{ static_url_path }}/img/logo.png" title="OnionShare">
- <h1>OnionShare</h1>
- </header>
-
- <div class="info-wrapper">
- <div class="info">
- <p><img class="logo" src="{{ static_url_path }}/img/logo_large.png" title="OnionShare"></p>
- <p class="info-header">Thank you for using OnionShare</p>
- <p class="info-description">You may now close this window.</p>
- </div>
- </div>
-</body>
-
-</html>
diff --git a/desktop/share/torrc_template b/desktop/share/torrc_template
deleted file mode 100644
index 8ac9e1ef..00000000
--- a/desktop/share/torrc_template
+++ /dev/null
@@ -1,8 +0,0 @@
-DataDirectory {{data_directory}}
-SocksPort {{socks_port}}
-CookieAuthentication 1
-CookieAuthFile {{cookie_auth_file}}
-AvoidDiskWrites 1
-Log notice stdout
-GeoIPFile {{geo_ip_file}}
-GeoIPv6File {{geo_ipv6_file}}
diff --git a/desktop/share/torrc_template-meek_lite_amazon b/desktop/share/torrc_template-meek_lite_amazon
deleted file mode 100644
index 606ae889..00000000
--- a/desktop/share/torrc_template-meek_lite_amazon
+++ /dev/null
@@ -1,2 +0,0 @@
-Bridge meek_lite 0.0.2.0:2 B9E7141C594AF25699E0079C1F0146F409495296 url=https://d2cly7j4zqgua7.cloudfront.net/ front=a0.awsstatic.com
-UseBridges 1 \ No newline at end of file
diff --git a/desktop/share/torrc_template-meek_lite_azure b/desktop/share/torrc_template-meek_lite_azure
deleted file mode 100644
index a9b374ba..00000000
--- a/desktop/share/torrc_template-meek_lite_azure
+++ /dev/null
@@ -1,2 +0,0 @@
-Bridge meek_lite 0.0.2.0:3 97700DFE9F483596DDA6264C4D7DF7641E1E39CE url=https://meek.azureedge.net/ front=ajax.aspnetcdn.com
-UseBridges 1 \ No newline at end of file
diff --git a/desktop/share/torrc_template-obfs4 b/desktop/share/torrc_template-obfs4
deleted file mode 100644
index 306c456c..00000000
--- a/desktop/share/torrc_template-obfs4
+++ /dev/null
@@ -1,27 +0,0 @@
-Bridge obfs4 154.35.22.10:80 8FB9F4319E89E5C6223052AA525A192AFBC85D55 cert=GGGS1TX4R81m3r0HBl79wKy1OtPPNR2CZUIrHjkRg65Vc2VR8fOyo64f9kmT1UAFG7j0HQ iat-mode=0
-Bridge obfs4 83.212.101.3:50002 A09D536DD1752D542E1FBB3C9CE4449D51298239 cert=lPRQ/MXdD1t5SRZ9MquYQNT9m5DV757jtdXdlePmRCudUU9CFUOX1Tm7/meFSyPOsud7Cw iat-mode=0
-Bridge obfs4 109.105.109.165:10527 8DFCD8FB3285E855F5A55EDDA35696C743ABFC4E cert=Bvg/itxeL4TWKLP6N1MaQzSOC6tcRIBv6q57DYAZc3b2AzuM+/TfB7mqTFEfXILCjEwzVA iat-mode=1
-Bridge obfs4 154.35.22.11:80 A832D176ECD5C7C6B58825AE22FC4C90FA249637 cert=YPbQqXPiqTUBfjGFLpm9JYEFTBvnzEJDKJxXG5Sxzrr/v2qrhGU4Jls9lHjLAhqpXaEfZw iat-mode=0
-Bridge obfs4 37.218.245.14:38224 D9A82D2F9C2F65A18407B1D2B764F130847F8B5D cert=bjRaMrr1BRiAW8IE9U5z27fQaYgOhX1UCmOpg2pFpoMvo6ZgQMzLsaTzzQNTlm7hNcb+Sg iat-mode=0
-Bridge obfs4 154.35.22.9:443 C73ADBAC8ADFDBF0FC0F3F4E8091C0107D093716 cert=gEGKc5WN/bSjFa6UkG9hOcft1tuK+cV8hbZ0H6cqXiMPLqSbCh2Q3PHe5OOr6oMVORhoJA iat-mode=0
-Bridge obfs4 154.35.22.11:443 A832D176ECD5C7C6B58825AE22FC4C90FA249637 cert=YPbQqXPiqTUBfjGFLpm9JYEFTBvnzEJDKJxXG5Sxzrr/v2qrhGU4Jls9lHjLAhqpXaEfZw iat-mode=0
-Bridge obfs4 154.35.22.13:443 FE7840FE1E21FE0A0639ED176EDA00A3ECA1E34D cert=fKnzxr+m+jWXXQGCaXe4f2gGoPXMzbL+bTBbXMYXuK0tMotd+nXyS33y2mONZWU29l81CA iat-mode=0
-Bridge obfs4 154.35.22.10:443 8FB9F4319E89E5C6223052AA525A192AFBC85D55 cert=GGGS1TX4R81m3r0HBl79wKy1OtPPNR2CZUIrHjkRg65Vc2VR8fOyo64f9kmT1UAFG7j0HQ iat-mode=0
-Bridge obfs4 154.35.22.9:80 C73ADBAC8ADFDBF0FC0F3F4E8091C0107D093716 cert=gEGKc5WN/bSjFa6UkG9hOcft1tuK+cV8hbZ0H6cqXiMPLqSbCh2Q3PHe5OOr6oMVORhoJA iat-mode=0
-Bridge obfs4 192.99.11.54:443 7B126FAB960E5AC6A629C729434FF84FB5074EC2 cert=VW5f8+IBUWpPFxF+rsiVy2wXkyTQG7vEd+rHeN2jV5LIDNu8wMNEOqZXPwHdwMVEBdqXEw iat-mode=0
-Bridge obfs4 154.35.22.13:16815 FE7840FE1E21FE0A0639ED176EDA00A3ECA1E34D cert=fKnzxr+m+jWXXQGCaXe4f2gGoPXMzbL+bTBbXMYXuK0tMotd+nXyS33y2mONZWU29l81CA iat-mode=0
-Bridge obfs4 85.31.186.26:443 91A6354697E6B02A386312F68D82CF86824D3606 cert=PBwr+S8JTVZo6MPdHnkTwXJPILWADLqfMGoVvhZClMq/Urndyd42BwX9YFJHZnBB3H0XCw iat-mode=0
-Bridge obfs4 38.229.33.83:80 0BAC39417268B96B9F514E7F63FA6FBA1A788955 cert=VwEFpk9F/UN9JED7XpG1XOjm/O8ZCXK80oPecgWnNDZDv5pdkhq1OpbAH0wNqOT6H6BmRQ iat-mode=1
-Bridge obfs4 154.35.22.11:16488 A832D176ECD5C7C6B58825AE22FC4C90FA249637 cert=YPbQqXPiqTUBfjGFLpm9JYEFTBvnzEJDKJxXG5Sxzrr/v2qrhGU4Jls9lHjLAhqpXaEfZw iat-mode=0
-Bridge obfs4 154.35.22.9:12166 C73ADBAC8ADFDBF0FC0F3F4E8091C0107D093716 cert=gEGKc5WN/bSjFa6UkG9hOcft1tuK+cV8hbZ0H6cqXiMPLqSbCh2Q3PHe5OOr6oMVORhoJA iat-mode=0
-Bridge obfs4 109.105.109.147:13764 BBB28DF0F201E706BE564EFE690FE9577DD8386D cert=KfMQN/tNMFdda61hMgpiMI7pbwU1T+wxjTulYnfw+4sgvG0zSH7N7fwT10BI8MUdAD7iJA iat-mode=2
-Bridge obfs4 38.229.1.78:80 C8CBDB2464FC9804A69531437BCF2BE31FDD2EE4 cert=Hmyfd2ev46gGY7NoVxA9ngrPF2zCZtzskRTzoWXbxNkzeVnGFPWmrTtILRyqCTjHR+s9dg iat-mode=1
-Bridge obfs4 [2001:470:b381:bfff:216:3eff:fe23:d6c3]:443 CDF2E852BF539B82BD10E27E9115A31734E378C2 cert=qUVQ0srL1JI/vO6V6m/24anYXiJD3QP2HgzUKQtQ7GRqqUvs7P+tG43RtAqdhLOALP7DJQ iat-mode=1
-Bridge obfs4 85.17.30.79:443 FC259A04A328A07FED1413E9FC6526530D9FD87A cert=RutxZlu8BtyP+y0NX7bAVD41+J/qXNhHUrKjFkRSdiBAhIHIQLhKQ2HxESAKZprn/lR3KA iat-mode=0
-Bridge obfs4 154.35.22.10:15937 8FB9F4319E89E5C6223052AA525A192AFBC85D55 cert=GGGS1TX4R81m3r0HBl79wKy1OtPPNR2CZUIrHjkRg65Vc2VR8fOyo64f9kmT1UAFG7j0HQ iat-mode=0
-Bridge obfs4 37.218.240.34:40035 88CD36D45A35271963EF82E511C8827A24730913 cert=eGXYfWODcgqIdPJ+rRupg4GGvVGfh25FWaIXZkit206OSngsp7GAIiGIXOJJROMxEqFKJg iat-mode=1
-Bridge obfs4 192.95.36.142:443 CDF2E852BF539B82BD10E27E9115A31734E378C2 cert=qUVQ0srL1JI/vO6V6m/24anYXiJD3QP2HgzUKQtQ7GRqqUvs7P+tG43RtAqdhLOALP7DJQ iat-mode=1
-Bridge obfs4 154.35.22.12:80 00DC6C4FA49A65BD1472993CF6730D54F11E0DBB cert=N86E9hKXXXVz6G7w2z8wFfhIDztDAzZ/3poxVePHEYjbKDWzjkRDccFMAnhK75fc65pYSg iat-mode=0
-Bridge obfs4 85.31.186.98:443 011F2599C0E9B27EE74B353155E244813763C3E5 cert=ayq0XzCwhpdysn5o0EyDUbmSOx3X/oTEbzDMvczHOdBJKlvIdHHLJGkZARtT4dcBFArPPg iat-mode=0
-Bridge obfs4 154.35.22.12:4304 00DC6C4FA49A65BD1472993CF6730D54F11E0DBB cert=N86E9hKXXXVz6G7w2z8wFfhIDztDAzZ/3poxVePHEYjbKDWzjkRDccFMAnhK75fc65pYSg iat-mode=0
-UseBridges 1
diff --git a/desktop/share/version.txt b/desktop/share/version.txt
deleted file mode 100644
index 4804c3be..00000000
--- a/desktop/share/version.txt
+++ /dev/null
@@ -1 +0,0 @@
-2.3.dev1 \ No newline at end of file
diff --git a/desktop/share/wordlist.txt b/desktop/share/wordlist.txt
deleted file mode 100644
index caf71f52..00000000
--- a/desktop/share/wordlist.txt
+++ /dev/null
@@ -1,7776 +0,0 @@
-abacus
-abdomen
-abdominal
-abide
-abiding
-ability
-ablaze
-able
-abnormal
-abrasion
-abrasive
-abreast
-abridge
-abroad
-abruptly
-absence
-absentee
-absently
-absinthe
-absolute
-absolve
-abstain
-abstract
-absurd
-accent
-acclaim
-acclimate
-accompany
-account
-accuracy
-accurate
-accustom
-acetone
-achiness
-aching
-acid
-acorn
-acquaint
-acquire
-acre
-acrobat
-acronym
-acting
-action
-activate
-activator
-active
-activism
-activist
-activity
-actress
-acts
-acutely
-acuteness
-aeration
-aerobics
-aerosol
-aerospace
-afar
-affair
-affected
-affecting
-affection
-affidavit
-affiliate
-affirm
-affix
-afflicted
-affluent
-afford
-affront
-aflame
-afloat
-aflutter
-afoot
-afraid
-afterglow
-afterlife
-aftermath
-aftermost
-afternoon
-aged
-ageless
-agency
-agenda
-agent
-aggregate
-aghast
-agile
-agility
-aging
-agnostic
-agonize
-agonizing
-agony
-agreeable
-agreeably
-agreed
-agreeing
-agreement
-aground
-ahead
-ahoy
-aide
-aids
-aim
-ajar
-alabaster
-alarm
-albatross
-album
-alfalfa
-algebra
-algorithm
-alias
-alibi
-alienable
-alienate
-aliens
-alike
-alive
-alkaline
-alkalize
-almanac
-almighty
-almost
-aloe
-aloft
-aloha
-alone
-alongside
-aloof
-alphabet
-alright
-although
-altitude
-alto
-aluminum
-alumni
-always
-amaretto
-amaze
-amazingly
-amber
-ambiance
-ambiguity
-ambiguous
-ambition
-ambitious
-ambulance
-ambush
-amendable
-amendment
-amends
-amenity
-amiable
-amicably
-amid
-amigo
-amino
-amiss
-ammonia
-ammonium
-amnesty
-amniotic
-among
-amount
-amperage
-ample
-amplifier
-amplify
-amply
-amuck
-amulet
-amusable
-amused
-amusement
-amuser
-amusing
-anaconda
-anaerobic
-anagram
-anatomist
-anatomy
-anchor
-anchovy
-ancient
-android
-anemia
-anemic
-aneurism
-anew
-angelfish
-angelic
-anger
-angled
-angler
-angles
-angling
-angrily
-angriness
-anguished
-angular
-animal
-animate
-animating
-animation
-animator
-anime
-animosity
-ankle
-annex
-annotate
-announcer
-annoying
-annually
-annuity
-anointer
-another
-answering
-antacid
-antarctic
-anteater
-antelope
-antennae
-anthem
-anthill
-anthology
-antibody
-antics
-antidote
-antihero
-antiquely
-antiques
-antiquity
-antirust
-antitoxic
-antitrust
-antiviral
-antivirus
-antler
-antonym
-antsy
-anvil
-anybody
-anyhow
-anymore
-anyone
-anyplace
-anything
-anytime
-anyway
-anywhere
-aorta
-apache
-apostle
-appealing
-appear
-appease
-appeasing
-appendage
-appendix
-appetite
-appetizer
-applaud
-applause
-apple
-appliance
-applicant
-applied
-apply
-appointee
-appraisal
-appraiser
-apprehend
-approach
-approval
-approve
-apricot
-april
-apron
-aptitude
-aptly
-aqua
-aqueduct
-arbitrary
-arbitrate
-ardently
-area
-arena
-arguable
-arguably
-argue
-arise
-armadillo
-armband
-armchair
-armed
-armful
-armhole
-arming
-armless
-armoire
-armored
-armory
-armrest
-army
-aroma
-arose
-around
-arousal
-arrange
-array
-arrest
-arrival
-arrive
-arrogance
-arrogant
-arson
-art
-ascend
-ascension
-ascent
-ascertain
-ashamed
-ashen
-ashes
-ashy
-aside
-askew
-asleep
-asparagus
-aspect
-aspirate
-aspire
-aspirin
-astonish
-astound
-astride
-astrology
-astronaut
-astronomy
-astute
-atlantic
-atlas
-atom
-atonable
-atop
-atrium
-atrocious
-atrophy
-attach
-attain
-attempt
-attendant
-attendee
-attention
-attentive
-attest
-attic
-attire
-attitude
-attractor
-attribute
-atypical
-auction
-audacious
-audacity
-audible
-audibly
-audience
-audio
-audition
-augmented
-august
-authentic
-author
-autism
-autistic
-autograph
-automaker
-automated
-automatic
-autopilot
-available
-avalanche
-avatar
-avenge
-avenging
-avenue
-average
-aversion
-avert
-aviation
-aviator
-avid
-avoid
-await
-awaken
-award
-aware
-awhile
-awkward
-awning
-awoke
-awry
-axis
-babble
-babbling
-babied
-baboon
-backache
-backboard
-backboned
-backdrop
-backed
-backer
-backfield
-backfire
-backhand
-backing
-backlands
-backlash
-backless
-backlight
-backlit
-backlog
-backpack
-backpedal
-backrest
-backroom
-backshift
-backside
-backslid
-backspace
-backspin
-backstab
-backstage
-backtalk
-backtrack
-backup
-backward
-backwash
-backwater
-backyard
-bacon
-bacteria
-bacterium
-badass
-badge
-badland
-badly
-badness
-baffle
-baffling
-bagel
-bagful
-baggage
-bagged
-baggie
-bagginess
-bagging
-baggy
-bagpipe
-baguette
-baked
-bakery
-bakeshop
-baking
-balance
-balancing
-balcony
-balmy
-balsamic
-bamboo
-banana
-banish
-banister
-banjo
-bankable
-bankbook
-banked
-banker
-banking
-banknote
-bankroll
-banner
-bannister
-banshee
-banter
-barbecue
-barbed
-barbell
-barber
-barcode
-barge
-bargraph
-barista
-baritone
-barley
-barmaid
-barman
-barn
-barometer
-barrack
-barracuda
-barrel
-barrette
-barricade
-barrier
-barstool
-bartender
-barterer
-bash
-basically
-basics
-basil
-basin
-basis
-basket
-batboy
-batch
-bath
-baton
-bats
-battalion
-battered
-battering
-battery
-batting
-battle
-bauble
-bazooka
-blabber
-bladder
-blade
-blah
-blame
-blaming
-blanching
-blandness
-blank
-blaspheme
-blasphemy
-blast
-blatancy
-blatantly
-blazer
-blazing
-bleach
-bleak
-bleep
-blemish
-blend
-bless
-blighted
-blimp
-bling
-blinked
-blinker
-blinking
-blinks
-blip
-blissful
-blitz
-blizzard
-bloated
-bloating
-blob
-blog
-bloomers
-blooming
-blooper
-blot
-blouse
-blubber
-bluff
-bluish
-blunderer
-blunt
-blurb
-blurred
-blurry
-blurt
-blush
-blustery
-boaster
-boastful
-boasting
-boat
-bobbed
-bobbing
-bobble
-bobcat
-bobsled
-bobtail
-bodacious
-body
-bogged
-boggle
-bogus
-boil
-bok
-bolster
-bolt
-bonanza
-bonded
-bonding
-bondless
-boned
-bonehead
-boneless
-bonelike
-boney
-bonfire
-bonnet
-bonsai
-bonus
-bony
-boogeyman
-boogieman
-book
-boondocks
-booted
-booth
-bootie
-booting
-bootlace
-bootleg
-boots
-boozy
-borax
-boring
-borough
-borrower
-borrowing
-boss
-botanical
-botanist
-botany
-botch
-both
-bottle
-bottling
-bottom
-bounce
-bouncing
-bouncy
-bounding
-boundless
-bountiful
-bovine
-boxcar
-boxer
-boxing
-boxlike
-boxy
-breach
-breath
-breeches
-breeching
-breeder
-breeding
-breeze
-breezy
-brethren
-brewery
-brewing
-briar
-bribe
-brick
-bride
-bridged
-brigade
-bright
-brilliant
-brim
-bring
-brink
-brisket
-briskly
-briskness
-bristle
-brittle
-broadband
-broadcast
-broaden
-broadly
-broadness
-broadside
-broadways
-broiler
-broiling
-broken
-broker
-bronchial
-bronco
-bronze
-bronzing
-brook
-broom
-brought
-browbeat
-brownnose
-browse
-browsing
-bruising
-brunch
-brunette
-brunt
-brush
-brussels
-brute
-brutishly
-bubble
-bubbling
-bubbly
-buccaneer
-bucked
-bucket
-buckle
-buckshot
-buckskin
-bucktooth
-buckwheat
-buddhism
-buddhist
-budding
-buddy
-budget
-buffalo
-buffed
-buffer
-buffing
-buffoon
-buggy
-bulb
-bulge
-bulginess
-bulgur
-bulk
-bulldog
-bulldozer
-bullfight
-bullfrog
-bullhorn
-bullion
-bullish
-bullpen
-bullring
-bullseye
-bullwhip
-bully
-bunch
-bundle
-bungee
-bunion
-bunkbed
-bunkhouse
-bunkmate
-bunny
-bunt
-busboy
-bush
-busily
-busload
-bust
-busybody
-buzz
-cabana
-cabbage
-cabbie
-cabdriver
-cable
-caboose
-cache
-cackle
-cacti
-cactus
-caddie
-caddy
-cadet
-cadillac
-cadmium
-cage
-cahoots
-cake
-calamari
-calamity
-calcium
-calculate
-calculus
-caliber
-calibrate
-calm
-caloric
-calorie
-calzone
-camcorder
-cameo
-camera
-camisole
-camper
-campfire
-camping
-campsite
-campus
-canal
-canary
-cancel
-candied
-candle
-candy
-cane
-canine
-canister
-cannabis
-canned
-canning
-cannon
-cannot
-canola
-canon
-canopener
-canopy
-canteen
-canyon
-capable
-capably
-capacity
-cape
-capillary
-capital
-capitol
-capped
-capricorn
-capsize
-capsule
-caption
-captivate
-captive
-captivity
-capture
-caramel
-carat
-caravan
-carbon
-cardboard
-carded
-cardiac
-cardigan
-cardinal
-cardstock
-carefully
-caregiver
-careless
-caress
-caretaker
-cargo
-caring
-carless
-carload
-carmaker
-carnage
-carnation
-carnival
-carnivore
-carol
-carpenter
-carpentry
-carpool
-carport
-carried
-carrot
-carrousel
-carry
-cartel
-cartload
-carton
-cartoon
-cartridge
-cartwheel
-carve
-carving
-carwash
-cascade
-case
-cash
-casing
-casino
-casket
-cassette
-casually
-casualty
-catacomb
-catalog
-catalyst
-catalyze
-catapult
-cataract
-catatonic
-catcall
-catchable
-catcher
-catching
-catchy
-caterer
-catering
-catfight
-catfish
-cathedral
-cathouse
-catlike
-catnap
-catnip
-catsup
-cattail
-cattishly
-cattle
-catty
-catwalk
-caucasian
-caucus
-causal
-causation
-cause
-causing
-cauterize
-caution
-cautious
-cavalier
-cavalry
-caviar
-cavity
-cedar
-celery
-celestial
-celibacy
-celibate
-celtic
-cement
-census
-ceramics
-ceremony
-certainly
-certainty
-certified
-certify
-cesarean
-cesspool
-chafe
-chaffing
-chain
-chair
-chalice
-challenge
-chamber
-chamomile
-champion
-chance
-change
-channel
-chant
-chaos
-chaperone
-chaplain
-chapped
-chaps
-chapter
-character
-charbroil
-charcoal
-charger
-charging
-chariot
-charity
-charm
-charred
-charter
-charting
-chase
-chasing
-chaste
-chastise
-chastity
-chatroom
-chatter
-chatting
-chatty
-cheating
-cheddar
-cheek
-cheer
-cheese
-cheesy
-chef
-chemicals
-chemist
-chemo
-cherisher
-cherub
-chess
-chest
-chevron
-chevy
-chewable
-chewer
-chewing
-chewy
-chief
-chihuahua
-childcare
-childhood
-childish
-childless
-childlike
-chili
-chill
-chimp
-chip
-chirping
-chirpy
-chitchat
-chivalry
-chive
-chloride
-chlorine
-choice
-chokehold
-choking
-chomp
-chooser
-choosing
-choosy
-chop
-chosen
-chowder
-chowtime
-chrome
-chubby
-chuck
-chug
-chummy
-chump
-chunk
-churn
-chute
-cider
-cilantro
-cinch
-cinema
-cinnamon
-circle
-circling
-circular
-circulate
-circus
-citable
-citadel
-citation
-citizen
-citric
-citrus
-city
-civic
-civil
-clad
-claim
-clambake
-clammy
-clamor
-clamp
-clamshell
-clang
-clanking
-clapped
-clapper
-clapping
-clarify
-clarinet
-clarity
-clash
-clasp
-class
-clatter
-clause
-clavicle
-claw
-clay
-clean
-clear
-cleat
-cleaver
-cleft
-clench
-clergyman
-clerical
-clerk
-clever
-clicker
-client
-climate
-climatic
-cling
-clinic
-clinking
-clip
-clique
-cloak
-clobber
-clock
-clone
-cloning
-closable
-closure
-clothes
-clothing
-cloud
-clover
-clubbed
-clubbing
-clubhouse
-clump
-clumsily
-clumsy
-clunky
-clustered
-clutch
-clutter
-coach
-coagulant
-coastal
-coaster
-coasting
-coastland
-coastline
-coat
-coauthor
-cobalt
-cobbler
-cobweb
-cocoa
-coconut
-cod
-coeditor
-coerce
-coexist
-coffee
-cofounder
-cognition
-cognitive
-cogwheel
-coherence
-coherent
-cohesive
-coil
-coke
-cola
-cold
-coleslaw
-coliseum
-collage
-collapse
-collar
-collected
-collector
-collide
-collie
-collision
-colonial
-colonist
-colonize
-colony
-colossal
-colt
-coma
-come
-comfort
-comfy
-comic
-coming
-comma
-commence
-commend
-comment
-commerce
-commode
-commodity
-commodore
-common
-commotion
-commute
-commuting
-compacted
-compacter
-compactly
-compactor
-companion
-company
-compare
-compel
-compile
-comply
-component
-composed
-composer
-composite
-compost
-composure
-compound
-compress
-comprised
-computer
-computing
-comrade
-concave
-conceal
-conceded
-concept
-concerned
-concert
-conch
-concierge
-concise
-conclude
-concrete
-concur
-condense
-condiment
-condition
-condone
-conducive
-conductor
-conduit
-cone
-confess
-confetti
-confidant
-confident
-confider
-confiding
-configure
-confined
-confining
-confirm
-conflict
-conform
-confound
-confront
-confused
-confusing
-confusion
-congenial
-congested
-congrats
-congress
-conical
-conjoined
-conjure
-conjuror
-connected
-connector
-consensus
-consent
-console
-consoling
-consonant
-constable
-constant
-constrain
-constrict
-construct
-consult
-consumer
-consuming
-contact
-container
-contempt
-contend
-contented
-contently
-contents
-contest
-context
-contort
-contour
-contrite
-control
-contusion
-convene
-convent
-copartner
-cope
-copied
-copier
-copilot
-coping
-copious
-copper
-copy
-coral
-cork
-cornball
-cornbread
-corncob
-cornea
-corned
-corner
-cornfield
-cornflake
-cornhusk
-cornmeal
-cornstalk
-corny
-coronary
-coroner
-corporal
-corporate
-corral
-correct
-corridor
-corrode
-corroding
-corrosive
-corsage
-corset
-cortex
-cosigner
-cosmetics
-cosmic
-cosmos
-cosponsor
-cost
-cottage
-cotton
-couch
-cough
-could
-countable
-countdown
-counting
-countless
-country
-county
-courier
-covenant
-cover
-coveted
-coveting
-coyness
-cozily
-coziness
-cozy
-crabbing
-crabgrass
-crablike
-crabmeat
-cradle
-cradling
-crafter
-craftily
-craftsman
-craftwork
-crafty
-cramp
-cranberry
-crane
-cranial
-cranium
-crank
-crate
-crave
-craving
-crawfish
-crawlers
-crawling
-crayfish
-crayon
-crazed
-crazily
-craziness
-crazy
-creamed
-creamer
-creamlike
-crease
-creasing
-creatable
-create
-creation
-creative
-creature
-credible
-credibly
-credit
-creed
-creme
-creole
-crepe
-crept
-crescent
-crested
-cresting
-crestless
-crevice
-crewless
-crewman
-crewmate
-crib
-cricket
-cried
-crier
-crimp
-crimson
-cringe
-cringing
-crinkle
-crinkly
-crisped
-crisping
-crisply
-crispness
-crispy
-criteria
-critter
-croak
-crock
-crook
-croon
-crop
-cross
-crouch
-crouton
-crowbar
-crowd
-crown
-crucial
-crudely
-crudeness
-cruelly
-cruelness
-cruelty
-crumb
-crummiest
-crummy
-crumpet
-crumpled
-cruncher
-crunching
-crunchy
-crusader
-crushable
-crushed
-crusher
-crushing
-crust
-crux
-crying
-cryptic
-crystal
-cubbyhole
-cube
-cubical
-cubicle
-cucumber
-cuddle
-cuddly
-cufflink
-culinary
-culminate
-culpable
-culprit
-cultivate
-cultural
-culture
-cupbearer
-cupcake
-cupid
-cupped
-cupping
-curable
-curator
-curdle
-cure
-curfew
-curing
-curled
-curler
-curliness
-curling
-curly
-curry
-curse
-cursive
-cursor
-curtain
-curtly
-curtsy
-curvature
-curve
-curvy
-cushy
-cusp
-cussed
-custard
-custodian
-custody
-customary
-customer
-customize
-customs
-cut
-cycle
-cyclic
-cycling
-cyclist
-cylinder
-cymbal
-cytoplasm
-cytoplast
-dab
-dad
-daffodil
-dagger
-daily
-daintily
-dainty
-dairy
-daisy
-dallying
-dance
-dancing
-dandelion
-dander
-dandruff
-dandy
-danger
-dangle
-dangling
-daredevil
-dares
-daringly
-darkened
-darkening
-darkish
-darkness
-darkroom
-darling
-darn
-dart
-darwinism
-dash
-dastardly
-data
-datebook
-dating
-daughter
-daunting
-dawdler
-dawn
-daybed
-daybreak
-daycare
-daydream
-daylight
-daylong
-dayroom
-daytime
-dazzler
-dazzling
-deacon
-deafening
-deafness
-dealer
-dealing
-dealmaker
-dealt
-dean
-debatable
-debate
-debating
-debit
-debrief
-debtless
-debtor
-debug
-debunk
-decade
-decaf
-decal
-decathlon
-decay
-deceased
-deceit
-deceiver
-deceiving
-december
-decency
-decent
-deception
-deceptive
-decibel
-decidable
-decimal
-decimeter
-decipher
-deck
-declared
-decline
-decode
-decompose
-decorated
-decorator
-decoy
-decrease
-decree
-dedicate
-dedicator
-deduce
-deduct
-deed
-deem
-deepen
-deeply
-deepness
-deface
-defacing
-defame
-default
-defeat
-defection
-defective
-defendant
-defender
-defense
-defensive
-deferral
-deferred
-defiance
-defiant
-defile
-defiling
-define
-definite
-deflate
-deflation
-deflator
-deflected
-deflector
-defog
-deforest
-defraud
-defrost
-deftly
-defuse
-defy
-degraded
-degrading
-degrease
-degree
-dehydrate
-deity
-dejected
-delay
-delegate
-delegator
-delete
-deletion
-delicacy
-delicate
-delicious
-delighted
-delirious
-delirium
-deliverer
-delivery
-delouse
-delta
-deluge
-delusion
-deluxe
-demanding
-demeaning
-demeanor
-demise
-democracy
-democrat
-demote
-demotion
-demystify
-denatured
-deniable
-denial
-denim
-denote
-dense
-density
-dental
-dentist
-denture
-deny
-deodorant
-deodorize
-departed
-departure
-depict
-deplete
-depletion
-deplored
-deploy
-deport
-depose
-depraved
-depravity
-deprecate
-depress
-deprive
-depth
-deputize
-deputy
-derail
-deranged
-derby
-derived
-desecrate
-deserve
-deserving
-designate
-designed
-designer
-designing
-deskbound
-desktop
-deskwork
-desolate
-despair
-despise
-despite
-destiny
-destitute
-destruct
-detached
-detail
-detection
-detective
-detector
-detention
-detergent
-detest
-detonate
-detonator
-detoxify
-detract
-deuce
-devalue
-deviancy
-deviant
-deviate
-deviation
-deviator
-device
-devious
-devotedly
-devotee
-devotion
-devourer
-devouring
-devoutly
-dexterity
-dexterous
-diabetes
-diabetic
-diabolic
-diagnoses
-diagnosis
-diagram
-dial
-diameter
-diaper
-diaphragm
-diary
-dice
-dicing
-dictate
-dictation
-dictator
-difficult
-diffused
-diffuser
-diffusion
-diffusive
-dig
-dilation
-diligence
-diligent
-dill
-dilute
-dime
-diminish
-dimly
-dimmed
-dimmer
-dimness
-dimple
-diner
-dingbat
-dinghy
-dinginess
-dingo
-dingy
-dining
-dinner
-diocese
-dioxide
-diploma
-dipped
-dipper
-dipping
-directed
-direction
-directive
-directly
-directory
-direness
-dirtiness
-disabled
-disagree
-disallow
-disarm
-disarray
-disaster
-disband
-disbelief
-disburse
-discard
-discern
-discharge
-disclose
-discolor
-discount
-discourse
-discover
-discuss
-disdain
-disengage
-disfigure
-disgrace
-dish
-disinfect
-disjoin
-disk
-dislike
-disliking
-dislocate
-dislodge
-disloyal
-dismantle
-dismay
-dismiss
-dismount
-disobey
-disorder
-disown
-disparate
-disparity
-dispatch
-dispense
-dispersal
-dispersed
-disperser
-displace
-display
-displease
-disposal
-dispose
-disprove
-dispute
-disregard
-disrupt
-dissuade
-distance
-distant
-distaste
-distill
-distinct
-distort
-distract
-distress
-district
-distrust
-ditch
-ditto
-ditzy
-dividable
-divided
-dividend
-dividers
-dividing
-divinely
-diving
-divinity
-divisible
-divisibly
-division
-divisive
-divorcee
-dizziness
-dizzy
-doable
-docile
-dock
-doctrine
-document
-dodge
-dodgy
-doily
-doing
-dole
-dollar
-dollhouse
-dollop
-dolly
-dolphin
-domain
-domelike
-domestic
-dominion
-dominoes
-donated
-donation
-donator
-donor
-donut
-doodle
-doorbell
-doorframe
-doorknob
-doorman
-doormat
-doornail
-doorpost
-doorstep
-doorstop
-doorway
-doozy
-dork
-dormitory
-dorsal
-dosage
-dose
-dotted
-doubling
-douche
-dove
-down
-dowry
-doze
-drab
-dragging
-dragonfly
-dragonish
-dragster
-drainable
-drainage
-drained
-drainer
-drainpipe
-dramatic
-dramatize
-drank
-drapery
-drastic
-draw
-dreaded
-dreadful
-dreadlock
-dreamboat
-dreamily
-dreamland
-dreamless
-dreamlike
-dreamt
-dreamy
-drearily
-dreary
-drench
-dress
-drew
-dribble
-dried
-drier
-drift
-driller
-drilling
-drinkable
-drinking
-dripping
-drippy
-drivable
-driven
-driver
-driveway
-driving
-drizzle
-drizzly
-drone
-drool
-droop
-drop-down
-dropbox
-dropkick
-droplet
-dropout
-dropper
-drove
-drown
-drowsily
-drudge
-drum
-dry
-dubbed
-dubiously
-duchess
-duckbill
-ducking
-duckling
-ducktail
-ducky
-duct
-dude
-duffel
-dugout
-duh
-duke
-duller
-dullness
-duly
-dumping
-dumpling
-dumpster
-duo
-dupe
-duplex
-duplicate
-duplicity
-durable
-durably
-duration
-duress
-during
-dusk
-dust
-dutiful
-duty
-duvet
-dwarf
-dweeb
-dwelled
-dweller
-dwelling
-dwindle
-dwindling
-dynamic
-dynamite
-dynasty
-dyslexia
-dyslexic
-each
-eagle
-earache
-eardrum
-earflap
-earful
-earlobe
-early
-earmark
-earmuff
-earphone
-earpiece
-earplugs
-earring
-earshot
-earthen
-earthlike
-earthling
-earthly
-earthworm
-earthy
-earwig
-easeful
-easel
-easiest
-easily
-easiness
-easing
-eastbound
-eastcoast
-easter
-eastward
-eatable
-eaten
-eatery
-eating
-eats
-ebay
-ebony
-ebook
-ecard
-eccentric
-echo
-eclair
-eclipse
-ecologist
-ecology
-economic
-economist
-economy
-ecosphere
-ecosystem
-edge
-edginess
-edging
-edgy
-edition
-editor
-educated
-education
-educator
-eel
-effective
-effects
-efficient
-effort
-eggbeater
-egging
-eggnog
-eggplant
-eggshell
-egomaniac
-egotism
-egotistic
-either
-eject
-elaborate
-elastic
-elated
-elbow
-eldercare
-elderly
-eldest
-electable
-election
-elective
-elephant
-elevate
-elevating
-elevation
-elevator
-eleven
-elf
-eligible
-eligibly
-eliminate
-elite
-elitism
-elixir
-elk
-ellipse
-elliptic
-elm
-elongated
-elope
-eloquence
-eloquent
-elsewhere
-elude
-elusive
-elves
-email
-embargo
-embark
-embassy
-embattled
-embellish
-ember
-embezzle
-emblaze
-emblem
-embody
-embolism
-emboss
-embroider
-emcee
-emerald
-emergency
-emission
-emit
-emote
-emoticon
-emotion
-empathic
-empathy
-emperor
-emphases
-emphasis
-emphasize
-emphatic
-empirical
-employed
-employee
-employer
-emporium
-empower
-emptier
-emptiness
-empty
-emu
-enable
-enactment
-enamel
-enchanted
-enchilada
-encircle
-enclose
-enclosure
-encode
-encore
-encounter
-encourage
-encroach
-encrust
-encrypt
-endanger
-endeared
-endearing
-ended
-ending
-endless
-endnote
-endocrine
-endorphin
-endorse
-endowment
-endpoint
-endurable
-endurance
-enduring
-energetic
-energize
-energy
-enforced
-enforcer
-engaged
-engaging
-engine
-engorge
-engraved
-engraver
-engraving
-engross
-engulf
-enhance
-enigmatic
-enjoyable
-enjoyably
-enjoyer
-enjoying
-enjoyment
-enlarged
-enlarging
-enlighten
-enlisted
-enquirer
-enrage
-enrich
-enroll
-enslave
-ensnare
-ensure
-entail
-entangled
-entering
-entertain
-enticing
-entire
-entitle
-entity
-entomb
-entourage
-entrap
-entree
-entrench
-entrust
-entryway
-entwine
-enunciate
-envelope
-enviable
-enviably
-envious
-envision
-envoy
-envy
-enzyme
-epic
-epidemic
-epidermal
-epidermis
-epidural
-epilepsy
-epileptic
-epilogue
-epiphany
-episode
-equal
-equate
-equation
-equator
-equinox
-equipment
-equity
-equivocal
-eradicate
-erasable
-erased
-eraser
-erasure
-ergonomic
-errand
-errant
-erratic
-error
-erupt
-escalate
-escalator
-escapable
-escapade
-escapist
-escargot
-eskimo
-esophagus
-espionage
-espresso
-esquire
-essay
-essence
-essential
-establish
-estate
-esteemed
-estimate
-estimator
-estranged
-estrogen
-etching
-eternal
-eternity
-ethanol
-ether
-ethically
-ethics
-euphemism
-evacuate
-evacuee
-evade
-evaluate
-evaluator
-evaporate
-evasion
-evasive
-even
-everglade
-evergreen
-everybody
-everyday
-everyone
-evict
-evidence
-evident
-evil
-evoke
-evolution
-evolve
-exact
-exalted
-example
-excavate
-excavator
-exceeding
-exception
-excess
-exchange
-excitable
-exciting
-exclaim
-exclude
-excluding
-exclusion
-exclusive
-excretion
-excretory
-excursion
-excusable
-excusably
-excuse
-exemplary
-exemplify
-exemption
-exerciser
-exert
-exes
-exfoliate
-exhale
-exhaust
-exhume
-exile
-existing
-exit
-exodus
-exonerate
-exorcism
-exorcist
-expand
-expanse
-expansion
-expansive
-expectant
-expedited
-expediter
-expel
-expend
-expenses
-expensive
-expert
-expire
-expiring
-explain
-expletive
-explicit
-explode
-exploit
-explore
-exploring
-exponent
-exporter
-exposable
-expose
-exposure
-express
-expulsion
-exquisite
-extended
-extending
-extent
-extenuate
-exterior
-external
-extinct
-extortion
-extradite
-extras
-extrovert
-extrude
-extruding
-exuberant
-fable
-fabric
-fabulous
-facebook
-facecloth
-facedown
-faceless
-facelift
-faceplate
-faceted
-facial
-facility
-facing
-facsimile
-faction
-factoid
-factor
-factsheet
-factual
-faculty
-fade
-fading
-failing
-falcon
-fall
-false
-falsify
-fame
-familiar
-family
-famine
-famished
-fanatic
-fancied
-fanciness
-fancy
-fanfare
-fang
-fanning
-fantasize
-fantastic
-fantasy
-fascism
-fastball
-faster
-fasting
-fastness
-faucet
-favorable
-favorably
-favored
-favoring
-favorite
-fax
-feast
-federal
-fedora
-feeble
-feed
-feel
-feisty
-feline
-felt-tip
-feminine
-feminism
-feminist
-feminize
-femur
-fence
-fencing
-fender
-ferment
-fernlike
-ferocious
-ferocity
-ferret
-ferris
-ferry
-fervor
-fester
-festival
-festive
-festivity
-fetal
-fetch
-fever
-fiber
-fiction
-fiddle
-fiddling
-fidelity
-fidgeting
-fidgety
-fifteen
-fifth
-fiftieth
-fifty
-figment
-figure
-figurine
-filing
-filled
-filler
-filling
-film
-filter
-filth
-filtrate
-finale
-finalist
-finalize
-finally
-finance
-financial
-finch
-fineness
-finer
-finicky
-finished
-finisher
-finishing
-finite
-finless
-finlike
-fiscally
-fit
-five
-flaccid
-flagman
-flagpole
-flagship
-flagstick
-flagstone
-flail
-flakily
-flaky
-flame
-flammable
-flanked
-flanking
-flannels
-flap
-flaring
-flashback
-flashbulb
-flashcard
-flashily
-flashing
-flashy
-flask
-flatbed
-flatfoot
-flatly
-flatness
-flatten
-flattered
-flatterer
-flattery
-flattop
-flatware
-flatworm
-flavored
-flavorful
-flavoring
-flaxseed
-fled
-fleshed
-fleshy
-flick
-flier
-flight
-flinch
-fling
-flint
-flip
-flirt
-float
-flock
-flogging
-flop
-floral
-florist
-floss
-flounder
-flyable
-flyaway
-flyer
-flying
-flyover
-flypaper
-foam
-foe
-fog
-foil
-folic
-folk
-follicle
-follow
-fondling
-fondly
-fondness
-fondue
-font
-food
-fool
-footage
-football
-footbath
-footboard
-footer
-footgear
-foothill
-foothold
-footing
-footless
-footman
-footnote
-footpad
-footpath
-footprint
-footrest
-footsie
-footsore
-footwear
-footwork
-fossil
-foster
-founder
-founding
-fountain
-fox
-foyer
-fraction
-fracture
-fragile
-fragility
-fragment
-fragrance
-fragrant
-frail
-frame
-framing
-frantic
-fraternal
-frayed
-fraying
-frays
-freckled
-freckles
-freebase
-freebee
-freebie
-freedom
-freefall
-freehand
-freeing
-freeload
-freely
-freemason
-freeness
-freestyle
-freeware
-freeway
-freewill
-freezable
-freezing
-freight
-french
-frenzied
-frenzy
-frequency
-frequent
-fresh
-fretful
-fretted
-friction
-friday
-fridge
-fried
-friend
-frighten
-frightful
-frigidity
-frigidly
-frill
-fringe
-frisbee
-frisk
-fritter
-frivolous
-frolic
-from
-front
-frostbite
-frosted
-frostily
-frosting
-frostlike
-frosty
-froth
-frown
-frozen
-fructose
-frugality
-frugally
-fruit
-frustrate
-frying
-gab
-gaffe
-gag
-gainfully
-gaining
-gains
-gala
-gallantly
-galleria
-gallery
-galley
-gallon
-gallows
-gallstone
-galore
-galvanize
-gambling
-game
-gaming
-gamma
-gander
-gangly
-gangrene
-gangway
-gap
-garage
-garbage
-garden
-gargle
-garland
-garlic
-garment
-garnet
-garnish
-garter
-gas
-gatherer
-gathering
-gating
-gauging
-gauntlet
-gauze
-gave
-gawk
-gazing
-gear
-gecko
-geek
-geiger
-gem
-gender
-generic
-generous
-genetics
-genre
-gentile
-gentleman
-gently
-gents
-geography
-geologic
-geologist
-geology
-geometric
-geometry
-geranium
-gerbil
-geriatric
-germicide
-germinate
-germless
-germproof
-gestate
-gestation
-gesture
-getaway
-getting
-getup
-giant
-gibberish
-giblet
-giddily
-giddiness
-giddy
-gift
-gigabyte
-gigahertz
-gigantic
-giggle
-giggling
-giggly
-gigolo
-gilled
-gills
-gimmick
-girdle
-giveaway
-given
-giver
-giving
-gizmo
-gizzard
-glacial
-glacier
-glade
-gladiator
-gladly
-glamorous
-glamour
-glance
-glancing
-glandular
-glare
-glaring
-glass
-glaucoma
-glazing
-gleaming
-gleeful
-glider
-gliding
-glimmer
-glimpse
-glisten
-glitch
-glitter
-glitzy
-gloater
-gloating
-gloomily
-gloomy
-glorified
-glorifier
-glorify
-glorious
-glory
-gloss
-glove
-glowing
-glowworm
-glucose
-glue
-gluten
-glutinous
-glutton
-gnarly
-gnat
-goal
-goatskin
-goes
-goggles
-going
-goldfish
-goldmine
-goldsmith
-golf
-goliath
-gonad
-gondola
-gone
-gong
-good
-gooey
-goofball
-goofiness
-goofy
-google
-goon
-gopher
-gore
-gorged
-gorgeous
-gory
-gosling
-gossip
-gothic
-gotten
-gout
-gown
-grab
-graceful
-graceless
-gracious
-gradation
-graded
-grader
-gradient
-grading
-gradually
-graduate
-graffiti
-grafted
-grafting
-grain
-granddad
-grandkid
-grandly
-grandma
-grandpa
-grandson
-granite
-granny
-granola
-grant
-granular
-grape
-graph
-grapple
-grappling
-grasp
-grass
-gratified
-gratify
-grating
-gratitude
-gratuity
-gravel
-graveness
-graves
-graveyard
-gravitate
-gravity
-gravy
-gray
-grazing
-greasily
-greedily
-greedless
-greedy
-green
-greeter
-greeting
-grew
-greyhound
-grid
-grief
-grievance
-grieving
-grievous
-grill
-grimace
-grimacing
-grime
-griminess
-grimy
-grinch
-grinning
-grip
-gristle
-grit
-groggily
-groggy
-groin
-groom
-groove
-grooving
-groovy
-grope
-ground
-grouped
-grout
-grove
-grower
-growing
-growl
-grub
-grudge
-grudging
-grueling
-gruffly
-grumble
-grumbling
-grumbly
-grumpily
-grunge
-grunt
-guacamole
-guidable
-guidance
-guide
-guiding
-guileless
-guise
-gulf
-gullible
-gully
-gulp
-gumball
-gumdrop
-gumminess
-gumming
-gummy
-gurgle
-gurgling
-guru
-gush
-gusto
-gusty
-gutless
-guts
-gutter
-guy
-guzzler
-gyration
-habitable
-habitant
-habitat
-habitual
-hacked
-hacker
-hacking
-hacksaw
-had
-haggler
-haiku
-half
-halogen
-halt
-halved
-halves
-hamburger
-hamlet
-hammock
-hamper
-hamster
-hamstring
-handbag
-handball
-handbook
-handbrake
-handcart
-handclap
-handclasp
-handcraft
-handcuff
-handed
-handful
-handgrip
-handgun
-handheld
-handiness
-handiwork
-handlebar
-handled
-handler
-handling
-handmade
-handoff
-handpick
-handprint
-handrail
-handsaw
-handset
-handsfree
-handshake
-handstand
-handwash
-handwork
-handwoven
-handwrite
-handyman
-hangnail
-hangout
-hangover
-hangup
-hankering
-hankie
-hanky
-haphazard
-happening
-happier
-happiest
-happily
-happiness
-happy
-harbor
-hardcopy
-hardcore
-hardcover
-harddisk
-hardened
-hardener
-hardening
-hardhat
-hardhead
-hardiness
-hardly
-hardness
-hardship
-hardware
-hardwired
-hardwood
-hardy
-harmful
-harmless
-harmonica
-harmonics
-harmonize
-harmony
-harness
-harpist
-harsh
-harvest
-hash
-hassle
-haste
-hastily
-hastiness
-hasty
-hatbox
-hatchback
-hatchery
-hatchet
-hatching
-hatchling
-hate
-hatless
-hatred
-haunt
-haven
-hazard
-hazelnut
-hazily
-haziness
-hazing
-hazy
-headache
-headband
-headboard
-headcount
-headdress
-headed
-header
-headfirst
-headgear
-heading
-headlamp
-headless
-headlock
-headphone
-headpiece
-headrest
-headroom
-headscarf
-headset
-headsman
-headstand
-headstone
-headway
-headwear
-heap
-heat
-heave
-heavily
-heaviness
-heaving
-hedge
-hedging
-heftiness
-hefty
-helium
-helmet
-helper
-helpful
-helping
-helpless
-helpline
-hemlock
-hemstitch
-hence
-henchman
-henna
-herald
-herbal
-herbicide
-herbs
-heritage
-hermit
-heroics
-heroism
-herring
-herself
-hertz
-hesitancy
-hesitant
-hesitate
-hexagon
-hexagram
-hubcap
-huddle
-huddling
-huff
-hug
-hula
-hulk
-hull
-human
-humble
-humbling
-humbly
-humid
-humiliate
-humility
-humming
-hummus
-humongous
-humorist
-humorless
-humorous
-humpback
-humped
-humvee
-hunchback
-hundredth
-hunger
-hungrily
-hungry
-hunk
-hunter
-hunting
-huntress
-huntsman
-hurdle
-hurled
-hurler
-hurling
-hurray
-hurricane
-hurried
-hurry
-hurt
-husband
-hush
-husked
-huskiness
-hut
-hybrid
-hydrant
-hydrated
-hydration
-hydrogen
-hydroxide
-hyperlink
-hypertext
-hyphen
-hypnoses
-hypnosis
-hypnotic
-hypnotism
-hypnotist
-hypnotize
-hypocrisy
-hypocrite
-ibuprofen
-ice
-iciness
-icing
-icky
-icon
-icy
-idealism
-idealist
-idealize
-ideally
-idealness
-identical
-identify
-identity
-ideology
-idiocy
-idiom
-idly
-igloo
-ignition
-ignore
-iguana
-illicitly
-illusion
-illusive
-image
-imaginary
-imagines
-imaging
-imbecile
-imitate
-imitation
-immature
-immerse
-immersion
-imminent
-immobile
-immodest
-immorally
-immortal
-immovable
-immovably
-immunity
-immunize
-impaired
-impale
-impart
-impatient
-impeach
-impeding
-impending
-imperfect
-imperial
-impish
-implant
-implement
-implicate
-implicit
-implode
-implosion
-implosive
-imply
-impolite
-important
-importer
-impose
-imposing
-impotence
-impotency
-impotent
-impound
-imprecise
-imprint
-imprison
-impromptu
-improper
-improve
-improving
-improvise
-imprudent
-impulse
-impulsive
-impure
-impurity
-iodine
-iodize
-ion
-ipad
-iphone
-ipod
-irate
-irk
-iron
-irregular
-irrigate
-irritable
-irritably
-irritant
-irritate
-islamic
-islamist
-isolated
-isolating
-isolation
-isotope
-issue
-issuing
-italicize
-italics
-item
-itinerary
-itunes
-ivory
-ivy
-jab
-jackal
-jacket
-jackknife
-jackpot
-jailbird
-jailbreak
-jailer
-jailhouse
-jalapeno
-jam
-janitor
-january
-jargon
-jarring
-jasmine
-jaundice
-jaunt
-java
-jawed
-jawless
-jawline
-jaws
-jaybird
-jaywalker
-jazz
-jeep
-jeeringly
-jellied
-jelly
-jersey
-jester
-jet
-jiffy
-jigsaw
-jimmy
-jingle
-jingling
-jinx
-jitters
-jittery
-job
-jockey
-jockstrap
-jogger
-jogging
-john
-joining
-jokester
-jokingly
-jolliness
-jolly
-jolt
-jot
-jovial
-joyfully
-joylessly
-joyous
-joyride
-joystick
-jubilance
-jubilant
-judge
-judgingly
-judicial
-judiciary
-judo
-juggle
-juggling
-jugular
-juice
-juiciness
-juicy
-jujitsu
-jukebox
-july
-jumble
-jumbo
-jump
-junction
-juncture
-june
-junior
-juniper
-junkie
-junkman
-junkyard
-jurist
-juror
-jury
-justice
-justifier
-justify
-justly
-justness
-juvenile
-kabob
-kangaroo
-karaoke
-karate
-karma
-kebab
-keenly
-keenness
-keep
-keg
-kelp
-kennel
-kept
-kerchief
-kerosene
-kettle
-kick
-kiln
-kilobyte
-kilogram
-kilometer
-kilowatt
-kilt
-kimono
-kindle
-kindling
-kindly
-kindness
-kindred
-kinetic
-kinfolk
-king
-kinship
-kinsman
-kinswoman
-kissable
-kisser
-kissing
-kitchen
-kite
-kitten
-kitty
-kiwi
-kleenex
-knapsack
-knee
-knelt
-knickers
-knoll
-koala
-kooky
-kosher
-krypton
-kudos
-kung
-labored
-laborer
-laboring
-laborious
-labrador
-ladder
-ladies
-ladle
-ladybug
-ladylike
-lagged
-lagging
-lagoon
-lair
-lake
-lance
-landed
-landfall
-landfill
-landing
-landlady
-landless
-landline
-landlord
-landmark
-landmass
-landmine
-landowner
-landscape
-landside
-landslide
-language
-lankiness
-lanky
-lantern
-lapdog
-lapel
-lapped
-lapping
-laptop
-lard
-large
-lark
-lash
-lasso
-last
-latch
-late
-lather
-latitude
-latrine
-latter
-latticed
-launch
-launder
-laundry
-laurel
-lavender
-lavish
-laxative
-lazily
-laziness
-lazy
-lecturer
-left
-legacy
-legal
-legend
-legged
-leggings
-legible
-legibly
-legislate
-lego
-legroom
-legume
-legwarmer
-legwork
-lemon
-lend
-length
-lens
-lent
-leotard
-lesser
-letdown
-lethargic
-lethargy
-letter
-lettuce
-level
-leverage
-levers
-levitate
-levitator
-liability
-liable
-liberty
-librarian
-library
-licking
-licorice
-lid
-life
-lifter
-lifting
-liftoff
-ligament
-likely
-likeness
-likewise
-liking
-lilac
-lilly
-lily
-limb
-limeade
-limelight
-limes
-limit
-limping
-limpness
-line
-lingo
-linguini
-linguist
-lining
-linked
-linoleum
-linseed
-lint
-lion
-lip
-liquefy
-liqueur
-liquid
-lisp
-list
-litigate
-litigator
-litmus
-litter
-little
-livable
-lived
-lively
-liver
-livestock
-lividly
-living
-lizard
-lubricant
-lubricate
-lucid
-luckily
-luckiness
-luckless
-lucrative
-ludicrous
-lugged
-lukewarm
-lullaby
-lumber
-luminance
-luminous
-lumpiness
-lumping
-lumpish
-lunacy
-lunar
-lunchbox
-luncheon
-lunchroom
-lunchtime
-lung
-lurch
-lure
-luridness
-lurk
-lushly
-lushness
-luster
-lustfully
-lustily
-lustiness
-lustrous
-lusty
-luxurious
-luxury
-lying
-lyrically
-lyricism
-lyricist
-lyrics
-macarena
-macaroni
-macaw
-mace
-machine
-machinist
-magazine
-magenta
-maggot
-magical
-magician
-magma
-magnesium
-magnetic
-magnetism
-magnetize
-magnifier
-magnify
-magnitude
-magnolia
-mahogany
-maimed
-majestic
-majesty
-majorette
-majority
-makeover
-maker
-makeshift
-making
-malformed
-malt
-mama
-mammal
-mammary
-mammogram
-manager
-managing
-manatee
-mandarin
-mandate
-mandatory
-mandolin
-manger
-mangle
-mango
-mangy
-manhandle
-manhole
-manhood
-manhunt
-manicotti
-manicure
-manifesto
-manila
-mankind
-manlike
-manliness
-manly
-manmade
-manned
-mannish
-manor
-manpower
-mantis
-mantra
-manual
-many
-map
-marathon
-marauding
-marbled
-marbles
-marbling
-march
-mardi
-margarine
-margarita
-margin
-marigold
-marina
-marine
-marital
-maritime
-marlin
-marmalade
-maroon
-married
-marrow
-marry
-marshland
-marshy
-marsupial
-marvelous
-marxism
-mascot
-masculine
-mashed
-mashing
-massager
-masses
-massive
-mastiff
-matador
-matchbook
-matchbox
-matcher
-matching
-matchless
-material
-maternal
-maternity
-math
-mating
-matriarch
-matrimony
-matrix
-matron
-matted
-matter
-maturely
-maturing
-maturity
-mauve
-maverick
-maximize
-maximum
-maybe
-mayday
-mayflower
-moaner
-moaning
-mobile
-mobility
-mobilize
-mobster
-mocha
-mocker
-mockup
-modified
-modify
-modular
-modulator
-module
-moisten
-moistness
-moisture
-molar
-molasses
-mold
-molecular
-molecule
-molehill
-mollusk
-mom
-monastery
-monday
-monetary
-monetize
-moneybags
-moneyless
-moneywise
-mongoose
-mongrel
-monitor
-monkhood
-monogamy
-monogram
-monologue
-monopoly
-monorail
-monotone
-monotype
-monoxide
-monsieur
-monsoon
-monstrous
-monthly
-monument
-moocher
-moodiness
-moody
-mooing
-moonbeam
-mooned
-moonlight
-moonlike
-moonlit
-moonrise
-moonscape
-moonshine
-moonstone
-moonwalk
-mop
-morale
-morality
-morally
-morbidity
-morbidly
-morphine
-morphing
-morse
-mortality
-mortally
-mortician
-mortified
-mortify
-mortuary
-mosaic
-mossy
-most
-mothball
-mothproof
-motion
-motivate
-motivator
-motive
-motocross
-motor
-motto
-mountable
-mountain
-mounted
-mounting
-mourner
-mournful
-mouse
-mousiness
-moustache
-mousy
-mouth
-movable
-move
-movie
-moving
-mower
-mowing
-much
-muck
-mud
-mug
-mulberry
-mulch
-mule
-mulled
-mullets
-multiple
-multiply
-multitask
-multitude
-mumble
-mumbling
-mumbo
-mummified
-mummify
-mummy
-mumps
-munchkin
-mundane
-municipal
-muppet
-mural
-murkiness
-murky
-murmuring
-muscular
-museum
-mushily
-mushiness
-mushroom
-mushy
-music
-musket
-muskiness
-musky
-mustang
-mustard
-muster
-mustiness
-musty
-mutable
-mutate
-mutation
-mute
-mutilated
-mutilator
-mutiny
-mutt
-mutual
-muzzle
-myself
-myspace
-mystified
-mystify
-myth
-nacho
-nag
-nail
-name
-naming
-nanny
-nanometer
-nape
-napkin
-napped
-napping
-nappy
-narrow
-nastily
-nastiness
-national
-native
-nativity
-natural
-nature
-naturist
-nautical
-navigate
-navigator
-navy
-nearby
-nearest
-nearly
-nearness
-neatly
-neatness
-nebula
-nebulizer
-nectar
-negate
-negation
-negative
-neglector
-negligee
-negligent
-negotiate
-nemeses
-nemesis
-neon
-nephew
-nerd
-nervous
-nervy
-nest
-net
-neurology
-neuron
-neurosis
-neurotic
-neuter
-neutron
-never
-next
-nibble
-nickname
-nicotine
-niece
-nifty
-nimble
-nimbly
-nineteen
-ninetieth
-ninja
-nintendo
-ninth
-nuclear
-nuclei
-nucleus
-nugget
-nullify
-number
-numbing
-numbly
-numbness
-numeral
-numerate
-numerator
-numeric
-numerous
-nuptials
-nursery
-nursing
-nurture
-nutcase
-nutlike
-nutmeg
-nutrient
-nutshell
-nuttiness
-nutty
-nuzzle
-nylon
-oaf
-oak
-oasis
-oat
-obedience
-obedient
-obituary
-object
-obligate
-obliged
-oblivion
-oblivious
-oblong
-obnoxious
-oboe
-obscure
-obscurity
-observant
-observer
-observing
-obsessed
-obsession
-obsessive
-obsolete
-obstacle
-obstinate
-obstruct
-obtain
-obtrusive
-obtuse
-obvious
-occultist
-occupancy
-occupant
-occupier
-occupy
-ocean
-ocelot
-octagon
-octane
-october
-octopus
-ogle
-oil
-oink
-ointment
-okay
-old
-olive
-olympics
-omega
-omen
-ominous
-omission
-omit
-omnivore
-onboard
-oncoming
-ongoing
-onion
-online
-onlooker
-only
-onscreen
-onset
-onshore
-onslaught
-onstage
-onto
-onward
-onyx
-oops
-ooze
-oozy
-opacity
-opal
-open
-operable
-operate
-operating
-operation
-operative
-operator
-opium
-opossum
-opponent
-oppose
-opposing
-opposite
-oppressed
-oppressor
-opt
-opulently
-osmosis
-other
-otter
-ouch
-ought
-ounce
-outage
-outback
-outbid
-outboard
-outbound
-outbreak
-outburst
-outcast
-outclass
-outcome
-outdated
-outdoors
-outer
-outfield
-outfit
-outflank
-outgoing
-outgrow
-outhouse
-outing
-outlast
-outlet
-outline
-outlook
-outlying
-outmatch
-outmost
-outnumber
-outplayed
-outpost
-outpour
-output
-outrage
-outrank
-outreach
-outright
-outscore
-outsell
-outshine
-outshoot
-outsider
-outskirts
-outsmart
-outsource
-outspoken
-outtakes
-outthink
-outward
-outweigh
-outwit
-oval
-ovary
-oven
-overact
-overall
-overarch
-overbid
-overbill
-overbite
-overblown
-overboard
-overbook
-overbuilt
-overcast
-overcoat
-overcome
-overcook
-overcrowd
-overdraft
-overdrawn
-overdress
-overdrive
-overdue
-overeager
-overeater
-overexert
-overfed
-overfeed
-overfill
-overflow
-overfull
-overgrown
-overhand
-overhang
-overhaul
-overhead
-overhear
-overheat
-overhung
-overjoyed
-overkill
-overlabor
-overlaid
-overlap
-overlay
-overload
-overlook
-overlord
-overlying
-overnight
-overpass
-overpay
-overplant
-overplay
-overpower
-overprice
-overrate
-overreach
-overreact
-override
-overripe
-overrule
-overrun
-overshoot
-overshot
-oversight
-oversized
-oversleep
-oversold
-overspend
-overstate
-overstay
-overstep
-overstock
-overstuff
-oversweet
-overtake
-overthrow
-overtime
-overtly
-overtone
-overture
-overturn
-overuse
-overvalue
-overview
-overwrite
-owl
-oxford
-oxidant
-oxidation
-oxidize
-oxidizing
-oxygen
-oxymoron
-oyster
-ozone
-paced
-pacemaker
-pacific
-pacifier
-pacifism
-pacifist
-pacify
-padded
-padding
-paddle
-paddling
-padlock
-pagan
-pager
-paging
-pajamas
-palace
-palatable
-palm
-palpable
-palpitate
-paltry
-pampered
-pamperer
-pampers
-pamphlet
-panama
-pancake
-pancreas
-panda
-pandemic
-pang
-panhandle
-panic
-panning
-panorama
-panoramic
-panther
-pantomime
-pantry
-pants
-pantyhose
-paparazzi
-papaya
-paper
-paprika
-papyrus
-parabola
-parachute
-parade
-paradox
-paragraph
-parakeet
-paralegal
-paralyses
-paralysis
-paralyze
-paramedic
-parameter
-paramount
-parasail
-parasite
-parasitic
-parcel
-parched
-parchment
-pardon
-parish
-parka
-parking
-parkway
-parlor
-parmesan
-parole
-parrot
-parsley
-parsnip
-partake
-parted
-parting
-partition
-partly
-partner
-partridge
-party
-passable
-passably
-passage
-passcode
-passenger
-passerby
-passing
-passion
-passive
-passivism
-passover
-passport
-password
-pasta
-pasted
-pastel
-pastime
-pastor
-pastrami
-pasture
-pasty
-patchwork
-patchy
-paternal
-paternity
-path
-patience
-patient
-patio
-patriarch
-patriot
-patrol
-patronage
-patronize
-pauper
-pavement
-paver
-pavestone
-pavilion
-paving
-pawing
-payable
-payback
-paycheck
-payday
-payee
-payer
-paying
-payment
-payphone
-payroll
-pebble
-pebbly
-pecan
-pectin
-peculiar
-peddling
-pediatric
-pedicure
-pedigree
-pedometer
-pegboard
-pelican
-pellet
-pelt
-pelvis
-penalize
-penalty
-pencil
-pendant
-pending
-penholder
-penknife
-pennant
-penniless
-penny
-penpal
-pension
-pentagon
-pentagram
-pep
-perceive
-percent
-perch
-percolate
-perennial
-perfected
-perfectly
-perfume
-periscope
-perish
-perjurer
-perjury
-perkiness
-perky
-perm
-peroxide
-perpetual
-perplexed
-persecute
-persevere
-persuaded
-persuader
-pesky
-peso
-pessimism
-pessimist
-pester
-pesticide
-petal
-petite
-petition
-petri
-petroleum
-petted
-petticoat
-pettiness
-petty
-petunia
-phantom
-phobia
-phoenix
-phonebook
-phoney
-phonics
-phoniness
-phony
-phosphate
-photo
-phrase
-phrasing
-placard
-placate
-placidly
-plank
-planner
-plant
-plasma
-plaster
-plastic
-plated
-platform
-plating
-platinum
-platonic
-platter
-platypus
-plausible
-plausibly
-playable
-playback
-player
-playful
-playgroup
-playhouse
-playing
-playlist
-playmaker
-playmate
-playoff
-playpen
-playroom
-playset
-plaything
-playtime
-plaza
-pleading
-pleat
-pledge
-plentiful
-plenty
-plethora
-plexiglas
-pliable
-plod
-plop
-plot
-plow
-ploy
-pluck
-plug
-plunder
-plunging
-plural
-plus
-plutonium
-plywood
-poach
-pod
-poem
-poet
-pogo
-pointed
-pointer
-pointing
-pointless
-pointy
-poise
-poison
-poker
-poking
-polar
-police
-policy
-polio
-polish
-politely
-polka
-polo
-polyester
-polygon
-polygraph
-polymer
-poncho
-pond
-pony
-popcorn
-pope
-poplar
-popper
-poppy
-popsicle
-populace
-popular
-populate
-porcupine
-pork
-porous
-porridge
-portable
-portal
-portfolio
-porthole
-portion
-portly
-portside
-poser
-posh
-posing
-possible
-possibly
-possum
-postage
-postal
-postbox
-postcard
-posted
-poster
-posting
-postnasal
-posture
-postwar
-pouch
-pounce
-pouncing
-pound
-pouring
-pout
-powdered
-powdering
-powdery
-power
-powwow
-pox
-praising
-prance
-prancing
-pranker
-prankish
-prankster
-prayer
-praying
-preacher
-preaching
-preachy
-preamble
-precinct
-precise
-precision
-precook
-precut
-predator
-predefine
-predict
-preface
-prefix
-preflight
-preformed
-pregame
-pregnancy
-pregnant
-preheated
-prelaunch
-prelaw
-prelude
-premiere
-premises
-premium
-prenatal
-preoccupy
-preorder
-prepaid
-prepay
-preplan
-preppy
-preschool
-prescribe
-preseason
-preset
-preshow
-president
-presoak
-press
-presume
-presuming
-preteen
-pretended
-pretender
-pretense
-pretext
-pretty
-pretzel
-prevail
-prevalent
-prevent
-preview
-previous
-prewar
-prewashed
-prideful
-pried
-primal
-primarily
-primary
-primate
-primer
-primp
-princess
-print
-prior
-prism
-prison
-prissy
-pristine
-privacy
-private
-privatize
-prize
-proactive
-probable
-probably
-probation
-probe
-probing
-probiotic
-problem
-procedure
-process
-proclaim
-procreate
-procurer
-prodigal
-prodigy
-produce
-product
-profane
-profanity
-professed
-professor
-profile
-profound
-profusely
-progeny
-prognosis
-program
-progress
-projector
-prologue
-prolonged
-promenade
-prominent
-promoter
-promotion
-prompter
-promptly
-prone
-prong
-pronounce
-pronto
-proofing
-proofread
-proofs
-propeller
-properly
-property
-proponent
-proposal
-propose
-props
-prorate
-protector
-protegee
-proton
-prototype
-protozoan
-protract
-protrude
-proud
-provable
-proved
-proven
-provided
-provider
-providing
-province
-proving
-provoke
-provoking
-provolone
-prowess
-prowler
-prowling
-proximity
-proxy
-prozac
-prude
-prudishly
-prune
-pruning
-pry
-psychic
-public
-publisher
-pucker
-pueblo
-pug
-pull
-pulmonary
-pulp
-pulsate
-pulse
-pulverize
-puma
-pumice
-pummel
-punch
-punctual
-punctuate
-punctured
-pungent
-punisher
-punk
-pupil
-puppet
-puppy
-purchase
-pureblood
-purebred
-purely
-pureness
-purgatory
-purge
-purging
-purifier
-purify
-purist
-puritan
-purity
-purple
-purplish
-purposely
-purr
-purse
-pursuable
-pursuant
-pursuit
-purveyor
-pushcart
-pushchair
-pusher
-pushiness
-pushing
-pushover
-pushpin
-pushup
-pushy
-putdown
-putt
-puzzle
-puzzling
-pyramid
-pyromania
-python
-quack
-quadrant
-quail
-quaintly
-quake
-quaking
-qualified
-qualifier
-qualify
-quality
-qualm
-quantum
-quarrel
-quarry
-quartered
-quarterly
-quarters
-quartet
-quench
-query
-quicken
-quickly
-quickness
-quicksand
-quickstep
-quiet
-quill
-quilt
-quintet
-quintuple
-quirk
-quit
-quiver
-quizzical
-quotable
-quotation
-quote
-rabid
-race
-racing
-racism
-rack
-racoon
-radar
-radial
-radiance
-radiantly
-radiated
-radiation
-radiator
-radio
-radish
-raffle
-raft
-rage
-ragged
-raging
-ragweed
-raider
-railcar
-railing
-railroad
-railway
-raisin
-rake
-raking
-rally
-ramble
-rambling
-ramp
-ramrod
-ranch
-rancidity
-random
-ranged
-ranger
-ranging
-ranked
-ranking
-ransack
-ranting
-rants
-rare
-rarity
-rascal
-rash
-rasping
-ravage
-raven
-ravine
-raving
-ravioli
-ravishing
-reabsorb
-reach
-reacquire
-reaction
-reactive
-reactor
-reaffirm
-ream
-reanalyze
-reappear
-reapply
-reappoint
-reapprove
-rearrange
-rearview
-reason
-reassign
-reassure
-reattach
-reawake
-rebalance
-rebate
-rebel
-rebirth
-reboot
-reborn
-rebound
-rebuff
-rebuild
-rebuilt
-reburial
-rebuttal
-recall
-recant
-recapture
-recast
-recede
-recent
-recess
-recharger
-recipient
-recital
-recite
-reckless
-reclaim
-recliner
-reclining
-recluse
-reclusive
-recognize
-recoil
-recollect
-recolor
-reconcile
-reconfirm
-reconvene
-recopy
-record
-recount
-recoup
-recovery
-recreate
-rectal
-rectangle
-rectified
-rectify
-recycled
-recycler
-recycling
-reemerge
-reenact
-reenter
-reentry
-reexamine
-referable
-referee
-reference
-refill
-refinance
-refined
-refinery
-refining
-refinish
-reflected
-reflector
-reflex
-reflux
-refocus
-refold
-reforest
-reformat
-reformed
-reformer
-reformist
-refract
-refrain
-refreeze
-refresh
-refried
-refueling
-refund
-refurbish
-refurnish
-refusal
-refuse
-refusing
-refutable
-refute
-regain
-regalia
-regally
-reggae
-regime
-region
-register
-registrar
-registry
-regress
-regretful
-regroup
-regular
-regulate
-regulator
-rehab
-reheat
-rehire
-rehydrate
-reimburse
-reissue
-reiterate
-rejoice
-rejoicing
-rejoin
-rekindle
-relapse
-relapsing
-relatable
-related
-relation
-relative
-relax
-relay
-relearn
-release
-relenting
-reliable
-reliably
-reliance
-reliant
-relic
-relieve
-relieving
-relight
-relish
-relive
-reload
-relocate
-relock
-reluctant
-rely
-remake
-remark
-remarry
-rematch
-remedial
-remedy
-remember
-reminder
-remindful
-remission
-remix
-remnant
-remodeler
-remold
-remorse
-remote
-removable
-removal
-removed
-remover
-removing
-rename
-renderer
-rendering
-rendition
-renegade
-renewable
-renewably
-renewal
-renewed
-renounce
-renovate
-renovator
-rentable
-rental
-rented
-renter
-reoccupy
-reoccur
-reopen
-reorder
-repackage
-repacking
-repaint
-repair
-repave
-repaying
-repayment
-repeal
-repeated
-repeater
-repent
-rephrase
-replace
-replay
-replica
-reply
-reporter
-repose
-repossess
-repost
-repressed
-reprimand
-reprint
-reprise
-reproach
-reprocess
-reproduce
-reprogram
-reps
-reptile
-reptilian
-repugnant
-repulsion
-repulsive
-repurpose
-reputable
-reputably
-request
-require
-requisite
-reroute
-rerun
-resale
-resample
-rescuer
-reseal
-research
-reselect
-reseller
-resemble
-resend
-resent
-reset
-reshape
-reshoot
-reshuffle
-residence
-residency
-resident
-residual
-residue
-resigned
-resilient
-resistant
-resisting
-resize
-resolute
-resolved
-resonant
-resonate
-resort
-resource
-respect
-resubmit
-result
-resume
-resupply
-resurface
-resurrect
-retail
-retainer
-retaining
-retake
-retaliate
-retention
-rethink
-retinal
-retired
-retiree
-retiring
-retold
-retool
-retorted
-retouch
-retrace
-retract
-retrain
-retread
-retreat
-retrial
-retrieval
-retriever
-retry
-return
-retying
-retype
-reunion
-reunite
-reusable
-reuse
-reveal
-reveler
-revenge
-revenue
-reverb
-revered
-reverence
-reverend
-reversal
-reverse
-reversing
-reversion
-revert
-revisable
-revise
-revision
-revisit
-revivable
-revival
-reviver
-reviving
-revocable
-revoke
-revolt
-revolver
-revolving
-reward
-rewash
-rewind
-rewire
-reword
-rework
-rewrap
-rewrite
-rhyme
-ribbon
-ribcage
-rice
-riches
-richly
-richness
-rickety
-ricotta
-riddance
-ridden
-ride
-riding
-rifling
-rift
-rigging
-rigid
-rigor
-rimless
-rimmed
-rind
-rink
-rinse
-rinsing
-riot
-ripcord
-ripeness
-ripening
-ripping
-ripple
-rippling
-riptide
-rise
-rising
-risk
-risotto
-ritalin
-ritzy
-rival
-riverbank
-riverbed
-riverboat
-riverside
-riveter
-riveting
-roamer
-roaming
-roast
-robbing
-robe
-robin
-robotics
-robust
-rockband
-rocker
-rocket
-rockfish
-rockiness
-rocking
-rocklike
-rockslide
-rockstar
-rocky
-rogue
-roman
-romp
-rope
-roping
-roster
-rosy
-rotten
-rotting
-rotunda
-roulette
-rounding
-roundish
-roundness
-roundup
-roundworm
-routine
-routing
-rover
-roving
-royal
-rubbed
-rubber
-rubbing
-rubble
-rubdown
-ruby
-ruckus
-rudder
-rug
-ruined
-rule
-rumble
-rumbling
-rummage
-rumor
-runaround
-rundown
-runner
-running
-runny
-runt
-runway
-rupture
-rural
-ruse
-rush
-rust
-rut
-sabbath
-sabotage
-sacrament
-sacred
-sacrifice
-sadden
-saddlebag
-saddled
-saddling
-sadly
-sadness
-safari
-safeguard
-safehouse
-safely
-safeness
-saffron
-saga
-sage
-sagging
-saggy
-said
-saint
-sake
-salad
-salami
-salaried
-salary
-saline
-salon
-saloon
-salsa
-salt
-salutary
-salute
-salvage
-salvaging
-salvation
-same
-sample
-sampling
-sanction
-sanctity
-sanctuary
-sandal
-sandbag
-sandbank
-sandbar
-sandblast
-sandbox
-sanded
-sandfish
-sanding
-sandlot
-sandpaper
-sandpit
-sandstone
-sandstorm
-sandworm
-sandy
-sanitary
-sanitizer
-sank
-santa
-sapling
-sappiness
-sappy
-sarcasm
-sarcastic
-sardine
-sash
-sasquatch
-sassy
-satchel
-satiable
-satin
-satirical
-satisfied
-satisfy
-saturate
-saturday
-sauciness
-saucy
-sauna
-savage
-savanna
-saved
-savings
-savior
-savor
-saxophone
-say
-scabbed
-scabby
-scalded
-scalding
-scale
-scaling
-scallion
-scallop
-scalping
-scam
-scandal
-scanner
-scanning
-scant
-scapegoat
-scarce
-scarcity
-scarecrow
-scared
-scarf
-scarily
-scariness
-scarring
-scary
-scavenger
-scenic
-schedule
-schematic
-scheme
-scheming
-schilling
-schnapps
-scholar
-science
-scientist
-scion
-scoff
-scolding
-scone
-scoop
-scooter
-scope
-scorch
-scorebook
-scorecard
-scored
-scoreless
-scorer
-scoring
-scorn
-scorpion
-scotch
-scoundrel
-scoured
-scouring
-scouting
-scouts
-scowling
-scrabble
-scraggly
-scrambled
-scrambler
-scrap
-scratch
-scrawny
-screen
-scribble
-scribe
-scribing
-scrimmage
-script
-scroll
-scrooge
-scrounger
-scrubbed
-scrubber
-scruffy
-scrunch
-scrutiny
-scuba
-scuff
-sculptor
-sculpture
-scurvy
-scuttle
-secluded
-secluding
-seclusion
-second
-secrecy
-secret
-sectional
-sector
-secular
-securely
-security
-sedan
-sedate
-sedation
-sedative
-sediment
-seduce
-seducing
-segment
-seismic
-seizing
-seldom
-selected
-selection
-selective
-selector
-self
-seltzer
-semantic
-semester
-semicolon
-semifinal
-seminar
-semisoft
-semisweet
-senate
-senator
-send
-senior
-senorita
-sensation
-sensitive
-sensitize
-sensually
-sensuous
-sepia
-september
-septic
-septum
-sequel
-sequence
-sequester
-series
-sermon
-serotonin
-serpent
-serrated
-serve
-service
-serving
-sesame
-sessions
-setback
-setting
-settle
-settling
-setup
-sevenfold
-seventeen
-seventh
-seventy
-severity
-shabby
-shack
-shaded
-shadily
-shadiness
-shading
-shadow
-shady
-shaft
-shakable
-shakily
-shakiness
-shaking
-shaky
-shale
-shallot
-shallow
-shame
-shampoo
-shamrock
-shank
-shanty
-shape
-shaping
-share
-sharpener
-sharper
-sharpie
-sharply
-sharpness
-shawl
-sheath
-shed
-sheep
-sheet
-shelf
-shell
-shelter
-shelve
-shelving
-sherry
-shield
-shifter
-shifting
-shiftless
-shifty
-shimmer
-shimmy
-shindig
-shine
-shingle
-shininess
-shining
-shiny
-ship
-shirt
-shivering
-shock
-shone
-shoplift
-shopper
-shopping
-shoptalk
-shore
-shortage
-shortcake
-shortcut
-shorten
-shorter
-shorthand
-shortlist
-shortly
-shortness
-shorts
-shortwave
-shorty
-shout
-shove
-showbiz
-showcase
-showdown
-shower
-showgirl
-showing
-showman
-shown
-showoff
-showpiece
-showplace
-showroom
-showy
-shrank
-shrapnel
-shredder
-shredding
-shrewdly
-shriek
-shrill
-shrimp
-shrine
-shrink
-shrivel
-shrouded
-shrubbery
-shrubs
-shrug
-shrunk
-shucking
-shudder
-shuffle
-shuffling
-shun
-shush
-shut
-shy
-siamese
-siberian
-sibling
-siding
-sierra
-siesta
-sift
-sighing
-silenced
-silencer
-silent
-silica
-silicon
-silk
-silliness
-silly
-silo
-silt
-silver
-similarly
-simile
-simmering
-simple
-simplify
-simply
-sincere
-sincerity
-singer
-singing
-single
-singular
-sinister
-sinless
-sinner
-sinuous
-sip
-siren
-sister
-sitcom
-sitter
-sitting
-situated
-situation
-sixfold
-sixteen
-sixth
-sixties
-sixtieth
-sixtyfold
-sizable
-sizably
-size
-sizing
-sizzle
-sizzling
-skater
-skating
-skedaddle
-skeletal
-skeleton
-skeptic
-sketch
-skewed
-skewer
-skid
-skied
-skier
-skies
-skiing
-skilled
-skillet
-skillful
-skimmed
-skimmer
-skimming
-skimpily
-skincare
-skinhead
-skinless
-skinning
-skinny
-skintight
-skipper
-skipping
-skirmish
-skirt
-skittle
-skydiver
-skylight
-skyline
-skype
-skyrocket
-skyward
-slab
-slacked
-slacker
-slacking
-slackness
-slacks
-slain
-slam
-slander
-slang
-slapping
-slapstick
-slashed
-slashing
-slate
-slather
-slaw
-sled
-sleek
-sleep
-sleet
-sleeve
-slept
-sliceable
-sliced
-slicer
-slicing
-slick
-slider
-slideshow
-sliding
-slighted
-slighting
-slightly
-slimness
-slimy
-slinging
-slingshot
-slinky
-slip
-slit
-sliver
-slobbery
-slogan
-sloped
-sloping
-sloppily
-sloppy
-slot
-slouching
-slouchy
-sludge
-slug
-slum
-slurp
-slush
-sly
-small
-smartly
-smartness
-smasher
-smashing
-smashup
-smell
-smelting
-smile
-smilingly
-smirk
-smite
-smith
-smitten
-smock
-smog
-smoked
-smokeless
-smokiness
-smoking
-smoky
-smolder
-smooth
-smother
-smudge
-smudgy
-smuggler
-smuggling
-smugly
-smugness
-snack
-snagged
-snaking
-snap
-snare
-snarl
-snazzy
-sneak
-sneer
-sneeze
-sneezing
-snide
-sniff
-snippet
-snipping
-snitch
-snooper
-snooze
-snore
-snoring
-snorkel
-snort
-snout
-snowbird
-snowboard
-snowbound
-snowcap
-snowdrift
-snowdrop
-snowfall
-snowfield
-snowflake
-snowiness
-snowless
-snowman
-snowplow
-snowshoe
-snowstorm
-snowsuit
-snowy
-snub
-snuff
-snuggle
-snugly
-snugness
-speak
-spearfish
-spearhead
-spearman
-spearmint
-species
-specimen
-specked
-speckled
-specks
-spectacle
-spectator
-spectrum
-speculate
-speech
-speed
-spellbind
-speller
-spelling
-spendable
-spender
-spending
-spent
-spew
-sphere
-spherical
-sphinx
-spider
-spied
-spiffy
-spill
-spilt
-spinach
-spinal
-spindle
-spinner
-spinning
-spinout
-spinster
-spiny
-spiral
-spirited
-spiritism
-spirits
-spiritual
-splashed
-splashing
-splashy
-splatter
-spleen
-splendid
-splendor
-splice
-splicing
-splinter
-splotchy
-splurge
-spoilage
-spoiled
-spoiler
-spoiling
-spoils
-spoken
-spokesman
-sponge
-spongy
-sponsor
-spoof
-spookily
-spooky
-spool
-spoon
-spore
-sporting
-sports
-sporty
-spotless
-spotlight
-spotted
-spotter
-spotting
-spotty
-spousal
-spouse
-spout
-sprain
-sprang
-sprawl
-spray
-spree
-sprig
-spring
-sprinkled
-sprinkler
-sprint
-sprite
-sprout
-spruce
-sprung
-spry
-spud
-spur
-sputter
-spyglass
-squabble
-squad
-squall
-squander
-squash
-squatted
-squatter
-squatting
-squeak
-squealer
-squealing
-squeamish
-squeegee
-squeeze
-squeezing
-squid
-squiggle
-squiggly
-squint
-squire
-squirt
-squishier
-squishy
-stability
-stabilize
-stable
-stack
-stadium
-staff
-stage
-staging
-stagnant
-stagnate
-stainable
-stained
-staining
-stainless
-stalemate
-staleness
-stalling
-stallion
-stamina
-stammer
-stamp
-stand
-stank
-staple
-stapling
-starboard
-starch
-stardom
-stardust
-starfish
-stargazer
-staring
-stark
-starless
-starlet
-starlight
-starlit
-starring
-starry
-starship
-starter
-starting
-startle
-startling
-startup
-starved
-starving
-stash
-state
-static
-statistic
-statue
-stature
-status
-statute
-statutory
-staunch
-stays
-steadfast
-steadier
-steadily
-steadying
-steam
-steed
-steep
-steerable
-steering
-steersman
-stegosaur
-stellar
-stem
-stench
-stencil
-step
-stereo
-sterile
-sterility
-sterilize
-sterling
-sternness
-sternum
-stew
-stick
-stiffen
-stiffly
-stiffness
-stifle
-stifling
-stillness
-stilt
-stimulant
-stimulate
-stimuli
-stimulus
-stinger
-stingily
-stinging
-stingray
-stingy
-stinking
-stinky
-stipend
-stipulate
-stir
-stitch
-stock
-stoic
-stoke
-stole
-stomp
-stonewall
-stoneware
-stonework
-stoning
-stony
-stood
-stooge
-stool
-stoop
-stoplight
-stoppable
-stoppage
-stopped
-stopper
-stopping
-stopwatch
-storable
-storage
-storeroom
-storewide
-storm
-stout
-stove
-stowaway
-stowing
-straddle
-straggler
-strained
-strainer
-straining
-strangely
-stranger
-strangle
-strategic
-strategy
-stratus
-straw
-stray
-streak
-stream
-street
-strength
-strenuous
-strep
-stress
-stretch
-strewn
-stricken
-strict
-stride
-strife
-strike
-striking
-strive
-striving
-strobe
-strode
-stroller
-strongbox
-strongly
-strongman
-struck
-structure
-strudel
-struggle
-strum
-strung
-strut
-stubbed
-stubble
-stubbly
-stubborn
-stucco
-stuck
-student
-studied
-studio
-study
-stuffed
-stuffing
-stuffy
-stumble
-stumbling
-stump
-stung
-stunned
-stunner
-stunning
-stunt
-stupor
-sturdily
-sturdy
-styling
-stylishly
-stylist
-stylized
-stylus
-suave
-subarctic
-subatomic
-subdivide
-subdued
-subduing
-subfloor
-subgroup
-subheader
-subject
-sublease
-sublet
-sublevel
-sublime
-submarine
-submerge
-submersed
-submitter
-subpanel
-subpar
-subplot
-subprime
-subscribe
-subscript
-subsector
-subside
-subsiding
-subsidize
-subsidy
-subsoil
-subsonic
-substance
-subsystem
-subtext
-subtitle
-subtly
-subtotal
-subtract
-subtype
-suburb
-subway
-subwoofer
-subzero
-succulent
-such
-suction
-sudden
-sudoku
-suds
-sufferer
-suffering
-suffice
-suffix
-suffocate
-suffrage
-sugar
-suggest
-suing
-suitable
-suitably
-suitcase
-suitor
-sulfate
-sulfide
-sulfite
-sulfur
-sulk
-sullen
-sulphate
-sulphuric
-sultry
-superbowl
-superglue
-superhero
-superior
-superjet
-superman
-supermom
-supernova
-supervise
-supper
-supplier
-supply
-support
-supremacy
-supreme
-surcharge
-surely
-sureness
-surface
-surfacing
-surfboard
-surfer
-surgery
-surgical
-surging
-surname
-surpass
-surplus
-surprise
-surreal
-surrender
-surrogate
-surround
-survey
-survival
-survive
-surviving
-survivor
-sushi
-suspect
-suspend
-suspense
-sustained
-sustainer
-swab
-swaddling
-swagger
-swampland
-swan
-swapping
-swarm
-sway
-swear
-sweat
-sweep
-swell
-swept
-swerve
-swifter
-swiftly
-swiftness
-swimmable
-swimmer
-swimming
-swimsuit
-swimwear
-swinger
-swinging
-swipe
-swirl
-switch
-swivel
-swizzle
-swooned
-swoop
-swoosh
-swore
-sworn
-swung
-sycamore
-sympathy
-symphonic
-symphony
-symptom
-synapse
-syndrome
-synergy
-synopses
-synopsis
-synthesis
-synthetic
-syrup
-system
-t-shirt
-tabasco
-tabby
-tableful
-tables
-tablet
-tableware
-tabloid
-tackiness
-tacking
-tackle
-tackling
-tacky
-taco
-tactful
-tactical
-tactics
-tactile
-tactless
-tadpole
-taekwondo
-tag
-tainted
-take
-taking
-talcum
-talisman
-tall
-talon
-tamale
-tameness
-tamer
-tamper
-tank
-tanned
-tannery
-tanning
-tantrum
-tapeless
-tapered
-tapering
-tapestry
-tapioca
-tapping
-taps
-tarantula
-target
-tarmac
-tarnish
-tarot
-tartar
-tartly
-tartness
-task
-tassel
-taste
-tastiness
-tasting
-tasty
-tattered
-tattle
-tattling
-tattoo
-taunt
-tavern
-thank
-that
-thaw
-theater
-theatrics
-thee
-theft
-theme
-theology
-theorize
-thermal
-thermos
-thesaurus
-these
-thesis
-thespian
-thicken
-thicket
-thickness
-thieving
-thievish
-thigh
-thimble
-thing
-think
-thinly
-thinner
-thinness
-thinning
-thirstily
-thirsting
-thirsty
-thirteen
-thirty
-thong
-thorn
-those
-thousand
-thrash
-thread
-threaten
-threefold
-thrift
-thrill
-thrive
-thriving
-throat
-throbbing
-throng
-throttle
-throwaway
-throwback
-thrower
-throwing
-thud
-thumb
-thumping
-thursday
-thus
-thwarting
-thyself
-tiara
-tibia
-tidal
-tidbit
-tidiness
-tidings
-tidy
-tiger
-tighten
-tightly
-tightness
-tightrope
-tightwad
-tigress
-tile
-tiling
-till
-tilt
-timid
-timing
-timothy
-tinderbox
-tinfoil
-tingle
-tingling
-tingly
-tinker
-tinkling
-tinsel
-tinsmith
-tint
-tinwork
-tiny
-tipoff
-tipped
-tipper
-tipping
-tiptoeing
-tiptop
-tiring
-tissue
-trace
-tracing
-track
-traction
-tractor
-trade
-trading
-tradition
-traffic
-tragedy
-trailing
-trailside
-train
-traitor
-trance
-tranquil
-transfer
-transform
-translate
-transpire
-transport
-transpose
-trapdoor
-trapeze
-trapezoid
-trapped
-trapper
-trapping
-traps
-trash
-travel
-traverse
-travesty
-tray
-treachery
-treading
-treadmill
-treason
-treat
-treble
-tree
-trekker
-tremble
-trembling
-tremor
-trench
-trend
-trespass
-triage
-trial
-triangle
-tribesman
-tribunal
-tribune
-tributary
-tribute
-triceps
-trickery
-trickily
-tricking
-trickle
-trickster
-tricky
-tricolor
-tricycle
-trident
-tried
-trifle
-trifocals
-trillion
-trilogy
-trimester
-trimmer
-trimming
-trimness
-trinity
-trio
-tripod
-tripping
-triumph
-trivial
-trodden
-trolling
-trombone
-trophy
-tropical
-tropics
-trouble
-troubling
-trough
-trousers
-trout
-trowel
-truce
-truck
-truffle
-trump
-trunks
-trustable
-trustee
-trustful
-trusting
-trustless
-truth
-try
-tubby
-tubeless
-tubular
-tucking
-tuesday
-tug
-tuition
-tulip
-tumble
-tumbling
-tummy
-turban
-turbine
-turbofan
-turbojet
-turbulent
-turf
-turkey
-turmoil
-turret
-turtle
-tusk
-tutor
-tutu
-tux
-tweak
-tweed
-tweet
-tweezers
-twelve
-twentieth
-twenty
-twerp
-twice
-twiddle
-twiddling
-twig
-twilight
-twine
-twins
-twirl
-twistable
-twisted
-twister
-twisting
-twisty
-twitch
-twitter
-tycoon
-tying
-tyke
-udder
-ultimate
-ultimatum
-ultra
-umbilical
-umbrella
-umpire
-unabashed
-unable
-unadorned
-unadvised
-unafraid
-unaired
-unaligned
-unaltered
-unarmored
-unashamed
-unaudited
-unawake
-unaware
-unbaked
-unbalance
-unbeaten
-unbend
-unbent
-unbiased
-unbitten
-unblended
-unblessed
-unblock
-unbolted
-unbounded
-unboxed
-unbraided
-unbridle
-unbroken
-unbuckled
-unbundle
-unburned
-unbutton
-uncanny
-uncapped
-uncaring
-uncertain
-unchain
-unchanged
-uncharted
-uncheck
-uncivil
-unclad
-unclaimed
-unclamped
-unclasp
-uncle
-unclip
-uncloak
-unclog
-unclothed
-uncoated
-uncoiled
-uncolored
-uncombed
-uncommon
-uncooked
-uncork
-uncorrupt
-uncounted
-uncouple
-uncouth
-uncover
-uncross
-uncrown
-uncrushed
-uncured
-uncurious
-uncurled
-uncut
-undamaged
-undated
-undaunted
-undead
-undecided
-undefined
-underage
-underarm
-undercoat
-undercook
-undercut
-underdog
-underdone
-underfed
-underfeed
-underfoot
-undergo
-undergrad
-underhand
-underline
-underling
-undermine
-undermost
-underpaid
-underpass
-underpay
-underrate
-undertake
-undertone
-undertook
-undertow
-underuse
-underwear
-underwent
-underwire
-undesired
-undiluted
-undivided
-undocked
-undoing
-undone
-undrafted
-undress
-undrilled
-undusted
-undying
-unearned
-unearth
-unease
-uneasily
-uneasy
-uneatable
-uneaten
-unedited
-unelected
-unending
-unengaged
-unenvied
-unequal
-unethical
-uneven
-unexpired
-unexposed
-unfailing
-unfair
-unfasten
-unfazed
-unfeeling
-unfiled
-unfilled
-unfitted
-unfitting
-unfixable
-unfixed
-unflawed
-unfocused
-unfold
-unfounded
-unframed
-unfreeze
-unfrosted
-unfrozen
-unfunded
-unglazed
-ungloved
-unglue
-ungodly
-ungraded
-ungreased
-unguarded
-unguided
-unhappily
-unhappy
-unharmed
-unhealthy
-unheard
-unhearing
-unheated
-unhelpful
-unhidden
-unhinge
-unhitched
-unholy
-unhook
-unicorn
-unicycle
-unified
-unifier
-uniformed
-uniformly
-unify
-unimpeded
-uninjured
-uninstall
-uninsured
-uninvited
-union
-uniquely
-unisexual
-unison
-unissued
-unit
-universal
-universe
-unjustly
-unkempt
-unkind
-unknotted
-unknowing
-unknown
-unlaced
-unlatch
-unlawful
-unleaded
-unlearned
-unleash
-unless
-unleveled
-unlighted
-unlikable
-unlimited
-unlined
-unlinked
-unlisted
-unlit
-unlivable
-unloaded
-unloader
-unlocked
-unlocking
-unlovable
-unloved
-unlovely
-unloving
-unluckily
-unlucky
-unmade
-unmanaged
-unmanned
-unmapped
-unmarked
-unmasked
-unmasking
-unmatched
-unmindful
-unmixable
-unmixed
-unmolded
-unmoral
-unmovable
-unmoved
-unmoving
-unnamable
-unnamed
-unnatural
-unneeded
-unnerve
-unnerving
-unnoticed
-unopened
-unopposed
-unpack
-unpadded
-unpaid
-unpainted
-unpaired
-unpaved
-unpeeled
-unpicked
-unpiloted
-unpinned
-unplanned
-unplanted
-unpleased
-unpledged
-unplowed
-unplug
-unpopular
-unproven
-unquote
-unranked
-unrated
-unraveled
-unreached
-unread
-unreal
-unreeling
-unrefined
-unrelated
-unrented
-unrest
-unretired
-unrevised
-unrigged
-unripe
-unrivaled
-unroasted
-unrobed
-unroll
-unruffled
-unruly
-unrushed
-unsaddle
-unsafe
-unsaid
-unsalted
-unsaved
-unsavory
-unscathed
-unscented
-unscrew
-unsealed
-unseated
-unsecured
-unseeing
-unseemly
-unseen
-unselect
-unselfish
-unsent
-unsettled
-unshackle
-unshaken
-unshaved
-unshaven
-unsheathe
-unshipped
-unsightly
-unsigned
-unskilled
-unsliced
-unsmooth
-unsnap
-unsocial
-unsoiled
-unsold
-unsolved
-unsorted
-unspoiled
-unspoken
-unstable
-unstaffed
-unstamped
-unsteady
-unsterile
-unstirred
-unstitch
-unstopped
-unstuck
-unstuffed
-unstylish
-unsubtle
-unsubtly
-unsuited
-unsure
-unsworn
-untagged
-untainted
-untaken
-untamed
-untangled
-untapped
-untaxed
-unthawed
-unthread
-untidy
-untie
-until
-untimed
-untimely
-untitled
-untoasted
-untold
-untouched
-untracked
-untrained
-untreated
-untried
-untrimmed
-untrue
-untruth
-unturned
-untwist
-untying
-unusable
-unused
-unusual
-unvalued
-unvaried
-unvarying
-unveiled
-unveiling
-unvented
-unviable
-unvisited
-unvocal
-unwanted
-unwarlike
-unwary
-unwashed
-unwatched
-unweave
-unwed
-unwelcome
-unwell
-unwieldy
-unwilling
-unwind
-unwired
-unwitting
-unwomanly
-unworldly
-unworn
-unworried
-unworthy
-unwound
-unwoven
-unwrapped
-unwritten
-unzip
-upbeat
-upchuck
-upcoming
-upcountry
-update
-upfront
-upgrade
-upheaval
-upheld
-uphill
-uphold
-uplifted
-uplifting
-upload
-upon
-upper
-upright
-uprising
-upriver
-uproar
-uproot
-upscale
-upside
-upstage
-upstairs
-upstart
-upstate
-upstream
-upstroke
-upswing
-uptake
-uptight
-uptown
-upturned
-upward
-upwind
-uranium
-urban
-urchin
-urethane
-urgency
-urgent
-urging
-urologist
-urology
-usable
-usage
-useable
-used
-uselessly
-user
-usher
-usual
-utensil
-utility
-utilize
-utmost
-utopia
-utter
-vacancy
-vacant
-vacate
-vacation
-vagabond
-vagrancy
-vagrantly
-vaguely
-vagueness
-valiant
-valid
-valium
-valley
-valuables
-value
-vanilla
-vanish
-vanity
-vanquish
-vantage
-vaporizer
-variable
-variably
-varied
-variety
-various
-varmint
-varnish
-varsity
-varying
-vascular
-vaseline
-vastly
-vastness
-veal
-vegan
-veggie
-vehicular
-velcro
-velocity
-velvet
-vendetta
-vending
-vendor
-veneering
-vengeful
-venomous
-ventricle
-venture
-venue
-venus
-verbalize
-verbally
-verbose
-verdict
-verify
-verse
-version
-versus
-vertebrae
-vertical
-vertigo
-very
-vessel
-vest
-veteran
-veto
-vexingly
-viability
-viable
-vibes
-vice
-vicinity
-victory
-video
-viewable
-viewer
-viewing
-viewless
-viewpoint
-vigorous
-village
-villain
-vindicate
-vineyard
-vintage
-violate
-violation
-violator
-violet
-violin
-viper
-viral
-virtual
-virtuous
-virus
-visa
-viscosity
-viscous
-viselike
-visible
-visibly
-vision
-visiting
-visitor
-visor
-vista
-vitality
-vitalize
-vitally
-vitamins
-vivacious
-vividly
-vividness
-vixen
-vocalist
-vocalize
-vocally
-vocation
-voice
-voicing
-void
-volatile
-volley
-voltage
-volumes
-voter
-voting
-voucher
-vowed
-vowel
-voyage
-wackiness
-wad
-wafer
-waffle
-waged
-wager
-wages
-waggle
-wagon
-wake
-waking
-walk
-walmart
-walnut
-walrus
-waltz
-wand
-wannabe
-wanted
-wanting
-wasabi
-washable
-washbasin
-washboard
-washbowl
-washcloth
-washday
-washed
-washer
-washhouse
-washing
-washout
-washroom
-washstand
-washtub
-wasp
-wasting
-watch
-water
-waviness
-waving
-wavy
-whacking
-whacky
-wham
-wharf
-wheat
-whenever
-whiff
-whimsical
-whinny
-whiny
-whisking
-whoever
-whole
-whomever
-whoopee
-whooping
-whoops
-why
-wick
-widely
-widen
-widget
-widow
-width
-wieldable
-wielder
-wife
-wifi
-wikipedia
-wildcard
-wildcat
-wilder
-wildfire
-wildfowl
-wildland
-wildlife
-wildly
-wildness
-willed
-willfully
-willing
-willow
-willpower
-wilt
-wimp
-wince
-wincing
-wind
-wing
-winking
-winner
-winnings
-winter
-wipe
-wired
-wireless
-wiring
-wiry
-wisdom
-wise
-wish
-wisplike
-wispy
-wistful
-wizard
-wobble
-wobbling
-wobbly
-wok
-wolf
-wolverine
-womanhood
-womankind
-womanless
-womanlike
-womanly
-womb
-woof
-wooing
-wool
-woozy
-word
-work
-worried
-worrier
-worrisome
-worry
-worsening
-worshiper
-worst
-wound
-woven
-wow
-wrangle
-wrath
-wreath
-wreckage
-wrecker
-wrecking
-wrench
-wriggle
-wriggly
-wrinkle
-wrinkly
-wrist
-writing
-written
-wrongdoer
-wronged
-wrongful
-wrongly
-wrongness
-wrought
-xbox
-xerox
-yahoo
-yam
-yanking
-yapping
-yard
-yarn
-yeah
-yearbook
-yearling
-yearly
-yearning
-yeast
-yelling
-yelp
-yen
-yesterday
-yiddish
-yield
-yin
-yippee
-yo-yo
-yodel
-yoga
-yogurt
-yonder
-yoyo
-yummy
-zap
-zealous
-zebra
-zen
-zeppelin
-zero
-zestfully
-zesty
-zigzagged
-zipfile
-zipping
-zippy
-zips
-zit
-zodiac
-zombie
-zone
-zoning
-zookeeper
-zoologist
-zoology
-zoom
diff --git a/desktop/src/onionshare/__init__.py b/desktop/src/onionshare/__init__.py
index e69de29b..a86c6bbc 100644
--- a/desktop/src/onionshare/__init__.py
+++ b/desktop/src/onionshare/__init__.py
@@ -0,0 +1 @@
+from .__main__ import *
diff --git a/desktop/onionshare_gui/__init__.py b/desktop/src/onionshare/__main__.py
index 070d03a4..f0d9a3b0 100644
--- a/desktop/onionshare_gui/__init__.py
+++ b/desktop/src/onionshare/__main__.py
@@ -29,7 +29,7 @@ import psutil
import getpass
from PyQt5 import QtCore, QtWidgets
-from onionshare.common import Common
+from onionshare_cli.common import Common
from .gui_common import GuiCommon
from .widgets import Alert
diff --git a/desktop/onionshare_gui/gui_common.py b/desktop/src/onionshare/gui_common.py
index 2e350cca..1de82b3d 100644
--- a/desktop/onionshare_gui/gui_common.py
+++ b/desktop/src/onionshare/gui_common.py
@@ -19,9 +19,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import os
+import inspect
-from onionshare import strings
-from onionshare.onion import Onion
+from . import strings
+from onionshare_cli.onion import Onion
class GuiCommon:
@@ -46,7 +47,7 @@ class GuiCommon:
self.common.load_settings()
# Load strings
- strings.load_strings(self.common)
+ strings.load_strings(self.common, self.get_resource_path("locale"))
# Start the Onion
self.onion = Onion(common)
@@ -327,3 +328,14 @@ class GuiCommon:
font-style: italic;
}""",
}
+
+ @staticmethod
+ def get_resource_path(filename):
+ """
+ Returns the absolute path of a resource
+ """
+ resources_path = os.path.join(
+ os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))),
+ "resources",
+ )
+ return os.path.join(resources_path, filename)
diff --git a/desktop/onionshare_gui/main_window.py b/desktop/src/onionshare/main_window.py
index 6bd84b8a..26cad2fa 100644
--- a/desktop/onionshare_gui/main_window.py
+++ b/desktop/src/onionshare/main_window.py
@@ -20,14 +20,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
from PyQt5 import QtCore, QtWidgets, QtGui
-from onionshare import strings
-from onionshare.web import Web
+from onionshare_cli.web import Web
+from . import strings
from .tor_connection_dialog import TorConnectionDialog
from .settings_dialog import SettingsDialog
from .widgets import Alert
from .update_checker import UpdateThread
from .tab_widget import TabWidget
+from .gui_common import GuiCommon
class MainWindow(QtWidgets.QMainWindow):
@@ -45,9 +46,7 @@ class MainWindow(QtWidgets.QMainWindow):
self.setMinimumWidth(1040)
self.setMinimumHeight(700)
self.setWindowTitle("OnionShare")
- self.setWindowIcon(
- QtGui.QIcon(self.common.get_resource_path("images/logo.png"))
- )
+ self.setWindowIcon(QtGui.QIcon(GuiCommon.get_resource_path("images/logo.png")))
# System tray
menu = QtWidgets.QMenu()
@@ -63,11 +62,11 @@ class MainWindow(QtWidgets.QMainWindow):
# The convention is Mac systray icons are always grayscale
if self.common.platform == "Darwin":
self.system_tray.setIcon(
- QtGui.QIcon(self.common.get_resource_path("images/logo_grayscale.png"))
+ QtGui.QIcon(GuiCommon.get_resource_path("images/logo_grayscale.png"))
)
else:
self.system_tray.setIcon(
- QtGui.QIcon(self.common.get_resource_path("images/logo.png"))
+ QtGui.QIcon(GuiCommon.get_resource_path("images/logo.png"))
)
self.system_tray.setContextMenu(menu)
self.system_tray.show()
@@ -80,13 +79,13 @@ class MainWindow(QtWidgets.QMainWindow):
# Server status indicator icons
self.status_bar.server_status_image_stopped = QtGui.QImage(
- self.common.get_resource_path("images/server_stopped.png")
+ GuiCommon.get_resource_path("images/server_stopped.png")
)
self.status_bar.server_status_image_working = QtGui.QImage(
- self.common.get_resource_path("images/server_working.png")
+ GuiCommon.get_resource_path("images/server_working.png")
)
self.status_bar.server_status_image_started = QtGui.QImage(
- self.common.get_resource_path("images/server_started.png")
+ GuiCommon.get_resource_path("images/server_started.png")
)
# Server status indicator on the status bar
@@ -112,7 +111,7 @@ class MainWindow(QtWidgets.QMainWindow):
self.settings_button.setDefault(False)
self.settings_button.setFixedSize(40, 50)
self.settings_button.setIcon(
- QtGui.QIcon(self.common.get_resource_path("images/settings.png"))
+ QtGui.QIcon(GuiCommon.get_resource_path("images/settings.png"))
)
self.settings_button.clicked.connect(self.open_settings)
self.settings_button.setStyleSheet(self.common.gui.css["settings_button"])
diff --git a/desktop/share/images/close_tab.png b/desktop/src/onionshare/resources/images/close_tab.png
index a7984a6d..a7984a6d 100644
--- a/desktop/share/images/close_tab.png
+++ b/desktop/src/onionshare/resources/images/close_tab.png
Binary files differ
diff --git a/desktop/share/images/file_delete.png b/desktop/src/onionshare/resources/images/file_delete.png
index b9057df5..b9057df5 100644
--- a/desktop/share/images/file_delete.png
+++ b/desktop/src/onionshare/resources/images/file_delete.png
Binary files differ
diff --git a/desktop/share/images/history_completed.png b/desktop/src/onionshare/resources/images/history_completed.png
index e68fe5a2..e68fe5a2 100644
--- a/desktop/share/images/history_completed.png
+++ b/desktop/src/onionshare/resources/images/history_completed.png
Binary files differ
diff --git a/desktop/share/images/history_completed_none.png b/desktop/src/onionshare/resources/images/history_completed_none.png
index 8dbd6939..8dbd6939 100644
--- a/desktop/share/images/history_completed_none.png
+++ b/desktop/src/onionshare/resources/images/history_completed_none.png
Binary files differ
diff --git a/desktop/share/images/history_in_progress.png b/desktop/src/onionshare/resources/images/history_in_progress.png
index 19694659..19694659 100644
--- a/desktop/share/images/history_in_progress.png
+++ b/desktop/src/onionshare/resources/images/history_in_progress.png
Binary files differ
diff --git a/desktop/share/images/history_in_progress_none.png b/desktop/src/onionshare/resources/images/history_in_progress_none.png
index 2d61dba4..2d61dba4 100644
--- a/desktop/share/images/history_in_progress_none.png
+++ b/desktop/src/onionshare/resources/images/history_in_progress_none.png
Binary files differ
diff --git a/desktop/share/images/history_requests.png b/desktop/src/onionshare/resources/images/history_requests.png
index 4965744d..4965744d 100644
--- a/desktop/share/images/history_requests.png
+++ b/desktop/src/onionshare/resources/images/history_requests.png
Binary files differ
diff --git a/desktop/share/images/history_requests_none.png b/desktop/src/onionshare/resources/images/history_requests_none.png
index 93a71ef3..93a71ef3 100644
--- a/desktop/share/images/history_requests_none.png
+++ b/desktop/src/onionshare/resources/images/history_requests_none.png
Binary files differ
diff --git a/desktop/share/images/info.png b/desktop/src/onionshare/resources/images/info.png
index 4be4e65e..4be4e65e 100644
--- a/desktop/share/images/info.png
+++ b/desktop/src/onionshare/resources/images/info.png
Binary files differ
diff --git a/desktop/share/images/logo.png b/desktop/src/onionshare/resources/images/logo.png
index 43884c1f..43884c1f 100644
--- a/desktop/share/images/logo.png
+++ b/desktop/src/onionshare/resources/images/logo.png
Binary files differ
diff --git a/desktop/share/images/logo_grayscale.png b/desktop/src/onionshare/resources/images/logo_grayscale.png
index 950d9ff6..950d9ff6 100644
--- a/desktop/share/images/logo_grayscale.png
+++ b/desktop/src/onionshare/resources/images/logo_grayscale.png
Binary files differ
diff --git a/desktop/share/images/logo_text.png b/desktop/src/onionshare/resources/images/logo_text.png
index 3b584acd..3b584acd 100644
--- a/desktop/share/images/logo_text.png
+++ b/desktop/src/onionshare/resources/images/logo_text.png
Binary files differ
diff --git a/desktop/share/images/logo_transparent.png b/desktop/src/onionshare/resources/images/logo_transparent.png
index 1e8ed196..1e8ed196 100644
--- a/desktop/share/images/logo_transparent.png
+++ b/desktop/src/onionshare/resources/images/logo_transparent.png
Binary files differ
diff --git a/desktop/share/images/mode_chat.png b/desktop/src/onionshare/resources/images/mode_chat.png
index 33114364..33114364 100644
--- a/desktop/share/images/mode_chat.png
+++ b/desktop/src/onionshare/resources/images/mode_chat.png
Binary files differ
diff --git a/desktop/share/images/mode_chat.svg b/desktop/src/onionshare/resources/images/mode_chat.svg
index 335e9cf4..335e9cf4 100644
--- a/desktop/share/images/mode_chat.svg
+++ b/desktop/src/onionshare/resources/images/mode_chat.svg
diff --git a/desktop/share/images/mode_new_tab_chat.png b/desktop/src/onionshare/resources/images/mode_new_tab_chat.png
index 50759d64..50759d64 100644
--- a/desktop/share/images/mode_new_tab_chat.png
+++ b/desktop/src/onionshare/resources/images/mode_new_tab_chat.png
Binary files differ
diff --git a/desktop/share/images/mode_new_tab_receive.png b/desktop/src/onionshare/resources/images/mode_new_tab_receive.png
index 9db809be..9db809be 100644
--- a/desktop/share/images/mode_new_tab_receive.png
+++ b/desktop/src/onionshare/resources/images/mode_new_tab_receive.png
Binary files differ
diff --git a/desktop/share/images/mode_new_tab_share.png b/desktop/src/onionshare/resources/images/mode_new_tab_share.png
index 92973175..92973175 100644
--- a/desktop/share/images/mode_new_tab_share.png
+++ b/desktop/src/onionshare/resources/images/mode_new_tab_share.png
Binary files differ
diff --git a/desktop/share/images/mode_new_tab_website.png b/desktop/src/onionshare/resources/images/mode_new_tab_website.png
index 86b45f66..86b45f66 100644
--- a/desktop/share/images/mode_new_tab_website.png
+++ b/desktop/src/onionshare/resources/images/mode_new_tab_website.png
Binary files differ
diff --git a/desktop/share/images/mode_receive.png b/desktop/src/onionshare/resources/images/mode_receive.png
index d57aa409..d57aa409 100644
--- a/desktop/share/images/mode_receive.png
+++ b/desktop/src/onionshare/resources/images/mode_receive.png
Binary files differ
diff --git a/desktop/share/images/mode_receive.svg b/desktop/src/onionshare/resources/images/mode_receive.svg
index 5a0a29fd..5a0a29fd 100644
--- a/desktop/share/images/mode_receive.svg
+++ b/desktop/src/onionshare/resources/images/mode_receive.svg
diff --git a/desktop/share/images/mode_share.png b/desktop/src/onionshare/resources/images/mode_share.png
index ec287db4..ec287db4 100644
--- a/desktop/share/images/mode_share.png
+++ b/desktop/src/onionshare/resources/images/mode_share.png
Binary files differ
diff --git a/desktop/share/images/mode_share.svg b/desktop/src/onionshare/resources/images/mode_share.svg
index 9fb97c65..9fb97c65 100644
--- a/desktop/share/images/mode_share.svg
+++ b/desktop/src/onionshare/resources/images/mode_share.svg
diff --git a/desktop/share/images/mode_website.png b/desktop/src/onionshare/resources/images/mode_website.png
index 37a556d9..37a556d9 100644
--- a/desktop/share/images/mode_website.png
+++ b/desktop/src/onionshare/resources/images/mode_website.png
Binary files differ
diff --git a/desktop/share/images/mode_website.svg b/desktop/src/onionshare/resources/images/mode_website.svg
index 1a80846f..1a80846f 100644
--- a/desktop/share/images/mode_website.svg
+++ b/desktop/src/onionshare/resources/images/mode_website.svg
diff --git a/desktop/share/images/open_folder.png b/desktop/src/onionshare/resources/images/open_folder.png
index 0a734c41..0a734c41 100644
--- a/desktop/share/images/open_folder.png
+++ b/desktop/src/onionshare/resources/images/open_folder.png
Binary files differ
diff --git a/desktop/share/images/persistent_enabled.png b/desktop/src/onionshare/resources/images/persistent_enabled.png
index 6c295db5..6c295db5 100644
--- a/desktop/share/images/persistent_enabled.png
+++ b/desktop/src/onionshare/resources/images/persistent_enabled.png
Binary files differ
diff --git a/desktop/share/images/receive_icon_toggle.png b/desktop/src/onionshare/resources/images/receive_icon_toggle.png
index 846ececb..846ececb 100644
--- a/desktop/share/images/receive_icon_toggle.png
+++ b/desktop/src/onionshare/resources/images/receive_icon_toggle.png
Binary files differ
diff --git a/desktop/share/images/receive_icon_toggle_selected.png b/desktop/src/onionshare/resources/images/receive_icon_toggle_selected.png
index 127ce208..127ce208 100644
--- a/desktop/share/images/receive_icon_toggle_selected.png
+++ b/desktop/src/onionshare/resources/images/receive_icon_toggle_selected.png
Binary files differ
diff --git a/desktop/share/images/receive_icon_transparent.png b/desktop/src/onionshare/resources/images/receive_icon_transparent.png
index 99207097..99207097 100644
--- a/desktop/share/images/receive_icon_transparent.png
+++ b/desktop/src/onionshare/resources/images/receive_icon_transparent.png
Binary files differ
diff --git a/desktop/share/images/server_started.png b/desktop/src/onionshare/resources/images/server_started.png
index 9c0c3176..9c0c3176 100644
--- a/desktop/share/images/server_started.png
+++ b/desktop/src/onionshare/resources/images/server_started.png
Binary files differ
diff --git a/desktop/share/images/server_stopped.png b/desktop/src/onionshare/resources/images/server_stopped.png
index 5c5b2ec0..5c5b2ec0 100644
--- a/desktop/share/images/server_stopped.png
+++ b/desktop/src/onionshare/resources/images/server_stopped.png
Binary files differ
diff --git a/desktop/share/images/server_working.png b/desktop/src/onionshare/resources/images/server_working.png
index e5c8b318..e5c8b318 100644
--- a/desktop/share/images/server_working.png
+++ b/desktop/src/onionshare/resources/images/server_working.png
Binary files differ
diff --git a/desktop/share/images/settings.png b/desktop/src/onionshare/resources/images/settings.png
index b6f8fa55..b6f8fa55 100644
--- a/desktop/share/images/settings.png
+++ b/desktop/src/onionshare/resources/images/settings.png
Binary files differ
diff --git a/desktop/share/images/share_icon_toggle.png b/desktop/src/onionshare/resources/images/share_icon_toggle.png
index 87303c9f..87303c9f 100644
--- a/desktop/share/images/share_icon_toggle.png
+++ b/desktop/src/onionshare/resources/images/share_icon_toggle.png
Binary files differ
diff --git a/desktop/share/images/share_icon_toggle_selected.png b/desktop/src/onionshare/resources/images/share_icon_toggle_selected.png
index 0ba52cff..0ba52cff 100644
--- a/desktop/share/images/share_icon_toggle_selected.png
+++ b/desktop/src/onionshare/resources/images/share_icon_toggle_selected.png
Binary files differ
diff --git a/desktop/share/images/share_icon_transparent.png b/desktop/src/onionshare/resources/images/share_icon_transparent.png
index 3648c3fb..3648c3fb 100644
--- a/desktop/share/images/share_icon_transparent.png
+++ b/desktop/src/onionshare/resources/images/share_icon_transparent.png
Binary files differ
diff --git a/desktop/share/locale/af.json b/desktop/src/onionshare/resources/locale/af.json
index c9e641f5..c9e641f5 100644
--- a/desktop/share/locale/af.json
+++ b/desktop/src/onionshare/resources/locale/af.json
diff --git a/desktop/share/locale/am.json b/desktop/src/onionshare/resources/locale/am.json
index b787a617..b787a617 100644
--- a/desktop/share/locale/am.json
+++ b/desktop/src/onionshare/resources/locale/am.json
diff --git a/desktop/share/locale/ar.json b/desktop/src/onionshare/resources/locale/ar.json
index f1451cc7..f1451cc7 100644
--- a/desktop/share/locale/ar.json
+++ b/desktop/src/onionshare/resources/locale/ar.json
diff --git a/desktop/share/locale/bg.json b/desktop/src/onionshare/resources/locale/bg.json
index 9abe5623..9abe5623 100644
--- a/desktop/share/locale/bg.json
+++ b/desktop/src/onionshare/resources/locale/bg.json
diff --git a/desktop/share/locale/bn.json b/desktop/src/onionshare/resources/locale/bn.json
index 7d43b3bb..7d43b3bb 100644
--- a/desktop/share/locale/bn.json
+++ b/desktop/src/onionshare/resources/locale/bn.json
diff --git a/desktop/share/locale/ca.json b/desktop/src/onionshare/resources/locale/ca.json
index 62b69618..62b69618 100644
--- a/desktop/share/locale/ca.json
+++ b/desktop/src/onionshare/resources/locale/ca.json
diff --git a/desktop/share/locale/cs.json b/desktop/src/onionshare/resources/locale/cs.json
index 7a5a4749..7a5a4749 100644
--- a/desktop/share/locale/cs.json
+++ b/desktop/src/onionshare/resources/locale/cs.json
diff --git a/desktop/share/locale/da.json b/desktop/src/onionshare/resources/locale/da.json
index 3ecb16c2..3ecb16c2 100644
--- a/desktop/share/locale/da.json
+++ b/desktop/src/onionshare/resources/locale/da.json
diff --git a/desktop/share/locale/de.json b/desktop/src/onionshare/resources/locale/de.json
index 1194a677..1194a677 100644
--- a/desktop/share/locale/de.json
+++ b/desktop/src/onionshare/resources/locale/de.json
diff --git a/desktop/share/locale/el.json b/desktop/src/onionshare/resources/locale/el.json
index b4645890..b4645890 100644
--- a/desktop/share/locale/el.json
+++ b/desktop/src/onionshare/resources/locale/el.json
diff --git a/desktop/share/locale/en.json b/desktop/src/onionshare/resources/locale/en.json
index b56c52d8..b56c52d8 100644
--- a/desktop/share/locale/en.json
+++ b/desktop/src/onionshare/resources/locale/en.json
diff --git a/desktop/share/locale/eo.json b/desktop/src/onionshare/resources/locale/eo.json
index ea3cef9c..ea3cef9c 100644
--- a/desktop/share/locale/eo.json
+++ b/desktop/src/onionshare/resources/locale/eo.json
diff --git a/desktop/share/locale/es.json b/desktop/src/onionshare/resources/locale/es.json
index e101ae5b..e101ae5b 100644
--- a/desktop/share/locale/es.json
+++ b/desktop/src/onionshare/resources/locale/es.json
diff --git a/desktop/share/locale/fa.json b/desktop/src/onionshare/resources/locale/fa.json
index 5fe578e0..5fe578e0 100644
--- a/desktop/share/locale/fa.json
+++ b/desktop/src/onionshare/resources/locale/fa.json
diff --git a/desktop/share/locale/fi.json b/desktop/src/onionshare/resources/locale/fi.json
index c0a6f098..c0a6f098 100644
--- a/desktop/share/locale/fi.json
+++ b/desktop/src/onionshare/resources/locale/fi.json
diff --git a/desktop/share/locale/fr.json b/desktop/src/onionshare/resources/locale/fr.json
index 6f356121..6f356121 100644
--- a/desktop/share/locale/fr.json
+++ b/desktop/src/onionshare/resources/locale/fr.json
diff --git a/desktop/share/locale/ga.json b/desktop/src/onionshare/resources/locale/ga.json
index 76e9d64a..76e9d64a 100644
--- a/desktop/share/locale/ga.json
+++ b/desktop/src/onionshare/resources/locale/ga.json
diff --git a/desktop/share/locale/gu.json b/desktop/src/onionshare/resources/locale/gu.json
index 15c7790d..15c7790d 100644
--- a/desktop/share/locale/gu.json
+++ b/desktop/src/onionshare/resources/locale/gu.json
diff --git a/desktop/share/locale/he.json b/desktop/src/onionshare/resources/locale/he.json
index c0965d19..c0965d19 100644
--- a/desktop/share/locale/he.json
+++ b/desktop/src/onionshare/resources/locale/he.json
diff --git a/desktop/share/locale/hi.json b/desktop/src/onionshare/resources/locale/hi.json
index 9cfc310d..9cfc310d 100644
--- a/desktop/share/locale/hi.json
+++ b/desktop/src/onionshare/resources/locale/hi.json
diff --git a/desktop/share/locale/hr.json b/desktop/src/onionshare/resources/locale/hr.json
index a5f56283..a5f56283 100644
--- a/desktop/share/locale/hr.json
+++ b/desktop/src/onionshare/resources/locale/hr.json
diff --git a/desktop/share/locale/hu.json b/desktop/src/onionshare/resources/locale/hu.json
index 7d0f6766..7d0f6766 100644
--- a/desktop/share/locale/hu.json
+++ b/desktop/src/onionshare/resources/locale/hu.json
diff --git a/desktop/share/locale/id.json b/desktop/src/onionshare/resources/locale/id.json
index 44adac8b..44adac8b 100644
--- a/desktop/share/locale/id.json
+++ b/desktop/src/onionshare/resources/locale/id.json
diff --git a/desktop/share/locale/is.json b/desktop/src/onionshare/resources/locale/is.json
index 5a04b251..5a04b251 100644
--- a/desktop/share/locale/is.json
+++ b/desktop/src/onionshare/resources/locale/is.json
diff --git a/desktop/share/locale/it.json b/desktop/src/onionshare/resources/locale/it.json
index f6e25927..f6e25927 100644
--- a/desktop/share/locale/it.json
+++ b/desktop/src/onionshare/resources/locale/it.json
diff --git a/desktop/share/locale/ja.json b/desktop/src/onionshare/resources/locale/ja.json
index 95ee43b7..95ee43b7 100644
--- a/desktop/share/locale/ja.json
+++ b/desktop/src/onionshare/resources/locale/ja.json
diff --git a/desktop/share/locale/ka.json b/desktop/src/onionshare/resources/locale/ka.json
index 9c41ed9f..9c41ed9f 100644
--- a/desktop/share/locale/ka.json
+++ b/desktop/src/onionshare/resources/locale/ka.json
diff --git a/desktop/share/locale/km.json b/desktop/src/onionshare/resources/locale/km.json
index 44dfde5a..44dfde5a 100644
--- a/desktop/share/locale/km.json
+++ b/desktop/src/onionshare/resources/locale/km.json
diff --git a/desktop/share/locale/ko.json b/desktop/src/onionshare/resources/locale/ko.json
index adda3a69..adda3a69 100644
--- a/desktop/share/locale/ko.json
+++ b/desktop/src/onionshare/resources/locale/ko.json
diff --git a/desktop/share/locale/lg.json b/desktop/src/onionshare/resources/locale/lg.json
index 96b5a0d1..96b5a0d1 100644
--- a/desktop/share/locale/lg.json
+++ b/desktop/src/onionshare/resources/locale/lg.json
diff --git a/desktop/share/locale/lt.json b/desktop/src/onionshare/resources/locale/lt.json
index c1493f77..c1493f77 100644
--- a/desktop/share/locale/lt.json
+++ b/desktop/src/onionshare/resources/locale/lt.json
diff --git a/desktop/share/locale/mk.json b/desktop/src/onionshare/resources/locale/mk.json
index b389c2a0..b389c2a0 100644
--- a/desktop/share/locale/mk.json
+++ b/desktop/src/onionshare/resources/locale/mk.json
diff --git a/desktop/share/locale/ms.json b/desktop/src/onionshare/resources/locale/ms.json
index 8fda843a..8fda843a 100644
--- a/desktop/share/locale/ms.json
+++ b/desktop/src/onionshare/resources/locale/ms.json
diff --git a/desktop/share/locale/nb_NO.json b/desktop/src/onionshare/resources/locale/nb_NO.json
index 51a2ee76..51a2ee76 100644
--- a/desktop/share/locale/nb_NO.json
+++ b/desktop/src/onionshare/resources/locale/nb_NO.json
diff --git a/desktop/share/locale/nl.json b/desktop/src/onionshare/resources/locale/nl.json
index 352e282f..352e282f 100644
--- a/desktop/share/locale/nl.json
+++ b/desktop/src/onionshare/resources/locale/nl.json
diff --git a/desktop/share/locale/pa.json b/desktop/src/onionshare/resources/locale/pa.json
index 165e297b..165e297b 100644
--- a/desktop/share/locale/pa.json
+++ b/desktop/src/onionshare/resources/locale/pa.json
diff --git a/desktop/share/locale/pl.json b/desktop/src/onionshare/resources/locale/pl.json
index cced6241..cced6241 100644
--- a/desktop/share/locale/pl.json
+++ b/desktop/src/onionshare/resources/locale/pl.json
diff --git a/desktop/share/locale/pt_BR.json b/desktop/src/onionshare/resources/locale/pt_BR.json
index 41d8b6ed..41d8b6ed 100644
--- a/desktop/share/locale/pt_BR.json
+++ b/desktop/src/onionshare/resources/locale/pt_BR.json
diff --git a/desktop/share/locale/pt_PT.json b/desktop/src/onionshare/resources/locale/pt_PT.json
index 2bf59741..2bf59741 100644
--- a/desktop/share/locale/pt_PT.json
+++ b/desktop/src/onionshare/resources/locale/pt_PT.json
diff --git a/desktop/share/locale/ro.json b/desktop/src/onionshare/resources/locale/ro.json
index d4e43f04..d4e43f04 100644
--- a/desktop/share/locale/ro.json
+++ b/desktop/src/onionshare/resources/locale/ro.json
diff --git a/desktop/share/locale/ru.json b/desktop/src/onionshare/resources/locale/ru.json
index 4f38ff37..4f38ff37 100644
--- a/desktop/share/locale/ru.json
+++ b/desktop/src/onionshare/resources/locale/ru.json
diff --git a/desktop/share/locale/sl.json b/desktop/src/onionshare/resources/locale/sl.json
index 70e04baa..70e04baa 100644
--- a/desktop/share/locale/sl.json
+++ b/desktop/src/onionshare/resources/locale/sl.json
diff --git a/desktop/share/locale/sn.json b/desktop/src/onionshare/resources/locale/sn.json
index 4ee1a03b..4ee1a03b 100644
--- a/desktop/share/locale/sn.json
+++ b/desktop/src/onionshare/resources/locale/sn.json
diff --git a/desktop/share/locale/sr_Latn.json b/desktop/src/onionshare/resources/locale/sr_Latn.json
index 18dfad44..18dfad44 100644
--- a/desktop/share/locale/sr_Latn.json
+++ b/desktop/src/onionshare/resources/locale/sr_Latn.json
diff --git a/desktop/share/locale/sv.json b/desktop/src/onionshare/resources/locale/sv.json
index 0015652a..0015652a 100644
--- a/desktop/share/locale/sv.json
+++ b/desktop/src/onionshare/resources/locale/sv.json
diff --git a/desktop/share/locale/sw.json b/desktop/src/onionshare/resources/locale/sw.json
index 74707f3c..74707f3c 100644
--- a/desktop/share/locale/sw.json
+++ b/desktop/src/onionshare/resources/locale/sw.json
diff --git a/desktop/share/locale/te.json b/desktop/src/onionshare/resources/locale/te.json
index 9f738318..9f738318 100644
--- a/desktop/share/locale/te.json
+++ b/desktop/src/onionshare/resources/locale/te.json
diff --git a/desktop/share/locale/tr.json b/desktop/src/onionshare/resources/locale/tr.json
index ac652abf..ac652abf 100644
--- a/desktop/share/locale/tr.json
+++ b/desktop/src/onionshare/resources/locale/tr.json
diff --git a/desktop/share/locale/uk.json b/desktop/src/onionshare/resources/locale/uk.json
index 418b3f47..418b3f47 100644
--- a/desktop/share/locale/uk.json
+++ b/desktop/src/onionshare/resources/locale/uk.json
diff --git a/desktop/share/locale/wo.json b/desktop/src/onionshare/resources/locale/wo.json
index 89d732b3..89d732b3 100644
--- a/desktop/share/locale/wo.json
+++ b/desktop/src/onionshare/resources/locale/wo.json
diff --git a/desktop/share/locale/yo.json b/desktop/src/onionshare/resources/locale/yo.json
index 96b5a0d1..96b5a0d1 100644
--- a/desktop/share/locale/yo.json
+++ b/desktop/src/onionshare/resources/locale/yo.json
diff --git a/desktop/share/locale/zh_Hans.json b/desktop/src/onionshare/resources/locale/zh_Hans.json
index 072499a1..072499a1 100644
--- a/desktop/share/locale/zh_Hans.json
+++ b/desktop/src/onionshare/resources/locale/zh_Hans.json
diff --git a/desktop/share/locale/zh_Hant.json b/desktop/src/onionshare/resources/locale/zh_Hant.json
index 20fd1a90..20fd1a90 100644
--- a/desktop/share/locale/zh_Hant.json
+++ b/desktop/src/onionshare/resources/locale/zh_Hant.json
diff --git a/desktop/onionshare_gui/settings_dialog.py b/desktop/src/onionshare/settings_dialog.py
index dd711e59..f22e2464 100644
--- a/desktop/onionshare_gui/settings_dialog.py
+++ b/desktop/src/onionshare/settings_dialog.py
@@ -25,13 +25,15 @@ import datetime
import re
import os
-from onionshare import strings, common
-from onionshare.settings import Settings
-from onionshare.onion import *
+from onionshare_cli import common
+from onionshare_cli.settings import Settings
+from onionshare_cli.onion import *
+from . import strings
from .widgets import Alert
from .update_checker import *
from .tor_connection_dialog import TorConnectionDialog
+from .gui_common import GuiCommon
class SettingsDialog(QtWidgets.QDialog):
@@ -50,9 +52,7 @@ class SettingsDialog(QtWidgets.QDialog):
self.setModal(True)
self.setWindowTitle(strings._("gui_settings_window_title"))
- self.setWindowIcon(
- QtGui.QIcon(self.common.get_resource_path("images/logo.png"))
- )
+ self.setWindowIcon(QtGui.QIcon(GuiCommon.get_resource_path("images/logo.png")))
self.system = platform.system()
diff --git a/desktop/onionshare/strings.py b/desktop/src/onionshare/strings.py
index 7e1756e3..ce9207da 100644
--- a/desktop/onionshare/strings.py
+++ b/desktop/src/onionshare/strings.py
@@ -25,7 +25,7 @@ strings = {}
translations = {}
-def load_strings(common):
+def load_strings(common, locale_dir):
"""
Loads translated strings and fallback to English
if the translation does not exist.
@@ -35,7 +35,6 @@ def load_strings(common):
# Load all translations
translations = {}
for locale in common.settings.available_locales:
- locale_dir = common.get_resource_path("locale")
filename = os.path.join(locale_dir, f"{locale}.json")
with open(filename, encoding="utf-8") as f:
translations[locale] = json.load(f)
diff --git a/desktop/onionshare_gui/tab/__init__.py b/desktop/src/onionshare/tab/__init__.py
index 162d13aa..162d13aa 100644
--- a/desktop/onionshare_gui/tab/__init__.py
+++ b/desktop/src/onionshare/tab/__init__.py
diff --git a/desktop/onionshare_gui/tab/mode/__init__.py b/desktop/src/onionshare/tab/mode/__init__.py
index 65e46444..06500aea 100644
--- a/desktop/onionshare_gui/tab/mode/__init__.py
+++ b/desktop/src/onionshare/tab/mode/__init__.py
@@ -20,13 +20,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
from PyQt5 import QtCore, QtWidgets, QtGui
-from onionshare import strings
-from onionshare.common import AutoStopTimer
+from onionshare_cli.common import AutoStopTimer
from .history import IndividualFileHistoryItem
from .mode_settings_widget import ModeSettingsWidget
from ..server_status import ServerStatus
+from ... import strings
from ...threads import OnionThread, AutoStartTimer
from ...widgets import Alert
diff --git a/desktop/onionshare_gui/tab/mode/chat_mode/__init__.py b/desktop/src/onionshare/tab/mode/chat_mode/__init__.py
index 4de9f387..f96e2e77 100644
--- a/desktop/onionshare_gui/tab/mode/chat_mode/__init__.py
+++ b/desktop/src/onionshare/tab/mode/chat_mode/__init__.py
@@ -24,13 +24,14 @@ import string
from PyQt5 import QtCore, QtWidgets, QtGui
-from onionshare import strings
-from onionshare.onion import *
-from onionshare.common import Common
-from onionshare.web import Web
+from onionshare_cli.onion import *
+from onionshare_cli.common import Common
+from onionshare_cli.web import Web
from .. import Mode
+from .... import strings
from ....widgets import MinimumWidthWidget
+from ....gui_common import GuiCommon
class ChatMode(Mode):
@@ -52,7 +53,7 @@ class ChatMode(Mode):
self.image_label = QtWidgets.QLabel()
self.image_label.setPixmap(
QtGui.QPixmap.fromImage(
- QtGui.QImage(self.common.get_resource_path("images/mode_chat.png"))
+ QtGui.QImage(GuiCommon.get_resource_path("images/mode_chat.png"))
)
)
self.image_label.setFixedSize(300, 300)
diff --git a/desktop/onionshare_gui/tab/mode/file_selection.py b/desktop/src/onionshare/tab/mode/file_selection.py
index a3212c96..faefda0e 100644
--- a/desktop/onionshare_gui/tab/mode/file_selection.py
+++ b/desktop/src/onionshare/tab/mode/file_selection.py
@@ -21,9 +21,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
from PyQt5 import QtCore, QtWidgets, QtGui
-from onionshare import strings
-
+from ... import strings
from ...widgets import Alert, AddFileDialog
+from ...gui_common import GuiCommon
class DropHereWidget(QtWidgets.QWidget):
@@ -40,7 +40,7 @@ class DropHereWidget(QtWidgets.QWidget):
self.image_label = QtWidgets.QLabel(parent=self)
self.image_label.setPixmap(
QtGui.QPixmap.fromImage(
- QtGui.QImage(self.common.get_resource_path(image_filename))
+ QtGui.QImage(GuiCommon.get_resource_path(image_filename))
)
)
self.image_label.setAlignment(QtCore.Qt.AlignCenter)
@@ -291,7 +291,7 @@ class FileList(QtWidgets.QListWidget):
item.item_button.setDefault(False)
item.item_button.setFlat(True)
item.item_button.setIcon(
- QtGui.QIcon(self.common.get_resource_path("images/file_delete.png"))
+ QtGui.QIcon(GuiCommon.get_resource_path("images/file_delete.png"))
)
item.item_button.clicked.connect(delete_item)
item.item_button.setSizePolicy(
diff --git a/desktop/onionshare_gui/tab/mode/history.py b/desktop/src/onionshare/tab/mode/history.py
index feb671ef..caa36387 100644
--- a/desktop/onionshare_gui/tab/mode/history.py
+++ b/desktop/src/onionshare/tab/mode/history.py
@@ -24,8 +24,9 @@ import os
from datetime import datetime
from PyQt5 import QtCore, QtWidgets, QtGui
-from onionshare import strings
+from ... import strings
from ...widgets import Alert
+from ...gui_common import GuiCommon
class HistoryItem(QtWidgets.QWidget):
@@ -199,7 +200,7 @@ class ReceiveHistoryItemFile(QtWidgets.QWidget):
# Folder button
folder_pixmap = QtGui.QPixmap.fromImage(
- QtGui.QImage(self.common.get_resource_path("images/open_folder.png"))
+ QtGui.QImage(GuiCommon.get_resource_path("images/open_folder.png"))
)
folder_icon = QtGui.QIcon(folder_pixmap)
self.folder_button = QtWidgets.QPushButton()
@@ -699,9 +700,9 @@ class History(QtWidgets.QWidget):
Update the 'completed' widget.
"""
if self.completed_count == 0:
- image = self.common.get_resource_path("images/history_completed_none.png")
+ image = GuiCommon.get_resource_path("images/history_completed_none.png")
else:
- image = self.common.get_resource_path("images/history_completed.png")
+ image = GuiCommon.get_resource_path("images/history_completed.png")
self.completed_label.setText(f'<img src="{image}" /> {self.completed_count}')
self.completed_label.setToolTip(
strings._("history_completed_tooltip").format(self.completed_count)
@@ -712,9 +713,9 @@ class History(QtWidgets.QWidget):
Update the 'in progress' widget.
"""
if self.in_progress_count == 0:
- image = self.common.get_resource_path("images/history_in_progress_none.png")
+ image = GuiCommon.get_resource_path("images/history_in_progress_none.png")
else:
- image = self.common.get_resource_path("images/history_in_progress.png")
+ image = GuiCommon.get_resource_path("images/history_in_progress.png")
self.in_progress_label.setText(
f'<img src="{image}" /> {self.in_progress_count}'
@@ -728,9 +729,9 @@ class History(QtWidgets.QWidget):
Update the 'web requests' widget.
"""
if self.requests_count == 0:
- image = self.common.get_resource_path("images/history_requests_none.png")
+ image = GuiCommon.get_resource_path("images/history_requests_none.png")
else:
- image = self.common.get_resource_path("images/history_requests.png")
+ image = GuiCommon.get_resource_path("images/history_requests.png")
self.requests_label.setText(f'<img src="{image}" /> {self.requests_count}')
self.requests_label.setToolTip(
diff --git a/desktop/onionshare_gui/tab/mode/mode_settings_widget.py b/desktop/src/onionshare/tab/mode/mode_settings_widget.py
index 7c3b4667..8c070897 100644
--- a/desktop/onionshare_gui/tab/mode/mode_settings_widget.py
+++ b/desktop/src/onionshare/tab/mode/mode_settings_widget.py
@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
from PyQt5 import QtCore, QtWidgets
-from onionshare import strings
+from ... import strings
class ModeSettingsWidget(QtWidgets.QWidget):
diff --git a/desktop/onionshare_gui/tab/mode/receive_mode/__init__.py b/desktop/src/onionshare/tab/mode/receive_mode/__init__.py
index e6ca6f70..35b4b7e9 100644
--- a/desktop/onionshare_gui/tab/mode/receive_mode/__init__.py
+++ b/desktop/src/onionshare/tab/mode/receive_mode/__init__.py
@@ -21,12 +21,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
from PyQt5 import QtCore, QtWidgets, QtGui
-from onionshare import strings
-from onionshare.web import Web
+from onionshare_cli.web import Web
from ..history import History, ToggleHistory, ReceiveHistoryItem
from .. import Mode
+from .... import strings
from ....widgets import MinimumWidthWidget, Alert
+from ....gui_common import GuiCommon
class ReceiveMode(Mode):
@@ -45,7 +46,7 @@ class ReceiveMode(Mode):
self.image_label = QtWidgets.QLabel()
self.image_label.setPixmap(
QtGui.QPixmap.fromImage(
- QtGui.QImage(self.common.get_resource_path("images/mode_receive.png"))
+ QtGui.QImage(GuiCommon.get_resource_path("images/mode_receive.png"))
)
)
self.image_label.setFixedSize(250, 250)
@@ -87,7 +88,7 @@ class ReceiveMode(Mode):
self.common,
QtGui.QPixmap.fromImage(
QtGui.QImage(
- self.common.get_resource_path("images/receive_icon_transparent.png")
+ GuiCommon.get_resource_path("images/receive_icon_transparent.png")
)
),
strings._("gui_receive_mode_no_files"),
@@ -100,11 +101,9 @@ class ReceiveMode(Mode):
self.common,
self,
self.history,
+ QtGui.QIcon(GuiCommon.get_resource_path("images/receive_icon_toggle.png")),
QtGui.QIcon(
- self.common.get_resource_path("images/receive_icon_toggle.png")
- ),
- QtGui.QIcon(
- self.common.get_resource_path("images/receive_icon_toggle_selected.png")
+ GuiCommon.get_resource_path("images/receive_icon_toggle_selected.png")
),
)
@@ -140,7 +139,6 @@ class ReceiveMode(Mode):
row_layout.addWidget(self.server_status)
row_layout.addStretch()
-
# Column layout
self.column_layout = QtWidgets.QHBoxLayout()
self.column_layout.addLayout(row_layout)
diff --git a/desktop/onionshare_gui/tab/mode/share_mode/__init__.py b/desktop/src/onionshare/tab/mode/share_mode/__init__.py
index ab4e320c..3c34ab46 100644
--- a/desktop/onionshare_gui/tab/mode/share_mode/__init__.py
+++ b/desktop/src/onionshare/tab/mode/share_mode/__init__.py
@@ -21,16 +21,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
from PyQt5 import QtCore, QtWidgets, QtGui
-from onionshare import strings
-from onionshare.onion import *
-from onionshare.common import Common
-from onionshare.web import Web
+from onionshare_cli.onion import *
+from onionshare_cli.common import Common
+from onionshare_cli.web import Web
-from ..file_selection import FileSelection
from .threads import CompressThread
from .. import Mode
+from ..file_selection import FileSelection
from ..history import History, ToggleHistory, ShareHistoryItem
+from .... import strings
from ....widgets import Alert, MinimumWidthWidget
+from ....gui_common import GuiCommon
class ShareMode(Mode):
@@ -102,7 +103,7 @@ class ShareMode(Mode):
self.common,
QtGui.QPixmap.fromImage(
QtGui.QImage(
- self.common.get_resource_path("images/share_icon_transparent.png")
+ GuiCommon.get_resource_path("images/share_icon_transparent.png")
)
),
strings._("gui_share_mode_no_files"),
@@ -130,9 +131,9 @@ class ShareMode(Mode):
self.common,
self,
self.history,
- QtGui.QIcon(self.common.get_resource_path("images/share_icon_toggle.png")),
+ QtGui.QIcon(GuiCommon.get_resource_path("images/share_icon_toggle.png")),
QtGui.QIcon(
- self.common.get_resource_path("images/share_icon_toggle_selected.png")
+ GuiCommon.get_resource_path("images/share_icon_toggle_selected.png")
),
)
diff --git a/desktop/onionshare_gui/tab/mode/share_mode/threads.py b/desktop/src/onionshare/tab/mode/share_mode/threads.py
index 500b6525..500b6525 100644
--- a/desktop/onionshare_gui/tab/mode/share_mode/threads.py
+++ b/desktop/src/onionshare/tab/mode/share_mode/threads.py
diff --git a/desktop/onionshare_gui/tab/mode/website_mode/__init__.py b/desktop/src/onionshare/tab/mode/website_mode/__init__.py
index 96fcdea3..6d3d62a7 100644
--- a/desktop/onionshare_gui/tab/mode/website_mode/__init__.py
+++ b/desktop/src/onionshare/tab/mode/website_mode/__init__.py
@@ -24,15 +24,16 @@ import string
from PyQt5 import QtCore, QtWidgets, QtGui
-from onionshare import strings
-from onionshare.onion import *
-from onionshare.common import Common
-from onionshare.web import Web
+from onionshare_cli.onion import *
+from onionshare_cli.common import Common
+from onionshare_cli.web import Web
-from ..file_selection import FileSelection
from .. import Mode
+from ..file_selection import FileSelection
from ..history import History, ToggleHistory
+from .... import strings
from ....widgets import Alert, MinimumWidthWidget
+from ....gui_common import GuiCommon
class WebsiteMode(Mode):
@@ -102,7 +103,7 @@ class WebsiteMode(Mode):
self.common,
QtGui.QPixmap.fromImage(
QtGui.QImage(
- self.common.get_resource_path("images/share_icon_transparent.png")
+ GuiCommon.get_resource_path("images/share_icon_transparent.png")
)
),
strings._("gui_website_mode_no_files"),
@@ -133,9 +134,9 @@ class WebsiteMode(Mode):
self.common,
self,
self.history,
- QtGui.QIcon(self.common.get_resource_path("images/share_icon_toggle.png")),
+ QtGui.QIcon(GuiCommon.get_resource_path("images/share_icon_toggle.png")),
QtGui.QIcon(
- self.common.get_resource_path("images/share_icon_toggle_selected.png")
+ GuiCommon.get_resource_path("images/share_icon_toggle_selected.png")
),
)
diff --git a/desktop/onionshare_gui/tab/server_status.py b/desktop/src/onionshare/tab/server_status.py
index efa50669..d14aa41c 100644
--- a/desktop/onionshare_gui/tab/server_status.py
+++ b/desktop/src/onionshare/tab/server_status.py
@@ -23,10 +23,10 @@ import textwrap
from PyQt5 import QtCore, QtWidgets, QtGui
from PyQt5.QtCore import Qt
-from onionshare import strings
-
+from .. import strings
from ..widgets import Alert
from ..widgets import QRCodeDialog
+from ..gui_common import GuiCommon
class ServerStatus(QtWidgets.QWidget):
@@ -175,7 +175,7 @@ class ServerStatus(QtWidgets.QWidget):
"""
self.url_description.show()
- info_image = self.common.get_resource_path("images/info.png")
+ info_image = GuiCommon.get_resource_path("images/info.png")
if self.mode == self.common.gui.MODE_SHARE:
self.url_description.setText(
diff --git a/desktop/onionshare_gui/tab/tab.py b/desktop/src/onionshare/tab/tab.py
index ae987729..b3f9533d 100644
--- a/desktop/onionshare_gui/tab/tab.py
+++ b/desktop/src/onionshare/tab/tab.py
@@ -21,10 +21,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import queue
from PyQt5 import QtCore, QtWidgets, QtGui
-from onionshare import strings
-from onionshare.onionshare import OnionShare
-from onionshare.web import Web
-from onionshare.mode_settings import ModeSettings
+from onionshare_cli.onionshare import OnionShare
+from onionshare_cli.web import Web
+from onionshare_cli.mode_settings import ModeSettings
from .mode.share_mode import ShareMode
from .mode.receive_mode import ReceiveMode
@@ -33,6 +32,8 @@ from .mode.chat_mode import ChatMode
from .server_status import ServerStatus
+from .. import strings
+from ..gui_common import GuiCommon
from ..widgets import Alert
@@ -47,7 +48,7 @@ class NewTabButton(QtWidgets.QPushButton):
self.image_label = QtWidgets.QLabel(parent=self)
self.image_label.setPixmap(
QtGui.QPixmap.fromImage(
- QtGui.QImage(self.common.get_resource_path(image_filename))
+ QtGui.QImage(GuiCommon.get_resource_path(image_filename))
)
)
self.image_label.setAlignment(QtCore.Qt.AlignCenter)
@@ -110,7 +111,7 @@ class Tab(QtWidgets.QWidget):
self.image_label = QtWidgets.QLabel()
self.image_label.setPixmap(
QtGui.QPixmap.fromImage(
- QtGui.QImage(self.common.get_resource_path("images/logo_text.png"))
+ QtGui.QImage(GuiCommon.get_resource_path("images/logo_text.png"))
)
)
self.image_label.setFixedSize(160, 40)
@@ -196,7 +197,7 @@ class Tab(QtWidgets.QWidget):
self.persistent_image_label.setPixmap(
QtGui.QPixmap.fromImage(
QtGui.QImage(
- self.common.get_resource_path("images/persistent_enabled.png")
+ GuiCommon.get_resource_path("images/persistent_enabled.png")
)
)
)
diff --git a/desktop/onionshare_gui/tab_widget.py b/desktop/src/onionshare/tab_widget.py
index fe80b95d..911fbc2e 100644
--- a/desktop/onionshare_gui/tab_widget.py
+++ b/desktop/src/onionshare/tab_widget.py
@@ -20,11 +20,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
from PyQt5 import QtCore, QtWidgets, QtGui
-from onionshare import strings
-from onionshare.mode_settings import ModeSettings
+from onionshare_cli.mode_settings import ModeSettings
+from . import strings
from .tab import Tab
from .threads import EventHandlerThread
+from .gui_common import GuiCommon
class TabWidget(QtWidgets.QTabWidget):
@@ -162,7 +163,7 @@ class TabWidget(QtWidgets.QTabWidget):
close_button.setFlat(True)
close_button.setFixedWidth(40)
close_button.setIcon(
- QtGui.QIcon(self.common.get_resource_path("images/close_tab.png"))
+ QtGui.QIcon(GuiCommon.get_resource_path("images/close_tab.png"))
)
close_button.clicked.connect(close_tab)
self.tabBar().setTabButton(index, QtWidgets.QTabBar.RightSide, close_button)
@@ -180,7 +181,7 @@ class TabWidget(QtWidgets.QTabWidget):
def change_icon(self, tab_id, icon_path):
index = self.indexOf(self.tabs[tab_id])
- self.setTabIcon(index, QtGui.QIcon(self.common.get_resource_path(icon_path)))
+ self.setTabIcon(index, QtGui.QIcon(GuiCommon.get_resource_path(icon_path)))
def change_persistent(self, tab_id, is_persistent):
index = self.indexOf(self.tabs[tab_id])
diff --git a/desktop/onionshare_gui/threads.py b/desktop/src/onionshare/threads.py
index d1e6ea3c..bbd8b640 100644
--- a/desktop/onionshare_gui/threads.py
+++ b/desktop/src/onionshare/threads.py
@@ -23,8 +23,7 @@ import json
import os
from PyQt5 import QtCore
-from onionshare import strings
-from onionshare.onion import (
+from onionshare_cli.onion import (
TorTooOld,
TorErrorInvalidSetting,
TorErrorAutomatic,
@@ -37,6 +36,8 @@ from onionshare.onion import (
BundledTorTimeout,
)
+from . import strings
+
class OnionThread(QtCore.QThread):
"""
diff --git a/desktop/onionshare_gui/tor_connection_dialog.py b/desktop/src/onionshare/tor_connection_dialog.py
index 02868625..7cd09eff 100644
--- a/desktop/onionshare_gui/tor_connection_dialog.py
+++ b/desktop/src/onionshare/tor_connection_dialog.py
@@ -20,9 +20,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
from PyQt5 import QtCore, QtWidgets, QtGui
-from onionshare import strings
-from onionshare.onion import *
+from onionshare_cli.onion import *
+from . import strings
+from .gui_common import GuiCommon
from .widgets import Alert
@@ -46,9 +47,7 @@ class TorConnectionDialog(QtWidgets.QProgressDialog):
self.common.log("TorConnectionDialog", "__init__")
self.setWindowTitle("OnionShare")
- self.setWindowIcon(
- QtGui.QIcon(self.common.get_resource_path("images/logo.png"))
- )
+ self.setWindowIcon(QtGui.QIcon(GuiCommon.get_resource_path("images/logo.png")))
self.setModal(True)
self.setFixedSize(400, 150)
diff --git a/desktop/onionshare_gui/update_checker.py b/desktop/src/onionshare/update_checker.py
index 699ad952..982c4cb8 100644
--- a/desktop/onionshare_gui/update_checker.py
+++ b/desktop/src/onionshare/update_checker.py
@@ -23,10 +23,10 @@ import datetime, time, socket, re, platform
import socks
from distutils.version import LooseVersion as Version
-from onionshare.settings import Settings
-from onionshare.onion import Onion
+from onionshare_cli.settings import Settings
+from onionshare_cli.onion import Onion
-from onionshare import strings
+from . import strings
class UpdateCheckerCheckError(Exception):
diff --git a/desktop/onionshare_gui/widgets.py b/desktop/src/onionshare/widgets.py
index 846ff4e7..8ed84c96 100644
--- a/desktop/onionshare_gui/widgets.py
+++ b/desktop/src/onionshare/widgets.py
@@ -19,9 +19,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from PyQt5 import QtCore, QtWidgets, QtGui
-from onionshare import strings
import qrcode
+from . import strings
+from .gui_common import GuiCommon
+
class Alert(QtWidgets.QMessageBox):
"""
@@ -43,9 +45,7 @@ class Alert(QtWidgets.QMessageBox):
self.common.log("Alert", "__init__")
self.setWindowTitle("OnionShare")
- self.setWindowIcon(
- QtGui.QIcon(self.common.get_resource_path("images/logo.png"))
- )
+ self.setWindowIcon(QtGui.QIcon(GuiCommon.get_resource_path("images/logo.png")))
self.setText(message)
self.setIcon(icon)
self.setStandardButtons(buttons)
@@ -145,9 +145,7 @@ class QRCodeDialog(QtWidgets.QDialog):
self.qr_label_description.setWordWrap(True)
self.setWindowTitle(strings._("gui_qr_code_dialog_title"))
- self.setWindowIcon(
- QtGui.QIcon(self.common.get_resource_path("images/logo.png"))
- )
+ self.setWindowIcon(QtGui.QIcon(GuiCommon.get_resource_path("images/logo.png")))
layout = QtWidgets.QVBoxLayout(self)
layout.addWidget(self.qr_label)
layout.addWidget(self.qr_label_description)
diff --git a/desktop/stdeb.cfg b/desktop/stdeb.cfg
deleted file mode 100644
index dd59abf6..00000000
--- a/desktop/stdeb.cfg
+++ /dev/null
@@ -1,6 +0,0 @@
-[DEFAULT]
-Package3: onionshare
-Depends3: python3, python3-flask, python3-flask-httpauth, python3-stem, python3-pyqt5, python3-crypto, python3-socks, python3-distutils, python3-nautilus, tor, obfs4proxy, python3-psutil, python3-socketio, python3-flask-socketio, python3-qrcode
-Build-Depends: python3, python3-all, python3-pytest, python3-requests, python3-flask, python3-flask-httpauth, python3-stem, python3-pyqt5, python3-crypto, python3-socks, python3-distutils, python3-psutil, python3-socketio, python3-flask-socketio, python3-qrcode
-Suite: disco
-X-Python3-Version: >= 3.6
diff --git a/desktop/tests/conftest.py b/desktop/tests/conftest.py
index ba0f1e72..688d026c 100644
--- a/desktop/tests/conftest.py
+++ b/desktop/tests/conftest.py
@@ -12,7 +12,7 @@ import tempfile
import pytest
-from onionshare import common, web, settings, strings
+from onionshare_cli import common, web, settings
# The temporary directory for CLI tests
@@ -21,9 +21,6 @@ test_temp_dir = None
def pytest_addoption(parser):
parser.addoption(
- "--rungui", action="store_true", default=False, help="run GUI tests"
- )
- parser.addoption(
"--runtor", action="store_true", default=False, help="run tor tests"
)
@@ -36,13 +33,6 @@ def pytest_collection_modifyitems(config, items):
if "tor" in item.keywords:
item.add_marker(skip_tor)
- if not config.getoption("--rungui"):
- # --rungui given in cli: do not skip GUI tests
- skip_gui = pytest.mark.skip(reason="need --rungui option to run")
- for item in items:
- if "gui" in item.keywords:
- item.add_marker(skip_gui)
-
@pytest.fixture
def temp_dir():
@@ -205,5 +195,4 @@ def common_obj():
def settings_obj(sys_onionshare_dev_mode, platform_linux):
_common = common.Common()
_common.version = "DUMMY_VERSION_1.2.3"
- strings.load_strings(_common)
return settings.Settings(_common)
diff --git a/desktop/tests/gui_base_test.py b/desktop/tests/gui_base_test.py
index 2b9bcd99..d70791cb 100644
--- a/desktop/tests/gui_base_test.py
+++ b/desktop/tests/gui_base_test.py
@@ -12,16 +12,16 @@ import platform
from PyQt5 import QtCore, QtTest, QtWidgets
+from onionshare_cli.common import Common
+from onionshare_cli.settings import Settings
+from onionshare_cli.onion import Onion
+from onionshare_cli.web import Web
+
+from onionshare import Application, MainWindow, GuiCommon
+from onionshare.tab.mode.share_mode import ShareMode
+from onionshare.tab.mode.receive_mode import ReceiveMode
+from onionshare.tab.mode.website_mode import WebsiteMode
from onionshare import strings
-from onionshare.common import Common
-from onionshare.settings import Settings
-from onionshare.onion import Onion
-from onionshare.web import Web
-
-from onionshare_gui import Application, MainWindow, GuiCommon
-from onionshare_gui.tab.mode.share_mode import ShareMode
-from onionshare_gui.tab.mode.receive_mode import ReceiveMode
-from onionshare_gui.tab.mode.website_mode import WebsiteMode
class GuiBaseTest(unittest.TestCase):
diff --git a/desktop/tests/pytest.ini b/desktop/tests/pytest.ini
deleted file mode 100644
index 393e0dd8..00000000
--- a/desktop/tests/pytest.ini
+++ /dev/null
@@ -1,4 +0,0 @@
-[pytest]
-markers =
- gui: marks tests as a GUI test
- tor: marks tests as a Tor GUI test \ No newline at end of file
diff --git a/desktop/tests/run.bat b/desktop/tests/run.bat
index 5db3f14a..38f06e9f 100644
--- a/desktop/tests/run.bat
+++ b/desktop/tests/run.bat
@@ -1,9 +1,4 @@
-pytest -vvv tests\test_cli.py
-pytest -vvv tests\test_cli_common.py
-pytest -vvv tests\test_cli_settings.py
-pytest -vvv tests\test_cli_strings.py
-pytest -vvv tests\test_cli_web.py
-pytest -vvv --rungui tests\test_gui_tabs.py
-pytest -vvv --rungui tests\test_gui_share.py
-pytest -vvv --rungui tests\test_gui_receive.py
-pytest -vvv --rungui tests\test_gui_website.py
+pytest -vvv --no-qt-log tests\test_gui_tabs.py
+pytest -vvv --no-qt-log tests\test_gui_share.py
+pytest -vvv --no-qt-log tests\test_gui_receive.py
+pytest -vvv --no-qt-log tests\test_gui_website.py
diff --git a/desktop/tests/run.sh b/desktop/tests/run.sh
index 184dfc16..a621efd1 100755
--- a/desktop/tests/run.sh
+++ b/desktop/tests/run.sh
@@ -1,26 +1,5 @@
#!/bin/bash
-
-# The script runs python tests
-# Firstly, all CLI tests are run
-# Then, all the GUI tests are run individually
-# to avoid segmentation fault
-
-PARAMS=""
-
-while [ ! $# -eq 0 ]
-do
- case "$1" in
- --rungui)
- PARAMS="$PARAMS --rungui"
- ;;
- --runtor)
- PARAMS="$PARAMS --runtor"
- ;;
- esac
- shift
-done
-
-pytest $PARAMS -vvv ./tests/test_cli*.py || exit 1
-for filename in ./tests/test_gui_*.py; do
- pytest $PARAMS -vvv --no-qt-log $filename || exit 1
-done
+pytest -vvv --no-qt-log tests/test_gui_tabs.py
+pytest -vvv --no-qt-log tests/test_gui_share.py
+pytest -vvv --no-qt-log tests/test_gui_receive.py
+pytest -vvv --no-qt-log tests/test_gui_website.py
diff --git a/desktop/tests/test_cli.py b/desktop/tests/test_cli.py
deleted file mode 100644
index 7cc61853..00000000
--- a/desktop/tests/test_cli.py
+++ /dev/null
@@ -1,56 +0,0 @@
-import os
-
-import pytest
-
-from onionshare import OnionShare
-from onionshare.common import Common
-from onionshare.mode_settings import ModeSettings
-
-
-class MyOnion:
- def __init__(self):
- self.auth_string = "TestHidServAuth"
- self.private_key = ""
- self.scheduled_key = None
-
- @staticmethod
- def start_onion_service(self, mode_settings_obj, await_publication=True, save_scheduled_key=False):
- return "test_service_id.onion"
-
-
-@pytest.fixture
-def onionshare_obj():
- common = Common()
- return OnionShare(common, MyOnion())
-
-
-@pytest.fixture
-def mode_settings_obj():
- common = Common()
- return ModeSettings(common)
-
-
-class TestOnionShare:
- def test_init(self, onionshare_obj):
- assert onionshare_obj.hidserv_dir is None
- assert onionshare_obj.onion_host is None
- assert onionshare_obj.cleanup_filenames == []
- assert onionshare_obj.local_only is False
-
- def test_start_onion_service(self, onionshare_obj, mode_settings_obj):
- onionshare_obj.start_onion_service(mode_settings_obj)
- assert 17600 <= onionshare_obj.port <= 17650
- assert onionshare_obj.onion_host == "test_service_id.onion"
-
- def test_start_onion_service_local_only(self, onionshare_obj, mode_settings_obj):
- onionshare_obj.local_only = True
- onionshare_obj.start_onion_service(mode_settings_obj)
- assert onionshare_obj.onion_host == "127.0.0.1:{}".format(onionshare_obj.port)
-
- def test_cleanup(self, onionshare_obj, temp_dir_1024, temp_file_1024):
- onionshare_obj.cleanup_filenames = [temp_dir_1024, temp_file_1024]
- onionshare_obj.cleanup()
-
- assert os.path.exists(temp_dir_1024) is False
- assert os.path.exists(temp_dir_1024) is False
- assert onionshare_obj.cleanup_filenames == []
diff --git a/desktop/tests/test_cli_common.py b/desktop/tests/test_cli_common.py
deleted file mode 100644
index b60d22d7..00000000
--- a/desktop/tests/test_cli_common.py
+++ /dev/null
@@ -1,275 +0,0 @@
-import contextlib
-import inspect
-import io
-import os
-import random
-import re
-import socket
-import sys
-import zipfile
-
-import pytest
-
-PASSWORD_REGEX = re.compile(r"^([a-z]+)(-[a-z]+)?-([a-z]+)(-[a-z]+)?$")
-
-
-# TODO: Improve the Common tests to test it all as a single class
-
-
-class TestBuildPassword:
- @pytest.mark.parametrize(
- "test_input,expected",
- (
- # VALID, two lowercase words, separated by a hyphen
- ("syrup-enzyme", True),
- ("caution-friday", True),
- # VALID, two lowercase words, with one hyphenated compound word
- ("drop-down-thimble", True),
- ("unmixed-yo-yo", True),
- # VALID, two lowercase hyphenated compound words, separated by hyphen
- ("yo-yo-drop-down", True),
- ("felt-tip-t-shirt", True),
- ("hello-world", True),
- # INVALID
- ("Upper-Case", False),
- ("digits-123", False),
- ("too-many-hyphens-", False),
- ("symbols-!@#$%", False),
- ),
- )
- def test_build_password_regex(self, test_input, expected):
- """ Test that `PASSWORD_REGEX` accounts for the following patterns
-
- There are a few hyphenated words in `wordlist.txt`:
- * drop-down
- * felt-tip
- * t-shirt
- * yo-yo
-
- These words cause a few extra potential password patterns:
- * word-word
- * hyphenated-word-word
- * word-hyphenated-word
- * hyphenated-word-hyphenated-word
- """
-
- assert bool(PASSWORD_REGEX.match(test_input)) == expected
-
- def test_build_password_unique(self, common_obj, sys_onionshare_dev_mode):
- assert common_obj.build_password() != common_obj.build_password()
-
-
-class TestDirSize:
- def test_temp_dir_size(self, common_obj, temp_dir_1024_delete):
- """ dir_size() should return the total size (in bytes) of all files
- in a particular directory.
- """
-
- assert common_obj.dir_size(temp_dir_1024_delete) == 1024
-
-
-class TestEstimatedTimeRemaining:
- @pytest.mark.parametrize(
- "test_input,expected",
- (
- ((2, 676, 12), "8h14m16s"),
- ((14, 1049, 30), "1h26m15s"),
- ((21, 450, 1), "33m42s"),
- ((31, 1115, 80), "11m39s"),
- ((336, 989, 32), "2m12s"),
- ((603, 949, 38), "36s"),
- ((971, 1009, 83), "1s"),
- ),
- )
- def test_estimated_time_remaining(
- self, common_obj, test_input, expected, time_time_100
- ):
- assert common_obj.estimated_time_remaining(*test_input) == expected
-
- @pytest.mark.parametrize(
- "test_input",
- (
- (10, 20, 100), # if `time_elapsed == 0`
- (0, 37, 99), # if `download_rate == 0`
- ),
- )
- def test_raises_zero_division_error(self, common_obj, test_input, time_time_100):
- with pytest.raises(ZeroDivisionError):
- common_obj.estimated_time_remaining(*test_input)
-
-
-class TestFormatSeconds:
- @pytest.mark.parametrize(
- "test_input,expected",
- (
- (0, "0s"),
- (26, "26s"),
- (60, "1m"),
- (947.35, "15m47s"),
- (1847, "30m47s"),
- (2193.94, "36m34s"),
- (3600, "1h"),
- (13426.83, "3h43m47s"),
- (16293, "4h31m33s"),
- (18392.14, "5h6m32s"),
- (86400, "1d"),
- (129674, "1d12h1m14s"),
- (56404.12, "15h40m4s"),
- ),
- )
- def test_format_seconds(self, common_obj, test_input, expected):
- assert common_obj.format_seconds(test_input) == expected
-
- # TODO: test negative numbers?
- @pytest.mark.parametrize("test_input", ("string", lambda: None, [], {}, set()))
- def test_invalid_input_types(self, common_obj, test_input):
- with pytest.raises(TypeError):
- common_obj.format_seconds(test_input)
-
-
-class TestGetAvailablePort:
- @pytest.mark.parametrize(
- "port_min,port_max",
- ((random.randint(1024, 1500), random.randint(1800, 2048)) for _ in range(50)),
- )
- def test_returns_an_open_port(self, common_obj, port_min, port_max):
- """ get_available_port() should return an open port within the range """
-
- port = common_obj.get_available_port(port_min, port_max)
- assert port_min <= port <= port_max
- with socket.socket() as tmpsock:
- tmpsock.bind(("127.0.0.1", port))
-
-
-class TestGetPlatform:
- def test_darwin(self, platform_darwin, common_obj):
- assert common_obj.platform == "Darwin"
-
- def test_linux(self, platform_linux, common_obj):
- assert common_obj.platform == "Linux"
-
- def test_windows(self, platform_windows, common_obj):
- assert common_obj.platform == "Windows"
-
-
-# TODO: double-check these tests
-class TestGetResourcePath:
- def test_onionshare_dev_mode(self, common_obj, sys_onionshare_dev_mode):
- prefix = os.path.join(
- os.path.dirname(
- os.path.dirname(
- os.path.abspath(inspect.getfile(inspect.currentframe()))
- )
- ),
- "share",
- )
- assert common_obj.get_resource_path(
- os.path.join(prefix, "test_filename")
- ) == os.path.join(prefix, "test_filename")
-
- def test_linux(self, common_obj, platform_linux, sys_argv_sys_prefix):
- prefix = os.path.join(sys.prefix, "share", "onionshare")
- assert common_obj.get_resource_path(
- os.path.join(prefix, "test_filename")
- ) == os.path.join(prefix, "test_filename")
-
- def test_frozen_darwin(self, common_obj, platform_darwin, sys_frozen, sys_meipass):
- prefix = os.path.join(sys._MEIPASS, "share")
- assert common_obj.get_resource_path(
- os.path.join(prefix, "test_filename")
- ) == os.path.join(prefix, "test_filename")
-
-
-class TestGetTorPaths:
- @pytest.mark.skipif(sys.platform != "Darwin", reason="requires MacOS")
- def test_get_tor_paths_darwin(
- self, platform_darwin, common_obj, sys_frozen, sys_meipass
- ):
- base_path = os.path.dirname(
- os.path.dirname(os.path.dirname(common_obj.get_resource_path("")))
- )
- tor_path = os.path.join(base_path, "Resources", "Tor", "tor")
- tor_geo_ip_file_path = os.path.join(base_path, "Resources", "Tor", "geoip")
- tor_geo_ipv6_file_path = os.path.join(base_path, "Resources", "Tor", "geoip6")
- obfs4proxy_file_path = os.path.join(base_path, "Resources", "Tor", "obfs4proxy")
- assert common_obj.get_tor_paths() == (
- tor_path,
- tor_geo_ip_file_path,
- tor_geo_ipv6_file_path,
- obfs4proxy_file_path,
- )
-
- @pytest.mark.skipif(sys.platform != "Linux", reason="requires Linux")
- def test_get_tor_paths_linux(self, platform_linux, common_obj):
- (
- tor_path,
- tor_geo_ip_file_path,
- tor_geo_ipv6_file_path,
- _, # obfs4proxy is optional
- ) = common_obj.get_tor_paths()
-
- assert os.path.basename(tor_path) == "tor"
- assert (
- tor_geo_ip_file_path == "/usr/share/tor/geoip"
- or tor_geo_ip_file_path == "/usr/local/share/tor/geoip"
- )
- assert (
- tor_geo_ipv6_file_path == "/usr/share/tor/geoip6"
- or tor_geo_ipv6_file_path == "/usr/local/share/tor/geoip6"
- )
-
- @pytest.mark.skipif(sys.platform != "win32", reason="requires Windows")
- def test_get_tor_paths_windows(self, platform_windows, common_obj, sys_frozen):
- base_path = os.path.join(
- os.path.dirname(os.path.dirname(common_obj.get_resource_path(""))), "tor"
- )
- tor_path = os.path.join(os.path.join(base_path, "Tor"), "tor.exe")
- obfs4proxy_file_path = os.path.join(
- os.path.join(base_path, "Tor"), "obfs4proxy.exe"
- )
- tor_geo_ip_file_path = os.path.join(
- os.path.join(os.path.join(base_path, "Data"), "Tor"), "geoip"
- )
- tor_geo_ipv6_file_path = os.path.join(
- os.path.join(os.path.join(base_path, "Data"), "Tor"), "geoip6"
- )
- assert common_obj.get_tor_paths() == (
- tor_path,
- tor_geo_ip_file_path,
- tor_geo_ipv6_file_path,
- obfs4proxy_file_path,
- )
-
-
-class TestHumanReadableFilesize:
- @pytest.mark.parametrize(
- "test_input,expected",
- (
- (1024 ** 0, "1.0 B"),
- (1024 ** 1, "1.0 KiB"),
- (1024 ** 2, "1.0 MiB"),
- (1024 ** 3, "1.0 GiB"),
- (1024 ** 4, "1.0 TiB"),
- (1024 ** 5, "1.0 PiB"),
- (1024 ** 6, "1.0 EiB"),
- (1024 ** 7, "1.0 ZiB"),
- (1024 ** 8, "1.0 YiB"),
- ),
- )
- def test_human_readable_filesize(self, common_obj, test_input, expected):
- assert common_obj.human_readable_filesize(test_input) == expected
-
-
-class TestLog:
- def test_output(self, common_obj, time_strftime):
- common_obj.verbose = True
-
- # From: https://stackoverflow.com/questions/1218933
- with io.StringIO() as buf, contextlib.redirect_stdout(buf):
- common_obj.log("TestModule", "dummy_func")
- common_obj.log("TestModule", "dummy_func", "TEST_MSG")
- output = buf.getvalue()
-
- line_one, line_two, _ = output.split("\n")
- assert line_one == "[Jun 06 2013 11:05:00] TestModule.dummy_func"
- assert line_two == "[Jun 06 2013 11:05:00] TestModule.dummy_func: TEST_MSG"
diff --git a/desktop/tests/test_cli_settings.py b/desktop/tests/test_cli_settings.py
deleted file mode 100644
index 83b51e54..00000000
--- a/desktop/tests/test_cli_settings.py
+++ /dev/null
@@ -1,149 +0,0 @@
-import json
-import os
-import tempfile
-import sys
-
-import pytest
-
-from onionshare import common, settings, strings
-
-
-@pytest.fixture
-def settings_obj(sys_onionshare_dev_mode, platform_linux):
- _common = common.Common()
- _common.version = "DUMMY_VERSION_1.2.3"
- return settings.Settings(_common)
-
-
-class TestSettings:
- def test_init(self, settings_obj):
- expected_settings = {
- "version": "DUMMY_VERSION_1.2.3",
- "connection_type": "bundled",
- "control_port_address": "127.0.0.1",
- "control_port_port": 9051,
- "socks_address": "127.0.0.1",
- "socks_port": 9050,
- "socket_file_path": "/var/run/tor/control",
- "auth_type": "no_auth",
- "auth_password": "",
- "use_autoupdate": True,
- "autoupdate_timestamp": None,
- "no_bridges": True,
- "tor_bridges_use_obfs4": False,
- "tor_bridges_use_meek_lite_azure": False,
- "tor_bridges_use_custom_bridges": "",
- "persistent_tabs": [],
- }
- for key in settings_obj._settings:
- # Skip locale, it will not always default to the same thing
- if key != "locale":
- assert settings_obj._settings[key] == settings_obj.default_settings[key]
- assert settings_obj._settings[key] == expected_settings[key]
-
- def test_fill_in_defaults(self, settings_obj):
- del settings_obj._settings["version"]
- settings_obj.fill_in_defaults()
- assert settings_obj._settings["version"] == "DUMMY_VERSION_1.2.3"
-
- def test_load(self, temp_dir, settings_obj):
- custom_settings = {
- "version": "CUSTOM_VERSION",
- "socks_port": 9999,
- "use_stealth": True,
- }
- tmp_file, tmp_file_path = tempfile.mkstemp(dir=temp_dir)
- with open(tmp_file, "w") as f:
- json.dump(custom_settings, f)
- settings_obj.filename = tmp_file_path
- settings_obj.load()
-
- assert settings_obj._settings["version"] == "CUSTOM_VERSION"
- assert settings_obj._settings["socks_port"] == 9999
- assert settings_obj._settings["use_stealth"] is True
-
- os.remove(tmp_file_path)
- assert os.path.exists(tmp_file_path) is False
-
- def test_save(self, monkeypatch, temp_dir, settings_obj):
- monkeypatch.setattr(strings, "_", lambda _: "")
-
- settings_filename = "default_settings.json"
- new_temp_dir = tempfile.mkdtemp(dir=temp_dir)
- settings_path = os.path.join(new_temp_dir, settings_filename)
- settings_obj.filename = settings_path
- settings_obj.save()
- with open(settings_path, "r") as f:
- settings = json.load(f)
-
- assert settings_obj._settings == settings
-
- os.remove(settings_path)
- assert os.path.exists(settings_path) is False
-
- def test_get(self, settings_obj):
- assert settings_obj.get("version") == "DUMMY_VERSION_1.2.3"
- assert settings_obj.get("connection_type") == "bundled"
- assert settings_obj.get("control_port_address") == "127.0.0.1"
- assert settings_obj.get("control_port_port") == 9051
- assert settings_obj.get("socks_address") == "127.0.0.1"
- assert settings_obj.get("socks_port") == 9050
- assert settings_obj.get("socket_file_path") == "/var/run/tor/control"
- assert settings_obj.get("auth_type") == "no_auth"
- assert settings_obj.get("auth_password") == ""
- assert settings_obj.get("use_autoupdate") is True
- assert settings_obj.get("autoupdate_timestamp") is None
- assert settings_obj.get("autoupdate_timestamp") is None
- assert settings_obj.get("no_bridges") is True
- assert settings_obj.get("tor_bridges_use_obfs4") is False
- assert settings_obj.get("tor_bridges_use_meek_lite_azure") is False
- assert settings_obj.get("tor_bridges_use_custom_bridges") == ""
-
- def test_set_version(self, settings_obj):
- settings_obj.set("version", "CUSTOM_VERSION")
- assert settings_obj._settings["version"] == "CUSTOM_VERSION"
-
- def test_set_control_port_port(self, settings_obj):
- settings_obj.set("control_port_port", 999)
- assert settings_obj._settings["control_port_port"] == 999
-
- settings_obj.set("control_port_port", "NON_INTEGER")
- assert settings_obj._settings["control_port_port"] == 9051
-
- def test_set_socks_port(self, settings_obj):
- settings_obj.set("socks_port", 888)
- assert settings_obj._settings["socks_port"] == 888
-
- settings_obj.set("socks_port", "NON_INTEGER")
- assert settings_obj._settings["socks_port"] == 9050
-
- @pytest.mark.skipif(sys.platform != "Darwin", reason="requires Darwin")
- def test_filename_darwin(self, monkeypatch, platform_darwin):
- obj = settings.Settings(common.Common())
- assert obj.filename == os.path.expanduser(
- "~/Library/Application Support/OnionShare-testdata/onionshare.json"
- )
-
- @pytest.mark.skipif(sys.platform != "Linux", reason="requires Linux")
- def test_filename_linux(self, monkeypatch, platform_linux):
- obj = settings.Settings(common.Common())
- assert obj.filename == os.path.expanduser(
- "~/.config/onionshare-testdata/onionshare.json"
- )
-
- @pytest.mark.skipif(sys.platform != "win32", reason="requires Windows")
- def test_filename_windows(self, monkeypatch, platform_windows):
- obj = settings.Settings(common.Common())
- assert obj.filename == os.path.expanduser(
- "~\\AppData\\Roaming\\OnionShare-testdata\\onionshare.json"
- )
-
- def test_set_custom_bridge(self, settings_obj):
- settings_obj.set(
- "tor_bridges_use_custom_bridges",
- "Bridge 45.3.20.65:9050 21300AD88890A49C429A6CB9959CFD44490A8F6E",
- )
- assert (
- settings_obj._settings["tor_bridges_use_custom_bridges"]
- == "Bridge 45.3.20.65:9050 21300AD88890A49C429A6CB9959CFD44490A8F6E"
- )
diff --git a/desktop/tests/test_cli_strings.py b/desktop/tests/test_cli_strings.py
deleted file mode 100644
index 8c90240f..00000000
--- a/desktop/tests/test_cli_strings.py
+++ /dev/null
@@ -1,46 +0,0 @@
-# -*- coding: utf-8 -*-
-import types
-
-import pytest
-
-from onionshare import strings
-from onionshare.settings import Settings
-
-# # Stub get_resource_path so it finds the correct path while running tests
-# def get_resource_path(filename):
-# resources_dir = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'share')
-# path = os.path.join(resources_dir, filename)
-# return path
-# common.get_resource_path = get_resource_path
-
-
-def test_underscore_is_function():
- assert callable(strings._) and isinstance(strings._, types.FunctionType)
-
-
-class TestLoadStrings:
- def test_load_strings_defaults_to_english(
- self, common_obj, locale_en, sys_onionshare_dev_mode
- ):
- """ load_strings() loads English by default """
- common_obj.settings = Settings(common_obj)
- strings.load_strings(common_obj)
- assert strings._("not_a_readable_file") == "{0:s} is not a readable file."
-
- def test_load_strings_loads_other_languages(
- self, common_obj, locale_fr, sys_onionshare_dev_mode
- ):
- """ load_strings() loads other languages in different locales """
- common_obj.settings = Settings(common_obj)
- common_obj.settings.set("locale", "fr")
- strings.load_strings(common_obj)
- assert strings._("not_a_readable_file") == "{0:s} n’est pas un fichier lisible."
-
- def test_load_invalid_locale(
- self, common_obj, locale_invalid, sys_onionshare_dev_mode
- ):
- """ load_strings() raises a KeyError for an invalid locale """
- with pytest.raises(KeyError):
- common_obj.settings = Settings(common_obj)
- common_obj.settings.set("locale", "XX")
- strings.load_strings(common_obj)
diff --git a/desktop/tests/test_cli_web.py b/desktop/tests/test_cli_web.py
deleted file mode 100644
index d2802bf3..00000000
--- a/desktop/tests/test_cli_web.py
+++ /dev/null
@@ -1,233 +0,0 @@
-import contextlib
-import inspect
-import io
-import os
-import random
-import re
-import socket
-import sys
-import zipfile
-import tempfile
-import base64
-
-import pytest
-from werkzeug.datastructures import Headers
-
-from onionshare.common import Common
-from onionshare import strings
-from onionshare.web import Web
-from onionshare.settings import Settings
-from onionshare.mode_settings import ModeSettings
-
-DEFAULT_ZW_FILENAME_REGEX = re.compile(r"^onionshare_[a-z2-7]{6}.zip$")
-RANDOM_STR_REGEX = re.compile(r"^[a-z2-7]+$")
-
-
-def web_obj(temp_dir, common_obj, mode, num_files=0):
- """ Creates a Web object, in either share mode or receive mode, ready for testing """
- common_obj.settings = Settings(common_obj)
- strings.load_strings(common_obj)
- mode_settings = ModeSettings(common_obj)
- web = Web(common_obj, False, mode_settings, mode)
- web.generate_password()
- web.running = True
-
- web.app.testing = True
-
- # Share mode
- if mode == "share":
- # Add files
- files = []
- for _ in range(num_files):
- with tempfile.NamedTemporaryFile(delete=False, dir=temp_dir) as tmp_file:
- tmp_file.write(b"*" * 1024)
- files.append(tmp_file.name)
- web.share_mode.set_file_info(files)
- # Receive mode
- else:
- pass
-
- return web
-
-
-class TestWeb:
- def test_share_mode(self, temp_dir, common_obj):
- web = web_obj(temp_dir, common_obj, "share", 3)
- assert web.mode == "share"
- with web.app.test_client() as c:
- # Load / without auth
- res = c.get("/")
- res.get_data()
- assert res.status_code == 401
-
- # Load / with invalid auth
- res = c.get("/", headers=self._make_auth_headers("invalid"))
- res.get_data()
- assert res.status_code == 401
-
- # Load / with valid auth
- res = c.get("/", headers=self._make_auth_headers(web.password))
- res.get_data()
- assert res.status_code == 200
-
- # Download
- res = c.get("/download", headers=self._make_auth_headers(web.password))
- res.get_data()
- assert res.status_code == 200
- assert (
- res.mimetype == "application/zip"
- or res.mimetype == "application/x-zip-compressed"
- )
-
- def test_share_mode_autostop_sharing_on(self, temp_dir, common_obj, temp_file_1024):
- web = web_obj(temp_dir, common_obj, "share", 3)
- web.settings.set("share", "autostop_sharing", True)
-
- assert web.running == True
-
- with web.app.test_client() as c:
- # Download the first time
- res = c.get("/download", headers=self._make_auth_headers(web.password))
- res.get_data()
- assert res.status_code == 200
- assert (
- res.mimetype == "application/zip"
- or res.mimetype == "application/x-zip-compressed"
- )
-
- assert web.running == False
-
- def test_share_mode_autostop_sharing_off(
- self, temp_dir, common_obj, temp_file_1024
- ):
- web = web_obj(temp_dir, common_obj, "share", 3)
- web.settings.set("share", "autostop_sharing", False)
-
- assert web.running == True
-
- with web.app.test_client() as c:
- # Download the first time
- res = c.get("/download", headers=self._make_auth_headers(web.password))
- res.get_data()
- assert res.status_code == 200
- assert (
- res.mimetype == "application/zip"
- or res.mimetype == "application/x-zip-compressed"
- )
- assert web.running == True
-
- def test_receive_mode(self, temp_dir, common_obj):
- web = web_obj(temp_dir, common_obj, "receive")
- assert web.mode == "receive"
-
- with web.app.test_client() as c:
- # Load / without auth
- res = c.get("/")
- res.get_data()
- assert res.status_code == 401
-
- # Load / with invalid auth
- res = c.get("/", headers=self._make_auth_headers("invalid"))
- res.get_data()
- assert res.status_code == 401
-
- # Load / with valid auth
- res = c.get("/", headers=self._make_auth_headers(web.password))
- res.get_data()
- assert res.status_code == 200
-
- def test_public_mode_on(self, temp_dir, common_obj):
- web = web_obj(temp_dir, common_obj, "receive")
- web.settings.set("general", "public", True)
-
- with web.app.test_client() as c:
- # Loading / should work without auth
- res = c.get("/")
- data1 = res.get_data()
- assert res.status_code == 200
-
- def test_public_mode_off(self, temp_dir, common_obj):
- web = web_obj(temp_dir, common_obj, "receive")
- web.settings.set("general", "public", False)
-
- with web.app.test_client() as c:
- # Load / without auth
- res = c.get("/")
- res.get_data()
- assert res.status_code == 401
-
- # But static resources should work without auth
- res = c.get(f"{web.static_url_path}/css/style.css")
- res.get_data()
- assert res.status_code == 200
-
- # Load / with valid auth
- res = c.get("/", headers=self._make_auth_headers(web.password))
- res.get_data()
- assert res.status_code == 200
-
- def _make_auth_headers(self, password):
- auth = base64.b64encode(b"onionshare:" + password.encode()).decode()
- h = Headers()
- h.add("Authorization", "Basic " + auth)
- return h
-
-
-class TestZipWriterDefault:
- @pytest.mark.parametrize(
- "test_input",
- (
- f"onionshare_{''.join(random.choice('abcdefghijklmnopqrstuvwxyz234567') for _ in range(6))}.zip"
- for _ in range(50)
- ),
- )
- def test_default_zw_filename_regex(self, test_input):
- assert bool(DEFAULT_ZW_FILENAME_REGEX.match(test_input))
-
- def test_zw_filename(self, default_zw):
- zw_filename = os.path.basename(default_zw.zip_filename)
- assert bool(DEFAULT_ZW_FILENAME_REGEX.match(zw_filename))
-
- def test_zipfile_filename_matches_zipwriter_filename(self, default_zw):
- assert default_zw.z.filename == default_zw.zip_filename
-
- def test_zipfile_allow_zip64(self, default_zw):
- assert default_zw.z._allowZip64 is True
-
- def test_zipfile_mode(self, default_zw):
- assert default_zw.z.mode == "w"
-
- def test_callback(self, default_zw):
- assert default_zw.processed_size_callback(None) is None
-
- def test_add_file(self, default_zw, temp_file_1024_delete):
- default_zw.add_file(temp_file_1024_delete)
- zipfile_info = default_zw.z.getinfo(os.path.basename(temp_file_1024_delete))
-
- assert zipfile_info.compress_type == zipfile.ZIP_DEFLATED
- assert zipfile_info.file_size == 1024
-
- def test_add_directory(self, temp_dir_1024_delete, default_zw):
- previous_size = default_zw._size # size before adding directory
- default_zw.add_dir(temp_dir_1024_delete)
- assert default_zw._size == previous_size + 1024
-
-
-class TestZipWriterCustom:
- @pytest.mark.parametrize(
- "test_input",
- (
- Common.random_string(
- random.randint(2, 50), random.choice((None, random.randint(2, 50)))
- )
- for _ in range(50)
- ),
- )
- def test_random_string_regex(self, test_input):
- assert bool(RANDOM_STR_REGEX.match(test_input))
-
- def test_custom_filename(self, custom_zw):
- assert bool(RANDOM_STR_REGEX.match(custom_zw.zip_filename))
-
- def test_custom_callback(self, custom_zw):
- assert custom_zw.processed_size_callback(None) == "custom_callback"
diff --git a/desktop/tests/test_gui_receive.py b/desktop/tests/test_gui_receive.py
index d9501460..f89b69f8 100644
--- a/desktop/tests/test_gui_receive.py
+++ b/desktop/tests/test_gui_receive.py
@@ -171,7 +171,6 @@ class TestReceive(GuiBaseTest):
# Tests
- @pytest.mark.gui
def test_clear_all_button(self):
"""
Clear all history items should work
@@ -183,7 +182,6 @@ class TestReceive(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_autostop_timer(self):
"""
Test autostop timer
@@ -201,7 +199,6 @@ class TestReceive(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_upload(self):
"""
Test uploading files
@@ -213,7 +210,6 @@ class TestReceive(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
@pytest.mark.skipif(sys.platform == "win32", reason="Windows doesn't have chmod")
def test_upload_non_writable_dir(self):
"""
@@ -225,7 +221,6 @@ class TestReceive(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_public_upload(self):
"""
Test uploading files in public mode
@@ -238,7 +233,6 @@ class TestReceive(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
@pytest.mark.skipif(sys.platform == "win32", reason="Windows doesn't have chmod")
def test_public_upload_non_writable_dir(self):
"""
diff --git a/desktop/tests/test_gui_share.py b/desktop/tests/test_gui_share.py
index 441fc03a..3da6f572 100644
--- a/desktop/tests/test_gui_share.py
+++ b/desktop/tests/test_gui_share.py
@@ -307,7 +307,6 @@ class TestShare(GuiBaseTest):
# Tests
- @pytest.mark.gui
def test_autostart_and_autostop_timer_mismatch(self):
"""
If autostart timer is after autostop timer, a warning should be thrown
@@ -332,7 +331,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_autostart_timer(self):
"""
Autostart timer should automatically start
@@ -354,7 +352,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_autostart_timer_too_short(self):
"""
Autostart timer should throw a warning if the scheduled time is too soon
@@ -379,7 +376,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_autostart_timer_cancel(self):
"""
Test canceling a scheduled share
@@ -394,7 +390,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_clear_all_history_button(self):
"""
Test clearing all history items
@@ -407,7 +402,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_remove_all_file_selection_button(self):
"""
Test remove all file items at once
@@ -419,7 +413,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_public_mode(self):
"""
Public mode shouldn't have a password
@@ -432,7 +425,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_without_autostop_sharing(self):
"""
Disable autostop sharing after first download
@@ -445,7 +437,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_download(self):
"""
Test downloading in share mode
@@ -457,7 +448,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_individual_files_without_autostop_sharing(self):
"""
Test downloading individual files with autostop sharing disabled
@@ -470,7 +460,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_individual_files(self):
"""
Test downloading individual files
@@ -482,7 +471,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_large_download(self):
"""
Test a large download
@@ -503,7 +491,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_persistent_password(self):
"""
Test a large download
@@ -522,7 +509,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_autostop_timer(self):
"""
Test the autostop timer
@@ -541,7 +527,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_autostop_timer_too_short(self):
"""
Test the autostop timer when the timeout is too short
@@ -566,7 +551,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_unreadable_file(self):
"""
Sharing an unreadable file should throw a warning
@@ -587,7 +571,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_401_triggers_ratelimit(self):
"""
Rate limit should be triggered
@@ -607,7 +590,6 @@ class TestShare(GuiBaseTest):
self.close_all_tabs()
- @pytest.mark.gui
def test_401_public_skips_ratelimit(self):
"""
Public mode should skip the rate limit
diff --git a/desktop/tests/test_gui_tabs.py b/desktop/tests/test_gui_tabs.py
index a2473441..5644ea60 100644
--- a/desktop/tests/test_gui_tabs.py
+++ b/desktop/tests/test_gui_tabs.py
@@ -83,18 +83,15 @@ class TestTabs(GuiBaseTest):
# Tests
- @pytest.mark.gui
def test_01_common_tests(self):
"""Run all common tests"""
self.run_all_common_setup_tests()
- @pytest.mark.gui
def test_02_starts_with_one_new_tab(self):
"""There should be one "New Tab" tab open"""
self.assertEqual(self.gui.tabs.count(), 1)
self.assertTrue(self.gui.tabs.widget(0).new_tab.isVisible())
- @pytest.mark.gui
def test_03_new_tab_button_opens_new_tabs(self):
"""Clicking the "+" button should open new tabs"""
self.assertEqual(self.gui.tabs.count(), 1)
@@ -103,7 +100,6 @@ class TestTabs(GuiBaseTest):
self.gui.tabs.new_tab_button.click()
self.assertEqual(self.gui.tabs.count(), 4)
- @pytest.mark.gui
def test_04_close_tab_button_closes_tabs(self):
"""Clicking the "x" button should close tabs"""
self.assertEqual(self.gui.tabs.count(), 4)
@@ -112,7 +108,6 @@ class TestTabs(GuiBaseTest):
self.gui.tabs.tabBar().tabButton(0, QtWidgets.QTabBar.RightSide).click()
self.assertEqual(self.gui.tabs.count(), 1)
- @pytest.mark.gui
def test_05_closing_last_tab_opens_new_one(self):
"""Closing the last tab should open a new tab"""
self.assertEqual(self.gui.tabs.count(), 1)
@@ -129,7 +124,6 @@ class TestTabs(GuiBaseTest):
self.assertEqual(self.gui.tabs.count(), 1)
self.assertTrue(self.gui.tabs.widget(0).new_tab.isVisible())
- @pytest.mark.gui
def test_06_new_tab_mode_buttons_show_correct_modes(self):
"""Clicking the mode buttons in a new tab should change the mode of the tab"""
@@ -166,43 +160,36 @@ class TestTabs(GuiBaseTest):
self.gui.tabs.tabBar().tabButton(0, QtWidgets.QTabBar.RightSide).click()
self.gui.tabs.tabBar().tabButton(0, QtWidgets.QTabBar.RightSide).click()
- @pytest.mark.gui
def test_07_close_share_tab_while_server_started_should_warn(self):
"""Closing a share mode tab when the server is running should throw a warning"""
tab = self.new_share_tab_with_files()
self.close_tab_with_active_server(tab)
- @pytest.mark.gui
def test_08_close_receive_tab_while_server_started_should_warn(self):
"""Closing a recieve mode tab when the server is running should throw a warning"""
tab = self.new_receive_tab()
self.close_tab_with_active_server(tab)
- @pytest.mark.gui
def test_09_close_website_tab_while_server_started_should_warn(self):
"""Closing a website mode tab when the server is running should throw a warning"""
tab = self.new_website_tab_with_files()
self.close_tab_with_active_server(tab)
- @pytest.mark.gui
def test_10_close_persistent_share_tab_shows_warning(self):
"""Closing a share mode tab that's persistent should show a warning"""
tab = self.new_share_tab_with_files()
self.close_persistent_tab(tab)
- @pytest.mark.gui
def test_11_close_persistent_receive_tab_shows_warning(self):
"""Closing a receive mode tab that's persistent should show a warning"""
tab = self.new_receive_tab()
self.close_persistent_tab(tab)
- @pytest.mark.gui
def test_12_close_persistent_website_tab_shows_warning(self):
"""Closing a website mode tab that's persistent should show a warning"""
tab = self.new_website_tab_with_files()
self.close_persistent_tab(tab)
- @pytest.mark.gui
def test_13_quit_with_server_started_should_warn(self):
"""Quitting OnionShare with any active servers should show a warning"""
tab = self.new_share_tab()
diff --git a/desktop/tests/test_gui_website.py b/desktop/tests/test_gui_website.py
index 80c74dea..6466b2a4 100644
--- a/desktop/tests/test_gui_website.py
+++ b/desktop/tests/test_gui_website.py
@@ -87,7 +87,6 @@ class TestWebsite(GuiBaseTest):
# Tests
- @pytest.mark.gui
def test_website(self):
"""
Test website mode
@@ -96,7 +95,6 @@ class TestWebsite(GuiBaseTest):
self.run_all_website_mode_download_tests(tab)
self.close_all_tabs()
- @pytest.mark.gui
def test_csp_enabled(self):
"""
Test disabling CSP
diff --git a/desktop/docs/Makefile b/docs/Makefile
index d0c3cbf1..d0c3cbf1 100644
--- a/desktop/docs/Makefile
+++ b/docs/Makefile
diff --git a/desktop/docs/README.md b/docs/README.md
index fe026802..fe026802 100644
--- a/desktop/docs/README.md
+++ b/docs/README.md
diff --git a/desktop/docs/build.sh b/docs/build.sh
index f120fab7..f120fab7 100755
--- a/desktop/docs/build.sh
+++ b/docs/build.sh
diff --git a/desktop/docs/gettext/.doctrees/advanced.doctree b/docs/gettext/.doctrees/advanced.doctree
index 3a21850b..3a21850b 100644
--- a/desktop/docs/gettext/.doctrees/advanced.doctree
+++ b/docs/gettext/.doctrees/advanced.doctree
Binary files differ
diff --git a/desktop/docs/gettext/.doctrees/develop.doctree b/docs/gettext/.doctrees/develop.doctree
index 9985cf37..9985cf37 100644
--- a/desktop/docs/gettext/.doctrees/develop.doctree
+++ b/docs/gettext/.doctrees/develop.doctree
Binary files differ
diff --git a/desktop/docs/gettext/.doctrees/environment.pickle b/docs/gettext/.doctrees/environment.pickle
index d7ebd020..d7ebd020 100644
--- a/desktop/docs/gettext/.doctrees/environment.pickle
+++ b/docs/gettext/.doctrees/environment.pickle
Binary files differ
diff --git a/desktop/docs/gettext/.doctrees/features.doctree b/docs/gettext/.doctrees/features.doctree
index ec327d02..ec327d02 100644
--- a/desktop/docs/gettext/.doctrees/features.doctree
+++ b/docs/gettext/.doctrees/features.doctree
Binary files differ
diff --git a/desktop/docs/gettext/.doctrees/help.doctree b/docs/gettext/.doctrees/help.doctree
index 7fe3c6d9..7fe3c6d9 100644
--- a/desktop/docs/gettext/.doctrees/help.doctree
+++ b/docs/gettext/.doctrees/help.doctree
Binary files differ
diff --git a/desktop/docs/gettext/.doctrees/index.doctree b/docs/gettext/.doctrees/index.doctree
index c716ae3f..c716ae3f 100644
--- a/desktop/docs/gettext/.doctrees/index.doctree
+++ b/docs/gettext/.doctrees/index.doctree
Binary files differ
diff --git a/desktop/docs/gettext/.doctrees/install.doctree b/docs/gettext/.doctrees/install.doctree
index 43677bc4..43677bc4 100644
--- a/desktop/docs/gettext/.doctrees/install.doctree
+++ b/docs/gettext/.doctrees/install.doctree
Binary files differ
diff --git a/desktop/docs/gettext/.doctrees/security.doctree b/docs/gettext/.doctrees/security.doctree
index 62107b01..62107b01 100644
--- a/desktop/docs/gettext/.doctrees/security.doctree
+++ b/docs/gettext/.doctrees/security.doctree
Binary files differ
diff --git a/desktop/docs/gettext/.doctrees/tor.doctree b/docs/gettext/.doctrees/tor.doctree
index 737471c7..737471c7 100644
--- a/desktop/docs/gettext/.doctrees/tor.doctree
+++ b/docs/gettext/.doctrees/tor.doctree
Binary files differ
diff --git a/desktop/docs/gettext/advanced.pot b/docs/gettext/advanced.pot
index 15b92627..15b92627 100644
--- a/desktop/docs/gettext/advanced.pot
+++ b/docs/gettext/advanced.pot
diff --git a/desktop/docs/gettext/develop.pot b/docs/gettext/develop.pot
index cd1bfc11..cd1bfc11 100644
--- a/desktop/docs/gettext/develop.pot
+++ b/docs/gettext/develop.pot
diff --git a/desktop/docs/gettext/features.pot b/docs/gettext/features.pot
index 4fef3fe5..4fef3fe5 100644
--- a/desktop/docs/gettext/features.pot
+++ b/docs/gettext/features.pot
diff --git a/desktop/docs/gettext/help.pot b/docs/gettext/help.pot
index 0996bae3..0996bae3 100644
--- a/desktop/docs/gettext/help.pot
+++ b/docs/gettext/help.pot
diff --git a/desktop/docs/gettext/index.pot b/docs/gettext/index.pot
index edd6e67d..edd6e67d 100644
--- a/desktop/docs/gettext/index.pot
+++ b/docs/gettext/index.pot
diff --git a/desktop/docs/gettext/install.pot b/docs/gettext/install.pot
index 58bedab2..58bedab2 100644
--- a/desktop/docs/gettext/install.pot
+++ b/docs/gettext/install.pot
diff --git a/desktop/docs/gettext/security.pot b/docs/gettext/security.pot
index 2bf3fb0a..2bf3fb0a 100644
--- a/desktop/docs/gettext/security.pot
+++ b/docs/gettext/security.pot
diff --git a/desktop/docs/gettext/sphinx.pot b/docs/gettext/sphinx.pot
index 05bdc208..05bdc208 100644
--- a/desktop/docs/gettext/sphinx.pot
+++ b/docs/gettext/sphinx.pot
diff --git a/desktop/docs/gettext/tor.pot b/docs/gettext/tor.pot
index 5f7adb04..5f7adb04 100644
--- a/desktop/docs/gettext/tor.pot
+++ b/docs/gettext/tor.pot
diff --git a/desktop/docs/make.bat b/docs/make.bat
index 6247f7e2..6247f7e2 100644
--- a/desktop/docs/make.bat
+++ b/docs/make.bat
diff --git a/desktop/docs/poetry.lock b/docs/poetry.lock
index 2593b9d4..2593b9d4 100644
--- a/desktop/docs/poetry.lock
+++ b/docs/poetry.lock
diff --git a/desktop/docs/pyproject.toml b/docs/pyproject.toml
index 9cc7bcc2..9cc7bcc2 100644
--- a/desktop/docs/pyproject.toml
+++ b/docs/pyproject.toml
diff --git a/desktop/docs/source/_static/apple-logo.png b/docs/source/_static/apple-logo.png
index c2cadc12..c2cadc12 100644
--- a/desktop/docs/source/_static/apple-logo.png
+++ b/docs/source/_static/apple-logo.png
Binary files differ
diff --git a/desktop/docs/source/_static/custom.css b/docs/source/_static/custom.css
index 18f242b3..18f242b3 100644
--- a/desktop/docs/source/_static/custom.css
+++ b/docs/source/_static/custom.css
diff --git a/desktop/docs/source/_static/favicon.ico b/docs/source/_static/favicon.ico
index 63e65d8b..63e65d8b 100644
--- a/desktop/docs/source/_static/favicon.ico
+++ b/docs/source/_static/favicon.ico
Binary files differ
diff --git a/desktop/docs/source/_static/linux-logo.png b/docs/source/_static/linux-logo.png
index 0cfca2e8..0cfca2e8 100644
--- a/desktop/docs/source/_static/linux-logo.png
+++ b/docs/source/_static/linux-logo.png
Binary files differ
diff --git a/desktop/docs/source/_static/logo.png b/docs/source/_static/logo.png
index 1479eed0..1479eed0 100644
--- a/desktop/docs/source/_static/logo.png
+++ b/docs/source/_static/logo.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/advanced-save-tabs.png b/docs/source/_static/screenshots/advanced-save-tabs.png
index 18788167..18788167 100644
--- a/desktop/docs/source/_static/screenshots/advanced-save-tabs.png
+++ b/docs/source/_static/screenshots/advanced-save-tabs.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/advanced-schedule-start-timer.png b/docs/source/_static/screenshots/advanced-schedule-start-timer.png
index e633fb37..e633fb37 100644
--- a/desktop/docs/source/_static/screenshots/advanced-schedule-start-timer.png
+++ b/docs/source/_static/screenshots/advanced-schedule-start-timer.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/advanced-schedule-stop-timer.png b/docs/source/_static/screenshots/advanced-schedule-stop-timer.png
index 4938f00b..4938f00b 100644
--- a/desktop/docs/source/_static/screenshots/advanced-schedule-stop-timer.png
+++ b/docs/source/_static/screenshots/advanced-schedule-stop-timer.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/chat-sharing.png b/docs/source/_static/screenshots/chat-sharing.png
index b4e8406f..b4e8406f 100644
--- a/desktop/docs/source/_static/screenshots/chat-sharing.png
+++ b/docs/source/_static/screenshots/chat-sharing.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/chat-torbrowser.png b/docs/source/_static/screenshots/chat-torbrowser.png
index 79e0fd5f..79e0fd5f 100644
--- a/desktop/docs/source/_static/screenshots/chat-torbrowser.png
+++ b/docs/source/_static/screenshots/chat-torbrowser.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/chat.png b/docs/source/_static/screenshots/chat.png
index aad601a1..aad601a1 100644
--- a/desktop/docs/source/_static/screenshots/chat.png
+++ b/docs/source/_static/screenshots/chat.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/receive-sharing.png b/docs/source/_static/screenshots/receive-sharing.png
index 5ab44ecd..5ab44ecd 100644
--- a/desktop/docs/source/_static/screenshots/receive-sharing.png
+++ b/docs/source/_static/screenshots/receive-sharing.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/receive-torbrowser.png b/docs/source/_static/screenshots/receive-torbrowser.png
index 0ad381d5..0ad381d5 100644
--- a/desktop/docs/source/_static/screenshots/receive-torbrowser.png
+++ b/docs/source/_static/screenshots/receive-torbrowser.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/receive.png b/docs/source/_static/screenshots/receive.png
index 799c7879..799c7879 100644
--- a/desktop/docs/source/_static/screenshots/receive.png
+++ b/docs/source/_static/screenshots/receive.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/settings.png b/docs/source/_static/screenshots/settings.png
index 6b705496..6b705496 100644
--- a/desktop/docs/source/_static/screenshots/settings.png
+++ b/docs/source/_static/screenshots/settings.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/share-files.png b/docs/source/_static/screenshots/share-files.png
index d0d5f280..d0d5f280 100644
--- a/desktop/docs/source/_static/screenshots/share-files.png
+++ b/docs/source/_static/screenshots/share-files.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/share-sharing.png b/docs/source/_static/screenshots/share-sharing.png
index 6f3f41ae..6f3f41ae 100644
--- a/desktop/docs/source/_static/screenshots/share-sharing.png
+++ b/docs/source/_static/screenshots/share-sharing.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/share-torbrowser.png b/docs/source/_static/screenshots/share-torbrowser.png
index ac0f4983..ac0f4983 100644
--- a/desktop/docs/source/_static/screenshots/share-torbrowser.png
+++ b/docs/source/_static/screenshots/share-torbrowser.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/share.png b/docs/source/_static/screenshots/share.png
index f03c68ba..f03c68ba 100644
--- a/desktop/docs/source/_static/screenshots/share.png
+++ b/docs/source/_static/screenshots/share.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/tabs.png b/docs/source/_static/screenshots/tabs.png
index 8b96ace2..8b96ace2 100644
--- a/desktop/docs/source/_static/screenshots/tabs.png
+++ b/docs/source/_static/screenshots/tabs.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/website-files.png b/docs/source/_static/screenshots/website-files.png
index 4bd293b2..4bd293b2 100644
--- a/desktop/docs/source/_static/screenshots/website-files.png
+++ b/docs/source/_static/screenshots/website-files.png
Binary files differ
diff --git a/desktop/docs/source/_static/screenshots/website.png b/docs/source/_static/screenshots/website.png
index d745cf6a..d745cf6a 100644
--- a/desktop/docs/source/_static/screenshots/website.png
+++ b/docs/source/_static/screenshots/website.png
Binary files differ
diff --git a/desktop/docs/source/_static/windows-logo.png b/docs/source/_static/windows-logo.png
index c9389bac..c9389bac 100644
--- a/desktop/docs/source/_static/windows-logo.png
+++ b/docs/source/_static/windows-logo.png
Binary files differ
diff --git a/desktop/docs/source/_templates/versions.html b/docs/source/_templates/versions.html
index 761e2add..761e2add 100644
--- a/desktop/docs/source/_templates/versions.html
+++ b/docs/source/_templates/versions.html
diff --git a/desktop/docs/source/advanced.rst b/docs/source/advanced.rst
index c4375bea..c4375bea 100644
--- a/desktop/docs/source/advanced.rst
+++ b/docs/source/advanced.rst
diff --git a/desktop/docs/source/conf.py b/docs/source/conf.py
index a8d0393e..a8d0393e 100644
--- a/desktop/docs/source/conf.py
+++ b/docs/source/conf.py
diff --git a/desktop/docs/source/develop.rst b/docs/source/develop.rst
index 2c36f48b..2c36f48b 100644
--- a/desktop/docs/source/develop.rst
+++ b/docs/source/develop.rst
diff --git a/desktop/docs/source/features.rst b/docs/source/features.rst
index 07ff7d21..07ff7d21 100644
--- a/desktop/docs/source/features.rst
+++ b/docs/source/features.rst
diff --git a/desktop/docs/source/help.rst b/docs/source/help.rst
index 3c138d6a..3c138d6a 100644
--- a/desktop/docs/source/help.rst
+++ b/docs/source/help.rst
diff --git a/desktop/docs/source/index.rst b/docs/source/index.rst
index 55d874e3..55d874e3 100644
--- a/desktop/docs/source/index.rst
+++ b/docs/source/index.rst
diff --git a/desktop/docs/source/install.rst b/docs/source/install.rst
index a8383e35..a8383e35 100644
--- a/desktop/docs/source/install.rst
+++ b/docs/source/install.rst
diff --git a/desktop/docs/source/locale/ar/LC_MESSAGES/advanced.po b/docs/source/locale/ar/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/ar/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/ar/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/ar/LC_MESSAGES/develop.po b/docs/source/locale/ar/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/ar/LC_MESSAGES/develop.po
+++ b/docs/source/locale/ar/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/ar/LC_MESSAGES/features.po b/docs/source/locale/ar/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/ar/LC_MESSAGES/features.po
+++ b/docs/source/locale/ar/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/ar/LC_MESSAGES/help.po b/docs/source/locale/ar/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/ar/LC_MESSAGES/help.po
+++ b/docs/source/locale/ar/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/ar/LC_MESSAGES/index.po b/docs/source/locale/ar/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/ar/LC_MESSAGES/index.po
+++ b/docs/source/locale/ar/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/ar/LC_MESSAGES/install.po b/docs/source/locale/ar/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/ar/LC_MESSAGES/install.po
+++ b/docs/source/locale/ar/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/ar/LC_MESSAGES/security.po b/docs/source/locale/ar/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/ar/LC_MESSAGES/security.po
+++ b/docs/source/locale/ar/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/ar/LC_MESSAGES/sphinx.po b/docs/source/locale/ar/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/ar/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/ar/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/ar/LC_MESSAGES/tor.po b/docs/source/locale/ar/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/ar/LC_MESSAGES/tor.po
+++ b/docs/source/locale/ar/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/ca/LC_MESSAGES/advanced.po b/docs/source/locale/ca/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/ca/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/ca/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/ca/LC_MESSAGES/develop.po b/docs/source/locale/ca/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/ca/LC_MESSAGES/develop.po
+++ b/docs/source/locale/ca/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/ca/LC_MESSAGES/features.po b/docs/source/locale/ca/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/ca/LC_MESSAGES/features.po
+++ b/docs/source/locale/ca/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/ca/LC_MESSAGES/help.po b/docs/source/locale/ca/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/ca/LC_MESSAGES/help.po
+++ b/docs/source/locale/ca/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/ca/LC_MESSAGES/index.po b/docs/source/locale/ca/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/ca/LC_MESSAGES/index.po
+++ b/docs/source/locale/ca/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/ca/LC_MESSAGES/install.po b/docs/source/locale/ca/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/ca/LC_MESSAGES/install.po
+++ b/docs/source/locale/ca/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/ca/LC_MESSAGES/security.po b/docs/source/locale/ca/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/ca/LC_MESSAGES/security.po
+++ b/docs/source/locale/ca/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/ca/LC_MESSAGES/sphinx.po b/docs/source/locale/ca/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/ca/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/ca/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/ca/LC_MESSAGES/tor.po b/docs/source/locale/ca/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/ca/LC_MESSAGES/tor.po
+++ b/docs/source/locale/ca/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/da/LC_MESSAGES/advanced.po b/docs/source/locale/da/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/da/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/da/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/da/LC_MESSAGES/develop.po b/docs/source/locale/da/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/da/LC_MESSAGES/develop.po
+++ b/docs/source/locale/da/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/da/LC_MESSAGES/features.po b/docs/source/locale/da/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/da/LC_MESSAGES/features.po
+++ b/docs/source/locale/da/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/da/LC_MESSAGES/help.po b/docs/source/locale/da/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/da/LC_MESSAGES/help.po
+++ b/docs/source/locale/da/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/da/LC_MESSAGES/index.po b/docs/source/locale/da/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/da/LC_MESSAGES/index.po
+++ b/docs/source/locale/da/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/da/LC_MESSAGES/install.po b/docs/source/locale/da/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/da/LC_MESSAGES/install.po
+++ b/docs/source/locale/da/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/da/LC_MESSAGES/security.po b/docs/source/locale/da/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/da/LC_MESSAGES/security.po
+++ b/docs/source/locale/da/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/da/LC_MESSAGES/sphinx.po b/docs/source/locale/da/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/da/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/da/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/da/LC_MESSAGES/tor.po b/docs/source/locale/da/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/da/LC_MESSAGES/tor.po
+++ b/docs/source/locale/da/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/de/LC_MESSAGES/advanced.po b/docs/source/locale/de/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/de/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/de/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/de/LC_MESSAGES/develop.po b/docs/source/locale/de/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/de/LC_MESSAGES/develop.po
+++ b/docs/source/locale/de/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/de/LC_MESSAGES/features.po b/docs/source/locale/de/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/de/LC_MESSAGES/features.po
+++ b/docs/source/locale/de/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/de/LC_MESSAGES/help.po b/docs/source/locale/de/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/de/LC_MESSAGES/help.po
+++ b/docs/source/locale/de/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/de/LC_MESSAGES/index.po b/docs/source/locale/de/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/de/LC_MESSAGES/index.po
+++ b/docs/source/locale/de/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/de/LC_MESSAGES/install.po b/docs/source/locale/de/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/de/LC_MESSAGES/install.po
+++ b/docs/source/locale/de/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/de/LC_MESSAGES/security.po b/docs/source/locale/de/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/de/LC_MESSAGES/security.po
+++ b/docs/source/locale/de/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/de/LC_MESSAGES/sphinx.po b/docs/source/locale/de/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/de/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/de/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/de/LC_MESSAGES/tor.po b/docs/source/locale/de/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/de/LC_MESSAGES/tor.po
+++ b/docs/source/locale/de/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/el/LC_MESSAGES/advanced.po b/docs/source/locale/el/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/el/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/el/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/el/LC_MESSAGES/develop.po b/docs/source/locale/el/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/el/LC_MESSAGES/develop.po
+++ b/docs/source/locale/el/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/el/LC_MESSAGES/features.po b/docs/source/locale/el/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/el/LC_MESSAGES/features.po
+++ b/docs/source/locale/el/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/el/LC_MESSAGES/help.po b/docs/source/locale/el/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/el/LC_MESSAGES/help.po
+++ b/docs/source/locale/el/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/el/LC_MESSAGES/index.po b/docs/source/locale/el/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/el/LC_MESSAGES/index.po
+++ b/docs/source/locale/el/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/el/LC_MESSAGES/install.po b/docs/source/locale/el/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/el/LC_MESSAGES/install.po
+++ b/docs/source/locale/el/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/el/LC_MESSAGES/security.po b/docs/source/locale/el/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/el/LC_MESSAGES/security.po
+++ b/docs/source/locale/el/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/el/LC_MESSAGES/sphinx.po b/docs/source/locale/el/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/el/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/el/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/el/LC_MESSAGES/tor.po b/docs/source/locale/el/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/el/LC_MESSAGES/tor.po
+++ b/docs/source/locale/el/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/en/LC_MESSAGES/advanced.po b/docs/source/locale/en/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/en/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/en/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/en/LC_MESSAGES/develop.po b/docs/source/locale/en/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/en/LC_MESSAGES/develop.po
+++ b/docs/source/locale/en/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/en/LC_MESSAGES/features.po b/docs/source/locale/en/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/en/LC_MESSAGES/features.po
+++ b/docs/source/locale/en/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/en/LC_MESSAGES/help.po b/docs/source/locale/en/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/en/LC_MESSAGES/help.po
+++ b/docs/source/locale/en/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/en/LC_MESSAGES/index.po b/docs/source/locale/en/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/en/LC_MESSAGES/index.po
+++ b/docs/source/locale/en/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/en/LC_MESSAGES/install.po b/docs/source/locale/en/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/en/LC_MESSAGES/install.po
+++ b/docs/source/locale/en/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/en/LC_MESSAGES/security.po b/docs/source/locale/en/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/en/LC_MESSAGES/security.po
+++ b/docs/source/locale/en/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/en/LC_MESSAGES/sphinx.po b/docs/source/locale/en/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/en/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/en/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/en/LC_MESSAGES/tor.po b/docs/source/locale/en/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/en/LC_MESSAGES/tor.po
+++ b/docs/source/locale/en/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/es/LC_MESSAGES/advanced.po b/docs/source/locale/es/LC_MESSAGES/advanced.po
index ed59fb86..ed59fb86 100644
--- a/desktop/docs/source/locale/es/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/es/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/es/LC_MESSAGES/develop.po b/docs/source/locale/es/LC_MESSAGES/develop.po
index 779264dc..779264dc 100644
--- a/desktop/docs/source/locale/es/LC_MESSAGES/develop.po
+++ b/docs/source/locale/es/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/es/LC_MESSAGES/features.po b/docs/source/locale/es/LC_MESSAGES/features.po
index 4e2ff5b0..4e2ff5b0 100644
--- a/desktop/docs/source/locale/es/LC_MESSAGES/features.po
+++ b/docs/source/locale/es/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/es/LC_MESSAGES/help.po b/docs/source/locale/es/LC_MESSAGES/help.po
index dad96235..dad96235 100644
--- a/desktop/docs/source/locale/es/LC_MESSAGES/help.po
+++ b/docs/source/locale/es/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/es/LC_MESSAGES/index.po b/docs/source/locale/es/LC_MESSAGES/index.po
index dc691b19..dc691b19 100644
--- a/desktop/docs/source/locale/es/LC_MESSAGES/index.po
+++ b/docs/source/locale/es/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/es/LC_MESSAGES/install.po b/docs/source/locale/es/LC_MESSAGES/install.po
index 41624bdf..41624bdf 100644
--- a/desktop/docs/source/locale/es/LC_MESSAGES/install.po
+++ b/docs/source/locale/es/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/es/LC_MESSAGES/security.po b/docs/source/locale/es/LC_MESSAGES/security.po
index 6fad2771..6fad2771 100644
--- a/desktop/docs/source/locale/es/LC_MESSAGES/security.po
+++ b/docs/source/locale/es/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/es/LC_MESSAGES/sphinx.po b/docs/source/locale/es/LC_MESSAGES/sphinx.po
index 1b6e29d0..1b6e29d0 100644
--- a/desktop/docs/source/locale/es/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/es/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/es/LC_MESSAGES/tor.po b/docs/source/locale/es/LC_MESSAGES/tor.po
index 65c4b704..65c4b704 100644
--- a/desktop/docs/source/locale/es/LC_MESSAGES/tor.po
+++ b/docs/source/locale/es/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/fa/LC_MESSAGES/advanced.po b/docs/source/locale/fa/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/fa/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/fa/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/fa/LC_MESSAGES/develop.po b/docs/source/locale/fa/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/fa/LC_MESSAGES/develop.po
+++ b/docs/source/locale/fa/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/fa/LC_MESSAGES/features.po b/docs/source/locale/fa/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/fa/LC_MESSAGES/features.po
+++ b/docs/source/locale/fa/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/fa/LC_MESSAGES/help.po b/docs/source/locale/fa/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/fa/LC_MESSAGES/help.po
+++ b/docs/source/locale/fa/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/fa/LC_MESSAGES/index.po b/docs/source/locale/fa/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/fa/LC_MESSAGES/index.po
+++ b/docs/source/locale/fa/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/fa/LC_MESSAGES/install.po b/docs/source/locale/fa/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/fa/LC_MESSAGES/install.po
+++ b/docs/source/locale/fa/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/fa/LC_MESSAGES/security.po b/docs/source/locale/fa/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/fa/LC_MESSAGES/security.po
+++ b/docs/source/locale/fa/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/fa/LC_MESSAGES/sphinx.po b/docs/source/locale/fa/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/fa/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/fa/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/fa/LC_MESSAGES/tor.po b/docs/source/locale/fa/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/fa/LC_MESSAGES/tor.po
+++ b/docs/source/locale/fa/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/fr/LC_MESSAGES/advanced.po b/docs/source/locale/fr/LC_MESSAGES/advanced.po
index 3dd70b07..3dd70b07 100644
--- a/desktop/docs/source/locale/fr/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/fr/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/fr/LC_MESSAGES/develop.po b/docs/source/locale/fr/LC_MESSAGES/develop.po
index 9ce95cc9..9ce95cc9 100644
--- a/desktop/docs/source/locale/fr/LC_MESSAGES/develop.po
+++ b/docs/source/locale/fr/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/fr/LC_MESSAGES/features.po b/docs/source/locale/fr/LC_MESSAGES/features.po
index ae1dae49..ae1dae49 100644
--- a/desktop/docs/source/locale/fr/LC_MESSAGES/features.po
+++ b/docs/source/locale/fr/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/fr/LC_MESSAGES/help.po b/docs/source/locale/fr/LC_MESSAGES/help.po
index 35a6d1d3..35a6d1d3 100644
--- a/desktop/docs/source/locale/fr/LC_MESSAGES/help.po
+++ b/docs/source/locale/fr/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/fr/LC_MESSAGES/index.po b/docs/source/locale/fr/LC_MESSAGES/index.po
index 7e229643..7e229643 100644
--- a/desktop/docs/source/locale/fr/LC_MESSAGES/index.po
+++ b/docs/source/locale/fr/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/fr/LC_MESSAGES/install.po b/docs/source/locale/fr/LC_MESSAGES/install.po
index 0d7d00a6..0d7d00a6 100644
--- a/desktop/docs/source/locale/fr/LC_MESSAGES/install.po
+++ b/docs/source/locale/fr/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/fr/LC_MESSAGES/security.po b/docs/source/locale/fr/LC_MESSAGES/security.po
index 3fc4ecd6..3fc4ecd6 100644
--- a/desktop/docs/source/locale/fr/LC_MESSAGES/security.po
+++ b/docs/source/locale/fr/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/fr/LC_MESSAGES/sphinx.po b/docs/source/locale/fr/LC_MESSAGES/sphinx.po
index 32df696b..32df696b 100644
--- a/desktop/docs/source/locale/fr/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/fr/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/fr/LC_MESSAGES/tor.po b/docs/source/locale/fr/LC_MESSAGES/tor.po
index f16b041c..f16b041c 100644
--- a/desktop/docs/source/locale/fr/LC_MESSAGES/tor.po
+++ b/docs/source/locale/fr/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/ga/LC_MESSAGES/advanced.po b/docs/source/locale/ga/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/ga/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/ga/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/ga/LC_MESSAGES/develop.po b/docs/source/locale/ga/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/ga/LC_MESSAGES/develop.po
+++ b/docs/source/locale/ga/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/ga/LC_MESSAGES/features.po b/docs/source/locale/ga/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/ga/LC_MESSAGES/features.po
+++ b/docs/source/locale/ga/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/ga/LC_MESSAGES/help.po b/docs/source/locale/ga/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/ga/LC_MESSAGES/help.po
+++ b/docs/source/locale/ga/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/ga/LC_MESSAGES/index.po b/docs/source/locale/ga/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/ga/LC_MESSAGES/index.po
+++ b/docs/source/locale/ga/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/ga/LC_MESSAGES/install.po b/docs/source/locale/ga/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/ga/LC_MESSAGES/install.po
+++ b/docs/source/locale/ga/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/ga/LC_MESSAGES/security.po b/docs/source/locale/ga/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/ga/LC_MESSAGES/security.po
+++ b/docs/source/locale/ga/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/ga/LC_MESSAGES/sphinx.po b/docs/source/locale/ga/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/ga/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/ga/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/ga/LC_MESSAGES/tor.po b/docs/source/locale/ga/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/ga/LC_MESSAGES/tor.po
+++ b/docs/source/locale/ga/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/is/LC_MESSAGES/advanced.po b/docs/source/locale/is/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/is/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/is/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/is/LC_MESSAGES/develop.po b/docs/source/locale/is/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/is/LC_MESSAGES/develop.po
+++ b/docs/source/locale/is/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/is/LC_MESSAGES/features.po b/docs/source/locale/is/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/is/LC_MESSAGES/features.po
+++ b/docs/source/locale/is/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/is/LC_MESSAGES/help.po b/docs/source/locale/is/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/is/LC_MESSAGES/help.po
+++ b/docs/source/locale/is/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/is/LC_MESSAGES/index.po b/docs/source/locale/is/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/is/LC_MESSAGES/index.po
+++ b/docs/source/locale/is/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/is/LC_MESSAGES/install.po b/docs/source/locale/is/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/is/LC_MESSAGES/install.po
+++ b/docs/source/locale/is/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/is/LC_MESSAGES/security.po b/docs/source/locale/is/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/is/LC_MESSAGES/security.po
+++ b/docs/source/locale/is/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/is/LC_MESSAGES/sphinx.po b/docs/source/locale/is/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/is/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/is/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/is/LC_MESSAGES/tor.po b/docs/source/locale/is/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/is/LC_MESSAGES/tor.po
+++ b/docs/source/locale/is/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/it/LC_MESSAGES/advanced.po b/docs/source/locale/it/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/it/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/it/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/it/LC_MESSAGES/develop.po b/docs/source/locale/it/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/it/LC_MESSAGES/develop.po
+++ b/docs/source/locale/it/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/it/LC_MESSAGES/features.po b/docs/source/locale/it/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/it/LC_MESSAGES/features.po
+++ b/docs/source/locale/it/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/it/LC_MESSAGES/help.po b/docs/source/locale/it/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/it/LC_MESSAGES/help.po
+++ b/docs/source/locale/it/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/it/LC_MESSAGES/index.po b/docs/source/locale/it/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/it/LC_MESSAGES/index.po
+++ b/docs/source/locale/it/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/it/LC_MESSAGES/install.po b/docs/source/locale/it/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/it/LC_MESSAGES/install.po
+++ b/docs/source/locale/it/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/it/LC_MESSAGES/security.po b/docs/source/locale/it/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/it/LC_MESSAGES/security.po
+++ b/docs/source/locale/it/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/it/LC_MESSAGES/sphinx.po b/docs/source/locale/it/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/it/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/it/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/it/LC_MESSAGES/tor.po b/docs/source/locale/it/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/it/LC_MESSAGES/tor.po
+++ b/docs/source/locale/it/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/ja/LC_MESSAGES/advanced.po b/docs/source/locale/ja/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/ja/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/ja/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/ja/LC_MESSAGES/develop.po b/docs/source/locale/ja/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/ja/LC_MESSAGES/develop.po
+++ b/docs/source/locale/ja/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/ja/LC_MESSAGES/features.po b/docs/source/locale/ja/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/ja/LC_MESSAGES/features.po
+++ b/docs/source/locale/ja/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/ja/LC_MESSAGES/help.po b/docs/source/locale/ja/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/ja/LC_MESSAGES/help.po
+++ b/docs/source/locale/ja/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/ja/LC_MESSAGES/index.po b/docs/source/locale/ja/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/ja/LC_MESSAGES/index.po
+++ b/docs/source/locale/ja/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/ja/LC_MESSAGES/install.po b/docs/source/locale/ja/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/ja/LC_MESSAGES/install.po
+++ b/docs/source/locale/ja/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/ja/LC_MESSAGES/security.po b/docs/source/locale/ja/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/ja/LC_MESSAGES/security.po
+++ b/docs/source/locale/ja/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/ja/LC_MESSAGES/sphinx.po b/docs/source/locale/ja/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/ja/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/ja/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/ja/LC_MESSAGES/tor.po b/docs/source/locale/ja/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/ja/LC_MESSAGES/tor.po
+++ b/docs/source/locale/ja/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/advanced.po b/docs/source/locale/nb_NO/LC_MESSAGES/advanced.po
index 17c39735..17c39735 100644
--- a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/nb_NO/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/develop.po b/docs/source/locale/nb_NO/LC_MESSAGES/develop.po
index d1799dfc..d1799dfc 100644
--- a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/develop.po
+++ b/docs/source/locale/nb_NO/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/features.po b/docs/source/locale/nb_NO/LC_MESSAGES/features.po
index e97263f1..e97263f1 100644
--- a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/features.po
+++ b/docs/source/locale/nb_NO/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/help.po b/docs/source/locale/nb_NO/LC_MESSAGES/help.po
index 6499d5ec..6499d5ec 100644
--- a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/help.po
+++ b/docs/source/locale/nb_NO/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/index.po b/docs/source/locale/nb_NO/LC_MESSAGES/index.po
index 9dfa67f6..9dfa67f6 100644
--- a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/index.po
+++ b/docs/source/locale/nb_NO/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/install.po b/docs/source/locale/nb_NO/LC_MESSAGES/install.po
index ddc85512..ddc85512 100644
--- a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/install.po
+++ b/docs/source/locale/nb_NO/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/security.po b/docs/source/locale/nb_NO/LC_MESSAGES/security.po
index f8e68082..f8e68082 100644
--- a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/security.po
+++ b/docs/source/locale/nb_NO/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/sphinx.po b/docs/source/locale/nb_NO/LC_MESSAGES/sphinx.po
index cf3d2f1c..cf3d2f1c 100644
--- a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/nb_NO/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/tor.po b/docs/source/locale/nb_NO/LC_MESSAGES/tor.po
index 642f6a64..642f6a64 100644
--- a/desktop/docs/source/locale/nb_NO/LC_MESSAGES/tor.po
+++ b/docs/source/locale/nb_NO/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/nl/LC_MESSAGES/advanced.po b/docs/source/locale/nl/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/nl/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/nl/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/nl/LC_MESSAGES/develop.po b/docs/source/locale/nl/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/nl/LC_MESSAGES/develop.po
+++ b/docs/source/locale/nl/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/nl/LC_MESSAGES/features.po b/docs/source/locale/nl/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/nl/LC_MESSAGES/features.po
+++ b/docs/source/locale/nl/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/nl/LC_MESSAGES/help.po b/docs/source/locale/nl/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/nl/LC_MESSAGES/help.po
+++ b/docs/source/locale/nl/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/nl/LC_MESSAGES/index.po b/docs/source/locale/nl/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/nl/LC_MESSAGES/index.po
+++ b/docs/source/locale/nl/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/nl/LC_MESSAGES/install.po b/docs/source/locale/nl/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/nl/LC_MESSAGES/install.po
+++ b/docs/source/locale/nl/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/nl/LC_MESSAGES/security.po b/docs/source/locale/nl/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/nl/LC_MESSAGES/security.po
+++ b/docs/source/locale/nl/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/nl/LC_MESSAGES/sphinx.po b/docs/source/locale/nl/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/nl/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/nl/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/nl/LC_MESSAGES/tor.po b/docs/source/locale/nl/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/nl/LC_MESSAGES/tor.po
+++ b/docs/source/locale/nl/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/pl/LC_MESSAGES/advanced.po b/docs/source/locale/pl/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/pl/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/pl/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/pl/LC_MESSAGES/develop.po b/docs/source/locale/pl/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/pl/LC_MESSAGES/develop.po
+++ b/docs/source/locale/pl/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/pl/LC_MESSAGES/features.po b/docs/source/locale/pl/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/pl/LC_MESSAGES/features.po
+++ b/docs/source/locale/pl/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/pl/LC_MESSAGES/help.po b/docs/source/locale/pl/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/pl/LC_MESSAGES/help.po
+++ b/docs/source/locale/pl/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/pl/LC_MESSAGES/index.po b/docs/source/locale/pl/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/pl/LC_MESSAGES/index.po
+++ b/docs/source/locale/pl/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/pl/LC_MESSAGES/install.po b/docs/source/locale/pl/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/pl/LC_MESSAGES/install.po
+++ b/docs/source/locale/pl/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/pl/LC_MESSAGES/security.po b/docs/source/locale/pl/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/pl/LC_MESSAGES/security.po
+++ b/docs/source/locale/pl/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/pl/LC_MESSAGES/sphinx.po b/docs/source/locale/pl/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/pl/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/pl/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/pl/LC_MESSAGES/tor.po b/docs/source/locale/pl/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/pl/LC_MESSAGES/tor.po
+++ b/docs/source/locale/pl/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/advanced.po b/docs/source/locale/pt_BR/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/pt_BR/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/develop.po b/docs/source/locale/pt_BR/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/develop.po
+++ b/docs/source/locale/pt_BR/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/features.po b/docs/source/locale/pt_BR/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/features.po
+++ b/docs/source/locale/pt_BR/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/help.po b/docs/source/locale/pt_BR/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/help.po
+++ b/docs/source/locale/pt_BR/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/index.po b/docs/source/locale/pt_BR/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/index.po
+++ b/docs/source/locale/pt_BR/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/install.po b/docs/source/locale/pt_BR/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/install.po
+++ b/docs/source/locale/pt_BR/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/security.po b/docs/source/locale/pt_BR/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/security.po
+++ b/docs/source/locale/pt_BR/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/sphinx.po b/docs/source/locale/pt_BR/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/pt_BR/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/tor.po b/docs/source/locale/pt_BR/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/pt_BR/LC_MESSAGES/tor.po
+++ b/docs/source/locale/pt_BR/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/advanced.po b/docs/source/locale/pt_PT/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/pt_PT/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/develop.po b/docs/source/locale/pt_PT/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/develop.po
+++ b/docs/source/locale/pt_PT/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/features.po b/docs/source/locale/pt_PT/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/features.po
+++ b/docs/source/locale/pt_PT/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/help.po b/docs/source/locale/pt_PT/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/help.po
+++ b/docs/source/locale/pt_PT/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/index.po b/docs/source/locale/pt_PT/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/index.po
+++ b/docs/source/locale/pt_PT/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/install.po b/docs/source/locale/pt_PT/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/install.po
+++ b/docs/source/locale/pt_PT/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/security.po b/docs/source/locale/pt_PT/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/security.po
+++ b/docs/source/locale/pt_PT/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/sphinx.po b/docs/source/locale/pt_PT/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/pt_PT/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/tor.po b/docs/source/locale/pt_PT/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/pt_PT/LC_MESSAGES/tor.po
+++ b/docs/source/locale/pt_PT/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/ro/LC_MESSAGES/advanced.po b/docs/source/locale/ro/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/ro/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/ro/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/ro/LC_MESSAGES/develop.po b/docs/source/locale/ro/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/ro/LC_MESSAGES/develop.po
+++ b/docs/source/locale/ro/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/ro/LC_MESSAGES/features.po b/docs/source/locale/ro/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/ro/LC_MESSAGES/features.po
+++ b/docs/source/locale/ro/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/ro/LC_MESSAGES/help.po b/docs/source/locale/ro/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/ro/LC_MESSAGES/help.po
+++ b/docs/source/locale/ro/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/ro/LC_MESSAGES/index.po b/docs/source/locale/ro/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/ro/LC_MESSAGES/index.po
+++ b/docs/source/locale/ro/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/ro/LC_MESSAGES/install.po b/docs/source/locale/ro/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/ro/LC_MESSAGES/install.po
+++ b/docs/source/locale/ro/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/ro/LC_MESSAGES/security.po b/docs/source/locale/ro/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/ro/LC_MESSAGES/security.po
+++ b/docs/source/locale/ro/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/ro/LC_MESSAGES/sphinx.po b/docs/source/locale/ro/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/ro/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/ro/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/ro/LC_MESSAGES/tor.po b/docs/source/locale/ro/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/ro/LC_MESSAGES/tor.po
+++ b/docs/source/locale/ro/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/ru/LC_MESSAGES/advanced.po b/docs/source/locale/ru/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/ru/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/ru/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/ru/LC_MESSAGES/develop.po b/docs/source/locale/ru/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/ru/LC_MESSAGES/develop.po
+++ b/docs/source/locale/ru/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/ru/LC_MESSAGES/features.po b/docs/source/locale/ru/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/ru/LC_MESSAGES/features.po
+++ b/docs/source/locale/ru/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/ru/LC_MESSAGES/help.po b/docs/source/locale/ru/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/ru/LC_MESSAGES/help.po
+++ b/docs/source/locale/ru/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/ru/LC_MESSAGES/index.po b/docs/source/locale/ru/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/ru/LC_MESSAGES/index.po
+++ b/docs/source/locale/ru/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/ru/LC_MESSAGES/install.po b/docs/source/locale/ru/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/ru/LC_MESSAGES/install.po
+++ b/docs/source/locale/ru/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/ru/LC_MESSAGES/security.po b/docs/source/locale/ru/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/ru/LC_MESSAGES/security.po
+++ b/docs/source/locale/ru/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/ru/LC_MESSAGES/sphinx.po b/docs/source/locale/ru/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/ru/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/ru/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/ru/LC_MESSAGES/tor.po b/docs/source/locale/ru/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/ru/LC_MESSAGES/tor.po
+++ b/docs/source/locale/ru/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/advanced.po b/docs/source/locale/sr@latin/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/sr@latin/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/develop.po b/docs/source/locale/sr@latin/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/develop.po
+++ b/docs/source/locale/sr@latin/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/features.po b/docs/source/locale/sr@latin/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/features.po
+++ b/docs/source/locale/sr@latin/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/help.po b/docs/source/locale/sr@latin/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/help.po
+++ b/docs/source/locale/sr@latin/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/index.po b/docs/source/locale/sr@latin/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/index.po
+++ b/docs/source/locale/sr@latin/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/install.po b/docs/source/locale/sr@latin/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/install.po
+++ b/docs/source/locale/sr@latin/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/security.po b/docs/source/locale/sr@latin/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/security.po
+++ b/docs/source/locale/sr@latin/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/sphinx.po b/docs/source/locale/sr@latin/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/sr@latin/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/tor.po b/docs/source/locale/sr@latin/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/sr@latin/LC_MESSAGES/tor.po
+++ b/docs/source/locale/sr@latin/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/sv/LC_MESSAGES/advanced.po b/docs/source/locale/sv/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/sv/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/sv/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/sv/LC_MESSAGES/develop.po b/docs/source/locale/sv/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/sv/LC_MESSAGES/develop.po
+++ b/docs/source/locale/sv/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/sv/LC_MESSAGES/features.po b/docs/source/locale/sv/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/sv/LC_MESSAGES/features.po
+++ b/docs/source/locale/sv/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/sv/LC_MESSAGES/help.po b/docs/source/locale/sv/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/sv/LC_MESSAGES/help.po
+++ b/docs/source/locale/sv/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/sv/LC_MESSAGES/index.po b/docs/source/locale/sv/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/sv/LC_MESSAGES/index.po
+++ b/docs/source/locale/sv/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/sv/LC_MESSAGES/install.po b/docs/source/locale/sv/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/sv/LC_MESSAGES/install.po
+++ b/docs/source/locale/sv/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/sv/LC_MESSAGES/security.po b/docs/source/locale/sv/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/sv/LC_MESSAGES/security.po
+++ b/docs/source/locale/sv/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/sv/LC_MESSAGES/sphinx.po b/docs/source/locale/sv/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/sv/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/sv/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/sv/LC_MESSAGES/tor.po b/docs/source/locale/sv/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/sv/LC_MESSAGES/tor.po
+++ b/docs/source/locale/sv/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/te/LC_MESSAGES/advanced.po b/docs/source/locale/te/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/te/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/te/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/te/LC_MESSAGES/develop.po b/docs/source/locale/te/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/te/LC_MESSAGES/develop.po
+++ b/docs/source/locale/te/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/te/LC_MESSAGES/features.po b/docs/source/locale/te/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/te/LC_MESSAGES/features.po
+++ b/docs/source/locale/te/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/te/LC_MESSAGES/help.po b/docs/source/locale/te/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/te/LC_MESSAGES/help.po
+++ b/docs/source/locale/te/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/te/LC_MESSAGES/index.po b/docs/source/locale/te/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/te/LC_MESSAGES/index.po
+++ b/docs/source/locale/te/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/te/LC_MESSAGES/install.po b/docs/source/locale/te/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/te/LC_MESSAGES/install.po
+++ b/docs/source/locale/te/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/te/LC_MESSAGES/security.po b/docs/source/locale/te/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/te/LC_MESSAGES/security.po
+++ b/docs/source/locale/te/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/te/LC_MESSAGES/sphinx.po b/docs/source/locale/te/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/te/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/te/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/te/LC_MESSAGES/tor.po b/docs/source/locale/te/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/te/LC_MESSAGES/tor.po
+++ b/docs/source/locale/te/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/tr/LC_MESSAGES/advanced.po b/docs/source/locale/tr/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/tr/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/tr/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/tr/LC_MESSAGES/develop.po b/docs/source/locale/tr/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/tr/LC_MESSAGES/develop.po
+++ b/docs/source/locale/tr/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/tr/LC_MESSAGES/features.po b/docs/source/locale/tr/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/tr/LC_MESSAGES/features.po
+++ b/docs/source/locale/tr/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/tr/LC_MESSAGES/help.po b/docs/source/locale/tr/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/tr/LC_MESSAGES/help.po
+++ b/docs/source/locale/tr/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/tr/LC_MESSAGES/index.po b/docs/source/locale/tr/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/tr/LC_MESSAGES/index.po
+++ b/docs/source/locale/tr/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/tr/LC_MESSAGES/install.po b/docs/source/locale/tr/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/tr/LC_MESSAGES/install.po
+++ b/docs/source/locale/tr/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/tr/LC_MESSAGES/security.po b/docs/source/locale/tr/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/tr/LC_MESSAGES/security.po
+++ b/docs/source/locale/tr/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/tr/LC_MESSAGES/sphinx.po b/docs/source/locale/tr/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/tr/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/tr/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/tr/LC_MESSAGES/tor.po b/docs/source/locale/tr/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/tr/LC_MESSAGES/tor.po
+++ b/docs/source/locale/tr/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/uk/LC_MESSAGES/advanced.po b/docs/source/locale/uk/LC_MESSAGES/advanced.po
index 2aa4cb0f..2aa4cb0f 100644
--- a/desktop/docs/source/locale/uk/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/uk/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/uk/LC_MESSAGES/develop.po b/docs/source/locale/uk/LC_MESSAGES/develop.po
index c60595af..c60595af 100644
--- a/desktop/docs/source/locale/uk/LC_MESSAGES/develop.po
+++ b/docs/source/locale/uk/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/uk/LC_MESSAGES/features.po b/docs/source/locale/uk/LC_MESSAGES/features.po
index 7db18a70..7db18a70 100644
--- a/desktop/docs/source/locale/uk/LC_MESSAGES/features.po
+++ b/docs/source/locale/uk/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/uk/LC_MESSAGES/help.po b/docs/source/locale/uk/LC_MESSAGES/help.po
index 9f5d80e6..9f5d80e6 100644
--- a/desktop/docs/source/locale/uk/LC_MESSAGES/help.po
+++ b/docs/source/locale/uk/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/uk/LC_MESSAGES/index.po b/docs/source/locale/uk/LC_MESSAGES/index.po
index 1e3d6b41..1e3d6b41 100644
--- a/desktop/docs/source/locale/uk/LC_MESSAGES/index.po
+++ b/docs/source/locale/uk/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/uk/LC_MESSAGES/install.po b/docs/source/locale/uk/LC_MESSAGES/install.po
index 20212bb9..20212bb9 100644
--- a/desktop/docs/source/locale/uk/LC_MESSAGES/install.po
+++ b/docs/source/locale/uk/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/uk/LC_MESSAGES/security.po b/docs/source/locale/uk/LC_MESSAGES/security.po
index 7e1deb57..7e1deb57 100644
--- a/desktop/docs/source/locale/uk/LC_MESSAGES/security.po
+++ b/docs/source/locale/uk/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/uk/LC_MESSAGES/sphinx.po b/docs/source/locale/uk/LC_MESSAGES/sphinx.po
index f975c617..f975c617 100644
--- a/desktop/docs/source/locale/uk/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/uk/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/uk/LC_MESSAGES/tor.po b/docs/source/locale/uk/LC_MESSAGES/tor.po
index 77513c75..77513c75 100644
--- a/desktop/docs/source/locale/uk/LC_MESSAGES/tor.po
+++ b/docs/source/locale/uk/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/advanced.po b/docs/source/locale/zh_CN/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/zh_CN/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/develop.po b/docs/source/locale/zh_CN/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/develop.po
+++ b/docs/source/locale/zh_CN/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/features.po b/docs/source/locale/zh_CN/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/features.po
+++ b/docs/source/locale/zh_CN/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/help.po b/docs/source/locale/zh_CN/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/help.po
+++ b/docs/source/locale/zh_CN/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/index.po b/docs/source/locale/zh_CN/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/index.po
+++ b/docs/source/locale/zh_CN/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/install.po b/docs/source/locale/zh_CN/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/install.po
+++ b/docs/source/locale/zh_CN/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/security.po b/docs/source/locale/zh_CN/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/security.po
+++ b/docs/source/locale/zh_CN/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/sphinx.po b/docs/source/locale/zh_CN/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/zh_CN/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/tor.po b/docs/source/locale/zh_CN/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/zh_CN/LC_MESSAGES/tor.po
+++ b/docs/source/locale/zh_CN/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/advanced.po b/docs/source/locale/zh_TW/LC_MESSAGES/advanced.po
index c3847657..c3847657 100644
--- a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/advanced.po
+++ b/docs/source/locale/zh_TW/LC_MESSAGES/advanced.po
diff --git a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/develop.po b/docs/source/locale/zh_TW/LC_MESSAGES/develop.po
index f20ff51c..f20ff51c 100644
--- a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/develop.po
+++ b/docs/source/locale/zh_TW/LC_MESSAGES/develop.po
diff --git a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/features.po b/docs/source/locale/zh_TW/LC_MESSAGES/features.po
index 29841dd8..29841dd8 100644
--- a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/features.po
+++ b/docs/source/locale/zh_TW/LC_MESSAGES/features.po
diff --git a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/help.po b/docs/source/locale/zh_TW/LC_MESSAGES/help.po
index d965eb13..d965eb13 100644
--- a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/help.po
+++ b/docs/source/locale/zh_TW/LC_MESSAGES/help.po
diff --git a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/index.po b/docs/source/locale/zh_TW/LC_MESSAGES/index.po
index 2ad2653c..2ad2653c 100644
--- a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/index.po
+++ b/docs/source/locale/zh_TW/LC_MESSAGES/index.po
diff --git a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/install.po b/docs/source/locale/zh_TW/LC_MESSAGES/install.po
index a2f5b321..a2f5b321 100644
--- a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/install.po
+++ b/docs/source/locale/zh_TW/LC_MESSAGES/install.po
diff --git a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/security.po b/docs/source/locale/zh_TW/LC_MESSAGES/security.po
index 13d11a17..13d11a17 100644
--- a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/security.po
+++ b/docs/source/locale/zh_TW/LC_MESSAGES/security.po
diff --git a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/sphinx.po b/docs/source/locale/zh_TW/LC_MESSAGES/sphinx.po
index f2cc8ed5..f2cc8ed5 100644
--- a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/sphinx.po
+++ b/docs/source/locale/zh_TW/LC_MESSAGES/sphinx.po
diff --git a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/tor.po b/docs/source/locale/zh_TW/LC_MESSAGES/tor.po
index a4d227cd..a4d227cd 100644
--- a/desktop/docs/source/locale/zh_TW/LC_MESSAGES/tor.po
+++ b/docs/source/locale/zh_TW/LC_MESSAGES/tor.po
diff --git a/desktop/docs/source/security.rst b/docs/source/security.rst
index e7f4529b..e7f4529b 100644
--- a/desktop/docs/source/security.rst
+++ b/docs/source/security.rst
diff --git a/desktop/docs/source/tor.rst b/docs/source/tor.rst
index 5efe3dc0..5efe3dc0 100644
--- a/desktop/docs/source/tor.rst
+++ b/docs/source/tor.rst