From e2a9165f98aa752c5134115f6d03e37d2e693acf Mon Sep 17 00:00:00 2001 From: Israel Cruz Date: Tue, 19 Mar 2024 21:35:57 -0700 Subject: [PATCH 1/5] removing unsupported languages --- translate/es_tuesday_visual.html | 5911 ------------------------------ translate/ja_tuesday_visual.html | 5911 ------------------------------ translate/ru_tuesday_visual.html | 5911 ------------------------------ 3 files changed, 17733 deletions(-) delete mode 100644 translate/es_tuesday_visual.html delete mode 100644 translate/ja_tuesday_visual.html delete mode 100644 translate/ru_tuesday_visual.html diff --git a/translate/es_tuesday_visual.html b/translate/es_tuesday_visual.html deleted file mode 100644 index 857bed4..0000000 --- a/translate/es_tuesday_visual.html +++ /dev/null @@ -1,5911 +0,0 @@ - - - -Editor visual web Tuesday JS - - - - - - - - - -
- - - - - - - - - - -
Agregar bloque de historia
-
- -
- -
-
- -
- - - - - - - - - - - -
-
-
-
-
-
- - - - - - - -
-
-
-
-
-
-
-
- - - - - - - - - - - -
-
-
-
block name (Escena:1 | diálogo:1)
-
Vista Previa
-
- - - - - - -
Orientación - -
Afuera del escenario - -
Tamaño - -
Pantalla - -
Razón - -
-
Contenido de la Escena
- -
Panel de texto
- -
Nombre del panel
- -
Botones de la Interfaz
- -
Artes
-
-
-
-
Botones y Elección
-
-
-
- -
Atrás
-
- -
-
-
-
- - - diff --git a/translate/ja_tuesday_visual.html b/translate/ja_tuesday_visual.html deleted file mode 100644 index 80b5f46..0000000 --- a/translate/ja_tuesday_visual.html +++ /dev/null @@ -1,5911 +0,0 @@ - - - -Tuesday JS ビジュアルノベル・エンジン - - - - - - - - - -
- - - - - - - - - - -
ストーリーブロックの追加
-
- -
- -
-
- -
- - - - - - - - - - - -
-
-
-
-
-
- - - - - - - -
-
-
-
-
-
-
-
- - - - - - - - - - - -
-
-
-
block name (シーン:1 | ダイアログ:1)
-
テストプレイ
-
- - - - - - -
画面の向き - -
画面外オブジェクト - -
サイズ比率調整 - -
画面比率 - -
サイズ比 - -
-
シーンのコンテンツ
- -
テキストパネル
- -
ネームパネル
- -
インターフェイスボタン
- -
画像
-
-
-
-
ボタンと選択肢
-
-
-
- -
戻る
-
- -
-
-
-
- - - diff --git a/translate/ru_tuesday_visual.html b/translate/ru_tuesday_visual.html deleted file mode 100644 index 4b24396..0000000 --- a/translate/ru_tuesday_visual.html +++ /dev/null @@ -1,5911 +0,0 @@ - - - -Тьюсдей JS Движок визуальных новелл - - - - - - - - - -
- - - - - - - - - - -
Создать блок
-
- -
- -
-
- -
- - - - - - - - - - - -
-
-
-
-
-
- - - - - - - -
-
-
-
-
-
-
-
- - - - - - - - - - - -
-
-
-
block name (сцена:1 | диалог:1)
-
Предварительный просмотр
-
- - - - - - -
Ориентация - -
Вне сцены - -
Размер - -
Экран - -
Пропорции - -
-
Содержимое сцены
- -
Текстовая панель
- -
Панель имени
- -
Кнопки интерфейса
- -
Изображения
-
-
-
-
Кнопки и выборы
-
-
-
- -
Назад
-
- -
-
-
-
- - - From 7b9b6f1254acbca699a20666b758b828b045bab9 Mon Sep 17 00:00:00 2001 From: Israel Cruz Date: Tue, 19 Mar 2024 21:38:50 -0700 Subject: [PATCH 2/5] decoupling stylesheet --- translate/en_tuesday_visual.html | 460 +------------------------------ translate/styles.css | 457 ++++++++++++++++++++++++++++++ 2 files changed, 458 insertions(+), 459 deletions(-) create mode 100644 translate/styles.css diff --git a/translate/en_tuesday_visual.html b/translate/en_tuesday_visual.html index b058fc3..18862d8 100644 --- a/translate/en_tuesday_visual.html +++ b/translate/en_tuesday_visual.html @@ -5,465 +5,7 @@ - + diff --git a/translate/styles.css b/translate/styles.css new file mode 100644 index 0000000..1d84b2a --- /dev/null +++ b/translate/styles.css @@ -0,0 +1,457 @@ +*{ + font-family:Arial; + border-collapse:collapse; + border:none; + margin:0; + padding:0; + border-spacing:0px; + user-select:none; + outline:none; + color:var(--tx); + overscroll-behavior: none; +} +:root { + --cw:#efefff; + --cb:#cec8e3; + --cl:#6e5fa5; + --cs:rgba(110,95,165,0.25); + --cm:rgba(110,95,165,0.5); + --cf:rgba(90,75,145,1); + --wn:#fff; + --ft:none; + --tx:#000; + --ls:20; +} +#boosty{fill:var(--tx);} +.panel{box-shadow:0px 2px 24px var(--cs);border-radius:16px;padding:4px;} +@keyframes flash{0%{box-shadow:0px 2px 32px var(--cf);background-color:var(--cb);}25%{box-shadow:0px 2px 32px var(--cf);background-color:var(--cb);}100%{box-shadow:0px 2px 24px var(--cs);background-color:var(--wn);}} +@keyframes flash2{0%{box-shadow:0px 0px 16px var(--cb);background-color:var(--cw);}50%{box-shadow:0px 0px 12px var(--cb);background-color:var(--cb);}} +.story_block{min-height:28px;width:256px;position:absolute;cursor:all-scroll; background-color:var(--wn);} +#world{position:absolute;-ms-transform:scale(1);transform:scale(1);-webkit-transform-origin: 0 0;-moz-transform-origin: 0 0;background-color:var(--cw);background-blend-mode:overlay;} +#search_block::placeholder{color: var(--cb);} +line{stroke:var(--cl);stroke-dasharray:var(--ls);stroke-width:2;animation:dash 4s linear infinite;} +@keyframes dash{from{stroke-dashoffset:0} to{stroke-dashoffset:200;}} +#toast{ + position:fixed; + opacity:0; + bottom:-10%; + transform:translateX(-50%); + padding:0px 32px; + height:40px; + min-width:128px; + box-shadow:0px 2px 24px var(--cs); + z-index:20000; + display:grid;justify-content:center;align-items:center; +} +.toast_anim{left:50%;border-radius:32px;animation:viwe 0.25s,stop 2s 0.25s,close 0.5s 2s linear;} +@keyframes viwe{from{opacity:0;bottom:64px}to{opacity:1;bottom:64px}} +@keyframes stop{from{opacity:1;bottom:64px}to{opacity:1;bottom:64px}} +@keyframes close{from{opacity:1;bottom:64px}to{opacity:0;bottom:-32px}} +#new_story_block,#scene_controll,#ho_controll,.scene_close{ + position:fixed; + height:40px; + z-index:10000; + bottom:32px; + right:32px; + border-radius:20px; + background-color:var(--wn); + box-shadow:0px 2px 24px var(--cs); + cursor:pointer; + overflow:hidden; +} +#menu_panel{ + z-index:1000; + top:0; + left:0; + background-color:var(--wn); + box-shadow:0px 2px 24px var(--cs); + border-radius:0 0 16px 0; + position:fixed; + height:40px; + max-width:620px; + width:100%; +} +.button_block{height:26px;width:26px;background-size:70% 70%;background-repeat:no-repeat;background-position:center;} +.icon{background-size:22px 22px;background-repeat:no-repeat;background-position:center;filter:var(--ft);} +.icon_m{background-size:18px 18px;background-repeat:no-repeat;background-position:center;cursor:pointer;filter:var(--ft);} +.button_menu{background-position:center;cursor:pointer;} +.button_menu:hover{background-color:var(--cb);} +.icon_new{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' d='M223,52V249H35V6H176ZM223,53H176V6'/%3e%3c/svg%3e")} +.icon_load{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' d='M48,85H252L208,226H5ZM48,85L5,226V51L18,34H65l13,17H208V85H48Z'/%3e%3c/svg%3e")} +.icon_save{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' d='M238,51V228a10,10,0,0,1-10,10H27a10,10,0,0,1-10-10V27A10,10,0,0,1,27,17H203ZM39,238V127a10,10,0,0,1,10-10H205a10,10,0,0,1,10,10V238H39ZM174,95H79a10,10,0,0,1-10-10V17H184V85A10,10,0,0,1,174,95ZM168,42a10,10,0,0,0-10-10H144a10,10,0,0,0-10,10V71a10,10,0,0,0,10,10h14a10,10,0,0,0,10-10V42ZM63,162H192m0,49H63'/%3e%3c/svg%3e")} +.icon_play{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' d='M7,24L248,126V128L7,230V24Z'/%3e%3c/svg%3e")} +.icon_edit{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' d='M164,37l53,53-131,131L33,169ZM225,16L238,29a28,28,0,0,1,0,40l-20,20L164,37,185,16A28,28,0,0,1,225,16ZM59,195L190,64M9,245h0l73-22L32,173Z'/%3e%3c/svg%3e")} +.icon_show{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' d='M246,40H10M246,130H10M246,220H10'/%3e%3c/svg%3e")} +.icon_setup{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 128 128'%3e%3cpath fill='none' stroke='%23000' stroke-width='6' stroke-linejoin='round' stroke-linecap='round' d='M28,6a14,14,0,1,1-14,14A14,14,0,0,1,28,6Zm74,44A14,14,0,1,1,88,64,14,14,0,0,1,102,50ZM63,93a14,14,0,1,1-14,14A14,14,0,0,1,64,93ZM49,107H2m0-86h11m-11,43H87m37,43H77M42,20h82m-8,44h8'/%3e%3c/svg%3e")} +.icon_about{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cg fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' %3e%3cpath d='M106,104h22v86M106,192h42'/%3e%3ccircle fill='none' cx='128' cy='64' r='6'/%3e%3ccircle cx='128' cy='128' r='120'/%3e%3c/g%3e%3c/svg%3e")} +.icon_close{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3ccircle fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' cx='128' cy='128' r='120'/%3e%3cpath fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' d='M71,184L184,70M184,184L71,70'/%3e%3c/svg%3e")} +.icon_ok{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cg fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' %3e%3ccircle cx='128' cy='128' r='120'/%3e%3cpath d='M194,82l-86,86L61,124'/%3e%3c/g%3e%3c/svg%3e")} +.icon_build{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' d='M47,17H209a30,30,0,0,1,30,30V209a30,30,0,0,1-30,30H47a30,30,0,0,1-30-30V47A30,30,0,0,1,47,17ZM148,162H38m180,0H176m-107,19-14,24m92-155-67,112m59-62,63,105m-93-155,19,31'/%3e%3c/svg%3e")} +.icon_go{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' d='M82,36l91,91L82,219'/%3e%3c/svg%3e")} +.icon_add{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3ccircle fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' cx='128' cy='128' r='120'/%3e%3cpath fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' d='M47,128h161M128,208V47'/%3e%3c/svg%3e")} +.icon_del{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' d='M194,62V230H63V62M47,45H210M108,23h39V45H108V23ZM128,62V213M92,62V213M164,62V213'/%3e%3c/svg%3e")} +.icon_json{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' d='M177,4h24c7,0,13,1,18,6s6,10,6,18v82l27,17L225,146v82c0,7-1,12-6,17s-10,7-18,7H177M84,7H60c-7,0-13,1-18,6s-6,10-6,18v79L8,128,36,146v79c0,7,1,12,6,17s10,7,18,7H84M113,212c9,0,18-4,22-10,3-4,4-12,4-25V72'/%3e%3ccircle fill='none' stroke='%23000' stroke-width='12' cx='139.375' cy='43.594' r='2.5'/%3e%3c/svg%3e")} +.icon_css{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 65 65'%3e%3cpath fill='none' fill-opacity='0' stroke='%23000' stroke-width='3' stroke-linejoin='round' stroke-linecap='round' d='M3,1H61L55,55,33,63,9,55Z M15,13H50L45,46,33.167,51,19,46l-1-6.734M17,28H47'/%3e%3c/svg%3e")} +.icon_text{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' d='M217,196H109L43,249V196H38c-16,0-29-13-29-30V38C9,21,22,9,39,9H218c16,0,29,12,29,29V166A30,30,0,0,1,217,196Z'/%3e%3c/svg%3e")} +.icon_up{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' d='M12,188 128,60 246,188z'/%3e%3c/svg%3e")} +.icon_down{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' d='M12,60 128,188 246,60z'/%3e%3c/svg%3e")} +.icon_goto{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' d='M118,88l42,40-42,46M70,128h84M34,220V36M248,220H192V36h56'/%3e%3c/svg%3e")} +.icon_back{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' d='M138,88L96,128l42,46M186,128H102M222,220V36M8,220H64V36H8'/%3e%3c/svg%3e")} +.icon_edit2{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cg fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' %3e%3cpath d='M152,114h74a20,20,0,0,1,20,20v93a20,20,0,0,1-20,20H30a20,20,0,0,1-20-20V134a20,20,0,0,1,20-20h75M129,161V9M127,204h3l22-44H105Z'/%3e%3crect x='105' y='9' width='47' height='152'/%3e%3c/g%3e%3c/svg%3e")} +.icon_art{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3ccircle fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' stroke-linecap='round' cx='60' cy='96' r='19'/%3e%3cpath fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' stroke-linecap='round' d='M19.563,24.375h217.23a10,10,0,0,1,10,10V228.91a10,10,0,0,1-10,10H19.563a10,10,0,0,1-10-10V34.375A10,10,0,0,1,19.563,24.375ZM71,201H242M28,201H53M91,198l42-43,42,43M157,176l42-42,43,42'/%3e%3c/svg%3e")} +.icon_textadd{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' d='M217,196H109L43,249V196H38c-16,0-29-13-29-30V38C9,21,22,9,39,9H218c16,0,29,12,29,29V166A30,30,0,0,1,217,196ZM86,103h84M128,61v84'/%3e%3c/svg%3e")} +.icon_audio_off{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' d='M52,90L133,30V225L52,164V90ZM10,91H52v73H10V91ZM173,98l59,59m0-59-59,59'/%3e%3c/svg%3e")} +.icon_audio_play{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' d='M52,90L133,30V225L52,164V90ZM10,91H52v73H10V91ZM188,60c25,37,25,97,0,134m-27-94c10,14,10,39,0,53M216,18c40,59,40,156,0,215'/%3e%3c/svg%3e")} +.icon_event{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' d='M128,17A111,111,0,0,0,240,128c0,0,0,0,0-0v1A111,111,0,0,0,129,240h-1A111,111,0,0,0,16,129c-0,0-.88.012-1,0v-1c0,0,.293.006,0,0A111,111,0,0,0,127,16'/%3e%3c/svg%3e")} +.icon_var{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' d='M42,216C25,216,12,176,12,128S25,40,42,40m171,176c16,0,30-39,30-88s-13-88-30-88M80,55l97,145m0-145L80,200'/%3e%3c/svg%3e")} +.icon_controll{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3ccircle fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' cx='128' cy='128' r='120'/%3e%3ccircle fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' cx='128' cy='128' r='60'/%3e%3c/svg%3e")} +.icon_choice{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 64 64'%3e %3cpath fill='none' fill-opacity='0' stroke='%23000' stroke-width='3' stroke-linejoin='round' stroke-linecap='round' d='M2,32L15,19,28,32,15,45ZM42,3H60V21H42V3Zm0,40H60V61H42V43Z M15,20V12H42m0,40H15V44'/%3e%3c/svg%3e")} +.icon_html{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' d='M78,205L1,128,78,52M174,205L250,128,174,52M94,211L159,43'/%3e%3c/svg%3e")} +.icon_equal{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' d='M47,127h161M128,208V47'/%3e%3c/svg%3e")} +.icon_minus{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' d='M47,127h161'/%3e%3c/svg%3e")} +.icon_scale{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3ccircle fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' cx='128' cy='128' r='92'/%3e%3c/svg%3e")} +.icon_color{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 128 128'%3e%3cpath fill='none' stroke='%23000' stroke-width='6' stroke-linejoin='round' d='M6,7H41V123H6V7ZM52,51L80,23l25,25L52,100M78,87h44v35H55M41,84H6M6,46H41m11,5L76,75m7,12v35'/%3e%3ccircle ifill='none' stroke='%23000' stroke-width='6' stroke-linejoin='round' cx='23.5' cy='104.5' r='6.5'/%3e%3c/svg%3e")} +.icon_right{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' d='m 175,36 -91,91 91,91'/%3e%3c/svg%3e")} +.icon_layout{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cg fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' %3e%3cpath d='M77,186c0-21,22-39,50-39S178,164,178,186M3,40H252M216,4V253M252,216H3M40,253V4'/%3e%3ccircle cx='127.5' cy='106.5' r='25.5'/%3e%3c/g%3e%3c/svg%3e")} +.icon_copu{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cg fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' %3e%3cpath d='M174,206v26a20,20,0,0,1-20,20H37a20,20,0,0,1-20-20V69A20,20,0,0,1,37,49H82'/%3e%3crect x='82' y='4' width='157' height='203' rx='20' ry='20'/%3e%3c/g%3e%3c/svg%3e")} +.icon_more{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cg fill='none' stroke='%23000' stroke-width='12' %3e%3ccircle cx='213' cy='128' r='12'/%3e%3ccircle cx='128' cy='128' r='12'/%3e%3ccircle cx='42' cy='128' r='12'/%3e%3c/g%3e%3c/svg%3e")} +.icon_toast{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cg fill='none' stroke='%23000' stroke-width='12' stroke-linejoin='round' %3e%3crect x='28' y='68' width='199' height='100' rx='30' ry='30'/%3e%3cpath d='M251,215H5'/%3e%3c/g%3e%3c/svg%3e")} +.icon_timer{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cg fill='none' stroke='%23000' stroke-width='12' %3e%3cpath d='M128,64V13A115,115,0,1,1,13,128,112,112.384,0,0,1,25,77' /%3e%3cpath d='m 139,134 c -3,5 -12,6 -18,3 l -67,-45 78,26 c 6,2 10,10 7,16 z' /%3e%3c/g%3e%3c/svg%3e")} +.icon_random{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 64 64'%3e %3cpath fill='none' fill-opacity='0' stroke='%23000' stroke-width='3' stroke-linejoin='round' stroke-linecap='round' d='M5.5,27.9l23.0-6.5A6,6,0,0,1,36.0,25.5l6.5,23.0A6,6,0,0,1,38.4,56.0L15.3,62.5A6,6,0,0,1,7.9,58.4L1.4,35.3A6,6,0,0,1,5.5,27.9ZM11,34a2,2,0,1,1-2,2A2,2,0,0,1,11,34Zm11,6a2,2,0,1,1-2,2A2,2,0,0,1,22,40ZM16,51a2,2,0,1,1-2,2A2,2,0,0,1,16,51Zm17-5a2,2,0,1,1-2,2A2,2,0,0,1,33,46ZM28,29a2,2,0,1,1-2,2A2,2,0,0,1,28,29ZM23.8,17.6l3.6-11.5a6,6,0,0,1,7.5-3.8L57.9,9.5a6,6,0,0,1,3.8,7.5L54.4,39.9a6,6,0,0,1-7.5,3.8M35,9a2,2,0,1,0,2,2A2,2,0,0,0,35,9Zm9,26a2,2,0,1,0,2-2A2,2,0,0,0,44,35Zm3-9a2,2,0,1,0,2-2A2,2,0,0,0,47,26Zm5-11a2,2,0,1,0,2,2A2,2,0,0,0,52,15Z'/%3e%3c/svg%3e")} +.icon_refrash{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='12' d='M251,94l-23,34-34-23M6,161l24-33,35,25M228,128m-15,52c-17.112,28.088-47.628,47-83,47-54.186,0-99.434-43.948-100-98M46,76c17.3-28.1,47.608-47,83-47a99.178,99.178,0,0,1,99,99'/%3e%3c/svg%3e")} +.icon_search{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 128 128'%3e%3cpath fill='none' stroke='%23000' stroke-width='6' stroke-linejoin='round' d='M46,11c20,0,37,16,37,36A37,37,0,0,1,46,84C25,84,10,67,10,47A35,35,0,0,1,46,11ZM79,77l42,42M47,24A23,23,0,0,1,70,47'/%3e%3c/svg%3e")} +.icon_clear{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 128 128'%3e%3cpath fill='none' stroke='%23000' stroke-width='6' stroke-linejoin='round' d='M53,113H24L3,92V73L73,3l45,45ZM20,56l45,45M74,28L45,58M9,123H64M120,112h6M105,112h6M70,112H96'/%3e%3c/svg%3e")} +.icon_side{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 64 64'%3e%3cpath fill='none' stroke='%23000' stroke-width='3' d='M32,61V18M43,28L32,17,21,28M62,2H2'/%3e%3c/svg%3e")} +.icon_cent{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 64 64'%3e%3cpath fill='none' stroke='%23000' stroke-width='3' d='M56,41V56H41M8,41V56H23M56,23V8H41M8,23V8H23M21,21H43V43H21V21Z'/%3e%3c/svg%3e")} +.icon_diag{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 64 64'%3e%3cpath fill='none' stroke='%23000' stroke-width='3' d='M47,47L4,4M47,32V47H32M62,32V62H32'/%3e%3c/svg%3e")} +.icon_char{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 128 128'%3e%3cpath fill='none' stroke='%23000' stroke-width='6' d='M5,126c0-25,27-46,60-46s59,20.584,59,46M65,63A30,30,0,1,1,95,33,30,30,0,0,1,65,63Z'/%3e%3c/svg%3e")} +.icon_js{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 128 128'%3e%3cpath fill='none' stroke='%23000' stroke-width='6' stroke-linejoin='round' stroke-linecap='round' d='M26,69s-5,38,36,38c39,0,36-39,36-39M106,72s12-5,12,5-18,17-18,17M28,107s-17,3-17,6c0,3,29,8,53,8,24,0,50-5,50-8,0-3-19-6-19-6M38,53s-14,2-14,6c0,3,28,5,38,5,9,0,36-3,36-8,0-3-11-5-11-5M47,18C32,30,60,35,53,54M75,4s-8,3-8,14c-0,9,9,18,9,23,0,12-6,13-6,13'/%3e%3c/svg%3e")} +.icon_video{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 128 128'%3e%3cpath fill='none' stroke='%23000' stroke-width='6' d='M8,54H120v70H8V54ZM60,54L50,73M21,73L31,54M119,54L109,73M80,73L90,54M120,73H8M58,39L43,23M15,31L30,47M116,23L100,7M72,15L87,31M3,34L110,4l6,19L8,53Z'/%3e%3c/svg%3e")} +.icon_copy{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 64 64'%3e%3cpath fill='none' stroke='%23000' stroke-width='3' stroke-linejoin='round' d='M8,61L29,40M30,53V39H16M17,31V14a4,4,0,0,1,4-4h6v4H45V10h6a4,4,0,0,1,4,4V48a4,4,0,0,1-4,4H37M27,18V7h5a4,4,0,0,1,8,0h5V18H27Z'/%3e%3c/svg%3e")} +.icon_paste{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 64 64'%3e%3cpath fill='none' stroke='%23000' stroke-width='3' stroke-linejoin='round' d='M33,39L54,60M55,47V61H41M46,38V14a4,4,0,0,0-4-4H36v4H18V10H12a4,4,0,0,0-4,4V48a4,4,0,0,0,4,4H31M36,18V7H31a4,4,0,0,0-8,0H18V18H36Z'/%3e%3c/svg%3e")} +.icon_undo{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 64 64'%3e%3cpath fill='none' stroke='%23000' stroke-width='3' stroke-linejoin='round' d='M17,29L5,17,17,5M6,17H37c11.322,0,20,6.678,20,18S48.322,53,37,53H17'/%3e%3c/svg%3e")} +.icon_cut{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 64 64'%3e%3cg fill='none' stroke='%23000' stroke-width='3' stroke-linejoin='round'%3e%3cpath d='M34,34V2l6,12V34m0,6V54m-6-8V40M53.984,40.016h-40l-12-6h44'/%3e%3ccircle cx='32' cy='54' r='8'/%3e%3ccircle cx='54' cy='32' r='8'/%3e%3c/g%3e%3c/svg%3e")} +.icon_map{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 128 128'%3e%3cpath fill='none' stroke='%23000' stroke-width='6' stroke-linejoin='round' d='M96,26L127,37v88L85,111,43,125,1,111V23L43,37l12-4M85,52v58M43,124V38M75,67S54,38,54,26a21,21,0,0,1,42,0C96,38,75,67,75,67Zm0-50a8,8,0,1,0,8,8A8,8,0,0,0,75,17Z'/%3e%3c/svg%3e")} +.icon_replace{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 64 64'%3e%3cpath fill='none' fill-opacity='0' stroke='%23000' stroke-width='3' stroke-linejoin='round' d='M4,42l7-7,7,7M60,22l-7,7-7-7M30,56C20,56,11,46,11,36M33,8C44,8,53,17,53,28M38,58L47,38,56,58M9,27L26,6M27,27L10,6M41,51H53'/%3e%3c/svg%3e")} +.icon-telegram{filter:var(--ft);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 512 512'%3e %3cpath fill='none' fill-opacity='0' stroke='%23000' stroke-width='14' stroke-linejoin='round' stroke-linecap='round' d='M8,244L496,51,415,455,194,312,386,144,126.294,287.247ZM126,287l68,149,1-124M193,436l84-70'/%3e%3c/svg%3e")} +.bg_1{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3e%3cpath stroke-opacity='0.4' stroke='%23fff' stroke-width='1' d='M0,1H64M0,17H64M0,49H64M0,9H64M0,41H64M0,25H64M0,57H64M1-4V64M49-4V64M17-4V64M57-4V64M25-4V64M41-4V64M9-4V64'/%3e%3cpath stroke-opacity='1' stroke='%23fff' stroke-width='1' d='M-1,32H68M32-4V65'/%3e%3c/svg%3e")} +.bg_2{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3e%3cpath fill='%23fff' d='M64,14.4v9.2L40.3,0h9.2Zm-64,0L14.4,0h9.2L0,23.6V14.4ZM0,49.5V40.3L23.6,64H14.4ZM8.3,32L32,8.3,55.6,32,32,55.6ZM32,17.5L17.5,32,32,46.4,46.4,32Zm32,32L49.5,64H40.3L64,40.3v9.2Z'/%3e%3c/svg%3e")} +.bg_3{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3e%3cpath fill='%23fff' d='M32,32V0H64V32H32ZM0,64V32H32V64H0Z'/%3e%3c/svg%3e")} +.bg_4{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3e%3cpath fill='%23fff' d='M32,0L64,32,32,64,0,32Z'/%3e%3c/svg%3e")} +.bg_5{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3e%3cpath fill='%23fff' d='M42,35H35v7H29V35H22V29H29V22H35V29h7V35Z'/%3e%3c/svg%3e")} +.bg_6{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3e%3cpath fill='%23fff' d='M64,7A7,7,0,0,1,57,0H64V7Zm-64,0V0H7A7,7,0,0,1,0,7ZM7,64H0V57A7,7,0,0,1,7,64ZM32,39A7,7,0,1,1,39,32,7,7,0,0,1,32,39ZM64,57V64H57A7,7,0,0,1,64,57Z'/%3e%3c/svg%3e")} +.bg_7{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3e%3crect opacity='0.25' fill='%23fff' x='16' width='32' height='64'/%3e%3crect opacity='0.25' fill='%23fff' y='16' width='64' height='32'/%3e%3c/svg%3e")} +.bg_8{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3e%3cpath fill='%23fff' d='M64,53.4v9.2h0L62.7,64H53.4Zm0-8.3L45.1,64H36.0l-0.1-.1h0L64,35.8v9.2h0ZM40.5,4.6L35.9,0h9.2Zm-17.1,0L18.7,0h9.2ZM32,48.4l-5.8,5.8-4.6-4.6L32,39.2,42.4,49.6,37.8,54.2Zm0-17.6L17.3,45.4l-4.6-4.6L32,21.5,51.2,40.8l-4.6,4.6ZM14.6,13.4L1.1,0h9.2l8.8,8.8ZM5.8,22.2L0,16.4V7.2L10.4,17.6ZM32,13.1L8.5,36.6,3.9,32h0L32,3.9,60.0,32l-4.6,4.6Zm26.2,9.1-4.6-4.6L64,7.2v9.2h0ZM44.7,8.8L53.5,0h9.2L49.3,13.4ZM27.9,64h-9.1L0,45.0V35.8L28.0,63.9ZM1.2,64L0,62.7V53.4L10.5,64H1.2Z'/%3e%3c/svg%3e")} +.bg_9{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3e%3cg fill='%23fff'%3e%3cpath opacity='0.9' d='M16,16V0L0,8M48,64V48L32,56M0,56V40l16,8m48-8V24L48,32'/%3e%3cpath opacity='0.7' d='M16,16V0L32,8M16,48V32L0,40M16,64V48l16,8m0-16V24l16,8m0,0V16l16,8M32,56V40l16,8m16,8V40L48,48'/%3e%3cpath opacity='0.5' d='M0,72V56l16,8M48,16V0L32,8M0,24V8l16,8M64,72V56L48,64M64,8V-8L48,0M32,24V8L16,16M32,40V24L16,32M32,56V40L16,48M0,8V-8L16,0'/%3e%3cpath opacity='0.3' d='M48,16V0L64,8M48,32V16L32,24M16,32V16L0,24M48,48V32l16,8M16,64V48L0,56M32,72V56l16,8M32,8V-8L48,0'/%3e%3cpath opacity='0.1' d='M16,32V16l16,8M16,48V32l16,8'/%3e%3c/g%3e%3c/svg%3e")} +.bg_0{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3e%3cg fill='%23fff' fill-opacity='0.2'%3e%3cpath d='M32,64a16,16,0,0,1,0-32V64Z'/%3e%3ccircle cx='0' cy='16' r='16'/%3e%3c/g%3e%3cg fill='%23fff' fill-opacity='0.5'%3e%3cpath d='M32,32V0A16,16,0,0,1,48,16,16,16,0,0,1,32,32Z'/%3e%3ccircle cx='64' cy='48' r='16'/%3e%3c/g%3e%3c/svg%3e")} +.bg_a{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3e%3cpath fill='none' stroke='%23fff' stroke-width='1' stroke-linejoin='round' d='M0,43L16,32,32,43m0,0L48,32,64,43M0,21L16,32m0,0L32,21,48,32M0,0L16,11m0,0L32,0,48,11M0,64L16,53,32,64m0,0L48,53,64,64M48,11L64,0M48,32L64,21M16,53V11M32,64V43M32,21V0M48,53V11M0,64V43M0,21V0'/%3e%3c/svg%3e")} +.bg_b{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3e%3cpath fill='none' stroke='%23fff' stroke-width='2' d='M32,8L56,32,32,56,8,32ZM0,8L24,32,0,56-24,32ZM64,8L88,32,64,56,40,32ZM32-24L56,0,32,24,8,0ZM32,40L56,64,32,88,8,64Z'/%3e%3c/svg%3e")} +.bg_c{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3e%3cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linejoin='round' d='M32,16.7l5.2,9.5L48,28.4l-7.4,7.9,1.3,10.8L32,42.6l-9.8,4.6,1.3-10.8L16,28.4l10.7-2.0L32,16.7zM64-15.2l5.2,9.5L80-3.6,72.5,4.3l1.3,10.8L64,10.6l-9.8,4.6L55.4,4.3,48-3.6,58.7-5.6,64-15.2zM0-15.2L5.2-5.6,16-3.6,8.5,4.3,9.8,15.2,0,10.6l-9.8,4.6L-8.5,4.3-16-3.6-5.2-5.6,0-15.2zM64,48.7l5.2,9.5L80,60.4l-7.4,7.9,1.3,10.8L64,74.6l-9.8,4.6,1.3-10.8L48,60.4l10.7-2.0L64,48.7zM0,48.7l5.2,9.5L16,60.4,8.5,68.3,9.8,79.2,0,74.6l-9.8,4.6,1.3-10.8L-16,60.4l10.7-2.0L0,48.7z'/%3e%3c/svg%3e")} +.bg_d{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 100 100'%3e%3cpath fill='%23fff' opacity='0.5' d='M0,77l23,23H10L0,90V77ZM86,0l14,14V26L75,0H86Zm14,51H86l14,14V77L75,51V40L61,26H75V13L88,26h12V51Zm0,49H75V91L61,77H75V64L88,77h12v23ZM50,38V51H36L50,65V77L25,51V40L11,26H25V13L38,26H50L75,51H63Zm10,62L50,90v10H25V91L11,77H25V64L38,77H50l23,23H60ZM0,38V26L25,51H13ZM36,0L50,14V26L25,0H36Z'/%3e%3c/svg%3e")} +.bg_e{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3e%3cpath fill='none' stroke='%23fff' stroke-width='1' d='M16,10L32,0,16,32V10ZM32,21V0L16,32ZM16,10L0,0,16,32V10ZM0,21V0L16,32ZM32,42L48,32,32,64V42ZM48,53V32L32,64ZM0,42L16,32,0,64V42ZM16,53V32L0,64ZM32,42L16,32,32,64V42ZM16,53V32L32,64ZM64,42L48,32,64,64V42ZM48,53V32L64,64ZM48,10L64,0,48,32V10ZM64,21V0L48,32ZM48,10L32,0,48,32V10ZM32,21V0L48,32ZM32,21L16,32H48ZM16,53L0,64H32ZM48,53L32,64H64ZM32,42L16,32H48ZM16,10L0,0H32ZM48,10L32,0H64ZM0,21L-16,32H16ZM0,42L-16,32H16ZM64,21L48,32H80ZM64,42L48,32H80Z'/%3e%3c/svg%3e")} +.img_mouse{filter:var(--ft);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M128,36a55,55,0,0,1,55,55v73a55,55,0,0,1-111,0v-73A55,55,0,0,1,128,36ZM127,51a8,8,0,0,1,8,8V81a8,8,0,0,1-16,0V59A8,8,0,0,1,127,51Zm55,51H73m54,0V89m0-38V37'/%3e%3c/svg%3e");} +.img_touch{filter:var(--ft);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M42,47H213a10,10,0,0,1,10,10V198a10,10,0,0,1-10,10H42a10,10,0,0,1-10-10V57A10,10,0,0,1,42,47ZM33,166H223m-95,42V167'/%3e%3c/svg%3e")} +.img_html{filter:var(--ft);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 128 128'%3e%3cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M111,27v97H18V3H88ZM111,27H88V3M51,95L30,74,51,53M77,95L97,74,77,53M55,95L72,53'/%3e%3c/svg%3e")} +.img_zip{filter:var(--ft);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 128 128'%3e%3cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M19,4h90a16,16,0,0,1,16,16v88a16,16,0,0,1-16,16H19A16,16,0,0,1,3,108V20A16,16,0,0,1,19,4ZM30,18H41V39H30V18ZM30,39H41V50H30V39ZM125,31a16,16,0,0,0-16-16H19A16,16,0,0,0,3,31m106,84H19M40,91H31m9-6H31m9-6H31m9-6H31m9-6H31m9-6H31m9-6H31m9,60H31m9-6H31m9-6H31m9-6H31'/%3e%3c/svg%3e")} +.img_wait{filter:var(--ft);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 128 128'%3e%3ccircle cx='64' cy='64' r='56' style='stroke: %23000; stroke-dasharray:360; stroke-dashoffset:360; stroke-width:6; fill:transparent'%3e%3canimate attributeName='stroke-dashoffset' dur='1.5s' to='-360' repeatCount='indefinite'/%3e%3canimateTransform attributeName='transform' type='rotate' values='0 64 64;360 64 64' dur='1s' repeatCount='indefinite'/%3e%3c/circle%3e%3c/svg%3e")} +.img_base{filter:var(--ft);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 128 128'%3e%3cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M19,4h90a16,16,0,0,1,16,16v88a16,16,0,0,1-16,16H19A16,16,0,0,1,3,108V20A16,16,0,0,1,19,4ZM64,124V102.926a12,12,0,1,0,0-17.852V64H85.074a12,12,0,1,1,17.852,0H125M64,4V25.074a12,12,0,1,0,0,17.853V64H42.926a12,12,0,1,1-17.853,0H3'/%3e%3c/svg%3e")} +.scene{background-color:var(--cb);border-radius:12px;padding:4px;margin-top:4px;} +.dialog_element{padding:4px;font-size:12px;border-radius:6px;background-color:var(--wn);margin-bottom:4px;} +.dialog{margin-top:4px;padding:4px;border-radius:8px;background-color:var(--cw);} +.scene_bg{ + padding:4px 8px; + border-radius:8px; + background-color:#fff; + background-size:cover; + background-repeat:no-repeat; + background-position:center; + width:calc(100% - 16px); + height:128px; +} +.choice_b{ + background-color:var(--cw); + margin-bottom:8px; + margin-top:8px; + min-height:20px; + text-align:center; + border-radius:6px; + font-size:12px; +} +#add_element{position:absolute;left:0;top:0;visibility:hidden;width:190px;} +.window{ + position:absolute; + top:50%; + transform:translate(-50%,-50%); + left:50%; + background-color: var(--wn) !important; + border-radius:16px; + box-shadow:0px 2px 24px var(--cs); + padding:2px 8px 24px 8px; +} +.win_head{width:100%;height:36px;display:flex;justify-content:center;align-items:center;} +#window_zone{height:100vh;width:100%;position:fixed;left:0;top:0;visibility:hidden;transition-duration:0.5s;z-index:10020;} +#tools_zone{position:fixed;height:100vh;width:100%;left:0;top:0;visibility:hidden;z-index:10000;} +.add_w{ + background-color:var(--wn); + border-radius:16px; + box-shadow:0px 2px 24px var(--cs); +} +.button{border-radius:8px;width:100%;height:90%;background-color:var(--cw);} +.button:hover{background-color:var(--cb);} +.big_button{border-radius:20px;height:40px;background-color:var(--cw);cursor:pointer;} +.big_button:hover{background-color:var(--cb);} +.edit_button{background-color:none;cursor:pointer;height:40px;} +.edit_button:hover{background-color:var(--cw);cursor:pointer;} +.search{width:88px; + background-color:var(--wn); + height:40px; + border-left:1px solid var(--cb); + border-right:1px solid var(--cb); + padding:0 2px; + user-select:text; +} +@media screen and (max-width: 620px) { + .small_menu{display:none;} + #language_view{border-left:1px solid var(--cb);} +} +.add_button{height:28px;width:28px;} +.input_text_b{ + border:0; + font-family:Arial; + font-size:12px; + -webkit-appearance:none; + background-color:transparent; + cursor:text; + height:20px; + width:100%; + user-select:text; +} +.input_text{ + border:0; + font-family:Arial; + font-size:12px; + -webkit-appearance:none; + border-bottom:1px solid var(--cb); + background-color:transparent; + cursor:text; + height:28px; + width:100%; + user-select:text; +} +.input_slider{appearance:none;height:6px;background:var(--cw);outline:none;border-radius:8px;} +.input_slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;border-radius:50%;background:var(--cb);cursor:pointer;border:3px solid var(--wn);} +.input_slider_red{-webkit-appearance:none;height:6px;background:#f88;;outline:none;border-radius:8px;} +.input_slider_green{-webkit-appearance:none;height:6px;background:#8f8;outline:none;border-radius:8px;} +.input_slider_blue{-webkit-appearance:none;height:6px;background:#aaf;outline:none;border-radius:8px;} +.input_slider_grey{-webkit-appearance:none;height:6px;background:#ccc;outline:none;border-radius:8px;} +.input_slider::-moz-range-thumb{-moz-appearance:none;appearance:none;width:16px;height:16px;border-radius:50%;background:var(--cb);cursor:pointer;border:3px solid var(--wn);} +.input_slider_progress::-moz-range-progress{-moz-appearance:none;height:6px;background: var(--cb);outline:none;border-radius:8px;} +.input_slider_red::-moz-range-progress{-moz-appearance:none;height:6px;background:#f88;outline:none;border-radius:8px;} +.input_slider_green::-moz-range-progress{-moz-appearance:none;height:6px;background:#8f8;outline:none;border-radius:8px;} +.input_slider_blue::-moz-range-progress{-moz-appearance:none;height:6px;background:#aaf;outline:none;border-radius:8px;} +.input_slider_grey::-moz-range-progress {-moz-appearance:none;height:6px;background:#ccc;outline:none;border-radius:8px;} +.input_slider_red::-moz-range-track{appearance:none;height:6px;background:#fee;;outline:none;border-radius:8px;} +.input_slider_green::-moz-range-track{appearance:none;height:6px;background:#efe;outline:none;border-radius:8px;} +.input_slider_blue::-moz-range-track{appearance:none;height:6px;background:#eef;outline:none;border-radius:8px;} +.input_slider_grey::-moz-range-track{appearance:none;height:6px;background:#eee;outline:none;border-radius:8px;} +input[type="text"]{text-indent:4px;} +select{ + border:0; + text-align-last:center; + font-family:Arial; + font-size:12px; + -webkit-appearance:none; + border-bottom:1px solid var(--cb); + background-color:transparent; + height:28px;width:100%; +} +.input_text:focus{border-bottom:1px solid #fff;} +hr{border-top:1px solid var(--cb);margin:4px 0px;} +.checkbox_a{filter:var(--ft);content:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 64 64'%3e%3ccircle fill='none' stroke='%23000' stroke-width='5' stroke-linejoin='round' cx='32' cy='32' r='28'/%3e%3c/svg%3e");background:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:16px;width:16px;cursor:pointer;} +.checkbox_a:checked {filter:var(--ft);content:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 64 64'%3e%3ccircle fill='none' stroke='%23000' stroke-width='5' stroke-linejoin='round' cx='32' cy='32' r='28'/%3e%3ccircle fill='%23000' cx='32' cy='32' r='18'/%3e%3c/svg%3e");} +.checkbox_b{height:24px;width:24px;content:none;background:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:16px;} +.checkbox_b:checked {content:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 -8 256 256'%3e%3cpath fill='none' stroke='%23000' stroke-width='18' stroke-linejoin='round' d='M188,84 114,166 67,122'/%3e%3c/svg%3e");} +.set_button{height:40px;border-right:1px solid var(--cb);padding:0px 12px;background-color:var(--cw);white-space:nowrap;} +.set_select{background-color:var(--cb);} +.set_blank{overflow-x:hidden;position:absolute;overflow-y:auto;width:100%;height:60vh;min-height:360px;} +.window_close{position:absolute;right:0px;top:0px;height:40px;width:40px;cursor:pointer;} +.namber{padding-left:8px;font-size:12px;color:var(--tx);} +.add_el{height:40px;} +.add_el:hover{background-color:var(--cb);} +.text_tutorials_a{font-size:11px;text-align:left;background-color:var(--cw);padding:8px;color:var(--tx);} +.text_tutorials_b{font-size:12px;text-align:left;padding-top:4px;color:var(--tx);} +.select_tutorials{user-select:text;} +.chec_bg{border:2px solid var(--cw);border-radius:8px;background-color:var(--cb);height:68px;width:68px;content:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;} +.chec_bg:checked{background-color:var(--cw);border:2px solid var(--cb);} +#scene_maker{height:100vh;width:100%;position:fixed;left:0px;top:0px;display:none;} +#scene_canvas{height:calc(100vh - 40px);width:calc(98vh - 40px);position:relative;} +@media only screen and (max-width:120vh){ + #scene_canvas{height:72vw;width:72vw;} +} +.scene_close{display:none;} +.scene_close div{height:100%;width:100%;} +#scene_layout{ + overflow:hidden; + height:100%; + width:50%; + background-color:#000; + position:absolute; + top:50%;left:50%; + transform:translate(-50%,-50%); + border-radius:8px; + background-color:#fff; + background-repeat:no-repeat; + background-position:center; + box-shadow:0px 2px 24px var(--cs); +} +.set_title{background-color:var(--cb);cursor:pointer;} +.input_color{cursor:pointer;border:none;height:100%;width:100%;opacity: 0;} +.show_color{background-color:var(--cb);border-radius:50%;width:26px;height:26px;} +.select_box{visibility:hidden;background-color:var(--cs);opacity:0.6;} +.drag{transform-origin:top left;box-sizing:border-box;width:100px;height:100px;position:absolute;top:100px;left:100px;cursor:move;border: 1px solid var(--cb);outline: dashed 1px var(--cl);outline-offset: -1px;} +.resizer{width:6px;height:6px;position:absolute;z-index:4000;} +.top-right,.top-left,.bottom-left,.bottom-right,.rotate{border-radius:50%;background:#fff;border: 1px solid var(--cl);} +.size-right:after,.size-left:after,.size-bottom:after,.size-top:after{content:'';width:6px;height:6px;position:absolute;transform:translateY(-50%) translateX(-50%);top:50%;left:50%;border-radius:50%;background:#fff;border: 1px solid var(--cl);} +.size-right{right:-4px;top:50%;cursor:ew-resize;height:calc(100% - 32px);transform:translateY(-50%);} +.size-right:before{position:absolute;content:'';top:-8px;right:-12px;left:0px;bottom:-8px;} +.top-right{right:-5px;top:-5px;cursor:nesw-resize;} +.top-right:before{position:absolute;content:'';top:-12px;right:-12px;left:-4px;bottom:-4px;} +.top-left{left:-5px;top:-5px;cursor:nwse-resize;} +.top-left:before{position:absolute;content:'';top:-12px;right:-4px;left:-12px;bottom:-4px;} +.size-left{left:-4px;top:50%;cursor:ew-resize;height:calc(100% - 32px);transform:translateY(-50%);} +.size-left:before{position:absolute;content:'';top:-8px;right:0px;left:-12px;bottom:-8px;} +.bottom-left{left:-5px;bottom:-5px;cursor:nesw-resize;} +.bottom-left:before{position:absolute;content:'';top:-4px;right:-4px;left:-12px;bottom:-12px;} +.size-bottom{left:50%;bottom:-4px;cursor:ns-resize;width:calc(100% - 32px);transform:translateX(-50%);} +.size-bottom:before{position:absolute;content:'';top:4px;right:-8px;left:-8px;bottom:-12px;} +.bottom-right{right:-5px;bottom:-5px;cursor:nwse-resize;} +.bottom-right:before{position:absolute;content:'';top:-4px;right:-12px;left:-4px;bottom:-12px;} +.size-top{left:50%;top:-4px;cursor:ns-resize;width:calc(100% - 32px);transform:translateX(-50%);} +.size-top:before{position:absolute;content:'';bottom:4px;right:-8px;left:-8px;top:-12px;} +.rotate {left:50%;top:-42px;cursor:crosshair;transform:translateX(-50%);} +.rotate:before{position:absolute;content:'';bottom:-8px;right:-8px;left:-8px;top:-8px;} +.proportion_c{filter:var(--ft);content:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 512'%3e%3cg fill='none' stroke='%23000' stroke-width='9' stroke-linejoin='round'%3e%3cpath d='M128,188a12,12,0,0,1,12,12v32a12,12,0,0,1-24,0V200A12,12,0,0,1,128,188Z M128,268a12,12,0,0,1,12,12v32a12,12,0,0,1-24,0V280A12,12,0,0,1,128,268Z M128,283V232'/%3e%3ccircle cx='16' cy='85' r='12'/%3e%3ccircle cx='16' cy='428' r='12'/%3e%3c/g%3e%3c/svg%3e");height:64px;width:32px;background:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;} +.proportion_c:checked{filter:var(--ft);content:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 256 512'%3e%3cg fill='none' stroke='%23000' stroke-width='9' stroke-linejoin='round' %3e%3cpath d='M128,355.5V398a30,30,0,0,1-30,30H29M29,85H98a30,30,0,0,1,30,30v42.5 M128,188a12,12,0,0,1,12,12v32a12,12,0,0,1-24,0V200A12,12,0,0,1,128,188Z M128,268a12,12,0,0,1,12,12v32a12,12,0,0,1-24,0V280A12,12,0,0,1,128,268Z M128,283V232'/%3e%3ccircle cx='16' cy='85' r='12'/%3e%3ccircle cx='16' cy='428' r='12'/%3e%3c/g%3e%3c/svg%3e");} +.align{ + -webkit-appearance:none;-moz-appearance:none;appearance:none; + height:32px;width:32px; + border-radius:4px;cursor:pointer; +} +.align:checked {background-color:var(--cb);} +.switchbox { + position:relative; + display:inline-block; + width:32px; + height:18px; + margin-bottom:3px; +} +.switchbox input{opacity:0;width:0;height:0;} +.toggle{ + position:absolute; + cursor:pointer; + top:0; + left:0; + right:0; + bottom:0; + background-color:var(--cw); + transition:0.1s; + border-radius:12px; +} +.toggle:before{ + position:absolute; + content:""; + height:14px; + width:14px; + left:2px; + bottom:2px; + background-color:#fff; + transition:0.1s; + border-radius:12px; +} +input:checked+.toggle{background-color:var(--cb);} +input:checked+.toggle:before{transform:translateX(14px);} +.offselect{height:100%;width:100%;position:absolute;left:0;top:0;} +#translation_input {width:100%;} +#translation_input input{ + border:0; + font-family:Arial; + font-size:13px; + -webkit-appearance:none; + background-color:transparent; + cursor:text; + height:32px; + width:100%; + padding:0px 6px; + box-sizing:border-box; + user-select:text; +} +#translation_input tr:nth-child(odd){background-color:var(--cw);} +#translation_input tr:nth-child(even){background-color:var(--wn);} +#translation_edit span{padding-left:8px;} +#translation_slider{ + position:absolute; + cursor:ew-resize; + top:0px; + width:12px; + height:100%; + background-color:#2196F3; + opacity:0; +} +#scene_view:after,#ho_preview:after{ + position:absolute; + content:""; + top:0px; + right:0px; + pointer-events: none; + height:100%; + width:28px; + box-shadow:inset -26px 0 16px -28px var(--cs); +} +.translation_data{height:40px;display:flex;justify-content:start;align-items:center;white-space:nowrap;} +.codeView{ + overflow: scroll; + position: relative; + padding-left:0px; + height:calc(90vh - 128px); + width:100%; + border-top:1px solid var(--cb); + border-bottom:1px solid var(--cb); + min-height:92px; +} +.codeView *{ + box-sizing:border-box; + font-size:12px; + text-align:left; + font-family:monospace; +} +.code_text,.code_show{ + background-color:transparent; + font-family:monospace; + text-decoration:none; + position:absolute; + top:0px;left:0px; + overflow:hidden; + outline:none; + resize:none; + padding:8px; + margin:0; +} +.code_text{ + width:100%; + min-width:100%; + min-height:100%; + border:none; + color:transparent; + caret-color:var(--tx); +} +.code_show{ + color:var(--tx); + padding-top:9px; + padding-left:12px; + left:-3.3px;top:-0.5px; +} +.code_elem_1{color:var(--cb);font-style:italic;} +.code_elem_2{color:var(--tx);filter:brightness(0.5) invert(50%);} +.code_elem_3{color:#e88;font-weight:bold;} +.code_elem_4{color:#6b5; } +.code_elem_5{color:#88e; } From 30450dd621b305e1c8ecb1790010e1c2287707f3 Mon Sep 17 00:00:00 2001 From: Israel Cruz Date: Tue, 19 Mar 2024 21:55:19 -0700 Subject: [PATCH 3/5] decoupling editor --- translate/editor.js | 5148 +++++++++++++++++++++++++++ translate/en_tuesday_visual.html | 5542 +++--------------------------- 2 files changed, 5585 insertions(+), 5105 deletions(-) create mode 100644 translate/editor.js diff --git a/translate/editor.js b/translate/editor.js new file mode 100644 index 0000000..1e157ac --- /dev/null +++ b/translate/editor.js @@ -0,0 +1,5148 @@ +function set_ui(t){ + var r=document.querySelector(':root'); + r.style.setProperty('--cb', color_ui[t][0]); + r.style.setProperty('--cw', color_ui[t][1]); + r.style.setProperty('--cs', color_ui[t][2]); + r.style.setProperty('--cf', color_ui[t][3]); + r.style.setProperty('--cm', color_ui[t][4]); + r.style.setProperty('--cl', color_ui[t][5]); + r.style.setProperty('--wn', color_ui[t][6]); + r.style.setProperty('--ft', color_ui[t][7]); + r.style.setProperty('--tx', color_ui[t][8]); + if(story_script.blocks){block_colors();} +} +function block_colors(){ + for(var i=0;i=7&&story_script.blocks[Object.keys(story_script.blocks)[i]][3]==color_bg[c]){ + story_script.blocks[Object.keys(story_script.blocks)[i]][3]=color_dg[c];break; + } + } + } +} +var countWords=0,countSymbols=0,countBytes=0,reg=/[aA-zZаА-яЯёЁ\u2019\u0027\-]+/g; +var body=document.body,html=document.documentElement; +var all_blocks=document.getElementsByClassName("story_block"); +var story_lines=document.getElementById("story_lines"); +var menu_add=document.getElementById('add_element'); +var img_file=document.getElementById('json_file'); +var color_chois=document.getElementById('paletr'); +var languare="en"; +const runtime = document.getElementById('runtime').innerHTML; +let arr_l; +let arr_n; +const color_ui=[ + ['#cec8e3','#efefff','rgba(110,95,165,0.25)','rgb(90,75,145)','rgba(110,95,165,0.5)','#6e5fa5','#fff','none','#000'], + ['#a3cdf0','#e8f3ff','rgba(83,150,204,0.25)','rgb(83,150,204)','rgba(83,150,204,0.5)','#596c7f','#fff','none','#000'], + ['#adced1','#def9fb','rgba(103,123,124,0.25)','rgb(103,123,124)','rgba(103,123,124,0.5)','#677b7c','#fff','none','#000'], + ['#ccc','#eee','rgba(0,0,0,0.25)','#444','rgba(0,0,0,0.25)','#777','#fff','none','#000'], + ['#beb3af','#dfd9d7','rgba(64,55,51,0.25)','rgb(160,142,136)','rgba(160,142,136,0.5)' ,'#5a4d46','#fff','none','#000'], + ['#d2c4a5','#efe1c3','rgba(121,103,63,0.25)','rgb(121,103,63)','rgba(121,103,63,0.5)' ,'#7b6f54','#fff','none','#000'], + ['#c4cebb','#dfebd5','rgba(109,124,91,0.25)','rgb(109,124,91)','rgba(109,124,91,0.5)' ,'#427e00','#fff','none','#000'], + ['#7f7f7f','#1f1f1f','rgba(0,0,0,0.5)','rgba(0,0,0,0.7)','rgba(0,0,0,0.5)','#888','#383838','invert(85%) hue-rotate(180deg)','#d8d8d8',"#7f7f7f"], + ['#6178aa','#192543','rgba(0,0,0,0.5)','rgba(0,0,0,0.7)','rgba(0,0,0,0.5)','#888','#303f6a','invert(90%) hue-rotate(180deg)','#ddd',"#6178aa"], + ['#7f7f7f','#131a1e','rgba(0,0,0,0.5)','rgba(0,0,0,0.7)','rgba(0,0,0,0.5)','#888','#26343d','invert(90%)','#ddd',"#647f90"], + ['#9d7290','#1e111a','rgba(0,0,0,0.5)','rgba(0,0,0,0.7)','rgba(0,0,0,0.5)','#888','#411934','invert(85%) hue-rotate(180deg)','#ddd',"#6B4C61"], + ['#8d726d','#24130f','rgba(0,0,0,0.5)','rgba(0,0,0,0.7)','rgba(0,0,0,0.5)','#888','#3a2622','invert(85%) hue-rotate(180deg)','#ddd',"#64452b"] +] +let story_script={}; +let line_controll=[]; +let scen_data=[]; +let copy_arr={}; +let scen_element={}; +const plugins_list={"tue_aspect_ratio":{ + "name":"Aspect ratio", + "text":"fixed screen size while maintaining aspect ratio", + "code":"function TueAspectRatio(){let e=story_json.parameters.resolutions,t=tuesday.parentNode,i=t.getBoundingClientRect();if(0==i.height||0==i.width){var s=e[0]/window.innerWidth>e[1]/window.innerHeight?window.innerWidth/e[0]:window.innerHeight/e[1];tuesday.style.left=(window.innerWidth-e[0]*s)/2+\"px\",tuesday.style.top=(window.innerHeight-e[1]*s)/2+\"px\"}else{var s=e[0]/i.width>e[1]/i.height?i.width/e[0]:i.height/e[1];tuesday.style.left=(i.width-e[0]*s)/2+\"px\",tuesday.style.top=(i.height-e[1]*s)/2+\"px\"}t.style.backgroundColor=e[2]&&e[2].length>0?e[2]:\"#000\",t.style.backgroundImage=\"url('\"+e[3]+\"')\",t.style.backgroundPosition=\"center\",t.style.backgroundSize=\"cover\",t.style.overflow=\"hidden\",t.style.position=\"relative\",tuesday.style.position=\"absolute\",tuesday.style.transformOrigin=\"left top\",tuesday.style.width=e[0]+\"px\",tuesday.style.height=e[1]+\"px\",tuesday.style.transform=\"scale(\"+s+\")\"}window.addEventListener(\"script_executed\",TueAspectRatio,!0),window.addEventListener(\"script_loaded\",TueAspectRatio,!0),window.addEventListener(\"resize\",TueAspectRatio,!0);" + },"game_pad":{ + "name":"GamePad", + "text":"Support for external game controllers", + "code":"let gamepad,gamepadPress,gamepad_choice=-1,gamepad_choices,gamepad_cursor=0;function select_choice(e){if(0==gamepad_cursor){gamepad_choices=story_json[tue_story][scene].terrain_map?tuesday.getElementsByClassName(\"tue_map_item\"):tuesday.getElementsByClassName(\"tue_choice\"),(gamepad_cursor=document.createElement(\"div\")).style.position=\"absolute\",gamepad_cursor.style.pointerEvents=\"none\",gamepad_cursor.id=\"gamepad_cursor\";let a=story_json.parameters.gamepad.cursor;gamepad_cursor.innerHTML=\"
0?\"class='\"+a[6]+\"'\":\"\")+\" style='\"+(a[5].length>0?a[5]+\";\":\"\")+(\"\"!=a[0]?\" background-size:100% 100%;background-repeat:no-repeat;background-position:center;background-image:url(\"+art_data(a[0])+\");\":\"\")+\"pointer-events:none;position:absolute;top:\"+a[1]+\";left:\"+a[2]+\";\"+(0!=a[3]?\"width:\"+a[3]+\";\":\"\")+(0!=a[3]?\"height:\"+a[3]+\";\":\"\")+\"'>
\",story_json[tue_story][scene].terrain_map?tue_map.appendChild(gamepad_cursor):tuesday.appendChild(gamepad_cursor)}if(\"hidden\"!=gamepad_choices[gamepad_choice=gamepad_choice+e>=gamepad_choices.length?0:gamepad_choice+e<0?gamepad_choices.length-1:gamepad_choice+e].style.visibility&&(story_json[tue_story][scene].terrain_map||gamepad_choices[gamepad_choice].onclick.toString().includes(\"go_to\")||gamepad_choices[gamepad_choice].onclick.toString().includes(\"go_story\")||gamepad_choices[gamepad_choice].onclick.toString().includes(\"tue_load_autosave\")||gamepad_choices[gamepad_choice].onclick.toString().includes(\"load_stag\"))){if(gamepad_cursor.style.left=gamepad_choices[gamepad_choice].style.left,gamepad_cursor.style.top=gamepad_choices[gamepad_choice].style.top,gamepad_cursor.style.right=gamepad_choices[gamepad_choice].style.right,gamepad_cursor.style.bottom=gamepad_choices[gamepad_choice].style.bottom,gamepad_cursor.style.width=gamepad_choices[gamepad_choice].style.width,gamepad_cursor.style.height=gamepad_choices[gamepad_choice].style.height,gamepad_cursor.style.padding=gamepad_choices[gamepad_choice].style.padding,gamepad_cursor.style.zIndex=gamepad_choices[gamepad_choice].style.zIndex,gamepad_cursor.style.transform=gamepad_choices[gamepad_choice].style.transform,story_json[tue_story][scene].terrain_map){let c=gamepad_choices[gamepad_choice].getBoundingClientRect();tue_world.scrollTop=tue_world.scrollTop+(c.top-tuesday.clientHeight/2),tue_world.scrollLeft=tue_world.scrollLeft+(c.left-tuesday.clientWidth/2)}}else select_choice(e)}function gamepad_cursor_cler(){gamepad_cursor.remove(),gamepad_cursor=0,gamepad_choice=-1}tuesday.addEventListener(\"creation_dialog\",function(e){0!=gamepad_cursor&&gamepad_cursor_cler()}),window.addEventListener(\"keydown\",function(e){37==(e=e.keyCode)?story_json[tue_story][scene].terrain_map||0!=story_json[tue_story][scene].dialogs.length&&!check_choice(story_json[tue_story][scene].dialogs)?select_choice(1):story_json.parameters.key&&story_json.parameters.key.next||back_story():39==e?story_json[tue_story][scene].terrain_map||0!=story_json[tue_story][scene].dialogs.length&&!check_choice(story_json[tue_story][scene].dialogs)?select_choice(-1):story_json.parameters.key&&story_json.parameters.key.back||go_story():38==e?(story_json[tue_story][scene].terrain_map||!check_choice(story_json[tue_story][scene].dialogs))&&select_choice(1):40==e?(story_json[tue_story][scene].terrain_map||!check_choice(story_json[tue_story][scene].dialogs))&&select_choice(-1):13==e||32==e?0!=gamepad_cursor&&(gamepad_choices[gamepad_choice].click(),story_json[tue_story][scene].terrain_map&&gamepad_cursor_cler()):27!=e||story_json.parameters.key&&story_json.parameters.key.launch_story||go_to(story_json.parameters.launch_story)}),window.addEventListener(\"gamepadconnected\",function(e){let a=()=>{for(gamepad of navigator.getGamepads()){if(!gamepad)continue;let e=gamepad.buttons.some(e=>e.pressed);gamepadPress!==e&&(gamepadPress=e,gamepad.buttons[14].pressed?story_json[tue_story][scene].terrain_map||!check_choice(story_json[tue_story][scene].dialogs)?select_choice(1):back_story():gamepad.buttons[15].pressed?story_json[tue_story][scene].terrain_map||!check_choice(story_json[tue_story][scene].dialogs)?select_choice(-1):go_story():gamepad.buttons[12].pressed?(story_json[tue_story][scene].terrain_map||!check_choice(story_json[tue_story][scene].dialogs))&&select_choice(1):gamepad.buttons[13].pressed?(story_json[tue_story][scene].terrain_map||!check_choice(story_json[tue_story][scene].dialogs))&&select_choice(-1):gamepad.buttons[1].pressed||gamepad.buttons[2].pressed||gamepad.buttons[3].pressed||gamepad.buttons[0].pressed?0!=gamepad_cursor&&(gamepad_choices[gamepad_choice].click(),story_json[tue_story][scene].terrain_map&&gamepad_cursor_cler()):(gamepad.buttons[8].pressed||gamepad.buttons[9].pressed)&&(go_to(story_json.parameters.launch_story),story_json[tue_story][scene].terrain_map&&gamepad_cursor_cler()))}requestAnimationFrame(a)};a()});" + },"hidden_objects":{ + "name":"Hidden objects", + "text":"player must find items from a list that are hidden within a scene", + "code":"var ho={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function hidden_objects(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].hidden_objects,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\",findobjects=story_json.parameters.hidden_objects.label.items>arr_dialog.objects.length?arr_dialog.objects.length:story_json.parameters.hidden_objects.label.items;var e=document.createElement(\"div\");e.id=\"tue_hiddenobjects\",e.style=\"height:100%;width:100%;overflow:auto;\";var t=document.createElement(\"div\"),s=Math.round(arr_dialog.objects.length/findobjects),l=0,o=0;findobjects1&&(a=l+Math.round(Math.random()*(s-1))),arr_dialog.objects.length-le.width/e.height?tue_objectsroom.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*ho.scale+\")\":tue_objectsroom.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*ho.scale+\")\",tue_objectsroom.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_objectsroom.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_objectsroom.style.marginTop=\"0px\",tue_objectsroom.style.marginLeft=\"0px\"}}function find_item(id){findobjects--,story_json.parameters.hidden_objects.label_find.no_del_label?(id=document.getElementById(id),story_json.parameters.hidden_objects.label_find.className&&(id.className=story_json.parameters.hidden_objects.label_find.className),story_json.parameters.hidden_objects.label_find.style&&(id.className=story_json.parameters.hidden_objects.label_find.style),story_json.parameters.hidden_objects.label_find.color&&(id.style.backgroundColor=story_json.parameters.hidden_objects.label_find.color),story_json.parameters.hidden_objects.label_find.color_text&&(id.style.color=story_json.parameters.hidden_objects.label_find.color_text)):document.getElementById(id).remove(),findobjects<=0&&(arr_dialog.js&&eval(arr_dialog.js),tue_hiddenobjects.remove(),\"tue_go\"==arr_dialog.go_to?(scene++,dialog=0,creation_scene()):go_to(arr_dialog.go_to))}tuesday.addEventListener(\"hidden_objects\",function(e){hidden_objects()}),window.addEventListener(\"resize\",objectsroom_resize,!0);" + },"screen_control":{ + "name":"Screen control", + "text":"switches dialogue by click to screen.", + "code":"let tue_screen_control=!0;tuesday.addEventListener(\"mouseup\",function(e){tue_screen_control&&e.pageX>tuesday.offsetWidth/3?(0==story_json[tue_story][scene].dialogs||check_choice(story_json[tue_story][scene].dialogs))&&go_story():(0==story_json[tue_story][scene].dialogs||check_choice(story_json[tue_story][scene].dialogs)&&tue_screen_control)&&back_story(),tue_screen_control=!0}),tuesday.addEventListener(\"script_loaded\",function(e){document.getElementById(\"tue_back\")&&(tue_back.style.pointerEvents=\"none\"),document.getElementById(\"tue_next\")&&(tue_next.style.pointerEvents=\"none\");for(var t=document.getElementById(\"tuesday\").getElementsByClassName(\"tue_controll\"),n=0;nreading text with a synthesized voice", + "code":"const synth=window.speechSynthesis;function play_synth(e,t,s){if(e=e?e=\"object\"==typeof e?e[languare]:e:arr_dialog.text_add?arr_dialog.text_add:dialog_text,\"hidden\"!=tue_text_block.style.visibility&&(story_json.parameters.text_panel.speech||arr_dialog.speech)){let n=new SpeechSynthesisUtterance(e||dialog_text);synth.speaking&&synth.cancel();let a=t&&t.length>0?[t,s||1]:arr_dialog.speech&&arr_dialog.speech[languare][0].length>0?arr_dialog.speech[languare]:story_json.parameters.text_panel.speech[languare],p=speechSynthesis.getVoices(),h=a[0].split(\",\").map(e=>e.trim()),c=!1;for(v=0;v{e.name==h[v]&&(c=e)}),!c);v++);n.voice=c,n.rate=a[1],synth.speak(n)}}tuesday.addEventListener(\"creation_dialog\",()=>{story_json.parameters.text_panel.speech_play&&tue_set_audio<2?play_synth():synth.cancel()});" + },"show_toast":{ + "name":"Show toast", + "text":"small message appears for a while", + "code":"let tue_toast;function creation_tost(){var t=document.createElement(\"style\");t.type=\"text/css\",t.innerHTML=\"#toast{position: fixed;opacity: 0;top: -96px;z-index: 1000;}.toast_anim{left: 50%;transform: translateX(-50%);animation: viwe 0.25s, stop 2s 0.25s, close 0.5s 2s linear;}@keyframes viwe {from {opacity: 0;top: 3em}to {opacity: 1;top: 3em}}@keyframes stop {from {opacity: 1;top: 3em}to {opacity: 1;top: 3em}}@keyframes close {from {opacity: 1;top: 3em}to {opacity: 0;top: -96px}}\",document.getElementsByTagName(\"head\")[0].appendChild(t),(tue_toast=document.createElement(\"div\")).id=\"toast\",tue_toast.innerHTML=\"
\",document.body.appendChild(tue_toast)}function toast(t){tue_toast.classList.remove(\"toast_anim\"),document.getElementById(\"toast_message\").innerHTML=t,tue_toast.offsetParent,tue_toast.classList.add(\"toast_anim\")}creation_tost(),tuesday.addEventListener(\"creation_dialog\",function(t){story_json[tue_story][scene].dialogs[dialog].toast&&(story_json[tue_story][scene].dialogs[dialog].toast[languare]?toast(story_json[tue_story][scene].dialogs[dialog].toast[languare]):toast(story_json[tue_story][scene].dialogs[dialog].toast))});" + },"terrain_map":{ + "name":"Terrain map", + "text":"location with markers for transition to other plot blocks.", + "code":"var wmap={startmove_x:null,startmove_y:null,scroll_x:null,scroll_y:null,scale:1};function terrain_map(){clearTimeout(dialog_timeout),arr_dialog=story_json[tue_story][scene].terrain_map,tue_text_view.innerHTML=\"\",tuesday.style.backgroundImage=\"none\";var e=document.createElement(\"div\");e.id=\"tue_world\",e.style=\"height:100%;width:100%;overflow:auto;\",e.className=\"tue_html_scene\";var t=document.createElement(\"div\");arr_dialog.scale&&(wmap.scale=arr_dialog.scale),t.id=\"tue_map\",t.className=arr_dialog.className,t.style=arr_dialog.style,t.style.width=arr_dialog.size[0]+\"px\",t.style.height=arr_dialog.size[1]+\"px\",t.style.backgroundRepeat=arr_dialog.repeat?arr_dialog.repeat:\"no-repeat\",arr_dialog.art_align&&(t.style.backgroundPosition=arr_dialog.art_align),arr_dialog.fit&&(t.style.backgroundSize=\"object\"==typeof arr_dialog.fit?arr_dialog.fit[0]+\" \"+arr_dialog.fit[1]:arr_dialog.fit),arr_dialog.color&&(e.style.backgroundColor=art_data(arr_dialog.color)),arr_dialog.art&&art_data(arr_dialog.art).length>0&&(t.style.backgroundImage='url(\"'+art_data(arr_dialog.art)+'\")'),t.style.position=\"relative\",t.style.overflow=\"hidden\",t.style.transformOrigin=\"left top\";for(var o=0;oe.width/e.height?tue_map.style.transform=\"scale(\"+e.height/arr_dialog.size[1]*wmap.scale+\")\":tue_map.style.transform=\"scale(\"+e.width/arr_dialog.size[0]*wmap.scale+\")\",tue_map.style.marginBottom=\"-\"+(e.height+arr_dialog.size[1])+\"px\",tue_map.style.marginRight=\"-\"+(e.width+arr_dialog.size[0])+\"px\",tue_map.style.marginTop=\"0px\",tue_map.style.marginLeft=\"0px\"}}tuesday.addEventListener(\"terrain_map\",function(e){terrain_map()}),window.addEventListener(\"resize\",worldmap_resize,!0);" + },"touch_swipe":{ + "name":"Touch swipe", + "text":"switches dialogue by swiping your finger across the touchscreen", + "code":"var endTime,starttouch=null;window.addEventListener(\"touchstart\",function(t){startTime=new Date,starttouch=1===t.touches.length?t.touches.item(0).clientX:null}),window.addEventListener(\"touchend\",function(t){var e=new Date-startTime;if(starttouch&&e<500&&controll){var n=t.changedTouches.item(0).clientX;n>starttouch+40&&back_story(),n. To add furigana or annotations use \< 簡単 = かんたん \>. If you write only skip then the phrase in the localization will be skipped." + },{ + "en":"Customize the look of the scene, its background image and music, for subsequent dialogues and actions." + },{ + "en":"Select a working folder with resources for the project." + },{ + "en":"Changes in the values ​​of variables, their values ​​can be displayed in the text as \< var_name \> or in \"Legacy Choice\" to go to another block of script." + },{ + "en":"Choose the input device that suits you. You can change the device in the settings in the 'editor' section." + },{ + "en":"Mouse
control with the zoom wheel" + },{ + "en":"TouchPad
recommended for laptops and MacBooks" + },{ + "en":"Html file

Only index.html file will be created, after its creation it is necessary to transfer it to the working folder of the project." + },{ + "en":"Zip file

All files from the working folder and index.html will be packed into a zip archive." + },{ + "en":"Base64

Not recommended! All files will be combined into one html file in base64 format. Use only with a small number of files." + },{ + "en":"CSV Comma-Separated Values." + },{ + "en":"TSV tab separated values." + },{ + "en":"the limit of the cursor size is 128×128px. Larger cursor images are ignored. However, you should limit yourself to the size 32×32 for maximum compatibility with operating systems and platforms." + },{ + "en":"The variables are in story_json.parameters.variables[var_name] array" + },{ + "en":"More settings for appearance and position of the choice on layout are located in the scene editor" + },{ + "en":"You can set transition to a specific scene and dialogue in blok (the function may cause errors)" + },{ + "en":"Telegram bot

Project export to chat bot for telegram messenger
Warning! some features may not be supported by bot" + },{ + "en":"You can change the token for bot in the project settings. step-by-step instructions for starting bot can be found in documentation" + },{ + "en":"Warning! Voices may vary across OS and browsers." + } +]} +let setup_editor={'wheel':true,'fon':'','ui':0,'lines':false,'preview':[76,0,0,1],'ferst':true,'pvw':[640,480],'lines_anim':true}; +let buf=['',''],back_up=[]; +if(localStorage.getItem("editor_setup")){setup_editor=JSON.parse(localStorage.getItem("editor_setup"))}; +if(setup_editor.ferst){ + var sel="

Devices control



"+texts.tutorials[5].en+"

" + +"" + +"" + +"" + +"

"+texts.tutorials[6].en+"


"+texts.tutorials[7].en+"

" + modal_window("open",sel); +}else{editor_setup();} +function editor_setup(){ + world.className=setup_editor.fon; + screen_preview.className=setup_editor.fon; + //preview_size(true); + if(setup_editor.wheel){html.style.overflow='hidden';} + if(setup_editor.ui&&setup_editor.ui!=0){set_ui(setup_editor.ui);} + if(!setup_editor.pvw){setup_editor.pvw=[640,480];} + else{html.style.overflow='auto';} + if(setup_editor.lines_anim){document.querySelector(':root').style.setProperty('--ls','20');}else{document.querySelector(':root').style.setProperty('--ls','0');} + document.getElementById('screen_size').getElementsByTagName('option')[1].value=(setup_editor.pvw[0]>=setup_editor.pvw[1])?setup_editor.pvw[0]:setup_editor.pvw[1] +} +// jszip +!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).JSZip=t()}(function(){return function t(e,r,i){function n(a,o){if(!r[a]){if(!e[a]){var h="function"==typeof require&&require;if(!o&&h)return h(a,!0);if(s)return s(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=r[a]={exports:{}};e[a][0].call(l.exports,function(t){return n(e[a][1][t]||t)},l,l.exports,t,e,r,i)}return r[a].exports}for(var s="function"==typeof require&&require,a=0;a>2,o=(3&e)<<4|r>>4,h=1>6:64,u=2>4,r=(15&a)<<4|(o=s.indexOf(t.charAt(u++)))>>2,i=(3&o)<<6|(h=s.indexOf(t.charAt(u++))),d[l++]=e,64!==o&&(d[l++]=r),64!==h&&(d[l++]=i);return d}},{"./support":30,"./utils":32}],2:[function(t,e,r){"use strict";var i=t("./external"),n=t("./stream/DataWorker"),s=t("./stream/DataLengthProbe"),a=t("./stream/Crc32Probe");function o(t,e,r,i,n){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=i,this.compressedContent=n}s=t("./stream/DataLengthProbe"),o.prototype={getContentWorker:function(){var t=new n(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),e=this;return t.on("end",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),t},getCompressedWorker:function(){return new n(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(t,e,r){return t.pipe(new a).pipe(new s("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",e)},e.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,r){"use strict";var i=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(t){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,r){"use strict";var i=t("./utils"),n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==i.getTypeOf(t)?function(t,e,r,i){var s=n,a=0+r;t^=-1;for(var o=0;o>>8^s[255&(t^e[o])];return-1^t}(0|e,t,t.length):function(t,e,r,i){var s=n,a=0+r;t^=-1;for(var o=0;o>>8^s[255&(t^e.charCodeAt(o))];return-1^t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,e,r){"use strict";var i;i="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:i}},{lie:37}],7:[function(t,e,r){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=t("pako"),s=t("./utils"),a=t("./stream/GenericWorker"),o=i?"uint8array":"array";function h(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}r.magic="\b\0",s.inherits(h,a),h.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,t.data),!1)},h.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},r.compressWorker=function(t){return new h("Deflate",t)},r.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,r){"use strict";function i(t,e){var r,i="";for(r=0;r>>=8;return i}function n(t,e,r,n,a,l){var f,d,c=t.file,p=t.compression,m=l!==o.utf8encode,_=s.transformTo("string",l(c.name)),g=s.transformTo("string",o.utf8encode(c.name)),b=c.comment,v=s.transformTo("string",l(b)),y=s.transformTo("string",o.utf8encode(b)),w=g.length!==c.name.length,k=y.length!==b.length,x="",S="",z="",C=c.dir,E=c.date,A={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(A.crc32=t.crc32,A.compressedSize=t.compressedSize,A.uncompressedSize=t.uncompressedSize);var I=0;e&&(I|=8),m||!w&&!k||(I|=2048);var O=0,B=0;C&&(O|=16),"UNIX"===a?(B=798,O|=function(t,e){var r=t;return t||(r=C?16893:33204),(65535&r)<<16}(c.unixPermissions)):(B=20,O|=63&(c.dosPermissions||0)),f=E.getUTCHours(),f<<=6,f|=E.getUTCMinutes(),f<<=5,f|=E.getUTCSeconds()/2,d=E.getUTCFullYear()-1980,d<<=4,d|=E.getUTCMonth()+1,d<<=5,d|=E.getUTCDate(),w&&(S=i(1,1)+i(h(_),4)+g,x+="up"+i(S.length,2)+S),k&&(z=i(1,1)+i(h(v),4)+y,x+="uc"+i(z.length,2)+z);var R="";return R+="\n\0",R+=i(I,2),R+=p.magic,R+=i(f,2),R+=i(d,2),R+=i(A.crc32,4),R+=i(A.compressedSize,4),R+=i(A.uncompressedSize,4),R+=i(_.length,2),R+=i(x.length,2),{fileRecord:u.LOCAL_FILE_HEADER+R+_+x,dirRecord:u.CENTRAL_FILE_HEADER+i(B,2)+R+i(v.length,2)+"\0\0\0\0"+i(O,4)+i(n,4)+_+x+v}}var s=t("../utils"),a=t("../stream/GenericWorker"),o=t("../utf8"),h=t("../crc32"),u=t("../signature");function l(t,e,r,i){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(l,a),l.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-i-1))/r:100}}))},l.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=n(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=n(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:function(t){return u.DATA_DESCRIPTOR+i(t.crc32,4)+i(t.compressedSize,4)+i(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=n},{"../utils":32}],19:[function(t,e,r){"use strict";var i=t("./Uint8ArrayReader");function n(t){i.call(this,t)}t("../utils").inherits(n,i),n.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,r){"use strict";var i=t("./DataReader");function n(t){i.call(this,t)}t("../utils").inherits(n,i),n.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},n.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},n.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},n.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n},{"../utils":32,"./DataReader":18}],21:[function(t,e,r){"use strict";var i=t("./ArrayReader");function n(t){i.call(this,t)}t("../utils").inherits(n,i),n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,r){"use strict";var i=t("../utils"),n=t("../support"),s=t("./ArrayReader"),a=t("./StringReader"),o=t("./NodeBufferReader"),h=t("./Uint8ArrayReader");e.exports=function(t){var e=i.getTypeOf(t);return i.checkSupport(e),"string"!==e||n.uint8array?"nodebuffer"===e?new o(t):n.uint8array?new h(i.transformTo("uint8array",t)):new s(i.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,r){"use strict";var i=t("./GenericWorker"),n=t("../utils");function s(t){i.call(this,"ConvertWorker to "+t),this.destType=t}n.inherits(s,i),s.prototype.processChunk=function(t){this.push({data:n.transformTo(this.destType,t.data),meta:t.meta})},e.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,r){"use strict";var i=t("./GenericWorker"),n=t("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,i),s.prototype.processChunk=function(t){this.streamInfo.crc32=n(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,r){"use strict";var i=t("../utils"),n=t("./GenericWorker");function s(t){n.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}i.inherits(s,n),s.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}n.prototype.processChunk.call(this,t)},e.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,r){"use strict";var i=t("../utils"),n=t("./GenericWorker");function s(t){n.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=i.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}i.inherits(s,n),s.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,r){"use strict";function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r "+t:t}},e.exports=i},{}],29:[function(t,e,r){"use strict";var i=t("../utils"),n=t("./ConvertWorker"),s=t("./GenericWorker"),a=t("../base64"),o=t("../support"),h=t("../external"),u=null;if(o.nodestream)try{u=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function l(t,e,r){var a=e;switch(e){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=e,this._mimeType=r,i.checkSupport(a),this._worker=t.pipe(new n(a)),t.lock()}catch(t){this._worker=new s("error"),this._worker.error(t)}}l.prototype={accumulate:function(t){return function(t,e){return new h.Promise(function(r,n){var s=[],o=t._internalType,h=t._outputType,u=t._mimeType;t.on("data",function(t,r){s.push(t),e&&e(r)}).on("error",function(t){s=[],n(t)}).on("end",function(){try{var t=function(t,e,r){switch(t){case"blob":return i.newBlob(i.transformTo("arraybuffer",e),r);case"base64":return a.encode(e);default:return i.transformTo(t,e)}}(h,function(t,e){var r,i=0,n=null,s=0;for(r=0;r>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e}(t)},r.utf8decode=function(t){return n.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,r,n,s,a=t.length,h=new Array(2*a);for(e=r=0;e>10&1023,h[r++]=56320|1023&n)}return h.length!==r&&(h.subarray?h=h.subarray(0,r):h.length=r),i.applyFromCharCode(h)}(t=i.transformTo(n.uint8array?"uint8array":"array",t))},i.inherits(u,a),u.prototype.processChunk=function(t){var e=i.transformTo(n.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var s=e;(e=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),e.set(s,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var a=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+o[t[r]]>e?r:e}(e),h=e;a!==e.length&&(n.uint8array?(h=e.subarray(0,a),this.leftOver=e.subarray(a,e.length)):(h=e.slice(0,a),this.leftOver=e.slice(a,e.length))),this.push({data:r.utf8decode(h),meta:t.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=u,i.inherits(l,a),l.prototype.processChunk=function(t){this.push({data:r.utf8encode(t.data),meta:t.meta})},r.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,r){"use strict";var i=t("./support"),n=t("./base64"),s=t("./nodejsUtils"),a=t("set-immediate-shim"),o=t("./external");function h(t){return t}function u(t,e){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){if(this.extraFields[1]){var e=i(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(t){var e,r,i,n=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e},r.buf2binstring=function(t){return h(t,t.length)},r.binstring2buf=function(t){for(var e=new i.Buf8(t.length),r=0,n=e.length;r>10&1023,u[i++]=56320|1023&n)}return h(u,i)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+a[t[r]]>e?r:e}},{"./common":41}],43:[function(t,e,r){"use strict";e.exports=function(t,e,r,i){for(var n=65535&t|0,s=t>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,n){var s=i,a=n+r;t^=-1;for(var o=n;o>>8^s[255&(t^e[o])];return-1^t}},{}],46:[function(t,e,r){"use strict";var i,n=t("../utils/common"),s=t("./trees"),a=t("./adler32"),o=t("./crc32"),h=t("./messages"),u=0,l=4,f=0,d=-2,c=-1,p=4,m=2,_=8,g=9,b=286,v=30,y=19,w=2*b+1,k=15,x=3,S=258,z=S+x+1,C=42,E=113,A=1,I=2,O=3,B=4;function R(t,e){return t.msg=h[e],e}function T(t){return(t<<1)-(4t.avail_out&&(r=t.avail_out),0!==r&&(n.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function N(t,e){s._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,F(t.strm)}function U(t,e){t.pending_buf[t.pending++]=e}function P(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function L(t,e){var r,i,n=t.max_chain_length,s=t.strstart,a=t.prev_length,o=t.nice_match,h=t.strstart>t.w_size-z?t.strstart-(t.w_size-z):0,u=t.window,l=t.w_mask,f=t.prev,d=t.strstart+S,c=u[s+a-1],p=u[s+a];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(u[(r=e)+a]===p&&u[r+a-1]===c&&u[r]===u[s]&&u[++r]===u[s+1]){s+=2,r++;do{}while(u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&sh&&0!=--n);return a<=t.lookahead?a:t.lookahead}function j(t){var e,r,i,s,h,u,l,f,d,c,p=t.w_size;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-z)){for(n.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;i=t.head[--e],t.head[e]=p<=i?i-p:0,--r;);for(e=r=p;i=t.prev[--e],t.prev[e]=p<=i?i-p:0,--r;);s+=p}if(0===t.strm.avail_in)break;if(u=t.strm,l=t.window,f=t.strstart+t.lookahead,c=void 0,(d=s)<(c=u.avail_in)&&(c=d),r=0===c?0:(u.avail_in-=c,n.arraySet(l,u.input,u.next_in,c,f),1===u.state.wrap?u.adler=a(u.adler,l,c,f):2===u.state.wrap&&(u.adler=o(u.adler,l,c,f)),u.next_in+=c,u.total_in+=c,c),t.lookahead+=r,t.lookahead+t.insert>=x)for(h=t.strstart-t.insert,t.ins_h=t.window[h],t.ins_h=(t.ins_h<=x&&(t.ins_h=(t.ins_h<=x)if(i=s._tr_tally(t,t.strstart-t.match_start,t.match_length-x),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=x){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=x&&(t.ins_h=(t.ins_h<=x&&t.match_length<=t.prev_length){for(n=t.strstart+t.lookahead-x,i=s._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-x),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=n&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(j(t),0===t.lookahead&&e===u)return A;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+r;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,N(t,!1),0===t.strm.avail_out))return A;if(t.strstart-t.block_start>=t.w_size-z&&(N(t,!1),0===t.strm.avail_out))return A}return t.insert=0,e===l?(N(t,!0),0===t.strm.avail_out?O:B):(t.strstart>t.block_start&&(N(t,!1),t.strm.avail_out),A)}),new M(4,4,8,4,Z),new M(4,5,16,8,Z),new M(4,6,32,32,Z),new M(4,4,16,16,W),new M(8,16,32,32,W),new M(8,16,128,128,W),new M(8,32,128,256,W),new M(32,128,258,1024,W),new M(32,258,258,4096,W)],r.deflateInit=function(t,e){return Y(t,e,_,15,8,0)},r.deflateInit2=Y,r.deflateReset=K,r.deflateResetKeep=G,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?d:(t.state.gzhead=e,f):d},r.deflate=function(t,e){var r,n,a,h;if(!t||!t.state||5>8&255),U(n,n.gzhead.time>>16&255),U(n,n.gzhead.time>>24&255),U(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),U(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(U(n,255&n.gzhead.extra.length),U(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=o(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(U(n,0),U(n,0),U(n,0),U(n,0),U(n,0),U(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),U(n,3),n.status=E);else{var c=_+(n.w_bits-8<<4)<<8;c|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(c|=32),c+=31-c%31,n.status=E,P(n,c),0!==n.strstart&&(P(n,t.adler>>>16),P(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),F(t),a=n.pending,n.pending!==n.pending_buf_size));)U(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),F(t),a=n.pending,n.pending===n.pending_buf_size)){h=1;break}h=n.gzindexa&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),0===h&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),F(t),a=n.pending,n.pending===n.pending_buf_size)){h=1;break}h=n.gzindexa&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),0===h&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&F(t),n.pending+2<=n.pending_buf_size&&(U(n,255&t.adler),U(n,t.adler>>8&255),t.adler=0,n.status=E)):n.status=E),0!==n.pending){if(F(t),0===t.avail_out)return n.last_flush=-1,f}else if(0===t.avail_in&&T(e)<=T(r)&&e!==l)return R(t,-5);if(666===n.status&&0!==t.avail_in)return R(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==u&&666!==n.status){var p=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(j(t),0===t.lookahead)){if(e===u)return A;break}if(t.match_length=0,r=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(N(t,!1),0===t.strm.avail_out))return A}return t.insert=0,e===l?(N(t,!0),0===t.strm.avail_out?O:B):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?A:I}(n,e):3===n.strategy?function(t,e){for(var r,i,n,a,o=t.window;;){if(t.lookahead<=S){if(j(t),t.lookahead<=S&&e===u)return A;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=x&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=x?(r=s._tr_tally(t,1,t.match_length-x),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(N(t,!1),0===t.strm.avail_out))return A}return t.insert=0,e===l?(N(t,!0),0===t.strm.avail_out?O:B):t.last_lit&&(N(t,!1),0===t.strm.avail_out)?A:I}(n,e):i[n.level].func(n,e);if(p!==O&&p!==B||(n.status=666),p===A||p===O)return 0===t.avail_out&&(n.last_flush=-1),f;if(p===I&&(1===e?s._tr_align(n):5!==e&&(s._tr_stored_block(n,0,0,!1),3===e&&(D(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),F(t),0===t.avail_out))return n.last_flush=-1,f}return e!==l?f:n.wrap<=0?1:(2===n.wrap?(U(n,255&t.adler),U(n,t.adler>>8&255),U(n,t.adler>>16&255),U(n,t.adler>>24&255),U(n,255&t.total_in),U(n,t.total_in>>8&255),U(n,t.total_in>>16&255),U(n,t.total_in>>24&255)):(P(n,t.adler>>>16),P(n,65535&t.adler)),F(t),0=r.w_size&&(0===o&&(D(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new n.Buf8(r.w_size),n.arraySet(c,e,p-r.w_size,r.w_size,0),e=c,p=r.w_size),h=t.avail_in,u=t.next_in,l=t.input,t.avail_in=p,t.next_in=0,t.input=e,j(r);r.lookahead>=x;){for(i=r.strstart,s=r.lookahead-(x-1);r.ins_h=(r.ins_h<>>=y=v>>>24,p-=y,0==(y=v>>>16&255))C[s++]=65535&v;else{if(!(16&y)){if(0==(64&y)){v=m[(65535&v)+(c&(1<>>=y,p-=y),p<15&&(c+=z[i++]<>>=y=v>>>24,p-=y,!(16&(y=v>>>16&255))){if(0==(64&y)){v=_[(65535&v)+(c&(1<>>=y,p-=y,(y=s-a)>3,c&=(1<<(p-=w<<3))-1,t.next_in=i,t.next_out=s,t.avail_in=i>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function _(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function g(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=d,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new i.Buf32(c),e.distcode=e.distdyn=new i.Buf32(p),e.sane=1,e.back=-1,l):f}function b(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,g(t)):f}function v(t,e){var r,i;return t&&t.state?(i=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15=a.wsize?(i.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n<(s=a.wsize-a.wnext)&&(s=n),i.arraySet(a.window,e,r-n,s,a.wnext),(n-=s)?(i.arraySet(a.window,e,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=s,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,r.check=s(r.check,j,2,0),w=y=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&y)<<8)+(y>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&y)){t.msg="unknown compression method",r.mode=30;break}if(w-=4,F=8+(15&(y>>>=4)),0===r.wbits)r.wbits=F;else if(F>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(j[0]=255&y,j[1]=y>>>8&255,r.check=s(r.check,j,2,0)),w=y=0,r.mode=3;case 3:for(;w<32;){if(0===b)break t;b--,y+=c[_++]<>>8&255,j[2]=y>>>16&255,j[3]=y>>>24&255,r.check=s(r.check,j,4,0)),w=y=0,r.mode=4;case 4:for(;w<16;){if(0===b)break t;b--,y+=c[_++]<>8),512&r.flags&&(j[0]=255&y,j[1]=y>>>8&255,r.check=s(r.check,j,2,0)),w=y=0,r.mode=5;case 5:if(1024&r.flags){for(;w<16;){if(0===b)break t;b--,y+=c[_++]<>>8&255,r.check=s(r.check,j,2,0)),w=y=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(b<(C=r.length)&&(C=b),C&&(r.head&&(F=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),i.arraySet(r.head.extra,c,_,C,F)),512&r.flags&&(r.check=s(r.check,c,C,_)),b-=C,_+=C,r.length-=C),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===b)break t;for(C=0;F=c[_+C++],r.head&&F&&r.length<65536&&(r.head.name+=String.fromCharCode(F)),F&&C>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;w<32;){if(0===b)break t;b--,y+=c[_++]<>>=7&w,w-=7&w,r.mode=27;break}for(;w<3;){if(0===b)break t;b--,y+=c[_++]<>>=1)){case 0:r.mode=14;break;case 1:if(S(r),r.mode=20,6!==e)break;y>>>=2,w-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}y>>>=2,w-=2;break;case 14:for(y>>>=7&w,w-=7&w;w<32;){if(0===b)break t;b--,y+=c[_++]<>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&y,w=y=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(C=r.length){if(b>>=5,w-=5,r.ndist=1+(31&y),y>>>=5,w-=5,r.ncode=4+(15&y),y>>>=4,w-=4,286>>=3,w-=3}for(;r.have<19;)r.lens[Z[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,U={bits:r.lenbits},N=o(0,r.lens,0,19,r.lencode,0,r.work,U),r.lenbits=U.bits,N){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,B=65535&L,!((I=L>>>24)<=w);){if(0===b)break t;b--,y+=c[_++]<>>=I,w-=I,r.lens[r.have++]=B;else{if(16===B){for(P=I+2;w>>=I,w-=I,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}F=r.lens[r.have-1],C=3+(3&y),y>>>=2,w-=2}else if(17===B){for(P=I+3;w>>=I)),y>>>=3,w-=3}else{for(P=I+7;w>>=I)),y>>>=7,w-=7}if(r.have+C>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;C--;)r.lens[r.have++]=F}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,U={bits:r.lenbits},N=o(h,r.lens,0,r.nlen,r.lencode,0,r.work,U),r.lenbits=U.bits,N){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,U={bits:r.distbits},N=o(u,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,U),r.distbits=U.bits,N){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=b&&258<=v){t.next_out=g,t.avail_out=v,t.next_in=_,t.avail_in=b,r.hold=y,r.bits=w,a(t,x),g=t.next_out,p=t.output,v=t.avail_out,_=t.next_in,c=t.input,b=t.avail_in,y=r.hold,w=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;O=(L=r.lencode[y&(1<>>16&255,B=65535&L,!((I=L>>>24)<=w);){if(0===b)break t;b--,y+=c[_++]<>R)])>>>16&255,B=65535&L,!(R+(I=L>>>24)<=w);){if(0===b)break t;b--,y+=c[_++]<>>=R,w-=R,r.back+=R}if(y>>>=I,w-=I,r.back+=I,r.length=B,0===O){r.mode=26;break}if(32&O){r.back=-1,r.mode=12;break}if(64&O){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&O,r.mode=22;case 22:if(r.extra){for(P=r.extra;w>>=r.extra,w-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;O=(L=r.distcode[y&(1<>>16&255,B=65535&L,!((I=L>>>24)<=w);){if(0===b)break t;b--,y+=c[_++]<>R)])>>>16&255,B=65535&L,!(R+(I=L>>>24)<=w);){if(0===b)break t;b--,y+=c[_++]<>>=R,w-=R,r.back+=R}if(y>>>=I,w-=I,r.back+=I,64&O){t.msg="invalid distance code",r.mode=30;break}r.offset=B,r.extra=15&O,r.mode=24;case 24:if(r.extra){for(P=r.extra;w>>=r.extra,w-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===v)break t;if(C=x-v,r.offset>C){if((C=r.offset-C)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}E=C>r.wnext?(C-=r.wnext,r.wsize-C):r.wnext-C,C>r.length&&(C=r.length),A=r.window}else A=p,E=g-r.offset,C=r.length;for(vb?(y=U[P+f[S]],T[D+f[S]]):(y=96,0),c=1<>I)+(p-=c)]=v<<24|y<<16|w|0,0!==p;);for(c=1<>=1;if(0!==c?(R&=c-1,R+=c):R=0,S++,0==--F[x]){if(x===C)break;x=e[r+f[S]]}if(E>>7)]}function T(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function D(t,e,r){t.bi_valid>d-r?(t.bi_buf|=e<>d-t.bi_valid,t.bi_valid+=r-d):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function U(t,e,r){var i,n,s=new Array(f+1),a=0;for(i=1;i<=f;i++)s[i]=a=a+r[i-1]<<1;for(n=0;n<=e;n++){var o=t[2*n+1];0!==o&&(t[2*n]=N(s[o]++,o))}}function P(t){var e;for(e=0;e>1;1<=r;r--)Z(t,s,r);for(n=h;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Z(t,s,1),i=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=i,s[2*n]=s[2*r]+s[2*i],t.depth[n]=(t.depth[r]>=t.depth[i]?t.depth[r]:t.depth[i])+1,s[2*r+1]=s[2*i+1]=n,t.heap[1]=n++,Z(t,s,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,i,n,s,a,o,h=e.dyn_tree,u=e.max_code,d=e.stat_desc.static_tree,c=e.stat_desc.has_stree,p=e.stat_desc.extra_bits,m=e.stat_desc.extra_base,_=e.stat_desc.max_length,g=0;for(s=0;s<=f;s++)t.bl_count[s]=0;for(h[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r>=7;i>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e>>3,(s=t.static_len+3+7>>>3)<=n&&(n=s)):n=s=r+5,r+4<=n&&-1!==e?Y(t,e,r,i):4===t.strategy||s===n?(D(t,2+(i?1:0),3),W(t,w,k)):(D(t,4+(i?1:0),3),function(t,e,r,i){var n;for(D(t,e-257,5),D(t,r-1,5),D(t,i-4,4),n=0;n>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(S[r]+a+1)]++,t.dyn_dtree[2*R(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){D(t,2,3),F(t,c,w),function(t){16===t.bi_valid?(T(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,r){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){"use strict";e.exports="function"==typeof setImmediate?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)}); +// +document.addEventListener("wheel",function(e){if(setup_editor.wheel&&(!scroll_block||(scene_screen&&scene_view.tabindex==1))){if(e.deltaY>0) world_scale(false);else world_scale(2);}}); +let project_files=[]; +var load_files +img_file.addEventListener('change',loadFiles); +var load_new=false; +var wf; +var tool_update=false; +function clear_Files(){ + for(var i=0;i1){ + var html="
Select JSON project file

" + for(var f=0;f
"+jsons[f][1]+"
"} + html+="
" + modal_window("open",html) + }else if(jsons.length==0){alert('JSON file not found')} + } +} +window.addEventListener('load',function(){ + var dropEvent=function(e){e.stopPropagation();e.preventDefault();return false;}; + var dragEnter=function(e){e.stopPropagation();e.preventDefault();}; + var dragOver=function(e){e.stopPropagation();e.preventDefault();}; + var dragLeave=function(e){e.stopPropagation();e.preventDefault();}; + window.addEventListener('dragenter',dragEnter,false); + window.addEventListener('dragover',dragOver,false); + window.addEventListener('dragleave',dragLeave,false); + window.addEventListener('drop',dropEvent,false); +}); +function open_file(name){ + for(var f=0;f","hotspot":["0%","0%"],"align":["end","end"],"indent_text":"8px 14px"}],"autosave":false,"font":"Arial","font_size":"18px"},"blocks":{}}; + update_novel(); + state_num=0;back_up=[];state_save(); +} +function update_novel(){ + if(scene_screen){if(!tool_update){scen_edit_update(true)}else{eval(tool_update)}} + else{ + menu_add.style.visibility="hidden"; + story_blocks.innerHTML="" + line_controll=[]; + search_block.value="" + while(story_lines.hasChildNodes()){story_lines.removeChild(story_lines.firstChild);} + parse_story(); + lines(); + if(block_active&&story_script[block_active]){story_blocks.appendChild(document.getElementById(block_active))} + } +} +function load_story_edit(url){ + var xmlhttp=new XMLHttpRequest(); + if(scene_screen){scen_edit_update(false);open_tool()}; + xmlhttp.onreadystatechange=function(){ + if(this.readyState==4&&this.status==200){ + open_tool();new_novel(); + story_script=JSON.parse(this.responseText); + if(!story_script.parameters){alert("Error in JSON file")} + else{ + toast("JSON file loading completed"); + languare=story_script.parameters.languares[0] + if(story_script.blocks){block_colors();} + parse_story() + lines() + document.dispatchEvent(new Event('tue_story_open')); + state_num=0;back_up=[];state_save(); + } + } + }; + xmlhttp.open("GET",url,true); + xmlhttp.send(); + xmlhttp.onerror=function(){if(this.status==0){alert('JSON file not loaded');}} +} +var all_blocks=0; +function parse_story(){ + let story_blocks=document.getElementById("story_blocks"); + story_blocks.innerHTML="";list_blocks.innerHTML=""; + story_lines=document.getElementById("story_lines"); + story_blocks.setAttribute("align","center"); + while(story_lines.hasChildNodes()){story_lines.removeChild(story_lines.firstChild);} + all_blocks=0;countWords=0;countSymbols=0 + if(!story_script.blocks){story_script.blocks={}} + if(!story_script.parameters.key){story_script.parameters.key={}} + if(!story_script.parameters.title){story_script.parameters.title=""} + if(!story_script.parameters.variables){story_script.parameters.variables={}} + if(!story_script.parameters.characters){story_script.parameters.characters={}} + while(Object.keys(story_script)[all_blocks]){creation_block(all_blocks);all_blocks++;} + if(story_script.parameters.languares){lang_select()} + control_dlock(); + world_size(); +} +function lang_select(){ + var lang_list=document.getElementById('language_view'); + lang_list.innerHTML=project_languares(languare); +} +language_view.onchange=function(e){ + languare=language_view.value; + if(arr_n=="hidden_objects"||arr_n=="terrain_map"){ho_update();} + else if(scene_screen){scen_editor(scen_data[0],scen_data[1],scen_data[2]);} + else{update_novel()} +}; +function creation_block(b){ + var chapter=document.createElement("div"),element="",all=0,go=""; + chapter.id=Object.keys(story_script)[b]; + if(chapter.id!="parameters"&&chapter.id!="blocks"){ + for(var i=0;i" + if(story_script[chapter.id][i].random_choice){ + element+="

Random choice:"+(i+1)+"

" + for(var l=0;l " + if(go!=chapter.id){creaton_line(all+"r"+l+go+all_blocks,go,chapter.id)} + all++ + }else{element+="
"} + } + element+="
" + }else if(story_script[chapter.id][i].legacy_choice){ + element+="

Legacy choice:"+(i+1)+"

" + for(var l=0;l"+story_script[chapter.id][i].legacy_choice[l][0]+" "+story_script[chapter.id][i].legacy_choice[l][1]+" "+story_script[chapter.id][i].legacy_choice[l][2]+" " + if(go!=chapter.id){creaton_line(all+"l"+l+go+all_blocks,go,chapter.id)} + all++ + }else{element+="
"+story_script[chapter.id][i].legacy_choice[l][0]+" "+story_script[chapter.id][i].legacy_choice[l][1]+" "+story_script[chapter.id][i].legacy_choice[l][2]+"
"} + }else if(story_script[chapter.id][i].legacy_choice[l].go_to){ + go=story_script[chapter.id][i].legacy_choice[l].go_to; + if(story_script[go]){ + element+="
" + if(go!=chapter.id){creaton_line(all+"l"+l+go+all_blocks,go,chapter.id)} + all++ + }else{element+="
"} + } + };element+="
" + }else if(story_script[chapter.id][i].hidden_objects){ + element+="

"+plugins_list.hidden_objects.name+": "+(i+1)+"

" + if(story_script[chapter.id][i].hidden_objects.art&&(typeof story_script[chapter.id][i].hidden_objects.art!=='object'||(story_script[chapter.id][i].hidden_objects.art[languare]&&typeof story_script[chapter.id][i].hidden_objects.art[languare]!=='object'))||story_script[chapter.id][i].hidden_objects.color){element+="
"} + go=(story_script[chapter.id][i].hidden_objects.go_to)?story_script[chapter.id][i].hidden_objects.go_to:'tue_no'; + if(go&&go!=""&&go!="undefined"){ + if(story_script[go]){ + element+="
" + if(go!=chapter.id){creaton_line(all+"ho"+d+go+all_blocks,go,chapter.id);} + }else{element+="
"} + };all++;element+="
" + }else if(story_script[chapter.id][i].terrain_map){ + element+="

"+plugins_list.terrain_map.name+": "+(i+1)+"

" + if(story_script[chapter.id][i].terrain_map.art&&(typeof story_script[chapter.id][i].terrain_map.art!=='object'||(story_script[chapter.id][i].terrain_map.art[languare]&&typeof story_script[chapter.id][i].terrain_map.art[languare]!=='object'))||story_script[chapter.id][i].terrain_map.color){element+="
"} + for(var c=0;c" + if(go!=chapter.id){creaton_line(all+"map"+d+go+all_blocks+c,go,chapter.id);} + }else{element+="
"} + } + };all++;element+="
" + }else{element+="

scene: "+(i+1)+"

"} + if(story_script[chapter.id][i].background_image&&(typeof story_script[chapter.id][i].background_image!=='object'||(story_script[chapter.id][i].background_image[languare]&&typeof story_script[chapter.id][i].background_image[languare]!=='object'))||story_script[chapter.id][i].background_color){element+="
"} + if(story_script[chapter.id][i].dialogs){ + for(var d=0;d

scene: "+(i+1)+" | dialog: "+(d+1)+"

" + var n=(story_script[chapter.id][i].dialogs[d].name&&story_script.parameters.characters[story_script[chapter.id][i].dialogs[d].name])?story_script.parameters.characters[story_script[chapter.id][i].dialogs[d].name][languare]:languare_data(story_script[chapter.id][i].dialogs[d].name) + if(story_script[chapter.id][i].dialogs[d].back_to){ + go=story_script[chapter.id][i].dialogs[d].back_to; + if(story_script[go]){ + element+="
Back to
" + if(go!=chapter.id){creaton_line(all+"b"+d+go+all_blocks,go,chapter.id)} + all++ + }else{element+="
Back to
";} + element+="
" + } + if(story_script[chapter.id][i].dialogs[d].video){ + element+="
Video
" + go=(story_script[chapter.id][i].dialogs[d].video.go_to)?story_script[chapter.id][i].dialogs[d].video.go_to:'tue_no'; + if(go&&go!=""&&go!="undefined"){ + if(story_script[go]){ + element+="
" + if(go!=chapter.id){creaton_line("video_"+all+"c"+d+go+all_blocks,go,chapter.id);} + }else{element+="
"} + }all++ + element+="
" + } + if(story_script[chapter.id][i].dialogs[d].art){ + var t="" + +((story_script[chapter.id][i].dialogs[d].art[4])?"":"") + +((story_script[chapter.id][i].dialogs[d].art[3])?"":"") + +((story_script[chapter.id][i].dialogs[d].art[2])?"":"") + +((story_script[chapter.id][i].dialogs[d].art[1])?"":"") + +((story_script[chapter.id][i].dialogs[d].art[0])?"":"") + +"
" + element+="
Art
"+t+"
" + } + if(story_script[chapter.id][i].dialogs[d].text){ + var t=languare_data(story_script[chapter.id][i].dialogs[d].text);if(typeof t!=='object'){countWords+=t.split(reg).length-1;countSymbols+=t.length} + element+="
" + +((n)?"

"+n.replaceAll("<","").replaceAll(">","")+"

" :" ") + +"

"+((t.length>0)?t.replaceAll("<","").replaceAll(">",""):' ')+"

" + } + if(story_script[chapter.id][i].dialogs[d].text_add){ + var t=languare_data(story_script[chapter.id][i].dialogs[d].text_add);if(typeof t!=='object'){countWords+=t.split(reg).length-1;countSymbols+=t.length} + element+="
"+((n.length>0)?"

"+n+" " :"

")+"text add

"+((t.length>0)?t.replaceAll("<","").replaceAll(">",""):' ')+"

" + } + if(story_script[chapter.id][i].dialogs[d].choice){ + element+="
Choice ph 2
" + for(var c=story_script[chapter.id][i].dialogs[d].choice.length-1;c>=0;c--){ + const choice = story_script[chapter.id][i].dialogs[d].choice[c]; + go=(typeof choice.go_to==='object')?choice.go_to[0]:choice.go_to; + if(go&&go!=""&&go!="undefined"){ + if(choice.text){data_corr(choice,'text')} + var t=languare_data(choice.text);if(typeof t!=='object'){countWords+=t.split(reg).length-1;countSymbols+=t.length} + if(story_script[go]){ + element+=""+ + ""+ + ""+ + ""+ + ""+ + ""+ + ""+ + ""+ + "
" +(choice.diamonds ? "💎" : '' )+ ""+((typeof choice.go_to==='object')?"
"+go+" / "+choice.go_to[1]+" / "+choice.go_to[2]+"
":"")+"
" + if (go!=chapter.id) { + creaton_line(all+"c"+d+go+all_blocks,((typeof choice.go_to!='object')?go:"d_"+go+"_"+choice.go_to[1]+"_"+choice.go_to[2]),chapter.id); + } + } else {element+="
"+((typeof choice.go_to==='object')?go+" / "+story_script[chapter.id][i].dialogs[d].choice[c].go_to[1]+" / "+story_script[chapter.id][i].dialogs[d].choice[c].go_to[2]:"")+"
"} + } else { + var t=languare_data(choice.text); + if(typeof t!=='object'){ + countWords+=t.split(reg).length-1;countSymbols+=t.length + } + element+="
"+((t=="")?go:t)+"
" + } + all++; + }; + element+="
"; + } + if(story_script[chapter.id][i].dialogs[d].sound_stop){element+="
Stop sound
"} // + if(story_script[chapter.id][i].dialogs[d].sound){element+="
Play sound
"} // + if(story_script[chapter.id][i].dialogs[d].timer){ + go=story_script[chapter.id][i].dialogs[d].timer[1]; + element+="
Timer
" + if(go!="tue_update_scene"&&go!="tue_go"&&go!="tue_no"){ + element+="" + if(go!=chapter.id){creaton_line(all+"t"+d+go+all_blocks,go,chapter.id);} + }else{element+=""} + all++;element+="
seconds
"} + if(story_script[chapter.id][i].dialogs[d].variables){ + var t=""; + for(var c=0;c"}; + element+="
Variables
"+t+"
" + } + if(story_script[chapter.id][i].dialogs[d].go_to){ + go=story_script[chapter.id][i].dialogs[d].go_to; + if(story_script[go]){ + element+="
Go to
" + if(go!=chapter.id){creaton_line(all+"g"+d+go+all_blocks,go,chapter.id)} + all++ + }else{element+="
Go to
";} + element+="
" + } + if(story_script[chapter.id][i].dialogs[d].event){element+="
ID event
"} + if(story_script[chapter.id][i].dialogs[d].controll){element+="
Hide interface
"} + if(story_script[chapter.id][i].dialogs[d].no_autosave){element+="
No autosave
"} + if(story_script[chapter.id][i].dialogs[d].html){element+="
HTML code
"} + if(story_script[chapter.id][i].dialogs[d].js){element+="
JavaScript code
"} + if(story_script[chapter.id][i].dialogs[d].toast){element+="
Toast

"+languare_data(story_script[chapter.id][i].dialogs[d].toast)+"

"} + element+="
" + };element+="
" + };element+="
" + };element+="
" + chapter.innerHTML="
"+((chapter.id.length>17)?chapter.id.slice(0,15)+"...":chapter.id )+"
"+element+"
"; + chapter.className="story_block panel"; + list_blocks.innerHTML+="