From c725ca63d8b47719f6084e56c610afc77b1214ab Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 12 Sep 2022 19:06:56 +0800 Subject: [PATCH] update --- package.json | 11 +- src/css/app.css | 2 +- src/css/app.scss | 58 +++---- src/css/reset-basic.css | 85 +++++++--- src/index.html | 72 +++----- src/js/app.js | 38 ++--- src/js/lib/audio/index.js | 26 ++- src/js/lib/drag/core.js | 2 +- src/js/lib/drag/doc.md | 85 ++++++++++ src/js/lib/drag/index.js | 2 +- src/js/lib/events.js | 38 +++++ src/js/lib/form/button.js | 9 +- src/js/lib/form/cascader.js | 10 ++ src/js/lib/form/checkbox-item.js | 9 +- src/js/lib/form/checkbox.js | 9 +- src/js/lib/form/dropdown.js | 10 ++ src/js/lib/form/index.js | 1 + src/js/lib/form/input.js | 9 +- src/js/lib/form/link.js | 10 ++ src/js/lib/form/number.js | 9 +- src/js/lib/form/option.js | 10 ++ src/js/lib/form/passwd.js | 10 ++ src/js/lib/form/progress.js | 13 -- src/js/lib/form/radio-item.js | 9 +- src/js/lib/form/radio.js | 9 +- src/js/lib/form/select.js | 9 +- src/js/lib/form/star.js | 9 +- src/js/lib/form/switch.js | 9 +- src/js/lib/form/textarea.js | 10 ++ src/js/lib/icon/index.js | 9 +- src/js/lib/icon/svg.js | 2 +- src/js/lib/layer/index.js | 13 +- src/js/lib/scroll/index.js | 9 +- src/js/lib/socket.js | 26 --- src/js/lib/store/index.js | 1 - src/js/lib/utils.js | 2 +- src/main.js | 12 +- src/tools/db/index.js | 63 ------- src/tools/db/init.js | 47 ------ src/tools/init.js | 276 +++++++++++++++---------------- src/tools/inject.js | 33 ++++ src/tools/menu.js | 75 --------- src/tools/shortcut.js | 2 - src/tools/windows.js | 25 ++- 44 files changed, 544 insertions(+), 634 deletions(-) create mode 100644 src/js/lib/drag/doc.md create mode 100644 src/js/lib/events.js create mode 100644 src/js/lib/form/cascader.js create mode 100644 src/js/lib/form/dropdown.js create mode 100644 src/js/lib/form/index.js create mode 100644 src/js/lib/form/link.js create mode 100644 src/js/lib/form/option.js create mode 100644 src/js/lib/form/passwd.js delete mode 100644 src/js/lib/form/progress.js create mode 100644 src/js/lib/form/textarea.js delete mode 100644 src/js/lib/socket.js delete mode 100644 src/js/lib/store/index.js delete mode 100644 src/tools/db/index.js delete mode 100644 src/tools/db/init.js create mode 100644 src/tools/inject.js delete mode 100644 src/tools/menu.js diff --git a/package.json b/package.json index 4a93a66..aff6089 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,10 @@ { - "name": "top.yutent.sonist", + "name": "sonist", "version": "2.0.0-alpha-4", "description": "Music Player", "main": "src/main.js", "scripts": { - "start": "electron .", - "pack": "electron-builder" + "start": "electron ." }, "author": { "name": "yutent", @@ -16,11 +15,10 @@ "dependencies": { "crypto.js": "^2.0.2", "iofs": "^1.5.1", - "music-metadata": "^7.5.0", - "sqlite3": "^5.0.0" + "music-metadata": "^7.5.0" }, "build": { - "appId": "top.yutent.sonist", + "appId": "sonist", "productName": "Sonist", "copyright": "Copyright © 2019 ${author}", "directories": { @@ -34,7 +32,6 @@ "files": [ "src/**/*", "node_modules/iofs/*", - "node_modules/sqlite3/*", "node_modules/crypto.js/*", "node_modules/music-metadata/*" ], diff --git a/src/css/app.css b/src/css/app.css index 300804c..7b41e5e 100644 --- a/src/css/app.css +++ b/src/css/app.css @@ -1 +1 @@ -.app{position:relative;display:flex;flex-direction:column;width:100%;height:100%}.app .album-cover{overflow:hidden;position:absolute;z-index:-1;left:0;top:0;width:100%;height:394px}.app .album-cover img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;-webkit-filter:blur(35px) opacity(0.8);filter:blur(35px) opacity(0.8)}.app .title-bar{position:relative;display:flex;align-items:center;z-index:9;height:26px;background:rgba(32,32,32,0.5)}.app .main-body{overflow:hidden;flex:1;display:flex;justify-content:space-between;background:rgba(32,32,32,0.5)}.app .main-body .aside{width:180px;height:100%;padding:0 16px;line-height:2}.app .main-body .aside fieldset{border:0;color:#ebebeb;font-size:12px}.app .main-body .aside fieldset legend{font-size:18px;background:linear-gradient(to bottom, #58ffdf 50%, #459888);-webkit-background-clip:text;background-clip:text;color:transparent}.app .main-body .aside fieldset .item{padding-left:12px;line-height:1.75}.app .main-body .aside fieldset button{width:42px;height:16px;margin-left:12px;font-size:10px;border:0;border-radius:9px;background:#64b5f6;color:#fff}.app .main-body .song-box{display:flex;flex-direction:column;width:618px}.app .main-body .song-box .preview{position:relative;display:flex;align-items:center;width:100%;height:99px;padding-bottom:16px;border-bottom:1px solid rgba(200,200,200,0.1)}.app .main-body .song-box .preview .album{width:80px;height:80px}.app .main-body .song-box .preview .album img{width:100%;height:100%}.app .main-body .song-box .preview .info{display:flex;flex-direction:column;justify-content:center;width:320px;margin-left:32px}.app .main-body .song-box .preview .info strong{height:36px;font-size:18px;font-weight:normal}.app .main-body .song-box .preview .info cite{font-size:12px;font-style:normal}.app .main-body .song-box .preview .info p{font-size:12px;color:#bdbdbd}.app .main-body .song-box .preview .total{position:absolute;right:32px;bottom:16px;font-size:16px;font-weight:bold;font-family:Raleway}.app .main-body .song-box .scroll-box{overflow:hidden;flex:1;width:100%;padding:16px 6px;border-top:1px solid rgba(32,32,32,0.1)}.app .main-body .song-box .list{height:100%;font-size:12px}.app .main-body .song-box .list .item{display:flex;align-items:center;height:26px;padding:0 12px;border-radius:13px}.app .main-body .song-box .list .item .idx{position:relative;width:64px;padding-left:16px;font-size:12px;font-family:Raleway}.app .main-body .song-box .list .item .name{flex:1}.app .main-body .song-box .list .item .artist{width:128px;margin-left:12px}.app .main-body .song-box .list .item .duration{width:42px;margin-left:12px}.app .main-body .song-box .list .item.on{color:#feac23;font-size:14px}.app .main-body .song-box .list .item.on .idx::before{position:absolute;left:0;top:3px;font-size:10px;content:'▶ '}.app .main-body .song-box .list .item.active,.app .main-body .song-box .list .item:hover{color:#58ffdf;background:rgba(29,77,68,0.15)}.app .play-bar{height:66px;width:100%;background:rgba(24,24,24,0.3);color:#fff}.app .play-bar .stat-bar{display:flex;align-items:center;justify-content:space-between;height:20px;color:#ebebeb}.app .play-bar .stat-bar .time{width:42px;margin:0 6px;text-align:center;font-size:12px}.app .play-bar .stat-bar .progress{position:relative;flex:1;display:flex;align-items:flex-start;height:3px;background:#b2cfe3}.app .play-bar .stat-bar .progress input{position:absolute;left:0;top:0;display:block;width:100%;height:3px;opacity:0}.app .play-bar .stat-bar .thumb{height:3px;background:#58ffdf}.app .play-bar .ctrl-box{display:flex;align-items:center;height:42px}.app .play-bar .ctrl-box .holder{flex:1}.app .play-bar .ctrl-box .info{display:flex;flex-direction:column;justify-content:center;width:320px;height:42px;padding-left:12px;line-height:1.25}.app .play-bar .ctrl-box .info strong{font-size:14px;font-weight:500}.app .play-bar .ctrl-box .info cite{font-size:12px;font-style:normal;color:#aeaeae}.app .play-bar .ctrl-box .play-btn{display:flex;align-items:center;justify-content:space-between;width:120px;height:42px;margin-left:32px}.app .play-bar .ctrl-box .play-btn .item{width:22px;height:22px;background-repeat:no-repeat;background-size:cover;transition:background 0.1s ease-in-out;cursor:pointer}.app .play-bar .ctrl-box .play-btn .item.prev{background-image:url(/images/ctrl/prev.png)}.app .play-bar .ctrl-box .play-btn .item.prev:hover,.app .play-bar .ctrl-box .play-btn .item.prev:active{background-image:url(/images/ctrl/prev_a.png)}.app .play-bar .ctrl-box .play-btn .item.on,.app .play-bar .ctrl-box .play-btn .item.off{width:42px;height:42px}.app .play-bar .ctrl-box .play-btn .item.on{background-image:url(/images/ctrl/play.png);-webkit-animation:round 2s linear infinite;animation:round 2s linear infinite}.app .play-bar .ctrl-box .play-btn .item.on:hover,.app .play-bar .ctrl-box .play-btn .item.on:active{background-image:url(/images/ctrl/play_a.png)}.app .play-bar .ctrl-box .play-btn .item.off{background-image:url(/images/ctrl/pause.png)}.app .play-bar .ctrl-box .play-btn .item.off:hover,.app .play-bar .ctrl-box .play-btn .item.off:active{background-image:url(/images/ctrl/pause_a.png)}.app .play-bar .ctrl-box .play-btn .item.next{background-image:url(/images/ctrl/next.png)}.app .play-bar .ctrl-box .play-btn .item.next:hover,.app .play-bar .ctrl-box .play-btn .item.next:active{background-image:url(/images/ctrl/next_a.png)}.app .play-bar .ctrl-box .play-action{display:flex;align-items:center;justify-content:space-between;width:64px;height:22px;margin-right:16px}.app .play-bar .ctrl-box .play-action .item{width:22px;height:22px;background-repeat:no-repeat;background-size:cover;transition:background 0.1s ease-in-out;cursor:pointer}.app .play-bar .ctrl-box .play-action .item.volume,.app .play-bar .ctrl-box .play-action .item.mute{position:relative}.app .play-bar .ctrl-box .play-action .item.volume a,.app .play-bar .ctrl-box .play-action .item.mute a{display:block;width:22px;height:22px;background-repeat:no-repeat;background-size:cover;transition:background 0.1s ease-in-out}.app .play-bar .ctrl-box .play-action .item.volume .range,.app .play-bar .ctrl-box .play-action .item.mute .range{visibility:hidden;position:absolute;right:-5px;bottom:20px;width:32px;height:128px;padding:14px;border-radius:3px;background:rgba(128,128,128,0.8)}.app .play-bar .ctrl-box .play-action .item.volume .range input,.app .play-bar .ctrl-box .play-action .item.mute .range input{display:block;width:4px;height:100px;border-radius:3px;-webkit-appearance:slider-vertical;-moz-appearance:slider-vertical;appearance:slider-vertical}.app .play-bar .ctrl-box .play-action .item.volume:hover .range,.app .play-bar .ctrl-box .play-action .item.mute:hover .range{visibility:visible}.app .play-bar .ctrl-box .play-action .item.volume a{background-image:url(/images/ctrl/volume.png)}.app .play-bar .ctrl-box .play-action .item.volume a:hover,.app .play-bar .ctrl-box .play-action .item.volume a:active{background-image:url(/images/ctrl/volume_a.png)}.app .play-bar .ctrl-box .play-action .item.mute a{background-image:url(/images/ctrl/mute.png)}.app .play-bar .ctrl-box .play-action .item.mute a:hover,.app .play-bar .ctrl-box .play-action .item.mute a:active{background-image:url(/images/ctrl/mute_a.png)}.app .play-bar .ctrl-box .play-action .item.single{background-image:url(/images/ctrl/single.png)}.app .play-bar .ctrl-box .play-action .item.single:hover,.app .play-bar .ctrl-box .play-action .item.single:active{background-image:url(/images/ctrl/single_a.png)}.app .play-bar .ctrl-box .play-action .item.all{background-image:url(/images/ctrl/all.png)}.app .play-bar .ctrl-box .play-action .item.all:hover,.app .play-bar .ctrl-box .play-action .item.all:active{background-image:url(/images/ctrl/all_a.png)}.app .play-bar .ctrl-box .play-action .item.rand{background-image:url(/images/ctrl/rand.png)}.app .play-bar .ctrl-box .play-action .item.rand:hover,.app .play-bar .ctrl-box .play-action .item.rand:active{background-image:url(/images/ctrl/rand_a.png)}@-webkit-keyframes round{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes round{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}} +.app{position:relative;display:flex;flex-direction:column;width:100%;height:100%}.app .album-cover{overflow:hidden;position:absolute;z-index:-1;left:0;top:0;width:100%;height:394px}.app .album-cover img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;filter:blur(35px) opacity(0.8)}.app .title-bar{position:relative;display:flex;align-items:center;z-index:9;height:32px;background:rgba(32,32,32,.5)}.app .title-bar .btns{display:flex;height:16px;padding:0 4px}.app .title-bar .btn{width:16px;height:16px;margin:0 6px;border-radius:50%;background:#86909b no-repeat;background-size:100%}.app .title-bar .btns.active .btn.close{background:#ff5061}.app .title-bar .btns.active .btn.mini{background:#ffb618}.app .main-body{overflow:hidden;flex:1;display:flex;justify-content:space-between;background:rgba(32,32,32,.5)}.app .main-body .aside{width:180px;height:100%;padding:0 16px;line-height:2}.app .main-body .aside fieldset{border:0;color:#ebebeb;font-size:12px}.app .main-body .aside fieldset legend{font-size:18px;background:linear-gradient(to bottom, #58ffdf 50%, #459888);-webkit-background-clip:text;background-clip:text;color:transparent}.app .main-body .aside fieldset .item{padding-left:12px;line-height:1.75}.app .main-body .aside fieldset button{width:42px;height:16px;margin-left:12px;font-size:10px;border:0;border-radius:9px;background:#64b5f6;color:#fff}.app .main-body .song-box{display:flex;flex-direction:column;width:618px}.app .main-body .song-box .preview{position:relative;display:flex;align-items:center;width:100%;height:99px;padding-bottom:16px;border-bottom:1px solid rgba(200,200,200,.1)}.app .main-body .song-box .preview .album{width:80px;height:80px}.app .main-body .song-box .preview .album img{width:100%;height:100%}.app .main-body .song-box .preview .info{display:flex;flex-direction:column;justify-content:center;width:320px;margin-left:32px}.app .main-body .song-box .preview .info strong{height:36px;font-size:18px;font-weight:normal}.app .main-body .song-box .preview .info cite{font-size:12px;font-style:normal}.app .main-body .song-box .preview .info p{font-size:12px;color:#bdbdbd}.app .main-body .song-box .preview .total{position:absolute;right:32px;bottom:16px;font-size:16px;font-weight:bold;font-family:Raleway}.app .main-body .song-box .scroll-box{overflow:hidden;flex:1;width:100%;padding:16px 6px;border-top:1px solid rgba(32,32,32,.1)}.app .main-body .song-box .list{height:100%;font-size:12px}.app .main-body .song-box .list .item{display:flex;align-items:center;height:26px;padding:0 12px;border-radius:13px}.app .main-body .song-box .list .item .idx{position:relative;width:64px;padding-left:16px;font-size:12px;font-family:Raleway}.app .main-body .song-box .list .item .name{flex:1}.app .main-body .song-box .list .item .artist{width:128px;margin-left:12px}.app .main-body .song-box .list .item .duration{width:42px;margin-left:12px}.app .main-body .song-box .list .item.on{color:#feac23;font-size:14px}.app .main-body .song-box .list .item.on .idx::before{position:absolute;left:0;top:3px;font-size:10px;content:"▶ "}.app .main-body .song-box .list .item.active,.app .main-body .song-box .list .item:hover{color:#58ffdf;background:rgba(29,77,68,.15)}.app .play-bar{height:66px;width:100%;background:rgba(24,24,24,.3);color:#fff}.app .play-bar .stat-bar{display:flex;align-items:center;justify-content:space-between;height:20px;color:#ebebeb}.app .play-bar .stat-bar .time{width:42px;margin:0 6px;text-align:center;font-size:12px}.app .play-bar .stat-bar .progress{position:relative;flex:1;display:flex;align-items:flex-start;height:3px;background:#b2cfe3}.app .play-bar .stat-bar .progress input{position:absolute;left:0;top:0;display:block;width:100%;height:3px;opacity:0}.app .play-bar .stat-bar .thumb{height:3px;background:#58ffdf}.app .play-bar .ctrl-box{display:flex;align-items:center;justify-content:space-between;height:42px;padding:0 16px}.app .play-bar .ctrl-box .play-btn{display:flex;align-items:center;justify-content:space-between;width:120px;height:42px}.app .play-bar .ctrl-box .play-btn .item{width:22px;height:22px;background-repeat:no-repeat;background-size:cover;transition:background .1s ease-in-out;cursor:pointer}.app .play-bar .ctrl-box .play-btn .item.prev{background-image:url(/images/ctrl/prev.png)}.app .play-bar .ctrl-box .play-btn .item.prev:hover,.app .play-bar .ctrl-box .play-btn .item.prev:active{background-image:url(/images/ctrl/prev_a.png)}.app .play-bar .ctrl-box .play-btn .item.on,.app .play-bar .ctrl-box .play-btn .item.off{width:42px;height:42px}.app .play-bar .ctrl-box .play-btn .item.on{background-image:url(/images/ctrl/play.png);-webkit-animation:round 2s linear infinite;animation:round 2s linear infinite}.app .play-bar .ctrl-box .play-btn .item.on:hover,.app .play-bar .ctrl-box .play-btn .item.on:active{background-image:url(/images/ctrl/play_a.png)}.app .play-bar .ctrl-box .play-btn .item.off{background-image:url(/images/ctrl/pause.png)}.app .play-bar .ctrl-box .play-btn .item.off:hover,.app .play-bar .ctrl-box .play-btn .item.off:active{background-image:url(/images/ctrl/pause_a.png)}.app .play-bar .ctrl-box .play-btn .item.next{background-image:url(/images/ctrl/next.png)}.app .play-bar .ctrl-box .play-btn .item.next:hover,.app .play-bar .ctrl-box .play-btn .item.next:active{background-image:url(/images/ctrl/next_a.png)}.app .play-bar .ctrl-box .play-action{display:flex;align-items:center;justify-content:space-between;width:52px;height:22px}.app .play-bar .ctrl-box .play-action .item{width:22px;height:22px;background-repeat:no-repeat;background-size:cover;transition:background .1s ease-in-out;cursor:pointer}.app .play-bar .ctrl-box .play-action .item.volume,.app .play-bar .ctrl-box .play-action .item.mute{position:relative}.app .play-bar .ctrl-box .play-action .item.volume a,.app .play-bar .ctrl-box .play-action .item.mute a{display:block;width:22px;height:22px;background-repeat:no-repeat;background-size:cover;transition:background .1s ease-in-out}.app .play-bar .ctrl-box .play-action .item.volume .range,.app .play-bar .ctrl-box .play-action .item.mute .range{visibility:hidden;position:absolute;right:-5px;bottom:20px;width:32px;height:128px;padding:14px;border-radius:3px;background:rgba(128,128,128,.8)}.app .play-bar .ctrl-box .play-action .item.volume .range input,.app .play-bar .ctrl-box .play-action .item.mute .range input{display:block;width:4px;height:100px;border-radius:3px;-webkit-appearance:slider-vertical;-moz-appearance:slider-vertical;appearance:slider-vertical}.app .play-bar .ctrl-box .play-action .item.volume:hover .range,.app .play-bar .ctrl-box .play-action .item.mute:hover .range{visibility:visible}.app .play-bar .ctrl-box .play-action .item.volume a{background-image:url(/images/ctrl/volume.png)}.app .play-bar .ctrl-box .play-action .item.volume a:hover,.app .play-bar .ctrl-box .play-action .item.volume a:active{background-image:url(/images/ctrl/volume_a.png)}.app .play-bar .ctrl-box .play-action .item.mute a{background-image:url(/images/ctrl/mute.png)}.app .play-bar .ctrl-box .play-action .item.mute a:hover,.app .play-bar .ctrl-box .play-action .item.mute a:active{background-image:url(/images/ctrl/mute_a.png)}.app .play-bar .ctrl-box .play-action .item.single{background-image:url(/images/ctrl/single.png)}.app .play-bar .ctrl-box .play-action .item.single:hover,.app .play-bar .ctrl-box .play-action .item.single:active{background-image:url(/images/ctrl/single_a.png)}.app .play-bar .ctrl-box .play-action .item.all{background-image:url(/images/ctrl/all.png)}.app .play-bar .ctrl-box .play-action .item.all:hover,.app .play-bar .ctrl-box .play-action .item.all:active{background-image:url(/images/ctrl/all_a.png)}.app .play-bar .ctrl-box .play-action .item.rand{background-image:url(/images/ctrl/rand.png)}.app .play-bar .ctrl-box .play-action .item.rand:hover,.app .play-bar .ctrl-box .play-action .item.rand:active{background-image:url(/images/ctrl/rand_a.png)}@-webkit-keyframes round{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes round{from{transform:rotate(0)}to{transform:rotate(360deg)}} \ No newline at end of file diff --git a/src/css/app.scss b/src/css/app.scss index ad08d94..998c1f4 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -37,8 +37,33 @@ display: flex; align-items: center; z-index: 9; - height: 26px; + height: 32px; background: rgba(32, 32, 32, 0.5); + + .btns { + display: flex; + height: 16px; + padding: 0 4px; + } + + .btn { + width: 16px; + height: 16px; + margin: 0 6px; + border-radius: 50%; + background: #86909b no-repeat; + background-size: 100%; + } + + .btns.active { + .btn.close { + background: #ff5061; + } + + .btn.mini { + background: #ffb618; + } + } } .main-body { @@ -251,32 +276,9 @@ .ctrl-box { display: flex; align-items: center; + justify-content: space-between; height: 42px; - - .holder { - flex: 1; - } - - .info { - display: flex; - flex-direction: column; - justify-content: center; - width: 320px; - height: 42px; - padding-left: 12px; - line-height: 1.25; - - strong { - font-size: 14px; - font-weight: 500; - } - - cite { - font-size: 12px; - font-style: normal; - color: #aeaeae; - } - } + padding: 0 16px; .play-btn { display: flex; @@ -284,7 +286,6 @@ justify-content: space-between; width: 120px; height: 42px; - margin-left: 32px; .item { width: 22px; @@ -340,9 +341,8 @@ display: flex; align-items: center; justify-content: space-between; - width: 64px; + width: 52px; height: 22px; - margin-right: 16px; .item { width: 22px; diff --git a/src/css/reset-basic.css b/src/css/reset-basic.css index 0fd9c4d..67179c8 100644 --- a/src/css/reset-basic.css +++ b/src/css/reset-basic.css @@ -1,17 +1,12 @@ @charset "UTF-8"; /** * - * @authors yutent (yutent@doui.cc) + * @authors yutent (yutent.io@gmail.com) * @date 2014-10-10 00:45:09 * - * doui的CSS规范 + * CSS规范 * * 不能出现大写,以连字符风格命名 - * 表示状态的应该用do-st-*命名 - * 表示功能的应该用do-fn-*命名 - * 表示页面模块的应该用do-mod-modname 命名 - * 表示UI组件的应该用do-uiname命名, 它的子元素应该全部包在 .do-uiname这个根类下 - * 如 .do-layer .body { ... } * * 样式规则的出现顺序 * 1 display float position overflow z-index 表示定位/布局的属性 @@ -22,30 +17,66 @@ * */ - -* {margin: 0;padding: 0;vertical-align: baseline;box-sizing:border-box;} -::before,::after {box-sizing:border-box;} +* {margin: 0;padding: 0;vertical-align: baseline;box-sizing: border-box;} +::before, ::after {box-sizing: border-box;} /* HTML5 display-role reset for older browsers */ -article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section,content {display: block;} -img {border:0;display:inline-block;} -ol, ul {list-style: none;} +article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section,content {display: block;} +img {border: 0;display: inline-block;} +ol,ul {list-style: none;} blockquote, q {quotes: none;} -blockquote::before, blockquote::after, -q::before, q::after {content: '';content: none;} +blockquote::before, blockquote::after, q::before, q::after {content: '';content: none;} table {border-collapse: collapse;border-spacing: 0;} -a:focus,input,textarea,button:focus,input:focus,textarea:focus {outline:none;} -::-moz-focus-inner { - border:none;outline:none; -} -body {font-family:Helvetica, Arial,"WenQuanYi Micro Hei","PingFang SC","Hiragino Sans GB","Segoe UI", "Microsoft Yahei", sans-serif;-webkit-font-smoothing: antialiased;text-size-adjust: 100%;-webkit-tap-highlight-color: transparent;} -code,pre,samp {font-family:Menlo,Monaco,Consolas,"Courier New",monospace;} -[anot],[\:repeat],[\:if] {visibility:hidden;} - +a:focus,input,textarea,button:focus,input:focus,textarea:focus {outline: none;} +::-moz-focus-inner {border: none;outline: none;} +body {font-family: 'Helvetica Neue', Arial, 'WenQuanYi Micro Hei', 'PingFang SC', 'Hiragino Sans GB', 'Segoe UI', 'Microsoft Yahei', sans-serif;-webkit-font-smoothing: antialiased;text-size-adjust: 100%;-webkit-tap-highlight-color: transparent;} +code, pre, samp {font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;white-space:pre-wrap;} +[anot],[\:repeat],[\:if] {visibility: hidden;} .noselect {-webkit-touch-callout: none;-webkit-user-select: none;-moz-user-select: none;user-select: none;} -.noselect img, .noselect a {-webkit-user-drag:none;} -.text-ell {overflow:hidden; white-space:nowrap; text-overflow:ellipsis } -.osx-thin {-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;} - +.noselect img, .noselect a {-webkit-user-drag: none;} +.text-ell {overflow: hidden;white-space: nowrap;text-overflow: ellipsis;} +.text-thin {-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;} +:root { + /* primary */ + --color-teal-a: rgba(72, 201, 176, 0.35); + --color-teal-1: rgb(72, 201, 176); + --color-teal-2: rgb(26, 188, 156); + --color-teal-3: rgb(22, 160, 133); + /* success */ + --color-green-a: rgba(70, 221, 126, 0.35); + --color-green-1: rgb(70, 221, 126); + --color-green-2: rgb(47, 208, 105); + --color-green-3: rgb(26, 196, 88); + /* info */ + --color-blue-a: rgba(100, 181, 246, 0.35); + --color-blue-1: rgb(100, 181, 246); + --color-blue-2: rgb(66, 165, 245); + --color-blue-3: rgb(33, 150, 243); + /* danger */ + --color-red-a: rgba(252, 118, 97, 0.35); + --color-red-1: #fc7661; + --color-red-2: #ff5f45; + --color-red-3: #f33e22; + /* warning */ + --color-orange-a: rgba(254, 174, 117, 0.35); + --color-orange-1: #feae75; + --color-orange-2: #fd964b; + --color-orange-3: #f97316; + /* default1 */ + --color-plain-a: rgba(150, 204, 248, 0.35); + --color-plain-1: rgb(242, 245, 252); + --color-plain-2: rgb(232, 235, 244); + --color-plain-3: rgb(218, 225, 233); + /* default2 */ + --color-grey-a: rgba(206, 214, 224, 0.35); + --color-grey-1: rgb(206, 214, 224); + --color-grey-2: rgb(164, 176, 190); + --color-grey-3: rgb(134, 144, 155); + /* inverse */ + --color-dark-a: rgba(100, 116, 139, 0.35); + --color-dark-1: #64748B; + --color-dark-2: #475569; + --color-dark-3: #2c3441; +} diff --git a/src/index.html b/src/index.html index aba5526..347cbe1 100644 --- a/src/index.html +++ b/src/index.html @@ -16,55 +16,14 @@
- +
+ + +
- - -
-
-
- -
-
- - -

-
- - -
-
- -
- - - - -
-
-
-
@@ -78,10 +37,7 @@
-
- - -
+
@@ -92,8 +48,6 @@
-
-
+ +
+ + + + +
+
+
diff --git a/src/js/app.js b/src/js/app.js index 7bebf97..1a39b31 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -6,6 +6,7 @@ import Anot from '/js/lib/anot.js' import '/js/lib/scroll/index.js' +import '/js/lib/icon/index.js' import Keyboard from '/js/lib/keyboard/index.js' // import app from '/js/lib/socket.js' @@ -51,18 +52,18 @@ Anot({ list: [] }, async mounted() { - var list = app.dispatch('get-all-songs') + // var list = app.dispatch('get-all-songs') // var list = app.dispatch('scan-dir', { dir: '/Volumes/ooc/music' }) - app.on('tray-play', ev => { - this.play(0) - }) - app.on('tray-prev', ev => { - this.play(-1) - }) - app.on('tray-next', ev => { - this.play(1) - }) + // app.on('tray-play', ev => { + // this.play(0) + // }) + // app.on('tray-prev', ev => { + // this.play(-1) + // }) + // app.on('tray-next', ev => { + // this.play(1) + // }) kb.on(['left'], ev => { var time = this.song.time - 5 @@ -110,10 +111,10 @@ Anot({ // } // console.log(list) - this.list = list + // this.list = list player.volume = this.volume / 100 - player.load(list.map(it => `sonist://${it.file_path}`)) + // player.load(list.map(it => `sonist://${it.file_path}`)) player.on('play', time => { this.song.time = time @@ -138,19 +139,6 @@ Anot({ this.playSong(idx, repeat) }) - - window.foo = _ => { - var n = 128, - t - t = setInterval(() => { - n-- - this.play(1) - if (n < 0) { - clearInterval(t) - } - }, 100) - } - // foo() }, watch: { volume(v) { diff --git a/src/js/lib/audio/index.js b/src/js/lib/audio/index.js index 6baf69e..3dbdc94 100644 --- a/src/js/lib/audio/index.js +++ b/src/js/lib/audio/index.js @@ -7,8 +7,7 @@ import $ from '../utils.js' import fetch from '../fetch/index.js' -const { EventEmitter } = require('events') -const util = require('util') +import Events from '../events.js' const AC = new AudioContext() @@ -21,8 +20,10 @@ function hide(target, key, value) { }) } -class AudioTrack { +class AudioTrack extends Events { constructor(elem) { + super() + this._el = elem this.gain = AC.createGain() @@ -34,10 +35,10 @@ class AudioTrack { this.gain.connect(AC.destination) this.__playFn = $.bind(elem, 'timeupdate', _ => { - this.emit('play', elem.currentTime) + this.$emit('play', elem.currentTime) }) this.__stopFn = $.bind(elem, 'ended', _ => { - this.emit('stop') + this.$emit('stop') }) } @@ -67,8 +68,10 @@ class AudioTrack { } } -export default class Player { +export default class Player extends Events { constructor() { + super() + hide(this, '__LIST__', []) hide(this, 'props', { curr: '', @@ -87,15 +90,13 @@ export default class Player { async _getTrack(file) { hide(this, '__AUDIO__', new Audio()) - this.__AUDIO__.src = URL.createObjectURL( - await fetch(file).then(r => r.blob()) - ) + this.__AUDIO__.src = URL.createObjectURL(await fetch(file).then(r => r.blob())) this.track = new AudioTrack(this.__AUDIO__) this.track.volume = this.props.volume - this.track.on('play', t => this.emit('play', t)) - this.track.on('stop', _ => this.emit('stop')) + this.track.$on('play', t => this.$emit('play', t)) + this.track.$on('stop', _ => this.$emit('stop')) } get volume() { @@ -174,6 +175,3 @@ export default class Player { } } } - -util.inherits(AudioTrack, EventEmitter) -util.inherits(Player, EventEmitter) diff --git a/src/js/lib/drag/core.js b/src/js/lib/drag/core.js index 2e2a9f0..3949b0a 100644 --- a/src/js/lib/drag/core.js +++ b/src/js/lib/drag/core.js @@ -1 +1 @@ -import $ from"../utils.js";const DEF_OPT={axis:"",limit:!1,overflow:!0};export default class Drag{constructor(t){this.$elem=t,this._init()}_init(){this.$elem.style.transform="";var{x:t,y:s}=this.$elem.getBoundingClientRect();this.pos={x:t,y:s,_x:0,_y:0}}by(t,s={}){return this.$drag=t,this.opt=Object.assign(Object.create(null),DEF_OPT,s),!1!==this.opt.limit&&(this.opt.overflow=!1),t.style.cursor="move",this._handleResize=$.bind(window,"resize",this._init.bind(this)),this._handleMousedown=$.bind(t,"mousedown",t=>{if(this.disabled)return;var s=this.$elem.getBoundingClientRect();s.x-this.pos._x!==this.pos.x&&(this.pos.x=s.x-this.pos._x),s.y-this.pos._y!==this.pos.y&&(this.pos.y=s.y-this.pos._y);let e=t.pageX,i=t.pageY,o=document.documentElement.clientWidth,n=document.documentElement.clientHeight,h=s.width,p=s.height,d=[0,o-h,n-p,0];if("parent"===this.opt.limit){let t=this.$elem.parentNode.getBoundingClientRect();d=[t.top,t.right-h,t.bottom-p,t.left]}let l=$.bind(document,"mousemove",t=>{t.preventDefault();let o=t.pageX-e+(s.x-this.pos.x),n=t.pageY-i+(s.y-this.pos.y);"x"===this.opt.axis&&(n=0),"y"===this.opt.axis&&(o=0),!1===this.opt.overflow&&(od[1]-this.pos.x&&(o=d[1]-this.pos.x),nd[2]-this.pos.y&&(n=d[2]-this.pos.y)),this.pos._x=o,this.pos._y=n,this.$elem.dispatchEvent(new CustomEvent("dragging",{detail:{offset:{x:this.pos.x+o,y:this.pos.y+n},move:{x:o,y:n}}})),this.$elem.style.transform=`translate(${o}px, ${n}px)`}),m=$.bind(document,"mouseup",t=>{this.$elem.dispatchEvent(new CustomEvent("dragged",{detail:{offset:{x:this.pos.x+this.pos._x,y:this.pos.y+this.pos._y},move:{x:this.pos._x,y:this.pos._y}}})),$.unbind(document,"mousemove",l),$.unbind(document,"mouseup",m)})}),this}on(t,s){if(t&&"function"==typeof s)return $.bind(this,t,s)}off(t,s){$.unbind(this,t,s)}destroy(){$.unbind(window,"resize",this._handleResize),$.unbind(this.$drag,"mousedown",this._handleMousedown),delete this.$elem,delete this.$drag}} \ No newline at end of file +import e from"../utils.js";const c={axis:"",limit:!1,overflow:!0};class g{constructor(t){this.$elem=t,this._init()}_init(){this.$elem.style.transform="";var{x:t,y:n}=this.$elem.getBoundingClientRect();this.pos={x:t,y:n,_x:0,_y:0}}by(t,n={}){return this.$drag=t,this.opt=Object.assign(Object.create(null),c,n),this.opt.limit!==!1&&(this.opt.overflow=!1),t.style.cursor="move",this._handleResize=e.bind(window,"resize",this._init.bind(this)),this._handleMousedown=e.bind(t,"mousedown",p=>{if(this.disabled)return;var l=this.$elem.getBoundingClientRect();l.x-this.pos._x!==this.pos.x&&(this.pos.x=l.x-this.pos._x),l.y-this.pos._y!==this.pos.y&&(this.pos.y=l.y-this.pos._y);let r=p.pageX,a=p.pageY,u=document.documentElement.clientWidth,f=document.documentElement.clientHeight,d=l.width,m=l.height,s=[0,u-d,f-m,0];if(this.opt.limit==="parent"){let i=this.$elem.parentNode.getBoundingClientRect();s=[i.top,i.right-d,i.bottom-m,i.left]}let x=e.bind(document,"mousemove",i=>{i.preventDefault();let o=i.pageX-r+(l.x-this.pos.x),h=i.pageY-a+(l.y-this.pos.y);this.opt.axis==="x"&&(h=0),this.opt.axis==="y"&&(o=0),this.opt.overflow===!1&&(os[1]-this.pos.x&&(o=s[1]-this.pos.x),hs[2]-this.pos.y&&(h=s[2]-this.pos.y)),this.pos._x=o,this.pos._y=h,this.$elem.dispatchEvent(new CustomEvent("dragging",{detail:{offset:{x:this.pos.x+o,y:this.pos.y+h},move:{x:o,y:h}}})),this.$elem.style.transform=`translate(${o}px, ${h}px)`}),y=e.bind(document,"mouseup",i=>{this.$elem.dispatchEvent(new CustomEvent("dragged",{detail:{offset:{x:this.pos.x+this.pos._x,y:this.pos.y+this.pos._y},move:{x:this.pos._x,y:this.pos._y}}})),e.unbind(document,"mousemove",x),e.unbind(document,"mouseup",y)})}),this}on(t,n){if(!(!t||typeof n!="function"))return e.bind(this,t,n)}off(t,n){e.unbind(this,t,n)}destroy(){e.unbind(window,"resize",this._handleResize),e.unbind(this.$drag,"mousedown",this._handleMousedown),delete this.$elem,delete this.$drag}}export{g as default}; diff --git a/src/js/lib/drag/doc.md b/src/js/lib/drag/doc.md new file mode 100644 index 0000000..0cd4766 --- /dev/null +++ b/src/js/lib/drag/doc.md @@ -0,0 +1,85 @@ +# 拖拽插件 +> 该插件可以让任意一个元素可以被拖拽,而不需要该元素是否具有定位属性。 +> 使用时,在目标元素上添加`:drag`属性即可以实现拖拽功能。 + +## 依赖 +> 依赖`Anot`框架 + +## 浏览器兼容性 ++ chrome ++ firefox ++ safari ++ IE10+ + + +## 用法 +> 只需要在要拖拽的元素上添加`:drag`即可; +> 如果要拖拽的元素不是当前元素,只需要给该属性增加一个值为想要拖拽元素的类名或ID。 +> 具体请看示例: +> **注意:** `拖拽的元素不是本身时,只会往父级一级一级找相匹配的` + +```html + + + + + + + + +
+ +
+
+
+ + + + + + +``` + + +## 额外参数 + +### `data-limit` +> 用于限制元素的拖动范围,默认没有限制。 可选值为 "window"和"parent", 分别为 "限制在可视区"和"限制在父级元素的范围" + +### `data-axis` +> 用于限制拖动的方向, 默认值为 "xy",即不限制方向。可选值为 "x"和"y", 即只能在"x轴"或"y轴"方向拖动。 + +### `data-beforedrag` +> 拖动前的回调,如果有设置回调方法, 则该回调的返回值,可决定该元素是否能被拖拽, 可用于在特殊场景下,临时禁用拖拽。 +> `注:` +> 1. 该回调方法,会传入3个参数, 第1个为被拖拽的元素(dom对象), 第2个参数为 该元素的x轴绝对坐标, 第3个元素为y轴绝对坐标; +> 2. 该回调方法, 返回false时, 本次拖拽将临时失效, 返回其他值,或没有返回值,则忽略。 + + +### `data-dragging` +> 元素被拖动时的回调。 +> `注:` +> 1.该回调方法,会传入3个参数, 第1个为被拖拽的元素(dom对象), 第2个参数为 该元素的x轴绝对坐标, 第3个元素为y轴绝对坐标; + + +### `data-dragged` +> 元素被拖动结束后的回调。 +> `注:` +> 1. 该回调方法,会传入3个参数, 第1个为被拖拽的元素(dom对象), 第2个参数为 该元素的x轴绝对坐标, 第3个元素为y轴绝对坐标; + + + + + + + + diff --git a/src/js/lib/drag/index.js b/src/js/lib/drag/index.js index 36f957b..02e42e1 100644 --- a/src/js/lib/drag/index.js +++ b/src/js/lib/drag/index.js @@ -1 +1 @@ -import Drag from"./core.js";Anot.directive("drag",{priority:1500,init:function(e){e.expr='"'+e.expr+'"',e.overflow=!0,e.axis="xy",e.element.dataset.axis&&(e.axis=e.element.dataset.axis,delete e.element.dataset.axis),e.limit=!1,e.element.dataset.limit&&(e.limit=e.element.dataset.limit,e.overflow=!1,delete e.element.dataset.limit)},update:function(e){var t=this.element;if(e)for(t=this.element.parentNode;t;){if(t.classList||Anot.error(`${this.name}=${this.expr}, 解析异常[元素不存在]`),"WC-LAYER"===t.tagName&&"layer"===e){t=t.root.children[1];break}if(t.classList.contains(e)||t.id===e)break;t=t.parentNode}new Drag(t).by(this.element,{limit:this.limit,axis:this.axis,overflow:this.overflow})}}); \ No newline at end of file +import a from"./core.js";Anot.directive("drag",{priority:1500,init:function(e){e.expr='"'+e.expr+'"',e.overflow=!0,e.axis="xy",e.element.dataset.axis&&(e.axis=e.element.dataset.axis,delete e.element.dataset.axis),e.limit=!1,e.element.dataset.limit&&(e.limit=e.element.dataset.limit,e.overflow=!1,delete e.element.dataset.limit)},update:function(e){var t=this.element;if(e)for(t=this.element.parentNode;t;){if(t.classList||Anot.error(`${this.name}=${this.expr}, \u89E3\u6790\u5F02\u5E38[\u5143\u7D20\u4E0D\u5B58\u5728]`),t.tagName==="WC-LAYER"&&e==="layer"){t=t.root.children[1];break}if(t.classList.contains(e)||t.id===e)break;t=t.parentNode}new a(t).by(this.element,{limit:this.limit,axis:this.axis,overflow:this.overflow})}}); diff --git a/src/js/lib/events.js b/src/js/lib/events.js new file mode 100644 index 0000000..0a41e55 --- /dev/null +++ b/src/js/lib/events.js @@ -0,0 +1,38 @@ +export default class EventEmitter { + // + #events = Object.create(null) + + $on(name, fn) { + if (this.#events[name]) { + this.#events[name].push(fn) + } else { + this.#events[name] = [fn] + } + } + + $off(name, fn) { + if (this.#events[name]) { + if (fn) { + this.#events[name] = this.#events[name].filter(it => it !== fn) + } else { + this.#events[name] = [] + } + } + } + + $emit(name, ...args) { + if (this.#events[name]) { + for (let fn of this.#events[name]) { + try { + fn.apply(this, args) + } catch (e) { + console.error(e) + } + } + } + } + + $destroy() { + this.#events = Object.create(null) + } +} diff --git a/src/js/lib/form/button.js b/src/js/lib/form/button.js index d6ff73d..d1671e5 100644 --- a/src/js/lib/form/button.js +++ b/src/js/lib/form/button.js @@ -1,13 +1,10 @@ /** * * @authors yutent (yutent.io@gmail.com) - * @date 2020-11-17 09:10:37 - * @version v1.0.0 + * @date 2022-09-12 18:13:11 + * @version v1.0.6 * */ -import"../icon/index.js";import $ from"../utils.js";const IS_FIREFOX=!!window.sidebar;export default class Button extends HTMLElement{static get observedAttributes(){return["icon","autofocus","loading","disabled","lazy"]}constructor(){super(),Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(this,"props",{value:{icon:"",autofocus:"",loading:!1,disabled:!1,lazy:0},writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=" ",this.hasAttribute("circle")&&(this.textContent=""),this.__BTN__=this.root.children[1],this.__ICO__=this.__BTN__.children[0]}get loading(){return this.props.loading}set loading(o){var t=typeof o;o!==this.props.loading&&("boolean"===t&&o||"boolean"!==t?(this.props.loading=!0,this.__ICO__.setAttribute("is","loading"),this.setAttribute("loading","")):(this.props.loading=!1,this.__ICO__.setAttribute("is",this.props.icon),this.removeAttribute("loading")))}get disabled(){return this.props.disabled}set disabled(o){var t=typeof o;o!==this.props.disabled&&("boolean"===t&&o||"boolean"!==t?(this.props.disabled=!0,this.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled")))}connectedCallback(){this.stamp=0,this._handleClick=$.bind(this.__BTN__,"click",o=>{var{loading:t,disabled:e,lazy:r}=this.props,n=Date.now();return t||e||r&&n-this.stamp{this.__BTN__.focus()},10);break;case"lazy":this.props.lazy=e>>0;break;case"loading":case"disabled":this[o]=!0}}} +var h=Object.defineProperty;var c=(r,e,o)=>e in r?h(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o;var a=(r,e,o)=>(c(r,typeof e!="symbol"?e+"":e,o),o);import"../icon/index.js";import d from"../utils.js";class l extends HTMLElement{constructor(){super();a(this,"props",{icon:"",autofocus:"",loading:!1,disabled:!1,lazy:0});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=' ',this.hasAttribute("circle")&&(this.textContent=""),this.__BTN__=this.root.children[1],this.__ICO__=this.__BTN__.children[0]}static get observedAttributes(){return["icon","autofocus","loading","disabled","lazy"]}get loading(){return this.props.loading}set loading(o){var t=typeof o;o!==this.props.loading&&(t==="boolean"&&o||t!=="boolean"?(this.props.loading=!0,this.__BTN__.disabled=!0,this.__ICO__.setAttribute("is","loading"),this.setAttribute("loading","")):(this.props.loading=!1,this.__BTN__.disabled=!1,this.__ICO__.setAttribute("is",this.props.icon),this.removeAttribute("loading")))}get disabled(){return this.props.disabled}set disabled(o){var t=typeof o;o!==this.props.disabled&&(t==="boolean"&&o||t!=="boolean"?(this.props.disabled=!0,this.__BTN__.disabled=!0,this.setAttribute("disabled","")):(this.props.disabled=!1,this.__BTN__.disabled=!1,this.removeAttribute("disabled")))}connectedCallback(){this.stamp=0,this._handleClick=d.bind(this,"click",o=>{var{loading:t,disabled:i,lazy:s}=this.props,n=Date.now();if(t||i||s&&n-this.stampthis.__BTN__.focus(),10);break;case"lazy":this.props.lazy=i>>0;break;case"loading":case"disabled":this[o]=i!==null;break}}}customElements.get("wc-button")||customElements.define("wc-button",l);export{l as default}; -if(!customElements.get('wc-button')){ - customElements.define('wc-button', Button) -} diff --git a/src/js/lib/form/cascader.js b/src/js/lib/form/cascader.js new file mode 100644 index 0000000..eeb7315 --- /dev/null +++ b/src/js/lib/form/cascader.js @@ -0,0 +1,10 @@ +/** + * + * @authors yutent (yutent.io@gmail.com) + * @date 2022-09-12 18:13:11 + * @version v1.0.6 + * + */ + +customElements.get("wc-")||customElements.define("wc-"); + diff --git a/src/js/lib/form/checkbox-item.js b/src/js/lib/form/checkbox-item.js index c203520..d20b5a4 100644 --- a/src/js/lib/form/checkbox-item.js +++ b/src/js/lib/form/checkbox-item.js @@ -1,13 +1,10 @@ /** * * @authors yutent (yutent.io@gmail.com) - * @date 2020-11-17 09:10:37 - * @version v1.0.0 + * @date 2022-09-12 18:13:11 + * @version v1.0.6 * */ -import"../icon/index.js";import $ from"../utils.js";export default class CheckboxItem extends HTMLElement{static get observedAttributes(){return["color","value","checked","readonly","disabled"]}constructor(){super(),Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(this,"props",{value:{color:"",value:"",checked:!1,readonly:!1,disabled:!1},writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=" ",this.__SWITCH__=this.root.lastElementChild,this.__ICO__=this.__SWITCH__.children[0],this._isInGroup=!1}_checkGroup(){this._isInGroup="WC-CHECKBOX"===this.parentNode.tagName,this._isInGroup&&this.parentNode.root&&this.parentNode.value.includes(this.value)&&(this.checked=!0)}get value(){return this.props.value}set value(e){this.props.value=e}get checked(){return this.props.checked}set checked(e){this.props.checked=!!e;var{checked:o,color:t}=this.props;this.__SWITCH__.classList.toggle("checked",o),this.__ICO__.setAttribute("is","checkbox-"+(o?"on":"off")),o?this.__ICO__.setAttribute("color",t):this.__ICO__.removeAttribute("color")}get readOnly(){return this.props.readonly}set readOnly(e){var o=typeof e;e!==this.props.readonly&&("boolean"===o&&e||"boolean"!==o?(this.props.readonly=!0,this.setAttribute("readonly","")):(this.props.readonly=!1,this.removeAttribute("readonly")))}get disabled(){return this.props.disabled}set disabled(e){var o=typeof e;e!==this.props.disabled&&("boolean"===o&&e||"boolean"!==o?(this.props.disabled=!0,this.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled")))}connectedCallback(){this._checkGroup(),this._handlClick=$.bind(this,"click",e=>{e.preventDefault(),this.disabled||this.readOnly||(this.checked=!this.checked,this._isInGroup?this.parentNode.dispatchEvent(new CustomEvent("child-picked",{detail:{value:this.value,checked:this.checked}})):this.dispatchEvent(new CustomEvent("input")))})}disconnectedCallback(){$.unbind(this,"click",this._handlClick)}attributeChangedCallback(e,o,t){if(null!==t&&o!==t)switch(e){case"value":case"color":this.props[e]=t;break;case"checked":case"readonly":case"disabled":var l=e;"readonly"===l&&(l="readOnly"),this[l]=!0}}} +var d=Object.defineProperty;var n=(r,o,e)=>o in r?d(r,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[o]=e;var l=(r,o,e)=>(n(r,typeof o!="symbol"?o+"":o,e),e);import"../icon/index.js";import s from"../utils.js";class c extends HTMLElement{constructor(){super();l(this,"props",{value:"",checked:!1,readonly:!1,disabled:!1});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=' ',this.__SWITCH__=this.root.lastElementChild,this.__ICO__=this.__SWITCH__.children[0],this._isInGroup=!1}static get observedAttributes(){return["value","checked","readonly","disabled"]}_checkGroup(){this._isInGroup=this.parentNode.tagName==="WC-CHECKBOX-GROUP",this._isInGroup&&this.parentNode.root&&this.parentNode.value.includes(this.value)&&(this.checked=!0)}get value(){return this.props.value}set value(e){this.props.value=e}get checked(){return this.props.checked}set checked(e){this.props.checked=!!e,this.__SWITCH__.classList.toggle("checked",this.props.checked)}get readOnly(){return this.props.readonly}set readOnly(e){var t=typeof e;e!==this.props.readonly&&(t==="boolean"&&e||t!=="boolean"?(this.props.readonly=!0,this.setAttribute("readonly","")):(this.props.readonly=!1,this.removeAttribute("readonly")))}get disabled(){return this.props.disabled}set disabled(e){var t=typeof e;e!==this.props.disabled&&(t==="boolean"&&e||t!=="boolean"?(this.props.disabled=!0,this.setAttribute("disabled",""),this.__SWITCH__.removeAttribute("tabindex")):(this.props.disabled=!1,this.removeAttribute("disabled")))}_toggleCheck(){this.disabled||this.readOnly||(this.checked=!this.checked,this._isInGroup?this.parentNode.dispatchEvent(new CustomEvent("child-picked",{detail:{value:this.value,checked:this.checked}})):this.dispatchEvent(new CustomEvent("input")))}connectedCallback(){this._checkGroup(),this._handlClick=s.bind(this,"click",e=>{e.stopPropagation(),this._toggleCheck()}),this._handlKeydown=s.bind(this,"keydown",e=>{e.keyCode===32&&this._toggleCheck()})}disconnectedCallback(){s.unbind(this,"click",this._handlClick),s.unbind(this,"keydown",this._handlKeydown)}attributeChangedCallback(e,t,a){if(t!==a)switch(e){case"value":this.props[e]=a;break;case"checked":case"readonly":case"disabled":var i=e;i==="readonly"&&(i="readOnly"),this[i]=a!==null;break}}}customElements.get("wc-checkbox")||customElements.define("wc-checkbox",c);export{c as default}; -if(!customElements.get('wc-checkbox-item')){ - customElements.define('wc-checkbox-item', CheckboxItem) -} diff --git a/src/js/lib/form/checkbox.js b/src/js/lib/form/checkbox.js index 774c3e5..2325727 100644 --- a/src/js/lib/form/checkbox.js +++ b/src/js/lib/form/checkbox.js @@ -1,13 +1,10 @@ /** * * @authors yutent (yutent.io@gmail.com) - * @date 2020-11-17 09:10:37 - * @version v1.0.0 + * @date 2022-09-12 18:13:11 + * @version v1.0.6 * */ -import $ from"../utils.js";import"./checkbox-item.js";export default class Checkbox extends HTMLElement{static get observedAttributes(){return["value"]}constructor(){super(),Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(this,"props",{value:{value:[]},writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=" "}_updateChildrenStat(){Array.from(this.children).forEach(e=>{"WC-CHECKBOX-ITEM"===e.tagName&&e.root&&(this.value.includes(e.value)?e.checked=!0:e.checked=!1)})}get value(){return this.props.value}set value(e){e!==this.props.value&&(this.props.value=e,this._updateChildrenStat())}connectedCallback(){this._pickedFn=$.bind(this,"child-picked",e=>{var t=[...this.props.value],i=t.indexOf(e.detail.value);e.detail.checked?i<0&&t.push(e.detail.value):~i&&t.splice(i,1),this.props.value=t,this.dispatchEvent(new CustomEvent("input"))})}disconnectedCallback(){$.unbind(this,"child-picked",this._pickedFn)}attributeChangedCallback(e,t,i){if(null!==i&&t!==i)switch(e){case"value":i&&(this.value=i.split(/,\s*?/))}}} +var u=Object.defineProperty;var h=(i,r,e)=>r in i?u(i,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[r]=e;var l=(i,r,e)=>(h(i,typeof r!="symbol"?r+"":r,e),e);import d from"../utils.js";import"./checkbox-item.js";class o extends HTMLElement{constructor(){super();l(this,"props",{value:"",disabled:!1,readonly:!1});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=" "}static get observedAttributes(){return["value","disabled","readonly"]}_updateChildrenStat(e){Array.from(this.children).forEach(t=>{t.tagName==="WC-CHECKBOX"?t.root&&(e&&(t.disabled=this.disabled,t.readOnly=this.readOnly),this.value.includes(t.value)?t.checked=!0:t.checked=!1):t.remove()})}get value(){return this.props.value}set value(e){e!==this.props.value&&(this.props.value=[...e],this._updateChildrenStat())}get readOnly(){return this.props.readonly}set readOnly(e){var t=typeof e;e!==this.props.readonly&&(t==="boolean"&&e||t!=="boolean"?(this.props.readonly=!0,this.setAttribute("readonly","")):(this.props.readonly=!1,this.removeAttribute("readonly")),this._updateChildrenStat(!0))}get disabled(){return this.props.disabled}set disabled(e){var t=typeof e;e!==this.props.disabled&&(t==="boolean"&&e||t!=="boolean"?(this.props.disabled=!0,this.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled")),this._updateChildrenStat(!0))}connectedCallback(){this._pickedFn=d.bind(this,"child-picked",e=>{var t=[...this.props.value],s=t.indexOf(e.detail.value);e.detail.checked?s<0&&t.push(e.detail.value):~s&&t.splice(s,1),this.value=t,this.dispatchEvent(new CustomEvent("input"))}),this.__observer=new MutationObserver(e=>{this._updateChildrenStat(!0)}),this.__observer.observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){d.unbind(this,"child-picked",this._pickedFn),this.__observer.disconnect()}attributeChangedCallback(e,t,s){if(t!==s)switch(e){case"value":s&&(this.value=s.split(",").map(n=>n.trim()));break;case"readonly":case"disabled":var a=e;a==="readonly"&&(a="readOnly"),this[a]=s!==null;break}}}customElements.get("wc-checkbox-group")||customElements.define("wc-checkbox-group",o);export{o as default}; -if(!customElements.get('wc-checkbox')){ - customElements.define('wc-checkbox', Checkbox) -} diff --git a/src/js/lib/form/dropdown.js b/src/js/lib/form/dropdown.js new file mode 100644 index 0000000..92ca690 --- /dev/null +++ b/src/js/lib/form/dropdown.js @@ -0,0 +1,10 @@ +/** + * + * @authors yutent (yutent.io@gmail.com) + * @date 2022-09-12 18:13:11 + * @version v1.0.6 + * + */ + +var h=Object.defineProperty;var d=(r,t,e)=>t in r?h(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var a=(r,t,e)=>(d(r,typeof t!="symbol"?t+"":t,e),e);import"../icon/index.js";import"./option.js";import o from"../utils.js";class n extends HTMLElement{constructor(){super();a(this,"props",{value:"",placeholder:"",size:"",disabled:!1});a(this,"state",{optionShow:!1});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML='
';var e=this.root.children[1];this.__PREVIEW__=e.children[0],this.__OPTIONS__=e.children[1],this.__INPUT__=this.__PREVIEW__.children[0],this.__ICO__=this.__PREVIEW__.children[1]}static get observedAttributes(){return["value","placeholder","size","disabled"]}_updateChildrenStat(){Array.from(this.children).forEach(e=>{e.tagName==="WC-OPTION"?e.root&&(e.value===this.props.value?(e.setAttribute("active",""),this.__INPUT__.value=e.label||e.textContent):e.removeAttribute("active")):e.remove()})}get value(){return this.props.value}set value(e){this.props.value=e,this._updateChildrenStat()}get disabled(){return this.props.disabled}set disabled(e){var i=typeof e;e!==this.props.disabled&&(i==="boolean"&&e||i!=="boolean"?(this.props.disabled=!0,this.setAttribute("disabled",""),this.__INPUT__.disabled=!0):(this.props.disabled=!1,this.removeAttribute("disabled"),this.__INPUT__.disabled=!1))}connectedCallback(){this._activeFn=o.bind(this.__PREVIEW__,"click",e=>{this.disabled||(this.state.optionShow=!this.state.optionShow,this.__OPTIONS__.classList.toggle("active",this.state.optionShow))}),this._pickedFn=o.bind(this.__OPTIONS__,"click",e=>{let i=e.target;if(i!==e.currentTarget){for(;i.tagName!=="WC-OPTION";)i=i.parentNode;this.props.value=i.value,this._updateChildrenStat(),this.dispatchEvent(new CustomEvent("input")),this.state.optionShow=!1,this.__OPTIONS__.classList.toggle("active",!1)}}),this._inactiveFn=o.outside(this,e=>{this.state.optionShow=!1,this.__OPTIONS__.classList.toggle("active",!1)}),o.nextTick(e=>this._updateChildrenStat())}disconnectedCallback(){this.state.options=[],o.unbind(this.__PREVIEW__,"click",this._activeFn),o.unbind(this.__OPTIONS__,"click",this._pickedFn),o.clearOutside(this._inactiveFn)}attributeChangedCallback(e,i,s){if(i!==s)switch(e){case"value":s!==null&&(this.value=s);break;case"placeholder":this.__INPUT__.placeholder=s||"";break;case"size":s&&Array.from(this.children).forEach(l=>{l.setAttribute("size",s)});break;case"disabled":this.disabled=s!==null;break}}}customElements.get("wc-dropdown")||customElements.define("wc-dropdown",n);export{n as default}; + diff --git a/src/js/lib/form/index.js b/src/js/lib/form/index.js new file mode 100644 index 0000000..896cf70 --- /dev/null +++ b/src/js/lib/form/index.js @@ -0,0 +1 @@ +import"./button.js";import"./link.js";import"./input.js";import"./passwd.js";import"./textarea.js";import"./number.js";import"./radio.js";import"./checkbox.js";import"./switch.js";import"./select.js";import"./dropdown.js";import"./star.js"; diff --git a/src/js/lib/form/input.js b/src/js/lib/form/input.js index 0a9db7b..6500d1f 100644 --- a/src/js/lib/form/input.js +++ b/src/js/lib/form/input.js @@ -1,13 +1,10 @@ /** * * @authors yutent (yutent.io@gmail.com) - * @date 2020-11-17 09:10:37 - * @version v1.0.0 + * @date 2022-09-12 18:13:11 + * @version v1.0.6 * */ -import"../scroll/index.js";import"../icon/index.js";import $ from"../utils.js";const TYPES=["text","textarea","password"],INPUTS={text:'',textarea:''};export default class Input extends HTMLElement{static get observedAttributes(){return["value","icon","type","label","placeholder","mvidx","autofocus","readonly","disabled"]}constructor(){super();var e,t=this.getAttribute("type");"textarea"!==t&&(t="text"),e=INPUTS[t],Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(this,"props",{value:{value:"",icon:"",type:"text",label:"",placeholder:"",mvidx:null,autofocus:!1,readonly:!1,disabled:!1},writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=`
${e}
    `,this.props.type=t,this.__OUTER__=this.root.children[1],this.__PREPEND__=this.__OUTER__.children[0],this.__INPUT__=this.__OUTER__.children[1],this.__ICO__=this.__OUTER__.children[2],this.__APPEND__=this.__OUTER__.children[3],this.__LIST__=this.__OUTER__.children[4]}get readOnly(){return this.props.readonly}set readOnly(e){var t=typeof e;e!==this.props.readonly&&("boolean"===t&&e||"boolean"!==t?(this.props.readonly=!0,this.setAttribute("readonly",""),this.__INPUT__.setAttribute("readonly","")):(this.props.readonly=!1,this.removeAttribute("readonly"),this.__INPUT__.removeAttribute("readonly")))}get disabled(){return this.props.disabled}set disabled(e){var t=typeof e;e!==this.props.disabled&&("boolean"===t&&e||"boolean"!==t?(this.props.disabled=!0,this.setAttribute("disabled",""),this.__INPUT__.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled"),this.__INPUT__.removeAttribute("disabled")))}get value(){return this.__INPUT__.value}set value(e){this.__INPUT__.value=e}get type(){return this.__INPUT__.type}set type(e){"textarea"!==e&&(this.__INPUT__.type=e)}_moveSelect(e){var{list:t}=this.props;if(t&&t.length){e.preventDefault();var i=38===e.keyCode?-1:1,s=Array.from(this.__LIST__.firstElementChild.firstElementChild.children);null===this.props.mvidx?this.props.mvidx=0:this.props.mvidx+=i,this.props.mvidx<0?this.props.mvidx=0:this.props.mvidx>s.length-1&&(this.props.mvidx=s.length-1),s.forEach((e,t)=>{t===this.props.mvidx?(this.__LIST__.firstElementChild.scrollTop=e.offsetTop-150,e.setAttribute("focus","")):e.removeAttribute("focus")})}}_fetchSelect(e,t){var i=this.props.list[e];this.value=i.value,this.dispatchEvent(new CustomEvent("select",{detail:i})),this._handleChange(t),this.__LIST__.classList.remove("show"),this.props.mvidx=null}connectedCallback(){for(var e=this.__PREPEND__.assignedNodes(),t=this.__APPEND__.assignedNodes();e.length>1;)this.removeChild(e.pop());for(;t.length>1;)this.removeChild(t.pop());e.length&&"textarea"!==this.props.type&&this.__OUTER__.setAttribute("prepend",""),t.length&&"textarea"!==this.props.type&&this.__OUTER__.setAttribute("append","");var{type:i}=this.props;this._handleSubmit=$.catch(this.__INPUT__,"keydown",e=>{if(!this.disabled&&!this.readOnly){if((38===e.keyCode||40===e.keyCode)&&"text"===this.type)return this._moveSelect(e);if(13===e.keyCode){if("text"===this.type&&null!==this.props.mvidx)return this._fetchSelect(this.props.mvidx,e);("text"===i||"textarea"===i&&(e.ctrlKey||e.metaKey))&&this.dispatchEvent(new CustomEvent("submit",{detail:this.value}))}}}),"text"===i?(this._handleChange=$.bind(this.__INPUT__,"input",e=>{e.preventDefault(),this.dispatchEvent(new CustomEvent("fetch-suggest",{detail:{value:this.value,send:e=>{this.props.list=e,this._parseSuggestion()}}}))}),this._parseSuggestion=$.bind(this.__INPUT__,"click",e=>{var{list:t}=this.props;let{x:i,y:s,width:o}=this.getBoundingClientRect();if(t&&t.length){var r=t.map((e,t)=>`
  • ${e.value}
  • `).join("");this.__LIST__.firstElementChild.firstElementChild.innerHTML=r,this.__LIST__.classList.toggle("show",!0),this.__LIST__.style.cssText=`left:${i}px;top:${s+50}px;width:${o}px;`}else this.__LIST__.classList.toggle("show",!1)}),this._inactiveFn=$.outside(this,e=>{this.__LIST__.classList.remove("show")}),this._handleSelect=$.bind(this.__LIST__,"click",e=>{"LI"===e.target.tagName&&(this._fetchSelect(e.target.dataset.idx,e),this.dispatchEvent(new CustomEvent("input")))})):this._handleWheel=$.catch(this.__INPUT__,"wheel")}disconnectedCallback(){$.unbind(this.__INPUT__,"wheel",this._handleWheel),$.unbind(this.__INPUT__,"keydown",this._handleSubmit),$.unbind(this.__INPUT__,"input",this._handleChange),$.unbind(this.__LIST__,"click",this._handleSelect),$.clearOutside(this._inactiveFn)}attributeChangedCallback(e,t,i){if(null!==i&&t!==i)switch(e){case"icon":this.props.icon=i,i?this.__ICO__.setAttribute("is",i):(this.removeAttribute("icon"),this.__ICO__.removeAttribute("is"));break;case"autofocus":this.__INPUT__.setAttribute("autofocus",""),setTimeout(e=>{this.__INPUT__.focus()},10);break;case"label":case"placeholder":this.__INPUT__.setAttribute("placeholder",i);break;case"type":~TYPES.indexOf(i)?this.type=i:this.type="text";break;case"value":this.value=i;break;case"readonly":case"disabled":var s=e;"readonly"===s&&(s="readOnly"),this[s]=!0}}} +var g=Object.defineProperty;var x=(n,l,e)=>l in n?g(n,l,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[l]=e;var d=(n,l,e)=>(x(n,typeof l!="symbol"?l+"":l,e),e);import"../scroll/index.js";import"../icon/index.js";import r from"../utils.js";class p extends HTMLElement{constructor(){super();d(this,"props",{value:"",placeholder:"",maxlength:0,minlength:0,clearable:!1,autofocus:!1,readonly:!1,disabled:!1,lazy:0});d(this,"state",{list:[],mvidx:null});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML='
      ',this.__OUTER__=this.root.children[1],this.__PREPEND__=this.__OUTER__.children[0],this.__INPUT__=this.__OUTER__.children[1],this.__CLOSE__=this.__OUTER__.children[2],this.__APPEND__=this.__OUTER__.children[3],this.__LIST__=this.__OUTER__.children[4]}static get observedAttributes(){return["value","placeholder","maxlength","minlength","clearable","autofocus","readonly","disabled","lazy"]}get readOnly(){return this.props.readonly}set readOnly(e){var s=typeof e;e!==this.props.readonly&&(s==="boolean"&&e||s!=="boolean"?(this.props.readonly=!0,this.setAttribute("readonly",""),this.__INPUT__.setAttribute("readonly","")):(this.props.readonly=!1,this.removeAttribute("readonly"),this.__INPUT__.removeAttribute("readonly")))}get disabled(){return this.props.disabled}set disabled(e){var s=typeof e;e!==this.props.disabled&&(s==="boolean"&&e||s!=="boolean"?(this.props.disabled=!0,this.setAttribute("disabled",""),this.__INPUT__.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled"),this.__INPUT__.removeAttribute("disabled")))}get value(){return this.__INPUT__.value}set value(e){this.__INPUT__.value=e}_moveSelect(e){var{list:s}=this.state;if(s&&s.length){e.preventDefault();var t=e.keyCode===38?-1:1,i=Array.from(this.__LIST__.firstElementChild.firstElementChild.children);this.state.mvidx===null?this.state.mvidx=0:this.state.mvidx+=t,this.state.mvidx<0?this.state.mvidx=0:this.state.mvidx>i.length-1&&(this.state.mvidx=i.length-1),i.forEach((o,a)=>{a===this.state.mvidx?(this.__LIST__.firstElementChild.scrollTop=o.offsetTop-150,o.setAttribute("focus","")):o.removeAttribute("focus")})}}_fetchSelect(e,s){var t=this.state.list[e];this.value=t.value,this.dispatchEvent(new CustomEvent("select",{detail:t})),this._handleChange(s),this.__LIST__.classList.remove("show"),this.state.mvidx=null}connectedCallback(){var e=this.__PREPEND__.assignedNodes(),s=this.__APPEND__.assignedNodes();for(this.stamp=0;e.length>1;)this.removeChild(e.pop());for(;s.length>1;)this.removeChild(s.pop());e.length&&this.__OUTER__.setAttribute("prepend",""),s.length&&this.__OUTER__.setAttribute("append",""),this._handleSubmit=r.catch(this.__INPUT__,"keydown",t=>{let{minlength:i,lazy:o}=this.props,a=this.value;if(!(this.disabled||this.readOnly)){if(t.keyCode===38||t.keyCode===40)return this._moveSelect(t);if(t.keyCode===13){t.preventDefault();let h=Date.now();if(this.state.mvidx!==null)return this._fetchSelect(this.state.mvidx,t);if(o&&h-this.stamp0&&a.length{let i=Date.now(),{lazy:o}=this.props;o&&i-this.stamp{this.state.list=a,this._parseSuggestion()}}})))}),this._parseSuggestion=r.bind(this.__INPUT__,"click",t=>{var{list:i}=this.state;let{x:o,y:a,width:h,height:c}=this.getBoundingClientRect();if(i&&i.length){var u=i.map((_,b)=>`
    • ${_.value}
    • `).join("");this.__LIST__.firstElementChild.firstElementChild.innerHTML=u,this.__LIST__.classList.toggle("show",!0),this.__LIST__.style.cssText=`left:${o}px;top:${a+c+5}px;width:${h}px;`}else this.__LIST__.classList.toggle("show",!1)}),this._inactiveFn=r.outside(this,t=>{this.__LIST__.classList.remove("show")}),this._handleSelect=r.bind(this.__LIST__,"click",t=>{t.target.tagName==="LI"&&(this._fetchSelect(t.target.dataset.idx,t),this.dispatchEvent(new CustomEvent("input")))}),this._clearFn=r.bind(this.__CLOSE__,"click",t=>{this.value="",this.dispatchEvent(new CustomEvent("input"))})}disconnectedCallback(){r.unbind(this.__INPUT__,"keydown",this._handleSubmit),r.unbind(this.__INPUT__,"input",this._handleChange),r.unbind(this.__INPUT__,"click",this._parseSuggestion),r.unbind(this.__LIST__,"click",this._handleSelect),r.unbind(this.__CLOSE__,"click",this._clearFn),r.clearOutside(this._inactiveFn)}attributeChangedCallback(e,s,t){if(s!==t)switch(e){case"autofocus":this.__INPUT__.setAttribute("autofocus",""),setTimeout(o=>{this.__INPUT__.focus()},10);break;case"placeholder":this.__INPUT__.setAttribute("placeholder",t);break;case"value":this.value=t||"";break;case"maxlength":if(t===null)this.__INPUT__.removeAttribute(e);else{let o=+t;o>0?this.__INPUT__.setAttribute(e,o):this.removeAttribute(e)}break;case"lazy":this.props.lazy=t>>0;break;case"readonly":case"disabled":var i=e;i==="readonly"&&(i="readOnly"),this[i]=t!==null;break}}}customElements.get("wc-input")||customElements.define("wc-input",p);export{p as default}; -if(!customElements.get('wc-input')){ - customElements.define('wc-input', Input) -} diff --git a/src/js/lib/form/link.js b/src/js/lib/form/link.js new file mode 100644 index 0000000..29ed35f --- /dev/null +++ b/src/js/lib/form/link.js @@ -0,0 +1,10 @@ +/** + * + * @authors yutent (yutent.io@gmail.com) + * @date 2022-09-12 18:13:11 + * @version v1.0.6 + * + */ + +var d=Object.defineProperty;var c=(r,e,o)=>e in r?d(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o;var i=(r,e,o)=>(c(r,typeof e!="symbol"?e+"":e,o),o);import"../icon/index.js";import l from"../utils.js";class n extends HTMLElement{constructor(){super();i(this,"props",{to:null,autofocus:"",disabled:!1,lazy:0});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=' ',this.__LINK__=this.root.children[1]}static get observedAttributes(){return["to","autofocus","disabled","lazy"]}get disabled(){return this.props.disabled}set disabled(o){var s=typeof o;o!==this.props.disabled&&(s==="boolean"&&o||s!=="boolean"?(this.props.disabled=!0,this.setAttribute("disabled",""),this.__LINK__.removeAttribute("tabindex")):(this.props.disabled=!1,this.removeAttribute("disabled"),this.__LINK__.setAttribute("tabindex",0)))}connectedCallback(){this.stamp=0,this._handleClick=l.bind(this.__LINK__,"click",o=>{var{disabled:s,lazy:t}=this.props,a=Date.now();if(s){o.stopPropagation(),o.preventDefault();return}if(t&&a-this.stampthis.__LINK__.focus(),10);break;case"to":t===null?this.__LINK__.removeAttribute("href"):this.__LINK__.setAttribute("href",t);break;case"lazy":this.props.lazy=t>>0;break;case"disabled":this[o]=t!==null;break}}}customElements.get("wc-link")||customElements.define("wc-link",n);export{n as default}; + diff --git a/src/js/lib/form/number.js b/src/js/lib/form/number.js index 19178f1..bb8967b 100644 --- a/src/js/lib/form/number.js +++ b/src/js/lib/form/number.js @@ -1,13 +1,10 @@ /** * * @authors yutent (yutent.io@gmail.com) - * @date 2020-11-17 09:10:37 - * @version v1.0.0 + * @date 2022-09-12 18:13:11 + * @version v1.0.6 * */ -import"../scroll/index.js";import"../icon/index.js";import $ from"../utils.js";export default class Number extends HTMLElement{static get observedAttributes(){return["value","max","min","step","autofocus","readonly","disabled"]}constructor(){super(),Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(this,"props",{value:{value:0,max:null,min:null,step:1,autofocus:!1,readonly:!1,disabled:!1},writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML="
      - \x3c!-- --\x3e + \x3c!-- --\x3e
      ",this.__OUTER__=this.root.children[1],this.__INPUT__=this.__OUTER__.children[1]}get readOnly(){return this.props.readonly}set readOnly(e){var t=typeof e;e!==this.props.readonly&&("boolean"===t&&e||"boolean"!==t?(this.props.readonly=!0,this.setAttribute("readonly",""),this.__INPUT__.setAttribute("readonly","")):(this.props.readonly=!1,this.removeAttribute("readonly"),this.__INPUT__.removeAttribute("readonly")))}get disabled(){return this.props.disabled}set disabled(e){var t=typeof e;e!==this.props.disabled&&("boolean"===t&&e||"boolean"!==t?(this.props.disabled=!0,this.setAttribute("disabled",""),this.__INPUT__.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled"),this.__INPUT__.removeAttribute("disabled")))}get value(){return this.props.value}set value(e){var t=+e;e=t==t?t:0,this.props.value=e,this.__INPUT__.value=e,this._checkActionEnable()}_checkActionEnable(){var{max:e,min:t,value:i}=this.props,s=i;null!==t&&(t>s&&(s=t),this.__OUTER__.children[0].classList.toggle("disabled",i<=t)),null!==e&&(e=e)),s!==i&&(this.props.value=s,this.__INPUT__.value=s,this.dispatchEvent(new CustomEvent("input")))}_updateValue(e){var{max:t,min:i,value:s,step:a}=this.props;if("+"===e){if(null!==t&&ts-a)return;s-=a}this.props.value=+s.toFixed(2),this.__INPUT__.value=this.props.value,this._checkActionEnable(),this.dispatchEvent(new CustomEvent("input"))}connectedCallback(){this._handleSubmit=$.catch(this.__INPUT__,"keydown",e=>{if(!this.disabled&&!this.readOnly)return 38===e.keyCode||40===e.keyCode?(e.preventDefault(),this._updateValue(38===e.keyCode?"+":"-")):void(13===e.keyCode&&(e.preventDefault(),this.dispatchEvent(new CustomEvent("submit",{detail:this.value}))))}),this._handleChange=$.catch(this.__INPUT__,"change",e=>{isFinite(this.__INPUT__.value)?(this.props.value=+this.__INPUT__.value,this.__INPUT__.value.endsWith(".")||(this.__INPUT__.value=this.props.value)):this.__INPUT__.value=this.props.value=0,this.dispatchEvent(new CustomEvent("input"))}),this._handleAction=$.bind(this.__OUTER__,"click",e=>{if(!this.disabled&&!this.readOnly){var t=e.target;if("SPAN"===t.tagName||"SPAN"===t.parentNode){var i=t.dataset.act||t.parentNode.dataset.act;this._updateValue(i)}}})}disconnectedCallback(){$.unbind(this.__INPUT__,"keydown",this._handleSubmit)}attributeChangedCallback(e,t,i){if(null!==i&&t!==i)switch(e){case"autofocus":this.__INPUT__.setAttribute("autofocus",""),setTimeout(e=>{this.__INPUT__.focus()},10);break;case"value":this.value=i>>0;break;case"step":case"max":case"min":var s=+i;s==s&&(this.props[e]=s),this._checkActionEnable();break;case"readonly":case"disabled":var a=e;"readonly"===a&&(a="readOnly"),this[a]=!0}}} +var h=Object.defineProperty;var p=(a,r,e)=>r in a?h(a,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[r]=e;var n=(a,r,e)=>(p(a,typeof r!="symbol"?r+"":r,e),e);import l from"../utils.js";class d extends HTMLElement{constructor(){super();n(this,"props",{value:0,max:null,min:null,step:1,autofocus:!1,readonly:!1,disabled:!1,lazy:0});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML='
      - +
      ',this.__OUTER__=this.root.children[1],this.__INPUT__=this.__OUTER__.children[1]}static get observedAttributes(){return["value","max","min","step","autofocus","readonly","disabled","lazy"]}get readOnly(){return this.props.readonly}set readOnly(e){var t=typeof e;e!==this.props.readonly&&(t==="boolean"&&e||t!=="boolean"?(this.props.readonly=!0,this.setAttribute("readonly",""),this.__INPUT__.setAttribute("readonly","")):(this.props.readonly=!1,this.removeAttribute("readonly"),this.__INPUT__.removeAttribute("readonly")))}get disabled(){return this.props.disabled}set disabled(e){var t=typeof e;e!==this.props.disabled&&(t==="boolean"&&e||t!=="boolean"?(this.props.disabled=!0,this.setAttribute("disabled",""),this.__INPUT__.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled"),this.__INPUT__.removeAttribute("disabled")))}get value(){return this.props.value}set value(e){var t=+e;t===t?e=t:e=0,this.props.value=e,this.__INPUT__.value=e,this._checkActionEnable(),this.dispatchEvent(new CustomEvent("input"))}_checkActionEnable(){var{max:e,min:t,value:i}=this.props,s=i;t!==null&&(t>s&&(s=t),this.__OUTER__.children[0].classList.toggle("disabled",i<=t)),e!==null&&(e=e)),s!==i&&(this.props.value=s,this.__INPUT__.value=s)}_updateValue(e){var{max:t,min:i,value:s,step:o}=this.props;if(e==="+"){if(t!==null&&ts-o)return;s-=o}this.props.value=+s.toFixed(2),this.__INPUT__.value=this.props.value,this._checkActionEnable(),this.dispatchEvent(new CustomEvent("input"))}connectedCallback(){this.stamp=0,this._handleSubmit=l.catch(this.__INPUT__,"keydown",e=>{let t=Date.now(),{lazy:i}=this.props;if(!(this.disabled||this.readOnly)){if(e.keyCode===38||e.keyCode===40)return e.preventDefault(),this._updateValue(e.keyCode===38?"+":"-");if(e.keyCode===13){if(e.preventDefault(),i&&t-this.stamp{isFinite(this.__INPUT__.value)?this.value=this.__INPUT__.value:this.value=0}),this._handleAction=l.bind(this.__OUTER__,"click",e=>{this.disabled||this.readOnly||e.target.tagName==="SPAN"&&this._updateValue(e.target.dataset.act)})}disconnectedCallback(){l.unbind(this.__INPUT__,"keydown",this._handleSubmit),l.unbind(this.__OUTER__,"click",this._handleAction)}attributeChangedCallback(e,t,i){if(t!==i)switch(e){case"autofocus":this.__INPUT__.setAttribute("autofocus",""),setTimeout(c=>{this.__INPUT__.focus()},10);break;case"value":this.value=i>>0;break;case"step":case"max":case"min":var s=+i;s===s&&(this.props[e]=s),this._checkActionEnable();break;case"lazy":this.props.lazy=i>>0;break;case"readonly":case"disabled":var o=e;o==="readonly"&&(o="readOnly"),this[o]=i!==null;break}}}customElements.get("wc-number")||customElements.define("wc-number",d);export{d as default}; -if(!customElements.get('wc-number')){ - customElements.define('wc-number', Number) -} diff --git a/src/js/lib/form/option.js b/src/js/lib/form/option.js new file mode 100644 index 0000000..478035e --- /dev/null +++ b/src/js/lib/form/option.js @@ -0,0 +1,10 @@ +/** + * + * @authors yutent (yutent.io@gmail.com) + * @date 2022-09-12 18:13:11 + * @version v1.0.6 + * + */ + +var n=Object.defineProperty;var b=(s,t,e)=>t in s?n(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var r=(s,t,e)=>(b(s,typeof t!="symbol"?t+"":t,e),e);import o from"../utils.js";class a extends HTMLElement{constructor(){super();r(this,"props",{value:"",label:"",disabled:!1});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=" ",this.__LABEL__=this.root.children[1]}static get observedAttributes(){return["value","label","disabled"]}get value(){return this.props.value}set value(e){e!==this.props.value&&(this.props.value=e)}get label(){return this.props.label}set label(e){e!==this.props.label&&(this.props.label=e,this.__LABEL__.textContent=e)}get disabled(){return this.props.disabled}set disabled(e){var i=typeof e;e!==this.props.disabled&&(i==="boolean"&&e||i!=="boolean"?(this.props.disabled=!0,this.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled")))}connectedCallback(){this._clickFn=o.bind(this,"click",e=>{this.disabled&&e.stopPropagation()})}disconnectedCallback(){o.unbind(this,"click",this._clickFn)}attributeChangedCallback(e,i,l){if(i!==l)switch(e){case"value":case"label":l===null?this[e]="":this[e]=l;break;case"disabled":this.disabled=l!==null;break}}}customElements.get("wc-option")||customElements.define("wc-option",a);export{a as default}; + diff --git a/src/js/lib/form/passwd.js b/src/js/lib/form/passwd.js new file mode 100644 index 0000000..bfa4184 --- /dev/null +++ b/src/js/lib/form/passwd.js @@ -0,0 +1,10 @@ +/** + * + * @authors yutent (yutent.io@gmail.com) + * @date 2022-09-12 18:13:11 + * @version v1.0.6 + * + */ + +var b=Object.defineProperty;var c=(s,r,e)=>r in s?b(s,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[r]=e;var p=(s,r,e)=>(c(s,typeof r!="symbol"?r+"":r,e),e);import"../icon/index.js";import a from"../utils.js";class d extends HTMLElement{constructor(){super();p(this,"props",{value:"",placeholder:"",maxlength:0,minlength:0,autofocus:!1,readonly:!1,disabled:!1,lazy:0});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML='
      ',this.__OUTER__=this.root.children[1],this.__PREPEND__=this.__OUTER__.children[0],this.__INPUT__=this.__OUTER__.children[1],this.__EYE__=this.__OUTER__.children[2],this.__APPEND__=this.__OUTER__.children[3]}static get observedAttributes(){return["value","placeholder","maxlength","minlength","autofocus","readonly","disabled","lazy"]}get readOnly(){return this.props.readonly}set readOnly(e){var t=typeof e;e!==this.props.readonly&&(t==="boolean"&&e||t!=="boolean"?(this.props.readonly=!0,this.setAttribute("readonly",""),this.__INPUT__.setAttribute("readonly","")):(this.props.readonly=!1,this.removeAttribute("readonly"),this.__INPUT__.removeAttribute("readonly")))}get disabled(){return this.props.disabled}set disabled(e){var t=typeof e;e!==this.props.disabled&&(t==="boolean"&&e||t!=="boolean"?(this.props.disabled=!0,this.setAttribute("disabled",""),this.__INPUT__.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled"),this.__INPUT__.removeAttribute("disabled")))}get value(){return this.__INPUT__.value}set value(e){this.__INPUT__.value=e}connectedCallback(){var e=this.__PREPEND__.assignedNodes(),t=this.__APPEND__.assignedNodes();for(this.stamp=0;e.length>1;)this.removeChild(e.pop());for(;t.length>1;)this.removeChild(t.pop());e.length&&this.__OUTER__.setAttribute("prepend",""),t.length&&this.__OUTER__.setAttribute("append",""),this._handleSubmit=a.catch(this.__INPUT__,"keydown",o=>{let{minlength:i,lazy:l}=this.props,h=this.value,n=Date.now();if(!(this.disabled||this.readOnly)&&o.keyCode===13){if(l&&n-this.stamp0&&h.length{this.__INPUT__.type==="password"?(this.__INPUT__.type="text",this.__EYE__.is="eye-off"):(this.__INPUT__.type="password",this.__EYE__.is="eye")})}disconnectedCallback(){a.unbind(this.__INPUT__,"keydown",this._handleSubmit),a.unbind(this.__EYE__,"click",this._eyeFn)}attributeChangedCallback(e,t,o){if(t!==o)switch(e){case"autofocus":this.__INPUT__.setAttribute("autofocus",""),setTimeout(l=>{this.__INPUT__.focus()},10);break;case"placeholder":this.__INPUT__.setAttribute("placeholder",o);break;case"value":this.value=o;break;case"maxlength":if(o===null)this.__INPUT__.removeAttribute(e);else{let l=+o;l>0?this.__INPUT__.setAttribute(e,l):this.removeAttribute(e)}break;case"lazy":this.props.lazy=o>>0;break;case"readonly":case"disabled":var i=e;i==="readonly"&&(i="readOnly"),this[i]=o!==null;break}}}customElements.get("wc-passwd")||customElements.define("wc-passwd",d);export{d as default}; + diff --git a/src/js/lib/form/progress.js b/src/js/lib/form/progress.js deleted file mode 100644 index b5a1252..0000000 --- a/src/js/lib/form/progress.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * - * @authors yutent (yutent.io@gmail.com) - * @date 2020-11-17 09:10:37 - * @version v1.0.0 - * - */ - -export default class Progress extends HTMLElement{static get observedAttributes(){return["value","max"]}constructor(){super(),Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(this,"props",{value:{value:0,max:1},writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=" ",this.__THUMB__=this.root.children[1].lastElementChild}get value(){return this.props.value}set value(e){this.props.value=+e,this.calculate()}calculate(){var{max:e,value:a}=this.props;this.__THUMB__.style.width=100*a/e+"%"}connectedCallback(){this.calculate()}attributeChangedCallback(e,a,l){if(null!==l&&a!==l)switch(e){case"max":var t=+l;(t!=t||t<1)&&(t=1),this.props.max=t,this.calculate();break;case"value":var r=+l;r==r&&(this.props.value=r,this.calculate())}}} - -if(!customElements.get('wc-progress')){ - customElements.define('wc-progress', Progress) -} diff --git a/src/js/lib/form/radio-item.js b/src/js/lib/form/radio-item.js index 918e13e..b65de6b 100644 --- a/src/js/lib/form/radio-item.js +++ b/src/js/lib/form/radio-item.js @@ -1,13 +1,10 @@ /** * * @authors yutent (yutent.io@gmail.com) - * @date 2020-11-17 09:10:37 - * @version v1.0.0 + * @date 2022-09-12 18:13:11 + * @version v1.0.6 * */ -import $ from"../utils.js";export default class RadioItem extends HTMLElement{static get observedAttributes(){return["value","checked","readonly","disabled"]}constructor(){super(),Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(this,"props",{value:{value:"",checked:!1,readonly:!1,disabled:!1},writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=" ",this.__SWITCH__=this.root.lastElementChild}get value(){return this.props.value}set value(e){this.props.value=e}get checked(){return this.props.checked}set checked(e){this.props.checked=!!e,this.__SWITCH__.classList.toggle("checked",this.props.checked)}get readOnly(){return this.props.readonly}set readOnly(e){var o=typeof e;e!==this.props.readonly&&("boolean"===o&&e||"boolean"!==o?(this.props.readonly=!0,this.setAttribute("readonly","")):(this.props.readonly=!1,this.removeAttribute("readonly")))}get disabled(){return this.props.disabled}set disabled(e){var o=typeof e;e!==this.props.disabled&&("boolean"===o&&e||"boolean"!==o?(this.props.disabled=!0,this.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled")))}connectedCallback(){this.value===this.parentNode.value&&(this.checked=!0),this._handleClick=$.catch(this,"click",e=>{this.disabled||this.readOnly||this.checked||this.parentNode.dispatchEvent(new CustomEvent("child-picked",{detail:this.value}))})}disconnectedCallback(){$.unbind(this,"click",this._handleClick)}attributeChangedCallback(e,o,t){if(null!==t&&o!==t)switch(e){case"value":this.value=t;break;case"checked":case"readonly":case"disabled":var l=e;"readonly"===l&&(l="readOnly"),this[l]=!0}}} +var n=Object.defineProperty;var c=(r,o,e)=>o in r?n(r,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[o]=e;var i=(r,o,e)=>(c(r,typeof o!="symbol"?o+"":o,e),e);import a from"../utils.js";class d extends HTMLElement{constructor(){super();i(this,"props",{value:"",checked:!1,readonly:!1,disabled:!1});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=' ',this.__SWITCH__=this.root.lastElementChild}static get observedAttributes(){return["value","checked","readonly","disabled"]}get value(){return this.props.value}set value(e){this.props.value=e}get checked(){return this.props.checked}set checked(e){this.props.checked=!!e,this.__SWITCH__.classList.toggle("checked",this.props.checked)}get readOnly(){return this.props.readonly}set readOnly(e){var t=typeof e;e!==this.props.readonly&&(t==="boolean"&&e||t!=="boolean"?(this.props.readonly=!0,this.setAttribute("readonly","")):(this.props.readonly=!1,this.removeAttribute("readonly")))}get disabled(){return this.props.disabled}set disabled(e){var t=typeof e;e!==this.props.disabled&&(t==="boolean"&&e||t!=="boolean"?(this.props.disabled=!0,this.setAttribute("disabled",""),this.__SWITCH__.removeAttribute("tabindex")):(this.props.disabled=!1,this.removeAttribute("disabled")))}_toggleCheck(){this.disabled||this.readOnly||this.checked||(this.checked=!0,this.parentNode.dispatchEvent(new CustomEvent("child-picked",{detail:this.value})))}connectedCallback(){this.value===this.parentNode.value&&(this.checked=!0),this._handleClick=a.catch(this,"click",e=>{e.stopPropagation(),this._toggleCheck()}),this._handlKeydown=a.bind(this,"keydown",e=>{e.keyCode===32&&this._toggleCheck()})}disconnectedCallback(){a.unbind(this,"click",this._handleClick),a.unbind(this,"keydown",this._handlKeydown)}attributeChangedCallback(e,t,s){if(t!==s)switch(e){case"value":this.value=s;break;case"checked":case"readonly":case"disabled":var l=e;l==="readonly"&&(l="readOnly"),this[l]=s!==null;break}}}customElements.get("wc-radio")||customElements.define("wc-radio",d);export{d as default}; -if(!customElements.get('wc-radio-item')){ - customElements.define('wc-radio-item', RadioItem) -} diff --git a/src/js/lib/form/radio.js b/src/js/lib/form/radio.js index d7ad27e..9a3b9b3 100644 --- a/src/js/lib/form/radio.js +++ b/src/js/lib/form/radio.js @@ -1,13 +1,10 @@ /** * * @authors yutent (yutent.io@gmail.com) - * @date 2020-11-17 09:10:37 - * @version v1.0.0 + * @date 2022-09-12 18:13:11 + * @version v1.0.6 * */ -import $ from"../utils.js";import"./radio-item.js";export default class Radio extends HTMLElement{static get observedAttributes(){return["value"]}constructor(){super(),Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(this,"props",{value:{value:null},writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=" "}_updateChildrenStat(){Array.from(this.children).forEach(e=>{"WC-RADIO-ITEM"===e.tagName&&e.root&&(e.value===this.props.value?e.checked=!0:e.checked=!1)})}get value(){return this.props.value}set value(e){e!==this.props.value&&(this.props.value=e,this._updateChildrenStat())}connectedCallback(){this._pickedFn=$.bind(this,"child-picked",e=>{log("radio picked: ",e.detail),this.value=e.detail,this.dispatchEvent(new CustomEvent("input"))})}disconnectedCallback(){$.unbind(this,"child-picked",this._pickedFn)}attributeChangedCallback(e,t,i){if(null!==i&&t!==i)switch(e){case"value":this.value=i}}} +var n=Object.defineProperty;var u=(s,r,e)=>r in s?n(s,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[r]=e;var d=(s,r,e)=>(u(s,typeof r!="symbol"?r+"":r,e),e);import l from"../utils.js";import"./radio-item.js";class o extends HTMLElement{constructor(){super();d(this,"props",{value:null,disabled:!1,readonly:!1});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=" "}static get observedAttributes(){return["value","disabled","readonly"]}_updateChildrenStat(e){Array.from(this.children).forEach(t=>{t.tagName==="WC-RADIO"?t.root&&(e&&(t.disabled=this.disabled,t.readOnly=this.readOnly),t.value===this.props.value?t.checked=!0:t.checked=!1):t.remove()})}get value(){return this.props.value}set value(e){e!==this.props.value&&(this.props.value=e,this._updateChildrenStat())}get readOnly(){return this.props.readonly}set readOnly(e){var t=typeof e;e!==this.props.readonly&&(t==="boolean"&&e||t!=="boolean"?(this.props.readonly=!0,this.setAttribute("readonly","")):(this.props.readonly=!1,this.removeAttribute("readonly")),this._updateChildrenStat(!0))}get disabled(){return this.props.disabled}set disabled(e){var t=typeof e;e!==this.props.disabled&&(t==="boolean"&&e||t!=="boolean"?(this.props.disabled=!0,this.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled")),this._updateChildrenStat(!0))}connectedCallback(){this._pickedFn=l.bind(this,"child-picked",e=>{this.value=e.detail,this.dispatchEvent(new CustomEvent("input"))}),this.__observer=new MutationObserver(e=>{this._updateChildrenStat(!0)}),this.__observer.observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){l.unbind(this,"child-picked",this._pickedFn),this.__observer.disconnect()}attributeChangedCallback(e,t,i){if(t!==i)switch(e){case"value":this.value=i;break;case"readonly":case"disabled":var a=e;a==="readonly"&&(a="readOnly"),this[a]=i!==null;break}}}customElements.get("wc-radio-group")||customElements.define("wc-radio-group",o);export{o as default}; -if(!customElements.get('wc-radio')){ - customElements.define('wc-radio', Radio) -} diff --git a/src/js/lib/form/select.js b/src/js/lib/form/select.js index ba2180d..ad63ada 100644 --- a/src/js/lib/form/select.js +++ b/src/js/lib/form/select.js @@ -1,13 +1,10 @@ /** * * @authors yutent (yutent.io@gmail.com) - * @date 2020-11-17 09:10:37 - * @version v1.0.0 + * @date 2022-09-12 18:13:11 + * @version v1.0.6 * */ -import"../scroll/index.js";import"../icon/index.js";import $ from"../utils.js";function parseOptions(e,t){let i="";for(let s of e)if(s.list){i+=`
      ${s.name}
      `;for(let e of s.list)t.DICT[e.value]=e,e.disabled||t.LIST.push(e),i+=`
      ${e.label}
      `}else s.disabled||t.LIST.push(s),t.DICT[s.value]=s,i+=`
      ${s.label}
      `;return i}export default class Select extends HTMLElement{static get observedAttributes(){return["label","placeholder","multi","value","options","mvidx","readonly","disabled"]}constructor(){super(),Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(this,"props",{value:{label:"",placeholder:"",multi:"",value:"",options:"",mvidx:null,readonly:!1,disabled:!1},writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML="
      ",this.__OUTER__=this.root.children[1],this.__PREPEND__=this.__OUTER__.children[0],this.__INPUT__=this.__OUTER__.children[1],this.__APPEND__=this.__OUTER__.children[3],this.__OPTG__=this.__OUTER__.children[4]}get readOnly(){return this.props.readonly}set readOnly(e){var t=typeof e;e!==this.props.readonly&&("boolean"===t&&e||"boolean"!==t?(this.props.readonly=!0,this.setAttribute("readonly","")):(this.props.readonly=!1,this.removeAttribute("readonly")))}get disabled(){return this.props.disabled}set disabled(e){var t=typeof e;e!==this.props.disabled&&("boolean"===t&&e||"boolean"!==t?(this.props.disabled=!0,this.setAttribute("disabled",""),this.__INPUT__.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled"),this.__INPUT__.removeAttribute("disabled")))}get value(){return this.props.value}set value(e){var{DICT:t,active:i}=this.props;this.props.value=e,this.__INPUT__.value=t&&t[e]&&t[e].label||e,i||this._updateStyle()}_renderOptions(e){this.props.DICT={},this.props.LIST=[];var t=this.__OPTG__.firstElementChild.firstElementChild;t.innerHTML=parseOptions(e,this.props),this.props.ITEMS=Array.from(t.children).filter(e=>"DD"===e.tagName&&!e.hasAttribute("disabled")),this.value=this.props.value}_moveSelect(e){var{LIST:t,DICT:i,ITEMS:s}=this.props;if(t&&t.length){e.preventDefault();var o=38===e.keyCode?-1:1;null===this.props.mvidx?this.props.mvidx=0:this.props.mvidx+=o,this.props.mvidx<0?this.props.mvidx=0:this.props.mvidx>s.length-1&&(this.props.mvidx=s.length-1),s.forEach((e,t)=>{t===this.props.mvidx?(this.__OPTG__.firstElementChild.scrollTop=e.offsetTop-150,e.setAttribute("focus","")):e.removeAttribute("focus")})}}_updateStyle(e){var{LIST:t,ITEMS:i,value:s}=this.props;if(t&&t.length){if(void 0===e)for(let i,o=-1;i=t[++o];)if(s===i.value){e=o;break}this.props.mvidx=e,i.forEach((t,i)=>{i===e?t.setAttribute("focus",""):t.removeAttribute("focus")})}}_fetchSelect(e,t){var i=this.props.LIST[e];this.value=i.value,this.dispatchEvent(new CustomEvent("select",{detail:i})),t&&this._updateStyle(e),this.props.active=!1,this.__OPTG__.classList.remove("show")}connectedCallback(){for(var e=this.__PREPEND__.assignedNodes(),t=this.__APPEND__.assignedNodes();e.length>1;)this.removeChild(e.pop());for(;t.length>1;)this.removeChild(t.pop());function i(){var{x:e,y:t,width:i}=this.getBoundingClientRect(),s=this.getAttribute("size");this.props.active=!0,t+=s&&"mini"===s?32:50,this.__OPTG__.style.cssText=`left:${e}px;top:${t}px;width:${i}px;`}e.length&&"textarea"!==this.props.type&&this.__OUTER__.setAttribute("prepend",""),t.length&&"textarea"!==this.props.type&&this.__OUTER__.setAttribute("append",""),this._handleKeydown=$.catch(this.__INPUT__,"keydown",e=>{if(!this.disabled&&!this.readOnly)return 38===e.keyCode||40===e.keyCode?this.props.active?this._moveSelect(e):(i.call(this),void this.__OPTG__.classList.toggle("show",!0)):13===e.keyCode&&null!==this.props.mvidx&&this.props.active?this._fetchSelect(this.props.mvidx):void 0}),this._activeFn=$.bind(this.__INPUT__,"click",e=>{var{options:t}=this.props;this.disabled||this.readOnly||(i.call(this),this.__OPTG__.classList.toggle("show"))}),this._handleSelect=$.bind(this.__OPTG__,"click",e=>{"DD"!==e.target.tagName||e.target.hasAttribute("disabled")||(this._fetchSelect(+e.target.dataset.idx,!0),this.dispatchEvent(new CustomEvent("input")))}),this._inactiveFn=$.outside(this,e=>{this.__OPTG__.classList.toggle("show",!1),this.props.active=!1})}attributeChangedCallback(e,t,i){if(null!==i&&t!==i)switch(e){case"label":case"placeholder":this.__INPUT__.setAttribute("placeholder",i);break;case"options":if(i){try{this._renderOptions(JSON.parse(i))}catch(e){}this.removeAttribute("options")}break;case"value":this.value=i;break;case"readonly":case"disabled":var s=e;"readonly"===s&&(s="readOnly"),this[s]=!0}}disconnectedCallback(){$.unbind(this.__INPUT__,"keydown",this._handleKeydown),$.unbind(this.__INPUT__,"click",this._activeFn),$.unbind(this.__OPTG__,"click",this._handleSelect),$.clearOutside(this._inactiveFn)}} +var c=Object.defineProperty;var u=(l,s,t)=>s in l?c(l,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[s]=t;var n=(l,s,t)=>(u(l,typeof s!="symbol"?s+"":s,t),t);import"../scroll/index.js";import"../icon/index.js";import d from"../utils.js";function b(l,s){let t="";for(let e of l)if(e.list){t+=`
      ${e.name}
      `;for(let i of e.list)s.DICT[i.value]=i,i.disabled||s.LIST.push(i),t+=`
      ${i.label}
      `}else e.disabled||s.LIST.push(e),s.DICT[e.value]=e,t+=`
      ${e.label}
      `;return t}class p extends HTMLElement{constructor(){super();n(this,"props",{label:"",placeholder:"",multi:"",value:"",mvidx:null,readonly:!1,disabled:!1});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML='
      ',this.__OUTER__=this.root.children[1],this.__INPUT__=this.__OUTER__.children[0],this.__OPTG__=this.__OUTER__.children[2]}static get observedAttributes(){return["label","placeholder","multi","value","mvidx","readonly","disabled"]}get readOnly(){return this.props.readonly}set readOnly(t){var e=typeof t;t!==this.props.readonly&&(e==="boolean"&&t||e!=="boolean"?(this.props.readonly=!0,this.setAttribute("readonly","")):(this.props.readonly=!1,this.removeAttribute("readonly")))}get disabled(){return this.props.disabled}set disabled(t){var e=typeof t;t!==this.props.disabled&&(e==="boolean"&&t||e!=="boolean"?(this.props.disabled=!0,this.setAttribute("disabled",""),this.__INPUT__.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled"),this.__INPUT__.removeAttribute("disabled")))}get value(){return this.props.value}set value(t){var{DICT:e,active:i}=this.props;this.props.value=t,this.__INPUT__.value=e&&e[t]&&e[t].label||t,i||this._updateStyle()}_renderOptions(t){this.props.DICT={},this.props.LIST=[];var e=this.__OPTG__.firstElementChild.firstElementChild;e.innerHTML=b(t,this.props),this.props.ITEMS=Array.from(e.children).filter(i=>i.tagName==="DD"&&!i.hasAttribute("disabled")),this.value=this.props.value}_moveSelect(t){var{LIST:e,DICT:i,ITEMS:r}=this.props;if(e&&e.length){t.preventDefault();var o=t.keyCode===38?-1:1;this.props.mvidx===null?this.props.mvidx=0:this.props.mvidx+=o,this.props.mvidx<0?this.props.mvidx=0:this.props.mvidx>r.length-1&&(this.props.mvidx=r.length-1),r.forEach((a,h)=>{h===this.props.mvidx?(this.__OPTG__.firstElementChild.scrollTop=a.offsetTop-150,a.setAttribute("focus","")):a.removeAttribute("focus")})}}_updateStyle(t){var{LIST:e,ITEMS:i,value:r}=this.props;if(e&&e.length){if(t===void 0){for(let o=-1,a;a=e[++o];)if(r===a.value){t=o;break}}this.props.mvidx=t,i.forEach((o,a)=>{a===t?o.setAttribute("focus",""):o.removeAttribute("focus")})}}_fetchSelect(t,e){var i=this.props.LIST[t];this.value=i.value,this.dispatchEvent(new CustomEvent("select",{detail:i})),e&&this._updateStyle(t),this.props.active=!1,this.__OPTG__.classList.remove("show")}connectedCallback(){function t(){var{x:e,y:i,width:r}=this.getBoundingClientRect(),o=this.getAttribute("size");this.props.active=!0,o&&o==="mini"?i+=32:i+=50,this.__OPTG__.style.cssText=`left:${e}px;top:${i}px;width:${r}px;`}this._handleKeydown=d.catch(this.__INPUT__,"keydown",e=>{if(!(this.disabled||this.readOnly)){if(e.keyCode===38||e.keyCode===40){if(!this.props.active){t.call(this),this.__OPTG__.classList.toggle("show",!0);return}return this._moveSelect(e)}if(e.keyCode===13&&this.props.mvidx!==null&&this.props.active)return this._fetchSelect(this.props.mvidx)}}),this._activeFn=d.bind(this.__INPUT__,"click",e=>{var{options:i}=this.props;this.disabled||this.readOnly||(t.call(this),this.__OPTG__.classList.toggle("show"))}),this._handleSelect=d.bind(this.__OPTG__,"click",e=>{e.target.tagName==="DD"&&!e.target.hasAttribute("disabled")&&(this._fetchSelect(+e.target.dataset.idx,!0),this.dispatchEvent(new CustomEvent("input")))}),this._inactiveFn=d.outside(this,e=>{this.__OPTG__.classList.toggle("show",!1),this.props.active=!1})}attributeChangedCallback(t,e,i){if(e!==i)switch(t){case"label":case"placeholder":this.__INPUT__.setAttribute("placeholder",i);break;case"value":this.value=i;break;case"readonly":case"disabled":var r=t;r==="readonly"&&(r="readOnly"),this[r]=i!==null;break}}disconnectedCallback(){d.unbind(this.__INPUT__,"keydown",this._handleKeydown),d.unbind(this.__INPUT__,"click",this._activeFn),d.unbind(this.__OPTG__,"click",this._handleSelect),d.clearOutside(this._inactiveFn)}}customElements.get("wc-select")||customElements.define("wc-select",p);export{p as default}; -if(!customElements.get('wc-select')){ - customElements.define('wc-select', Select) -} diff --git a/src/js/lib/form/star.js b/src/js/lib/form/star.js index 543b68d..b93f36e 100644 --- a/src/js/lib/form/star.js +++ b/src/js/lib/form/star.js @@ -1,13 +1,10 @@ /** * * @authors yutent (yutent.io@gmail.com) - * @date 2020-11-17 09:10:37 - * @version v1.0.0 + * @date 2022-09-12 18:13:11 + * @version v1.0.6 * */ -import $ from"../utils.js";export default class Star extends HTMLElement{static get observedAttributes(){return["value","text","size","color","allow-half","show-value","starSize","disabled"]}constructor(){super(),Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(this,"props",{value:{value:0,text:[],size:"",color:"","allow-half":!1,"show-value":!1,starSize:32,disabled:!1},writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=' ',this.__BOX__=this.root.children[1],this.__STARS__=Array.from(this.__BOX__.children),this.__TEXT__=this.__STARS__.pop()}get value(){return this.props.value}set value(t){var e=+t;(t=e==e&&e>0?e:0)>5&&(t=5),this.props.value=t,this._updateDraw(-1)}_updateDraw(t,e=0){var s="star-half",{value:o,tmp:a={i:0,f:0}}=this.props;-1===t&&(t=Math.floor(o),e=+(o%1).toFixed(1),t>0&&t===o&&(t--,e=1)),this.props["allow-half"]||(e=e>0?1:0),t===a.i&&e===a.f||(e>.5&&(s="star-full"),this.__STARS__.forEach((e,s)=>{e.setAttribute("is",s0&&(this.__STARS__[t].setAttribute("is",s),this.__STARS__[t].setAttribute("color",this.props.color)),this.props.tmp={i:t,f:e},0===t&&0===e?this.__TEXT__.textContent="":5===this.props.text.length?this.__TEXT__.textContent=this.props.text[t]:this.props["show-value"]&&(this.__TEXT__.textContent=t+e))}connectedCallback(){$.catch(this.__BOX__,"mousemove",t=>{if(!this.props.disabled&&"WC-ICON"===t.target.tagName){let e=+t.target.dataset.idx;this._updateDraw(e,+(t.offsetX/this.props.starSize).toFixed(1))}}),$.catch(this.__BOX__,"click",t=>{var{tmp:e,disabled:s}=this.props;s||"WC-ICON"===t.target.tagName&&(this.props.value=e.i+e.f,this.dispatchEvent(new CustomEvent("input")))}),$.catch(this.__BOX__,"mouseleave",t=>{this.props.disabled||this._updateDraw(-1)})}attributeChangedCallback(t,e,s){if(null!==s&&e!==s)switch(t){case"size":this.props.starSize=this.__STARS__[0].clientWidth;break;case"allow-half":case"show-value":case"disabled":this.props[t]=!0;break;case"color":s&&(this.props.color=s);break;case"text":s&&5===(s=s.split("|")).length&&(this.props.text=s.map(t=>t.trim()));break;case"value":this.value=s}}} +var _=Object.defineProperty;var d=(a,i,t)=>i in a?_(a,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[i]=t;var n=(a,i,t)=>(d(a,typeof i!="symbol"?i+"":i,t),t);import o from"../utils.js";class h extends HTMLElement{constructor(){super();n(this,"props",{value:0,text:[],size:"","default-color":null,colors:"","allow-half":!1,"show-value":!1,starSize:32,disabled:!1});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=' ',this.__BOX__=this.root.children[1],this.__STARS__=Array.from(this.__BOX__.children),this.__TEXT__=this.__STARS__.pop()}static get observedAttributes(){return["value","text","size","default-color","colors","allow-half","show-value","starSize","disabled"]}get value(){return this.props.value}set value(t){var e=+t,s=t>>0;e===e&&e>0?t=e:t=0,t>5&&(t=5),this.props.value=t,this._updateDraw(-1)}_updateDraw(t,e=0){var s="star-half",{value:r,tmp:l={i:0,f:0}}=this.props;t===-1&&(t=Math.floor(r),e=+(r%1).toFixed(1),t>0&&t===r&&(t--,e=1)),this.props["allow-half"]||(e=e>0?1:0),!(t===l.i&&e===l.f)&&(e>.5&&(s="star-full"),this.__STARS__.forEach((c,p)=>{c.setAttribute("is",p0&&(this.__STARS__[t].setAttribute("is",s),this.__STARS__[t].setAttribute("color",this.props.color)),this.props.tmp={i:t,f:e},t===0&&e===0?this.__TEXT__.textContent="":this.props.text.length===5?this.__TEXT__.textContent=this.props.text[t]:this.props["show-value"]&&(this.__TEXT__.textContent=t+e))}connectedCallback(){o.catch(this.__BOX__,"mousemove",t=>{if(!this.props.disabled&&t.target.tagName==="WC-ICON"){let e=+t.target.dataset.idx;this._updateDraw(e,+(t.offsetX/this.props.starSize).toFixed(1))}}),o.catch(this.__BOX__,"click",t=>{var{tmp:e,disabled:s}=this.props;s||t.target.tagName==="WC-ICON"&&(this.props.value=e.i+e.f,this.dispatchEvent(new CustomEvent("input")))}),o.catch(this.__BOX__,"mouseleave",t=>{this.props.disabled||this._updateDraw(-1)})}attributeChangedCallback(t,e,s){if(e!==s)switch(t){case"size":this.props.starSize=this.__STARS__[0].clientWidth;break;case"allow-half":case"show-value":case"disabled":this.props[t]=!0;break;case"default-color":s?this.__BOX__.style.cssText+=`--default-color:${s}`:this.__BOX__.style="";break;case"colors":s===null?this.props.colors=["#48c9b0"]:this.props.colors=s.split(",").map(r=>r.trim());break;case"text":s&&(s=s.split("|"),s.length===5&&(this.props.text=s.map(r=>r.trim())));break;case"value":this.value=s;break}}}customElements.get("wc-star")||customElements.define("wc-star",h);export{h as default}; -if(!customElements.get('wc-star')){ - customElements.define('wc-star', Star) -} diff --git a/src/js/lib/form/switch.js b/src/js/lib/form/switch.js index 8b98d4e..5733ce2 100644 --- a/src/js/lib/form/switch.js +++ b/src/js/lib/form/switch.js @@ -1,13 +1,10 @@ /** * * @authors yutent (yutent.io@gmail.com) - * @date 2020-11-17 09:10:37 - * @version v1.0.0 + * @date 2022-09-12 18:13:11 + * @version v1.0.6 * */ -import $ from"../utils.js";export default class Switch extends HTMLElement{static get observedAttributes(){return["active-text","inactive-text","checked","disabled"]}constructor(){super(),Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(this,"props",{value:{"active-text":null,"inactive-text":null,checked:!1,disabled:!1},writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML="
      ",this.__SWITCH__=this.root.lastElementChild.firstElementChild}get value(){return this.props.checked}set value(e){this.checked=e}get checked(){return this.props.checked}set checked(e){this.props.checked=!!e,this.__SWITCH__.classList.toggle("checked",this.props.checked)}get disabled(){return this.props.disabled}set disabled(e){var t=typeof e;e!==this.props.disabled&&("boolean"===t&&e||"boolean"!==t?(this.props.disabled=!0,this.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled")))}connectedCallback(){this._handleClick=$.bind(this,"click",e=>{this.disabled||(this.checked=!this.checked,this.checked?null!==this.props["active-text"]&&(this.textContent=this.props["active-text"]):null!==this.props["inactive-text"]&&(this.textContent=this.props["inactive-text"]),this.dispatchEvent(new CustomEvent("input")))})}disconnectedCallback(){$.unbind(this,"click",this._handleClick)}attributeChangedCallback(e,t,i){if(null!==i&&t!==i)switch(e){case"checked":case"disabled":this[e]=!0;break;case"active-text":case"inactive-text":this.props[e]=i+""}}} +var l=Object.defineProperty;var d=(i,t,e)=>t in i?l(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var a=(i,t,e)=>(d(i,typeof t!="symbol"?t+"":t,e),e);import c from"../utils.js";class o extends HTMLElement{constructor(){super();a(this,"props",{"active-text":null,"inactive-text":null,checked:!1,disabled:!1});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML='
      ',this.__SWITCH__=this.root.lastElementChild.firstElementChild}static get observedAttributes(){return["active-text","inactive-text","checked","disabled"]}get value(){return this.props.checked}set value(e){this.checked=e}get checked(){return this.props.checked}set checked(e){this.props.checked=!!e,this.__SWITCH__.classList.toggle("checked",this.props.checked)}get disabled(){return this.props.disabled}set disabled(e){var s=typeof e;e!==this.props.disabled&&(s==="boolean"&&e||s!=="boolean"?(this.props.disabled=!0,this.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled")))}_updateStat(){this.checked?this.props["active-text"]!==null&&(this.textContent=this.props["active-text"]):this.props["inactive-text"]!==null&&(this.textContent=this.props["inactive-text"])}connectedCallback(){this._handleClick=c.bind(this,"click",e=>{this.disabled||(this.checked=!this.checked,this._updateStat(),this.dispatchEvent(new CustomEvent("input")))})}disconnectedCallback(){c.unbind(this,"click",this._handleClick)}attributeChangedCallback(e,s,r){if(s!==r)switch(e){case"checked":case"disabled":this[e]=r!==null;break;case"active-text":case"inactive-text":this.props[e]=r+"",this._updateStat();break}}}customElements.get("wc-switch")||customElements.define("wc-switch",o);export{o as default}; -if(!customElements.get('wc-switch')){ - customElements.define('wc-switch', Switch) -} diff --git a/src/js/lib/form/textarea.js b/src/js/lib/form/textarea.js new file mode 100644 index 0000000..7765749 --- /dev/null +++ b/src/js/lib/form/textarea.js @@ -0,0 +1,10 @@ +/** + * + * @authors yutent (yutent.io@gmail.com) + * @date 2022-09-12 18:13:11 + * @version v1.0.6 + * + */ + +var b=Object.defineProperty;var c=(s,r,e)=>r in s?b(s,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[r]=e;var h=(s,r,e)=>(c(s,typeof r!="symbol"?r+"":r,e),e);import n from"../utils.js";class d extends HTMLElement{constructor(){super();h(this,"props",{value:"",placeholder:"",maxlength:0,minlength:0,autofocus:!1,readonly:!1,disabled:!1,lazy:0});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML='
      0/\u221E
      ',this.__OUTER__=this.root.children[1],this.__INPUT__=this.__OUTER__.children[0],this.__STAT__=this.__OUTER__.children[1]}static get observedAttributes(){return["value","placeholder","maxlength","minlength","autofocus","readonly","disabled","lazy"]}get readOnly(){return this.props.readonly}set readOnly(e){var t=typeof e;e!==this.props.readonly&&(t==="boolean"&&e||t!=="boolean"?(this.props.readonly=!0,this.setAttribute("readonly",""),this.__INPUT__.setAttribute("readonly","")):(this.props.readonly=!1,this.removeAttribute("readonly"),this.__INPUT__.removeAttribute("readonly")))}get disabled(){return this.props.disabled}set disabled(e){var t=typeof e;e!==this.props.disabled&&(t==="boolean"&&e||t!=="boolean"?(this.props.disabled=!0,this.setAttribute("disabled",""),this.__INPUT__.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled"),this.__INPUT__.removeAttribute("disabled")))}get value(){return this.__INPUT__.value}set value(e){this.__INPUT__.value=e}connectedCallback(){this.stamp=0,this._handleSubmit=n.catch(this.__INPUT__,"keydown",e=>{let{minlength:t,lazy:o}=this.props,a=this.value,i=Date.now();if(e.keyCode===13&&(e.ctrlKey||e.metaKey)){if(this.disabled||this.readOnly||o&&i-this.stamp0&&a.length{let{maxlength:t}=this.props,o=this.value.length;t=t||"\u221E",this.__STAT__.textContent=`${o}/${t}`})}disconnectedCallback(){n.unbind(this.__INPUT__,"keydown",this._handleSubmit),n.unbind(this.__INPUT__,"input,change",this._statFn)}attributeChangedCallback(e,t,o){if(t!==o)switch(e){case"autofocus":this.__INPUT__.setAttribute("autofocus",""),setTimeout(i=>{this.__INPUT__.focus()},10);break;case"placeholder":this.__INPUT__.setAttribute("placeholder",o);break;case"value":this.value=o||"";break;case"maxlength":{let i=this.value.length;if(o===null)this.__INPUT__.removeAttribute(e),this.props.maxlength=0,this.__STAT__.textContent=`${i}/\u221E`;else{let l=+o;l>0?(this.__INPUT__.setAttribute(e,l),this.props.maxlength=l,this.__STAT__.textContent=`${i}/${l}`):this.removeAttribute(e)}}break;case"lazy":this.props.lazy=o>>0;break;case"readonly":case"disabled":var a=e;a==="readonly"&&(a="readOnly"),this[a]=o!==null;break}}}customElements.get("wc-textarea")||customElements.define("wc-textarea",d);export{d as default}; + diff --git a/src/js/lib/icon/index.js b/src/js/lib/icon/index.js index 89d60cc..cf73c95 100644 --- a/src/js/lib/icon/index.js +++ b/src/js/lib/icon/index.js @@ -1,13 +1,10 @@ /** * * @authors yutent (yutent.io@gmail.com) - * @date 2020-11-17 09:10:37 - * @version v1.0.0 + * @date 2022-09-12 18:13:11 + * @version v1.0.6 * */ -import SVG_DICT from"./svg.js";let dict=SVG_DICT;window.EXT_SVG_DICT&&Object.assign(dict,EXT_SVG_DICT);export default class Icon extends HTMLElement{static get observedAttributes(){return["is"]}constructor(){super(),Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(this,"props",{value:{is:""},writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=" ",this.__ICO__=this.root.lastElementChild,this.drawPath()}get is(){return this.props.is}set is(o){o&&this.setAttribute("is",o)}drawPath(){var{is:o}=this.props,t=dict[o];this.__ICO__&&o&&t&&(this.__ICO__.innerHTML="loading"===o?t:``,this.__ICO__.classList.toggle("load","loading"===o))}attributeChangedCallback(o,t,e){if(null!==e&&t!==e)switch(o){case"is":this.props.is=e,e?this.drawPath():this.removeAttribute("is")}}} +var n=Object.defineProperty;var l=(e,i,t)=>i in e?n(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t;var o=(e,i,t)=>(l(e,typeof i!="symbol"?i+"":i,t),t);import d from"./svg.js";let a=d;window.EXT_SVG_DICT&&Object.assign(a,EXT_SVG_DICT);class h extends HTMLElement{constructor(){super();o(this,"props",{is:""});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML=' ',this.__ICO__=this.root.lastElementChild,this.drawPath()}static get observedAttributes(){return["is"]}get is(){return this.props.is}set is(t){t&&this.setAttribute("is",t)}drawPath(){var{is:t}=this.props,s=a[t];!this.__ICO__||t&&s&&(this.__ICO__.innerHTML=t==="loading"?s:``,this.__ICO__.classList.toggle("load",t==="loading"))}attributeChangedCallback(t,s,r){if(s!==r)switch(t){case"is":this.props.is=r,r?this.drawPath():this.removeAttribute("is");break}}}customElements.get("wc-icon")||customElements.define("wc-icon",h);export{h as default}; -if(!customElements.get('wc-icon')){ - customElements.define('wc-icon', Icon) -} diff --git a/src/js/lib/icon/svg.js b/src/js/lib/icon/svg.js index 9da6381..c9f150b 100644 --- a/src/js/lib/icon/svg.js +++ b/src/js/lib/icon/svg.js @@ -1 +1 @@ -"use strict";const SVG_PATH={android:"M733.9 338.6C723.1 214.3 628.3 117 512.9 117s-210.2 97.3-221 221.6h442zM393 232.6c0-12.4 8.9-22.4 20-22.4 11 0 19.9 10.1 19.9 22.4 0 12.4-8.9 22.4-19.9 22.4-11.1 0-20-10-20-22.4m199.4 0c0-12.4 8.9-22.4 19.9-22.4 11 0 20 10.1 20 22.4 0 12.4-9 22.4-20 22.4s-19.9-10-19.9-22.4m-173.6-92c-4.7 2.4-9.6 5.2-13 7.2l-36-71.6c-2-3.9-0.8-8.9 2.7-11.1 3.5-2.3 7.9-0.9 9.9 3.1l36.4 72.4m187.7 0L643 68.2c2-3.9 6.4-5.3 9.9-3.1 3.5 2.2 4.7 7.2 2.8 11.1l-36.1 71.6c-3.4-1.9-8.4-4.7-13.1-7.2m-332 495.1c0 31.8-22.3 57.8-49.5 57.8-27.3 0-49.6-26-49.6-57.8V411.4c0-31.8 22.3-57.8 49.6-57.8 27.2 0 49.5 26 49.5 57.8v224.3z m574.1 0c0 31.8-22.3 57.8-49.5 57.8s-49.6-26-49.6-57.8V411.4c0-31.8 22.3-57.8 49.6-57.8 27.2 0 49.5 26 49.5 57.8v224.3zM293.8 363.1V722c0 31.8 23.2 57.8 51.4 57.8h35.6v122.3c0 31.8 22.3 57.8 49.6 57.8 27.2 0 49.5-26 49.5-57.8V779.9h64.6v122.3c0 31.8 22.3 57.8 49.5 57.8 27.3 0 49.6-26 49.6-57.8V779.9h36.2c28.3 0 51.4-26 51.4-57.8v-359H293.8z",app:"M834.6 960H564.3c-30.4 0-55.1-24.7-55.1-55V635c0-30.3 24.7-55 55.1-55h270.3c30.4 0 55.1 24.7 55.1 55v270c-0.1 30.3-24.8 55-55.1 55z m-445.3 0H119.1C88.7 960 64 935.3 64 905V635c0-30.3 24.7-55 55.1-55h270.3c30.4 0 55.1 24.7 55.1 55v270c-0.1 30.3-24.8 55-55.2 55z m177.9-61h258.4V640.8H567.2V899zM125 899h258.4V640.8H125V899z m595.6-356.7c-12.9 0-25.8-4.9-35.7-14.7L496.1 338.8c-9.5-9.5-14.8-22.2-14.8-35.6 0-13.5 5.2-26.1 14.8-35.6L685 78.8c19.7-19.7 51.7-19.7 71.3 0l188.9 188.8c9.5 9.5 14.8 22.2 14.8 35.6 0 13.5-5.3 26.1-14.8 35.6L756.3 527.6c-9.8 9.8-22.7 14.7-35.7 14.7zM543 303.5l178 177.9 178-177.9-178-177.9-178 177.9zM389.3 515.1H119.1c-30.4 0-55.1-24.7-55.1-55V190c0-30.3 24.7-55 55.1-55h270.3c30.4 0 55.1 24.7 55.1 55v270c-0.1 30.4-24.8 55.1-55.2 55.1z m-264.3-58h258.4V198.9H125v258.2z",apple:"M512.1 269c-1.3-2-1.6-19.8-0.5-30.5 2.3-22.4 7.5-40.1 17.6-60.2 9.4-18.5 24-38.6 39.7-54.8 22.7-23.3 61.8-45.2 97.4-54.7 12.1-3.2 30.1-5.9 31.4-4.6 1.2 1.2 1.4 24.1 0.3 34.8-4.9 45.1-27.1 88.3-63.2 123.1-28.1 27.1-57.6 42-91.7 46.5-12.1 1.7-30.1 1.9-31 0.4zM356.3 959c-33.9-7.5-66.3-32.7-104.1-81.2-37.7-48.3-59.2-84.4-79.3-133-20.5-49.4-33.3-97.8-39.2-147-1.4-11.5-1.7-21.6-1.7-47.4 0-36 0.9-46.1 6.2-71.6 10.5-50.4 34.1-95.6 67.5-128.9 20.3-20.3 39.3-33.6 66-46.2 29.9-14.1 60.4-21.1 92.2-21.1 25.8 0 44 4.5 104 25.7 22.1 7.8 38.6 12.5 46.8 13.3 4.5 0.4 7.9 0.1 13.8-1.4 8.3-2 38.3-11.9 63-20.6 53.4-18.9 88.9-23.4 130.9-16.4 50.9 8.4 89.7 26.7 121.4 57.4 9.6 9.3 24.2 26.1 24.2 28 0 0.3-3.7 3-8.3 5.9-18.4 12-41.3 32.1-52.6 46.4-36.5 46-48.6 108-33.1 169 13.7 53.7 53.1 100.6 107.4 127.7 8.9 4.4 10.9 5.8 10.7 7.3-0.3 2.5-11.5 31.3-17 43.6-11.1 25.1-28.8 56.1-45.8 80.4-29.8 42.7-57.9 73.8-80.6 89.3-10.9 7.4-26.8 14.8-38.9 18.1-8.6 2.3-11 2.5-25.2 2.5-12.9 0-17.6-0.4-26.1-2.1-11.8-2.4-32.8-9.1-54.8-17.3-26-9.8-50.3-14.7-72.7-14.7-26.6 0-48.5 4.6-83 17.5-20.3 7.6-31.8 11.3-45.1 14.5-9.7 2.3-13.6 2.8-26.1 3.1-10.4 0.4-16.5 0.1-20.5-0.8z",at:"M532.7 417.9c-22.6 0-39.8 9.5-51.7 28.4-11.8 19-19.6 47.4-23.3 85.3-1.9 25.2 0 44.2 5.8 57.1 5.8 12.9 15.3 19.4 28.2 19.4 11.8 0 22.2-3.2 31.4-9.5s17.4-17.9 24.3-34.9l13.1-142.2c-4.7-1.1-9.5-1.9-14-2.6-4.8-0.8-9.3-1-13.8-1zM512 64C264.5 64 64 264.5 64 512s200.5 448 448 448 448-200.5 448-448S759.5 64 512 64z m275.3 434.9c-1.9 46.1-16.4 85.9-43.1 119.8-26.7 33.6-66.8 50.4-119.8 50.4-17.7 0-33-4.7-45.7-14.2-12.9-9.5-22-23-27.1-40.5-8.8 17.9-20.2 31.2-33.8 40.1-13.6 8.8-29.5 13.4-47.8 13.4-32.5 0-57.3-12.5-74.5-37.3s-23.5-57.7-19-98.9c5.6-52.6 21.5-94.8 47.8-126.4s58.2-47.4 95.6-47.4c26.3 0 47.6 2.8 63.5 8.2 15.9 5.4 33.6 12.3 52.8 23.7l-1.1-0.2h1.7l-16.6 179.6c-1.1 18.3 0.2 31.4 3.7 38.3 3.7 6.9 8.4 10.6 14.4 10.6 24.3 0 43.9-11 58.6-33.6 14.6-22.6 22.8-50.8 24.6-85.3 3.4-71.1-11-126.4-43.5-166.1-32.5-39.6-82.5-59.7-150.1-59.7-65.7 0-118 21.3-156.8 64.2s-59.7 101-63.1 174.9c-3.7 71.9 12.1 128.8 47.2 170.4 35.1 41.8 85.5 62.7 151.4 62.7 18.3 0 37.3-1.9 57.1-5.8 19.6-3.9 36.8-8.8 51-14.6l12.5 52.1c-14.6 8.8-33.2 15.7-55.8 20.7-22.6 5-44.6 7.3-66.1 7.3-87.9 0-155.7-26.1-203.1-78.4-47.4-52.1-69.4-123.6-65.7-214.5 3.9-90 32.1-161.3 84.2-214.1 52.3-52.8 121.7-79 208.3-79 85.1 0 150.3 25 195.4 74.7 45.6 49.8 66.3 118.1 62.9 204.9z",attach:"M872.7 458.8L499.9 831.6c-74.6 74.6-196.6 74.6-271.1 0-74.6-74.6-74.6-196.6 0-271.1l389.7-389.7c47.4-47.4 122-47.4 169.5 0 47.4 47.4 47.4 122 0 169.5L398.2 730c-18.6 18.6-49.1 18.6-67.8 0-18.6-18.6-18.6-49.1 0-67.8l322-322-50.8-50.8-322 322c-47.4 47.4-47.4 122 0 169.5 47.4 47.4 122 47.4 169.5 0l389.7-389.7c74.6-74.6 74.6-196.6 0-271.1s-196.6-74.6-271.1 0L178 509.7C74.6 613 74.6 779.1 178 882.5s269.4 103.4 372.8 0l372.8-372.8-50.9-50.9z",backward:"M952.7 732c-19.3-108-78-244.6-175.4-336.6-48.6-46-102-75.5-156.7-91.3-6.8-2-13.7-3.8-20.6-5.4-6.9-1.6-13.8-3-20.7-4.2-13.8-2.4-27.6-4.1-41.4-5-9.7-0.7-19.4-1-29-1.1V124.7c0-0.1 0.2-1.6-0.9-2.5-0.9-0.7-2.2-0.8-3.2-0.2L68 420.6c-0.2 0.1-4.2 2.8-4 7.7 0.2 4.7 4.1 7 4.3 7.2l436.8 338.3c1.8 1.1 2.5 1.1 2.8 0.8 0.7-0.5 0.9-2.5 0.9-2.5V552.4c51.6 2.8 127.6 10.1 184.3 29.1C815.1 622.3 894 733 927.3 836.8c8.2 25.6 12.3 47.7 14.5 63.5 0.4 1.4 1.8 2.2 3 2 1-0.2 1.8-1 2-2 0.7-2.6 1.6-6.4 2.9-11.2 1.6-6.3 2.8-10.9 2.9-11.1 4.9-21.3 7.4-44 7.4-68.4 0-24.3-2.4-50.3-7.3-77.6z",bell:"M512 911.1c-37.2 0-69.8-25.6-79.1-60.5H384c9.3 62.8 62.8 109.4 128 109.4s118.7-48.9 128-109.4h-48.9c-9.3 34.9-41.9 60.5-79.1 60.5z m336-238.2c0-9-4.5-18-13.5-20.3-2.3 0-121.8-65.4-121.8-241.3 2.3-51.9-20.3-162.4-124-196.2-2.3 0-2.3 0-4.5-2.3 11.3-15.8 20.3-36.1 20.3-56.4 0-49.6-40.6-92.5-92.5-92.5s-92.5 40.6-92.5 92.5c0 20.3 6.8 40.6 20.3 56.4-2.3 0-4.5 0-4.5 2.3C331.6 248.9 309 357.2 311.3 409c0 175.9-115 239-121.8 243.5-6.8 4.5-13.5 11.3-13.5 20.3v121.8c0 6.8 2.3 13.5 6.8 18s11.3 6.8 15.8 6.8h626.9c6.8 0 13.5-2.3 15.8-6.8 4.5-4.5 6.8-11.3 6.8-18V672.9zM512 111c24.6 0 44.8 20.2 44.8 44.8 0 24.6-20.2 44.8-44.8 44.8-24.6 0-44.8-20.2-44.8-44.8 0-24.6 20.2-44.8 44.8-44.8zM242 761v-80.1c33.8-23.8 124.5-101.8 124.5-266.3 0-4.3-2.1-112.6 86.5-142.9 6.3-2.2 27.4-8.7 59.1-8.7 31.6 0 52.7 6.5 59.1 8.7 88.6 30.3 86.5 138.6 86.5 142.9 0 164.6 90.7 242.5 124.5 266.3V761H242z",calendar:"M315.3 323.8c-18 0-32.7-14.1-32.7-31.3V128.2c0-17.3 14.7-31.3 32.7-31.3 18 0 32.7 14.1 32.7 31.3v164.3c-0.1 17.2-14.7 31.3-32.7 31.3z m528.5 603.4H180.2C116.1 927.2 64 876 64 813.2V300.8c0-62.9 52.1-114 116.2-114h38.9c18 0 32.7 14.1 32.7 31.3 0 17.3-14.7 31.3-32.7 31.3h-38.9c-28.1 0-50.9 23-50.9 51.3v512.4c0 28.3 22.8 51.3 50.9 51.3h663.5c28.1 0 50.9-23 50.9-51.3V300.8c0-28.3-22.8-51.3-50.9-51.3H810c-18 0-32.7-14.1-32.7-31.3 0-17.3 14.7-31.3 32.7-31.3h33.7c64.1 0 116.2 51.1 116.2 114v512.4c0.1 62.7-52 113.9-116.1 113.9zM708.7 323.8c-18 0-32.7-14.1-32.7-31.3V128.2c0-17.3 14.7-31.3 32.7-31.3 18 0 32.7 14.1 32.7 31.3v164.3c0 17.2-14.7 31.3-32.7 31.3z m43.8 393.1h-481c-18 0-32.7-14.1-32.7-31.3 0-17.3 14.7-31.3 32.7-31.3h480.9c18 0 32.7 14.1 32.7 31.3 0 17.3-14.6 31.3-32.6 31.3z m0-205.3h-481c-18 0-32.7-14.1-32.7-31.3 0-17.3 14.7-31.3 32.7-31.3h480.9c18 0 32.7 14.1 32.7 31.3 0 17.2-14.6 31.3-32.6 31.3z m-131.2-267H399.9c-18 0-32.7-14.1-32.7-31.3 0-17.3 14.7-31.3 32.7-31.3h221.4c18 0 32.7 14.1 32.7 31.3 0 17.2-14.7 31.3-32.7 31.3z",camera:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m271.5 719.5C711 856.1 614.6 896 512 896s-199-39.9-271.5-112.5C167.9 711 128 614.6 128 512s39.9-199 112.5-271.5C313 167.9 409.4 128 512 128s199 39.9 271.5 112.5C856.1 313 896 409.4 896 512s-39.9 199-112.5 271.5zM400.1 212.1c-81.3 30.3-146.9 92.8-181.4 171.9H512L400.1 212.1zM825.6 576c4.3-21.1 6.4-42.5 6.4-64 0-73.2-24.6-140.7-66-194.7L622 576h203.6zM719.9 268.8C664 220.9 591.4 192 512 192c-15.9 0-31.6 1.2-46.9 3.4L621.7 448l98.2-179.2zM198.4 448c-4.3 21.1-6.4 42.5-6.4 64 0 73.3 24.6 140.8 66.1 194.7L402 448H198.4z m425.5 363.9c81.3-30.3 146.9-92.8 181.4-171.9H512l111.9 171.9z m-319.8-56.7C360 803.1 432.6 832 512 832c15.9 0 31.6-1.2 46.9-3.4L402.3 576l-98.2 179.2z",chart:"M321.4 812.4h-108V548h108v264.4z m165.2 0h-108V283.6h108v528.8z m165.2 0h-108V415.8h108v396.6z m158.9 0h-108V213.6h108v598.8zM960 876.8c0-10.6-8.4-19.2-18.7-19.2H82.7c-10.3 0-18.7 8.6-18.7 19.2S72.4 896 82.7 896h858.7c10.2 0 18.6-8.6 18.6-19.2zM85.3 128H80c-8.8 0-16 7.2-16 16v736c0 8.8 7.2 16 16 16h5.3c8.8 0 16-7.2 16-16V144c0-8.8-7.2-16-16-16z","checkbox-on":"M860.4 64H163.6C108.8 64 64 108.8 64 163.6v696.9c0 54.8 44.8 99.6 99.6 99.6h696.9c54.8 0 99.6-44.8 99.6-99.6V163.6C960 108.8 915.2 64 860.4 64z m-448 696.9L163.6 512l69.7-69.7 179.2 179.2 378.3-378.3 69.7 69.7-448.1 448z","checkbox-off":"M860.2 163.6v696.8H163.6V163.6h696.6m0-99.6H163.6C108.8 64 64 108.8 64 163.6v696.8c0 54.8 44.8 99.6 99.6 99.6h696.8c54.8 0 99.6-44.8 99.6-99.6V163.6c-0.2-54.8-45-99.6-99.8-99.6z",client:"M578 886.6H137.9c-40.7 0-73.9-35.1-73.9-78.3v-46.9c0-17.3 13.4-31.3 29.9-31.3H578c16.5 0 29.9 14.1 29.9 31.3 0 17.3-13.4 31.3-29.9 31.3H123.7v15.6c0 8.6 6.3 15.6 14.1 15.6H578c16.5 0 29.9 14.1 29.9 31.3 0 17.4-13.4 31.4-29.9 31.4z m308.1 0h-176c-40.7 0-73.9-35.1-73.9-78.3V432.8c0-43.2 33.1-78.3 73.9-78.3h176.1c40.7 0 73.9 35.1 73.9 78.3v375.6c-0.1 43.1-33.2 78.2-74 78.2z m-176-469.4c-7.8 0-14.2 7-14.2 15.6v375.6c0 8.6 6.3 15.6 14.2 15.6h176.1c7.8 0 14.1-7 14.1-15.6V432.8c0-8.6-6.3-15.6-14.1-15.6H710.1z m88 374.1c-7.9 0-15.6-3.2-21.1-8.8-5.6-5.6-8.7-13.3-8.7-21.1 0-7.9 3.2-15.7 8.8-21.1 5.5-5.5 13.2-8.7 21-8.7 8 0 15.7 3.2 21.2 8.8 5.5 5.5 8.7 13.2 8.7 21 0 8-3.2 15.7-8.8 21.2-5.6 5.5-13.3 8.7-21.1 8.7zM578 669.5H225.9c-40.7 0-73.9-35.1-73.9-78.3V215.6c0-43.2 33.1-78.3 73.9-78.3h572.2c40.7 0 73.9 35.1 73.9 78.3v46.9c0 17.3-13.4 31.3-29.9 31.3s-29.9-14.1-29.9-31.3v-46.9c0-8.6-6.3-15.6-14.2-15.6H225.9c-7.8 0-14.1 7-14.1 15.6v375.6c0 8.6 6.3 15.6 14.1 15.6H578c16.5 0 29.9 14.1 29.9 31.3 0 17.3-13.4 31.4-29.9 31.4z",close:"M925.9 960c-9.1 0-17.7-3.5-24.1-10L512 560.2 122.2 950c-6.4 6.4-15 10-24.1 10-9.1 0-17.7-3.5-24.1-10-13.3-13.3-13.3-34.9 0-48.2L463.8 512 74 122.2C60.7 108.9 60.7 87.3 74 74c13.3-13.3 34.9-13.3 48.2 0L512 463.8 901.8 74c13.3-13.3 34.9-13.3 48.2 0 13.3 13.3 13.3 34.9 0 48.2L560.2 512 950 901.8c13.3 13.3 13.3 34.9 0 48.2-6.4 6.5-15 10-24.1 10z",color:"M512 64C283.2 64 96 265.6 96 512s187.2 448 416 448c39.3 0 69.3-32.3 69.3-74.7 0-19.9-6.9-37.3-18.5-49.8-11.6-12.4-18.5-29.9-18.5-49.8 0-42.3 30-74.7 69.3-74.7h83.2c127.1 0 231.1-112 231.1-248.9C928 243.2 740.8 64 512 64zM256 512c-36.3 0-64-27.7-64-64s27.7-64 64-64 64 27.7 64 64-27.7 64-64 64z m128-192c-36.3 0-64-27.7-64-64s27.7-64 64-64 64 27.7 64 64-27.7 64-64 64z m256 0c-36.3 0-64-27.7-64-64s27.7-64 64-64 64 27.7 64 64-27.7 64-64 64z m128 192c-36.3 0-64-27.7-64-64s27.7-64 64-64 64 27.7 64 64-27.7 64-64 64z","dbl-left":"M536.2 948.6L76.3 539.7l-0.3-0.3c-7.7-7.4-12-17.2-12-27.6 0-12.4 6.1-23.9 16.8-31.6L536.3 75.3c8.1-7.3 19-11.3 30.5-11.3 24.2 0 43.9 18.1 43.9 40.3 0 11.1-4.8 21.4-13.4 29L171.2 512l426.1 378.7c8.5 7.6 13.4 18.1 13.4 29 0 22.2-19.7 40.3-43.9 40.3-11.3 0-22.2-4-30.6-11.4z m349.4 0l-460-408.9-0.3-0.3c-7.7-7.4-12-17.2-12-27.6 0-12.4 6.1-23.9 16.8-31.6L885.6 75.3c8.2-7.3 19-11.3 30.5-11.3 24.2 0 43.9 18.1 43.9 40.3 0 11.1-4.8 21.4-13.4 29L520.5 512l426.1 378.7c8.5 7.6 13.4 18.1 13.4 29 0 22.2-19.7 40.3-43.9 40.3-11.3 0-22.2-4-30.5-11.4z","dbl-right":"M457.2 960c-24.2 0-43.9-18.1-43.9-40.3 0-10.9 4.9-21.4 13.4-29L852.8 512 426.7 133.2c-8.6-7.5-13.4-17.8-13.4-29 0-22.2 19.7-40.3 43.9-40.3 11.5 0 22.4 4 30.6 11.3l455.5 404.9c10.7 7.7 16.8 19.2 16.8 31.6 0 10.4-4.3 20.2-12 27.6l-0.3 0.3-460 409c-8.4 7.4-19.3 11.4-30.6 11.4z m-349.3 0C83.7 960 64 941.9 64 919.7c0-10.9 4.9-21.4 13.4-29L503.5 512 77.4 133.2c-8.6-7.5-13.4-17.8-13.4-29C64 82.1 83.7 64 107.9 64c11.5 0 22.4 4 30.6 11.3L594 480.2c10.7 7.7 16.8 19.2 16.8 31.6 0 10.4-4.3 20.2-12 27.6l-0.3 0.3-460.1 408.9c-8.3 7.4-19.2 11.4-30.5 11.4z",deny:"M321.8 540.6c-22.2 0.1-33.4-8.7-33.5-26.5-0.1-18.2 11-27.4 33.2-27.5l380.2-2.1c12.8-0.1 21.8 2.4 27.1 7.6 5.3 5.1 8 11.6 8 19.6 0 7.9-2.4 14.4-7.4 19.3s-14.1 7.4-27.5 7.5l-380.1 2.1zM512 120c216.5 0 392 175.5 392 392 0 78.5-23.1 151.5-62.8 212.8-0.6 12.9 6.4 24.8 17.8 30.2 10 4.7 22 3.6 31.3-2.9C934.4 682.7 960 600.3 960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c83.3 0 161.3-22.7 228.1-62.4 9.5-9.6 11.4-24.3 4.9-35.6-6-10.5-18.1-16.2-30.3-14.4C655.5 883.4 586.2 904 512 904c-216.5 0-392-175.5-392-392s175.5-392 392-392z",doc:"M646.4 960H243.2C182.9 960 128 903.8 128 842.1V291.9c0-29.4 11.8-59 32.5-81.3 21.4-23.1 49.2-35.8 78.4-35.8l23.9-0.6c0.3-29 12.6-56.6 34.7-77.7C319.2 75.9 348.4 64 377.6 64c3.2 0 319.3 0.9 322.6 0.9h3.4L896 289.6v442.5c0 61.7-54.9 117.9-115.1 117.9l-19.3-0.2c-0.2 29.2-12.5 56.8-34.9 78-21.8 20.4-51 32.2-80.3 32.2zM240.6 232.3c-23.3 0-56.6 35.1-56.6 59.6v550.2c0 10.9 8.1 26.2 20.6 39.1 12.8 13.2 27.6 21.4 38.6 21.4h403.3c19.1 0 44.5-25.7 46.3-52.9l-315.2 0.3c-60.3 0-115.2-56.2-115.2-117.9V231.7l-21.8 0.6z m124-110.9c-22.9 0-46.2 35.2-46.2 60.5v550.2c0 25.3 23.3 60.5 46.2 60.5h416.3c11 0 25.8-8.2 38.6-21.4 12.5-12.9 20.6-28.3 20.6-39.1V341.5h-86c-61.1 0-102.2-41.7-102.2-103.9 0-0.5-0.4-56.4 0-116.2H364.6z m335.6 536.3h-242c-19 0-34.5-15.9-34.5-35.3 0-19.5 15.5-35.3 34.5-35.3h242c19 0 34.5 15.9 34.5 35.3s-15.5 35.3-34.5 35.3z m0-137.4h-242c-19 0-34.5-15.9-34.5-35.3 0-19.5 15.5-35.3 34.5-35.3h242c19 0 34.5 15.9 34.5 35.3s-15.5 35.3-34.5 35.3z m7.6-310.2c0 26.1 23.7 74.6 46.2 74.6h64.3L707.8 149.2v60.9z",download:"M639.8 187.8H384.2v60.8h255.7v-60.8z m0-59.4H384.2v31.8h255.7v-31.8z m224.6 237.3H639.8v-87.3H384.2v87.3H161.8l349 340.1 353.6-340.1z m19.4 289.6l-30.7 151.2H170.8l-30.6-151.2H64v240.3h896V655.3h-76.2z",edit:"M835 298.7L685.5 154.2l74.8-72.3c24.8-23.9 64.9-23.9 89.6 0l59.8 57.8c24.8 24 24.8 62.8 0 86.8L835 298.7zM400.8 718.5L251.4 574l406.3-389.8 149.4 144.5-406.3 389.8zM131.3 837l90.9-234.9 148.2 143.3L131.3 837z m791.4 123H101.3C80.8 960 64 943.2 64 922.7c0-20.5 16.8-37.3 37.3-37.3h821.3c20.5 0 37.3 16.8 37.3 37.3 0.1 20.5-16.7 37.3-37.2 37.3z",eye:"M512 210c-203.6 0-376.8 124.8-448 302 71.2 177.2 244.4 302 448 302s376.8-124.8 448-302c-71.2-177.2-244.4-302-448-302z m0 503.4c-112 0-203.6-90.6-203.6-201.4S400 310.6 512 310.6 715.6 401.2 715.6 512 624 713.4 512 713.4z m0-322.2c-67.2 0-122.2 54.4-122.2 120.8s55 120.8 122.2 120.8S634.2 578.4 634.2 512s-55-120.8-122.2-120.8z","eye-off":"M512.1 289.6c112.4 0 203.8 90.6 203.8 202.2 0 26.2-5.2 51-14.6 74l119 118c61.6-51 110-116.8 139.8-192-70.6-177.4-244.5-303.1-448.3-303.1-57 0-111.6 10.2-162.2 28.2l88 87.4c23.1-9.3 48.1-14.7 74.5-14.7zM104.8 179.5l93 92.2 18.8 18.6C148.8 342.2 95.8 411.8 64 491.8c70.4 177.4 244.3 303.1 448.1 303.1 63.2 0 123.4-12.2 178.4-34l17.2 17 119.4 118 51.8-51.4-722.5-716.4-51.6 51.4z m225.1 223.3l63.2 62.6c-2 8.4-3.2 17.4-3.2 26.2 0 67 54.6 121.2 122.2 121.2 9 0 18-1.2 26.4-3.2l63.2 62.6c-27.2 13.4-57.4 21.4-89.6 21.4-112.4 0-203.8-90.6-203.8-202.2 0-31.6 8.2-61.4 21.6-88.6z m175.6-31.4l128.4 127.4 0.8-6.4c0-67-54.6-121.2-122.2-121.2l-7 0.2z",face:"M327.9 690.6c-6.5-3.9-12.4-11.6-12.4-19.7 0-12.3 9.9-22.2 22.2-22.2 2 0 3.7 0.6 5.5 1.1h0.5c51.5 23.7 108.7 36.1 169.1 36.1 59.5 0 115.8-12.7 166.7-35.7h0.2c2.4-0.8 4.9-1.5 7.6-1.5 12.3 0 22.4 10 22.4 22.4 0 8.5-4.7 15.8-11.6 19.6-56.4 25.7-118.8 40.6-184.8 40.6-65.7 0-129.2-15.3-185.4-40.7-0.3-0.1-0.2-0.1 0 0zM512 120c216.5 0 392 175.5 392 392 0 78.5-23.1 151.5-62.8 212.8-0.6 12.9 6.4 24.8 17.8 30.2 10 4.7 22 3.6 31.3-2.9C934.4 682.7 960 600.3 960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c83.3 0 161.3-22.7 228.1-62.4 9.5-9.6 11.4-24.3 4.9-35.6-6-10.5-18.1-16.2-30.3-14.4C655.5 883.4 586.2 904 512 904c-216.5 0-392-175.5-392-392s175.5-392 392-392zM394.6 391.6c0-25-20.3-45.3-45.3-45.3-25 0-45.3 20.3-45.3 45.3 0 25 20.3 45.3 45.3 45.3 25 0 45.3-20.3 45.3-45.3z m281.3-45.2c-25 0-45.3 20.3-45.3 45.3 0 25 20.3 45.3 45.3 45.3 25 0 45.3-20.3 45.3-45.3 0-25.1-20.3-45.3-45.3-45.3z","finger-print":"M156.2 411.2c-4.8 0-9.8-1.2-14.2-3.8-13.4-7.8-18-24.8-10.2-38.2C167.4 309.2 275.6 169 512 169c102.4 0 192.2 27.2 266.8 80.8 61.4 44 95.8 93.8 112.2 117.8 8.8 12.8 5.4 30-7.4 38.8-12.8 8.6-30.4 5.4-39.2-7.4-29.8-43.2-120.2-174.4-332.4-174.4-207.2 0-300.8 120.8-331.4 172.6-5.2 9.2-14.6 14-24.4 14zM631 960c12.6 0 24-8.4 27.4-21 3.8-14.8-5.2-30-20.4-33.8C501 870.8 443.8 729 439.4 717.8c-1.4-4.6-7.4-27.4-9.4-55.6-2-27-0.6-64.2 17.4-88 13.2-17.4 34.4-25.8 64.6-25.8 55 0 64.2 27.2 78.6 83.6 14 55 33.2 130.4 140 135.8 41 2 78-16.4 104-51.6 39-52.8 46.4-133.6 18.8-205.6-21.6-56.4-63.2-112.8-114-154.8-65.6-54-144.2-82.6-227.4-82.6-180 0-299.6 123.2-338.4 245.4C138 631.4 181.2 795 183 802c4 14.8 19.6 23.8 34.6 19.8 15-3.8 24-19.2 20-34-0.4-1.4-40.8-154.8-10-252.4 16.6-52.4 51.2-103.4 94.8-139.6C375 352.2 440.6 329 512 329c167.2 0 262 131.8 288.8 201.8 20.8 54 16 115.4-11.6 153-10.2 13.8-28.2 30-55.6 28.6-62.4-3.2-73.2-34.4-88.2-93.8-7.2-28.6-14.6-58.2-33-82.2-22.4-29.4-55-43.6-100.2-43.6-48.6 0-85.4 16.2-109.6 48-52.8 69.6-18.4 188.4-17 193.4l0.4 1.6c2.6 7.2 66.6 180.4 238 223.4 2.4 0.6 4.6 0.8 7 0.8z m-220-12.8c6.8 0 13.8-2.6 19-7.4 11.4-10.4 12-28.2 1.4-39.4-60.4-64-94.6-135.6-107.4-225.6-6.4-52.8 2.6-132.6 49-184.4 32.2-36 79-54.2 138.8-54.2 69.2 0 121.6 31.2 156 92.6 27.4 48.8 33 98.8 33 99.4 1.6 15.2 15.6 26.4 31 24.8s26.8-15.2 25.2-30.6c-0.2-2.4-6.6-60.6-38.8-119-44.4-80.4-115.6-123-206.2-123-76.6 0-137.6 24.6-181 73-58.8 65.6-70.8 161-62.6 228.4v0.6c14.6 101.8 53.4 183.2 122 256 5.6 5.8 13 8.8 20.6 8.8zM727 867c12.8 0 26.2-0.8 39.8-2.4 15.4-1.6 26.6-15.4 24.8-30.8-1.8-15.4-15.8-26.4-31.2-24.6-61.6 7-111.6-5-149-35.2-63.2-51.2-71.4-140.2-71.6-141.8-1.2-15.4-14.6-26.8-30.2-25.6s-27.2 14.6-26 30c0.4 4.6 9.6 113.4 91.6 180.2C616 850.2 667 867 727 867z m64.6-716c0 15.4-12.6 27.8-28.2 27.8-6.4 0-12.2-2-17-5.6l-0.4 0.4 0.2 0.2c-0.8-0.4-72.6-54-234.2-54s-233.4 53.4-234.2 54l0.2-0.2c-4.6 3.2-10.2 5.2-16.4 5.2-15.6 0-28.2-12.4-28.2-27.8 0-8.2 3.6-15.6 9.4-20.8 0 0 0.2 0 0.4-0.2 1-1 2.2-1.8 3.4-2.6C265 114.6 348.2 64 512 64c156 0 239 45.8 262.4 61.2 10.2 4.2 17.2 14.2 17.2 25.8z",fire:"M622.5 959.8c-29.2-27.3-63-64.1-77.5-99.5-35.2-86 0-170.6 0-170.6s-113.8 12-167.3 155c-15.6 41.7 4.2 84.7 27 115.4C245.3 918.4 129 787.8 129 632.8c0-85.6 69.4-139.2 128-199.1 33.8-34.5 64-170.6 64-170.6s49.6 59.6 64 142.2c19.3 111.3 0 142.2 0 142.2s94.4-64.9 96-199C482.7 197.2 385 64 385 64s223.5 111.6 279.9 255.2c67.1 171 40.1 342 40.1 342s65.6-38 96-85.3c33.5-52.1 32-113.7 32-113.7s62.5 92 64 170.6c2.9 154.7-115 285.2-274.5 327z",first:"M733.2 611.4c-4.8-10.3-18.1-15.2-29.8-10.8-11.6 4.3-17.2 16.3-12.4 26.6L771.9 801l-148.4-26.7c-9.1-1.6-18.5 1.9-23.7 8.9l-83.3 113.3-4.2 6.5-4.9-6.4L424.2 784c-5.1-6.9-14.5-10.4-23.7-8.6l-148.4 28.1 81.1-174.6c4.8-10.4-0.7-22.2-12.3-26.5-11.6-4.2-25 0.7-29.8 11.1l-97.6 210.2c-3.2 7-1.9 14.9 3.5 20.7 5.4 5.8 13.9 8.4 22.2 6.8L394.6 818l98.2 133c2.6 3.5 6.2 6.1 10.3 7.6 1.9 0.7 4 1.1 6.1 1.3 0.2 0 3.7 0.1 4.6 0.1h0.3c6.8-0.6 13-3.9 16.8-9.1L629.4 817l175.4 31.5c4.6 0.8 9.2 0.4 13.3-1.2 3.4-1.3 6.4-3.3 8.8-5.9 5.4-5.8 6.7-13.8 3.5-20.7l-97.2-209.3zM512 64c-156.9 0-284.5 127.6-284.5 284.5S355.1 632.9 512 632.9s284.5-127.6 284.5-284.5S668.9 64 512 64z m20.9 127.4v320.2h-42.8V284.3h-74.7v-31.9c27.6 0 46.9-3.5 57.8-10.5 12.4-8.2 21.9-25.1 28.2-50.6h31.5z",floppy:"M841.4 960H182.6c-30.1 0-54.6-28.4-54.6-63.4V127.4c0-34.9 24.5-63.4 54.6-63.4H728c6.3 0 12.5 3 16.9 8.1l144.2 168.5c4.4 5.1 6.8 11.9 6.8 19.1v637c0.1 34.9-24.4 63.3-54.5 63.3z m-69.9-54.4h69.8c4 0 7.3-4 7.3-9h4.6-4.6V270.8L718.1 118.4h-22.5v192.4c0 28.1-19.7 50.9-43.9 50.9H371.3c-24.2 0-43.9-22.8-43.9-50.9V118.4H182.6c-4 0-7.3 4-7.3 9v769.3c0 4.9 3.3 9 7.3 9h83.9v-271c0-79.1 55.3-143.5 123.3-143.5h258.4c68 0 123.3 64.4 123.3 143.5v270.9z m-457.6 0h410.3V634.7c0-49.1-34.1-89.1-75.9-89.1H389.8c-41.9 0-75.9 40-75.9 89.1v270.9z m284-128.7H426.1c-10.2 0-18.5-10.4-18.5-23.2 0-12.8 8.3-23.2 18.5-23.2h171.8c10.2 0 18.5 10.4 18.5 23.2 0 12.8-8.3 23.2-18.5 23.2z m0-80.6H426.1c-10.2 0-18.5-10.4-18.5-23.2 0-12.8 8.3-23.2 18.5-23.2h171.8c10.2 0 18.5 10.4 18.5 23.2 0 12.8-8.3 23.2-18.5 23.2z m5.3-389h45V118.4h-45v188.9z m-228.4 0h181.1V118.4H374.8v188.9z",fly:"M471.7 926.5h-57.9V728.6c0-16.6 3.4-39.9 29.6-72.3 13.7-16.9 285-330.6 383.7-444.7l-675 362.6 217.9 77-16.7 54.4-9.5-3.3c-9.6-3.3-236.2-81.6-258.3-91.9-12.9-6-21-17.9-21.5-31.8-0.6-16.6 9.2-32.2 26.3-41.7 26.9-15 765.6-403.4 809.7-426.6 4.6-3.8 22.3-17.2 41.3-11.4l1.2 0.4 1.1 0.7c18.5 11.5 16.9 28.5 16 38.7-0.2 2-0.4 3.9-0.4 5.3v2.5l-0.9 1.6c-5.1 16.6-50.8 251.5-84.3 423.4-27 138.8-43.9 225.1-46.5 235.5-3.8 20.4-14.1 36.9-28.5 45.2-11.7 6.7-25 7.7-38.6 2.8-25.3-6.2-242.8-78.3-252.2-81.4l-10-3.3 23.8-59 8.7 2.9c91.7 31 230.8 77.5 244.2 80.8h0.9c2.3-13.5 12.7-68.5 58.8-307.2 20.7-106.9 41.5-214.6 52.1-269.3C771 355.9 503.6 673 481 698.6c-5 9.3-9.3 17.6-9.3 29.9v198z","folder-open":"M107.6 845.9l10.9 1.2c1.3 0.1 2.6 0.2 3.9 0.2H783c14.3 0 27-9 30.7-21.9l120.9-417.9c2.6-9 0.6-18.3-5.5-25.7-6.1-7.3-15.2-11.5-25.2-11.5h-94.5v-43.2c0-17.3-15.2-31.4-33.9-31.4H375.3c-4.6 0-9-1.7-12.3-4.7l-54-50c-6.4-5.9-14.9-9.2-23.9-9.2H117.3c-18.7 0-33.8 14.1-33.8 31.4v552.6c0 14.2 10.2 26.2 24.1 30.1z m679.3 20.9H117.6C88 866.8 64 842.7 64 813.1V210.9c0-29.6 24-53.7 53.6-53.7h168.7c14.3 0 27.8 5.6 37.9 15.8l53.7 53.9h401.4c29.6 0 53.6 24.1 53.6 53.7v27.6h75.5c16.2 0 31.1 7.4 40.9 20.2 9.8 12.8 13 29.1 8.9 44.7L836.7 828.5c-6.1 22.5-26.5 38.3-49.8 38.3z m20-18.8H92.1c-5.2 0-9.9-2.4-13.1-6.5-3.1-4.1-4.1-9.3-2.8-14.3L207 334.6c1.9-7.2 8.5-12.3 15.9-12.3h714.8c5.2 0 10 2.4 13.1 6.5 3.1 4.1 4.1 9.3 2.8 14.3L822.8 835.8c-1.9 7.2-8.5 12.2-15.9 12.2zM83 804.5V203.6c0-10.2 8.3-18.5 18.4-18.5H280c4.9 0 9.6 1.9 13 5.4l57.5 58.1c6.8 6.9 15.8 10.6 25.5 10.6h426c10.2 0 18.4 8.3 18.4 18.5v50.1H235.5c-15.3 0-28.7 10.4-32.7 25.4L83 804.5zM119.5 213v413.2l74.3-279.8c6-22.5 26.3-38.3 49.5-38.3h530.1v-25.5h-398c-14.3 0-27.6-5.6-37.7-15.8L284.2 213H119.5z","folder-close":"M902.7 923.3h-776c-34.3 0-62.1-27.9-62.1-62.3V162.9c0-34.3 27.9-62.3 62.1-62.3h195.6c16.6 0 32.2 6.5 44 18.3l62.2 62.5h465.4c4.2 0.1 31.1 1 50.4 23.6 17.6 20.5 16.3 44.3 16 49v624.9c-6.9 26.2-30.6 44.4-57.6 44.4z m-607.9-452h332.4c7.1 0 12.8-5.2 12.8-11.7 0-6.5-5.7-11.7-12.8-11.7H294.8c-7.1 0-12.8 5.2-12.8 11.7 0 6.5 5.7 11.7 12.8 11.7z m0 128.3h434.4c7.1 0 12.8-5.2 12.8-11.7 0-6.5-5.7-11.7-12.8-11.7H294.8c-7.1 0-12.8 5.2-12.8 11.7 0 6.4 5.7 11.7 12.8 11.7z m0 128.1h434.4c7.1 0 12.8-5.2 12.8-11.7 0-6.5-5.7-11.7-12.8-11.7H294.8c-7.1 0-12.8 5.2-12.8 11.7 0 6.5 5.7 11.7 12.8 11.7z",get:"M958.3 414.3c-43.9-110.1-5.6-200.2 1.7-303.4-0.2-1.3-1-2.2-2.1-2.4-0.7-0.1-1.2 0.1-1.5 0.2-54.6 30.4-109.6 72.7-162.7 120.7l-62.9 60.4c-181 183.4-325.3 409.4-325.3 409.4L300.8 482.7c-0.1-0.2-0.8-1.1-2.1-1.2-0.7-0.1-1.2 0.1-1.5 0.3l-232 120.5c-1 1-1.4 2.3-1.1 3.5 0.3 1.1 1 1.7 1.3 1.9 101 41.4 251 175.1 351.6 306.7 0.6 0.9 1.6 1.3 2.6 1.1 1.2-0.2 1.7-1.3 1.7-1.4C483.6 795.9 691.6 588.4 840.5 482l59.1-38.5c22-12.7 41.3-21.6 57.1-25.8 0.3 0 0.9-0.2 1.3-0.7 0.6-0.7 0.7-1.8 0.3-2.7z",happy:"M699.7 960c-6.7 0-13.4-3-18-8.6-7.9-9.9-6.3-24.4 3.6-32.3 123.7-99 194.6-246.5 194.6-404.8 0-161-73-310.2-200.2-409.2-10-7.8-11.8-22.2-4-32.3 7.8-10 22.2-11.8 32.3-4C846.5 176.6 925.9 339 925.9 514.3c0 172.3-77.2 332.9-211.8 440.7-4.1 3.2-9.2 5-14.4 5zM207.9 347c60.6 0 109.8-49.2 109.8-109.8 0-60.6-49.1-109.8-109.8-109.8S98.1 176.6 98.1 237.3c0 60.6 49.1 109.7 109.8 109.7z m0 547.6c60.6 0 109.8-49.2 109.8-109.8 0-60.6-49.1-109.8-109.8-109.8-60.6 0-109.8 49.2-109.8 109.8 0 60.7 49.1 109.8 109.8 109.8z",headset:"M876.3 478.9v-4.8c0-195.2-148.2-354.1-330.4-354.1h-67.8c-182.2 0-330.4 158.8-330.4 354.1v4.8C99.8 490.7 64 536.7 64 591.6v196.7C64 852.2 112.3 904 171.9 904c59.6 0 107.9-51.8 107.9-115.7V591.6c0-55-35.8-101-83.7-112.7v-4.8c0-166.6 126.5-302.2 282-302.2h67.8c155.5 0 282 135.6 282 302.2v4.8c-47.9 11.8-83.7 57.8-83.7 112.7v196.7c0 63.9 48.3 115.7 107.9 115.7 59.6 0 107.9-51.8 107.9-115.7V591.6c0-54.9-35.8-100.9-83.7-112.7z",home:"M837.2 960H620.4c-18.2 0-33.1-15.1-33.1-33.6V693H436.7v233.3c0 18.5-14.8 33.6-33.1 33.6H186.8c-18.2 0-33.1-15.1-33.1-33.6v-356c0-18.5 14.8-33.6 33.1-33.6 18.2 0 33.1 15.1 33.1 33.6v322.3h150.7V659.4c0-18.5 14.8-33.6 33.1-33.6h216.8c18.2 0 33.1 15.1 33.1 33.6v233.3h150.7V570.4c0-18.5 14.8-33.6 33.1-33.6 18.2 0 33.1 15.1 33.1 33.6v356c-0.3 18.5-15.1 33.6-33.3 33.6zM97 557.1c-8.9 0-17.2-3.5-23.5-10-12.7-13-12.7-34.3 0-47.3L488.5 74c6.3-6.4 14.6-10 23.5-10s17.2 3.5 23.5 10l415 425.9c12.7 13.1 12.7 34.3 0 47.3-6.3 6.4-14.6 10-23.5 10s-17.2-3.5-23.5-10L512 145.4 120.5 547.2c-6.3 6.4-14.6 9.9-23.5 9.9z m710.5-258.3c-18.2 0-33.1-15.1-33.1-33.6v-55.4h-53.7c-18.2 0-33.1-15.1-33.1-33.6s14.8-33.6 33.1-33.6h86.7c18.2 0 33.1 15.1 33.1 33.6v89c0 18.5-14.8 33.6-33 33.6z",image:"M915.1 280.3l-165-8-9.6-107.6c-2-22.6-22.2-38.4-45.8-36.6l-591.8 48.6c-23.6 2-40.6 21-38.8 43.4l42.4 471.6c2 22.6 22.4 38.4 45.8 36.6l30-2.4-4.8 91.6c-1.2 25.2 18.4 45.6 44.8 47l660.2 31.4c26.4 1.2 48.2-17.2 49.6-42.4l27.8-526.6c1.2-25-18.6-45.4-44.8-46.6z m-709.8 10.6l-14.2 269.6-35 49.4-32.2-356v-2c2-10 8.8-18 19.2-18.8l522-42.8c10.4-0.8 19.4 6 21 15.8 0 0.4 0.6 0.4 0.6 0.8 0 0.2 0.6 0.4 0.6 0.8l5.4 61.6-438-21c-26.4-0.8-48.2 17.6-49.4 42.6z m668 473.8l-169.6-199-74.8 68.6-138.4-161.6-245.4 261.4 20.8-398.2v-0.8c2-10.8 12.4-18.6 23.8-18l582.4 28c11.6 0.6 20.6 9.4 20.8 20.4 0 0.4 0.6 0.6 0.6 1l-20.2 398.2z",info:"M475.2 251.1c0-10.3 3.6-19.1 10.7-26.4 7.1-7.3 16.2-11 27-11 10.4 0 19.1 3.7 26.3 11 7.1 7.3 10.7 16.1 10.7 26.4 0 10.3-3.6 19.1-10.7 26.4-7.2 7.3-15.9 11-26.3 11-10.9 0-19.9-3.7-27-11-7.1-7.4-10.7-16.2-10.7-26.4z m66.7 526.4c0 22.2-9.2 33.4-27.7 33.4-18.9 0-28.4-11.1-28.4-33.4V397.2c0-12.8 2.7-21.8 8-27.1 5.3-5.3 12.1-7.9 20.4-7.9 8.2 0 14.9 2.5 20 7.5s7.6 14.2 7.6 27.5v380.3zM512 120c216.5 0 392 175.5 392 392 0 78.5-23.1 151.5-62.8 212.8-0.6 12.9 6.4 24.8 17.8 30.2 10 4.7 22 3.6 31.3-2.9C934.4 682.7 960 600.3 960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c83.3 0 161.3-22.7 228.1-62.4 9.5-9.6 11.4-24.3 4.9-35.6-6-10.5-18.1-16.2-30.3-14.4C655.5 883.4 586.2 904 512 904c-216.5 0-392-175.5-392-392s175.5-392 392-392z",key:"M497.4 443.1C466.8 356.5 378.7 288 281.5 288 158.3 288 64 388.8 64 512s98.6 224 221.8 224c97.1 0 181.1-68.5 211.5-155.1h221.4v137.8h148.8V580.9H960V443.1H497.4zM287.9 608.9c-52.9 0-96.1-43.2-96.1-96.1s43.2-96.1 96.1-96.1 96.1 43.2 96.1 96.1-43.2 96.1-96.1 96.1z",left:"M710.9 948.6L251 539.7l-0.3-0.3c-7.7-7.4-12-17.2-12-27.6 0-12.4 6.1-23.9 16.8-31.6L710.9 75.3C719.1 68 730 64 741.5 64c24.2 0 43.9 18.1 43.9 40.3 0 11.1-4.8 21.4-13.4 29L345.8 512 772 890.8c8.5 7.6 13.4 18.1 13.4 29 0 22.2-19.7 40.3-43.9 40.3-11.4-0.1-22.2-4.1-30.6-11.5z",linux:"M460.4 269.5c-3.6 0.3-6.1 2.1-7.6 5.2-1.5 3.2-2.9 4.7-4.2 4.7-1.6 0.3-2.4-0.5-2.4-2.5 0-4 3.1-6.5 9.3-7.5h4.9z m42.7 7c-1.3 0.3-3.2-0.7-5.7-3.3-2.4-2.5-5.3-3.3-8.6-2.2 7.8-3.7 13.1-3.3 15.7 1 1 2 0.5 3.5-1.4 4.5zM330.8 489.9c-1.3-0.3-2.3 0.2-3 1.5-0.6 1.3-1.4 3.4-2.2 6.2-0.8 2.8-1.7 5.1-2.7 6.8-1 1.7-2.6 3.8-4.9 6.5-2.3 3.3-2.4 5.3-0.5 6 1.3 0.3 3.4-0.8 6.1-3.5 2.8-2.7 4.8-5.7 6.1-9 0.3-1 0.7-2.2 1-3.5 0.3-1.3 0.6-2.3 1-3 0.3-0.7 0.6-1.4 0.7-2.2 0.1-0.8 0.2-1.5 0.3-2v-1.5l-0.5-1.2c-0.3-0.9-0.8-1.2-1.4-1.1z m419.5 179.5c0-6-9-13-27-21 1.3-5 2.5-9.6 3.7-13.8 1.1-4.2 1.9-8.5 2.4-13s1-8.1 1.5-10.8c0.5-2.7 0.6-6.4 0.3-11.3-0.3-4.8-0.5-8.1-0.5-9.8 0-1.7-0.6-5.4-1.7-11-1.1-5.7-1.8-9.1-2-10.2-0.2-1.2-1-5.3-2.4-12.5s-2.3-11.6-2.7-13.2c-3.3-16-10.9-33.2-23-51.5-12.1-18.3-23.9-30.8-35.3-37.5 7.8 6.7 17.2 20.5 28 41.5 28.4 54 37.3 100.3 26.5 139-3.6 13.3-11.8 20.3-24.5 21-10.1 1.3-16.4-1.7-18.9-9.2-2.5-7.5-3.8-21.4-3.9-41.8-0.1-20.3-2-38.2-5.7-53.5-3-13-6.1-24.5-9.6-34.5-3.4-10-6.6-17.6-9.6-22.7-3-5.2-5.5-9.2-7.6-12.3-2.1-3-4.2-5.5-6.4-7.5-2.1-2-3.4-3.1-3.7-3.5-4.6-20.7-9.7-37.8-15.2-51.5-5.6-13.7-10.4-23-14.5-28s-7.9-10.5-11.5-16.5c-3.6-6-6-12.7-7.3-20-1.3-7-0.3-15.9 3-26.7 3.3-10.8 4-19.1 2.2-24.7-1.8-5.7-9.1-9.8-21.8-12.5-4.9-1-12.2-4-21.8-9-9.7-5-15.5-7.7-17.4-8-2.6-0.3-4.4-4.7-5.4-13s0.3-16.8 3.9-25.5 9.5-13.2 17.6-13.5c12.1-1 20.4 4 25 15 4.6 11 5.2 20.7 2 29-3.6 6.3-3.9 10.8-1 13.2 3 2.5 7.9 2.6 14.7 0.3 4.2-1.3 6.4-7.3 6.4-18v-18.5c-1.6-10-3.8-18.3-6.6-25-2.8-6.7-6.2-11.7-10.3-15.3-4.1-3.5-7.9-6-11.5-7.5-3.6-1.5-8-2.7-13.3-3.7-35 2.7-49.6 25-43.7 67 0 5-0.2 7.5-0.5 7.5-3-3-7.8-4.8-14.5-5.2-6.7-0.5-12.1-0.4-16.2 0.3s-6.6-0.2-7.6-2.5c0.3-19-2.3-34-7.8-45-5.6-11-12.9-16.7-22.1-17-8.8-0.3-15.6 4.2-20.3 13.8-4.7 9.5-7.4 19.4-8.1 29.8-0.3 5 0.2 11.2 1.7 18.5 1.5 7.3 3.6 13.6 6.4 18.8 2.8 5.2 5.3 7.4 7.6 6.8 3.3-1 5.9-3.3 7.8-7 1.3-3 0.2-4.3-3.4-4-2.3 0-4.8-2.4-7.6-7.3-2.8-4.8-4.3-10.4-4.6-16.7-0.3-7.3 1.1-13.5 4.4-18.5 3.3-5 8.8-7.3 16.7-7 5.6 0 10 3.5 13.3 10.5 3.3 7 4.8 13.5 4.6 19.5-0.2 6-0.4 9.7-0.7 11-7.2 5-12.3 9.8-15.2 14.5-2.6 4-7.1 7.9-13.5 11.7-6.4 3.8-9.7 5.9-10.1 6.2-4.2 4.7-6.8 9.2-7.6 13.5-0.8 4.3 0.4 7.3 3.7 9 4.6 2.7 8.7 5.9 12.3 9.8 3.6 3.8 6.2 7 7.8 9.5 1.6 2.5 4.7 4.7 9.1 6.5 4.4 1.8 10.2 2.9 17.4 3.3 15.4 0.7 32.1-1.8 50.1-7.5 0.7-0.3 4.4-1.5 11.3-3.5s12.5-3.7 16.9-5.2c4.4-1.5 9.2-3.7 14.5-6.5 5.2-2.8 8.7-5.7 10.3-8.7 3-4.7 6.2-6 9.8-4 1.6 1 2.7 2.4 3.2 4.3 0.5 1.8 0 3.8-1.5 6s-4.2 3.7-8.1 4.7c-6.6 2-15.8 5.6-27.7 10.8-11.9 5.2-19.4 8.4-22.3 9.8-14.4 6.3-25.9 10.2-34.4 11.5-8.2 1.7-21.1 1.3-38.7-1-3.3-0.7-4.7-0.3-4.4 1 0.3 1.3 3.1 4.5 8.4 9.5 8.2 7.7 19.1 11.3 32.9 11 5.6-0.3 11.4-1.5 17.6-3.5 6.2-2 12.1-4.3 17.6-7 5.6-2.7 11-5.6 16.4-8.7 5.4-3.1 10.3-6 14.7-8.5 4.4-2.5 8.4-4.5 12-6 3.6-1.5 6.4-1.9 8.6-1.3 2.1 0.6 3.5 2.5 4.2 5.5 0 0.7-0.2 1.4-0.5 2.2-0.3 0.8-1 1.7-2 2.5s-2 1.6-3 2.2c-1 0.7-2.4 1.5-4.2 2.5-1.8 1-3.3 1.7-4.4 2.2-1.2 0.5-2.8 1.3-4.9 2.5-2.1 1.2-3.7 1.9-4.6 2.2-9.2 4.7-20.2 12-33.1 22-12.9 10-23.8 17.2-32.6 21.5-8.8 4.3-16.8 4.5-24.1 0.5-6.9-3.7-17.2-15.8-30.9-36.5-7.2-10.3-11.3-14-12.3-11-0.3 1-0.5 2.7-0.5 5 0 8.3-2.4 17.8-7.3 28.3s-9.7 19.7-14.5 27.7c-4.7 8-8.2 17.7-10.3 29-2.1 11.3-0.2 21.8 5.7 31.5-7.5 2-17.7 17-30.7 45-12.9 28-20.7 51.5-23.3 70.5-0.7 6-0.9 17.5-0.7 34.5 0.2 17-0.7 26.8-2.7 29.5-2.6 8-7.4 8.5-14.2 1.5-10.5-10.3-16.4-26-17.6-47-0.7-9.3 0-18.7 2-28 1.3-6.3 1.2-9.3-0.5-9l-2 2.5c-11.8 21.7-10.1 49.3 4.9 83 1.6 4 5.7 8.7 12.3 14 6.5 5.4 10.5 8.7 11.8 10 6.6 7.7 23.6 22.7 51 45.2 27.5 22.5 42.7 35.3 45.6 38.2 5.2 5 8.1 11.3 8.6 19 0.5 7.7-1.8 14.8-6.9 21.5-5.1 6.7-12.5 10.5-22.3 11.5 2.6 5 7.4 12.4 14.2 22.2 6.9 9.8 11.4 18.8 13.8 27 2.3 8.2 3.4 19.9 3.4 35.3 15.1-8 16.2-23.3 3.4-46-1.3-2.7-3-5.3-5.1-8-2.1-2.7-3.7-4.7-4.6-6-1-1.3-1.3-2.3-1-3 1-1.7 3.1-3.2 6.4-4.7 3.3-1.5 6.5-1.1 9.8 1.3 15.1 17.3 42.2 23.3 81.5 18 43.5-5 72.5-19.5 86.9-43.5 7.5-12.7 13.1-17.7 16.7-15 3.9 2 5.5 10.7 4.9 26-0.3 8.3-4.1 23.7-11.3 46-3 7.7-3.9 13.9-3 18.8 1 4.8 4.9 7.4 11.8 7.7 1-6.3 3.4-19.2 7.1-38.5 3.8-19.3 6-34.3 6.6-45 0.6-7-0.4-19.2-3.2-36.7-2.8-17.5-4-33.7-3.7-48.5 0.3-14.8 4.1-26.6 11.3-35.3 4.9-6 13.2-9 25-9 0.3-12.3 6-21.2 16.9-26.5 10.9-5.3 22.8-7.1 35.6-5.2 12.4 1.6 22.2 5.4 29 10.9zM442.2 256c1-5.7 0.6-10.7-1.2-15-1.8-4.3-3.7-6.8-5.7-7.5-3-0.7-4.4 0.5-4.4 3.5 0.6 1.7 1.5 2.7 2.4 3 3.3 0 4.4 2.5 3.4 7.5-1 6.7 0.3 10 3.9 10 1.1 0 1.6-0.5 1.6-1.5z m205.6 98.4c-0.6-2.7-1.7-4.6-3.2-5.8-1.5-1.2-3.6-2-6.4-2.5-2.8-0.5-5.1-1.4-7.1-2.8-1.6-1-3.2-2.3-4.7-4-1.5-1.7-2.6-3-3.4-4-0.8-1-1.7-2.1-2.7-3.3-1-1.2-1.6-1.8-2-2-0.3-0.2-1 0.1-2 0.7-4.6 5.3-3.4 12.6 3.4 21.8 6.9 9.2 13.2 14.4 19.1 15.7 3 0.3 5.3-1 7.1-4 1.9-2.8 2.5-6.2 1.9-9.8zM560.5 248c0-3.7-0.8-6.9-2.4-9.8-1.6-2.8-3.4-4.9-5.4-6.2-2-1.3-3.4-1.8-4.4-1.5-4.6 0.3-5.7 1.5-3.4 3.5l2 1c4.6 1.3 7.5 6.5 8.8 15.5 0 1 1.3 0.7 3.9-1l0.9-1.5zM587 131.5c0-0.7-0.4-1.5-1.2-2.5-0.8-1-2.3-2.2-4.4-3.5-2.1-1.3-3.7-2.3-4.6-3-4.9-5-8.8-7.5-11.8-7.5-3 0.3-4.8 1.6-5.7 3.7-0.8 2.2-1 4.3-0.5 6.5s0.4 4.3-0.3 6.2c-0.3 1.3-1.3 3.1-3 5.2-1.6 2.2-2.6 3.7-3 4.5-0.3 0.9 0.2 2.3 1.5 4.3 1.3 1 2.6 1 3.9 0 1.3-1 3.1-2.5 5.4-4.5 2.3-2 4.8-3.5 7.4-4.5 0.3-0.3 1.8-0.5 4.4-0.5 2.6 0 5.1-0.3 7.3-1 2.4-0.6 3.9-1.8 4.6-3.4z m277.2 670.4c6.5 4 11.6 8.1 15.2 12.3 3.6 4.2 5.5 8.2 5.9 12 0.3 3.8-0.1 7.6-1.2 11.3-1.2 3.7-3.7 7.4-7.6 11-3.9 3.6-7.8 6.9-11.5 9.8-3.8 2.9-8.7 5.9-14.7 9.2-6 3.3-11.2 6.1-15.4 8.3-4.3 2.2-9.5 4.8-15.7 7.7-6.2 3-10.6 5.1-13.3 6.5-12.4 6.3-26.4 15.7-42 28-15.5 12.3-27.9 23-37.1 32-5.6 5.3-16.7 8.6-33.3 9.8-16.7 1.2-31.2-1.2-43.7-7.3-5.9-3-10.7-6.9-14.5-11.7-3.8-4.8-6.5-9.1-8.1-12.7-1.6-3.7-5.2-6.9-10.8-9.8-5.6-2.8-13.3-4.4-23-4.7-14.4-0.3-35.7-0.5-63.8-0.5-6.2 0-15.5 0.2-28 0.7-12.4 0.5-21.9 0.9-28.4 1.3-14.4 0.3-27.4 2.8-39 7.5-11.6 4.6-20.3 9.7-26.2 15-5.9 5.4-13 10.1-21.4 14.2-8.3 4.1-17.1 6.1-26.2 5.8-9.5-0.3-27.6-5.5-54.4-15.5-26.8-10-50.7-17.2-71.6-21.5-6.2-1.3-14.6-2.9-25-4.7-10.5-1.8-18.6-3.3-24.5-4.5-5.9-1.2-12.3-2.8-19.4-4.7-7-2-12.5-4.4-16.4-7.3-3.9-2.9-6.7-6.1-8.4-9.8-3.3-7.7-2.1-18.7 3.4-33.2 5.5-14.5 8.5-23.6 8.8-27.3 0.3-5.3-0.3-12-2-20s-3.3-15.1-4.9-21.2c-1.6-6.2-2.3-12.2-2.2-18.2 0.1-6 1.9-10.5 5.1-13.5 4.6-4 13.9-6.3 28-7 14.1-0.7 23.9-2.7 29.5-6 9.8-6 16.7-11.8 20.6-17.5 3.9-5.7 5.9-14.2 5.9-25.5 6.9 24.3 1.6 42-15.7 53-10.5 6.7-24 9.2-40.7 7.5-11.1-1-18.1 0.7-21.1 5-4.2 5-3.4 14.5 2.4 28.5 0.7 2 2 5 3.9 9 2 4 3.4 7 4.2 9 0.8 2 1.6 4.8 2.2 8.5 0.7 3.7 0.8 7.3 0.5 11 0 5-2.8 13.2-8.4 24.5-5.6 11.3-7.9 19.3-6.9 24 1 5.7 7 10 18.1 13 6.5 2 20.4 5.1 41.4 9.2 21.1 4.2 37.4 7.6 48.8 10.2 7.8 2 20 5.7 36.3 11 16.4 5.3 29.8 9.2 40.5 11.5 10.6 2.3 19.7 3 27.2 2 14.1-2 24.6-6.7 31.7-14 7-7.3 10.8-15.3 11.3-24s-0.7-18.4-3.7-29.2c-2.9-10.8-6-19.5-9.3-26s-6.6-12.6-9.8-18.2c-39.6-63.3-67.2-103.7-82.9-121-22.2-24.7-40.7-31.3-55.5-20-3.6 3-6 0.5-7.3-7.5-1-5.3-1.3-11.7-1-19 0.3-9.7 2-18.3 4.9-26 2.9-7.7 6.9-15.5 11.8-23.5s8.5-15 10.8-21c2.6-7 7-19 13-36s10.9-30 14.5-39c3.6-9 8.5-19.2 14.7-30.5 6.2-11.3 12.6-20.3 19.1-27 36-47.7 56.3-80.2 60.8-97.5-3.9-37.3-6.5-89-7.8-155-0.6-30 3.3-55.2 11.8-75.7s25.8-37.9 52-52.2c12.7-7 29.8-10.5 51-10.5 17.3-0.3 34.7 1.9 52 6.7 17.3 4.8 31.9 11.8 43.7 20.7 18.7 14 33.6 34.2 44.9 60.7 11.3 26.5 16.1 51.1 14.5 73.8-1.6 31.7 3.3 67.3 14.7 107 11.1 37.7 32.9 74 65.2 109 18 19.7 34.3 46.8 48.8 81.5 14.6 34.7 24.3 66.5 29.2 95.5 2.6 16.3 3.4 30.4 2.4 42.2-1 11.8-2.9 21.1-5.9 27.7-2.9 6.7-6.2 10.3-9.8 11-3.3 0.7-7.1 3.8-11.5 9.5s-8.8 11.6-13.3 17.8c-4.4 6.2-11 11.7-19.9 16.7-8.8 5-18.8 7.3-29.9 7-5.9-0.3-11-1.2-15.4-2.5s-8.1-3.6-11.1-6.7c-3-3.2-5.2-5.8-6.6-7.7-1.5-2-3.3-5.4-5.7-10.2-2.3-4.8-3.8-8.1-4.4-9.8-7.2-12.3-13.9-17.3-20.1-15-6.2 2.3-10.8 10.5-13.8 24.5s-1.8 30.2 3.4 48.5c6.6 23.3 6.7 55.8 0.5 97.5-3.3 21.7-0.3 38.4 8.8 50.2 9.1 11.8 21.1 17.3 35.8 16.5 14.7-0.8 28.6-6.7 41.7-17.8 19.3-16.3 33.9-27.4 43.9-33.2 10-5.8 26.9-12.9 50.8-21.2 17.3-6 29.9-12.1 37.8-18.2s10.9-11.9 9.1-17.2c-1.8-5.3-5.9-10.1-12.3-14.2-6.4-4.2-14.8-8.1-25.3-11.7-10.8-3.7-18.9-11.7-24.3-24-5.4-12.3-7.8-24.4-7.3-36.3 0.5-11.8 3-19.8 7.6-23.7 0.3 10.3 1.6 19.7 3.9 28.3 2.3 8.5 4.7 15.3 7.1 20.3 2.5 5 5.8 9.7 10 14.2s7.7 7.7 10.3 9.5c2.6 1.8 6.2 4 10.5 6.5 4.4 2.5 7.1 4.1 8.1 4.7l0.4-0.5z",live:"M869.8 898.8c0 15.6-10.6 28.2-23.6 28.2H177.8c-13 0-23.6-12.7-23.6-28.2 0-15.6 10.6-28.2 23.6-28.2h668.4c13-0.1 23.6 12.6 23.6 28.2zM960 146.4v575.2c0 27.2-26.7 49.4-59.5 49.4h-777C90.7 771 64 748.8 64 721.6V146.4C64 119.2 90.7 97 123.5 97h777.1c32.7 0 59.4 22.2 59.4 49.4z m-52.6 13.3c0-5.7-6.5-10.5-14.1-10.5H132.6c-7.7 0-14.1 4.8-14.1 10.5v549c0 5.7 6.5 10.5 14.1 10.5h760.7c7.7 0 14.1-4.8 14.1-10.5v-549zM486.7 613.8c0.2 0.2 1.4 1.3 3.3 1.2 1.6-0.1 2.7-1 2.9-1.3l243.7-299.1c0.1-0.1 1.6-1.5 1.3-3.6-0.2-1.6-1.4-2.4-1.6-2.6l-43.6-38.1c-0.2-0.2-1.7-1.6-3.8-1.2-1.9 0.3-2.9 1.7-3 1.9L484 522 348 380.6c-0.4-0.2-1.1-0.5-2-0.6-1.4-0.1-2.5 0.3-3 0.6l-38.9 38.9c-0.3 0.4-0.9 1.2-1.1 2.5-0.2 1.8 0.6 3.1 0.9 3.4l182.8 188.4z",load:"M587.6 587.9c25.3-25.3 202.5 88.6 234.2 120.2 31.7 31.6 38 88.5 6.4 120.1-31.6 31.6-82.2 31.6-113.9-0.1-31.7-31.6-152-215-126.7-240.2zM436 434.8c-25.3 25.3-202.5-88.6-234.2-120.2-31.7-31.6-38-88.5-6.4-120.1 31.6-31.6 82.2-31.6 113.9 0.1 31.7 31.6 152 214.9 126.7 240.2z m-31.8 77.7c0 35.7-205.9 80.4-250.7 80.4-44.8 0-89.5-35.7-89.5-80.4s35.8-80.4 80.6-80.4c44.7 0 259.6 44.7 259.6 80.4z m31.9 76.8c25.3 25.3-88.7 202.3-120.3 233.9-31.7 31.6-88.6 38-120.2 6.4-31.6-31.6-31.6-82.2 0-113.8 31.7-31.6 215.2-151.8 240.5-126.5z m75.9 30.9c35.8 0 80.5 205.7 80.5 250.4 0 44.7-35.8 89.4-80.5 89.4s-80.5-35.8-80.5-80.5 44.7-259.3 80.5-259.3z m107.8-107.7c0-35.7 205.9-80.4 250.7-80.4 44.8 0 89.5 35.7 89.5 80.4s-35.8 80.4-80.6 80.4c-44.7 0-259.6-44.7-259.6-80.4z m-33.6-75.9c-25.3-25.3 88.7-202.3 120.3-233.9 31.7-31.6 88.6-38 120.2-6.4 31.6 31.6 31.6 82.1-0.1 113.8-31.6 31.6-215.1 151.8-240.4 126.5zM512 403.8c-35.8 0-80.5-205.7-80.5-250.4 0-44.7 35.8-89.4 80.5-89.4s80.5 35.8 80.5 80.5-44.7 259.3-80.5 259.3z",loading:'',location:"M511.9 960h-0.1c-16.2-0.1-31.7-8.2-42.3-22.3-7.7-10-78-101.2-147.4-212.6C230 577.4 183.3 465.5 183.3 392.7 183.3 211.5 330.8 64 512 64s328.7 147.5 328.7 328.7c0 72.9-46.8 185-139.1 333.1-69.2 111-139.1 201.8-147.1 212.1-10.6 14.1-26 22.2-42.3 22.2l-0.3-0.1z m0.1-845.4c-153.3 0-278.1 124.8-278.1 278.1 0 63.9 47.2 172.4 136.4 313.9C439.9 816.9 508.9 906 509.6 906.8l0.2 0.3c1.1 1.4 1.9 2 2.3 2.2 0.4-0.2 1.1-0.8 2.1-2.1l0.1-0.1c2.8-3.6 275.8-357.8 275.8-514.4 0-153.3-124.8-278.1-278.1-278.1z m0.2 346.2c-55.1 0-99.9-44.8-99.9-99.9 0-55.1 44.8-99.9 99.9-99.9 55.1 0 99.9 44.8 99.9 99.9-0.1 55.1-44.9 99.9-99.9 99.9z m0-149.1c-27.2 0-49.3 22.1-49.3 49.3 0 27.2 22.1 49.3 49.3 49.3 27.2 0 49.3-22.1 49.3-49.3-0.1-27.2-22.2-49.3-49.3-49.3z",lock:"M811.1 960H212.9c-47.3 0-85.7-37.7-85.7-84V473.7c0-46.3 38.5-84 85.7-84h43.9l-0.5-77.1c0-66.2 26.5-128.6 74.6-175.7C379 89.9 442.7 64 510.2 64c67.6 0 131.3 25.9 179.4 72.9 48.1 47.1 74.6 109.4 74.6 175.6l-0.5 77.2h47.4c47.3 0 85.7 37.7 85.7 84V876c0 46.3-38.4 84-85.7 84zM208.9 447.1c-14.8 0-26.8 11.7-26.8 26.1v407.7c0 14.4 12 26.1 26.8 26.1h606.3c14.8 0 26.8-11.7 26.8-26.1V473.2c0-14.4-12-26.1-26.8-26.1H208.9z m301.9 346.3c-17.2 0-31.2-12.8-31.2-28.5V664.3c-22.4-11.4-36.7-34.2-36.7-59.1 0-36.7 30.5-66.5 67.9-66.5s67.9 29.9 67.9 66.5c0 24.9-14.3 47.7-36.7 59.1v100.6c0 15.7-14 28.5-31.2 28.5zM313.4 388.1H706l1.6-78.4c0-51.2-20.6-99.5-58-136-37.4-36.6-86.9-56.7-139.4-56.7s-102 20.1-139.4 56.7c-37.4 36.6-58 84.9-58 136.2l0.6 78.2z",mail:"M960 280.9v472.3c0 37.9-31 68.9-68.9 68.9H132.9c-37.9 0-68.9-31-68.9-68.9V280.9c0-3.9 4.5-5.8 7.3-3l232 236.1c1.5 1.7 1.5 4.3 0 6L141.1 692.7c-11 11-11 28.6 0 39.6 5.4 5.4 12.7 8.2 19.8 8.2s14.4-2.8 19.8-8.2l161.5-172.1c1.7-1.7 4.5-1.7 6.2 0l37.9 38.6c33.4 33.8 78.6 53.8 126.2 53.6 47-0.2 90.7-18.7 123.6-52.1l39.4-40.1c1.7-1.7 4.5-1.7 6.2 0l161.5 172.1c5.4 5.4 12.7 8.2 19.8 8.2s14.4-2.8 19.8-8.2c11-11 11-28.6 0-39.6L720.9 520c-1.7-1.7-1.7-4.3 0-6l231.8-236.1c2.6-2.6 7.3-0.9 7.3 3zM512 596.2c31.9 0 61.8-12.5 84.2-35.3l337.9-344c-11.8-9.5-26.5-15.1-42.6-15.1H132.7c-16.2 0-31 5.6-42.6 15.1l337.9 344c22.2 22.6 52.1 35.3 84 35.3z",menu:"M905 960H635.1c-30.3 0-55-24.7-55-55V635.1c0-30.3 24.7-55 55-55H905c30.3 0 55 24.7 55 55V905c0 30.3-24.7 55-55 55z m-516.1 0H119c-30.3 0-55-24.7-55-55V635.1c0-30.3 24.7-55 55-55h269.9c30.3 0 55 24.7 55 55V905c-0.1 30.3-24.7 55-55 55z m-263.4-61.2h258v-258h-258v258z m514.8-2.8h258V638h-258v258zM905 443.8H635.1c-30.3 0-55-24.7-55-55V119c0-30.3 24.7-55 55-55H905c30.3 0 55 24.7 55 55v269.9c0 30.3-24.7 54.9-55 54.9z m-516.1 0H119c-30.3 0-55-24.7-55-55V119c0-30.3 24.7-55 55-55h269.9c30.3 0 55 24.7 55 55v269.9c-0.1 30.3-24.7 54.9-55 54.9z m-263.4-61.1h258v-258h-258v258z","menu-dot":"M157.6 605.5c-51.6 0-93.5-41.9-93.5-93.5s41.9-93.5 93.5-93.5 93.5 41.9 93.5 93.5-41.9 93.5-93.5 93.5z m708.8 0c-51.6 0-93.5-41.9-93.5-93.5s41.9-93.5 93.5-93.5 93.5 41.9 93.5 93.5-42 93.5-93.5 93.5z m-354.3 0c-51.6 0-93.5-41.9-93.5-93.5s41.9-93.5 93.5-93.5 93.5 41.9 93.5 93.5-41.9 93.5-93.5 93.5z",mute:"M505.7 913.5c-18.9 0-39.5-9.5-59-27.7L257.2 705H141.4C92.2 705 64 676.8 64 627.7V396c0-49.9 27.5-77.4 77.4-77.4h115.9L446.7 138c26.5-24.8 56.4-33.5 80.1-23.2 25.1 10.9 39.4 40.7 39.4 82v630.1c0 41.4-14.4 71.4-39.5 82.3-6.7 2.8-13.7 4.3-21 4.3zM164.5 380.7c-29.8 0-38.5 8.6-38.5 38.5v185.3c0 30.6 7.9 38.5 38.5 38.5h126.7l2.3 2.5c80.5 85.6 141.6 149.1 176.7 183.7 14.3 14.1 23.2 17.4 26.6 16 1.2-0.5 7.3-4.4 7.3-30.8v-603c0-26.6-5.7-29.8-6.3-30-1-0.4-7.3-1.7-27.4 18-35.8 35-96 93.6-184.2 179.1l-2.3 2.2H164.5zM929 659c-8.3 0-16-3.2-21.9-9.1L800.9 543.7 695.1 649.5c-5.9 5.9-13.7 9.1-22 9.1s-16.1-3.2-21.9-9.1c-12.1-12.1-12.1-31.8 0-43.9L757 499.8 651.9 394.7c-12.1-12.1-12.1-31.7 0-43.8 5.9-5.9 13.6-9.1 21.9-9.1 8.3 0 16 3.2 21.9 9.1L800.8 456 907 349.8c5.9-5.9 13.7-9.1 21.9-9.1s16.1 3.2 21.9 9.1c5.9 5.9 9.1 13.7 9.1 21.9 0 8.3-3.2 16.1-9.1 21.9L844.7 499.9l106.2 106.2c12.1 12.1 12.1 31.7 0 43.8-5.8 5.9-13.6 9.1-21.9 9.1z",option:"M64 768h544v64H64v-64z m736 0h160v64H800v-64z m-32 127c0 35.9-28.7 65-64 65s-64-29.1-64-65V705c0-35.9 28.7-65 64-65s64 29.1 64 65v190zM64 480h160v64H64v-64z m352 0h544v64H416v-64z m-32 127c0 35.9-28.7 65-64 65s-64-29.1-64-65V417c0-35.9 28.7-65 64-65s64 29.1 64 65v190zM64 192h544v64H64v-64z m736 0h160v64H800v-64z m-32 127c0 35.9-28.7 65-64 65s-64-29.1-64-65V129c0-35.9 28.7-65 64-65s64 29.1 64 65v190z",phone:"M717.7 64H306.3C261 64 224 100.7 224 145.5v733.1c0 44.8 37 81.5 82.3 81.5h411.4c45.3 0 82.3-36.7 82.3-81.5V145.5c0-44.8-37-81.5-82.3-81.5zM728 832H296V163h432v669z m-168 64c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48z",pie:"M64 480C64 250.2 250.2 64 480 64c10.8 0 22 0.4 32 1.2V512H65.2c-0.8-10-1.2-21.2-1.2-32z m155.6 324.4C295.8 899.2 412.8 960 544 960c229.8 0 416-186.2 416-416 0-131.2-60.8-248.2-155.6-324.4-63.4-51-142.4-83.8-228.4-90.4V576H129.2c6.6 86 39.4 165 90.4 228.4z",pin:"M115.8 960c-13.7 0-26.6-5.4-36.4-15.2l-0.5 0.4 0.4-0.5c-18.3-18.4-20.4-46.7-5-67.2l179-242.4-138.8-138.8c-16.5-16.5-19.8-42.3-8-62.8l0.2-0.3c4.5-7.1 21.7-31.7 54.6-51.1 19.1-11.3 40.3-18.7 62.8-22.1 27.3-4.2 56.9-2.4 87.8 5.2 1.8 0.2 3.8 0.4 5.8 0.6h0.5c6 0.5 11.9 1.1 18.5 2.1 25.2 4.1 72.8-18 113.2-52.4 38.6-32.9 64.5-72 64.5-97.5 0-6.4-0.2-13.3-0.3-20-1.1-26.3-2.9-70.2 29.8-102.8 38.6-38.7 99.8-41.8 142.2-7.3 1 0.8 1.9 1.7 2.9 2.7l0.4 0.4c23.8 23.3 238 237.5 239.5 239 20.1 20.1 31.2 46.8 31.2 75.3 0 28.4-11 55.2-31.1 75.3-32.5 32.6-76.8 30.7-103.4 29.6h-1.4c-6-0.1-12.2-0.3-18.1-0.3-24.3 0-53.9 17.6-83.3 49.7-19.7 21.4-37.5 47.6-50 73.8-11.1 23.1-17.1 44.2-16.1 56.5 0.9 8.6 2.6 22.9 3 25.8 32.8 133.7-57.3 195.1-67.6 201.7l-0.1 0.1c-20.7 12.5-46.9 9.4-63.7-7.4L374.7 756.6c-11.6-11.6-11.6-30.6 0-42.2 5.6-5.6 13.1-8.8 21.1-8.8 8 0 15.5 3.1 21.1 8.8L565.4 863c6.5-5.2 17.3-15.3 26.2-31.2 16.2-29 19.3-64 9.5-104.2v-0.2c-0.6-2.8-3-23.4-3.9-31.8v-0.2c-1.9-22.6 5.5-53 20.7-85.6 15-32.1 36.6-64.3 60.9-90.7 28.9-31.5 74.5-69 127.2-69 7.1 0 15 0.2 21.4 0.3h0.2c26.5 1.1 46.2 0.9 59.2-12.1 8.8-8.8 13.6-20.5 13.6-33s-4.9-24.3-13.8-33.2C884.4 370 658 143.7 647.3 133.3c-17.8-14.2-44.6-12.5-61.2 4.1-13.1 13.2-13.4 32.6-12.3 58.7v0.1c0.2 7.2 0.3 14.7 0.3 21.8 0 43.9-31.9 97.3-85.5 142.9-23.9 20.4-51.2 38.1-76.8 49.8-31.9 14.6-60.3 20-84.6 16.1-5.1-0.8-9.9-1.2-14.1-1.6-2.7-0.2-5.4-0.5-8-0.8-2.6-0.1-5.1-0.6-7.7-1.4-83-20.4-123.9 20.5-136.1 36.1L313.6 611c10.5 10.5 11.8 26.9 2.9 38.9L152.7 871.6 316.2 752c6.4-4.7 14.3-6.6 22.2-5.4 7.9 1.2 14.8 5.5 19.5 11.9 9.7 13.3 6.7 32-6.5 41.7L146.2 949.9c-8.9 6.6-19.4 10.1-30.4 10.1z",plus:"M512 960c-21.2 0-38.4-17.2-38.4-38.4V550.3H102.3C81.2 550.4 64 533.2 64 512c0-21.2 17.2-38.4 38.4-38.4h371.3V102.3c0-21.1 17.2-38.4 38.4-38.4s38.4 17.2 38.4 38.4v371.3h371.3c21.1 0 38.4 17.2 38.4 38.4 0 10.3-4 19.9-11.2 27.1-7.2 7.2-16.9 11.2-27.1 11.2H550.6v371.3c0 10.3-4 19.9-11.2 27.1-7.5 7.3-17.1 11.3-27.4 11.3z",post:"M813.7 960H154.8c-0.7 0-17.2-0.1-33.7-8-16.1-7.7-35.3-24-35.3-58.3V130.3c0-34.1 19.2-50.4 35.3-58.2 16.5-7.9 33-8.1 33.6-8.1h658.9c0.7 0 17.2 0.2 33.7 8.1 16.1 7.7 35.3 24.1 35.3 58.2v32.5l-52.2 46.7v-79.9c-0.1-6.3-2.4-10.1-7.6-12.6-4.5-2.1-9.3-2.3-9.3-2.3H154.7s-5 0.1-9.6 2.4c-5.1 2.6-7.3 6.5-7.3 13.1v763.4c0 0.4 0.3 4.7 2.4 8.6 1.7 3 5 7 14.5 7h658.8c5.8 0 10.1-1.4 12.8-4.1 4.1-4.2 4.1-11 4.1-11.1V561.5l52.2-49.6v381.9c0 0.7-0.1 16.7-8.5 32.7-8 15.3-25 33.5-60.4 33.5zM424.4 655.6l-25.8 125.2 129.5-25.1L927.6 368l0.1-0.1c0.3-0.3 10.5-10 10.6-22.4 0.1-7.5-3.5-14.8-10.8-21.8L914.4 311c-15.2-14.8-23.4-22.7-44.2-42.9-7.3-7.1-15.1-10.7-23-10.5-13.1 0.2-23.2 10.3-23.3 10.4l-0.2 0.2-399.3 387.4z m18.7 37.3l-15.2 59.4 61-14.8-45.8-44.6z m81 29.2c-20-23-40-46.1-60.1-69.1l331-319c21.3 21.7 42.7 43.3 64 65-111.6 107.7-223.3 215.4-334.9 323.1z m52-312.8H257.5c-10.7 0-19.4-1.7-26-5.1-7.3-3.8-11.6-9.7-11.6-16.3 0-10.9 11.6-22 37.5-22h366l-47.3 43.4zM874 384c-21.7-21.3-43.3-42.7-65-64l38-38c21.7 21.3 43.3 42.7 65 64l-38 38zM607.2 270.3H257.7c-10.7 0-19.5-1.7-26.1-5.1-7.4-3.8-11.6-9.7-11.6-16.3 0-10.9 11.6-22 37.7-22h349.6c10.4 0 19.2 1.8 25.7 5.3 7.3 3.9 11.5 9.9 11.5 16.4-0.1 10.8-11.6 21.7-37.3 21.7z",qr:"M395 64H64v329.2h331V64z m-48.5 282.2h-235V111h235v235.2z m258.8 495.4h353.3v-46.9H605.3v46.9zM300.1 158.2H158.9V301h141.2V158.2zM629 64v330.7h331V64H629z m282.5 282.9h-235V111h235v235.9z m47.8 353.6h-165v46.8h164.9v-46.8zM723.9 464.4H512.1v94.7h211.8v-94.7z m-329.6-22.8H64.7v46.8h329.5v-46.8zM582.4 64.9h-46.9v211.8h46.9V64.9z m376.9 541.4H511.8v46.1h447.5v-46.1zM441.4 417.1h46.8V64.9h-46.8v352.2z m94 329.8h-46.8v165.3h-0.2v47.6h0.2v0.2h46.8v-0.2H700v-47.6H535.4V746.9z m331.1-589.4H723.9v142.8h142.6V157.5z m92.8 259.1H817.9v48.3H911V558h48.3V416.6z m-95 541.9h95v-94.3h-95v94.3z m-705.4-93.3h141.2V723.8H158.9v141.4z m117.9-283.1h164v-46.9h-164v46.9zM64 959.6h330.3V628.9H64v330.7z m47.5-283.7h235v235.9h-235V675.9z m93.9-93.8v-46.9H65v46.9h140.4z",quote:"M297.6 530.1h140.2V960H64V634.7C64 279.4 188.6 89.1 437.8 64v161.2c-93.4 30.1-140.2 116.1-140.2 258.5v46.4z m522.2 0H960V960H586.2V634.7c0-355.3 124.5-545.6 373.7-570.7v161.2c-93.4 30.1-140.2 116.1-140.2 258.5V530h0.1z","radio-on":"M512 288c-123.2 0-224 100.8-224 224s100.8 224 224 224 224-100.8 224-224-100.8-224-224-224z m0-224C265.6 64 64 265.6 64 512s201.6 448 448 448 448-201.6 448-448S758.4 64 512 64z m0 806.4c-197.1 0-358.4-161.3-358.4-358.4S314.9 153.6 512 153.6 870.4 314.9 870.4 512 709.1 870.4 512 870.4z","radio-off":"M512 64C265.6 64 64 265.6 64 512s201.6 448 448 448 448-201.6 448-448S758.4 64 512 64z m0 806.4c-197.1 0-358.4-161.3-358.4-358.4S314.9 153.6 512 153.6 870.4 314.9 870.4 512 709.1 870.4 512 870.4z",right:"M282.5 960c-24.2 0-43.9-18.1-43.9-40.3 0-10.9 4.9-21.4 13.4-29L678.2 512 252 133.2c-8.6-7.5-13.4-17.8-13.4-29 0-22.2 19.7-40.3 43.9-40.3 11.5 0 22.4 4 30.6 11.3l455.5 404.9c10.7 7.7 16.8 19.2 16.8 31.6 0 10.4-4.3 20.2-12 27.6l-0.3 0.3-460 409c-8.4 7.4-19.2 11.4-30.6 11.4z",sad:"M897.6 64c6.7 0 13.4 3 18 8.6 7.9 9.9 6.3 24.4-3.6 32.3-123.7 99-194.6 246.5-194.6 404.8 0 161 73 310.2 200.2 409.2 10 7.8 11.8 22.2 4 32.3-7.8 10-22.2 11.8-32.3 4C750.8 847.4 671.4 685 671.4 509.7c0-172.3 77.2-332.9 211.8-440.7 4.1-3.2 9.1-5 14.4-5zM207.4 348c60.6 0 109.8-49.2 109.8-109.8 0-60.6-49.1-109.8-109.8-109.8S97.6 177.6 97.6 238.3c0 60.6 49.1 109.7 109.8 109.7z m0 546.6c60.6 0 109.8-49.2 109.8-109.8 0-60.6-49.1-109.8-109.8-109.8-60.6 0-109.8 49.2-109.8 109.8 0 60.7 49.1 109.8 109.8 109.8z",search:"M914.4 957.9c12.4 4.6 26.5 1.5 35.8-7.9 9.2-9.3 12.2-23.1 7.7-35.4l-43.3-43.8-44.6-44.7L747.2 702c57-68.3 91.8-155.1 91.8-250.7C839 237.8 665.4 64 452.1 64 237.6 64 64 237.8 64 451.3 64 666 237.6 839.7 452.1 839.7c92.3 0.1 181.6-32.9 251.7-93.1l122.8 124.1 44.6 43.4 43.2 43.8zM452.1 777.7C272.3 777.7 126 632.5 126 451.3c0-180 146.3-325.2 326.1-325.2s326.1 145.2 326.1 325.2c0 179.9-146.3 326.4-326.1 326.4zM358 273c0.7 5.5-2.7 10.5-13.1 21.7-10.9 11.9-16.4 17.9-22.7 23-28.6 23.2-83.4 133.7-66.8 209.9 1.7 7.9 7.4 30.1-4.6 39.5-5.7 4.5-14.7 5.6-20.4 3.8-27.1-8.5-27.4-99.1 1.4-175.7 28.3-75.4 87.3-143.8 112-137 5.3 1.4 13.3 7.5 14.2 14.8z",second:"M512 64c-156.8 0-284.3 127.5-284.3 284.3S355.2 632.6 512 632.6s284.3-127.5 284.3-284.3S668.8 64 512 64z m-61.2 242.5h-40.1c0-45.5 14.1-77.7 42.3-96.5 18.2-12.1 41-18.2 68.3-18.2 28.5 0 52.3 8.7 71.5 25.9 19.1 17.3 28.7 40.5 28.7 69.6 0 26.4-8.2 48.3-24.6 65.5-11.2 11.8-31.6 25.6-61 41.4l-33.2 18.2c-19.4 10.6-33.8 22.3-43.2 35.1-6.7 8.8-10.6 17.6-11.8 26.4h173.9v37.8H402.5c0-30.9 7.1-57.2 21.4-78.7 12.1-18.2 30-34.3 53.7-48.2l42.3-24.6c21.8-12.8 36-22.3 42.3-28.7 10.9-11.5 16.4-26.9 16.4-46 0-15.2-4.5-27.9-13.7-38.2-11.5-13-28.1-19.6-49.6-19.6-20.3 0-36 6.2-46.9 18.7-11.7 13.7-17.6 33.7-17.6 60.1z m282.3 305.1c-4.8-10.3-18.1-15.2-29.7-10.8-11.6 4.3-17.2 16.2-12.4 26.6l80.8 173.8-148.3-26.7c-9.1-1.6-18.5 1.9-23.7 8.9l-83.3 113.3-4.2 6.5-4.9-6.4-83.1-112.5c-5.1-6.9-14.5-10.4-23.7-8.6l-148.3 28.1 81.1-174.5c4.8-10.4-0.7-22.2-12.3-26.5-11.6-4.2-24.9 0.7-29.8 11.1l-97.6 210c-3.2 7-1.9 14.9 3.5 20.7 5.4 5.8 13.9 8.4 22.2 6.8l175.3-33.2L492.9 951c2.6 3.5 6.2 6.1 10.3 7.6 1.9 0.7 4 1.1 6.1 1.3 0.2 0 3.7 0.1 4.6 0.1h0.3c6.8-0.6 13-3.9 16.8-9.1L629.3 817l175.3 31.5c4.6 0.8 9.2 0.4 13.3-1.2 3.4-1.3 6.4-3.3 8.8-5.9 5.4-5.8 6.7-13.8 3.5-20.7l-97.1-209.1z",setting:"M373.4 942.1c-2.9 0-5.7-0.5-8.6-1.5-53.7-19-102.6-47.6-145.6-85.2-7.8-6.8-10.8-17.6-7.9-27.5 13.4-44.6 8.3-91.3-14.6-131.5-22.9-40.1-60.2-68-105.1-78.5-10-2.3-17.8-10.5-19.7-20.7-5.2-28.7-7.9-57.3-7.9-85.2 0-27.9 2.7-56.5 8.1-85.1 1.9-10.3 9.6-18.4 19.7-20.8 44.9-10.4 82.2-38.3 105.1-78.5 22.8-40.1 28-86.8 14.6-131.4-3-9.9 0.1-20.8 7.9-27.6 42.9-37.6 91.9-66.3 145.6-85.2 9.8-3.5 20.6-0.8 27.7 6.9 31.4 34.1 73.8 52.9 119.4 52.9 45.7 0 88.1-18.8 119.5-52.9 7-7.6 17.9-10.4 27.6-6.9 53.6 18.9 102.6 47.6 145.6 85.2 7.8 6.8 10.8 17.6 7.9 27.5-13.5 44.7-8.3 91.4 14.6 131.5 22.9 40.1 60.2 68 105.1 78.5 10 2.4 17.8 10.5 19.7 20.8 5.4 28.6 8.1 57.3 8.1 85.1 0 27.8-2.7 56.4-8.1 85.1-1.9 10.3-9.7 18.4-19.7 20.7-44.9 10.5-82.2 38.4-105.1 78.5-22.9 40.2-28.1 86.9-14.6 131.5 3 9.9-0.1 20.8-7.9 27.6-43 37.7-92 66.3-145.6 85.2-9.8 3.4-20.6 0.6-27.6-7-31.3-34.1-73.7-52.9-119.4-52.9-45.6 0-88.1 18.8-119.5 52.9-5.1 5.4-12 8.5-19.3 8.5zM263.1 829.5c31 25 65.4 45.2 102.3 59.9 19.5-18 41.9-32.2 66.5-42.1 25.7-10.4 52.7-15.6 80.1-15.6 54.6 0 106.6 20.5 146.6 57.7 36.9-14.7 71.3-34.9 102.4-59.9-5.6-26.2-6.5-52.9-2.7-79.5 4-27.7 13-54 26.7-78.1 27.2-47.7 70.8-83.1 122.8-99.9 3-20.4 4.6-40.5 4.6-59.9s-1.5-39.6-4.6-60c-52.1-16.8-95.6-52.2-122.8-99.9-13.7-24.1-22.7-50.3-26.7-78.1-3.8-26.6-2.9-53.3 2.7-79.5-31-25.1-65.4-45.2-102.4-59.9-40.2 37.2-92.2 57.7-146.7 57.7-27.4 0-54.4-5.3-80.1-15.6-24.7-9.9-47-24.1-66.6-42.1-37 14.8-71.4 35-102.4 60 5.6 26.2 6.5 52.9 2.7 79.5-4 27.7-13 54-26.7 78.1-13.7 24.1-31.7 45.1-53.4 62.5-20.8 16.7-44.1 29.2-69.3 37.4-3 20.3-4.6 40.5-4.6 60 0 19.4 1.5 39.6 4.6 59.9 52.1 16.8 95.6 52.1 122.9 99.9 27.4 47.8 35.8 103.6 24.1 157.5zM512 668.2c-85 0-154.1-70.1-154.1-156.2S427 355.8 512 355.8c41.1 0 79.8 16.3 108.9 45.8C650 431.1 666.1 470.3 666 512c0 8.6-0.9 17.4-2.7 27.9-1.2 7-5.2 13.1-11 17.2-5.8 4-12.7 5.5-19.6 4.2-14.3-2.7-23.8-16.6-21.1-31 1.3-7.1 1.9-13 1.9-18.4C613.5 455.1 568 409 512 409c-55.9 0-101.5 46.2-101.5 102.9 0 56.8 45.5 102.9 101.5 102.9 5.4 0 11.1-0.6 18.1-1.9 6.8-1.3 13.7 0.2 19.4 4.1 5.9 4.1 9.9 10.2 11.2 17.4 2.6 14.4-6.9 28.3-21.2 30.9-10.2 2.1-19 2.9-27.5 2.9z",share:"M809.6 960c-82.9 0-150.4-67.5-150.4-150.4 0-6.2 0.4-12.2 1.1-18.2L337.1 615.2c-27.3 38.5-72.1 63.6-122.8 63.6-82.8 0-150.3-67.4-150.3-150.3s67.5-150.4 150.4-150.4c49.7 0 93.9 24.3 121.3 61.5l246.8-167.5c-7.4-17.8-11.5-37.3-11.5-57.7C571 131.5 638.5 64 721.4 64s150.4 67.5 150.4 150.4-67.5 150.4-150.4 150.4c-46 0-87.2-20.8-114.8-53.4L357 480.7c5 15 7.8 31.1 7.8 47.8 0 15.2-2.3 30-6.5 43.9l315.8 172.2c24.3-50.4 75.9-85.3 135.5-85.3 82.9 0 150.4 67.5 150.4 150.4S892.5 960 809.6 960z m-0.5-245.2c-52.8 0-95.8 42.9-95.8 95.7 0 52.8 43 95.7 95.8 95.7s95.7-42.9 95.7-95.7c0.1-52.8-42.9-95.7-95.7-95.7z m-88.7-598c-53.4 0-96.8 43.4-96.8 96.8s43.4 96.8 96.8 96.8 96.8-43.4 96.8-96.8-43.4-96.8-96.8-96.8zM214.3 433.6c-53 0-96.2 43.1-96.2 96.2 0 53 43.1 96.2 96.2 96.2 53 0 96.2-43.1 96.2-96.2 0-53-43.2-96.2-96.2-96.2z",star:"M891.9 355.6l-218.6-15.8c-4.6-0.4-8.6-3.1-10.2-7.5l-83.3-203.8C568.4 100.4 542.5 83 512.1 83c-30.3 0-56 17.4-67.7 45.7l-83.4 204c-1.8 4.2-5.7 7.2-10.2 7.5L132.5 356c-29.6 1.7-54.8 21.1-64.4 49.8-9.9 29-1.6 59.5 21.7 79.5l168.9 140.3c3.5 2.9 5.1 7.7 4 12.1l-51.5 211.9c-6 22-1.8 44.8 11.5 62.6 13.7 18 35.1 28.8 57.5 28.8 13.9 0 27.4-4.2 38.5-11.8l184.6-115.5c3.9-2.4 8.7-2.4 12.6 0l186.4 115.1c11.7 7.9 25.2 12.1 38.9 12.1 21 0 41.8-10.1 55.3-27.2 14.1-17.6 19.2-40.6 14.1-63.5L759 637.9c-1.1-4.5 0.5-9.3 4-12.3l171.4-140.7c23-19.8 31.2-50.3 21.5-79.3-9.4-28.7-34.8-48.3-64-50z m-4.8 97.5l-163 133.8a54.911 54.911 0 0 0-18.3 55.1L755 844c2.6 11.9-2.1 20.1-5.2 24-4.9 6.1-12.2 10-19.5 10-4.5 0-9-1.4-13.9-4.7L538.2 763c-8.5-5.3-18.3-8.1-28.3-8-10.1 0-20 2.8-28.5 8.2L304.8 873.5c-11.3 7.5-26.4 4.2-34.4-6.3-3.3-4.4-6.8-11.9-3.7-22.9L316 641.8c4.9-20.1-2.3-41.6-18.1-54.7L137.3 453.6c-12.7-11-9.2-25.2-7.8-29.2 1.4-4 7.1-17.5 23.8-18.4l208.2-15c20.5-1.5 38.4-14.5 46.1-33.6l79.5-194.3c6.4-15.7 20.9-17 25-17 4.2 0 18.6 1.2 25 17l79.5 194.3c7.7 19.1 25.6 32.1 46.1 33.6l208.5 15.2c16.3 0.9 22.1 14.3 23.5 18.4 1.1 3.6 4.6 17.8-7.6 28.5z","star-half":"M891.9 355.6l-218.6-15.8c-4.6-0.4-8.6-3.1-10.2-7.5l-83.3-203.8C568.4 100.4 542.5 83 512.1 83c-30.3 0-56 17.4-67.7 45.7l-83.4 204c-1.8 4.2-5.7 7.2-10.2 7.5L132.5 356c-29.6 1.7-54.8 21.1-64.4 49.8-9.9 29-1.6 59.5 21.7 79.5l168.9 140.3c3.5 2.9 5.1 7.7 4 12.1l-51.5 211.9c-6 22-1.8 44.8 11.5 62.6 13.7 18 35.1 28.8 57.5 28.8 13.9 0 27.4-4.2 38.5-11.8l184.6-115.5c3.9-2.4 8.7-2.4 12.6 0l186.4 115.1c11.7 7.9 25.2 12.1 38.9 12.1 21 0 41.8-10.1 55.3-27.2 14.1-17.6 19.2-40.6 14.1-63.5L759 637.9c-1.1-4.5 0.5-9.3 4-12.3l171.4-140.7c23-19.8 31.2-50.3 21.5-79.3-9.4-28.7-34.8-48.3-64-50z m-4.8 97.5l-163 133.8a54.911 54.911 0 0 0-18.3 55.1L755 844c2.6 11.9-2.1 20.1-5.2 24-4.9 6.1-12.2 10-19.5 10-4.5 0-9-1.4-13.9-4.7C648.3 831.1 580.2 789.1 512 747V147c-0.1-0.3-0.2-0.7 0-1 1.1-1.8 10.8 0.7 17.4 6.2 2 1.7 5.4 5 7.8 10.9l79.5 194.3c7.7 19.1 25.6 32.1 46.1 33.6l208.5 15.2c16.3 0.9 22.1 14.3 23.5 18.4 0.7 2.1 3.2 10.8-1.1 20-2.1 4.1-4.8 6.9-6.6 8.5z","star-full":"M891.9 355.6l-218.6-15.8c-4.6-0.4-8.6-3.1-10.2-7.5l-83.3-203.8C568.4 100.4 542.5 83 512.1 83c-30.3 0-56 17.4-67.7 45.7l-83.4 204c-1.8 4.2-5.7 7.2-10.2 7.5L132.5 356c-29.6 1.7-54.8 21.1-64.4 49.8-9.9 29-1.6 59.5 21.7 79.5l168.9 140.3c3.5 2.9 5.1 7.7 4 12.1l-51.5 211.9c-6 22-1.8 44.8 11.5 62.6 13.7 18 35.1 28.8 57.5 28.8 13.9 0 27.4-4.2 38.5-11.8l184.6-115.5c3.9-2.4 8.7-2.4 12.6 0l186.4 115.1c11.7 7.9 25.2 12.1 38.9 12.1 21 0 41.8-10.1 55.3-27.2 14.1-17.6 19.2-40.6 14.1-63.5L759 637.9c-1.1-4.5 0.5-9.3 4-12.3l171.4-140.7c23-19.8 31.2-50.3 21.5-79.3-9.4-28.7-34.8-48.3-64-50z",switch:"M512 960c-58 0-114.3-11.4-167.3-33.8-51.2-21.6-97.2-52.6-136.6-92.1-39.5-39.5-70.5-85.4-92.1-136.6-22.4-53-33.8-109.3-33.8-167.3 0-58.3 11.5-114.9 34.3-168.3l0.5-1.1c23.1-53.7 56.4-101.6 99.1-142.1 12.7-12 32.8-11.5 44.8 1.1 5.9 6.1 9 14.2 8.7 22.7-0.2 8.5-3.7 16.3-9.8 22.2-36.3 34.4-64.7 75.2-84.5 121.3l-1.8 4.1c-18.4 44.4-27.7 91.5-27.7 140.2 0 49.4 9.7 97.4 28.8 142.5 18.5 43.6 44.9 82.8 78.5 116.4 33.6 33.6 72.7 60 116.4 78.5 45.1 19.1 93.1 28.8 142.6 28.8 49.4 0 97.4-9.7 142.5-28.8 43.6-18.4 82.8-44.8 116.4-78.5 33.6-33.6 60.1-72.8 78.5-116.4 19.1-45.2 28.8-93.1 28.8-142.5 0-49.8-9.7-97.9-29-143.2l-0.5-1c-10.6-24.5-23.7-47.8-39-69.1-13.4-18.7-28.8-36.3-45.5-52.2l-0.2-0.2c-2.7-3-4.9-6.4-6.5-10.1-1.1-2.5-2.8-6.4-3.1-11.8-0.1-2.4 0-7.2 2.2-12.7 1.5-3.7 3.7-7.1 6.5-10.1 12.1-12.6 32.2-13.1 44.8-1.1 42.7 40.6 76 88.4 99.1 142.2l0.6 1.5c22.7 53.1 34.1 109.6 34.1 167.9 0 58-11.4 114.3-33.8 167.3-21.6 51.2-52.6 97.2-92.1 136.6-39.4 39.4-85.4 70.4-136.6 92.1C626.3 948.6 570 960 512 960z m0-452.1c-17.5 0-31.8-14.3-31.8-31.8V95.8c0-17.5 14.3-31.8 31.8-31.8s31.7 14.3 31.7 31.8V476c0.1 17.6-14.2 31.9-31.7 31.9z",tag:"M64 599.7c0-28.1 10.9-54.5 30.8-74.4L525.3 94.8c25.8-25.8 62.5-36.3 98-28.1l207.3 47.8c39 8.9 69.9 39.9 78.9 78.9l47.8 207.2c8.1 35.2-2.6 72.6-28.1 98.1L498.7 929.2c-19.9 19.9-46.3 30.8-74.4 30.8-28.1 0-54.5-10.9-74.4-30.8L94.8 674.1C74.9 654.2 64 627.8 64 599.7zM649.7 288c0 22.4 8.7 43.5 24.6 59.4 15.9 15.9 37 24.6 59.4 24.6s43.5-8.7 59.4-24.6c15.9-15.9 24.6-37 24.6-59.4 0-22.5-8.7-43.6-24.6-59.4-32.8-32.8-86-32.8-118.8 0-15.9 15.8-24.6 36.9-24.6 59.4z",talk:"M902.8 110H407.2c-31.5 0-57.2 25.1-57.2 55.9v391c0 30.8 25.6 55.9 57.2 55.9h344.7l60.2 92.1c11.5 13.2 33.5 5.2 33.5-12.1v-80h57.2c31.5 0 57.2-25.1 57.2-55.9v-391c0-30.9-25.6-55.9-57.2-55.9zM483.5 411.3c-21.1 0-38.1-16.7-38.1-37.2 0-20.6 17.1-37.2 38.1-37.2 21.1 0 38.1 16.7 38.1 37.2 0 20.5-17.1 37.2-38.1 37.2z m171.5 0c-21.1 0-38.1-16.7-38.1-37.2 0-20.6 17.1-37.2 38.1-37.2 21.1 0 38.1 16.7 38.1 37.2 0 20.5-17 37.2-38.1 37.2z m171.6 0c-21.1 0-38.1-16.7-38.1-37.2 0-20.6 17.1-37.2 38.1-37.2 21.1 0 38.1 16.7 38.1 37.2 0 20.5-17.1 37.2-38.1 37.2zM292.7 616.1V312.6H121.2c-31.5 0-57.2 25.1-57.2 55.9v391c0 30.8 25.7 55.9 57.2 55.9h57.2v80c0 17.3 22.1 25.2 33.5 12.1l60.2-92.1h344.7c31.5 0 57.2-25.1 57.2-55.9V672H349.9c-31.5-0.1-57.2-25.1-57.2-55.9z",third:"M512 64c-156.8 0-284.3 127.5-284.3 284.3S355.2 632.6 512 632.6s284.3-127.5 284.3-284.3S668.8 64 512 64z m-23.9 295.3v-33.2l20.4 0.9c17.1 0 30.7-3.5 40.8-10.6 12.4-8.9 18.6-22.3 18.6-40.3 0-12.4-3.7-22.9-11.1-31.5-10-11.8-25.6-17.7-46.5-17.7-23.9 0-40.9 8.4-51 25.3-6.5 10.9-9.8 24.8-9.8 41.7h-38.1c0-28.1 6.5-50.8 19.5-68.3 16.8-22.4 43.9-33.7 81.1-33.7 29.5 0 53 7.6 70.3 22.8 17.3 15.2 25.9 34.9 25.9 59.2 0 18.3-4.4 33.4-13.3 45.2-7.1 9.5-16 15.8-26.6 19.1 16.5 5.9 29 14.2 37.2 24.8 9.8 12.4 14.6 28.7 14.6 48.8 0 28.1-8.7 51.1-26.1 69.1-20.1 20.7-48.8 31-86 31-9.8 0-17.9-0.6-24.4-1.8-10.6-2.1-21.7-6.1-33.2-12-16.6-8.6-28.4-20.7-35.7-36.3-7.2-15.7-10.9-33.5-10.9-53.6h40.3c0 19.5 3.7 34.6 11.1 45.2 10.6 15.7 29.1 23.5 55.4 23.5 20.1 0 36.4-5.5 49-16.6 12.6-11.1 18.8-25.6 18.8-43.7 0-23-8.7-39.1-26.1-48.3-11.2-5.9-26.7-8.9-46.5-8.9h-17.7z m245 252.3c-4.8-10.3-18.1-15.2-29.7-10.8-11.6 4.3-17.2 16.2-12.4 26.6l80.8 173.8-148.3-26.7c-9.1-1.6-18.5 1.9-23.7 8.9l-83.3 113.3-4.2 6.5-4.9-6.4-83.1-112.5c-5.1-6.9-14.5-10.4-23.7-8.6l-148.3 28.1 81.1-174.5c4.8-10.4-0.7-22.2-12.3-26.5-11.6-4.2-24.9 0.7-29.8 11.1l-97.6 210c-3.2 7-1.9 14.9 3.5 20.7 5.4 5.8 13.9 8.4 22.2 6.8l175.3-33.2L492.9 951c2.6 3.5 6.2 6.1 10.3 7.6 1.9 0.7 4 1.1 6.1 1.3 0.2 0 3.7 0.1 4.6 0.1h0.3c6.8-0.6 13-3.9 16.8-9.1L629.3 817l175.3 31.5c4.6 0.8 9.2 0.4 13.3-1.2 3.4-1.3 6.4-3.3 8.8-5.9 5.4-5.8 6.7-13.8 3.5-20.7l-97.1-209.1z",time:"M512.3 544c-8.4 0-15.7-2.4-21.3-6.9-6.1-5-9.3-13.5-9.4-25.2L480 247.4c-0.1-19.8 11-31.3 30.6-31.4 10-0.1 17.8 2.6 23.3 8s8.3 13.1 8.4 23l1.6 233.9c65.9-0.9 168.5-2.1 179-0.8 3 0.4 5.9 1.1 6.2 1.2 4.3 1.2 13.2 3.7 19.3 12 2.7 3.7 5.8 9.9 5.5 19-0.3 10.5-4.8 16.9-8.4 20.5-5.6 5.5-12.1 7-16.8 8.1-2.2 0.5-5.7 1.1-9.6 1.2-45.2 0.8-91.2 1.1-135.6 1.4-23.2 0.2-47.2 0.3-70.8 0.6-0.1-0.1-0.2-0.1-0.4-0.1z m-0.3-424c216.5 0 392 175.5 392 392 0 78.5-23.1 151.5-62.8 212.8-0.6 12.9 6.4 24.8 17.8 30.2 10 4.7 22 3.6 31.3-2.9C934.4 682.7 960 600.3 960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c83.3 0 161.3-22.7 228.1-62.4 9.5-9.6 11.4-24.3 4.9-35.6-6-10.5-18.1-16.2-30.3-14.4C655.5 883.4 586.2 904 512 904c-216.5 0-392-175.5-392-392s175.5-392 392-392z",track:"M738.3 425.3c1.2 1.1 2.5 2.2 3.9 3.2 24.5 18 63.2 8.4 92.1-22.8 30.4-32.7 35.7-75.4 12.3-97.2-24.1-21.9-65.5-13.3-96 19.6-13.2 14.2-22.3 31.1-25.6 47.5-4.1 19.9 0.7 38.1 13.3 49.7z m44.5-67.3c15.6-16.8 31.2-18.9 33.7-17.3 1.9 2.5 1 18.2-14.6 35-15.5 16.8-31.1 18.9-33.8 17.3-1.7-2.6-0.7-18.3 14.7-35z m34.4 158.2c2.1 2.4 4.4 4.6 7 6.5 19.7 14.4 49.6 10.6 72.8-9.2 26.5-22.7 33.1-57.2 15-78.4-17.8-20.8-53.5-19.7-79.7 2.7-26.7 22.7-33.3 57.2-15.1 78.4z m42.6-46c9.1-7.8 18-8.3 19.5-7.6 0.8 2-1.1 10.8-10.1 18.5-8.7 7.4-17.2 8.2-19.6 7.3-0.5-2.5 1.6-10.8 10.2-18.2z m79 110.6c-5.4-24-35.6-38.8-65.5-32-31.1 7-51.1 32.1-45.5 57 2.1 9.3 7.6 17.5 15.8 23.5 12.9 9.5 31.5 12.7 49.8 8.5 13.5-3.1 25.7-9.8 34.1-19.1 10.1-11 14.3-24.8 11.3-37.9z m-54.3 17.8c-7.7 1.7-14.3 0.3-17.1-1.7 1-2.3 5.7-6.9 14.7-9 7.8-1.7 14.3-0.3 17.5 1.1-0.4 1.9-5.2 7.4-15.1 9.6zM731.3 464.8l-139.6-151-3-2.8c-38.7-31-87.9-42.5-133.7-32.3-40.1 8.9-73.1 33.7-90.6 68-18.8 36.8-18.3 84.2-17.8 130.1 0.5 50.2 1.1 102.1-24.7 130.4-26 28.6-54 35.8-86.3 44.1-34.7 8.9-74 19-111.5 56.6-28.7 28.8-43.1 67.4-39.3 105.9 3 30.7 19.2 76.5 79.3 119.8l0.7 0.5c73 52.2 175.5 14.7 221.1-19.4 0.7-0.4 1.2-1 1.8-1.4 1.5-1.2 3.2-2.4 4.6-3.5l-0.2-0.3c0.6-0.7 1.4-1 2-1.7 8.6-11.3 5.8-27.5-6.1-36-9.9-7.1-22.8-6.3-31.8 0.5l-0.3-0.3c-59 34.1-114.1 55.2-161.1 21.6-35.2-25.4-55.2-54.2-58.1-83.4-2.3-24.1 6.9-48.5 25.4-67 27.8-27.8 55.7-35 88.1-43.3 35.2-9.1 75.2-19.3 111.3-59.1 38.5-42.4 37.9-103.9 37.2-163.4-0.5-41.9-0.9-81.4 12.5-107.7 10.8-21.1 31.4-36.5 56.6-42.1 28.2-6.3 58.7 0.3 83.6 18.2 1.1 0.8 2.3 1.6 3.4 2.5L692.3 497c49.3 57.6 48.2 110.2-3.4 165.6-61.9 65.9-124.7 96.7-180.2 123l0.1 0.2c-3.4 1.7-6.5 4-9 7.2-8.6 11.3-5.8 27.5 6.1 36 8.4 6 19.1 6.4 27.8 2.2l0.1 0.2c55.7-26.5 128.7-65.1 194-134.6 68.9-74 70.4-154 3.5-232zM524.1 242.4c4.1 3 8.6 5.4 13.3 7.2 37.4 13.9 81.5-15.2 100.5-66.3 16.2-43.6 8.2-88.3-19.6-108.7-4.1-3-8.6-5.4-13.3-7.2-18.8-7-40.8-3-60.1 11-17.5 12.6-31.8 32.2-40.4 55.3-16.2 43.6-8.2 88.3 19.6 108.7z m16.7-93.1c5.5-14.8 14.7-27.7 25.2-35.3 5-3.6 14.8-9.2 23.9-5.8 1.4 0.5 2.8 1.3 4 2.2 11.2 8.2 16.6 33.3 6.3 61-11.4 30.7-35.1 46.3-49.1 41.1-1.4-0.5-2.8-1.3-4-2.2-11.1-8.2-16.6-33.3-6.3-61z m104.8 181.2c27.5 20.4 71.3 5.7 99.7-33.5 28.4-39.2 29.1-85.8 1.6-106.2-27.5-20.4-71.3-5.7-99.7 33.5-28.4 39.1-29.1 85.8-1.6 106.2z m74.8-103.1c3.4 2.5 4.9 21.2-10.9 43s-33.9 26-37.3 23.5c-3.4-2.5-4.9-21.2 11-43.1 15.7-21.8 33.8-26 37.2-23.4z",trash:"M750.5 938.9H278.6c-53.3 0-96.6-39.8-96.6-88.7V255h-66.5C85.7 255 64 244.3 64 229.6s21.7-25.4 51.5-25.4h793c29.8 0 51.5 10.7 51.5 25.4S938.3 255 908.5 255h-61.4v595.2c0 48.9-43.3 88.7-96.6 88.7zM230.1 255v595.2c0 22.4 21.8 40.6 48.6 40.6h471.8c26.8 0 48.6-18.2 48.6-40.6V255h-569z m408.8 628.6c-15.8 0-27.3-21.7-27.3-51.6V513.2c0-29.9 11.5-51.6 27.3-51.6s27.3 21.7 27.3 51.6V832c0 29.9-11.5 51.6-27.3 51.6z m-127.4 0c-15.8 0-27.3-21.7-27.3-51.6V513.2c0-29.9 11.5-51.6 27.3-51.6s27.3 21.7 27.3 51.6V832c0 29.9-11.4 51.6-27.3 51.6z m-127.4-1c-15.8 0-27.3-21.7-27.3-51.6V512.2c0-29.9 11.5-51.6 27.3-51.6s27.3 21.7 27.3 51.6V831c0.1 29.9-11.4 51.6-27.3 51.6z m389.8-746.8H250.1c-29.8 0-51.5-10.7-51.5-25.4S220.3 85 250.1 85h523.8c29.8 0 51.5 10.7 51.5 25.4 0 14.8-21.7 25.4-51.5 25.4z",unmute:"M517.3 924.1c-19.4 0-40.5-9.8-60.4-28.4L262.3 710h-119C92.9 710 64 681.1 64 630.8V392.9c0-51.1 28.1-79.2 79.2-79.2h119L457 128c27.1-25.4 57.7-34.3 82-23.7 25.7 11.1 40.4 41.7 40.4 84v647.1c0 42.4-14.8 73.1-40.5 84.3-6.9 2.9-14.1 4.4-21.6 4.4zM167 377c-30.8 0-39.7 8.9-39.7 39.7V607c0 31.6 8.2 39.7 39.7 39.7h130.1l2.3 2.5c84.6 89.9 145.7 153.4 181.5 188.7 19 18.7 26.3 17 27.6 16.5 1.3-0.5 7.6-4.6 7.6-31.8V203.3c0-27.5-6-30.7-6.6-31-1.5-0.7-8.2-1.2-28.3 18.5-58.4 57.2-159.6 155.3-189.2 184l-2.3 2.2H167z m644.8 454.6c-14.8 9.1-33.4 5.6-42.8-6.6-7.6-9.9-8.1-24.4-1-36 1.3-1.4 3.2-3.3 5.4-5.8 27.2-29.1 47-49.6 64-76.1 10.2-15.9 19.3-32.6 27.1-49.9 22.4-49.6 33.7-102.5 33.7-157.3 0-99.6-38.1-194.4-107.4-266.7-1.6-1.7-3.3-3.5-4.9-5.2-6.9-12.4-4.9-28 5-38 10.2-10.3 26.3-12.5 39-5 3 3.2 6 6.4 9 9.5 78 83.5 121 191.8 121 305.4 0 63-13 124-38.6 181.1-24.6 55-59.7 103.9-104.2 145.5l-5.3 5.1z m-97.5-119.8c-11.9 7.3-27 6.5-37.3-1.8-11.9-9.6-15.2-27.3-7.2-41.5 1.6-1.9 3.2-3.7 4.9-5.6 36.5-42.1 56.7-95.7 56.7-151 0-56.6-20.9-111.1-58.8-153.6l-5.4-6c-6.4-13-3.2-28.8 7.8-38.2 11-9.5 27.1-10.3 39-2 3.1 3.4 6.3 6.8 9.4 10.2 45.2 53.1 70 120.3 70 189.6 0 71.3-26.2 140.1-73.7 193.8l-5.4 6.1z",upload:"M392 325.7s-54.2-68.6-127.7-12.6c-65.8 53.5-54.2 151.3-54.2 151.3S64 501.9 64 697.9c3.3 195.8 158.7 197.8 158.7 197.8l233.3 0.3V686.4H344.2L512 476.9l167.9 209.6H568V896l226.6-0.3s144.7 0.2 165-186.1c9.7-203.7-139.8-243.8-139.8-243.8s17-301.5-192.9-335.9C446.8 105.7 392 325.7 392 325.7z",user:"M929.2 960c-13.7 0-25.5-8.9-29.5-22-12.6-41.6-31.5-80.7-56.4-116.4-24.5-35.2-54.2-66.2-88.2-92-70.6-53.7-154.7-82.1-243.2-82.1-88.4 0-172.5 28.4-243 82-34 25.8-63.6 56.7-88.2 91.9-24.9 35.6-43.8 74.7-56.4 116.2-2.4 8-7.8 14.5-15.1 18.4-7.3 3.9-15.6 4.6-23.5 2.2-16.2-5-25.3-22.4-20.4-38.8 14.5-47.8 36.4-92.8 65-133.8 28.2-40.4 62.4-76 101.5-105.7 39.6-30.1 83.3-53.5 129.9-69.5 48.3-16.6 98.8-25 150.2-25 51.5 0 102 8.4 150.3 25.1 46.7 16.1 90.4 39.5 130 69.6 39.1 29.8 73.2 65.4 101.5 105.9 28.6 41 50.4 86.1 64.9 134 4.9 16.3-4.2 33.7-20.4 38.7-2.9 0.8-6 1.3-9 1.3zM512 569c-67.4 0-130.9-26.3-178.6-74-47.7-47.7-74-111.1-74-178.6s26.3-130.9 74-178.6C381.1 90.3 444.5 64 512 64c67.4 0 130.9 26.3 178.6 74 47.7 47.7 74 111.1 74 178.5s-26.3 130.9-74 178.6C642.9 542.8 579.4 569 512 569z m0-443.4c-51 0-98.9 19.9-135 55.9-36.1 36.1-55.9 84-55.9 135s19.9 98.9 55.9 135c36.1 36.1 84 55.9 135 55.9s99-19.9 135-55.9c36.1-36.1 55.9-84 55.9-135s-19.9-98.9-55.9-135c-36.1-36.1-84-55.9-135-55.9z",vip:"M511.9 946.7c-8.5 0-16.6-4-21.8-10.8L165 511.8c-6.1-7.7-7.6-18.2-3.9-27.3 3.7-9.2 12.1-15.6 22-16.9 8.2-1 16.3 1.7 22.2 7.2h0.5l306.1 399.3 222.7-290.6c4.5-5.8 10.9-9.5 18.2-10.5 7.3-1 14.5 1 20.3 5.4 12 9.2 14.3 26.5 5.1 38.5l-244.5 319c-5.1 6.7-13.3 10.8-21.8 10.8z m75.6-332h-1.7a16 16 0 0 1-3.9-0.5l-2.7-0.5-3.9-1.4-0.6-0.3c-7.5-4-11.7-11.4-11.7-20.7V432c0-19.9 12-31.3 32.8-31.3h57.5c21.6 0 38.3 5.4 49.6 16 11.5 10.8 17.3 26.7 17.3 47.3 0 21.6-7.5 38.4-22.3 49.9-12.1 9.2-27.2 13.9-45.1 13.9h-42.6v63.5c0 9.3-4.1 16.7-11.7 20.7l-0.6 0.3-3.9 1.4-2.7 0.5c-1.1 0.4-2.4 0.5-3.8 0.5z m22.8-118.2h33.8c5.9 0 10.7-1.2 14.4-3.5l0.1-0.1c3.2-1.9 5.6-4.5 7.4-8l0.1-0.2c1.8-3.2 3.1-6.9 3.9-11 0.6-3.4 0.8-6.9 0.8-10.4 0-1.5-0.1-3-0.2-4.6v-0.8c0-1.6-0.1-3.1-0.4-4.6-0.7-4.3-1.8-7.8-3.2-10.7-1.8-3.3-4-5.9-6.9-7.6-3.7-2.2-8.6-3.3-14.3-3.3h-35.5v64.8zM488 600c-0.6-137.8-0.9-183.2 0-187 2-8.1 10.6-19.4 24-19 11.6 0.3 21.5 9.3 23 21 0.1 61.8 0.1 123.6 0.2 185.3-1.6 11.7-11.6 20.5-23.2 20.7-12 0.2-22.5-8.9-24-21z m-100.9 14.7c-14 0-24.4-7.3-29.3-20.6l-60.2-169-0.1-0.7c-0.3-1.4-0.4-2.8-0.4-4.2 0-14.6 9.3-23.3 25-23.3 8.5 0 13.6 3.6 16.4 6.6l0.3 0.4c1.3 1.5 2.4 3.2 3.3 5.2l0.4 0.8 0.4 0.6 50.6 145.8L444.4 408c2.7-7 8.4-11 15.6-11 10.1 0 16.7 6.6 16.7 16.7v2.7l-61 177.5c-1.6 4.7-4.2 9-7.8 12.6l-0.1 0.1c-5.7 5.4-12.6 8.1-20.7 8.1z m422.5-56.2c-5.8 0-11.7-1.9-16.7-5.7-11.7-9-14.2-25.5-5.7-37.6l0.2-0.3L910.7 354c9.2-12 26.4-14.3 38.4-5.1 12 9.2 14.3 26.4 5.1 38.5l-123.4 161-0.1 0.1c-5.5 6.6-13.3 10-21.1 10z m-669-96.1c-7.9 0-15.7-3.4-21.1-9.9l-0.2-0.3-49.7-64.8c-4.5-5.8-6.4-13-5.4-20.3 1-7.3 4.7-13.7 10.5-18.2 12-9.2 29.3-6.9 38.5 5.1l49.8 65c8.5 12.1 6 28.6-5.7 37.6-5 3.9-10.8 5.8-16.7 5.8z m643.6-88.6h-545c-13.4 0-24.4-10.9-24.4-24.4 0-13.4 10.9-24.4 24.4-24.4h545c13.4 0 24.4 10.9 24.4 24.4-0.1 13.5-11 24.4-24.4 24.4z m148.4-48.6c-8.8 0-17.2-4.3-22.4-11.6l-45.6-62.8c-4.3-5.9-6.1-13.2-4.9-20.4 1.1-7.2 5-13.6 11-17.9 12.2-8.9 29.4-6.2 38.3 6.1l45.7 62.9c5.8 7.8 7 18.3 3 27.4-4 9-12.5 15.2-22.4 16.2-0.9 0.1-1.8 0.1-2.7 0.1zM91.4 315c-5.6 0-11.2-1.7-16.1-5.2-12.2-8.9-15-26.1-6.1-38.3L202 88.6c5.1-7.1 13.4-11.3 22.2-11.3h575.4c8.7 0 17 4.2 22.2 11.3l51.6 71c4.3 5.9 6 13.2 4.9 20.4-1.1 7.2-5.1 13.6-11 17.9-5.9 4.3-13.2 6-20.4 4.9-7.2-1.1-13.6-5.1-17.9-11l-43.4-59.7H238.2L113.6 303.7c-5.3 7.4-13.7 11.3-22.2 11.3z",warn:"M907.3 931H116.7c-20.2 0-36.9-8.4-46-23.2-9-14.7-8.9-33.5 0.3-51.5l363.3-711.7c13.5-26.4 45.6-48 76.2-51.3l2.7-0.3 2.7 0.3c30.7 3.3 62.7 24.9 76.2 51.4l361.2 711.5c9.1 18 9.2 36.8 0.2 51.6-9.3 14.7-26 23.2-46.2 23.2z m-791.8-50.7h793.1c-0.2-0.4-0.3-0.8-0.6-1.2l-0.9-1.7-360.3-709.8c-5.4-10.7-20.4-21.1-33.7-23.6-13.4 2.5-28.4 12.9-33.8 23.6L116 879.3c-0.2 0.3-0.3 0.7-0.5 1zM512 812c-24.3 0-44-19.7-44-44s19.7-44 44-44 44 19.7 44 44-19.7 44-44 44z m0-108c-16.5 0-30-13.5-30-30V330c0-16.5 13.5-30 30-30s30 13.5 30 30v344c0 16.5-13.5 30-30 30z",wallet:"M384.5 682.6V341.4c0-47 39.4-85.4 88.5-85.4h408.1v-42.6c0-47-39.2-85.4-87.6-85.4H155.2c-49.1 0-91.2 37-91.2 84v600c0 47 42.1 84 91.2 84h638.1c48.7 0 87.6-38.4 87.6-85.4V768H472.7c-48.9 0-88.2-38.4-88.2-85.4zM448 355.7v312.6c0 19.6 16.8 35.7 37.4 35.7h437.2c20.6 0 37.4-16.1 37.4-35.7V355.7c0-19.6-16.8-35.7-37.4-35.7H485.4c-20.6 0-37.4 16.1-37.4 35.7z m195.9 227.4c-43 2.7-78.4-32.8-75.8-75.8 2.2-35.4 31-64.2 66.6-66.7 43-2.7 78.4 32.8 75.8 75.8-2.5 35.7-31.2 64.5-66.6 66.7z",windows:"M431.2 491.5H64V187.3l367.2-50.6v354.8z m0 395.8L64 836.7V536.8h367.2v350.5zM960 491.5H471.6V131.3L960 64v427.5z m0 468.5l-488.4-67.3V536.8H960V960z"};export default SVG_PATH; \ No newline at end of file +const c={android:"M733.9 338.6C723.1 214.3 628.3 117 512.9 117s-210.2 97.3-221 221.6h442zM393 232.6c0-12.4 8.9-22.4 20-22.4 11 0 19.9 10.1 19.9 22.4 0 12.4-8.9 22.4-19.9 22.4-11.1 0-20-10-20-22.4m199.4 0c0-12.4 8.9-22.4 19.9-22.4 11 0 20 10.1 20 22.4 0 12.4-9 22.4-20 22.4s-19.9-10-19.9-22.4m-173.6-92c-4.7 2.4-9.6 5.2-13 7.2l-36-71.6c-2-3.9-0.8-8.9 2.7-11.1 3.5-2.3 7.9-0.9 9.9 3.1l36.4 72.4m187.7 0L643 68.2c2-3.9 6.4-5.3 9.9-3.1 3.5 2.2 4.7 7.2 2.8 11.1l-36.1 71.6c-3.4-1.9-8.4-4.7-13.1-7.2m-332 495.1c0 31.8-22.3 57.8-49.5 57.8-27.3 0-49.6-26-49.6-57.8V411.4c0-31.8 22.3-57.8 49.6-57.8 27.2 0 49.5 26 49.5 57.8v224.3z m574.1 0c0 31.8-22.3 57.8-49.5 57.8s-49.6-26-49.6-57.8V411.4c0-31.8 22.3-57.8 49.6-57.8 27.2 0 49.5 26 49.5 57.8v224.3zM293.8 363.1V722c0 31.8 23.2 57.8 51.4 57.8h35.6v122.3c0 31.8 22.3 57.8 49.6 57.8 27.2 0 49.5-26 49.5-57.8V779.9h64.6v122.3c0 31.8 22.3 57.8 49.5 57.8 27.3 0 49.6-26 49.6-57.8V779.9h36.2c28.3 0 51.4-26 51.4-57.8v-359H293.8z",app:"M834.6 960H564.3c-30.4 0-55.1-24.7-55.1-55V635c0-30.3 24.7-55 55.1-55h270.3c30.4 0 55.1 24.7 55.1 55v270c-0.1 30.3-24.8 55-55.1 55z m-445.3 0H119.1C88.7 960 64 935.3 64 905V635c0-30.3 24.7-55 55.1-55h270.3c30.4 0 55.1 24.7 55.1 55v270c-0.1 30.3-24.8 55-55.2 55z m177.9-61h258.4V640.8H567.2V899zM125 899h258.4V640.8H125V899z m595.6-356.7c-12.9 0-25.8-4.9-35.7-14.7L496.1 338.8c-9.5-9.5-14.8-22.2-14.8-35.6 0-13.5 5.2-26.1 14.8-35.6L685 78.8c19.7-19.7 51.7-19.7 71.3 0l188.9 188.8c9.5 9.5 14.8 22.2 14.8 35.6 0 13.5-5.3 26.1-14.8 35.6L756.3 527.6c-9.8 9.8-22.7 14.7-35.7 14.7zM543 303.5l178 177.9 178-177.9-178-177.9-178 177.9zM389.3 515.1H119.1c-30.4 0-55.1-24.7-55.1-55V190c0-30.3 24.7-55 55.1-55h270.3c30.4 0 55.1 24.7 55.1 55v270c-0.1 30.4-24.8 55.1-55.2 55.1z m-264.3-58h258.4V198.9H125v258.2z",apple:"M512.1 269c-1.3-2-1.6-19.8-0.5-30.5 2.3-22.4 7.5-40.1 17.6-60.2 9.4-18.5 24-38.6 39.7-54.8 22.7-23.3 61.8-45.2 97.4-54.7 12.1-3.2 30.1-5.9 31.4-4.6 1.2 1.2 1.4 24.1 0.3 34.8-4.9 45.1-27.1 88.3-63.2 123.1-28.1 27.1-57.6 42-91.7 46.5-12.1 1.7-30.1 1.9-31 0.4zM356.3 959c-33.9-7.5-66.3-32.7-104.1-81.2-37.7-48.3-59.2-84.4-79.3-133-20.5-49.4-33.3-97.8-39.2-147-1.4-11.5-1.7-21.6-1.7-47.4 0-36 0.9-46.1 6.2-71.6 10.5-50.4 34.1-95.6 67.5-128.9 20.3-20.3 39.3-33.6 66-46.2 29.9-14.1 60.4-21.1 92.2-21.1 25.8 0 44 4.5 104 25.7 22.1 7.8 38.6 12.5 46.8 13.3 4.5 0.4 7.9 0.1 13.8-1.4 8.3-2 38.3-11.9 63-20.6 53.4-18.9 88.9-23.4 130.9-16.4 50.9 8.4 89.7 26.7 121.4 57.4 9.6 9.3 24.2 26.1 24.2 28 0 0.3-3.7 3-8.3 5.9-18.4 12-41.3 32.1-52.6 46.4-36.5 46-48.6 108-33.1 169 13.7 53.7 53.1 100.6 107.4 127.7 8.9 4.4 10.9 5.8 10.7 7.3-0.3 2.5-11.5 31.3-17 43.6-11.1 25.1-28.8 56.1-45.8 80.4-29.8 42.7-57.9 73.8-80.6 89.3-10.9 7.4-26.8 14.8-38.9 18.1-8.6 2.3-11 2.5-25.2 2.5-12.9 0-17.6-0.4-26.1-2.1-11.8-2.4-32.8-9.1-54.8-17.3-26-9.8-50.3-14.7-72.7-14.7-26.6 0-48.5 4.6-83 17.5-20.3 7.6-31.8 11.3-45.1 14.5-9.7 2.3-13.6 2.8-26.1 3.1-10.4 0.4-16.5 0.1-20.5-0.8z",at:"M532.7 417.9c-22.6 0-39.8 9.5-51.7 28.4-11.8 19-19.6 47.4-23.3 85.3-1.9 25.2 0 44.2 5.8 57.1 5.8 12.9 15.3 19.4 28.2 19.4 11.8 0 22.2-3.2 31.4-9.5s17.4-17.9 24.3-34.9l13.1-142.2c-4.7-1.1-9.5-1.9-14-2.6-4.8-0.8-9.3-1-13.8-1zM512 64C264.5 64 64 264.5 64 512s200.5 448 448 448 448-200.5 448-448S759.5 64 512 64z m275.3 434.9c-1.9 46.1-16.4 85.9-43.1 119.8-26.7 33.6-66.8 50.4-119.8 50.4-17.7 0-33-4.7-45.7-14.2-12.9-9.5-22-23-27.1-40.5-8.8 17.9-20.2 31.2-33.8 40.1-13.6 8.8-29.5 13.4-47.8 13.4-32.5 0-57.3-12.5-74.5-37.3s-23.5-57.7-19-98.9c5.6-52.6 21.5-94.8 47.8-126.4s58.2-47.4 95.6-47.4c26.3 0 47.6 2.8 63.5 8.2 15.9 5.4 33.6 12.3 52.8 23.7l-1.1-0.2h1.7l-16.6 179.6c-1.1 18.3 0.2 31.4 3.7 38.3 3.7 6.9 8.4 10.6 14.4 10.6 24.3 0 43.9-11 58.6-33.6 14.6-22.6 22.8-50.8 24.6-85.3 3.4-71.1-11-126.4-43.5-166.1-32.5-39.6-82.5-59.7-150.1-59.7-65.7 0-118 21.3-156.8 64.2s-59.7 101-63.1 174.9c-3.7 71.9 12.1 128.8 47.2 170.4 35.1 41.8 85.5 62.7 151.4 62.7 18.3 0 37.3-1.9 57.1-5.8 19.6-3.9 36.8-8.8 51-14.6l12.5 52.1c-14.6 8.8-33.2 15.7-55.8 20.7-22.6 5-44.6 7.3-66.1 7.3-87.9 0-155.7-26.1-203.1-78.4-47.4-52.1-69.4-123.6-65.7-214.5 3.9-90 32.1-161.3 84.2-214.1 52.3-52.8 121.7-79 208.3-79 85.1 0 150.3 25 195.4 74.7 45.6 49.8 66.3 118.1 62.9 204.9z",attach:"M872.7 458.8L499.9 831.6c-74.6 74.6-196.6 74.6-271.1 0-74.6-74.6-74.6-196.6 0-271.1l389.7-389.7c47.4-47.4 122-47.4 169.5 0 47.4 47.4 47.4 122 0 169.5L398.2 730c-18.6 18.6-49.1 18.6-67.8 0-18.6-18.6-18.6-49.1 0-67.8l322-322-50.8-50.8-322 322c-47.4 47.4-47.4 122 0 169.5 47.4 47.4 122 47.4 169.5 0l389.7-389.7c74.6-74.6 74.6-196.6 0-271.1s-196.6-74.6-271.1 0L178 509.7C74.6 613 74.6 779.1 178 882.5s269.4 103.4 372.8 0l372.8-372.8-50.9-50.9z",backward:"M952.7 732c-19.3-108-78-244.6-175.4-336.6-48.6-46-102-75.5-156.7-91.3-6.8-2-13.7-3.8-20.6-5.4-6.9-1.6-13.8-3-20.7-4.2-13.8-2.4-27.6-4.1-41.4-5-9.7-0.7-19.4-1-29-1.1V124.7c0-0.1 0.2-1.6-0.9-2.5-0.9-0.7-2.2-0.8-3.2-0.2L68 420.6c-0.2 0.1-4.2 2.8-4 7.7 0.2 4.7 4.1 7 4.3 7.2l436.8 338.3c1.8 1.1 2.5 1.1 2.8 0.8 0.7-0.5 0.9-2.5 0.9-2.5V552.4c51.6 2.8 127.6 10.1 184.3 29.1C815.1 622.3 894 733 927.3 836.8c8.2 25.6 12.3 47.7 14.5 63.5 0.4 1.4 1.8 2.2 3 2 1-0.2 1.8-1 2-2 0.7-2.6 1.6-6.4 2.9-11.2 1.6-6.3 2.8-10.9 2.9-11.1 4.9-21.3 7.4-44 7.4-68.4 0-24.3-2.4-50.3-7.3-77.6z",bell:"M512 911.1c-37.2 0-69.8-25.6-79.1-60.5H384c9.3 62.8 62.8 109.4 128 109.4s118.7-48.9 128-109.4h-48.9c-9.3 34.9-41.9 60.5-79.1 60.5z m336-238.2c0-9-4.5-18-13.5-20.3-2.3 0-121.8-65.4-121.8-241.3 2.3-51.9-20.3-162.4-124-196.2-2.3 0-2.3 0-4.5-2.3 11.3-15.8 20.3-36.1 20.3-56.4 0-49.6-40.6-92.5-92.5-92.5s-92.5 40.6-92.5 92.5c0 20.3 6.8 40.6 20.3 56.4-2.3 0-4.5 0-4.5 2.3C331.6 248.9 309 357.2 311.3 409c0 175.9-115 239-121.8 243.5-6.8 4.5-13.5 11.3-13.5 20.3v121.8c0 6.8 2.3 13.5 6.8 18s11.3 6.8 15.8 6.8h626.9c6.8 0 13.5-2.3 15.8-6.8 4.5-4.5 6.8-11.3 6.8-18V672.9zM512 111c24.6 0 44.8 20.2 44.8 44.8 0 24.6-20.2 44.8-44.8 44.8-24.6 0-44.8-20.2-44.8-44.8 0-24.6 20.2-44.8 44.8-44.8zM242 761v-80.1c33.8-23.8 124.5-101.8 124.5-266.3 0-4.3-2.1-112.6 86.5-142.9 6.3-2.2 27.4-8.7 59.1-8.7 31.6 0 52.7 6.5 59.1 8.7 88.6 30.3 86.5 138.6 86.5 142.9 0 164.6 90.7 242.5 124.5 266.3V761H242z",calendar:"M315.3 323.8c-18 0-32.7-14.1-32.7-31.3V128.2c0-17.3 14.7-31.3 32.7-31.3 18 0 32.7 14.1 32.7 31.3v164.3c-0.1 17.2-14.7 31.3-32.7 31.3z m528.5 603.4H180.2C116.1 927.2 64 876 64 813.2V300.8c0-62.9 52.1-114 116.2-114h38.9c18 0 32.7 14.1 32.7 31.3 0 17.3-14.7 31.3-32.7 31.3h-38.9c-28.1 0-50.9 23-50.9 51.3v512.4c0 28.3 22.8 51.3 50.9 51.3h663.5c28.1 0 50.9-23 50.9-51.3V300.8c0-28.3-22.8-51.3-50.9-51.3H810c-18 0-32.7-14.1-32.7-31.3 0-17.3 14.7-31.3 32.7-31.3h33.7c64.1 0 116.2 51.1 116.2 114v512.4c0.1 62.7-52 113.9-116.1 113.9zM708.7 323.8c-18 0-32.7-14.1-32.7-31.3V128.2c0-17.3 14.7-31.3 32.7-31.3 18 0 32.7 14.1 32.7 31.3v164.3c0 17.2-14.7 31.3-32.7 31.3z m43.8 393.1h-481c-18 0-32.7-14.1-32.7-31.3 0-17.3 14.7-31.3 32.7-31.3h480.9c18 0 32.7 14.1 32.7 31.3 0 17.3-14.6 31.3-32.6 31.3z m0-205.3h-481c-18 0-32.7-14.1-32.7-31.3 0-17.3 14.7-31.3 32.7-31.3h480.9c18 0 32.7 14.1 32.7 31.3 0 17.2-14.6 31.3-32.6 31.3z m-131.2-267H399.9c-18 0-32.7-14.1-32.7-31.3 0-17.3 14.7-31.3 32.7-31.3h221.4c18 0 32.7 14.1 32.7 31.3 0 17.2-14.7 31.3-32.7 31.3z",camera:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m271.5 719.5C711 856.1 614.6 896 512 896s-199-39.9-271.5-112.5C167.9 711 128 614.6 128 512s39.9-199 112.5-271.5C313 167.9 409.4 128 512 128s199 39.9 271.5 112.5C856.1 313 896 409.4 896 512s-39.9 199-112.5 271.5zM400.1 212.1c-81.3 30.3-146.9 92.8-181.4 171.9H512L400.1 212.1zM825.6 576c4.3-21.1 6.4-42.5 6.4-64 0-73.2-24.6-140.7-66-194.7L622 576h203.6zM719.9 268.8C664 220.9 591.4 192 512 192c-15.9 0-31.6 1.2-46.9 3.4L621.7 448l98.2-179.2zM198.4 448c-4.3 21.1-6.4 42.5-6.4 64 0 73.3 24.6 140.8 66.1 194.7L402 448H198.4z m425.5 363.9c81.3-30.3 146.9-92.8 181.4-171.9H512l111.9 171.9z m-319.8-56.7C360 803.1 432.6 832 512 832c15.9 0 31.6-1.2 46.9-3.4L402.3 576l-98.2 179.2z",chart:"M321.4 812.4h-108V548h108v264.4z m165.2 0h-108V283.6h108v528.8z m165.2 0h-108V415.8h108v396.6z m158.9 0h-108V213.6h108v598.8zM960 876.8c0-10.6-8.4-19.2-18.7-19.2H82.7c-10.3 0-18.7 8.6-18.7 19.2S72.4 896 82.7 896h858.7c10.2 0 18.6-8.6 18.6-19.2zM85.3 128H80c-8.8 0-16 7.2-16 16v736c0 8.8 7.2 16 16 16h5.3c8.8 0 16-7.2 16-16V144c0-8.8-7.2-16-16-16z","checkbox-on":"M860.4 64H163.6C108.8 64 64 108.8 64 163.6v696.9c0 54.8 44.8 99.6 99.6 99.6h696.9c54.8 0 99.6-44.8 99.6-99.6V163.6C960 108.8 915.2 64 860.4 64z m-448 696.9L163.6 512l69.7-69.7 179.2 179.2 378.3-378.3 69.7 69.7-448.1 448z","checkbox-off":"M860.2 163.6v696.8H163.6V163.6h696.6m0-99.6H163.6C108.8 64 64 108.8 64 163.6v696.8c0 54.8 44.8 99.6 99.6 99.6h696.8c54.8 0 99.6-44.8 99.6-99.6V163.6c-0.2-54.8-45-99.6-99.8-99.6z",client:"M578 886.6H137.9c-40.7 0-73.9-35.1-73.9-78.3v-46.9c0-17.3 13.4-31.3 29.9-31.3H578c16.5 0 29.9 14.1 29.9 31.3 0 17.3-13.4 31.3-29.9 31.3H123.7v15.6c0 8.6 6.3 15.6 14.1 15.6H578c16.5 0 29.9 14.1 29.9 31.3 0 17.4-13.4 31.4-29.9 31.4z m308.1 0h-176c-40.7 0-73.9-35.1-73.9-78.3V432.8c0-43.2 33.1-78.3 73.9-78.3h176.1c40.7 0 73.9 35.1 73.9 78.3v375.6c-0.1 43.1-33.2 78.2-74 78.2z m-176-469.4c-7.8 0-14.2 7-14.2 15.6v375.6c0 8.6 6.3 15.6 14.2 15.6h176.1c7.8 0 14.1-7 14.1-15.6V432.8c0-8.6-6.3-15.6-14.1-15.6H710.1z m88 374.1c-7.9 0-15.6-3.2-21.1-8.8-5.6-5.6-8.7-13.3-8.7-21.1 0-7.9 3.2-15.7 8.8-21.1 5.5-5.5 13.2-8.7 21-8.7 8 0 15.7 3.2 21.2 8.8 5.5 5.5 8.7 13.2 8.7 21 0 8-3.2 15.7-8.8 21.2-5.6 5.5-13.3 8.7-21.1 8.7zM578 669.5H225.9c-40.7 0-73.9-35.1-73.9-78.3V215.6c0-43.2 33.1-78.3 73.9-78.3h572.2c40.7 0 73.9 35.1 73.9 78.3v46.9c0 17.3-13.4 31.3-29.9 31.3s-29.9-14.1-29.9-31.3v-46.9c0-8.6-6.3-15.6-14.2-15.6H225.9c-7.8 0-14.1 7-14.1 15.6v375.6c0 8.6 6.3 15.6 14.1 15.6H578c16.5 0 29.9 14.1 29.9 31.3 0 17.3-13.4 31.4-29.9 31.4z",close:"M925.9 960c-9.1 0-17.7-3.5-24.1-10L512 560.2 122.2 950c-6.4 6.4-15 10-24.1 10-9.1 0-17.7-3.5-24.1-10-13.3-13.3-13.3-34.9 0-48.2L463.8 512 74 122.2C60.7 108.9 60.7 87.3 74 74c13.3-13.3 34.9-13.3 48.2 0L512 463.8 901.8 74c13.3-13.3 34.9-13.3 48.2 0 13.3 13.3 13.3 34.9 0 48.2L560.2 512 950 901.8c13.3 13.3 13.3 34.9 0 48.2-6.4 6.5-15 10-24.1 10z",color:"M512 64C283.2 64 96 265.6 96 512s187.2 448 416 448c39.3 0 69.3-32.3 69.3-74.7 0-19.9-6.9-37.3-18.5-49.8-11.6-12.4-18.5-29.9-18.5-49.8 0-42.3 30-74.7 69.3-74.7h83.2c127.1 0 231.1-112 231.1-248.9C928 243.2 740.8 64 512 64zM256 512c-36.3 0-64-27.7-64-64s27.7-64 64-64 64 27.7 64 64-27.7 64-64 64z m128-192c-36.3 0-64-27.7-64-64s27.7-64 64-64 64 27.7 64 64-27.7 64-64 64z m256 0c-36.3 0-64-27.7-64-64s27.7-64 64-64 64 27.7 64 64-27.7 64-64 64z m128 192c-36.3 0-64-27.7-64-64s27.7-64 64-64 64 27.7 64 64-27.7 64-64 64z","dbl-left":"M536.2 948.6L76.3 539.7l-0.3-0.3c-7.7-7.4-12-17.2-12-27.6 0-12.4 6.1-23.9 16.8-31.6L536.3 75.3c8.1-7.3 19-11.3 30.5-11.3 24.2 0 43.9 18.1 43.9 40.3 0 11.1-4.8 21.4-13.4 29L171.2 512l426.1 378.7c8.5 7.6 13.4 18.1 13.4 29 0 22.2-19.7 40.3-43.9 40.3-11.3 0-22.2-4-30.6-11.4z m349.4 0l-460-408.9-0.3-0.3c-7.7-7.4-12-17.2-12-27.6 0-12.4 6.1-23.9 16.8-31.6L885.6 75.3c8.2-7.3 19-11.3 30.5-11.3 24.2 0 43.9 18.1 43.9 40.3 0 11.1-4.8 21.4-13.4 29L520.5 512l426.1 378.7c8.5 7.6 13.4 18.1 13.4 29 0 22.2-19.7 40.3-43.9 40.3-11.3 0-22.2-4-30.5-11.4z","dbl-right":"M457.2 960c-24.2 0-43.9-18.1-43.9-40.3 0-10.9 4.9-21.4 13.4-29L852.8 512 426.7 133.2c-8.6-7.5-13.4-17.8-13.4-29 0-22.2 19.7-40.3 43.9-40.3 11.5 0 22.4 4 30.6 11.3l455.5 404.9c10.7 7.7 16.8 19.2 16.8 31.6 0 10.4-4.3 20.2-12 27.6l-0.3 0.3-460 409c-8.4 7.4-19.3 11.4-30.6 11.4z m-349.3 0C83.7 960 64 941.9 64 919.7c0-10.9 4.9-21.4 13.4-29L503.5 512 77.4 133.2c-8.6-7.5-13.4-17.8-13.4-29C64 82.1 83.7 64 107.9 64c11.5 0 22.4 4 30.6 11.3L594 480.2c10.7 7.7 16.8 19.2 16.8 31.6 0 10.4-4.3 20.2-12 27.6l-0.3 0.3-460.1 408.9c-8.3 7.4-19.2 11.4-30.5 11.4z",deny:"M321.8 540.6c-22.2 0.1-33.4-8.7-33.5-26.5-0.1-18.2 11-27.4 33.2-27.5l380.2-2.1c12.8-0.1 21.8 2.4 27.1 7.6 5.3 5.1 8 11.6 8 19.6 0 7.9-2.4 14.4-7.4 19.3s-14.1 7.4-27.5 7.5l-380.1 2.1zM512 120c216.5 0 392 175.5 392 392 0 78.5-23.1 151.5-62.8 212.8-0.6 12.9 6.4 24.8 17.8 30.2 10 4.7 22 3.6 31.3-2.9C934.4 682.7 960 600.3 960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c83.3 0 161.3-22.7 228.1-62.4 9.5-9.6 11.4-24.3 4.9-35.6-6-10.5-18.1-16.2-30.3-14.4C655.5 883.4 586.2 904 512 904c-216.5 0-392-175.5-392-392s175.5-392 392-392z",doc:"M646.4 960H243.2C182.9 960 128 903.8 128 842.1V291.9c0-29.4 11.8-59 32.5-81.3 21.4-23.1 49.2-35.8 78.4-35.8l23.9-0.6c0.3-29 12.6-56.6 34.7-77.7C319.2 75.9 348.4 64 377.6 64c3.2 0 319.3 0.9 322.6 0.9h3.4L896 289.6v442.5c0 61.7-54.9 117.9-115.1 117.9l-19.3-0.2c-0.2 29.2-12.5 56.8-34.9 78-21.8 20.4-51 32.2-80.3 32.2zM240.6 232.3c-23.3 0-56.6 35.1-56.6 59.6v550.2c0 10.9 8.1 26.2 20.6 39.1 12.8 13.2 27.6 21.4 38.6 21.4h403.3c19.1 0 44.5-25.7 46.3-52.9l-315.2 0.3c-60.3 0-115.2-56.2-115.2-117.9V231.7l-21.8 0.6z m124-110.9c-22.9 0-46.2 35.2-46.2 60.5v550.2c0 25.3 23.3 60.5 46.2 60.5h416.3c11 0 25.8-8.2 38.6-21.4 12.5-12.9 20.6-28.3 20.6-39.1V341.5h-86c-61.1 0-102.2-41.7-102.2-103.9 0-0.5-0.4-56.4 0-116.2H364.6z m335.6 536.3h-242c-19 0-34.5-15.9-34.5-35.3 0-19.5 15.5-35.3 34.5-35.3h242c19 0 34.5 15.9 34.5 35.3s-15.5 35.3-34.5 35.3z m0-137.4h-242c-19 0-34.5-15.9-34.5-35.3 0-19.5 15.5-35.3 34.5-35.3h242c19 0 34.5 15.9 34.5 35.3s-15.5 35.3-34.5 35.3z m7.6-310.2c0 26.1 23.7 74.6 46.2 74.6h64.3L707.8 149.2v60.9z",download:"M639.8 187.8H384.2v60.8h255.7v-60.8z m0-59.4H384.2v31.8h255.7v-31.8z m224.6 237.3H639.8v-87.3H384.2v87.3H161.8l349 340.1 353.6-340.1z m19.4 289.6l-30.7 151.2H170.8l-30.6-151.2H64v240.3h896V655.3h-76.2z",edit:"M835 298.7L685.5 154.2l74.8-72.3c24.8-23.9 64.9-23.9 89.6 0l59.8 57.8c24.8 24 24.8 62.8 0 86.8L835 298.7zM400.8 718.5L251.4 574l406.3-389.8 149.4 144.5-406.3 389.8zM131.3 837l90.9-234.9 148.2 143.3L131.3 837z m791.4 123H101.3C80.8 960 64 943.2 64 922.7c0-20.5 16.8-37.3 37.3-37.3h821.3c20.5 0 37.3 16.8 37.3 37.3 0.1 20.5-16.7 37.3-37.2 37.3z",eye:"M512 210c-203.6 0-376.8 124.8-448 302 71.2 177.2 244.4 302 448 302s376.8-124.8 448-302c-71.2-177.2-244.4-302-448-302z m0 503.4c-112 0-203.6-90.6-203.6-201.4S400 310.6 512 310.6 715.6 401.2 715.6 512 624 713.4 512 713.4z m0-322.2c-67.2 0-122.2 54.4-122.2 120.8s55 120.8 122.2 120.8S634.2 578.4 634.2 512s-55-120.8-122.2-120.8z","eye-off":"M512.1 289.6c112.4 0 203.8 90.6 203.8 202.2 0 26.2-5.2 51-14.6 74l119 118c61.6-51 110-116.8 139.8-192-70.6-177.4-244.5-303.1-448.3-303.1-57 0-111.6 10.2-162.2 28.2l88 87.4c23.1-9.3 48.1-14.7 74.5-14.7zM104.8 179.5l93 92.2 18.8 18.6C148.8 342.2 95.8 411.8 64 491.8c70.4 177.4 244.3 303.1 448.1 303.1 63.2 0 123.4-12.2 178.4-34l17.2 17 119.4 118 51.8-51.4-722.5-716.4-51.6 51.4z m225.1 223.3l63.2 62.6c-2 8.4-3.2 17.4-3.2 26.2 0 67 54.6 121.2 122.2 121.2 9 0 18-1.2 26.4-3.2l63.2 62.6c-27.2 13.4-57.4 21.4-89.6 21.4-112.4 0-203.8-90.6-203.8-202.2 0-31.6 8.2-61.4 21.6-88.6z m175.6-31.4l128.4 127.4 0.8-6.4c0-67-54.6-121.2-122.2-121.2l-7 0.2z",face:"M327.9 690.6c-6.5-3.9-12.4-11.6-12.4-19.7 0-12.3 9.9-22.2 22.2-22.2 2 0 3.7 0.6 5.5 1.1h0.5c51.5 23.7 108.7 36.1 169.1 36.1 59.5 0 115.8-12.7 166.7-35.7h0.2c2.4-0.8 4.9-1.5 7.6-1.5 12.3 0 22.4 10 22.4 22.4 0 8.5-4.7 15.8-11.6 19.6-56.4 25.7-118.8 40.6-184.8 40.6-65.7 0-129.2-15.3-185.4-40.7-0.3-0.1-0.2-0.1 0 0zM512 120c216.5 0 392 175.5 392 392 0 78.5-23.1 151.5-62.8 212.8-0.6 12.9 6.4 24.8 17.8 30.2 10 4.7 22 3.6 31.3-2.9C934.4 682.7 960 600.3 960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c83.3 0 161.3-22.7 228.1-62.4 9.5-9.6 11.4-24.3 4.9-35.6-6-10.5-18.1-16.2-30.3-14.4C655.5 883.4 586.2 904 512 904c-216.5 0-392-175.5-392-392s175.5-392 392-392zM394.6 391.6c0-25-20.3-45.3-45.3-45.3-25 0-45.3 20.3-45.3 45.3 0 25 20.3 45.3 45.3 45.3 25 0 45.3-20.3 45.3-45.3z m281.3-45.2c-25 0-45.3 20.3-45.3 45.3 0 25 20.3 45.3 45.3 45.3 25 0 45.3-20.3 45.3-45.3 0-25.1-20.3-45.3-45.3-45.3z","finger-print":"M156.2 411.2c-4.8 0-9.8-1.2-14.2-3.8-13.4-7.8-18-24.8-10.2-38.2C167.4 309.2 275.6 169 512 169c102.4 0 192.2 27.2 266.8 80.8 61.4 44 95.8 93.8 112.2 117.8 8.8 12.8 5.4 30-7.4 38.8-12.8 8.6-30.4 5.4-39.2-7.4-29.8-43.2-120.2-174.4-332.4-174.4-207.2 0-300.8 120.8-331.4 172.6-5.2 9.2-14.6 14-24.4 14zM631 960c12.6 0 24-8.4 27.4-21 3.8-14.8-5.2-30-20.4-33.8C501 870.8 443.8 729 439.4 717.8c-1.4-4.6-7.4-27.4-9.4-55.6-2-27-0.6-64.2 17.4-88 13.2-17.4 34.4-25.8 64.6-25.8 55 0 64.2 27.2 78.6 83.6 14 55 33.2 130.4 140 135.8 41 2 78-16.4 104-51.6 39-52.8 46.4-133.6 18.8-205.6-21.6-56.4-63.2-112.8-114-154.8-65.6-54-144.2-82.6-227.4-82.6-180 0-299.6 123.2-338.4 245.4C138 631.4 181.2 795 183 802c4 14.8 19.6 23.8 34.6 19.8 15-3.8 24-19.2 20-34-0.4-1.4-40.8-154.8-10-252.4 16.6-52.4 51.2-103.4 94.8-139.6C375 352.2 440.6 329 512 329c167.2 0 262 131.8 288.8 201.8 20.8 54 16 115.4-11.6 153-10.2 13.8-28.2 30-55.6 28.6-62.4-3.2-73.2-34.4-88.2-93.8-7.2-28.6-14.6-58.2-33-82.2-22.4-29.4-55-43.6-100.2-43.6-48.6 0-85.4 16.2-109.6 48-52.8 69.6-18.4 188.4-17 193.4l0.4 1.6c2.6 7.2 66.6 180.4 238 223.4 2.4 0.6 4.6 0.8 7 0.8z m-220-12.8c6.8 0 13.8-2.6 19-7.4 11.4-10.4 12-28.2 1.4-39.4-60.4-64-94.6-135.6-107.4-225.6-6.4-52.8 2.6-132.6 49-184.4 32.2-36 79-54.2 138.8-54.2 69.2 0 121.6 31.2 156 92.6 27.4 48.8 33 98.8 33 99.4 1.6 15.2 15.6 26.4 31 24.8s26.8-15.2 25.2-30.6c-0.2-2.4-6.6-60.6-38.8-119-44.4-80.4-115.6-123-206.2-123-76.6 0-137.6 24.6-181 73-58.8 65.6-70.8 161-62.6 228.4v0.6c14.6 101.8 53.4 183.2 122 256 5.6 5.8 13 8.8 20.6 8.8zM727 867c12.8 0 26.2-0.8 39.8-2.4 15.4-1.6 26.6-15.4 24.8-30.8-1.8-15.4-15.8-26.4-31.2-24.6-61.6 7-111.6-5-149-35.2-63.2-51.2-71.4-140.2-71.6-141.8-1.2-15.4-14.6-26.8-30.2-25.6s-27.2 14.6-26 30c0.4 4.6 9.6 113.4 91.6 180.2C616 850.2 667 867 727 867z m64.6-716c0 15.4-12.6 27.8-28.2 27.8-6.4 0-12.2-2-17-5.6l-0.4 0.4 0.2 0.2c-0.8-0.4-72.6-54-234.2-54s-233.4 53.4-234.2 54l0.2-0.2c-4.6 3.2-10.2 5.2-16.4 5.2-15.6 0-28.2-12.4-28.2-27.8 0-8.2 3.6-15.6 9.4-20.8 0 0 0.2 0 0.4-0.2 1-1 2.2-1.8 3.4-2.6C265 114.6 348.2 64 512 64c156 0 239 45.8 262.4 61.2 10.2 4.2 17.2 14.2 17.2 25.8z",fire:"M622.5 959.8c-29.2-27.3-63-64.1-77.5-99.5-35.2-86 0-170.6 0-170.6s-113.8 12-167.3 155c-15.6 41.7 4.2 84.7 27 115.4C245.3 918.4 129 787.8 129 632.8c0-85.6 69.4-139.2 128-199.1 33.8-34.5 64-170.6 64-170.6s49.6 59.6 64 142.2c19.3 111.3 0 142.2 0 142.2s94.4-64.9 96-199C482.7 197.2 385 64 385 64s223.5 111.6 279.9 255.2c67.1 171 40.1 342 40.1 342s65.6-38 96-85.3c33.5-52.1 32-113.7 32-113.7s62.5 92 64 170.6c2.9 154.7-115 285.2-274.5 327z",first:"M733.2 611.4c-4.8-10.3-18.1-15.2-29.8-10.8-11.6 4.3-17.2 16.3-12.4 26.6L771.9 801l-148.4-26.7c-9.1-1.6-18.5 1.9-23.7 8.9l-83.3 113.3-4.2 6.5-4.9-6.4L424.2 784c-5.1-6.9-14.5-10.4-23.7-8.6l-148.4 28.1 81.1-174.6c4.8-10.4-0.7-22.2-12.3-26.5-11.6-4.2-25 0.7-29.8 11.1l-97.6 210.2c-3.2 7-1.9 14.9 3.5 20.7 5.4 5.8 13.9 8.4 22.2 6.8L394.6 818l98.2 133c2.6 3.5 6.2 6.1 10.3 7.6 1.9 0.7 4 1.1 6.1 1.3 0.2 0 3.7 0.1 4.6 0.1h0.3c6.8-0.6 13-3.9 16.8-9.1L629.4 817l175.4 31.5c4.6 0.8 9.2 0.4 13.3-1.2 3.4-1.3 6.4-3.3 8.8-5.9 5.4-5.8 6.7-13.8 3.5-20.7l-97.2-209.3zM512 64c-156.9 0-284.5 127.6-284.5 284.5S355.1 632.9 512 632.9s284.5-127.6 284.5-284.5S668.9 64 512 64z m20.9 127.4v320.2h-42.8V284.3h-74.7v-31.9c27.6 0 46.9-3.5 57.8-10.5 12.4-8.2 21.9-25.1 28.2-50.6h31.5z",floppy:"M841.4 960H182.6c-30.1 0-54.6-28.4-54.6-63.4V127.4c0-34.9 24.5-63.4 54.6-63.4H728c6.3 0 12.5 3 16.9 8.1l144.2 168.5c4.4 5.1 6.8 11.9 6.8 19.1v637c0.1 34.9-24.4 63.3-54.5 63.3z m-69.9-54.4h69.8c4 0 7.3-4 7.3-9h4.6-4.6V270.8L718.1 118.4h-22.5v192.4c0 28.1-19.7 50.9-43.9 50.9H371.3c-24.2 0-43.9-22.8-43.9-50.9V118.4H182.6c-4 0-7.3 4-7.3 9v769.3c0 4.9 3.3 9 7.3 9h83.9v-271c0-79.1 55.3-143.5 123.3-143.5h258.4c68 0 123.3 64.4 123.3 143.5v270.9z m-457.6 0h410.3V634.7c0-49.1-34.1-89.1-75.9-89.1H389.8c-41.9 0-75.9 40-75.9 89.1v270.9z m284-128.7H426.1c-10.2 0-18.5-10.4-18.5-23.2 0-12.8 8.3-23.2 18.5-23.2h171.8c10.2 0 18.5 10.4 18.5 23.2 0 12.8-8.3 23.2-18.5 23.2z m0-80.6H426.1c-10.2 0-18.5-10.4-18.5-23.2 0-12.8 8.3-23.2 18.5-23.2h171.8c10.2 0 18.5 10.4 18.5 23.2 0 12.8-8.3 23.2-18.5 23.2z m5.3-389h45V118.4h-45v188.9z m-228.4 0h181.1V118.4H374.8v188.9z",fly:"M471.7 926.5h-57.9V728.6c0-16.6 3.4-39.9 29.6-72.3 13.7-16.9 285-330.6 383.7-444.7l-675 362.6 217.9 77-16.7 54.4-9.5-3.3c-9.6-3.3-236.2-81.6-258.3-91.9-12.9-6-21-17.9-21.5-31.8-0.6-16.6 9.2-32.2 26.3-41.7 26.9-15 765.6-403.4 809.7-426.6 4.6-3.8 22.3-17.2 41.3-11.4l1.2 0.4 1.1 0.7c18.5 11.5 16.9 28.5 16 38.7-0.2 2-0.4 3.9-0.4 5.3v2.5l-0.9 1.6c-5.1 16.6-50.8 251.5-84.3 423.4-27 138.8-43.9 225.1-46.5 235.5-3.8 20.4-14.1 36.9-28.5 45.2-11.7 6.7-25 7.7-38.6 2.8-25.3-6.2-242.8-78.3-252.2-81.4l-10-3.3 23.8-59 8.7 2.9c91.7 31 230.8 77.5 244.2 80.8h0.9c2.3-13.5 12.7-68.5 58.8-307.2 20.7-106.9 41.5-214.6 52.1-269.3C771 355.9 503.6 673 481 698.6c-5 9.3-9.3 17.6-9.3 29.9v198z","folder-open":"M107.6 845.9l10.9 1.2c1.3 0.1 2.6 0.2 3.9 0.2H783c14.3 0 27-9 30.7-21.9l120.9-417.9c2.6-9 0.6-18.3-5.5-25.7-6.1-7.3-15.2-11.5-25.2-11.5h-94.5v-43.2c0-17.3-15.2-31.4-33.9-31.4H375.3c-4.6 0-9-1.7-12.3-4.7l-54-50c-6.4-5.9-14.9-9.2-23.9-9.2H117.3c-18.7 0-33.8 14.1-33.8 31.4v552.6c0 14.2 10.2 26.2 24.1 30.1z m679.3 20.9H117.6C88 866.8 64 842.7 64 813.1V210.9c0-29.6 24-53.7 53.6-53.7h168.7c14.3 0 27.8 5.6 37.9 15.8l53.7 53.9h401.4c29.6 0 53.6 24.1 53.6 53.7v27.6h75.5c16.2 0 31.1 7.4 40.9 20.2 9.8 12.8 13 29.1 8.9 44.7L836.7 828.5c-6.1 22.5-26.5 38.3-49.8 38.3z m20-18.8H92.1c-5.2 0-9.9-2.4-13.1-6.5-3.1-4.1-4.1-9.3-2.8-14.3L207 334.6c1.9-7.2 8.5-12.3 15.9-12.3h714.8c5.2 0 10 2.4 13.1 6.5 3.1 4.1 4.1 9.3 2.8 14.3L822.8 835.8c-1.9 7.2-8.5 12.2-15.9 12.2zM83 804.5V203.6c0-10.2 8.3-18.5 18.4-18.5H280c4.9 0 9.6 1.9 13 5.4l57.5 58.1c6.8 6.9 15.8 10.6 25.5 10.6h426c10.2 0 18.4 8.3 18.4 18.5v50.1H235.5c-15.3 0-28.7 10.4-32.7 25.4L83 804.5zM119.5 213v413.2l74.3-279.8c6-22.5 26.3-38.3 49.5-38.3h530.1v-25.5h-398c-14.3 0-27.6-5.6-37.7-15.8L284.2 213H119.5z","folder-close":"M902.7 923.3h-776c-34.3 0-62.1-27.9-62.1-62.3V162.9c0-34.3 27.9-62.3 62.1-62.3h195.6c16.6 0 32.2 6.5 44 18.3l62.2 62.5h465.4c4.2 0.1 31.1 1 50.4 23.6 17.6 20.5 16.3 44.3 16 49v624.9c-6.9 26.2-30.6 44.4-57.6 44.4z m-607.9-452h332.4c7.1 0 12.8-5.2 12.8-11.7 0-6.5-5.7-11.7-12.8-11.7H294.8c-7.1 0-12.8 5.2-12.8 11.7 0 6.5 5.7 11.7 12.8 11.7z m0 128.3h434.4c7.1 0 12.8-5.2 12.8-11.7 0-6.5-5.7-11.7-12.8-11.7H294.8c-7.1 0-12.8 5.2-12.8 11.7 0 6.4 5.7 11.7 12.8 11.7z m0 128.1h434.4c7.1 0 12.8-5.2 12.8-11.7 0-6.5-5.7-11.7-12.8-11.7H294.8c-7.1 0-12.8 5.2-12.8 11.7 0 6.5 5.7 11.7 12.8 11.7z",get:"M958.3 414.3c-43.9-110.1-5.6-200.2 1.7-303.4-0.2-1.3-1-2.2-2.1-2.4-0.7-0.1-1.2 0.1-1.5 0.2-54.6 30.4-109.6 72.7-162.7 120.7l-62.9 60.4c-181 183.4-325.3 409.4-325.3 409.4L300.8 482.7c-0.1-0.2-0.8-1.1-2.1-1.2-0.7-0.1-1.2 0.1-1.5 0.3l-232 120.5c-1 1-1.4 2.3-1.1 3.5 0.3 1.1 1 1.7 1.3 1.9 101 41.4 251 175.1 351.6 306.7 0.6 0.9 1.6 1.3 2.6 1.1 1.2-0.2 1.7-1.3 1.7-1.4C483.6 795.9 691.6 588.4 840.5 482l59.1-38.5c22-12.7 41.3-21.6 57.1-25.8 0.3 0 0.9-0.2 1.3-0.7 0.6-0.7 0.7-1.8 0.3-2.7z",happy:"M699.7 960c-6.7 0-13.4-3-18-8.6-7.9-9.9-6.3-24.4 3.6-32.3 123.7-99 194.6-246.5 194.6-404.8 0-161-73-310.2-200.2-409.2-10-7.8-11.8-22.2-4-32.3 7.8-10 22.2-11.8 32.3-4C846.5 176.6 925.9 339 925.9 514.3c0 172.3-77.2 332.9-211.8 440.7-4.1 3.2-9.2 5-14.4 5zM207.9 347c60.6 0 109.8-49.2 109.8-109.8 0-60.6-49.1-109.8-109.8-109.8S98.1 176.6 98.1 237.3c0 60.6 49.1 109.7 109.8 109.7z m0 547.6c60.6 0 109.8-49.2 109.8-109.8 0-60.6-49.1-109.8-109.8-109.8-60.6 0-109.8 49.2-109.8 109.8 0 60.7 49.1 109.8 109.8 109.8z",headset:"M876.3 478.9v-4.8c0-195.2-148.2-354.1-330.4-354.1h-67.8c-182.2 0-330.4 158.8-330.4 354.1v4.8C99.8 490.7 64 536.7 64 591.6v196.7C64 852.2 112.3 904 171.9 904c59.6 0 107.9-51.8 107.9-115.7V591.6c0-55-35.8-101-83.7-112.7v-4.8c0-166.6 126.5-302.2 282-302.2h67.8c155.5 0 282 135.6 282 302.2v4.8c-47.9 11.8-83.7 57.8-83.7 112.7v196.7c0 63.9 48.3 115.7 107.9 115.7 59.6 0 107.9-51.8 107.9-115.7V591.6c0-54.9-35.8-100.9-83.7-112.7z",home:"M837.2 960H620.4c-18.2 0-33.1-15.1-33.1-33.6V693H436.7v233.3c0 18.5-14.8 33.6-33.1 33.6H186.8c-18.2 0-33.1-15.1-33.1-33.6v-356c0-18.5 14.8-33.6 33.1-33.6 18.2 0 33.1 15.1 33.1 33.6v322.3h150.7V659.4c0-18.5 14.8-33.6 33.1-33.6h216.8c18.2 0 33.1 15.1 33.1 33.6v233.3h150.7V570.4c0-18.5 14.8-33.6 33.1-33.6 18.2 0 33.1 15.1 33.1 33.6v356c-0.3 18.5-15.1 33.6-33.3 33.6zM97 557.1c-8.9 0-17.2-3.5-23.5-10-12.7-13-12.7-34.3 0-47.3L488.5 74c6.3-6.4 14.6-10 23.5-10s17.2 3.5 23.5 10l415 425.9c12.7 13.1 12.7 34.3 0 47.3-6.3 6.4-14.6 10-23.5 10s-17.2-3.5-23.5-10L512 145.4 120.5 547.2c-6.3 6.4-14.6 9.9-23.5 9.9z m710.5-258.3c-18.2 0-33.1-15.1-33.1-33.6v-55.4h-53.7c-18.2 0-33.1-15.1-33.1-33.6s14.8-33.6 33.1-33.6h86.7c18.2 0 33.1 15.1 33.1 33.6v89c0 18.5-14.8 33.6-33 33.6z",image:"M915.1 280.3l-165-8-9.6-107.6c-2-22.6-22.2-38.4-45.8-36.6l-591.8 48.6c-23.6 2-40.6 21-38.8 43.4l42.4 471.6c2 22.6 22.4 38.4 45.8 36.6l30-2.4-4.8 91.6c-1.2 25.2 18.4 45.6 44.8 47l660.2 31.4c26.4 1.2 48.2-17.2 49.6-42.4l27.8-526.6c1.2-25-18.6-45.4-44.8-46.6z m-709.8 10.6l-14.2 269.6-35 49.4-32.2-356v-2c2-10 8.8-18 19.2-18.8l522-42.8c10.4-0.8 19.4 6 21 15.8 0 0.4 0.6 0.4 0.6 0.8 0 0.2 0.6 0.4 0.6 0.8l5.4 61.6-438-21c-26.4-0.8-48.2 17.6-49.4 42.6z m668 473.8l-169.6-199-74.8 68.6-138.4-161.6-245.4 261.4 20.8-398.2v-0.8c2-10.8 12.4-18.6 23.8-18l582.4 28c11.6 0.6 20.6 9.4 20.8 20.4 0 0.4 0.6 0.6 0.6 1l-20.2 398.2z",info:"M475.2 251.1c0-10.3 3.6-19.1 10.7-26.4 7.1-7.3 16.2-11 27-11 10.4 0 19.1 3.7 26.3 11 7.1 7.3 10.7 16.1 10.7 26.4 0 10.3-3.6 19.1-10.7 26.4-7.2 7.3-15.9 11-26.3 11-10.9 0-19.9-3.7-27-11-7.1-7.4-10.7-16.2-10.7-26.4z m66.7 526.4c0 22.2-9.2 33.4-27.7 33.4-18.9 0-28.4-11.1-28.4-33.4V397.2c0-12.8 2.7-21.8 8-27.1 5.3-5.3 12.1-7.9 20.4-7.9 8.2 0 14.9 2.5 20 7.5s7.6 14.2 7.6 27.5v380.3zM512 120c216.5 0 392 175.5 392 392 0 78.5-23.1 151.5-62.8 212.8-0.6 12.9 6.4 24.8 17.8 30.2 10 4.7 22 3.6 31.3-2.9C934.4 682.7 960 600.3 960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c83.3 0 161.3-22.7 228.1-62.4 9.5-9.6 11.4-24.3 4.9-35.6-6-10.5-18.1-16.2-30.3-14.4C655.5 883.4 586.2 904 512 904c-216.5 0-392-175.5-392-392s175.5-392 392-392z",key:"M497.4 443.1C466.8 356.5 378.7 288 281.5 288 158.3 288 64 388.8 64 512s98.6 224 221.8 224c97.1 0 181.1-68.5 211.5-155.1h221.4v137.8h148.8V580.9H960V443.1H497.4zM287.9 608.9c-52.9 0-96.1-43.2-96.1-96.1s43.2-96.1 96.1-96.1 96.1 43.2 96.1 96.1-43.2 96.1-96.1 96.1z",layout:"M909.9 851.2H114.1c-27.6 0-50.1-22.3-50.1-49.8V222.6c0-27.4 22.5-49.8 50.1-49.8h795.7c27.6 0 50.1 22.3 50.1 49.8v578.9c0.1 27.4-22.4 49.7-50 49.7zM384 783.5h256v-544H384v544z m-253.4-544c-1.4 0-2.6 1.2-2.6 2.6v538.4c0 1.4 1.3 2.6 2.6 2.6 63.1 0.1 126.2 0.3 189.4 0.4V240.4l-189.4-0.9z m573.4 0.9v543.1c63.1-0.1 126.2-0.3 189.4-0.4 1.4 0 2.6-1.2 2.6-2.6V242.1c0-1.4-1.3-2.6-2.6-2.6l-189.4 0.9z",left:"M710.9 948.6L251 539.7l-0.3-0.3c-7.7-7.4-12-17.2-12-27.6 0-12.4 6.1-23.9 16.8-31.6L710.9 75.3C719.1 68 730 64 741.5 64c24.2 0 43.9 18.1 43.9 40.3 0 11.1-4.8 21.4-13.4 29L345.8 512 772 890.8c8.5 7.6 13.4 18.1 13.4 29 0 22.2-19.7 40.3-43.9 40.3-11.4-0.1-22.2-4.1-30.6-11.5z",linux:"M460.4 269.5c-3.6 0.3-6.1 2.1-7.6 5.2-1.5 3.2-2.9 4.7-4.2 4.7-1.6 0.3-2.4-0.5-2.4-2.5 0-4 3.1-6.5 9.3-7.5h4.9z m42.7 7c-1.3 0.3-3.2-0.7-5.7-3.3-2.4-2.5-5.3-3.3-8.6-2.2 7.8-3.7 13.1-3.3 15.7 1 1 2 0.5 3.5-1.4 4.5zM330.8 489.9c-1.3-0.3-2.3 0.2-3 1.5-0.6 1.3-1.4 3.4-2.2 6.2-0.8 2.8-1.7 5.1-2.7 6.8-1 1.7-2.6 3.8-4.9 6.5-2.3 3.3-2.4 5.3-0.5 6 1.3 0.3 3.4-0.8 6.1-3.5 2.8-2.7 4.8-5.7 6.1-9 0.3-1 0.7-2.2 1-3.5 0.3-1.3 0.6-2.3 1-3 0.3-0.7 0.6-1.4 0.7-2.2 0.1-0.8 0.2-1.5 0.3-2v-1.5l-0.5-1.2c-0.3-0.9-0.8-1.2-1.4-1.1z m419.5 179.5c0-6-9-13-27-21 1.3-5 2.5-9.6 3.7-13.8 1.1-4.2 1.9-8.5 2.4-13s1-8.1 1.5-10.8c0.5-2.7 0.6-6.4 0.3-11.3-0.3-4.8-0.5-8.1-0.5-9.8 0-1.7-0.6-5.4-1.7-11-1.1-5.7-1.8-9.1-2-10.2-0.2-1.2-1-5.3-2.4-12.5s-2.3-11.6-2.7-13.2c-3.3-16-10.9-33.2-23-51.5-12.1-18.3-23.9-30.8-35.3-37.5 7.8 6.7 17.2 20.5 28 41.5 28.4 54 37.3 100.3 26.5 139-3.6 13.3-11.8 20.3-24.5 21-10.1 1.3-16.4-1.7-18.9-9.2-2.5-7.5-3.8-21.4-3.9-41.8-0.1-20.3-2-38.2-5.7-53.5-3-13-6.1-24.5-9.6-34.5-3.4-10-6.6-17.6-9.6-22.7-3-5.2-5.5-9.2-7.6-12.3-2.1-3-4.2-5.5-6.4-7.5-2.1-2-3.4-3.1-3.7-3.5-4.6-20.7-9.7-37.8-15.2-51.5-5.6-13.7-10.4-23-14.5-28s-7.9-10.5-11.5-16.5c-3.6-6-6-12.7-7.3-20-1.3-7-0.3-15.9 3-26.7 3.3-10.8 4-19.1 2.2-24.7-1.8-5.7-9.1-9.8-21.8-12.5-4.9-1-12.2-4-21.8-9-9.7-5-15.5-7.7-17.4-8-2.6-0.3-4.4-4.7-5.4-13s0.3-16.8 3.9-25.5 9.5-13.2 17.6-13.5c12.1-1 20.4 4 25 15 4.6 11 5.2 20.7 2 29-3.6 6.3-3.9 10.8-1 13.2 3 2.5 7.9 2.6 14.7 0.3 4.2-1.3 6.4-7.3 6.4-18v-18.5c-1.6-10-3.8-18.3-6.6-25-2.8-6.7-6.2-11.7-10.3-15.3-4.1-3.5-7.9-6-11.5-7.5-3.6-1.5-8-2.7-13.3-3.7-35 2.7-49.6 25-43.7 67 0 5-0.2 7.5-0.5 7.5-3-3-7.8-4.8-14.5-5.2-6.7-0.5-12.1-0.4-16.2 0.3s-6.6-0.2-7.6-2.5c0.3-19-2.3-34-7.8-45-5.6-11-12.9-16.7-22.1-17-8.8-0.3-15.6 4.2-20.3 13.8-4.7 9.5-7.4 19.4-8.1 29.8-0.3 5 0.2 11.2 1.7 18.5 1.5 7.3 3.6 13.6 6.4 18.8 2.8 5.2 5.3 7.4 7.6 6.8 3.3-1 5.9-3.3 7.8-7 1.3-3 0.2-4.3-3.4-4-2.3 0-4.8-2.4-7.6-7.3-2.8-4.8-4.3-10.4-4.6-16.7-0.3-7.3 1.1-13.5 4.4-18.5 3.3-5 8.8-7.3 16.7-7 5.6 0 10 3.5 13.3 10.5 3.3 7 4.8 13.5 4.6 19.5-0.2 6-0.4 9.7-0.7 11-7.2 5-12.3 9.8-15.2 14.5-2.6 4-7.1 7.9-13.5 11.7-6.4 3.8-9.7 5.9-10.1 6.2-4.2 4.7-6.8 9.2-7.6 13.5-0.8 4.3 0.4 7.3 3.7 9 4.6 2.7 8.7 5.9 12.3 9.8 3.6 3.8 6.2 7 7.8 9.5 1.6 2.5 4.7 4.7 9.1 6.5 4.4 1.8 10.2 2.9 17.4 3.3 15.4 0.7 32.1-1.8 50.1-7.5 0.7-0.3 4.4-1.5 11.3-3.5s12.5-3.7 16.9-5.2c4.4-1.5 9.2-3.7 14.5-6.5 5.2-2.8 8.7-5.7 10.3-8.7 3-4.7 6.2-6 9.8-4 1.6 1 2.7 2.4 3.2 4.3 0.5 1.8 0 3.8-1.5 6s-4.2 3.7-8.1 4.7c-6.6 2-15.8 5.6-27.7 10.8-11.9 5.2-19.4 8.4-22.3 9.8-14.4 6.3-25.9 10.2-34.4 11.5-8.2 1.7-21.1 1.3-38.7-1-3.3-0.7-4.7-0.3-4.4 1 0.3 1.3 3.1 4.5 8.4 9.5 8.2 7.7 19.1 11.3 32.9 11 5.6-0.3 11.4-1.5 17.6-3.5 6.2-2 12.1-4.3 17.6-7 5.6-2.7 11-5.6 16.4-8.7 5.4-3.1 10.3-6 14.7-8.5 4.4-2.5 8.4-4.5 12-6 3.6-1.5 6.4-1.9 8.6-1.3 2.1 0.6 3.5 2.5 4.2 5.5 0 0.7-0.2 1.4-0.5 2.2-0.3 0.8-1 1.7-2 2.5s-2 1.6-3 2.2c-1 0.7-2.4 1.5-4.2 2.5-1.8 1-3.3 1.7-4.4 2.2-1.2 0.5-2.8 1.3-4.9 2.5-2.1 1.2-3.7 1.9-4.6 2.2-9.2 4.7-20.2 12-33.1 22-12.9 10-23.8 17.2-32.6 21.5-8.8 4.3-16.8 4.5-24.1 0.5-6.9-3.7-17.2-15.8-30.9-36.5-7.2-10.3-11.3-14-12.3-11-0.3 1-0.5 2.7-0.5 5 0 8.3-2.4 17.8-7.3 28.3s-9.7 19.7-14.5 27.7c-4.7 8-8.2 17.7-10.3 29-2.1 11.3-0.2 21.8 5.7 31.5-7.5 2-17.7 17-30.7 45-12.9 28-20.7 51.5-23.3 70.5-0.7 6-0.9 17.5-0.7 34.5 0.2 17-0.7 26.8-2.7 29.5-2.6 8-7.4 8.5-14.2 1.5-10.5-10.3-16.4-26-17.6-47-0.7-9.3 0-18.7 2-28 1.3-6.3 1.2-9.3-0.5-9l-2 2.5c-11.8 21.7-10.1 49.3 4.9 83 1.6 4 5.7 8.7 12.3 14 6.5 5.4 10.5 8.7 11.8 10 6.6 7.7 23.6 22.7 51 45.2 27.5 22.5 42.7 35.3 45.6 38.2 5.2 5 8.1 11.3 8.6 19 0.5 7.7-1.8 14.8-6.9 21.5-5.1 6.7-12.5 10.5-22.3 11.5 2.6 5 7.4 12.4 14.2 22.2 6.9 9.8 11.4 18.8 13.8 27 2.3 8.2 3.4 19.9 3.4 35.3 15.1-8 16.2-23.3 3.4-46-1.3-2.7-3-5.3-5.1-8-2.1-2.7-3.7-4.7-4.6-6-1-1.3-1.3-2.3-1-3 1-1.7 3.1-3.2 6.4-4.7 3.3-1.5 6.5-1.1 9.8 1.3 15.1 17.3 42.2 23.3 81.5 18 43.5-5 72.5-19.5 86.9-43.5 7.5-12.7 13.1-17.7 16.7-15 3.9 2 5.5 10.7 4.9 26-0.3 8.3-4.1 23.7-11.3 46-3 7.7-3.9 13.9-3 18.8 1 4.8 4.9 7.4 11.8 7.7 1-6.3 3.4-19.2 7.1-38.5 3.8-19.3 6-34.3 6.6-45 0.6-7-0.4-19.2-3.2-36.7-2.8-17.5-4-33.7-3.7-48.5 0.3-14.8 4.1-26.6 11.3-35.3 4.9-6 13.2-9 25-9 0.3-12.3 6-21.2 16.9-26.5 10.9-5.3 22.8-7.1 35.6-5.2 12.4 1.6 22.2 5.4 29 10.9zM442.2 256c1-5.7 0.6-10.7-1.2-15-1.8-4.3-3.7-6.8-5.7-7.5-3-0.7-4.4 0.5-4.4 3.5 0.6 1.7 1.5 2.7 2.4 3 3.3 0 4.4 2.5 3.4 7.5-1 6.7 0.3 10 3.9 10 1.1 0 1.6-0.5 1.6-1.5z m205.6 98.4c-0.6-2.7-1.7-4.6-3.2-5.8-1.5-1.2-3.6-2-6.4-2.5-2.8-0.5-5.1-1.4-7.1-2.8-1.6-1-3.2-2.3-4.7-4-1.5-1.7-2.6-3-3.4-4-0.8-1-1.7-2.1-2.7-3.3-1-1.2-1.6-1.8-2-2-0.3-0.2-1 0.1-2 0.7-4.6 5.3-3.4 12.6 3.4 21.8 6.9 9.2 13.2 14.4 19.1 15.7 3 0.3 5.3-1 7.1-4 1.9-2.8 2.5-6.2 1.9-9.8zM560.5 248c0-3.7-0.8-6.9-2.4-9.8-1.6-2.8-3.4-4.9-5.4-6.2-2-1.3-3.4-1.8-4.4-1.5-4.6 0.3-5.7 1.5-3.4 3.5l2 1c4.6 1.3 7.5 6.5 8.8 15.5 0 1 1.3 0.7 3.9-1l0.9-1.5zM587 131.5c0-0.7-0.4-1.5-1.2-2.5-0.8-1-2.3-2.2-4.4-3.5-2.1-1.3-3.7-2.3-4.6-3-4.9-5-8.8-7.5-11.8-7.5-3 0.3-4.8 1.6-5.7 3.7-0.8 2.2-1 4.3-0.5 6.5s0.4 4.3-0.3 6.2c-0.3 1.3-1.3 3.1-3 5.2-1.6 2.2-2.6 3.7-3 4.5-0.3 0.9 0.2 2.3 1.5 4.3 1.3 1 2.6 1 3.9 0 1.3-1 3.1-2.5 5.4-4.5 2.3-2 4.8-3.5 7.4-4.5 0.3-0.3 1.8-0.5 4.4-0.5 2.6 0 5.1-0.3 7.3-1 2.4-0.6 3.9-1.8 4.6-3.4z m277.2 670.4c6.5 4 11.6 8.1 15.2 12.3 3.6 4.2 5.5 8.2 5.9 12 0.3 3.8-0.1 7.6-1.2 11.3-1.2 3.7-3.7 7.4-7.6 11-3.9 3.6-7.8 6.9-11.5 9.8-3.8 2.9-8.7 5.9-14.7 9.2-6 3.3-11.2 6.1-15.4 8.3-4.3 2.2-9.5 4.8-15.7 7.7-6.2 3-10.6 5.1-13.3 6.5-12.4 6.3-26.4 15.7-42 28-15.5 12.3-27.9 23-37.1 32-5.6 5.3-16.7 8.6-33.3 9.8-16.7 1.2-31.2-1.2-43.7-7.3-5.9-3-10.7-6.9-14.5-11.7-3.8-4.8-6.5-9.1-8.1-12.7-1.6-3.7-5.2-6.9-10.8-9.8-5.6-2.8-13.3-4.4-23-4.7-14.4-0.3-35.7-0.5-63.8-0.5-6.2 0-15.5 0.2-28 0.7-12.4 0.5-21.9 0.9-28.4 1.3-14.4 0.3-27.4 2.8-39 7.5-11.6 4.6-20.3 9.7-26.2 15-5.9 5.4-13 10.1-21.4 14.2-8.3 4.1-17.1 6.1-26.2 5.8-9.5-0.3-27.6-5.5-54.4-15.5-26.8-10-50.7-17.2-71.6-21.5-6.2-1.3-14.6-2.9-25-4.7-10.5-1.8-18.6-3.3-24.5-4.5-5.9-1.2-12.3-2.8-19.4-4.7-7-2-12.5-4.4-16.4-7.3-3.9-2.9-6.7-6.1-8.4-9.8-3.3-7.7-2.1-18.7 3.4-33.2 5.5-14.5 8.5-23.6 8.8-27.3 0.3-5.3-0.3-12-2-20s-3.3-15.1-4.9-21.2c-1.6-6.2-2.3-12.2-2.2-18.2 0.1-6 1.9-10.5 5.1-13.5 4.6-4 13.9-6.3 28-7 14.1-0.7 23.9-2.7 29.5-6 9.8-6 16.7-11.8 20.6-17.5 3.9-5.7 5.9-14.2 5.9-25.5 6.9 24.3 1.6 42-15.7 53-10.5 6.7-24 9.2-40.7 7.5-11.1-1-18.1 0.7-21.1 5-4.2 5-3.4 14.5 2.4 28.5 0.7 2 2 5 3.9 9 2 4 3.4 7 4.2 9 0.8 2 1.6 4.8 2.2 8.5 0.7 3.7 0.8 7.3 0.5 11 0 5-2.8 13.2-8.4 24.5-5.6 11.3-7.9 19.3-6.9 24 1 5.7 7 10 18.1 13 6.5 2 20.4 5.1 41.4 9.2 21.1 4.2 37.4 7.6 48.8 10.2 7.8 2 20 5.7 36.3 11 16.4 5.3 29.8 9.2 40.5 11.5 10.6 2.3 19.7 3 27.2 2 14.1-2 24.6-6.7 31.7-14 7-7.3 10.8-15.3 11.3-24s-0.7-18.4-3.7-29.2c-2.9-10.8-6-19.5-9.3-26s-6.6-12.6-9.8-18.2c-39.6-63.3-67.2-103.7-82.9-121-22.2-24.7-40.7-31.3-55.5-20-3.6 3-6 0.5-7.3-7.5-1-5.3-1.3-11.7-1-19 0.3-9.7 2-18.3 4.9-26 2.9-7.7 6.9-15.5 11.8-23.5s8.5-15 10.8-21c2.6-7 7-19 13-36s10.9-30 14.5-39c3.6-9 8.5-19.2 14.7-30.5 6.2-11.3 12.6-20.3 19.1-27 36-47.7 56.3-80.2 60.8-97.5-3.9-37.3-6.5-89-7.8-155-0.6-30 3.3-55.2 11.8-75.7s25.8-37.9 52-52.2c12.7-7 29.8-10.5 51-10.5 17.3-0.3 34.7 1.9 52 6.7 17.3 4.8 31.9 11.8 43.7 20.7 18.7 14 33.6 34.2 44.9 60.7 11.3 26.5 16.1 51.1 14.5 73.8-1.6 31.7 3.3 67.3 14.7 107 11.1 37.7 32.9 74 65.2 109 18 19.7 34.3 46.8 48.8 81.5 14.6 34.7 24.3 66.5 29.2 95.5 2.6 16.3 3.4 30.4 2.4 42.2-1 11.8-2.9 21.1-5.9 27.7-2.9 6.7-6.2 10.3-9.8 11-3.3 0.7-7.1 3.8-11.5 9.5s-8.8 11.6-13.3 17.8c-4.4 6.2-11 11.7-19.9 16.7-8.8 5-18.8 7.3-29.9 7-5.9-0.3-11-1.2-15.4-2.5s-8.1-3.6-11.1-6.7c-3-3.2-5.2-5.8-6.6-7.7-1.5-2-3.3-5.4-5.7-10.2-2.3-4.8-3.8-8.1-4.4-9.8-7.2-12.3-13.9-17.3-20.1-15-6.2 2.3-10.8 10.5-13.8 24.5s-1.8 30.2 3.4 48.5c6.6 23.3 6.7 55.8 0.5 97.5-3.3 21.7-0.3 38.4 8.8 50.2 9.1 11.8 21.1 17.3 35.8 16.5 14.7-0.8 28.6-6.7 41.7-17.8 19.3-16.3 33.9-27.4 43.9-33.2 10-5.8 26.9-12.9 50.8-21.2 17.3-6 29.9-12.1 37.8-18.2s10.9-11.9 9.1-17.2c-1.8-5.3-5.9-10.1-12.3-14.2-6.4-4.2-14.8-8.1-25.3-11.7-10.8-3.7-18.9-11.7-24.3-24-5.4-12.3-7.8-24.4-7.3-36.3 0.5-11.8 3-19.8 7.6-23.7 0.3 10.3 1.6 19.7 3.9 28.3 2.3 8.5 4.7 15.3 7.1 20.3 2.5 5 5.8 9.7 10 14.2s7.7 7.7 10.3 9.5c2.6 1.8 6.2 4 10.5 6.5 4.4 2.5 7.1 4.1 8.1 4.7l0.4-0.5z",live:"M869.8 898.8c0 15.6-10.6 28.2-23.6 28.2H177.8c-13 0-23.6-12.7-23.6-28.2 0-15.6 10.6-28.2 23.6-28.2h668.4c13-0.1 23.6 12.6 23.6 28.2zM960 146.4v575.2c0 27.2-26.7 49.4-59.5 49.4h-777C90.7 771 64 748.8 64 721.6V146.4C64 119.2 90.7 97 123.5 97h777.1c32.7 0 59.4 22.2 59.4 49.4z m-52.6 13.3c0-5.7-6.5-10.5-14.1-10.5H132.6c-7.7 0-14.1 4.8-14.1 10.5v549c0 5.7 6.5 10.5 14.1 10.5h760.7c7.7 0 14.1-4.8 14.1-10.5v-549zM486.7 613.8c0.2 0.2 1.4 1.3 3.3 1.2 1.6-0.1 2.7-1 2.9-1.3l243.7-299.1c0.1-0.1 1.6-1.5 1.3-3.6-0.2-1.6-1.4-2.4-1.6-2.6l-43.6-38.1c-0.2-0.2-1.7-1.6-3.8-1.2-1.9 0.3-2.9 1.7-3 1.9L484 522 348 380.6c-0.4-0.2-1.1-0.5-2-0.6-1.4-0.1-2.5 0.3-3 0.6l-38.9 38.9c-0.3 0.4-0.9 1.2-1.1 2.5-0.2 1.8 0.6 3.1 0.9 3.4l182.8 188.4z",load:"M587.6 587.9c25.3-25.3 202.5 88.6 234.2 120.2 31.7 31.6 38 88.5 6.4 120.1-31.6 31.6-82.2 31.6-113.9-0.1-31.7-31.6-152-215-126.7-240.2zM436 434.8c-25.3 25.3-202.5-88.6-234.2-120.2-31.7-31.6-38-88.5-6.4-120.1 31.6-31.6 82.2-31.6 113.9 0.1 31.7 31.6 152 214.9 126.7 240.2z m-31.8 77.7c0 35.7-205.9 80.4-250.7 80.4-44.8 0-89.5-35.7-89.5-80.4s35.8-80.4 80.6-80.4c44.7 0 259.6 44.7 259.6 80.4z m31.9 76.8c25.3 25.3-88.7 202.3-120.3 233.9-31.7 31.6-88.6 38-120.2 6.4-31.6-31.6-31.6-82.2 0-113.8 31.7-31.6 215.2-151.8 240.5-126.5z m75.9 30.9c35.8 0 80.5 205.7 80.5 250.4 0 44.7-35.8 89.4-80.5 89.4s-80.5-35.8-80.5-80.5 44.7-259.3 80.5-259.3z m107.8-107.7c0-35.7 205.9-80.4 250.7-80.4 44.8 0 89.5 35.7 89.5 80.4s-35.8 80.4-80.6 80.4c-44.7 0-259.6-44.7-259.6-80.4z m-33.6-75.9c-25.3-25.3 88.7-202.3 120.3-233.9 31.7-31.6 88.6-38 120.2-6.4 31.6 31.6 31.6 82.1-0.1 113.8-31.6 31.6-215.1 151.8-240.4 126.5zM512 403.8c-35.8 0-80.5-205.7-80.5-250.4 0-44.7 35.8-89.4 80.5-89.4s80.5 35.8 80.5 80.5-44.7 259.3-80.5 259.3z",loading:'',location:"M511.9 960h-0.1c-16.2-0.1-31.7-8.2-42.3-22.3-7.7-10-78-101.2-147.4-212.6C230 577.4 183.3 465.5 183.3 392.7 183.3 211.5 330.8 64 512 64s328.7 147.5 328.7 328.7c0 72.9-46.8 185-139.1 333.1-69.2 111-139.1 201.8-147.1 212.1-10.6 14.1-26 22.2-42.3 22.2l-0.3-0.1z m0.1-845.4c-153.3 0-278.1 124.8-278.1 278.1 0 63.9 47.2 172.4 136.4 313.9C439.9 816.9 508.9 906 509.6 906.8l0.2 0.3c1.1 1.4 1.9 2 2.3 2.2 0.4-0.2 1.1-0.8 2.1-2.1l0.1-0.1c2.8-3.6 275.8-357.8 275.8-514.4 0-153.3-124.8-278.1-278.1-278.1z m0.2 346.2c-55.1 0-99.9-44.8-99.9-99.9 0-55.1 44.8-99.9 99.9-99.9 55.1 0 99.9 44.8 99.9 99.9-0.1 55.1-44.9 99.9-99.9 99.9z m0-149.1c-27.2 0-49.3 22.1-49.3 49.3 0 27.2 22.1 49.3 49.3 49.3 27.2 0 49.3-22.1 49.3-49.3-0.1-27.2-22.2-49.3-49.3-49.3z",lock:"M811.1 960H212.9c-47.3 0-85.7-37.7-85.7-84V473.7c0-46.3 38.5-84 85.7-84h43.9l-0.5-77.1c0-66.2 26.5-128.6 74.6-175.7C379 89.9 442.7 64 510.2 64c67.6 0 131.3 25.9 179.4 72.9 48.1 47.1 74.6 109.4 74.6 175.6l-0.5 77.2h47.4c47.3 0 85.7 37.7 85.7 84V876c0 46.3-38.4 84-85.7 84zM208.9 447.1c-14.8 0-26.8 11.7-26.8 26.1v407.7c0 14.4 12 26.1 26.8 26.1h606.3c14.8 0 26.8-11.7 26.8-26.1V473.2c0-14.4-12-26.1-26.8-26.1H208.9z m301.9 346.3c-17.2 0-31.2-12.8-31.2-28.5V664.3c-22.4-11.4-36.7-34.2-36.7-59.1 0-36.7 30.5-66.5 67.9-66.5s67.9 29.9 67.9 66.5c0 24.9-14.3 47.7-36.7 59.1v100.6c0 15.7-14 28.5-31.2 28.5zM313.4 388.1H706l1.6-78.4c0-51.2-20.6-99.5-58-136-37.4-36.6-86.9-56.7-139.4-56.7s-102 20.1-139.4 56.7c-37.4 36.6-58 84.9-58 136.2l0.6 78.2z",mail:"M960 280.9v472.3c0 37.9-31 68.9-68.9 68.9H132.9c-37.9 0-68.9-31-68.9-68.9V280.9c0-3.9 4.5-5.8 7.3-3l232 236.1c1.5 1.7 1.5 4.3 0 6L141.1 692.7c-11 11-11 28.6 0 39.6 5.4 5.4 12.7 8.2 19.8 8.2s14.4-2.8 19.8-8.2l161.5-172.1c1.7-1.7 4.5-1.7 6.2 0l37.9 38.6c33.4 33.8 78.6 53.8 126.2 53.6 47-0.2 90.7-18.7 123.6-52.1l39.4-40.1c1.7-1.7 4.5-1.7 6.2 0l161.5 172.1c5.4 5.4 12.7 8.2 19.8 8.2s14.4-2.8 19.8-8.2c11-11 11-28.6 0-39.6L720.9 520c-1.7-1.7-1.7-4.3 0-6l231.8-236.1c2.6-2.6 7.3-0.9 7.3 3zM512 596.2c31.9 0 61.8-12.5 84.2-35.3l337.9-344c-11.8-9.5-26.5-15.1-42.6-15.1H132.7c-16.2 0-31 5.6-42.6 15.1l337.9 344c22.2 22.6 52.1 35.3 84 35.3z",menu:"M905 960H635.1c-30.3 0-55-24.7-55-55V635.1c0-30.3 24.7-55 55-55H905c30.3 0 55 24.7 55 55V905c0 30.3-24.7 55-55 55z m-516.1 0H119c-30.3 0-55-24.7-55-55V635.1c0-30.3 24.7-55 55-55h269.9c30.3 0 55 24.7 55 55V905c-0.1 30.3-24.7 55-55 55z m-263.4-61.2h258v-258h-258v258z m514.8-2.8h258V638h-258v258zM905 443.8H635.1c-30.3 0-55-24.7-55-55V119c0-30.3 24.7-55 55-55H905c30.3 0 55 24.7 55 55v269.9c0 30.3-24.7 54.9-55 54.9z m-516.1 0H119c-30.3 0-55-24.7-55-55V119c0-30.3 24.7-55 55-55h269.9c30.3 0 55 24.7 55 55v269.9c-0.1 30.3-24.7 54.9-55 54.9z m-263.4-61.1h258v-258h-258v258z","menu-dot":"M157.6 605.5c-51.6 0-93.5-41.9-93.5-93.5s41.9-93.5 93.5-93.5 93.5 41.9 93.5 93.5-41.9 93.5-93.5 93.5z m708.8 0c-51.6 0-93.5-41.9-93.5-93.5s41.9-93.5 93.5-93.5 93.5 41.9 93.5 93.5-42 93.5-93.5 93.5z m-354.3 0c-51.6 0-93.5-41.9-93.5-93.5s41.9-93.5 93.5-93.5 93.5 41.9 93.5 93.5-41.9 93.5-93.5 93.5z",mute:"M505.7 913.5c-18.9 0-39.5-9.5-59-27.7L257.2 705H141.4C92.2 705 64 676.8 64 627.7V396c0-49.9 27.5-77.4 77.4-77.4h115.9L446.7 138c26.5-24.8 56.4-33.5 80.1-23.2 25.1 10.9 39.4 40.7 39.4 82v630.1c0 41.4-14.4 71.4-39.5 82.3-6.7 2.8-13.7 4.3-21 4.3zM164.5 380.7c-29.8 0-38.5 8.6-38.5 38.5v185.3c0 30.6 7.9 38.5 38.5 38.5h126.7l2.3 2.5c80.5 85.6 141.6 149.1 176.7 183.7 14.3 14.1 23.2 17.4 26.6 16 1.2-0.5 7.3-4.4 7.3-30.8v-603c0-26.6-5.7-29.8-6.3-30-1-0.4-7.3-1.7-27.4 18-35.8 35-96 93.6-184.2 179.1l-2.3 2.2H164.5zM929 659c-8.3 0-16-3.2-21.9-9.1L800.9 543.7 695.1 649.5c-5.9 5.9-13.7 9.1-22 9.1s-16.1-3.2-21.9-9.1c-12.1-12.1-12.1-31.8 0-43.9L757 499.8 651.9 394.7c-12.1-12.1-12.1-31.7 0-43.8 5.9-5.9 13.6-9.1 21.9-9.1 8.3 0 16 3.2 21.9 9.1L800.8 456 907 349.8c5.9-5.9 13.7-9.1 21.9-9.1s16.1 3.2 21.9 9.1c5.9 5.9 9.1 13.7 9.1 21.9 0 8.3-3.2 16.1-9.1 21.9L844.7 499.9l106.2 106.2c12.1 12.1 12.1 31.7 0 43.8-5.8 5.9-13.6 9.1-21.9 9.1z",option:"M64 768h544v64H64v-64z m736 0h160v64H800v-64z m-32 127c0 35.9-28.7 65-64 65s-64-29.1-64-65V705c0-35.9 28.7-65 64-65s64 29.1 64 65v190zM64 480h160v64H64v-64z m352 0h544v64H416v-64z m-32 127c0 35.9-28.7 65-64 65s-64-29.1-64-65V417c0-35.9 28.7-65 64-65s64 29.1 64 65v190zM64 192h544v64H64v-64z m736 0h160v64H800v-64z m-32 127c0 35.9-28.7 65-64 65s-64-29.1-64-65V129c0-35.9 28.7-65 64-65s64 29.1 64 65v190z",phone:"M717.7 64H306.3C261 64 224 100.7 224 145.5v733.1c0 44.8 37 81.5 82.3 81.5h411.4c45.3 0 82.3-36.7 82.3-81.5V145.5c0-44.8-37-81.5-82.3-81.5zM728 832H296V163h432v669z m-168 64c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48z",pie:"M64 480C64 250.2 250.2 64 480 64c10.8 0 22 0.4 32 1.2V512H65.2c-0.8-10-1.2-21.2-1.2-32z m155.6 324.4C295.8 899.2 412.8 960 544 960c229.8 0 416-186.2 416-416 0-131.2-60.8-248.2-155.6-324.4-63.4-51-142.4-83.8-228.4-90.4V576H129.2c6.6 86 39.4 165 90.4 228.4z",pin:"M115.8 960c-13.7 0-26.6-5.4-36.4-15.2l-0.5 0.4 0.4-0.5c-18.3-18.4-20.4-46.7-5-67.2l179-242.4-138.8-138.8c-16.5-16.5-19.8-42.3-8-62.8l0.2-0.3c4.5-7.1 21.7-31.7 54.6-51.1 19.1-11.3 40.3-18.7 62.8-22.1 27.3-4.2 56.9-2.4 87.8 5.2 1.8 0.2 3.8 0.4 5.8 0.6h0.5c6 0.5 11.9 1.1 18.5 2.1 25.2 4.1 72.8-18 113.2-52.4 38.6-32.9 64.5-72 64.5-97.5 0-6.4-0.2-13.3-0.3-20-1.1-26.3-2.9-70.2 29.8-102.8 38.6-38.7 99.8-41.8 142.2-7.3 1 0.8 1.9 1.7 2.9 2.7l0.4 0.4c23.8 23.3 238 237.5 239.5 239 20.1 20.1 31.2 46.8 31.2 75.3 0 28.4-11 55.2-31.1 75.3-32.5 32.6-76.8 30.7-103.4 29.6h-1.4c-6-0.1-12.2-0.3-18.1-0.3-24.3 0-53.9 17.6-83.3 49.7-19.7 21.4-37.5 47.6-50 73.8-11.1 23.1-17.1 44.2-16.1 56.5 0.9 8.6 2.6 22.9 3 25.8 32.8 133.7-57.3 195.1-67.6 201.7l-0.1 0.1c-20.7 12.5-46.9 9.4-63.7-7.4L374.7 756.6c-11.6-11.6-11.6-30.6 0-42.2 5.6-5.6 13.1-8.8 21.1-8.8 8 0 15.5 3.1 21.1 8.8L565.4 863c6.5-5.2 17.3-15.3 26.2-31.2 16.2-29 19.3-64 9.5-104.2v-0.2c-0.6-2.8-3-23.4-3.9-31.8v-0.2c-1.9-22.6 5.5-53 20.7-85.6 15-32.1 36.6-64.3 60.9-90.7 28.9-31.5 74.5-69 127.2-69 7.1 0 15 0.2 21.4 0.3h0.2c26.5 1.1 46.2 0.9 59.2-12.1 8.8-8.8 13.6-20.5 13.6-33s-4.9-24.3-13.8-33.2C884.4 370 658 143.7 647.3 133.3c-17.8-14.2-44.6-12.5-61.2 4.1-13.1 13.2-13.4 32.6-12.3 58.7v0.1c0.2 7.2 0.3 14.7 0.3 21.8 0 43.9-31.9 97.3-85.5 142.9-23.9 20.4-51.2 38.1-76.8 49.8-31.9 14.6-60.3 20-84.6 16.1-5.1-0.8-9.9-1.2-14.1-1.6-2.7-0.2-5.4-0.5-8-0.8-2.6-0.1-5.1-0.6-7.7-1.4-83-20.4-123.9 20.5-136.1 36.1L313.6 611c10.5 10.5 11.8 26.9 2.9 38.9L152.7 871.6 316.2 752c6.4-4.7 14.3-6.6 22.2-5.4 7.9 1.2 14.8 5.5 19.5 11.9 9.7 13.3 6.7 32-6.5 41.7L146.2 949.9c-8.9 6.6-19.4 10.1-30.4 10.1z",plus:"M512 960c-21.2 0-38.4-17.2-38.4-38.4V550.3H102.3C81.2 550.4 64 533.2 64 512c0-21.2 17.2-38.4 38.4-38.4h371.3V102.3c0-21.1 17.2-38.4 38.4-38.4s38.4 17.2 38.4 38.4v371.3h371.3c21.1 0 38.4 17.2 38.4 38.4 0 10.3-4 19.9-11.2 27.1-7.2 7.2-16.9 11.2-27.1 11.2H550.6v371.3c0 10.3-4 19.9-11.2 27.1-7.5 7.3-17.1 11.3-27.4 11.3z",post:"M813.7 960H154.8c-0.7 0-17.2-0.1-33.7-8-16.1-7.7-35.3-24-35.3-58.3V130.3c0-34.1 19.2-50.4 35.3-58.2 16.5-7.9 33-8.1 33.6-8.1h658.9c0.7 0 17.2 0.2 33.7 8.1 16.1 7.7 35.3 24.1 35.3 58.2v32.5l-52.2 46.7v-79.9c-0.1-6.3-2.4-10.1-7.6-12.6-4.5-2.1-9.3-2.3-9.3-2.3H154.7s-5 0.1-9.6 2.4c-5.1 2.6-7.3 6.5-7.3 13.1v763.4c0 0.4 0.3 4.7 2.4 8.6 1.7 3 5 7 14.5 7h658.8c5.8 0 10.1-1.4 12.8-4.1 4.1-4.2 4.1-11 4.1-11.1V561.5l52.2-49.6v381.9c0 0.7-0.1 16.7-8.5 32.7-8 15.3-25 33.5-60.4 33.5zM424.4 655.6l-25.8 125.2 129.5-25.1L927.6 368l0.1-0.1c0.3-0.3 10.5-10 10.6-22.4 0.1-7.5-3.5-14.8-10.8-21.8L914.4 311c-15.2-14.8-23.4-22.7-44.2-42.9-7.3-7.1-15.1-10.7-23-10.5-13.1 0.2-23.2 10.3-23.3 10.4l-0.2 0.2-399.3 387.4z m18.7 37.3l-15.2 59.4 61-14.8-45.8-44.6z m81 29.2c-20-23-40-46.1-60.1-69.1l331-319c21.3 21.7 42.7 43.3 64 65-111.6 107.7-223.3 215.4-334.9 323.1z m52-312.8H257.5c-10.7 0-19.4-1.7-26-5.1-7.3-3.8-11.6-9.7-11.6-16.3 0-10.9 11.6-22 37.5-22h366l-47.3 43.4zM874 384c-21.7-21.3-43.3-42.7-65-64l38-38c21.7 21.3 43.3 42.7 65 64l-38 38zM607.2 270.3H257.7c-10.7 0-19.5-1.7-26.1-5.1-7.4-3.8-11.6-9.7-11.6-16.3 0-10.9 11.6-22 37.7-22h349.6c10.4 0 19.2 1.8 25.7 5.3 7.3 3.9 11.5 9.9 11.5 16.4-0.1 10.8-11.6 21.7-37.3 21.7z",qr:"M395 64H64v329.2h331V64z m-48.5 282.2h-235V111h235v235.2z m258.8 495.4h353.3v-46.9H605.3v46.9zM300.1 158.2H158.9V301h141.2V158.2zM629 64v330.7h331V64H629z m282.5 282.9h-235V111h235v235.9z m47.8 353.6h-165v46.8h164.9v-46.8zM723.9 464.4H512.1v94.7h211.8v-94.7z m-329.6-22.8H64.7v46.8h329.5v-46.8zM582.4 64.9h-46.9v211.8h46.9V64.9z m376.9 541.4H511.8v46.1h447.5v-46.1zM441.4 417.1h46.8V64.9h-46.8v352.2z m94 329.8h-46.8v165.3h-0.2v47.6h0.2v0.2h46.8v-0.2H700v-47.6H535.4V746.9z m331.1-589.4H723.9v142.8h142.6V157.5z m92.8 259.1H817.9v48.3H911V558h48.3V416.6z m-95 541.9h95v-94.3h-95v94.3z m-705.4-93.3h141.2V723.8H158.9v141.4z m117.9-283.1h164v-46.9h-164v46.9zM64 959.6h330.3V628.9H64v330.7z m47.5-283.7h235v235.9h-235V675.9z m93.9-93.8v-46.9H65v46.9h140.4z",quote:"M297.6 530.1h140.2V960H64V634.7C64 279.4 188.6 89.1 437.8 64v161.2c-93.4 30.1-140.2 116.1-140.2 258.5v46.4z m522.2 0H960V960H586.2V634.7c0-355.3 124.5-545.6 373.7-570.7v161.2c-93.4 30.1-140.2 116.1-140.2 258.5V530h0.1z","radio-on":"M512 288c-123.2 0-224 100.8-224 224s100.8 224 224 224 224-100.8 224-224-100.8-224-224-224z m0-224C265.6 64 64 265.6 64 512s201.6 448 448 448 448-201.6 448-448S758.4 64 512 64z m0 806.4c-197.1 0-358.4-161.3-358.4-358.4S314.9 153.6 512 153.6 870.4 314.9 870.4 512 709.1 870.4 512 870.4z","radio-off":"M512 64C265.6 64 64 265.6 64 512s201.6 448 448 448 448-201.6 448-448S758.4 64 512 64z m0 806.4c-197.1 0-358.4-161.3-358.4-358.4S314.9 153.6 512 153.6 870.4 314.9 870.4 512 709.1 870.4 512 870.4z",right:"M282.5 960c-24.2 0-43.9-18.1-43.9-40.3 0-10.9 4.9-21.4 13.4-29L678.2 512 252 133.2c-8.6-7.5-13.4-17.8-13.4-29 0-22.2 19.7-40.3 43.9-40.3 11.5 0 22.4 4 30.6 11.3l455.5 404.9c10.7 7.7 16.8 19.2 16.8 31.6 0 10.4-4.3 20.2-12 27.6l-0.3 0.3-460 409c-8.4 7.4-19.2 11.4-30.6 11.4z",sad:"M897.6 64c6.7 0 13.4 3 18 8.6 7.9 9.9 6.3 24.4-3.6 32.3-123.7 99-194.6 246.5-194.6 404.8 0 161 73 310.2 200.2 409.2 10 7.8 11.8 22.2 4 32.3-7.8 10-22.2 11.8-32.3 4C750.8 847.4 671.4 685 671.4 509.7c0-172.3 77.2-332.9 211.8-440.7 4.1-3.2 9.1-5 14.4-5zM207.4 348c60.6 0 109.8-49.2 109.8-109.8 0-60.6-49.1-109.8-109.8-109.8S97.6 177.6 97.6 238.3c0 60.6 49.1 109.7 109.8 109.7z m0 546.6c60.6 0 109.8-49.2 109.8-109.8 0-60.6-49.1-109.8-109.8-109.8-60.6 0-109.8 49.2-109.8 109.8 0 60.7 49.1 109.8 109.8 109.8z",search:"M914.4 957.9c12.4 4.6 26.5 1.5 35.8-7.9 9.2-9.3 12.2-23.1 7.7-35.4l-43.3-43.8-44.6-44.7L747.2 702c57-68.3 91.8-155.1 91.8-250.7C839 237.8 665.4 64 452.1 64 237.6 64 64 237.8 64 451.3 64 666 237.6 839.7 452.1 839.7c92.3 0.1 181.6-32.9 251.7-93.1l122.8 124.1 44.6 43.4 43.2 43.8zM452.1 777.7C272.3 777.7 126 632.5 126 451.3c0-180 146.3-325.2 326.1-325.2s326.1 145.2 326.1 325.2c0 179.9-146.3 326.4-326.1 326.4zM358 273c0.7 5.5-2.7 10.5-13.1 21.7-10.9 11.9-16.4 17.9-22.7 23-28.6 23.2-83.4 133.7-66.8 209.9 1.7 7.9 7.4 30.1-4.6 39.5-5.7 4.5-14.7 5.6-20.4 3.8-27.1-8.5-27.4-99.1 1.4-175.7 28.3-75.4 87.3-143.8 112-137 5.3 1.4 13.3 7.5 14.2 14.8z",second:"M512 64c-156.8 0-284.3 127.5-284.3 284.3S355.2 632.6 512 632.6s284.3-127.5 284.3-284.3S668.8 64 512 64z m-61.2 242.5h-40.1c0-45.5 14.1-77.7 42.3-96.5 18.2-12.1 41-18.2 68.3-18.2 28.5 0 52.3 8.7 71.5 25.9 19.1 17.3 28.7 40.5 28.7 69.6 0 26.4-8.2 48.3-24.6 65.5-11.2 11.8-31.6 25.6-61 41.4l-33.2 18.2c-19.4 10.6-33.8 22.3-43.2 35.1-6.7 8.8-10.6 17.6-11.8 26.4h173.9v37.8H402.5c0-30.9 7.1-57.2 21.4-78.7 12.1-18.2 30-34.3 53.7-48.2l42.3-24.6c21.8-12.8 36-22.3 42.3-28.7 10.9-11.5 16.4-26.9 16.4-46 0-15.2-4.5-27.9-13.7-38.2-11.5-13-28.1-19.6-49.6-19.6-20.3 0-36 6.2-46.9 18.7-11.7 13.7-17.6 33.7-17.6 60.1z m282.3 305.1c-4.8-10.3-18.1-15.2-29.7-10.8-11.6 4.3-17.2 16.2-12.4 26.6l80.8 173.8-148.3-26.7c-9.1-1.6-18.5 1.9-23.7 8.9l-83.3 113.3-4.2 6.5-4.9-6.4-83.1-112.5c-5.1-6.9-14.5-10.4-23.7-8.6l-148.3 28.1 81.1-174.5c4.8-10.4-0.7-22.2-12.3-26.5-11.6-4.2-24.9 0.7-29.8 11.1l-97.6 210c-3.2 7-1.9 14.9 3.5 20.7 5.4 5.8 13.9 8.4 22.2 6.8l175.3-33.2L492.9 951c2.6 3.5 6.2 6.1 10.3 7.6 1.9 0.7 4 1.1 6.1 1.3 0.2 0 3.7 0.1 4.6 0.1h0.3c6.8-0.6 13-3.9 16.8-9.1L629.3 817l175.3 31.5c4.6 0.8 9.2 0.4 13.3-1.2 3.4-1.3 6.4-3.3 8.8-5.9 5.4-5.8 6.7-13.8 3.5-20.7l-97.1-209.1z",setting:"M373.4 942.1c-2.9 0-5.7-0.5-8.6-1.5-53.7-19-102.6-47.6-145.6-85.2-7.8-6.8-10.8-17.6-7.9-27.5 13.4-44.6 8.3-91.3-14.6-131.5-22.9-40.1-60.2-68-105.1-78.5-10-2.3-17.8-10.5-19.7-20.7-5.2-28.7-7.9-57.3-7.9-85.2 0-27.9 2.7-56.5 8.1-85.1 1.9-10.3 9.6-18.4 19.7-20.8 44.9-10.4 82.2-38.3 105.1-78.5 22.8-40.1 28-86.8 14.6-131.4-3-9.9 0.1-20.8 7.9-27.6 42.9-37.6 91.9-66.3 145.6-85.2 9.8-3.5 20.6-0.8 27.7 6.9 31.4 34.1 73.8 52.9 119.4 52.9 45.7 0 88.1-18.8 119.5-52.9 7-7.6 17.9-10.4 27.6-6.9 53.6 18.9 102.6 47.6 145.6 85.2 7.8 6.8 10.8 17.6 7.9 27.5-13.5 44.7-8.3 91.4 14.6 131.5 22.9 40.1 60.2 68 105.1 78.5 10 2.4 17.8 10.5 19.7 20.8 5.4 28.6 8.1 57.3 8.1 85.1 0 27.8-2.7 56.4-8.1 85.1-1.9 10.3-9.7 18.4-19.7 20.7-44.9 10.5-82.2 38.4-105.1 78.5-22.9 40.2-28.1 86.9-14.6 131.5 3 9.9-0.1 20.8-7.9 27.6-43 37.7-92 66.3-145.6 85.2-9.8 3.4-20.6 0.6-27.6-7-31.3-34.1-73.7-52.9-119.4-52.9-45.6 0-88.1 18.8-119.5 52.9-5.1 5.4-12 8.5-19.3 8.5zM263.1 829.5c31 25 65.4 45.2 102.3 59.9 19.5-18 41.9-32.2 66.5-42.1 25.7-10.4 52.7-15.6 80.1-15.6 54.6 0 106.6 20.5 146.6 57.7 36.9-14.7 71.3-34.9 102.4-59.9-5.6-26.2-6.5-52.9-2.7-79.5 4-27.7 13-54 26.7-78.1 27.2-47.7 70.8-83.1 122.8-99.9 3-20.4 4.6-40.5 4.6-59.9s-1.5-39.6-4.6-60c-52.1-16.8-95.6-52.2-122.8-99.9-13.7-24.1-22.7-50.3-26.7-78.1-3.8-26.6-2.9-53.3 2.7-79.5-31-25.1-65.4-45.2-102.4-59.9-40.2 37.2-92.2 57.7-146.7 57.7-27.4 0-54.4-5.3-80.1-15.6-24.7-9.9-47-24.1-66.6-42.1-37 14.8-71.4 35-102.4 60 5.6 26.2 6.5 52.9 2.7 79.5-4 27.7-13 54-26.7 78.1-13.7 24.1-31.7 45.1-53.4 62.5-20.8 16.7-44.1 29.2-69.3 37.4-3 20.3-4.6 40.5-4.6 60 0 19.4 1.5 39.6 4.6 59.9 52.1 16.8 95.6 52.1 122.9 99.9 27.4 47.8 35.8 103.6 24.1 157.5zM512 668.2c-85 0-154.1-70.1-154.1-156.2S427 355.8 512 355.8c41.1 0 79.8 16.3 108.9 45.8C650 431.1 666.1 470.3 666 512c0 8.6-0.9 17.4-2.7 27.9-1.2 7-5.2 13.1-11 17.2-5.8 4-12.7 5.5-19.6 4.2-14.3-2.7-23.8-16.6-21.1-31 1.3-7.1 1.9-13 1.9-18.4C613.5 455.1 568 409 512 409c-55.9 0-101.5 46.2-101.5 102.9 0 56.8 45.5 102.9 101.5 102.9 5.4 0 11.1-0.6 18.1-1.9 6.8-1.3 13.7 0.2 19.4 4.1 5.9 4.1 9.9 10.2 11.2 17.4 2.6 14.4-6.9 28.3-21.2 30.9-10.2 2.1-19 2.9-27.5 2.9z",share:"M809.6 960c-82.9 0-150.4-67.5-150.4-150.4 0-6.2 0.4-12.2 1.1-18.2L337.1 615.2c-27.3 38.5-72.1 63.6-122.8 63.6-82.8 0-150.3-67.4-150.3-150.3s67.5-150.4 150.4-150.4c49.7 0 93.9 24.3 121.3 61.5l246.8-167.5c-7.4-17.8-11.5-37.3-11.5-57.7C571 131.5 638.5 64 721.4 64s150.4 67.5 150.4 150.4-67.5 150.4-150.4 150.4c-46 0-87.2-20.8-114.8-53.4L357 480.7c5 15 7.8 31.1 7.8 47.8 0 15.2-2.3 30-6.5 43.9l315.8 172.2c24.3-50.4 75.9-85.3 135.5-85.3 82.9 0 150.4 67.5 150.4 150.4S892.5 960 809.6 960z m-0.5-245.2c-52.8 0-95.8 42.9-95.8 95.7 0 52.8 43 95.7 95.8 95.7s95.7-42.9 95.7-95.7c0.1-52.8-42.9-95.7-95.7-95.7z m-88.7-598c-53.4 0-96.8 43.4-96.8 96.8s43.4 96.8 96.8 96.8 96.8-43.4 96.8-96.8-43.4-96.8-96.8-96.8zM214.3 433.6c-53 0-96.2 43.1-96.2 96.2 0 53 43.1 96.2 96.2 96.2 53 0 96.2-43.1 96.2-96.2 0-53-43.2-96.2-96.2-96.2z",star:"M891.9 355.6l-218.6-15.8c-4.6-0.4-8.6-3.1-10.2-7.5l-83.3-203.8C568.4 100.4 542.5 83 512.1 83c-30.3 0-56 17.4-67.7 45.7l-83.4 204c-1.8 4.2-5.7 7.2-10.2 7.5L132.5 356c-29.6 1.7-54.8 21.1-64.4 49.8-9.9 29-1.6 59.5 21.7 79.5l168.9 140.3c3.5 2.9 5.1 7.7 4 12.1l-51.5 211.9c-6 22-1.8 44.8 11.5 62.6 13.7 18 35.1 28.8 57.5 28.8 13.9 0 27.4-4.2 38.5-11.8l184.6-115.5c3.9-2.4 8.7-2.4 12.6 0l186.4 115.1c11.7 7.9 25.2 12.1 38.9 12.1 21 0 41.8-10.1 55.3-27.2 14.1-17.6 19.2-40.6 14.1-63.5L759 637.9c-1.1-4.5 0.5-9.3 4-12.3l171.4-140.7c23-19.8 31.2-50.3 21.5-79.3-9.4-28.7-34.8-48.3-64-50z m-4.8 97.5l-163 133.8a54.911 54.911 0 0 0-18.3 55.1L755 844c2.6 11.9-2.1 20.1-5.2 24-4.9 6.1-12.2 10-19.5 10-4.5 0-9-1.4-13.9-4.7L538.2 763c-8.5-5.3-18.3-8.1-28.3-8-10.1 0-20 2.8-28.5 8.2L304.8 873.5c-11.3 7.5-26.4 4.2-34.4-6.3-3.3-4.4-6.8-11.9-3.7-22.9L316 641.8c4.9-20.1-2.3-41.6-18.1-54.7L137.3 453.6c-12.7-11-9.2-25.2-7.8-29.2 1.4-4 7.1-17.5 23.8-18.4l208.2-15c20.5-1.5 38.4-14.5 46.1-33.6l79.5-194.3c6.4-15.7 20.9-17 25-17 4.2 0 18.6 1.2 25 17l79.5 194.3c7.7 19.1 25.6 32.1 46.1 33.6l208.5 15.2c16.3 0.9 22.1 14.3 23.5 18.4 1.1 3.6 4.6 17.8-7.6 28.5z","star-half":"M891.9 355.6l-218.6-15.8c-4.6-0.4-8.6-3.1-10.2-7.5l-83.3-203.8C568.4 100.4 542.5 83 512.1 83c-30.3 0-56 17.4-67.7 45.7l-83.4 204c-1.8 4.2-5.7 7.2-10.2 7.5L132.5 356c-29.6 1.7-54.8 21.1-64.4 49.8-9.9 29-1.6 59.5 21.7 79.5l168.9 140.3c3.5 2.9 5.1 7.7 4 12.1l-51.5 211.9c-6 22-1.8 44.8 11.5 62.6 13.7 18 35.1 28.8 57.5 28.8 13.9 0 27.4-4.2 38.5-11.8l184.6-115.5c3.9-2.4 8.7-2.4 12.6 0l186.4 115.1c11.7 7.9 25.2 12.1 38.9 12.1 21 0 41.8-10.1 55.3-27.2 14.1-17.6 19.2-40.6 14.1-63.5L759 637.9c-1.1-4.5 0.5-9.3 4-12.3l171.4-140.7c23-19.8 31.2-50.3 21.5-79.3-9.4-28.7-34.8-48.3-64-50z m-4.8 97.5l-163 133.8a54.911 54.911 0 0 0-18.3 55.1L755 844c2.6 11.9-2.1 20.1-5.2 24-4.9 6.1-12.2 10-19.5 10-4.5 0-9-1.4-13.9-4.7C648.3 831.1 580.2 789.1 512 747V147c-0.1-0.3-0.2-0.7 0-1 1.1-1.8 10.8 0.7 17.4 6.2 2 1.7 5.4 5 7.8 10.9l79.5 194.3c7.7 19.1 25.6 32.1 46.1 33.6l208.5 15.2c16.3 0.9 22.1 14.3 23.5 18.4 0.7 2.1 3.2 10.8-1.1 20-2.1 4.1-4.8 6.9-6.6 8.5z","star-full":"M891.9 355.6l-218.6-15.8c-4.6-0.4-8.6-3.1-10.2-7.5l-83.3-203.8C568.4 100.4 542.5 83 512.1 83c-30.3 0-56 17.4-67.7 45.7l-83.4 204c-1.8 4.2-5.7 7.2-10.2 7.5L132.5 356c-29.6 1.7-54.8 21.1-64.4 49.8-9.9 29-1.6 59.5 21.7 79.5l168.9 140.3c3.5 2.9 5.1 7.7 4 12.1l-51.5 211.9c-6 22-1.8 44.8 11.5 62.6 13.7 18 35.1 28.8 57.5 28.8 13.9 0 27.4-4.2 38.5-11.8l184.6-115.5c3.9-2.4 8.7-2.4 12.6 0l186.4 115.1c11.7 7.9 25.2 12.1 38.9 12.1 21 0 41.8-10.1 55.3-27.2 14.1-17.6 19.2-40.6 14.1-63.5L759 637.9c-1.1-4.5 0.5-9.3 4-12.3l171.4-140.7c23-19.8 31.2-50.3 21.5-79.3-9.4-28.7-34.8-48.3-64-50z",switch:"M512 960c-58 0-114.3-11.4-167.3-33.8-51.2-21.6-97.2-52.6-136.6-92.1-39.5-39.5-70.5-85.4-92.1-136.6-22.4-53-33.8-109.3-33.8-167.3 0-58.3 11.5-114.9 34.3-168.3l0.5-1.1c23.1-53.7 56.4-101.6 99.1-142.1 12.7-12 32.8-11.5 44.8 1.1 5.9 6.1 9 14.2 8.7 22.7-0.2 8.5-3.7 16.3-9.8 22.2-36.3 34.4-64.7 75.2-84.5 121.3l-1.8 4.1c-18.4 44.4-27.7 91.5-27.7 140.2 0 49.4 9.7 97.4 28.8 142.5 18.5 43.6 44.9 82.8 78.5 116.4 33.6 33.6 72.7 60 116.4 78.5 45.1 19.1 93.1 28.8 142.6 28.8 49.4 0 97.4-9.7 142.5-28.8 43.6-18.4 82.8-44.8 116.4-78.5 33.6-33.6 60.1-72.8 78.5-116.4 19.1-45.2 28.8-93.1 28.8-142.5 0-49.8-9.7-97.9-29-143.2l-0.5-1c-10.6-24.5-23.7-47.8-39-69.1-13.4-18.7-28.8-36.3-45.5-52.2l-0.2-0.2c-2.7-3-4.9-6.4-6.5-10.1-1.1-2.5-2.8-6.4-3.1-11.8-0.1-2.4 0-7.2 2.2-12.7 1.5-3.7 3.7-7.1 6.5-10.1 12.1-12.6 32.2-13.1 44.8-1.1 42.7 40.6 76 88.4 99.1 142.2l0.6 1.5c22.7 53.1 34.1 109.6 34.1 167.9 0 58-11.4 114.3-33.8 167.3-21.6 51.2-52.6 97.2-92.1 136.6-39.4 39.4-85.4 70.4-136.6 92.1C626.3 948.6 570 960 512 960z m0-452.1c-17.5 0-31.8-14.3-31.8-31.8V95.8c0-17.5 14.3-31.8 31.8-31.8s31.7 14.3 31.7 31.8V476c0.1 17.6-14.2 31.9-31.7 31.9z",tag:"M64 599.7c0-28.1 10.9-54.5 30.8-74.4L525.3 94.8c25.8-25.8 62.5-36.3 98-28.1l207.3 47.8c39 8.9 69.9 39.9 78.9 78.9l47.8 207.2c8.1 35.2-2.6 72.6-28.1 98.1L498.7 929.2c-19.9 19.9-46.3 30.8-74.4 30.8-28.1 0-54.5-10.9-74.4-30.8L94.8 674.1C74.9 654.2 64 627.8 64 599.7zM649.7 288c0 22.4 8.7 43.5 24.6 59.4 15.9 15.9 37 24.6 59.4 24.6s43.5-8.7 59.4-24.6c15.9-15.9 24.6-37 24.6-59.4 0-22.5-8.7-43.6-24.6-59.4-32.8-32.8-86-32.8-118.8 0-15.9 15.8-24.6 36.9-24.6 59.4z",talk:"M902.8 110H407.2c-31.5 0-57.2 25.1-57.2 55.9v391c0 30.8 25.6 55.9 57.2 55.9h344.7l60.2 92.1c11.5 13.2 33.5 5.2 33.5-12.1v-80h57.2c31.5 0 57.2-25.1 57.2-55.9v-391c0-30.9-25.6-55.9-57.2-55.9zM483.5 411.3c-21.1 0-38.1-16.7-38.1-37.2 0-20.6 17.1-37.2 38.1-37.2 21.1 0 38.1 16.7 38.1 37.2 0 20.5-17.1 37.2-38.1 37.2z m171.5 0c-21.1 0-38.1-16.7-38.1-37.2 0-20.6 17.1-37.2 38.1-37.2 21.1 0 38.1 16.7 38.1 37.2 0 20.5-17 37.2-38.1 37.2z m171.6 0c-21.1 0-38.1-16.7-38.1-37.2 0-20.6 17.1-37.2 38.1-37.2 21.1 0 38.1 16.7 38.1 37.2 0 20.5-17.1 37.2-38.1 37.2zM292.7 616.1V312.6H121.2c-31.5 0-57.2 25.1-57.2 55.9v391c0 30.8 25.7 55.9 57.2 55.9h57.2v80c0 17.3 22.1 25.2 33.5 12.1l60.2-92.1h344.7c31.5 0 57.2-25.1 57.2-55.9V672H349.9c-31.5-0.1-57.2-25.1-57.2-55.9z",third:"M512 64c-156.8 0-284.3 127.5-284.3 284.3S355.2 632.6 512 632.6s284.3-127.5 284.3-284.3S668.8 64 512 64z m-23.9 295.3v-33.2l20.4 0.9c17.1 0 30.7-3.5 40.8-10.6 12.4-8.9 18.6-22.3 18.6-40.3 0-12.4-3.7-22.9-11.1-31.5-10-11.8-25.6-17.7-46.5-17.7-23.9 0-40.9 8.4-51 25.3-6.5 10.9-9.8 24.8-9.8 41.7h-38.1c0-28.1 6.5-50.8 19.5-68.3 16.8-22.4 43.9-33.7 81.1-33.7 29.5 0 53 7.6 70.3 22.8 17.3 15.2 25.9 34.9 25.9 59.2 0 18.3-4.4 33.4-13.3 45.2-7.1 9.5-16 15.8-26.6 19.1 16.5 5.9 29 14.2 37.2 24.8 9.8 12.4 14.6 28.7 14.6 48.8 0 28.1-8.7 51.1-26.1 69.1-20.1 20.7-48.8 31-86 31-9.8 0-17.9-0.6-24.4-1.8-10.6-2.1-21.7-6.1-33.2-12-16.6-8.6-28.4-20.7-35.7-36.3-7.2-15.7-10.9-33.5-10.9-53.6h40.3c0 19.5 3.7 34.6 11.1 45.2 10.6 15.7 29.1 23.5 55.4 23.5 20.1 0 36.4-5.5 49-16.6 12.6-11.1 18.8-25.6 18.8-43.7 0-23-8.7-39.1-26.1-48.3-11.2-5.9-26.7-8.9-46.5-8.9h-17.7z m245 252.3c-4.8-10.3-18.1-15.2-29.7-10.8-11.6 4.3-17.2 16.2-12.4 26.6l80.8 173.8-148.3-26.7c-9.1-1.6-18.5 1.9-23.7 8.9l-83.3 113.3-4.2 6.5-4.9-6.4-83.1-112.5c-5.1-6.9-14.5-10.4-23.7-8.6l-148.3 28.1 81.1-174.5c4.8-10.4-0.7-22.2-12.3-26.5-11.6-4.2-24.9 0.7-29.8 11.1l-97.6 210c-3.2 7-1.9 14.9 3.5 20.7 5.4 5.8 13.9 8.4 22.2 6.8l175.3-33.2L492.9 951c2.6 3.5 6.2 6.1 10.3 7.6 1.9 0.7 4 1.1 6.1 1.3 0.2 0 3.7 0.1 4.6 0.1h0.3c6.8-0.6 13-3.9 16.8-9.1L629.3 817l175.3 31.5c4.6 0.8 9.2 0.4 13.3-1.2 3.4-1.3 6.4-3.3 8.8-5.9 5.4-5.8 6.7-13.8 3.5-20.7l-97.1-209.1z",time:"M512.3 544c-8.4 0-15.7-2.4-21.3-6.9-6.1-5-9.3-13.5-9.4-25.2L480 247.4c-0.1-19.8 11-31.3 30.6-31.4 10-0.1 17.8 2.6 23.3 8s8.3 13.1 8.4 23l1.6 233.9c65.9-0.9 168.5-2.1 179-0.8 3 0.4 5.9 1.1 6.2 1.2 4.3 1.2 13.2 3.7 19.3 12 2.7 3.7 5.8 9.9 5.5 19-0.3 10.5-4.8 16.9-8.4 20.5-5.6 5.5-12.1 7-16.8 8.1-2.2 0.5-5.7 1.1-9.6 1.2-45.2 0.8-91.2 1.1-135.6 1.4-23.2 0.2-47.2 0.3-70.8 0.6-0.1-0.1-0.2-0.1-0.4-0.1z m-0.3-424c216.5 0 392 175.5 392 392 0 78.5-23.1 151.5-62.8 212.8-0.6 12.9 6.4 24.8 17.8 30.2 10 4.7 22 3.6 31.3-2.9C934.4 682.7 960 600.3 960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c83.3 0 161.3-22.7 228.1-62.4 9.5-9.6 11.4-24.3 4.9-35.6-6-10.5-18.1-16.2-30.3-14.4C655.5 883.4 586.2 904 512 904c-216.5 0-392-175.5-392-392s175.5-392 392-392z",track:"M738.3 425.3c1.2 1.1 2.5 2.2 3.9 3.2 24.5 18 63.2 8.4 92.1-22.8 30.4-32.7 35.7-75.4 12.3-97.2-24.1-21.9-65.5-13.3-96 19.6-13.2 14.2-22.3 31.1-25.6 47.5-4.1 19.9 0.7 38.1 13.3 49.7z m44.5-67.3c15.6-16.8 31.2-18.9 33.7-17.3 1.9 2.5 1 18.2-14.6 35-15.5 16.8-31.1 18.9-33.8 17.3-1.7-2.6-0.7-18.3 14.7-35z m34.4 158.2c2.1 2.4 4.4 4.6 7 6.5 19.7 14.4 49.6 10.6 72.8-9.2 26.5-22.7 33.1-57.2 15-78.4-17.8-20.8-53.5-19.7-79.7 2.7-26.7 22.7-33.3 57.2-15.1 78.4z m42.6-46c9.1-7.8 18-8.3 19.5-7.6 0.8 2-1.1 10.8-10.1 18.5-8.7 7.4-17.2 8.2-19.6 7.3-0.5-2.5 1.6-10.8 10.2-18.2z m79 110.6c-5.4-24-35.6-38.8-65.5-32-31.1 7-51.1 32.1-45.5 57 2.1 9.3 7.6 17.5 15.8 23.5 12.9 9.5 31.5 12.7 49.8 8.5 13.5-3.1 25.7-9.8 34.1-19.1 10.1-11 14.3-24.8 11.3-37.9z m-54.3 17.8c-7.7 1.7-14.3 0.3-17.1-1.7 1-2.3 5.7-6.9 14.7-9 7.8-1.7 14.3-0.3 17.5 1.1-0.4 1.9-5.2 7.4-15.1 9.6zM731.3 464.8l-139.6-151-3-2.8c-38.7-31-87.9-42.5-133.7-32.3-40.1 8.9-73.1 33.7-90.6 68-18.8 36.8-18.3 84.2-17.8 130.1 0.5 50.2 1.1 102.1-24.7 130.4-26 28.6-54 35.8-86.3 44.1-34.7 8.9-74 19-111.5 56.6-28.7 28.8-43.1 67.4-39.3 105.9 3 30.7 19.2 76.5 79.3 119.8l0.7 0.5c73 52.2 175.5 14.7 221.1-19.4 0.7-0.4 1.2-1 1.8-1.4 1.5-1.2 3.2-2.4 4.6-3.5l-0.2-0.3c0.6-0.7 1.4-1 2-1.7 8.6-11.3 5.8-27.5-6.1-36-9.9-7.1-22.8-6.3-31.8 0.5l-0.3-0.3c-59 34.1-114.1 55.2-161.1 21.6-35.2-25.4-55.2-54.2-58.1-83.4-2.3-24.1 6.9-48.5 25.4-67 27.8-27.8 55.7-35 88.1-43.3 35.2-9.1 75.2-19.3 111.3-59.1 38.5-42.4 37.9-103.9 37.2-163.4-0.5-41.9-0.9-81.4 12.5-107.7 10.8-21.1 31.4-36.5 56.6-42.1 28.2-6.3 58.7 0.3 83.6 18.2 1.1 0.8 2.3 1.6 3.4 2.5L692.3 497c49.3 57.6 48.2 110.2-3.4 165.6-61.9 65.9-124.7 96.7-180.2 123l0.1 0.2c-3.4 1.7-6.5 4-9 7.2-8.6 11.3-5.8 27.5 6.1 36 8.4 6 19.1 6.4 27.8 2.2l0.1 0.2c55.7-26.5 128.7-65.1 194-134.6 68.9-74 70.4-154 3.5-232zM524.1 242.4c4.1 3 8.6 5.4 13.3 7.2 37.4 13.9 81.5-15.2 100.5-66.3 16.2-43.6 8.2-88.3-19.6-108.7-4.1-3-8.6-5.4-13.3-7.2-18.8-7-40.8-3-60.1 11-17.5 12.6-31.8 32.2-40.4 55.3-16.2 43.6-8.2 88.3 19.6 108.7z m16.7-93.1c5.5-14.8 14.7-27.7 25.2-35.3 5-3.6 14.8-9.2 23.9-5.8 1.4 0.5 2.8 1.3 4 2.2 11.2 8.2 16.6 33.3 6.3 61-11.4 30.7-35.1 46.3-49.1 41.1-1.4-0.5-2.8-1.3-4-2.2-11.1-8.2-16.6-33.3-6.3-61z m104.8 181.2c27.5 20.4 71.3 5.7 99.7-33.5 28.4-39.2 29.1-85.8 1.6-106.2-27.5-20.4-71.3-5.7-99.7 33.5-28.4 39.1-29.1 85.8-1.6 106.2z m74.8-103.1c3.4 2.5 4.9 21.2-10.9 43s-33.9 26-37.3 23.5c-3.4-2.5-4.9-21.2 11-43.1 15.7-21.8 33.8-26 37.2-23.4z",trash:"M750.5 938.9H278.6c-53.3 0-96.6-39.8-96.6-88.7V255h-66.5C85.7 255 64 244.3 64 229.6s21.7-25.4 51.5-25.4h793c29.8 0 51.5 10.7 51.5 25.4S938.3 255 908.5 255h-61.4v595.2c0 48.9-43.3 88.7-96.6 88.7zM230.1 255v595.2c0 22.4 21.8 40.6 48.6 40.6h471.8c26.8 0 48.6-18.2 48.6-40.6V255h-569z m408.8 628.6c-15.8 0-27.3-21.7-27.3-51.6V513.2c0-29.9 11.5-51.6 27.3-51.6s27.3 21.7 27.3 51.6V832c0 29.9-11.5 51.6-27.3 51.6z m-127.4 0c-15.8 0-27.3-21.7-27.3-51.6V513.2c0-29.9 11.5-51.6 27.3-51.6s27.3 21.7 27.3 51.6V832c0 29.9-11.4 51.6-27.3 51.6z m-127.4-1c-15.8 0-27.3-21.7-27.3-51.6V512.2c0-29.9 11.5-51.6 27.3-51.6s27.3 21.7 27.3 51.6V831c0.1 29.9-11.4 51.6-27.3 51.6z m389.8-746.8H250.1c-29.8 0-51.5-10.7-51.5-25.4S220.3 85 250.1 85h523.8c29.8 0 51.5 10.7 51.5 25.4 0 14.8-21.7 25.4-51.5 25.4z","trigon-down":"M960 279.7c0-18-5.5-33.5-16.6-46.7-11.1-13.2-24.2-19.7-39.4-19.6H120c-15.2 0-28.3 6.6-39.4 19.6-11.1 13.1-16.7 28.7-16.6 46.7 0.1 18 5.6 33.6 16.6 46.7l392 464.6c11.1 13.1 24.2 19.6 39.4 19.6s28.4-6.6 39.4-19.6l392-464.6c11.1-13.1 16.6-28.6 16.6-46.7z","trigon-up":"M960 744.3c0 18-5.5 33.5-16.6 46.7-11.1 13.2-24.2 19.7-39.4 19.6H120c-15.2 0-28.3-6.6-39.4-19.6-11.1-13.1-16.7-28.7-16.6-46.7 0.1-18 5.6-33.6 16.6-46.7l392-464.6c11.1-13.1 24.2-19.6 39.4-19.6s28.4 6.6 39.4 19.6l392 464.6c11.1 13.1 16.6 28.6 16.6 46.7z",unmute:"M517.3 924.1c-19.4 0-40.5-9.8-60.4-28.4L262.3 710h-119C92.9 710 64 681.1 64 630.8V392.9c0-51.1 28.1-79.2 79.2-79.2h119L457 128c27.1-25.4 57.7-34.3 82-23.7 25.7 11.1 40.4 41.7 40.4 84v647.1c0 42.4-14.8 73.1-40.5 84.3-6.9 2.9-14.1 4.4-21.6 4.4zM167 377c-30.8 0-39.7 8.9-39.7 39.7V607c0 31.6 8.2 39.7 39.7 39.7h130.1l2.3 2.5c84.6 89.9 145.7 153.4 181.5 188.7 19 18.7 26.3 17 27.6 16.5 1.3-0.5 7.6-4.6 7.6-31.8V203.3c0-27.5-6-30.7-6.6-31-1.5-0.7-8.2-1.2-28.3 18.5-58.4 57.2-159.6 155.3-189.2 184l-2.3 2.2H167z m644.8 454.6c-14.8 9.1-33.4 5.6-42.8-6.6-7.6-9.9-8.1-24.4-1-36 1.3-1.4 3.2-3.3 5.4-5.8 27.2-29.1 47-49.6 64-76.1 10.2-15.9 19.3-32.6 27.1-49.9 22.4-49.6 33.7-102.5 33.7-157.3 0-99.6-38.1-194.4-107.4-266.7-1.6-1.7-3.3-3.5-4.9-5.2-6.9-12.4-4.9-28 5-38 10.2-10.3 26.3-12.5 39-5 3 3.2 6 6.4 9 9.5 78 83.5 121 191.8 121 305.4 0 63-13 124-38.6 181.1-24.6 55-59.7 103.9-104.2 145.5l-5.3 5.1z m-97.5-119.8c-11.9 7.3-27 6.5-37.3-1.8-11.9-9.6-15.2-27.3-7.2-41.5 1.6-1.9 3.2-3.7 4.9-5.6 36.5-42.1 56.7-95.7 56.7-151 0-56.6-20.9-111.1-58.8-153.6l-5.4-6c-6.4-13-3.2-28.8 7.8-38.2 11-9.5 27.1-10.3 39-2 3.1 3.4 6.3 6.8 9.4 10.2 45.2 53.1 70 120.3 70 189.6 0 71.3-26.2 140.1-73.7 193.8l-5.4 6.1z",upload:"M392 325.7s-54.2-68.6-127.7-12.6c-65.8 53.5-54.2 151.3-54.2 151.3S64 501.9 64 697.9c3.3 195.8 158.7 197.8 158.7 197.8l233.3 0.3V686.4H344.2L512 476.9l167.9 209.6H568V896l226.6-0.3s144.7 0.2 165-186.1c9.7-203.7-139.8-243.8-139.8-243.8s17-301.5-192.9-335.9C446.8 105.7 392 325.7 392 325.7z",user:"M929.2 960c-13.7 0-25.5-8.9-29.5-22-12.6-41.6-31.5-80.7-56.4-116.4-24.5-35.2-54.2-66.2-88.2-92-70.6-53.7-154.7-82.1-243.2-82.1-88.4 0-172.5 28.4-243 82-34 25.8-63.6 56.7-88.2 91.9-24.9 35.6-43.8 74.7-56.4 116.2-2.4 8-7.8 14.5-15.1 18.4-7.3 3.9-15.6 4.6-23.5 2.2-16.2-5-25.3-22.4-20.4-38.8 14.5-47.8 36.4-92.8 65-133.8 28.2-40.4 62.4-76 101.5-105.7 39.6-30.1 83.3-53.5 129.9-69.5 48.3-16.6 98.8-25 150.2-25 51.5 0 102 8.4 150.3 25.1 46.7 16.1 90.4 39.5 130 69.6 39.1 29.8 73.2 65.4 101.5 105.9 28.6 41 50.4 86.1 64.9 134 4.9 16.3-4.2 33.7-20.4 38.7-2.9 0.8-6 1.3-9 1.3zM512 569c-67.4 0-130.9-26.3-178.6-74-47.7-47.7-74-111.1-74-178.6s26.3-130.9 74-178.6C381.1 90.3 444.5 64 512 64c67.4 0 130.9 26.3 178.6 74 47.7 47.7 74 111.1 74 178.5s-26.3 130.9-74 178.6C642.9 542.8 579.4 569 512 569z m0-443.4c-51 0-98.9 19.9-135 55.9-36.1 36.1-55.9 84-55.9 135s19.9 98.9 55.9 135c36.1 36.1 84 55.9 135 55.9s99-19.9 135-55.9c36.1-36.1 55.9-84 55.9-135s-19.9-98.9-55.9-135c-36.1-36.1-84-55.9-135-55.9z",vip:"M511.9 946.7c-8.5 0-16.6-4-21.8-10.8L165 511.8c-6.1-7.7-7.6-18.2-3.9-27.3 3.7-9.2 12.1-15.6 22-16.9 8.2-1 16.3 1.7 22.2 7.2h0.5l306.1 399.3 222.7-290.6c4.5-5.8 10.9-9.5 18.2-10.5 7.3-1 14.5 1 20.3 5.4 12 9.2 14.3 26.5 5.1 38.5l-244.5 319c-5.1 6.7-13.3 10.8-21.8 10.8z m75.6-332h-1.7a16 16 0 0 1-3.9-0.5l-2.7-0.5-3.9-1.4-0.6-0.3c-7.5-4-11.7-11.4-11.7-20.7V432c0-19.9 12-31.3 32.8-31.3h57.5c21.6 0 38.3 5.4 49.6 16 11.5 10.8 17.3 26.7 17.3 47.3 0 21.6-7.5 38.4-22.3 49.9-12.1 9.2-27.2 13.9-45.1 13.9h-42.6v63.5c0 9.3-4.1 16.7-11.7 20.7l-0.6 0.3-3.9 1.4-2.7 0.5c-1.1 0.4-2.4 0.5-3.8 0.5z m22.8-118.2h33.8c5.9 0 10.7-1.2 14.4-3.5l0.1-0.1c3.2-1.9 5.6-4.5 7.4-8l0.1-0.2c1.8-3.2 3.1-6.9 3.9-11 0.6-3.4 0.8-6.9 0.8-10.4 0-1.5-0.1-3-0.2-4.6v-0.8c0-1.6-0.1-3.1-0.4-4.6-0.7-4.3-1.8-7.8-3.2-10.7-1.8-3.3-4-5.9-6.9-7.6-3.7-2.2-8.6-3.3-14.3-3.3h-35.5v64.8zM488 600c-0.6-137.8-0.9-183.2 0-187 2-8.1 10.6-19.4 24-19 11.6 0.3 21.5 9.3 23 21 0.1 61.8 0.1 123.6 0.2 185.3-1.6 11.7-11.6 20.5-23.2 20.7-12 0.2-22.5-8.9-24-21z m-100.9 14.7c-14 0-24.4-7.3-29.3-20.6l-60.2-169-0.1-0.7c-0.3-1.4-0.4-2.8-0.4-4.2 0-14.6 9.3-23.3 25-23.3 8.5 0 13.6 3.6 16.4 6.6l0.3 0.4c1.3 1.5 2.4 3.2 3.3 5.2l0.4 0.8 0.4 0.6 50.6 145.8L444.4 408c2.7-7 8.4-11 15.6-11 10.1 0 16.7 6.6 16.7 16.7v2.7l-61 177.5c-1.6 4.7-4.2 9-7.8 12.6l-0.1 0.1c-5.7 5.4-12.6 8.1-20.7 8.1z m422.5-56.2c-5.8 0-11.7-1.9-16.7-5.7-11.7-9-14.2-25.5-5.7-37.6l0.2-0.3L910.7 354c9.2-12 26.4-14.3 38.4-5.1 12 9.2 14.3 26.4 5.1 38.5l-123.4 161-0.1 0.1c-5.5 6.6-13.3 10-21.1 10z m-669-96.1c-7.9 0-15.7-3.4-21.1-9.9l-0.2-0.3-49.7-64.8c-4.5-5.8-6.4-13-5.4-20.3 1-7.3 4.7-13.7 10.5-18.2 12-9.2 29.3-6.9 38.5 5.1l49.8 65c8.5 12.1 6 28.6-5.7 37.6-5 3.9-10.8 5.8-16.7 5.8z m643.6-88.6h-545c-13.4 0-24.4-10.9-24.4-24.4 0-13.4 10.9-24.4 24.4-24.4h545c13.4 0 24.4 10.9 24.4 24.4-0.1 13.5-11 24.4-24.4 24.4z m148.4-48.6c-8.8 0-17.2-4.3-22.4-11.6l-45.6-62.8c-4.3-5.9-6.1-13.2-4.9-20.4 1.1-7.2 5-13.6 11-17.9 12.2-8.9 29.4-6.2 38.3 6.1l45.7 62.9c5.8 7.8 7 18.3 3 27.4-4 9-12.5 15.2-22.4 16.2-0.9 0.1-1.8 0.1-2.7 0.1zM91.4 315c-5.6 0-11.2-1.7-16.1-5.2-12.2-8.9-15-26.1-6.1-38.3L202 88.6c5.1-7.1 13.4-11.3 22.2-11.3h575.4c8.7 0 17 4.2 22.2 11.3l51.6 71c4.3 5.9 6 13.2 4.9 20.4-1.1 7.2-5.1 13.6-11 17.9-5.9 4.3-13.2 6-20.4 4.9-7.2-1.1-13.6-5.1-17.9-11l-43.4-59.7H238.2L113.6 303.7c-5.3 7.4-13.7 11.3-22.2 11.3z",warning:"M907.3 931H116.7c-20.2 0-36.9-8.4-46-23.2-9-14.7-8.9-33.5 0.3-51.5l363.3-711.7c13.5-26.4 45.6-48 76.2-51.3l2.7-0.3 2.7 0.3c30.7 3.3 62.7 24.9 76.2 51.4l361.2 711.5c9.1 18 9.2 36.8 0.2 51.6-9.3 14.7-26 23.2-46.2 23.2z m-791.8-50.7h793.1c-0.2-0.4-0.3-0.8-0.6-1.2l-0.9-1.7-360.3-709.8c-5.4-10.7-20.4-21.1-33.7-23.6-13.4 2.5-28.4 12.9-33.8 23.6L116 879.3c-0.2 0.3-0.3 0.7-0.5 1zM512 812c-24.3 0-44-19.7-44-44s19.7-44 44-44 44 19.7 44 44-19.7 44-44 44z m0-108c-16.5 0-30-13.5-30-30V330c0-16.5 13.5-30 30-30s30 13.5 30 30v344c0 16.5-13.5 30-30 30z",wallet:"M384.5 682.6V341.4c0-47 39.4-85.4 88.5-85.4h408.1v-42.6c0-47-39.2-85.4-87.6-85.4H155.2c-49.1 0-91.2 37-91.2 84v600c0 47 42.1 84 91.2 84h638.1c48.7 0 87.6-38.4 87.6-85.4V768H472.7c-48.9 0-88.2-38.4-88.2-85.4zM448 355.7v312.6c0 19.6 16.8 35.7 37.4 35.7h437.2c20.6 0 37.4-16.1 37.4-35.7V355.7c0-19.6-16.8-35.7-37.4-35.7H485.4c-20.6 0-37.4 16.1-37.4 35.7z m195.9 227.4c-43 2.7-78.4-32.8-75.8-75.8 2.2-35.4 31-64.2 66.6-66.7 43-2.7 78.4 32.8 75.8 75.8-2.5 35.7-31.2 64.5-66.6 66.7z",windows:"M431.2 491.5H64V187.3l367.2-50.6v354.8z m0 395.8L64 836.7V536.8h367.2v350.5zM960 491.5H471.6V131.3L960 64v427.5z m0 468.5l-488.4-67.3V536.8H960V960z"};var z=c;export{z as default}; diff --git a/src/js/lib/layer/index.js b/src/js/lib/layer/index.js index 77edb1f..0008f67 100644 --- a/src/js/lib/layer/index.js +++ b/src/js/lib/layer/index.js @@ -1,13 +1,14 @@ /** * * @authors yutent (yutent.io@gmail.com) - * @date 2020-11-17 09:10:37 - * @version v1.0.0 + * @date 2022-09-12 18:13:11 + * @version v1.0.6 * */ -import"../form/input.js";import Drag from"../drag/core.js";import $ from"../utils.js";const LANGUAGES={en:{TITLE:"Dialog",BTNS:["Cancel","OK"]},zh:{TITLE:"提示",BTNS:["取消","确定"]}};LANGUAGES["zh-CN"]=LANGUAGES.zh;const lang=LANGUAGES[window.__ENV_LANG__||navigator.language]||LANGUAGES.en;let uniqueInstance=null,toastInstance=null;const UNIQUE_TYPES=["alert","confirm","prompt"];function renderBtns(t){var e="";return t.forEach((t,s)=>{e+=``}),e}class Layer extends HTMLElement{static get observedAttributes(){return["left","right","top","bottom","from","to","btns","type","title","blur","background","mask","radius","mask-close","mask-color","fixed"]}constructor(){super(),Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(this,"props",{value:{left:"auto",right:"auto",top:"auto",bottom:"auto",from:Object.create(null),to:Object.create(null),btns:[],type:"",title:"",blur:!1,background:null,mask:!1,radius:null,"mask-close":!1,"mask-color":null,fixed:!0},writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML='
      ',this.__TITLE__=this.root.children[1].firstElementChild,this.__BODY__=this.root.children[1].children[1],this.__CTRL__=this.root.children[1].lastElementChild,this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}set title(t){this.props.title=t,t?(this.__TITLE__.firstElementChild?this.__TITLE__.insertBefore(document.createTextNode(t),this.__TITLE__.firstElementChild):this.__TITLE__.textContent=t,this.__TITLE__.style.display="flex"):this.__TITLE__.style.display=""}set type(t){var{btns:e}=this.props;if(t&&!this._handleBtnClick){switch(t){case"alert":for(;e.length>1;)e.splice(0,1);break;case"confirm":case"prompt":for(;e.length>2;)e.splice(0,1);break;case"toast":case"notify":case"frame":if("notify"===t){var s=document.createElement("wc-icon");s.setAttribute("is","close"),this.__TITLE__.appendChild(s)}e=[];break;default:t="common"}this.props.type=t,e.length?(this.__CTRL__.innerHTML=renderBtns(e),this.__CTRL__.style.display="flex"):this.__CTRL__.style.display="",this.setAttribute(t,"")}}set fixed(t){this.props.fixed=!!t,this._updateFixedStat()}_updateFixedStat(){UNIQUE_TYPES.includes(this.props.type)||(this.props.fixed?this._dragIns&&(this._dragIns.destroy(),this._dragIns=null):(this._dragIns=new Drag(this.root.children[1]).by(this.__TITLE__,{overflow:!!this.props.hasOwnProperty("overflow")&&this.props.overflow}),this.removeAttribute("fixed")))}_intercept(t){this.props.intercept?this.props.intercept(t,e=>{delete this.props.intercept,this.resolve(t),this.close()}):(this.resolve(t),this.close())}close(t){if(!1===this.wrapped)if(this._dragIns&&this._dragIns.destroy(),UNIQUE_TYPES.includes(this.props.type)&&(uniqueInstance=null),delete this.promise,$.unbind(this.__CTRL__,"click",this._handleBtnClick),this.props.from&&!t){let t="opacity:0;";for(let e in this.props.from)t+=`${e}:${this.props.from[e]};`;this.root.children[1].style.cssText+=t,this.timer=setTimeout(()=>{this.parentNode.removeChild(this),this.dispatchEvent(new CustomEvent("close"))},200)}else clearTimeout(this.timer),this.parentNode.removeChild(this),this.dispatchEvent(new CustomEvent("close"));else this.removeAttribute("common"),this.dispatchEvent(new CustomEvent("close"))}show(){!1!==this.wrapped&&this.setAttribute("common","")}moveTo(t={}){var e="";for(var s in t)e+=`${s}:${t[s]};`;this.root.children[1].style.cssText+=e}connectedCallback(){this.type=this.props.type,this.title=this.props.title,this._handleBtnClick=$.bind(this.__CTRL__,"click",t=>{if("BUTTON"===t.target.tagName){var e=+t.target.dataset.idx,{type:s}=this.props;switch(s){case"alert":this.resolve(),this.close();break;case"confirm":case"prompt":if(0===e)this.reject(),this.close();else{let t="prompt"===s?this.__INPUT__.value:null;this._intercept(t)}break;default:this._intercept(e)}}}),"prompt"===this.props.type&&(this.__INPUT__=this.__BODY__.firstElementChild.assignedNodes().pop(),this._handleSubmit=$.bind(this.__INPUT__,"submit",t=>{this._intercept(t.detail)})),this.props.mask&&this.setAttribute("mask",""),this._updateFixedStat(),this.props.mask&&(this._handlMask=$.outside(this.root.children[1],t=>{t.target===this&&(this.props["mask-close"]?(!1===this.wrapped&&this.reject(null),this.close()):UNIQUE_TYPES.includes(this.props.type)&&(this.root.children[1].classList.toggle("scale",!0),setTimeout(t=>{this.root.children[1].classList.remove("scale")},100)))}),this.props["mask-color"]&&(this.style.backgroundColor=this.props["mask-color"])),this.props.blur&&this.root.children[1].classList.toggle("blur",!0);let t=this.props.from?"":"opacity:1;";if(this.props.background&&(t+=`background: ${this.props.background};`),(this.props.radius||0===this.props.radius)&&(t+=`border-radius: ${this.props.radius};`),this.props.size)for(let e in this.props.size)t+=`${e}:${this.props.size[e]};`;if(this.props.from){for(let e in this.props.from)t+=`${e}:${this.props.from[e]};`;setTimeout(t=>{let e="opacity:1;";for(let t in this.props.to)e+=`${t}:${this.props.to[t]};`;this.root.children[1].style.cssText+=e},50)}t&&(this.root.children[1].style.cssText+=t),"toast"===this.props.type&&(this.timer=setTimeout(()=>{toastInstance=null,this.close()},3e3)),"notify"===this.props.type&&(this._handleClose=$.bind(this.__TITLE__,"click",t=>{"WC-ICON"===t.target.tagName&&this.close()}))}disconnectedCallback(){$.clearOutside(this._handlMask),$.unbind(this.__TITLE__,"click",this._handleClose)}attributeChangedCallback(t,e,s){if(null!==s&&e!==s)switch(t){case"title":case"type":this[t]=s,this.removeAttribute(t);break;case"mask-color":case"background":this.props[t]=s;break;case"mask":case"mask-close":case"blur":this.props[t]=!0;break;case"radius":this.props.radius=s;break;case"left":case"right":case"top":case"bottom":this.props.from[t]=s,this.props.to=this.props.from,this.removeAttribute(t);break;case"fixed":this.fixed=!0}}}function _layer(t){var e=document.createElement("wc-layer");if(t.type||(t.type="common"),"toast"===t.type){var{type:s,content:o}=t;t={type:s,content:o,from:{top:0},to:{top:"30px"}},toastInstance&&toastInstance.close(!0),toastInstance=e}else e.props.mask=t.mask,!1===t.btns?e.props.btns=[]:t.btns&&t.btns.length?e.props.btns=t.btns:e.props.btns=lang.BTNS.concat(),t.intercept&&"function"==typeof t.intercept&&(e.props.intercept=t.intercept),e.props.mask=t.mask,e.props["mask-close"]=t["mask-close"],t.hasOwnProperty("overflow")&&(e.props.overflow=t.overflow),e.props["mask-color"]=t["mask-color"],e.props.blur=t.blur,e.props.radius=t.radius,e.props.background=t.background,t.size&&"object"==typeof t.size&&(e.props.size=t.size),UNIQUE_TYPES.includes(t.type)&&(uniqueInstance&&uniqueInstance.close(!0),uniqueInstance=e);return t.to&&"object"==typeof t.to&&(e.props.to=t.to,t.from&&"object"==typeof t.from?e.props.from=t.from:e.props.from=t.to),e.props.type=t.type,e.props.title=t.title,t.hasOwnProperty("fixed")&&(e.props.fixed=t.fixed),e.innerHTML=t.content,e.wrapped=!1,document.body.appendChild(e),e.promise}Object.assign(_layer,{alert(t,e=lang.TITLE){return this({type:"alert",title:e,content:t,mask:!0})},confirm(t,e=lang.TITLE,s){return"function"==typeof e&&(s=e,e=lang.TITLE),this({type:"confirm",title:e,content:t,mask:!0,intercept:s})},prompt(t=lang.TITLE,e){return this({type:"prompt",title:t,content:'',mask:!0,intercept:e})},frame(t,e={}){return this({...e,type:"frame",content:``,mask:!0,"mask-close":!0})},notify(t){return this({type:"notify",title:"通知",content:t,blur:!0,from:{right:"-300px",top:0},to:{right:0}})},toast(t,e="info"){var s=e;switch(e){case"info":case"warn":break;case"error":s="deny";break;case"success":s="get";break;default:s="info"}return this({content:`\n
      \n \n ${t}\n
      `,type:"toast"})}}),window.layer=_layer;export default _layer; +var k=Object.defineProperty,x=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var d=(s,e,t)=>e in s?k(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,f=(s,e)=>{for(var t in e||(e={}))w.call(e,t)&&d(s,t,e[t]);if(_)for(var t of _(e))v.call(e,t)&&d(s,t,e[t]);return s},u=(s,e)=>x(s,T(e));var m=(s,e,t)=>(d(s,typeof e!="symbol"?e+"":e,t),t);import"../form/input.js";import E from"../drag/core.js";import i from"../utils.js";const l={en:{TITLE:"Dialog",BTNS:["Cancel","OK"]},cn:{TITLE:"\u63D0\u793A",BTNS:["\u53D6\u6D88","\u786E\u5B9A"]}};l["zh-CN"]=l.cn;const a=l[window.__ENV_LANG__||navigator.language]||l.cn;let c=null,h=null;const p=["alert","confirm","prompt"];function C(s){var e="";return s.forEach((t,r)=>{e+=``}),e}class y extends HTMLElement{constructor(){super();m(this,"props",{left:"auto",right:"auto",top:"auto",bottom:"auto",from:Object.create(null),to:Object.create(null),btns:[],type:"",title:"",blur:!1,background:null,mask:!1,radius:null,"mask-close":!1,"mask-color":null,fixed:!0});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML='
      ',this.__TITLE__=this.root.children[1].firstElementChild,this.__BODY__=this.root.children[1].children[1],this.__CTRL__=this.root.children[1].lastElementChild,this.promise=new Promise((t,r)=>{this.resolve=t,this.reject=r})}static get observedAttributes(){return["left","right","top","bottom","from","to","btns","type","title","blur","background","mask","radius","mask-close","mask-color","fixed"]}set title(t){this.props.title=t,t?(this.__TITLE__.firstElementChild?this.__TITLE__.insertBefore(document.createTextNode(t),this.__TITLE__.firstElementChild):this.__TITLE__.textContent=t,this.__TITLE__.style.display="flex"):this.__TITLE__.style.display=""}set type(t){var{btns:r}=this.props;if(!(!t||this._handleBtnClick)){switch(t){case"alert":for(;r.length>1;)r.shift();break;case"confirm":case"prompt":for(;r.length>2;)r.shift();break;case"toast":case"notify":case"frame":if(t==="notify"){var o=document.createElement("wc-icon");o.setAttribute("is","close"),this.__TITLE__.appendChild(o)}r=[];break;default:t="common";break}this.props.type=t,r.length?(this.__CTRL__.innerHTML=C(r),this.__CTRL__.style.display="flex"):this.__CTRL__.style.display="",this.setAttribute(t,"")}}set fixed(t){this.props.fixed=!!t,this._updateFixedStat()}_updateFixedStat(){p.includes(this.props.type)||(this.props.fixed?this._dragIns&&(this._dragIns.destroy(),this._dragIns=null):(this._dragIns=new E(this.root.children[1]).by(this.__TITLE__,{overflow:this.props.hasOwnProperty("overflow")?this.props.overflow:!1}),this.removeAttribute("fixed")))}_intercept(t){this.props.intercept?this.props.intercept(t,r=>{delete this.props.intercept,this.resolve(t),this.close()}):(this.resolve(t),this.close())}close(t){if(this.wrapped===!1)if(this._dragIns&&this._dragIns.destroy(),p.includes(this.props.type)&&(c=null),delete this.promise,i.unbind(this.__CTRL__,"click",this._handleBtnClick),this.props.from&&!t){let r="opacity:0;";for(let o in this.props.from)r+=`${o}:${this.props.from[o]};`;this.root.children[1].style.cssText+=r,this.timer=setTimeout(()=>{this.parentNode.removeChild(this),this.dispatchEvent(new CustomEvent("close"))},200)}else clearTimeout(this.timer),this.parentNode.removeChild(this),this.dispatchEvent(new CustomEvent("close"));else this.removeAttribute("common"),this.dispatchEvent(new CustomEvent("close"))}show(){this.wrapped!==!1&&this.setAttribute("common","")}moveTo(t={}){var r="";for(var o in t)r+=`${o}:${t[o]};`;this.root.children[1].style.cssText+=r}connectedCallback(){this.type=this.props.type,this.title=this.props.title,this._handleBtnClick=i.bind(this.__CTRL__,"click",r=>{if(r.target.tagName==="BUTTON"){var o=+r.target.dataset.idx,{type:n}=this.props;switch(n){case"alert":this.resolve(),this.close();break;case"confirm":case"prompt":if(o===0)this.reject(),this.close();else{let g=n==="prompt"?this.__INPUT__.value:null;this._intercept(g)}break;default:this._intercept(o);break}}}),this.props.type==="prompt"&&(this.__INPUT__=this.__BODY__.firstElementChild.assignedNodes().pop(),this._handleSubmit=i.bind(this.__INPUT__,"submit",r=>{this._intercept(r.detail)})),this.props.mask&&this.setAttribute("mask",""),this._updateFixedStat(),this.props.mask&&(this._handlMask=i.outside(this.root.children[1],r=>{r.target===this&&(this.props["mask-close"]?(this.wrapped===!1&&this.reject(null),this.close()):p.includes(this.props.type)&&(this.root.children[1].classList.toggle("scale",!0),setTimeout(o=>{this.root.children[1].classList.remove("scale")},100)))}),this.props["mask-color"]&&(this.style.backgroundColor=this.props["mask-color"])),this.props.blur&&this.root.children[1].classList.toggle("blur",!0);let t=this.props.from?"":"opacity:1;";if(this.props.background&&(t+=`background: ${this.props.background};`,this.props.background==="transparent"&&(t+="box-shadow:none;")),(this.props.radius||this.props.radius===0)&&(t+=`border-radius: ${this.props.radius};`),this.props.size)for(let r in this.props.size)t+=`${r}:${this.props.size[r]};`;if(this.props.from){for(let r in this.props.from)t+=`${r}:${this.props.from[r]};`;setTimeout(r=>{let o="opacity:1;";for(let n in this.props.to)o+=`${n}:${this.props.to[n]};`;this.root.children[1].style.cssText+=o},50)}t&&(this.root.children[1].style.cssText+=t),this.props.btns.length&&(this.__CTRL__.lastElementChild.setAttribute("autofocus",""),setTimeout(r=>this.__CTRL__.lastElementChild.focus(),10)),this.props.type==="toast"&&(this.timer=setTimeout(()=>{h=null,this.close()},3e3)),this.props.type==="notify"&&(this._handleClose=i.bind(this.__TITLE__,"click",r=>{r.target.tagName==="WC-ICON"&&this.close()}))}disconnectedCallback(){i.clearOutside(this._handlMask),i.unbind(this.__TITLE__,"click",this._handleClose),i.unbind(this.__CTRL__,"click",this._handleBtnClick),this._handleSubmit&&i.unbind(this.__INPUT__,"submit",this._handleSubmit)}attributeChangedCallback(t,r,o){if(r!==o)switch(t){case"title":case"type":this[t]=o;break;case"mask-color":case"background":this.props[t]=o;break;case"mask":case"mask-close":case"blur":this.props[t]=!0;break;case"radius":this.props.radius=o;break;case"left":case"right":case"top":case"bottom":this.props.from[t]=o,this.props.to=this.props.from,this.removeAttribute(t);break;case"fixed":this.fixed=!0;break}}}function b(s){var e=document.createElement("wc-layer");if(s.type||(s.type="common"),s.type==="toast"){var{type:t,content:r}=s;s={type:t,content:r,from:{top:0},to:{top:"30px"}},h&&h.close(!0),h=e}else e.props.mask=s.mask,s.btns===!1?e.props.btns=[]:s.btns&&s.btns.length?e.props.btns=s.btns:e.props.btns=a.BTNS.concat(),s.intercept&&typeof s.intercept=="function"&&(e.props.intercept=s.intercept),e.props.mask=s.mask,e.props["mask-close"]=s["mask-close"],s.hasOwnProperty("overflow")&&(e.props.overflow=s.overflow),e.props["mask-color"]=s["mask-color"],e.props.blur=s.blur,e.props.radius=s.radius,e.props.background=s.background,s.size&&typeof s.size=="object"&&(e.props.size=s.size),p.includes(s.type)&&(c&&c.close(!0),c=e);return s.to&&typeof s.to=="object"&&(e.props.to=s.to,s.from&&typeof s.from=="object"?e.props.from=s.from:e.props.from=s.to),e.props.type=s.type,e.props.title=s.title,s.hasOwnProperty("fixed")&&(e.props.fixed=s.fixed),e.innerHTML=s.content,e.wrapped=!1,document.body.appendChild(e),e.promise}Object.assign(b,{alert(s,e=a.TITLE,t){return typeof e=="object"&&(t=e,e=a.TITLE),this({type:"alert",title:e,content:s,mask:!0,btns:t})},confirm(s,e=a.TITLE,t){return typeof e=="object"&&(t=e,e=a.TITLE),this({type:"confirm",title:e,content:s,mask:!0,btns:t})},prompt(s=a.TITLE,e="",t){return typeof e=="function"&&(t=e,e=""),t||(t=function(r,o){r&&o()}),this({type:"prompt",title:s,content:``,mask:!0,intercept:t})},frame(s,e={}){return this(u(f({},e),{type:"frame",content:``,mask:!0,"mask-close":!0}))},notify(s){return this({type:"notify",title:"\u901A\u77E5",content:s,blur:!0,from:{right:"-300px",top:0},to:{right:0}})},toast(s,e="info"){var t=e;switch(e){case"info":case"warning":break;case"error":t="deny";break;case"success":t="get";break;default:t="info"}return this({content:` +
      + + ${s} +
      `,type:"toast"})}}),window.layer=b,customElements.get("wc-layer")||customElements.define("wc-layer",y);export{y as default}; -if(!customElements.get('wc-layer')){ - customElements.define('wc-layer', Layer) -} diff --git a/src/js/lib/scroll/index.js b/src/js/lib/scroll/index.js index aded41a..0befc46 100644 --- a/src/js/lib/scroll/index.js +++ b/src/js/lib/scroll/index.js @@ -1,13 +1,10 @@ /** * * @authors yutent (yutent.io@gmail.com) - * @date 2020-11-17 09:10:37 - * @version v1.0.0 + * @date 2022-09-12 18:13:11 + * @version v1.0.6 * */ -import $ from"../utils.js";const IS_FF=!!window.sidebar;export default class Scroll extends HTMLElement{static get observedAttributes(){return["thumbX","thumbY","disabled","axis","delay","distance"]}constructor(){super(),Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(this,"props",{value:{thumbX:0,thumbY:0,disabled:!1,axis:"xy",delay:1e3,distance:1},writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML='
      ',this.__BOX__=this.root.children[1],this.__X__=this.root.children[2].children[0],this.__Y__=this.root.children[3].children[0],this.__last__=0}get scrollTop(){return this.__BOX__.scrollTop}set scrollTop(t){if((t=+t)==t){var{sh:s,oh:i,yh:e}=this.props;this.__BOX__.scrollTop=t;var h=this.__BOX__.scrollTop/(s-i)*(i-e);this.props.thumbY=h,this.__Y__.style.transform=`translateY(${h}px)`}}get scrollLeft(){return this.__BOX__.scrollLeft}set scrollLeft(t){if((t=+t)==t){var{sw:s,ow:i,xw:e}=this.props;this.__BOX__.scrollLeft=t;var h=this.__BOX__.scrollLeft/(s-i)*(i-e);this.props.thumbX=h,this.__X__.style.transform=`translateX(${h}px)`}}get scrollHeight(){return this.__BOX__.scrollHeight}get scrollWidth(){return this.__BOX__.scrollWidth}get disabled(){return this.props.disabled}set disabled(t){var s=typeof t;t!==this.props.disabled&&("boolean"===s&&t||"boolean"!==s?(this.props.disabled=!0,this.setAttribute("disabled","")):(this.props.disabled=!1,this.removeAttribute("disabled")))}_fetchScrollX(t){var{sw:s,ow:i,xw:e}=this.props;return t<0?t=0:t>i-e&&(t=i-e),this.__BOX__.scrollLeft=t/(i-e)*(s-i),this.__X__.style.transform=`translateX(${t}px)`,t}_fetchScrollY(t){var{sh:s,oh:i,yh:e}=this.props;return t<0?t=0:t>i-e&&(t=i-e),this.__BOX__.scrollTop=t/(i-e)*(s-i),this.__Y__.style.transform=`translateY(${t}px)`,t}_fireReachEnd(t="reach-bottom"){var{sh:s,oh:i,delay:e,disabled:h}=this.props,o=this.__BOX__.scrollTop,r=Date.now();if(!h&&r-this.__last__>e){if("reach-bottom"===t){if(i+o0)return;this.__last__=r,this.dispatchEvent(new CustomEvent(t))}}connectedCallback(){this._initFn=$.bind(this.__BOX__,"mouseenter",t=>{if(!this.disabled){var s=this.__BOX__.offsetWidth,i=this.__BOX__.scrollWidth,e=this.__BOX__.offsetHeight,h=this.__BOX__.scrollHeight,o=e*e/h>>0,r=s*s/i>>0;o<50&&(o=50),r<50&&(r=50),r===s&&(r=0),o===e&&(o=0),this.props.oh=e,this.props.sh=h,this.props.ow=s,this.props.sw=i,this.props.yh=o,this.props.xw=r,this.__X__.style.width=r+"px",this.__Y__.style.height=o+"px"}}),this._inactiveFn=$.bind(this.__BOX__,"mouseleave",t=>{delete this._active}),this._wheelFn=$.bind(this.__BOX__,"wheel",t=>{if(!this.disabled){var{sh:s,oh:i,yh:e,sw:h,ow:o,xw:r}=this.props;if(r||e){var a,l,_=Date.now();if((!this.stamp||_-this.stamp>800)&&(this.stamp=_,this.times=1),IS_FF)a=t.deltaMode?10*t.deltaX:t.deltaX,l=t.deltaMode?10*t.deltaY:t.deltaY;else{var n=Math.abs(t.wheelDelta);n<120?(a=t.deltaX,l=t.deltaY):(a=t.deltaX/(n/120),l=t.deltaY/(n/120))}if(_-this.stamp<20&&(this.times+=.05,this.times>3&&(this.times=3)),a*=this.times,l*=this.times,"x"!==this.props.axis&&(this.__BOX__.scrollTop+=l,e)){var p=this.__BOX__.scrollTop/(s-i)*(i-e);if((0===(p>>=0)||i-e===p)&&p===this.props.thumbY)return;t.preventDefault(),t.stopPropagation(),this.props.thumbY=p,this.__Y__.style.transform=`translateY(${p}px)`,Math.abs(l)>this.props.distance&&this._fireReachEnd(l>0?"reach-bottom":"reach-top")}if("y"!==this.props.axis&&(this.__BOX__.scrollLeft+=a,r)){var d=this.__BOX__.scrollLeft/(h-o)*(o-r);if((0===(d>>=0)||o-r===d)&&d===this.props.thumbX)return;t.preventDefault(),t.stopPropagation(),this.props.thumbX=d,this.__X__.style.transform=`translateX(${d}px)`}this._active=!0,this.stamp=_,this.dispatchEvent(new CustomEvent("scroll",{detail:{x:this.props.thumbX,y:this.props.thumbY}}))}}});var t,s,i,e,h=h=>{var{thumbY:o,thumbX:r}=this.props;null!==t&&(i=this._fetchScrollX(r+h.pageX-t)),null!==s&&(this._active=!0,e=this._fetchScrollY(o+h.pageY-s))},o=r=>{Math.abs(r.pageY-s)>this.props.distance&&this._fireReachEnd(r.pageY>s?"reach-bottom":"reach-top"),t=null,s=null,this.props.thumbX=i,this.props.thumbY=e,$.unbind(document,"mousemove",h),$.unbind(document,"mouseup",o)};$.bind(this.__Y__,"mousedown",t=>{s=t.pageY,this.props.thumbY||(this.props.thumbY=0),this.disabled||($.bind(document,"mousemove",h),$.bind(document,"mouseup",o))}),$.bind(this.__X__,"mousedown",s=>{t=s.pageX,this.props.thumbX||(this.props.thumbX=0),this.disabled||($.bind(document,"mousemove",h),$.bind(document,"mouseup",o))}),$.catch(document,"keydown",t=>{if(this._active){var{oh:s,sh:i}=this.props,e=!1;switch(t.keyCode){case 33:e=!0,this.scrollTop-=s;break;case 34:e=!0,this.scrollTop+=s;break;case 35:e=!0,this.scrollTop=i;break;case 36:e=!0,this.scrollTop=0}e&&t.preventDefault()}}),this.__observer=new MutationObserver(this._initFn),this.__observer.observe(this,{childList:!0,subtree:!0,characterData:!0})}disconnectedCallback(){this.__observer.disconnect(),$.unbind(this.__BOX__,"mouseenter",this._initFn),$.unbind(this.__BOX__,"mouseleave",this._inactiveFn),$.unbind(this.__BOX__,"wheel",this._wheelFn)}attributeChangedCallback(t,s,i){if(null!==i&&s!==i)switch(t){case"axis":this.props.axis=i;break;case"disabled":this[t]=!0;break;case"delay":this.props.delay=+i||1e3;break;case"distance":this.props.distance=+i||1}}} +var w=Object.defineProperty;var E=(g,f,t)=>f in g?w(g,f,{enumerable:!0,configurable:!0,writable:!0,value:t}):g[f]=t;var y=(g,f,t)=>(E(g,typeof f!="symbol"?f+"":f,t),t);import o from"../utils.js";const W=["x","y","xy"];class P extends HTMLElement{constructor(){super();y(this,"props",{axis:"xy",delay:1e3,distance:1});y(this,"state",{width:0,height:0,widthFixed:0,heightFixed:0,scrollWidth:0,scrollHeight:0,xBar:0,yBar:0,thumbX:0,thumbY:0});Object.defineProperty(this,"root",{value:this.attachShadow({mode:"open"}),writable:!0,enumerable:!1,configurable:!0}),this.root.innerHTML='
      ',this.__WRAPPER__=this.root.children[1].children[0],this.__CONTENT__=this.__WRAPPER__.firstElementChild,this.__X__=this.root.children[2].children[0],this.__Y__=this.root.children[3].children[0],this.__last__=0}static get observedAttributes(){return["axis","delay","distance"]}get scrollTop(){return this.__WRAPPER__.scrollTop}set scrollTop(t){t=+t,t===t&&(this.__WRAPPER__.scrollTop=t)}get scrollLeft(){return this.__WRAPPER__.scrollLeft}set scrollLeft(t){t=+t,t===t&&(this.__WRAPPER__.scrollLeft=t)}get scrollHeight(){return this.__WRAPPER__.scrollHeight}get scrollWidth(){return this.__WRAPPER__.scrollWidth}_fetchScrollX(t){var{scrollWidth:s,width:i,xBar:r}=this.state;return t<0?t=0:t>i-r&&(t=i-r),this.__WRAPPER__.scrollLeft=(s-i)*(t/(i-r)),this.__X__.style.transform=`translateX(${t}px)`,t}_fetchScrollY(t){var{scrollHeight:s,height:i,yBar:r}=this.state;return t<0?t=0:t>i-r&&(t=i-r),this.__WRAPPER__.scrollTop=(s-i)*(t/(i-r)),this.__Y__.style.transform=`translateY(${t}px)`,t}_fireReachEnd(t="reach-bottom"){var{delay:s}=this.props,{scrollHeight:i,height:r}=this.state,m=this.__WRAPPER__.scrollTop,v=Date.now();if(v-this.__last__>s){if(t==="reach-bottom"){if(r+m0)return;this.__last__=v,this.dispatchEvent(new CustomEvent(t))}}connectedCallback(){this._initFn=a=>{let h=this.offsetWidth,l=this.offsetHeight,b=this.__WRAPPER__.clientWidth,R=this.__WRAPPER__.clientHeight,d=this.__WRAPPER__.scrollWidth,x=this.__WRAPPER__.scrollHeight,c=50,_=50,{widthFixed:n,heightFixed:p}=this.state,u=!1,e="";n>0?(u=x===R,n=u?0:n):x>R&&(u=!0,n=h+(h-b)),p>0?(u=d===b,p=u?0:p):d>b&&(u=!0,p=l+(l-R)),this.state.widthFixed=n,this.state.heightFixed=p,u&&(n>0&&(e+=`width:${n}px;`),p>0&&(e+=`height:${p}px;`),this.__WRAPPER__.style.cssText=e,d=this.__WRAPPER__.scrollWidth,x=this.__WRAPPER__.scrollHeight),this.__WRAPPER__.parentNode.scrollTop=0,c=l*(l/x)>>0,_=h*(h/d)>>0,c<50&&(c=50),_<50&&(_=50),_>=h&&(_=0),c>=l&&(c=0),this.state.height=l,this.state.width=h,this.state.scrollHeight=x,this.state.scrollWidth=d,this.state.yBar=c,this.state.xBar=_,this.__X__.style.width=_+"px",this.__Y__.style.height=c+"px"},this._scrollFn=o.catch(this.__WRAPPER__,"scroll",a=>{if(!this._active){var{axis:h}=this.props,{xBar:l,yBar:b,thumbX:R,thumbY:d,scrollHeight:x,scrollWidth:c,width:_,height:n}=this.state,p=this.__WRAPPER__.scrollTop,u=this.__WRAPPER__.scrollLeft;if(!(l===0&&b===0)){if((h==="y"||h==="xy")&&b){let e=p/(x-n)*(n-b);e=e>>0,e!==d&&(this.state.thumbY=e,this.__Y__.style.transform=`translateY(${e}px)`,Math.abs(e-d)>this.props.distance&&this._fireReachEnd(e>d?"reach-bottom":"reach-top"))}if((h==="x"||h==="xy")&&l){let e=u/(c-_)*(_-l);e=e>>0,e!==R&&(this.state.thumbX=e,this.__X__.style.transform=`translateX(${e}px)`)}this.dispatchEvent(new CustomEvent("scroll"))}}});let t,s,i,r,m=a=>{let{thumbY:h,thumbX:l}=this.state;t!==void 0&&(i=this._fetchScrollX(l+a.pageX-t)),s!==void 0&&(r=this._fetchScrollY(h+a.pageY-s))},v=a=>{Math.abs(a.pageY-s)>this.props.distance&&this._fireReachEnd(a.pageY>s?"reach-bottom":"reach-top"),t=void 0,s=void 0,this.state.thumbX=i||0,this.state.thumbY=r||0,delete this._active,o.unbind(document,"mousemove",m),o.unbind(document,"mouseup",v)};this._yBarFn=o.bind(this.__Y__,"mousedown",a=>{s=a.pageY,this._active=!0,o.bind(document,"mousemove",m),o.bind(document,"mouseup",v)}),this._xBarFn=o.bind(this.__X__,"mousedown",a=>{t=a.pageX,this._active=!0,o.bind(document,"mousemove",m),o.bind(document,"mouseup",v)}),this.__observer=new ResizeObserver(this._initFn),this.__observer.observe(this.__CONTENT__)}disconnectedCallback(){this.__observer.disconnect(),o.unbind(this.__X__,"mousedown",this._xBarFn),o.unbind(this.__Y__,"mousedown",this._yBarFn),o.unbind(this.__WRAPPER__,"scroll",this._scrollFn)}attributeChangedCallback(t,s,i){if(s!==i)switch(t){case"axis":i?W.includes(i)?this.props.axis=i:this.removeAttribute(t):this.props.axis="xy";break;case"delay":this.props.delay=+i||1e3;break;case"distance":this.props.distance=+i||1;break}}}customElements.get("wc-scroll")||customElements.define("wc-scroll",P);export{P as default}; -if(!customElements.get('wc-scroll')){ - customElements.define('wc-scroll', Scroll) -} diff --git a/src/js/lib/socket.js b/src/js/lib/socket.js deleted file mode 100644 index dbb5cf2..0000000 --- a/src/js/lib/socket.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * 与主进程的通讯 - * @author yutent - * @date 2020/07/14 11:42:02 - */ - -const { ipcRenderer } = require('electron') -const EventEmitter = require('events') -const util = require('util') - -class Socket { - constructor() { - ipcRenderer.on('app', (ev, conn) => { - // console.log(ev, conn) - this.emit(conn.type, conn.data) - }) - } - - dispatch(type = '', data = {}) { - return ipcRenderer.sendSync('app', { data, type }) - } -} - -util.inherits(Socket, EventEmitter) - -export default new Socket() diff --git a/src/js/lib/store/index.js b/src/js/lib/store/index.js deleted file mode 100644 index e4ccb68..0000000 --- a/src/js/lib/store/index.js +++ /dev/null @@ -1 +0,0 @@ -const __STORE__={};function parse$And(_){let t="";for(let e in _){let i=_[e];switch(Anot.type(i)){case"object":if(i.$has){t+=`it.${e}.indexOf(${JSON.stringify(i.$has)}) > -1`;break}if(i.$in){t+=`${JSON.stringify(i.$in)}.indexOf(it.${e}) > -1`;break}if(i.$regex){t+=`${i.$regex}.test(it.${e})`;break}if(i.$lt||i.$lte){t+=`it.${e} <${i.$lte?"=":""} ${i.$lt||i.$lte}`,(i.$gt||i.$gte)&&(t+=` && it.${e} >${i.$gte?"=":""} ${i.$gt||i.$gte}`);break}if(i.$gt||i.$gte){t+=`it.${e} >${i.$gte?"=":""} ${i.$gt||i.$gte}`;break}if(i.$eq){t+=`it.${e} === ${i.$eq}`;break}default:t+=`it.${e} === ${JSON.stringify(_[e])}`}t+=" && "}return(t=t.slice(0,-4))||(t="true"),t}function parse$Or(_){let t="";return _.forEach(_=>{t+="(",t+=parse$And(_),t+=") || "}),t.slice(0,-4)}class AnotStore{constructor(_){Anot.hideProperty(this,"__name__",_),Anot.hideProperty(this,"__LAST_QUERY__",""),Anot.hideProperty(this,"__QUERY_HISTORY__",[]),__STORE__[_]||(__STORE__[_]=[],__STORE__[`${_}Dict`]={})}static collection(_){return new this(_)}__MAKE_FN__(_){let t="\n let result = [];\n let num = 0;\n for (let it of arr) {\n if(";return _.$or?t+=parse$Or(_.$or):t+=parse$And(_),t+="){\n result.push(it)\n num++\n if(limit > 0 && num >= limit){\n break\n }\n }\n }\n return result;",Function("arr","limit",t)}clear(_){this.__QUERY_HISTORY__=[],this.__LAST_QUERY__="",_&&(__STORE__[this.__name__]=[],__STORE__[`${this.__name__}Dict`]={})}getAll({filter:_,limit:t=[]}={}){const e=__STORE__[this.__name__];let i=[],r=!1;if(!e||!e.length)return i;if(t.length<1&&(t=[0]),t.length<2&&_&&(r=!0,t[0]>0&&t.unshift(0)),_){let n=JSON.stringify(_);if(this.__LAST_QUERY__===n)i=this.__QUERY_HISTORY__.slice.apply(this.__QUERY_HISTORY__,t);else{i=this.__MAKE_FN__(_)(e,r&&t[1]||0),r||(this.__LAST_QUERY__=n,this.__QUERY_HISTORY__=i,i=this.__QUERY_HISTORY__.slice.apply(this.__QUERY_HISTORY__,t))}}else i=e.slice.apply(e,t);return Anot.deepCopy(i)}get(_){const t=__STORE__[`${this.__name__}Dict`];return Anot.deepCopy(t[_])||null}count({filter:_}={}){return _?this.__LAST_QUERY__===JSON.stringify(_)?this.__QUERY_HISTORY__.length:this.getAll({filter:_,limit:[0]}).length:__STORE__[this.__name__].length}__INSERT__(_,t){let e=__STORE__[this.__name__],i=__STORE__[`${this.__name__}Dict`],r=_[t||"id"];i[r]?this.update(r,_):(e.push(_),i[r]=_)}insert(_,t){Array.isArray(_)||(_=[_]),_.forEach(_=>{this.__INSERT__(_,t)}),this.clear()}sort(_,t,e){let i="";t&&window.Intl&&(i+="\n let col = new Intl.Collator('zh')\n "),i+=e?"return arr.sort((b, a) => {":"return arr.sort((a, b) => {",i+=`\n let filter = function(val) {\n try {\n return val.${_} || ''\n } catch (err) {\n return ''\n }\n }\n `,t?window.Intl?i+="return col.compare(filter(a), filter(b))":i+="return (filter(a) + '').localeCompare(filter(b), 'zh')":i+="return filter(a) - filter(b)",i+="\n})",Function("arr",i).call(this,__STORE__[this.__name__]),this.clear()}update(_,t){let e=__STORE__[this.__name__],i=__STORE__[`${this.__name__}Dict`],r=i[_],n=e.indexOf(r);e.splice(n,1,t),i[_]=t}remove(_){let t=__STORE__[this.__name__],e=__STORE__[`${this.__name__}Dict`],i=e[_],r=t.indexOf(i);t.splice(r,1),delete e[_]}}Anot.store=window.store=AnotStore;export default AnotStore; \ No newline at end of file diff --git a/src/js/lib/utils.js b/src/js/lib/utils.js index d77e8ab..85e0dda 100644 --- a/src/js/lib/utils.js +++ b/src/js/lib/utils.js @@ -1 +1 @@ -function noop(){}export default{nextTick:function(){let t=[];let e=document.createTextNode("\x3c!-- --\x3e");new MutationObserver((function(){let e=t.length;for(let n=0;n{if(n)if(n.path){for(var i=n.path.concat();i.length>3;)if(i.shift()===t)return}else{var o=n.explicitOriginalTarget||n.target;if(t===o||t.contains(o)||t.root&&t.root.contains(o))return}e(n)})},clearOutside(t=noop){this.unbind(document,"mousedown",t)}}; \ No newline at end of file +function l(){}var o={nextTick:function(){let t=[],n=document.createTextNode(""),e=!1;function r(){let i=t.length;for(let a=0;a{if(e)if(e.path){for(var r=e.path.concat();r.length>3;)if(r.shift()===t)return}else{var i=e.explicitOriginalTarget||e.target;if(t===i||t.contains(i)||t.root&&t.root.contains(i))return}n(e)})},clearOutside(t=l){this.unbind(document,"mousedown",t)}};export{o as default}; diff --git a/src/main.js b/src/main.js index dd6b884..e7d1832 100644 --- a/src/main.js +++ b/src/main.js @@ -70,19 +70,11 @@ app.once('ready', () => { } }) }) - // 修改app的UA - session.defaultSession.setUserAgent( - 'KugouMusic/2.9.5 (Mac OS X Version 10.15.7 (Build 19H2))' - ) + let win = createMainWindow(path.resolve(__dirname, './images/app.png')) - // mac专属事件,点击dock栏图标,可激活窗口 - app.on('activate', _ => { - if (win) { - win.restore() - } - }) + ipcMain.on('app', (ev, conn) => { switch (conn.type) { diff --git a/src/tools/db/index.js b/src/tools/db/index.js deleted file mode 100644 index 49e0a2f..0000000 --- a/src/tools/db/index.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * - * @authors yutent (yutent.io@gmail.com) - * @date 2018-08-06 15:55:54 - */ - -Promise.defer = function() { - var obj = {} - obj.promise = new Promise((resolve, reject) => { - obj.resolve = resolve - obj.reject = reject - }) - return obj -} - -const sqlite3 = require('sqlite3').verbose() - -class Sqlite { - constructor(db) { - this.db = new sqlite3.Database(db) - } - - query(sql, ...param) { - let defer = Promise.defer() - param.unshift(sql) - param.push(err => { - if (err) { - return defer.reject(err) - } - defer.resolve(true) - }) - this.db.run.apply(this.db, param) - return defer.promise - } - - getAll(sql, ...param) { - let defer = Promise.defer() - param.unshift(sql) - param.push((err, row) => { - if (err) { - return defer.reject(err) - } - defer.resolve(row) - }) - this.db.all.apply(this.db, param) - return defer.promise - } - - get(sql, ...param) { - let defer = Promise.defer() - param.unshift(sql) - param.push((err, row) => { - if (err) { - return defer.reject(err) - } - defer.resolve(row) - }) - this.db.get.apply(this.db, param) - return defer.promise - } -} - -module.exports = Sqlite diff --git a/src/tools/db/init.js b/src/tools/db/init.js deleted file mode 100644 index e5b2853..0000000 --- a/src/tools/db/init.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * 初始化数据库 - * @author yutent - * @date 2020/07/14 18:17:59 - */ - -// 歌单 -const TABLE_PLAYLIST = ` -CREATE TABLE IF NOT EXISTS "playlist" ( - "id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, - "name" char(128) NOT NULL -) -` - -// aid: 歌手ID -const TABLE_SONGS = ` -CREATE TABLE IF NOT EXISTS "songs" ( - "id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, - "name" char(128) NOT NULL, - "artist" char(128) NOT NULL, - "album" char(128) NOT NULL, - "duration" integer NOT NULL, - "cover" char(256) NOT NULL, - "file_path" char(256) NOT NULL, - "lrc" text NOT NULL -) -` -// 歌曲和播放列表的关系表(多对多) -const TABLE_RELATIONS = ` -CREATE TABLE IF NOT EXISTS "relations" ( - "id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, - "sid" integer NOT NULL, - "pid" integer NOT NULL -) -` - -function error(err) { - console.log('----------------------------------------') - console.error(err) - console.log('----------------------------------------') -} - -module.exports = function(db) { - db.query(TABLE_PLAYLIST).catch(error) - db.query(TABLE_SONGS).catch(error) - db.query(TABLE_RELATIONS).catch(error) -} diff --git a/src/tools/init.js b/src/tools/init.js index 821647e..49f865c 100644 --- a/src/tools/init.js +++ b/src/tools/init.js @@ -5,15 +5,18 @@ */ const { app, ipcMain, globalShortcut: GS } = require('electron') -const path = require('path') +const { resolve, join } = require('path') const fs = require('iofs') -const sec = require('crypto.js') +// const sec = require('crypto.js') -const Shortcut = require('./shortcut') -const Sqlite = require('./db') -const dbinit = require('./db/init') +// const Shortcut = require('./shortcut') -const HOME = path.resolve(app.getPath('userData')) +const HOME = resolve(app.getPath('userData')) +const MUSIC_DIR = resolve(app.getPath('music'), 'sonist') +const CONFIG_FILE = join(HOME, 'sonist.json') +const SONGS_FILE = join(HOME, 'songs.json') +const PLAYLIST_FILE = join(HOME, 'playlist.json') +const SUPPORTED_EXTS = ['.mp3', '.webm', '.ogg', '.flac', '.m4a', '.aac'] /* ********** 修复环境变量 start *********** */ let PATH_SET = new Set() @@ -28,149 +31,132 @@ PATH_SET = null /* ********** 修复环境变量 end *********** */ -const DB_FILE = path.join(HOME, 'sqlite3.cache') -const INIT_FILE = path.join(HOME, 'app.ini') -const CACHE_DIR = path.join(HOME, 'other_cache') -const SUPPORTED_EXTS = ['.mp3', '.webm', '.ogg', '.flac', '.m4a', '.aac'] - -var isFirstTimeLaunch = false -var db = null - -if (!fs.exists(DB_FILE)) { - fs.echo('{}', INIT_FILE) - fs.mkdir(CACHE_DIR) - isFirstTimeLaunch = true -} - -db = new Sqlite(DB_FILE) - -if (isFirstTimeLaunch) { - dbinit(db) +if (!fs.exists(CONFIG_FILE)) { + fs.echo('{}', CONFIG_FILE) + fs.echo('[]', SONGS_FILE) + fs.echo('[]', PLAYLIST_FILE) + fs.mkdir(MUSIC_DIR) } /* ----------------------------------------------------------------- */ /* --------------------- 事件开始 ------------------------- */ /* ---------------------------------------------------------------- */ -ipcMain.on('app', (ev, conn) => { - switch (conn.type) { - // 获取所有书籍 - case 'get-playlist': - db.getAll('SELECT * FROM `playlist`') - .then(res => { - ev.returnValue = res - }) - .catch(err => { - ev.returnValue = err - }) - break - // 获取应用配置 - case 'get-init': - var ini = fs.cat(INIT_FILE).toString('') - ev.returnValue = JSON.parse(ini) - break - // 设置应用配置 - case 'set-init': - fs.echo(JSON.stringify(conn.data, null, 2), INIT_FILE) - break - - case 'add-song': - var { - name, - artist = '', - album = '', - duration, - cover = '', - file_path, - lrc = '' - } = conn.data - db.query( - 'INSERT INTO `songs` (name, artist, album, duration, cover, file_path, lrc) VALUES ($name, $artist, $album, $duration, $cover, $file_path, $lrc)', - { - $name: name, - $artist: artist, - $album: album, - $duration: duration, - $cover: cover, - $file_path: file_path, - $lrc: lrc - } - ) - ev.returnValue = true - break - - case 'get-all-songs': - db.getAll('SELECT id, name, duration, artist, file_path FROM songs') - .then(res => { - ev.returnValue = res - }) - .catch(err => { - ev.returnValue = err - }) - break - - case 'get-songs': - db.getAll( - 'SELECT id, name, duration, artist, file_path ' + - 'FROM songs ' + - 'WHERE id IN ' + - '(SELECT sid FROM relations WHERE pid = $pid)', - { $pid: conn.pid } - ) - .then(res => { - ev.returnValue = res - }) - .catch(err => { - ev.returnValue = err - }) - break - - // 扫描目录 - case 'scan-dir': - var { dir } = conn.data - if (fs.isdir(dir)) { - let list = fs - .ls(dir, true) - .filter(it => { - if (fs.isdir(it)) { - return false - } else { - let { ext, name } = path.parse(it) - if (!ext || name.startsWith('.')) { - return false - } - return SUPPORTED_EXTS.includes(ext) - } - }) - .map(it => { - var { ext, name } = path.parse(it) - var buf = fs.origin.createReadStream(it, { - start: 0, - end: 256, - encoding: 'base64' - }) - return { - name, - file_path: it, - artist: '', - album: '', - duration: '00:00' - } - }) - ev.returnValue = list - } else { - ev.returnValue = [] - } - break - - // 启用全局快捷键 - case 'enable-gs': - Shortcut.__init__() - break - - // 禁用全局快捷键 - case 'disable-gs': - GS.unregisterAll() - break - } +ipcMain.on('ready', ev => { + ev.returnValue = { CONFIG_FILE, SONGS_FILE, PLAYLIST_FILE, MUSIC_DIR } }) + +// ipcMain.on('app', (ev, conn) => { +// switch (conn.type) { +// // 获取所有书籍 +// case 'get-playlist': +// db.getAll('SELECT * FROM `playlist`') +// .then(res => { +// ev.returnValue = res +// }) +// .catch(err => { +// ev.returnValue = err +// }) +// break +// // 获取应用配置 +// case 'get-init': +// var ini = fs.cat(INIT_FILE).toString('') +// ev.returnValue = JSON.parse(ini) +// break +// // 设置应用配置 +// case 'set-init': +// fs.echo(JSON.stringify(conn.data, null, 2), INIT_FILE) +// break + +// case 'add-song': +// var { name, artist = '', album = '', duration, cover = '', file_path, lrc = '' } = conn.data +// db.query( +// 'INSERT INTO `songs` (name, artist, album, duration, cover, file_path, lrc) VALUES ($name, $artist, $album, $duration, $cover, $file_path, $lrc)', +// { +// $name: name, +// $artist: artist, +// $album: album, +// $duration: duration, +// $cover: cover, +// $file_path: file_path, +// $lrc: lrc +// } +// ) +// ev.returnValue = true +// break + +// case 'get-all-songs': +// db.getAll('SELECT id, name, duration, artist, file_path FROM songs') +// .then(res => { +// ev.returnValue = res +// }) +// .catch(err => { +// ev.returnValue = err +// }) +// break + +// case 'get-songs': +// db.getAll( +// 'SELECT id, name, duration, artist, file_path ' + +// 'FROM songs ' + +// 'WHERE id IN ' + +// '(SELECT sid FROM relations WHERE pid = $pid)', +// { $pid: conn.pid } +// ) +// .then(res => { +// ev.returnValue = res +// }) +// .catch(err => { +// ev.returnValue = err +// }) +// break + +// // 扫描目录 +// case 'scan-dir': +// var { dir } = conn.data +// if (fs.isdir(dir)) { +// let list = fs +// .ls(dir, true) +// .filter(it => { +// if (fs.isdir(it)) { +// return false +// } else { +// let { ext, name } = path.parse(it) +// if (!ext || name.startsWith('.')) { +// return false +// } +// return SUPPORTED_EXTS.includes(ext) +// } +// }) +// .map(it => { +// var { ext, name } = path.parse(it) +// var buf = fs.origin.createReadStream(it, { +// start: 0, +// end: 256, +// encoding: 'base64' +// }) +// return { +// name, +// file_path: it, +// artist: '', +// album: '', +// duration: '00:00' +// } +// }) +// ev.returnValue = list +// } else { +// ev.returnValue = [] +// } +// break + +// // 启用全局快捷键 +// case 'enable-gs': +// Shortcut.__init__() +// break + +// // 禁用全局快捷键 +// case 'disable-gs': +// GS.unregisterAll() +// break +// } +// }) diff --git a/src/tools/inject.js b/src/tools/inject.js new file mode 100644 index 0000000..ad194e6 --- /dev/null +++ b/src/tools/inject.js @@ -0,0 +1,33 @@ +/** + * {} + * @author yutent + * @date 2022/07/14 11:54:32 + */ + +const { ipcRenderer, shell, contextBridge, globalShortcut: GS } = require('electron') +const { resolve } = require('path') +const fs = require('iofs') + +const { CONFIG_FILE, SONGS_FILE, PLAYLIST_FILE, MUSIC_DIR } = ipcRenderer.sendSync('ready') + +let timer = null + +contextBridge.exposeInMainWorld('electron', { + hostname: HOST, + open(url) { + shell.openExternal(url) + }, + + getPlaylist() { + var cache = require(PLAYLIST_FILE) + return cache + }, + + updatePlaylist(data) { + fs.echo(data, PLAYLIST_FILE) + }, + + diableGS() { + GS.unregisterAll() + } +}) diff --git a/src/tools/menu.js b/src/tools/menu.js deleted file mode 100644 index 8b67f2c..0000000 --- a/src/tools/menu.js +++ /dev/null @@ -1,75 +0,0 @@ -/** - * 菜单项 - * @author yutent - * @date 2019/01/21 20:34:04 - */ - -'use strict' - -const { Tray, Menu, shell } = require('electron') - -module.exports = function(win) { - let menuList = Menu.buildFromTemplate([ - { - label: 'Sonist', - submenu: [ - { role: 'about', label: '关于 Sonist' }, - { type: 'separator' }, - { - label: '退出 Sonist', - accelerator: 'Command+Q', - click(a, b, ev) { - win.destroy() - } - } - ] - }, - { - label: '编辑', - submenu: [ - { role: 'undo', label: '撤消重做' }, - { role: 'redo', label: '重做' }, - { type: 'separator' }, - { role: 'cut', label: '剪切' }, - { role: 'copy', label: '复制' }, - { role: 'paste', label: '粘贴' }, - { role: 'selectall', label: '全选' } - ] - }, - { - label: '显示', - submenu: [ - { label: '显示桌面歌词' }, - { - type: 'separator' - }, - { label: '迷你模式' } - ] - }, - { - label: '窗口', - submenu: [ - { - role: 'minimize', - label: '最小化', - click() { - win.minimize() - } - } - ] - }, - { - role: 'help', - label: '帮助', - submenu: [ - { - label: '官网', - click() { - shell.openExternal('https://github.com/yutent/sonist') - } - } - ] - } - ]) - Menu.setApplicationMenu(menuList) -} diff --git a/src/tools/shortcut.js b/src/tools/shortcut.js index 666c2c0..7359470 100644 --- a/src/tools/shortcut.js +++ b/src/tools/shortcut.js @@ -4,8 +4,6 @@ * @date 2019/02/04 23:12:46 */ -'use strict' - const { app, globalShortcut: GS } = require('electron') module.exports = { diff --git a/src/tools/windows.js b/src/tools/windows.js index e9e4bee..90966c2 100644 --- a/src/tools/windows.js +++ b/src/tools/windows.js @@ -6,30 +6,27 @@ const { BrowserWindow } = require('electron') -const { createAppTray, createLrcTray, ctrlTrayBtn } = require('./tray.js') -const createMenu = require('./menu.js') +// const { createAppTray, createLrcTray, ctrlTrayBtn } = require('./tray.js') /** * 应用主窗口 */ -exports.createMainWindow = function(icon) { +exports.createMainWindow = function (icon) { // 创建浏览器窗口 let win = new BrowserWindow({ - title: 'sonist', - width: 820, - height: 460, + title: '', + width: 320, + height: 240, frame: false, - titleBarStyle: 'hiddenInset', resizable: false, maximizable: false, icon, - // transparent: true, + transparent: true, vibrancy: 'dark', - visualEffectState: 'active', webPreferences: { webSecurity: false, experimentalFeatures: true, - preload: '../js/lib/socket.js' + preload: './inject.js' }, show: false }) @@ -38,11 +35,9 @@ exports.createMainWindow = function(icon) { win.loadURL('app://local/index.html') - createAppTray(win) - ctrlTrayBtn(win) - createLrcTray(win) - - createMenu(win) + // createAppTray(win) + // ctrlTrayBtn(win) + // createLrcTray(win) win.on('ready-to-show', _ => { win.show()