@netless/fastboard-ui 0.3.6 → 0.3.8-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +18 -18
- package/dist/index.js +474 -260
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +484 -261
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +3478 -2347
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +4 -4
- package/src/actions/scroll.ts +1 -1
- package/src/components/Button/Button.svelte.d.ts +1 -2
- package/src/components/Toolbar/README.md +1 -1
- package/src/components/Toolbar/Toolbar.scss +1 -1
- package/src/components/Toolbar/components/Shapes.svelte +1 -0
- package/src/components/Toolbar/components/StrokeColor.svelte +1 -0
- package/src/components/Toolbar/components/TextColor.svelte +1 -0
- package/src/index.ts +8 -4
- package/src/style.scss +4 -0
- /package/src/components/Fastboard/{Fastboard.svelte.ts → Fastboard.svelte.d.ts} +0 -0
- /package/src/components/Fastboard/{ReplayFastboard.svelte.ts → ReplayFastboard.svelte.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
3
2
|
var __create = Object.create;
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __defProps = Object.defineProperties;
|
|
@@ -35,8 +34,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
35
34
|
}
|
|
36
35
|
return to;
|
|
37
36
|
};
|
|
38
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
37
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
38
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
39
|
+
mod
|
|
40
|
+
));
|
|
39
41
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
42
|
+
var __publicField = (obj, key, value) => {
|
|
43
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
44
|
+
return value;
|
|
45
|
+
};
|
|
40
46
|
|
|
41
47
|
// src/index.ts
|
|
42
48
|
var src_exports = {};
|
|
@@ -54,7 +60,23 @@ __export(src_exports, {
|
|
|
54
60
|
});
|
|
55
61
|
module.exports = __toCommonJS(src_exports);
|
|
56
62
|
|
|
57
|
-
//
|
|
63
|
+
// inline-sass-helper:inline-sass-style-helper.js
|
|
64
|
+
function injectStyle(text2) {
|
|
65
|
+
if (typeof document !== "undefined") {
|
|
66
|
+
var style = document.createElement("style");
|
|
67
|
+
var node = document.createTextNode(text2);
|
|
68
|
+
style.appendChild(node);
|
|
69
|
+
document.head.appendChild(style);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// inline-sass-content:./src/style.scss
|
|
74
|
+
var style_default = '.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926;background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}.fastboard-icon.light .fastboard-icon-stroke-color{stroke:var(--fastboard-color, #5d6066)}.fastboard-icon.light .fastboard-icon-fill-color{fill:var(--fastboard-color, #5d6066)}.fastboard-icon.light.is-active .fastboard-icon-stroke-color{stroke:var(--fastboard-active-color, #3381ff)}.fastboard-icon.light.is-active .fastboard-icon-fill-color{fill:var(--fastboard-active-color, #3381ff)}.fastboard-icon.dark .fastboard-icon-stroke-color{stroke:var(--fastboard-color, #7b7e84)}.fastboard-icon.dark .fastboard-icon-fill-color{fill:var(--fastboard-color, #7b7e84)}.fastboard-icon.dark.is-active .fastboard-icon-stroke-color{stroke:var(--fastboard-active-color, #2867cc)}.fastboard-icon.dark.is-active .fastboard-icon-fill-color{fill:var(--fastboard-active-color, #2867cc)}.fastboard-redo-undo{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.fastboard-redo-undo *{box-sizing:inherit}.fastboard-redo-undo.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-redo-undo.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-redo-undo-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-redo-undo-btn svg,.fastboard-redo-undo-btn img{width:100%;height:100%;pointer-events:none}.fastboard-redo-undo-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-redo-undo-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-redo-undo-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-zoom-control{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.fastboard-zoom-control *{box-sizing:inherit}.fastboard-zoom-control.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-zoom-control.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-zoom-control-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-zoom-control-btn svg,.fastboard-zoom-control-btn img{width:100%;height:100%;pointer-events:none}.fastboard-zoom-control-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-zoom-control-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-zoom-control-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-zoom-control-text{font-variant-numeric:tabular-nums}.fastboard-page-control{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.fastboard-page-control *{box-sizing:inherit}.fastboard-page-control.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-page-control.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-page-control-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-page-control-btn svg,.fastboard-page-control-btn img{width:100%;height:100%;pointer-events:none}.fastboard-page-control-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-page-control-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-page-control-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-page-control-text{font-variant-numeric:tabular-nums}.fastboard-player-control{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);width:100%}.fastboard-player-control *{box-sizing:inherit}.fastboard-player-control.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-player-control.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-player-control-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0;display:inline}.fastboard-player-control-btn svg,.fastboard-player-control-btn img{width:100%;height:100%;pointer-events:none}.fastboard-player-control-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-player-control-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-player-control-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-player-control-btn.loading svg,.fastboard-player-control-btn.loading img{animation:fastboard-player-control-rotate .5s linear infinite}@keyframes fastboard-player-control-rotate{to{transform:rotate(360deg)}}.fastboard-player-control-btn.speed{width:auto;padding:4px;text-align:right;font-size:14px;font-variant-numeric:tabular-nums}.fastboard-player-control-btn.is-active.light{color:var(--fastboard-active-color, #3381ff)}.fastboard-player-control-btn.is-active.dark{color:var(--fastboard-active-color, #2867cc)}.fastboard-player-control-speed-text,.fastboard-player-control-progress{font-size:14px;font-variant-numeric:tabular-nums;line-height:16px}.fastboard-player-control-progress{display:inline-flex;align-items:center}.fastboard-player-control-panel.speed{display:flex;flex-direction:column}.fastboard-toolbar{height:100%;display:flex;align-items:center;position:relative;transform:translate(0);transition:transform .5s cubic-bezier(.34,1.56,.64,1);pointer-events:none}.fastboard-toolbar.collapsed{transform:translate(-100%)}.fastboard-toolbar-handler{position:absolute;left:100%;width:17px;font-size:0;border-radius:3px;cursor:pointer;pointer-events:auto}.fastboard-toolbar-handler:focus-visible{outline:2px solid -webkit-focus-ring-color}.fastboard-toolbar-handler input[type=checkbox]{position:absolute;top:0;left:0;appearance:none;margin:0;width:100%;height:100%;cursor:pointer;opacity:0;z-index:-1}.fastboard-toolbar-handler svg{opacity:0;transition:opacity .5s 1s;pointer-events:none}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-bg-color{fill:var(--fastboard-bg-color, rgba(255, 255, 255, .9))}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-border-color{stroke:var(--fastboard-border-color, #e5e8f0)}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-image-stroke-color{stroke:var(--fastboard-color, #5d6066)}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-image-fill-color{fill:var(--fastboard-color, #5d6066)}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-bg-color{fill:var(--fastboard-bg-color, rgba(20, 24, 30, .9))}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-border-color{stroke:var(--fastboard-border-color, #383b42)}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-image-stroke-color{stroke:var(--fastboard-color, #7b7e84)}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-image-fill-color{fill:var(--fastboard-color, #7b7e84)}.fastboard-toolbar:hover .fastboard-toolbar-handler svg,.fastboard-toolbar.collapsed .fastboard-toolbar-handler svg{opacity:1;transition:opacity .2s}.fastboard-toolbar-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:4px;width:32px;height:32px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-toolbar-btn svg,.fastboard-toolbar-btn img{width:100%;height:100%;pointer-events:none}.fastboard-toolbar-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-toolbar-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-toolbar-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-slider{box-sizing:border-box;position:relative;width:100%;height:100%;display:flex;align-items:center}.fastboard-slider *{box-sizing:inherit}.fastboard-slider-track{appearance:none;background:rgba(0,0,0,0);border:0;border-radius:26px;flex:1;display:block;height:19px;margin:0;width:0;min-width:0;padding:0;transition:box-shadow .3s ease;cursor:pointer;touch-action:manipulation}.fastboard-slider-track::-webkit-slider-runnable-track{border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;user-select:none;background-color:#80808040;-webkit-user-select:none;background-image:linear-gradient(to right,currentColor var(--value, 0%),transparent var(--value, 0%))}.fastboard-slider-track::-webkit-slider-thumb{background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px #23292f26,0 0 0 1px #23292f33;width:13px;height:13px;position:relative;transition:all .2s ease;cursor:grab;appearance:none;margin-top:-4px}.fastboard-slider-track::-moz-range-track{border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;user-select:none;background-color:#80808040;-webkit-user-select:none}.fastboard-slider-track::-moz-range-thumb{appearance:none;background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px #23292f26,0 0 0 1px #23292f33;width:13px;height:13px;position:relative;transition:all .2s ease;cursor:grab}.fastboard-slider-track::-moz-range-progress{background:currentColor;border-radius:2.5px;height:5px}.fastboard-slider-track::-ms-track{border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;user-select:none;background-color:#80808040;-webkit-user-select:none;color:#0000}.fastboard-slider-track::-ms-thumb{appearance:none;background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px #23292f26,0 0 0 1px #23292f33;width:13px;height:13px;position:relative;transition:all .2s ease;cursor:grab;margin-top:0}.fastboard-slider-track::-ms-tooltip{display:none}.fastboard-slider-track::-moz-focus-outer{border:0}.fastboard-slider-track.grabbing::-webkit-slider-thumb{cursor:grabbing}.fastboard-slider-track.light{color:var(--fastboard-active-color, #3381ff)}.fastboard-slider-track.dark{color:var(--fastboard-active-color, #2867cc)}.fastboard-toolbar-contents{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);padding:2px 0;gap:0;flex-direction:column}.fastboard-toolbar-contents *{box-sizing:inherit}.fastboard-toolbar-contents.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-toolbar-contents.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-toolbar-contents>.fastboard-toolbar-btn{margin:2px 4px}.fastboard-toolbar-btn-interactive{position:relative}.fastboard-toolbar-triangle{width:0px;height:0px;border-bottom:4px solid;border-left:4px solid rgba(0,0,0,0);position:absolute;bottom:0;right:0}.fastboard-toolbar-btn:focus+.fastboard-toolbar-triangle{opacity:0}.fastboard-toolbar-scrollable{padding:2px 4px;overflow:hidden;display:flex;flex-direction:column;gap:4px}.fastboard-toolbar-tooltip{display:inline-flex;align-items:center;gap:4px}.fastboard-toolbar-hotkey{display:inline-flex;margin-right:-4px;width:24px;height:24px;align-items:center;justify-content:center;background-color:#ffffff1a;border-radius:4px}.fastboard-toolbar-panel-wrapper{display:none}.fastboard-toolbar-panel{display:flex;flex-direction:column}.fastboard-toolbar-panel-divider{height:.5px;width:100%;margin:4px 0;background-color:#ffffff26}.fastboard-toolbar-colors,.fastboard-toolbar-shapes{display:grid;align-self:center;grid-template:repeat(2,1fr)/repeat(4,1fr);align-items:center;justify-items:center;gap:4px}.fastboard-toolbar-shape-btn,.fastboard-toolbar-color-btn{width:24px;height:24px;padding:0;display:inline-flex;align-items:center;justify-content:center}.fastboard-toolbar-color-btn{border:1px solid rgba(0,0,0,0)}.fastboard-toolbar-color-btn.light.is-active{border-color:var(--fastboard-active-color, #3381ff)}.fastboard-toolbar-color-btn.dark.is-active{border-color:var(--fastboard-active-color, #2867cc)}.fastboard-toolbar-color-item{display:inline-block;width:16px;height:16px;border-radius:4px;pointer-events:none}.fastboard-toolbar-panel.apps{display:grid;grid-template-columns:repeat(min(var(--n, 3),3),minmax(max-content,1fr));gap:4px}.fastboard-toolbar-app-btn{margin:0;border:0;border-radius:2px;padding:4px 6px;background-color:#0000;display:inline-flex;flex-direction:column;align-items:center;gap:4px;font-size:0}.fastboard-toolbar-app-btn:disabled{opacity:.8}.fastboard-toolbar-app-btn-icon{width:32px;height:32px;pointer-events:none}.fastboard-toolbar-app-btn-text{font-size:14px;line-height:1;max-width:100%;overflow:hidden;text-overflow:ellipsis}.fastboard-toolbar-app-btn.is-loading{cursor:progress}.fastboard-toolbar-app-btn.is-failed{cursor:not-allowed;opacity:.5}.fastboard-toolbar-app-btn:not(:disabled,.is-loading,.is-failed):hover.light{cursor:pointer;background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-toolbar-app-btn-text.light{color:var(--fastboard-color, #5d6066)}.fastboard-toolbar-app-btn:not(:disabled,.is-loading,.is-failed):hover.dark{cursor:pointer;background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-toolbar-app-btn-text.dark{color:var(--fastboard-color, #7b7e84)}.fastboard-root{position:relative;width:100%;height:100%;overflow:hidden}.fastboard-view{position:absolute;top:0;left:0;width:100%;height:100%}.fastboard-left{display:flex;align-items:center;position:absolute;bottom:62px;top:8px;left:0;z-index:200;pointer-events:none}.fastboard-left .fastboard-toolbar{padding-left:16px}.fastboard-bottom-left,.fastboard-bottom,.fastboard-bottom-right{display:flex;gap:10px;position:absolute;bottom:8px;left:8px;padding:8px;z-index:200;pointer-events:none}.fastboard-bottom-right{left:auto;right:8px}.fastboard-bottom{right:8px}.fastboard-left.hidden *,.fastboard-bottom.hidden *,.fastboard-bottom-left.hidden *,.fastboard-bottom-right.hidden *{opacity:0;pointer-events:none}.fastboard-tip{font-family:inherit;color:#d5d9e0;background-color:#03060d}.fastboard-tip[data-placement^=right]>.tippy-arrow:before{top:4px;border-width:4px;border-right-color:#03060d}.fastboard-tip[data-placement^=top]>.tippy-arrow:before{left:4px;border-width:4px;border-top-color:#03060d}.fastboard-panel .tippy-content{padding:8px}.netless-whiteboard:focus-visible{outline:none}';
|
|
75
|
+
|
|
76
|
+
// inline-sass-stub:./src/style.scss
|
|
77
|
+
injectStyle(style_default);
|
|
78
|
+
|
|
79
|
+
// ../../node_modules/.pnpm/svelte@3.55.0/node_modules/svelte/internal/index.mjs
|
|
58
80
|
function noop() {
|
|
59
81
|
}
|
|
60
82
|
function assign(tar, src) {
|
|
@@ -153,6 +175,13 @@ function action_destroyer(action_result) {
|
|
|
153
175
|
return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;
|
|
154
176
|
}
|
|
155
177
|
var is_client = typeof window !== "undefined";
|
|
178
|
+
var is_hydrating = false;
|
|
179
|
+
function start_hydrating() {
|
|
180
|
+
is_hydrating = true;
|
|
181
|
+
}
|
|
182
|
+
function end_hydrating() {
|
|
183
|
+
is_hydrating = false;
|
|
184
|
+
}
|
|
156
185
|
function append(target, node) {
|
|
157
186
|
target.appendChild(node);
|
|
158
187
|
}
|
|
@@ -160,7 +189,9 @@ function insert(target, node, anchor) {
|
|
|
160
189
|
target.insertBefore(node, anchor || null);
|
|
161
190
|
}
|
|
162
191
|
function detach(node) {
|
|
163
|
-
node.parentNode
|
|
192
|
+
if (node.parentNode) {
|
|
193
|
+
node.parentNode.removeChild(node);
|
|
194
|
+
}
|
|
164
195
|
}
|
|
165
196
|
function destroy_each(iterations, detaching) {
|
|
166
197
|
for (let i = 0; i < iterations.length; i += 1) {
|
|
@@ -222,6 +253,9 @@ function custom_event(type, detail, { bubbles = false, cancelable = false } = {}
|
|
|
222
253
|
e.initCustomEvent(type, bubbles, cancelable, detail);
|
|
223
254
|
return e;
|
|
224
255
|
}
|
|
256
|
+
function construct_svelte_component(component, props) {
|
|
257
|
+
return new component(props);
|
|
258
|
+
}
|
|
225
259
|
var current_component;
|
|
226
260
|
function set_current_component(component) {
|
|
227
261
|
current_component = component;
|
|
@@ -350,6 +384,7 @@ function transition_out(block, local, detach2, callback) {
|
|
|
350
384
|
callback();
|
|
351
385
|
}
|
|
352
386
|
}
|
|
387
|
+
var globals = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : global;
|
|
353
388
|
function destroy_block(block, lookup) {
|
|
354
389
|
block.d(1);
|
|
355
390
|
lookup.delete(block.key);
|
|
@@ -465,13 +500,13 @@ function create_component(block) {
|
|
|
465
500
|
block && block.c();
|
|
466
501
|
}
|
|
467
502
|
function mount_component(component, target, anchor, customElement) {
|
|
468
|
-
const { fragment,
|
|
503
|
+
const { fragment, after_update } = component.$$;
|
|
469
504
|
fragment && fragment.m(target, anchor);
|
|
470
505
|
if (!customElement) {
|
|
471
506
|
add_render_callback(() => {
|
|
472
|
-
const new_on_destroy = on_mount.map(run).filter(is_function);
|
|
473
|
-
if (on_destroy) {
|
|
474
|
-
on_destroy.push(...new_on_destroy);
|
|
507
|
+
const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);
|
|
508
|
+
if (component.$$.on_destroy) {
|
|
509
|
+
component.$$.on_destroy.push(...new_on_destroy);
|
|
475
510
|
} else {
|
|
476
511
|
run_all(new_on_destroy);
|
|
477
512
|
}
|
|
@@ -502,7 +537,7 @@ function init(component, options, instance59, create_fragment59, not_equal2, pro
|
|
|
502
537
|
set_current_component(component);
|
|
503
538
|
const $$ = component.$$ = {
|
|
504
539
|
fragment: null,
|
|
505
|
-
ctx:
|
|
540
|
+
ctx: [],
|
|
506
541
|
props,
|
|
507
542
|
update: noop,
|
|
508
543
|
not_equal: not_equal2,
|
|
@@ -536,6 +571,7 @@ function init(component, options, instance59, create_fragment59, not_equal2, pro
|
|
|
536
571
|
$$.fragment = create_fragment59 ? create_fragment59($$.ctx) : false;
|
|
537
572
|
if (options.target) {
|
|
538
573
|
if (options.hydrate) {
|
|
574
|
+
start_hydrating();
|
|
539
575
|
const nodes = children(options.target);
|
|
540
576
|
$$.fragment && $$.fragment.l(nodes);
|
|
541
577
|
nodes.forEach(detach);
|
|
@@ -545,16 +581,65 @@ function init(component, options, instance59, create_fragment59, not_equal2, pro
|
|
|
545
581
|
if (options.intro)
|
|
546
582
|
transition_in(component.$$.fragment);
|
|
547
583
|
mount_component(component, options.target, options.anchor, options.customElement);
|
|
584
|
+
end_hydrating();
|
|
548
585
|
flush();
|
|
549
586
|
}
|
|
550
587
|
set_current_component(parent_component);
|
|
551
588
|
}
|
|
589
|
+
var SvelteElement;
|
|
590
|
+
if (typeof HTMLElement === "function") {
|
|
591
|
+
SvelteElement = class extends HTMLElement {
|
|
592
|
+
constructor() {
|
|
593
|
+
super();
|
|
594
|
+
this.attachShadow({ mode: "open" });
|
|
595
|
+
}
|
|
596
|
+
connectedCallback() {
|
|
597
|
+
const { on_mount } = this.$$;
|
|
598
|
+
this.$$.on_disconnect = on_mount.map(run).filter(is_function);
|
|
599
|
+
for (const key in this.$$.slotted) {
|
|
600
|
+
this.appendChild(this.$$.slotted[key]);
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
attributeChangedCallback(attr2, _oldValue, newValue) {
|
|
604
|
+
this[attr2] = newValue;
|
|
605
|
+
}
|
|
606
|
+
disconnectedCallback() {
|
|
607
|
+
run_all(this.$$.on_disconnect);
|
|
608
|
+
}
|
|
609
|
+
$destroy() {
|
|
610
|
+
destroy_component(this, 1);
|
|
611
|
+
this.$destroy = noop;
|
|
612
|
+
}
|
|
613
|
+
$on(type, callback) {
|
|
614
|
+
if (!is_function(callback)) {
|
|
615
|
+
return noop;
|
|
616
|
+
}
|
|
617
|
+
const callbacks = this.$$.callbacks[type] || (this.$$.callbacks[type] = []);
|
|
618
|
+
callbacks.push(callback);
|
|
619
|
+
return () => {
|
|
620
|
+
const index = callbacks.indexOf(callback);
|
|
621
|
+
if (index !== -1)
|
|
622
|
+
callbacks.splice(index, 1);
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
$set($$props) {
|
|
626
|
+
if (this.$$set && !is_empty($$props)) {
|
|
627
|
+
this.$$.skip_bound = true;
|
|
628
|
+
this.$$set($$props);
|
|
629
|
+
this.$$.skip_bound = false;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
};
|
|
633
|
+
}
|
|
552
634
|
var SvelteComponent = class {
|
|
553
635
|
$destroy() {
|
|
554
636
|
destroy_component(this, 1);
|
|
555
637
|
this.$destroy = noop;
|
|
556
638
|
}
|
|
557
639
|
$on(type, callback) {
|
|
640
|
+
if (!is_function(callback)) {
|
|
641
|
+
return noop;
|
|
642
|
+
}
|
|
558
643
|
const callbacks = this.$$.callbacks[type] || (this.$$.callbacks[type] = []);
|
|
559
644
|
callbacks.push(callback);
|
|
560
645
|
return () => {
|
|
@@ -591,7 +676,14 @@ function create_else_block(ctx) {
|
|
|
591
676
|
p(ctx2, dirty) {
|
|
592
677
|
if (default_slot) {
|
|
593
678
|
if (default_slot.p && (!current || dirty & 8)) {
|
|
594
|
-
update_slot_base(
|
|
679
|
+
update_slot_base(
|
|
680
|
+
default_slot,
|
|
681
|
+
default_slot_template,
|
|
682
|
+
ctx2,
|
|
683
|
+
ctx2[3],
|
|
684
|
+
!current ? get_all_dirty_from_scope(ctx2[3]) : get_slot_changes(default_slot_template, ctx2[3], dirty, null),
|
|
685
|
+
null
|
|
686
|
+
);
|
|
595
687
|
}
|
|
596
688
|
}
|
|
597
689
|
},
|
|
@@ -657,7 +749,7 @@ function create_fragment(ctx) {
|
|
|
657
749
|
return 0;
|
|
658
750
|
return 1;
|
|
659
751
|
}
|
|
660
|
-
current_block_type_index = select_block_type(ctx);
|
|
752
|
+
current_block_type_index = select_block_type(ctx, -1);
|
|
661
753
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
662
754
|
return {
|
|
663
755
|
c() {
|
|
@@ -671,7 +763,7 @@ function create_fragment(ctx) {
|
|
|
671
763
|
},
|
|
672
764
|
p(ctx2, [dirty]) {
|
|
673
765
|
let previous_block_index = current_block_type_index;
|
|
674
|
-
current_block_type_index = select_block_type(ctx2);
|
|
766
|
+
current_block_type_index = select_block_type(ctx2, dirty);
|
|
675
767
|
if (current_block_type_index === previous_block_index) {
|
|
676
768
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
677
769
|
} else {
|
|
@@ -3511,7 +3603,14 @@ function create_else_block_1(ctx) {
|
|
|
3511
3603
|
p(ctx2, dirty) {
|
|
3512
3604
|
if (default_slot) {
|
|
3513
3605
|
if (default_slot.p && (!current || dirty & 256)) {
|
|
3514
|
-
update_slot_base(
|
|
3606
|
+
update_slot_base(
|
|
3607
|
+
default_slot,
|
|
3608
|
+
default_slot_template,
|
|
3609
|
+
ctx2,
|
|
3610
|
+
ctx2[8],
|
|
3611
|
+
!current ? get_all_dirty_from_scope(ctx2[8]) : get_slot_changes(default_slot_template, ctx2[8], dirty, null),
|
|
3612
|
+
null
|
|
3613
|
+
);
|
|
3515
3614
|
}
|
|
3516
3615
|
}
|
|
3517
3616
|
if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
|
|
@@ -3553,7 +3652,7 @@ function create_if_block2(ctx) {
|
|
|
3553
3652
|
return 0;
|
|
3554
3653
|
return 1;
|
|
3555
3654
|
}
|
|
3556
|
-
current_block_type_index = select_block_type_1(ctx);
|
|
3655
|
+
current_block_type_index = select_block_type_1(ctx, -1);
|
|
3557
3656
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
3558
3657
|
return {
|
|
3559
3658
|
c() {
|
|
@@ -3567,7 +3666,7 @@ function create_if_block2(ctx) {
|
|
|
3567
3666
|
},
|
|
3568
3667
|
p(ctx2, dirty) {
|
|
3569
3668
|
let previous_block_index = current_block_type_index;
|
|
3570
|
-
current_block_type_index = select_block_type_1(ctx2);
|
|
3669
|
+
current_block_type_index = select_block_type_1(ctx2, dirty);
|
|
3571
3670
|
if (current_block_type_index === previous_block_index) {
|
|
3572
3671
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
3573
3672
|
} else {
|
|
@@ -3642,7 +3741,14 @@ function create_else_block2(ctx) {
|
|
|
3642
3741
|
p(ctx2, dirty) {
|
|
3643
3742
|
if (default_slot) {
|
|
3644
3743
|
if (default_slot.p && (!current || dirty & 256)) {
|
|
3645
|
-
update_slot_base(
|
|
3744
|
+
update_slot_base(
|
|
3745
|
+
default_slot,
|
|
3746
|
+
default_slot_template,
|
|
3747
|
+
ctx2,
|
|
3748
|
+
ctx2[8],
|
|
3749
|
+
!current ? get_all_dirty_from_scope(ctx2[8]) : get_slot_changes(default_slot_template, ctx2[8], dirty, null),
|
|
3750
|
+
null
|
|
3751
|
+
);
|
|
3646
3752
|
}
|
|
3647
3753
|
}
|
|
3648
3754
|
if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
|
|
@@ -3738,7 +3844,14 @@ function create_if_block_1(ctx) {
|
|
|
3738
3844
|
p(ctx2, dirty) {
|
|
3739
3845
|
if (default_slot) {
|
|
3740
3846
|
if (default_slot.p && (!current || dirty & 256)) {
|
|
3741
|
-
update_slot_base(
|
|
3847
|
+
update_slot_base(
|
|
3848
|
+
default_slot,
|
|
3849
|
+
default_slot_template,
|
|
3850
|
+
ctx2,
|
|
3851
|
+
ctx2[8],
|
|
3852
|
+
!current ? get_all_dirty_from_scope(ctx2[8]) : get_slot_changes(default_slot_template, ctx2[8], dirty, null),
|
|
3853
|
+
null
|
|
3854
|
+
);
|
|
3742
3855
|
}
|
|
3743
3856
|
}
|
|
3744
3857
|
if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
|
|
@@ -3801,7 +3914,7 @@ function create_fragment45(ctx) {
|
|
|
3801
3914
|
return 0;
|
|
3802
3915
|
return 1;
|
|
3803
3916
|
}
|
|
3804
|
-
current_block_type_index = select_block_type(ctx);
|
|
3917
|
+
current_block_type_index = select_block_type(ctx, -1);
|
|
3805
3918
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
3806
3919
|
return {
|
|
3807
3920
|
c() {
|
|
@@ -3815,7 +3928,7 @@ function create_fragment45(ctx) {
|
|
|
3815
3928
|
},
|
|
3816
3929
|
p(ctx2, [dirty]) {
|
|
3817
3930
|
let previous_block_index = current_block_type_index;
|
|
3818
|
-
current_block_type_index = select_block_type(ctx2);
|
|
3931
|
+
current_block_type_index = select_block_type(ctx2, dirty);
|
|
3819
3932
|
if (current_block_type_index === previous_block_index) {
|
|
3820
3933
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
3821
3934
|
} else {
|
|
@@ -4219,28 +4332,36 @@ function instance46($$self, $$props, $$invalidate) {
|
|
|
4219
4332
|
};
|
|
4220
4333
|
$$self.$$.update = () => {
|
|
4221
4334
|
if ($$self.$$.dirty & 2048) {
|
|
4222
|
-
|
|
4335
|
+
$:
|
|
4336
|
+
$$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
|
|
4223
4337
|
}
|
|
4224
4338
|
if ($$self.$$.dirty & 65536) {
|
|
4225
|
-
|
|
4339
|
+
$:
|
|
4340
|
+
$$invalidate(13, disabled = !$writable);
|
|
4226
4341
|
}
|
|
4227
4342
|
if ($$self.$$.dirty & 4096) {
|
|
4228
|
-
|
|
4343
|
+
$:
|
|
4344
|
+
$$invalidate(7, t = i18n[language]);
|
|
4229
4345
|
}
|
|
4230
4346
|
if ($$self.$$.dirty & 8192) {
|
|
4231
|
-
|
|
4347
|
+
$:
|
|
4348
|
+
$$invalidate(2, type = disabled ? "disable" : "normal");
|
|
4232
4349
|
}
|
|
4233
4350
|
if ($$self.$$.dirty & 2048) {
|
|
4234
|
-
|
|
4351
|
+
$:
|
|
4352
|
+
$$subscribe_undoSteps($$invalidate(6, undoSteps = app == null ? void 0 : app.canUndoSteps));
|
|
4235
4353
|
}
|
|
4236
4354
|
if ($$self.$$.dirty & 2048) {
|
|
4237
|
-
|
|
4355
|
+
$:
|
|
4356
|
+
$$subscribe_redoSteps($$invalidate(5, redoSteps = app == null ? void 0 : app.canRedoSteps));
|
|
4238
4357
|
}
|
|
4239
4358
|
if ($$self.$$.dirty & 40960) {
|
|
4240
|
-
|
|
4359
|
+
$:
|
|
4360
|
+
$$invalidate(4, undo_disabled = disabled || !$undoSteps);
|
|
4241
4361
|
}
|
|
4242
4362
|
if ($$self.$$.dirty & 24576) {
|
|
4243
|
-
|
|
4363
|
+
$:
|
|
4364
|
+
$$invalidate(3, redo_disabled = disabled || !$redoSteps);
|
|
4244
4365
|
}
|
|
4245
4366
|
};
|
|
4246
4367
|
return [
|
|
@@ -4588,7 +4709,7 @@ function create_fragment47(ctx) {
|
|
|
4588
4709
|
return create_if_block3;
|
|
4589
4710
|
return create_else_block3;
|
|
4590
4711
|
}
|
|
4591
|
-
let current_block_type = select_block_type(ctx);
|
|
4712
|
+
let current_block_type = select_block_type(ctx, -1);
|
|
4592
4713
|
let if_block = current_block_type(ctx);
|
|
4593
4714
|
button1 = new Button_default({
|
|
4594
4715
|
props: {
|
|
@@ -4652,7 +4773,7 @@ function create_fragment47(ctx) {
|
|
|
4652
4773
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
4653
4774
|
}
|
|
4654
4775
|
button0.$set(button0_changes);
|
|
4655
|
-
if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block) {
|
|
4776
|
+
if (current_block_type === (current_block_type = select_block_type(ctx2, dirty)) && if_block) {
|
|
4656
4777
|
if_block.p(ctx2, dirty);
|
|
4657
4778
|
} else {
|
|
4658
4779
|
if_block.d(1);
|
|
@@ -4769,28 +4890,36 @@ function instance47($$self, $$props, $$invalidate) {
|
|
|
4769
4890
|
};
|
|
4770
4891
|
$$self.$$.update = () => {
|
|
4771
4892
|
if ($$self.$$.dirty & 32768) {
|
|
4772
|
-
|
|
4893
|
+
$:
|
|
4894
|
+
$$subscribe_writable($$invalidate(11, writable2 = app == null ? void 0 : app.writable));
|
|
4773
4895
|
}
|
|
4774
4896
|
if ($$self.$$.dirty & 131072) {
|
|
4775
|
-
|
|
4897
|
+
$:
|
|
4898
|
+
$$invalidate(2, disabled = !$writable);
|
|
4776
4899
|
}
|
|
4777
4900
|
if ($$self.$$.dirty & 65536) {
|
|
4778
|
-
|
|
4901
|
+
$:
|
|
4902
|
+
$$invalidate(10, t = i18n2[language]);
|
|
4779
4903
|
}
|
|
4780
4904
|
if ($$self.$$.dirty & 4) {
|
|
4781
|
-
|
|
4905
|
+
$:
|
|
4906
|
+
$$invalidate(5, type = disabled ? "disable" : "normal");
|
|
4782
4907
|
}
|
|
4783
4908
|
if ($$self.$$.dirty & 32768) {
|
|
4784
|
-
|
|
4909
|
+
$:
|
|
4910
|
+
$$subscribe_index($$invalidate(9, index = app == null ? void 0 : app.sceneIndex));
|
|
4785
4911
|
}
|
|
4786
4912
|
if ($$self.$$.dirty & 32768) {
|
|
4787
|
-
|
|
4913
|
+
$:
|
|
4914
|
+
$$subscribe_length($$invalidate(8, length = app == null ? void 0 : app.sceneLength));
|
|
4788
4915
|
}
|
|
4789
4916
|
if ($$self.$$.dirty & 20) {
|
|
4790
|
-
|
|
4917
|
+
$:
|
|
4918
|
+
$$invalidate(7, prev_disabled = disabled || !$index);
|
|
4791
4919
|
}
|
|
4792
4920
|
if ($$self.$$.dirty & 28) {
|
|
4793
|
-
|
|
4921
|
+
$:
|
|
4922
|
+
$$invalidate(6, next_disabled = disabled || $length == null || $index === $length - 1);
|
|
4794
4923
|
}
|
|
4795
4924
|
};
|
|
4796
4925
|
return [
|
|
@@ -5137,7 +5266,7 @@ function create_fragment48(ctx) {
|
|
|
5137
5266
|
return create_if_block4;
|
|
5138
5267
|
return create_else_block4;
|
|
5139
5268
|
}
|
|
5140
|
-
let current_block_type = select_block_type(ctx);
|
|
5269
|
+
let current_block_type = select_block_type(ctx, -1);
|
|
5141
5270
|
let if_block = current_block_type(ctx);
|
|
5142
5271
|
button1 = new Button_default({
|
|
5143
5272
|
props: {
|
|
@@ -5201,7 +5330,7 @@ function create_fragment48(ctx) {
|
|
|
5201
5330
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
5202
5331
|
}
|
|
5203
5332
|
button0.$set(button0_changes);
|
|
5204
|
-
if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block) {
|
|
5333
|
+
if (current_block_type === (current_block_type = select_block_type(ctx2, dirty)) && if_block) {
|
|
5205
5334
|
if_block.p(ctx2, dirty);
|
|
5206
5335
|
} else {
|
|
5207
5336
|
if_block.d(1);
|
|
@@ -5353,28 +5482,36 @@ function instance48($$self, $$props, $$invalidate) {
|
|
|
5353
5482
|
$$self.$$.update = () => {
|
|
5354
5483
|
var _a;
|
|
5355
5484
|
if ($$self.$$.dirty & 16384) {
|
|
5356
|
-
|
|
5485
|
+
$:
|
|
5486
|
+
$$subscribe_writable($$invalidate(10, writable2 = app == null ? void 0 : app.writable));
|
|
5357
5487
|
}
|
|
5358
5488
|
if ($$self.$$.dirty & 65536) {
|
|
5359
|
-
|
|
5489
|
+
$:
|
|
5490
|
+
$$invalidate(3, disabled = !$writable);
|
|
5360
5491
|
}
|
|
5361
5492
|
if ($$self.$$.dirty & 32768) {
|
|
5362
|
-
|
|
5493
|
+
$:
|
|
5494
|
+
$$invalidate(9, t = i18n3[language]);
|
|
5363
5495
|
}
|
|
5364
5496
|
if ($$self.$$.dirty & 8) {
|
|
5365
|
-
|
|
5497
|
+
$:
|
|
5498
|
+
$$invalidate(5, type = disabled ? "disable" : "normal");
|
|
5366
5499
|
}
|
|
5367
5500
|
if ($$self.$$.dirty & 16384) {
|
|
5368
|
-
|
|
5501
|
+
$:
|
|
5502
|
+
$$subscribe_camera($$invalidate(8, camera = app == null ? void 0 : app.camera));
|
|
5369
5503
|
}
|
|
5370
5504
|
if ($$self.$$.dirty & 16) {
|
|
5371
|
-
|
|
5505
|
+
$:
|
|
5506
|
+
$$invalidate(2, scale = (_a = $camera == null ? void 0 : $camera.scale) != null ? _a : 1);
|
|
5372
5507
|
}
|
|
5373
5508
|
if ($$self.$$.dirty & 12) {
|
|
5374
|
-
|
|
5509
|
+
$:
|
|
5510
|
+
$$invalidate(7, plus_disabled = disabled || next_scale(scale, 1) === scale);
|
|
5375
5511
|
}
|
|
5376
5512
|
if ($$self.$$.dirty & 12) {
|
|
5377
|
-
|
|
5513
|
+
$:
|
|
5514
|
+
$$invalidate(6, minus_disabled = disabled || next_scale(scale, -1) === scale);
|
|
5378
5515
|
}
|
|
5379
5516
|
};
|
|
5380
5517
|
return [
|
|
@@ -5410,7 +5547,7 @@ var ZoomControl = class extends SvelteComponent {
|
|
|
5410
5547
|
};
|
|
5411
5548
|
var ZoomControl_default = ZoomControl;
|
|
5412
5549
|
|
|
5413
|
-
// ../../node_modules/.pnpm/svelte@3.
|
|
5550
|
+
// ../../node_modules/.pnpm/svelte@3.55.0/node_modules/svelte/store/index.mjs
|
|
5414
5551
|
var subscriber_queue = [];
|
|
5415
5552
|
function writable(value, start = noop) {
|
|
5416
5553
|
let stop;
|
|
@@ -5560,7 +5697,7 @@ var scrollTop = function(node, value) {
|
|
|
5560
5697
|
let timer = 0;
|
|
5561
5698
|
function on_scroll() {
|
|
5562
5699
|
clearTimeout(timer);
|
|
5563
|
-
timer = setTimeout(() => value.set(node.scrollTop), 200);
|
|
5700
|
+
timer = window.setTimeout(() => value.set(node.scrollTop), 200);
|
|
5564
5701
|
}
|
|
5565
5702
|
node.addEventListener("scroll", on_scroll);
|
|
5566
5703
|
let unsubscribe = value.subscribe(listener);
|
|
@@ -5578,19 +5715,19 @@ var scrollTop = function(node, value) {
|
|
|
5578
5715
|
};
|
|
5579
5716
|
|
|
5580
5717
|
// src/behaviors/icons/visual-studio-code.svg
|
|
5581
|
-
var visual_studio_code_default =
|
|
5718
|
+
var visual_studio_code_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1.01em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 254" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);"><defs><linearGradient id="IconifyId-17f872155be-cc766e-5439" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="%23FFF"/><stop offset="100%" stop-color="%23FFF" stop-opacity="0"/></linearGradient><path id="IconifyId-17f872155be-cc766e-5440" d="M180.828 252.605a15.872 15.872 0 0 0 12.65-.486l52.501-25.262a15.94 15.94 0 0 0 9.025-14.364V41.197a15.939 15.939 0 0 0-9.025-14.363l-52.5-25.263a15.877 15.877 0 0 0-18.115 3.084L74.857 96.35l-43.78-33.232a10.614 10.614 0 0 0-13.56.603L3.476 76.494c-4.63 4.211-4.635 11.495-.012 15.713l37.967 34.638l-37.967 34.637c-4.623 4.219-4.618 11.502.012 15.714l14.041 12.772a10.614 10.614 0 0 0 13.56.604l43.78-33.233l100.507 91.695a15.853 15.853 0 0 0 5.464 3.571Zm10.464-183.649l-76.262 57.889l76.262 57.888V68.956Z"/></defs><mask id="IconifyId-17f872155be-cc766e-5441" fill="%23fff"><use href="%23IconifyId-17f872155be-cc766e-5440"/></mask><path fill="%230065A9" d="M246.135 26.873L193.593 1.575a15.885 15.885 0 0 0-18.123 3.08L3.466 161.482c-4.626 4.219-4.62 11.502.012 15.714l14.05 12.772a10.625 10.625 0 0 0 13.569.604L238.229 33.436c6.949-5.271 16.93-.315 16.93 8.407v-.61a15.938 15.938 0 0 0-9.024-14.36Z" mask="url(%23IconifyId-17f872155be-cc766e-5441)"/><path fill="%23007ACC" d="m246.135 226.816l-52.542 25.298a15.887 15.887 0 0 1-18.123-3.08L3.466 92.207c-4.626-4.218-4.62-11.502.012-15.713l14.05-12.773a10.625 10.625 0 0 1 13.569-.603l207.132 157.135c6.949 5.271 16.93.315 16.93-8.408v.611a15.939 15.939 0 0 1-9.024 14.36Z" mask="url(%23IconifyId-17f872155be-cc766e-5441)"/><path fill="%231F9CF0" d="M193.428 252.134a15.892 15.892 0 0 1-18.125-3.083c5.881 5.88 15.938 1.715 15.938-6.603V11.273c0-8.318-10.057-12.483-15.938-6.602a15.892 15.892 0 0 1 18.125-3.084l52.533 25.263a15.937 15.937 0 0 1 9.03 14.363V212.51c0 6.125-3.51 11.709-9.03 14.363l-52.533 25.262Z" mask="url(%23IconifyId-17f872155be-cc766e-5441)"/><path fill="url(%23IconifyId-17f872155be-cc766e-5439)" fill-opacity=".25" d="M180.828 252.605a15.874 15.874 0 0 0 12.65-.486l52.5-25.263a15.938 15.938 0 0 0 9.026-14.363V41.197a15.939 15.939 0 0 0-9.025-14.363L193.477 1.57a15.877 15.877 0 0 0-18.114 3.084L74.857 96.35l-43.78-33.232a10.614 10.614 0 0 0-13.56.603L3.476 76.494c-4.63 4.211-4.635 11.495-.012 15.713l37.967 34.638l-37.967 34.637c-4.623 4.219-4.618 11.502.012 15.714l14.041 12.772a10.614 10.614 0 0 0 13.56.604l43.78-33.233l100.506 91.695a15.857 15.857 0 0 0 5.465 3.571Zm10.464-183.65l-76.262 57.89l76.262 57.888V68.956Z" mask="url(%23IconifyId-17f872155be-cc766e-5441)"/></svg>';
|
|
5582
5719
|
|
|
5583
5720
|
// src/behaviors/icons/geogebra.svg
|
|
5584
|
-
var geogebra_default =
|
|
5721
|
+
var geogebra_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--arcticons" width="32" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 48 48"><path fill="none" stroke="%236557d2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M24 3a4.77 4.77 0 1 0 4.77 4.77A4.78 4.78 0 0 0 24 3ZM7.69 14.86a4.77 4.77 0 1 0 4.76 4.77a4.76 4.76 0 0 0-4.76-4.77Zm32.64 0a4.77 4.77 0 1 0 4.77 4.77a4.77 4.77 0 0 0-4.77-4.77ZM13.92 34.05a4.77 4.77 0 1 0 4.77 4.77a4.76 4.76 0 0 0-4.77-4.77Zm20.18 0a4.77 4.77 0 1 0 4.76 4.77a4.76 4.76 0 0 0-4.76-4.77Z"></path><path fill="none" stroke="%236557d2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M19.27 8.35a17.24 17.24 0 0 0-9.73 6.87m28.51.22a17.28 17.28 0 0 0-9.34-6.94m8.7 26.89A17.09 17.09 0 0 0 40.93 25v-.61M18 41.22a17.23 17.23 0 0 0 5.68 1a17 17 0 0 0 6.2-1.22M6.53 24.25v.72a17.16 17.16 0 0 0 3.77 10.76"></path></svg>';
|
|
5585
5722
|
|
|
5586
5723
|
// src/behaviors/icons/countdown.svg
|
|
5587
|
-
var countdown_default =
|
|
5724
|
+
var countdown_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--radix-icons" width="32" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 15 15"><path fill="grey" fill-rule="evenodd" d="M13.15 7.5c0-2.835-2.21-5.65-5.65-5.65c-2.778 0-4.151 2.056-4.737 3.15H4.5a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 1 0v1.813C2.705 3.071 4.334.85 7.5.85c4.063 0 6.65 3.335 6.65 6.65c0 3.315-2.587 6.65-6.65 6.65c-1.944 0-3.562-.77-4.715-1.942a6.772 6.772 0 0 1-1.427-2.167a.5.5 0 1 1 .925-.38c.28.681.692 1.314 1.216 1.846c.972.99 2.336 1.643 4.001 1.643c3.44 0 5.65-2.815 5.65-5.65ZM7 10V5h1v5H7Z" clip-rule="evenodd"></path></svg>';
|
|
5588
5725
|
|
|
5589
5726
|
// src/behaviors/apps.ts
|
|
5590
5727
|
var AppsInToolbar = class {
|
|
5591
5728
|
constructor(_data) {
|
|
5592
5729
|
this._data = _data;
|
|
5593
|
-
this
|
|
5730
|
+
__publicField(this, "_listeners", []);
|
|
5594
5731
|
}
|
|
5595
5732
|
get data() {
|
|
5596
5733
|
return this._data;
|
|
@@ -5805,12 +5942,14 @@ function instance49($$self, $$props, $$invalidate) {
|
|
|
5805
5942
|
};
|
|
5806
5943
|
$$self.$$.update = () => {
|
|
5807
5944
|
if ($$self.$$.dirty & 385) {
|
|
5808
|
-
|
|
5945
|
+
$:
|
|
5946
|
+
if (value !== real_value && !grabbing) {
|
|
5809
5947
|
$$invalidate(7, real_value = value);
|
|
5810
5948
|
}
|
|
5811
5949
|
}
|
|
5812
5950
|
if ($$self.$$.dirty & 152) {
|
|
5813
|
-
|
|
5951
|
+
$:
|
|
5952
|
+
$$invalidate(9, percent = 100 * (real_value - min) / (max - min));
|
|
5814
5953
|
}
|
|
5815
5954
|
};
|
|
5816
5955
|
return [
|
|
@@ -5916,13 +6055,16 @@ function instance50($$self, $$props, $$invalidate) {
|
|
|
5916
6055
|
$$self.$$.update = () => {
|
|
5917
6056
|
var _a;
|
|
5918
6057
|
if ($$self.$$.dirty & 8) {
|
|
5919
|
-
|
|
6058
|
+
$:
|
|
6059
|
+
$$subscribe_memberState($$invalidate(1, memberState = app == null ? void 0 : app.memberState));
|
|
5920
6060
|
}
|
|
5921
6061
|
if ($$self.$$.dirty & 128) {
|
|
5922
|
-
|
|
6062
|
+
$:
|
|
6063
|
+
$$invalidate(6, value = (_a = $memberState == null ? void 0 : $memberState.strokeWidth) != null ? _a : 1);
|
|
5923
6064
|
}
|
|
5924
6065
|
if ($$self.$$.dirty & 112) {
|
|
5925
|
-
|
|
6066
|
+
$:
|
|
6067
|
+
$$invalidate(0, props = { value, theme, disabled });
|
|
5926
6068
|
}
|
|
5927
6069
|
};
|
|
5928
6070
|
return [
|
|
@@ -5955,6 +6097,7 @@ function create_each_block(key_1, ctx) {
|
|
|
5955
6097
|
let span;
|
|
5956
6098
|
let t;
|
|
5957
6099
|
let button_class_value;
|
|
6100
|
+
let button_data_color_key_value;
|
|
5958
6101
|
return {
|
|
5959
6102
|
key: key_1,
|
|
5960
6103
|
first: null,
|
|
@@ -5963,9 +6106,9 @@ function create_each_block(key_1, ctx) {
|
|
|
5963
6106
|
span = element("span");
|
|
5964
6107
|
t = space();
|
|
5965
6108
|
attr(span, "class", "fastboard-toolbar-color-item");
|
|
5966
|
-
set_style(span, "background-color", ctx[7]
|
|
6109
|
+
set_style(span, "background-color", ctx[7]);
|
|
5967
6110
|
attr(button, "class", button_class_value = "fastboard-toolbar-btn fastboard-toolbar-color-btn " + ctx[0]);
|
|
5968
|
-
attr(button, "data-color-key", ctx[7]);
|
|
6111
|
+
attr(button, "data-color-key", button_data_color_key_value = ctx[7]);
|
|
5969
6112
|
button.disabled = ctx[1];
|
|
5970
6113
|
toggle_class(button, "is-active", is_equal_color(ctx[2], colors[ctx[7]]));
|
|
5971
6114
|
this.first = button;
|
|
@@ -6077,10 +6220,12 @@ function instance51($$self, $$props, $$invalidate) {
|
|
|
6077
6220
|
};
|
|
6078
6221
|
$$self.$$.update = () => {
|
|
6079
6222
|
if ($$self.$$.dirty & 32) {
|
|
6080
|
-
|
|
6223
|
+
$:
|
|
6224
|
+
$$subscribe_memberState($$invalidate(3, memberState = app == null ? void 0 : app.memberState));
|
|
6081
6225
|
}
|
|
6082
6226
|
if ($$self.$$.dirty & 64) {
|
|
6083
|
-
|
|
6227
|
+
$:
|
|
6228
|
+
$$invalidate(2, strokeColor = $memberState == null ? void 0 : $memberState.strokeColor);
|
|
6084
6229
|
}
|
|
6085
6230
|
};
|
|
6086
6231
|
return [theme, disabled, strokeColor, memberState, set_stroke_color, app, $memberState];
|
|
@@ -6104,6 +6249,7 @@ function create_each_block2(key_1, ctx) {
|
|
|
6104
6249
|
let span;
|
|
6105
6250
|
let t;
|
|
6106
6251
|
let button_class_value;
|
|
6252
|
+
let button_data_color_key_value;
|
|
6107
6253
|
return {
|
|
6108
6254
|
key: key_1,
|
|
6109
6255
|
first: null,
|
|
@@ -6112,9 +6258,9 @@ function create_each_block2(key_1, ctx) {
|
|
|
6112
6258
|
span = element("span");
|
|
6113
6259
|
t = space();
|
|
6114
6260
|
attr(span, "class", "fastboard-toolbar-color-item");
|
|
6115
|
-
set_style(span, "background-color", ctx[7]
|
|
6261
|
+
set_style(span, "background-color", ctx[7]);
|
|
6116
6262
|
attr(button, "class", button_class_value = "fastboard-toolbar-btn fastboard-toolbar-color-btn " + ctx[0]);
|
|
6117
|
-
attr(button, "data-color-key", ctx[7]);
|
|
6263
|
+
attr(button, "data-color-key", button_data_color_key_value = ctx[7]);
|
|
6118
6264
|
button.disabled = ctx[1];
|
|
6119
6265
|
toggle_class(button, "is-active", is_equal_color2(ctx[2], colors[ctx[7]]));
|
|
6120
6266
|
this.first = button;
|
|
@@ -6226,10 +6372,12 @@ function instance52($$self, $$props, $$invalidate) {
|
|
|
6226
6372
|
};
|
|
6227
6373
|
$$self.$$.update = () => {
|
|
6228
6374
|
if ($$self.$$.dirty & 32) {
|
|
6229
|
-
|
|
6375
|
+
$:
|
|
6376
|
+
$$subscribe_memberState($$invalidate(3, memberState = app == null ? void 0 : app.memberState));
|
|
6230
6377
|
}
|
|
6231
6378
|
if ($$self.$$.dirty & 64) {
|
|
6232
|
-
|
|
6379
|
+
$:
|
|
6380
|
+
$$invalidate(2, textColor = $memberState == null ? void 0 : $memberState.textColor);
|
|
6233
6381
|
}
|
|
6234
6382
|
};
|
|
6235
6383
|
return [theme, disabled, textColor, memberState, set_stroke_color, app, $memberState];
|
|
@@ -6259,7 +6407,7 @@ function create_else_block5(ctx) {
|
|
|
6259
6407
|
return { props: { theme: ctx2[0] } };
|
|
6260
6408
|
}
|
|
6261
6409
|
if (switch_value) {
|
|
6262
|
-
switch_instance =
|
|
6410
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
|
|
6263
6411
|
}
|
|
6264
6412
|
return {
|
|
6265
6413
|
c() {
|
|
@@ -6268,9 +6416,8 @@ function create_else_block5(ctx) {
|
|
|
6268
6416
|
switch_instance_anchor = empty();
|
|
6269
6417
|
},
|
|
6270
6418
|
m(target, anchor) {
|
|
6271
|
-
if (switch_instance)
|
|
6419
|
+
if (switch_instance)
|
|
6272
6420
|
mount_component(switch_instance, target, anchor);
|
|
6273
|
-
}
|
|
6274
6421
|
insert(target, switch_instance_anchor, anchor);
|
|
6275
6422
|
current = true;
|
|
6276
6423
|
},
|
|
@@ -6288,7 +6435,7 @@ function create_else_block5(ctx) {
|
|
|
6288
6435
|
check_outros();
|
|
6289
6436
|
}
|
|
6290
6437
|
if (switch_value) {
|
|
6291
|
-
switch_instance =
|
|
6438
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx2));
|
|
6292
6439
|
create_component(switch_instance.$$.fragment);
|
|
6293
6440
|
transition_in(switch_instance.$$.fragment, 1);
|
|
6294
6441
|
mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
|
|
@@ -6330,7 +6477,7 @@ function create_if_block5(ctx) {
|
|
|
6330
6477
|
};
|
|
6331
6478
|
}
|
|
6332
6479
|
if (switch_value) {
|
|
6333
|
-
switch_instance =
|
|
6480
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
|
|
6334
6481
|
}
|
|
6335
6482
|
return {
|
|
6336
6483
|
c() {
|
|
@@ -6339,9 +6486,8 @@ function create_if_block5(ctx) {
|
|
|
6339
6486
|
switch_instance_anchor = empty();
|
|
6340
6487
|
},
|
|
6341
6488
|
m(target, anchor) {
|
|
6342
|
-
if (switch_instance)
|
|
6489
|
+
if (switch_instance)
|
|
6343
6490
|
mount_component(switch_instance, target, anchor);
|
|
6344
|
-
}
|
|
6345
6491
|
insert(target, switch_instance_anchor, anchor);
|
|
6346
6492
|
current = true;
|
|
6347
6493
|
},
|
|
@@ -6359,7 +6505,7 @@ function create_if_block5(ctx) {
|
|
|
6359
6505
|
check_outros();
|
|
6360
6506
|
}
|
|
6361
6507
|
if (switch_value) {
|
|
6362
|
-
switch_instance =
|
|
6508
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx2));
|
|
6363
6509
|
create_component(switch_instance.$$.fragment);
|
|
6364
6510
|
transition_in(switch_instance.$$.fragment, 1);
|
|
6365
6511
|
mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
|
|
@@ -6396,6 +6542,7 @@ function create_each_block3(key_1, ctx) {
|
|
|
6396
6542
|
let if_block;
|
|
6397
6543
|
let t_1;
|
|
6398
6544
|
let button_class_value;
|
|
6545
|
+
let button_data_shape_key_value;
|
|
6399
6546
|
let tippy_action;
|
|
6400
6547
|
let current;
|
|
6401
6548
|
let mounted;
|
|
@@ -6407,7 +6554,7 @@ function create_each_block3(key_1, ctx) {
|
|
|
6407
6554
|
return 0;
|
|
6408
6555
|
return 1;
|
|
6409
6556
|
}
|
|
6410
|
-
current_block_type_index = select_block_type(ctx);
|
|
6557
|
+
current_block_type_index = select_block_type(ctx, -1);
|
|
6411
6558
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
6412
6559
|
return {
|
|
6413
6560
|
key: key_1,
|
|
@@ -6417,7 +6564,7 @@ function create_each_block3(key_1, ctx) {
|
|
|
6417
6564
|
if_block.c();
|
|
6418
6565
|
t_1 = space();
|
|
6419
6566
|
attr(button, "class", button_class_value = "fastboard-toolbar-btn fastboard-toolbar-shape-btn " + ctx[0] + " " + ctx[12]);
|
|
6420
|
-
attr(button, "data-shape-key", ctx[12]);
|
|
6567
|
+
attr(button, "data-shape-key", button_data_shape_key_value = ctx[12]);
|
|
6421
6568
|
button.disabled = ctx[1];
|
|
6422
6569
|
toggle_class(button, "is-active", ctx[13]);
|
|
6423
6570
|
this.first = button;
|
|
@@ -6438,7 +6585,7 @@ function create_each_block3(key_1, ctx) {
|
|
|
6438
6585
|
p(new_ctx, dirty) {
|
|
6439
6586
|
ctx = new_ctx;
|
|
6440
6587
|
let previous_block_index = current_block_type_index;
|
|
6441
|
-
current_block_type_index = select_block_type(ctx);
|
|
6588
|
+
current_block_type_index = select_block_type(ctx, dirty);
|
|
6442
6589
|
if (current_block_type_index === previous_block_index) {
|
|
6443
6590
|
if_blocks[current_block_type_index].p(ctx, dirty);
|
|
6444
6591
|
} else {
|
|
@@ -6468,7 +6615,7 @@ function create_each_block3(key_1, ctx) {
|
|
|
6468
6615
|
content: tooltip(ctx[6][ctx[12]], ctx[2][ctx[12]]),
|
|
6469
6616
|
placement: "top"
|
|
6470
6617
|
});
|
|
6471
|
-
if (dirty & 25) {
|
|
6618
|
+
if (!current || dirty & 25) {
|
|
6472
6619
|
toggle_class(button, "is-active", ctx[13]);
|
|
6473
6620
|
}
|
|
6474
6621
|
},
|
|
@@ -6621,22 +6768,28 @@ function instance53($$self, $$props, $$invalidate) {
|
|
|
6621
6768
|
};
|
|
6622
6769
|
$$self.$$.update = () => {
|
|
6623
6770
|
if ($$self.$$.dirty & 512) {
|
|
6624
|
-
|
|
6771
|
+
$:
|
|
6772
|
+
$$invalidate(6, t = i18n5[language]);
|
|
6625
6773
|
}
|
|
6626
6774
|
if ($$self.$$.dirty & 256) {
|
|
6627
|
-
|
|
6775
|
+
$:
|
|
6776
|
+
$$subscribe_memberState($$invalidate(5, memberState = app == null ? void 0 : app.memberState));
|
|
6628
6777
|
}
|
|
6629
6778
|
if ($$self.$$.dirty & 2048) {
|
|
6630
|
-
|
|
6779
|
+
$:
|
|
6780
|
+
$$invalidate(4, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
|
|
6631
6781
|
}
|
|
6632
6782
|
if ($$self.$$.dirty & 2048) {
|
|
6633
|
-
|
|
6783
|
+
$:
|
|
6784
|
+
$$invalidate(3, shape = $memberState == null ? void 0 : $memberState.shapeType);
|
|
6634
6785
|
}
|
|
6635
6786
|
if ($$self.$$.dirty & 256) {
|
|
6636
|
-
|
|
6787
|
+
$:
|
|
6788
|
+
$$invalidate(10, hotkeys = app == null ? void 0 : app.hotKeys);
|
|
6637
6789
|
}
|
|
6638
6790
|
if ($$self.$$.dirty & 1024) {
|
|
6639
|
-
|
|
6791
|
+
$:
|
|
6792
|
+
$$invalidate(2, c = {
|
|
6640
6793
|
rectangle: hotkeys == null ? void 0 : hotkeys.changeToRectangle,
|
|
6641
6794
|
ellipse: hotkeys == null ? void 0 : hotkeys.changeToEllipse,
|
|
6642
6795
|
straight: hotkeys == null ? void 0 : hotkeys.changeToStraight,
|
|
@@ -6675,19 +6828,18 @@ var Shapes_default = Shapes;
|
|
|
6675
6828
|
// src/components/Toolbar/components/Contents.svelte
|
|
6676
6829
|
function get_each_context4(ctx, list, i) {
|
|
6677
6830
|
const child_ctx = ctx.slice();
|
|
6678
|
-
child_ctx[
|
|
6679
|
-
const constants_0 = child_ctx[
|
|
6680
|
-
child_ctx[
|
|
6681
|
-
child_ctx[
|
|
6682
|
-
child_ctx[
|
|
6683
|
-
child_ctx[
|
|
6684
|
-
const constants_1 = child_ctx[20] && child_ctx[20][child_ctx[
|
|
6685
|
-
child_ctx[
|
|
6686
|
-
const constants_2 = ()
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
child_ctx[47] = constants_2;
|
|
6831
|
+
child_ctx[42] = list[i];
|
|
6832
|
+
const constants_0 = child_ctx[42];
|
|
6833
|
+
child_ctx[43] = constants_0.icon;
|
|
6834
|
+
child_ctx[44] = constants_0.label;
|
|
6835
|
+
child_ctx[45] = constants_0.kind;
|
|
6836
|
+
child_ctx[46] = constants_0.onClick;
|
|
6837
|
+
const constants_1 = child_ctx[20] && child_ctx[20][child_ctx[45]];
|
|
6838
|
+
child_ctx[47] = constants_1;
|
|
6839
|
+
const constants_2 = function func() {
|
|
6840
|
+
return ctx[38](child_ctx[46]);
|
|
6841
|
+
};
|
|
6842
|
+
child_ctx[48] = constants_2;
|
|
6691
6843
|
return child_ctx;
|
|
6692
6844
|
}
|
|
6693
6845
|
function create_if_block_8(ctx) {
|
|
@@ -6713,7 +6865,7 @@ function create_if_block_8(ctx) {
|
|
|
6713
6865
|
},
|
|
6714
6866
|
p(ctx2, dirty) {
|
|
6715
6867
|
const button_changes = dirty[0] & 32768 ? get_spread_update(button_spread_levels, [button_spread_levels[0], get_spread_object(ctx2[15])]) : {};
|
|
6716
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
6868
|
+
if (dirty[0] & 2 | dirty[1] & 1048576) {
|
|
6717
6869
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
6718
6870
|
}
|
|
6719
6871
|
button.$set(button_changes);
|
|
@@ -6846,7 +6998,7 @@ function create_default_slot_8(ctx) {
|
|
|
6846
6998
|
return 0;
|
|
6847
6999
|
return 1;
|
|
6848
7000
|
}
|
|
6849
|
-
current_block_type_index = select_block_type(ctx);
|
|
7001
|
+
current_block_type_index = select_block_type(ctx, [-1, -1]);
|
|
6850
7002
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
6851
7003
|
return {
|
|
6852
7004
|
c() {
|
|
@@ -6860,7 +7012,7 @@ function create_default_slot_8(ctx) {
|
|
|
6860
7012
|
},
|
|
6861
7013
|
p(ctx2, dirty) {
|
|
6862
7014
|
let previous_block_index = current_block_type_index;
|
|
6863
|
-
current_block_type_index = select_block_type(ctx2);
|
|
7015
|
+
current_block_type_index = select_block_type(ctx2, dirty);
|
|
6864
7016
|
if (current_block_type_index === previous_block_index) {
|
|
6865
7017
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
6866
7018
|
} else {
|
|
@@ -6977,7 +7129,7 @@ function create_default_slot_7(ctx) {
|
|
|
6977
7129
|
return 0;
|
|
6978
7130
|
return 1;
|
|
6979
7131
|
}
|
|
6980
|
-
current_block_type_index = select_block_type_1(ctx);
|
|
7132
|
+
current_block_type_index = select_block_type_1(ctx, [-1, -1]);
|
|
6981
7133
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
6982
7134
|
return {
|
|
6983
7135
|
c() {
|
|
@@ -6991,7 +7143,7 @@ function create_default_slot_7(ctx) {
|
|
|
6991
7143
|
},
|
|
6992
7144
|
p(ctx2, dirty) {
|
|
6993
7145
|
let previous_block_index = current_block_type_index;
|
|
6994
|
-
current_block_type_index = select_block_type_1(ctx2);
|
|
7146
|
+
current_block_type_index = select_block_type_1(ctx2, dirty);
|
|
6995
7147
|
if (current_block_type_index === previous_block_index) {
|
|
6996
7148
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
6997
7149
|
} else {
|
|
@@ -7108,7 +7260,7 @@ function create_default_slot_6(ctx) {
|
|
|
7108
7260
|
return 0;
|
|
7109
7261
|
return 1;
|
|
7110
7262
|
}
|
|
7111
|
-
current_block_type_index = select_block_type_2(ctx);
|
|
7263
|
+
current_block_type_index = select_block_type_2(ctx, [-1, -1]);
|
|
7112
7264
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
7113
7265
|
return {
|
|
7114
7266
|
c() {
|
|
@@ -7122,7 +7274,7 @@ function create_default_slot_6(ctx) {
|
|
|
7122
7274
|
},
|
|
7123
7275
|
p(ctx2, dirty) {
|
|
7124
7276
|
let previous_block_index = current_block_type_index;
|
|
7125
|
-
current_block_type_index = select_block_type_2(ctx2);
|
|
7277
|
+
current_block_type_index = select_block_type_2(ctx2, dirty);
|
|
7126
7278
|
if (current_block_type_index === previous_block_index) {
|
|
7127
7279
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
7128
7280
|
} else {
|
|
@@ -7239,7 +7391,7 @@ function create_default_slot_53(ctx) {
|
|
|
7239
7391
|
return 0;
|
|
7240
7392
|
return 1;
|
|
7241
7393
|
}
|
|
7242
|
-
current_block_type_index = select_block_type_3(ctx);
|
|
7394
|
+
current_block_type_index = select_block_type_3(ctx, [-1, -1]);
|
|
7243
7395
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
7244
7396
|
return {
|
|
7245
7397
|
c() {
|
|
@@ -7253,7 +7405,7 @@ function create_default_slot_53(ctx) {
|
|
|
7253
7405
|
},
|
|
7254
7406
|
p(ctx2, dirty) {
|
|
7255
7407
|
let previous_block_index = current_block_type_index;
|
|
7256
|
-
current_block_type_index = select_block_type_3(ctx2);
|
|
7408
|
+
current_block_type_index = select_block_type_3(ctx2, dirty);
|
|
7257
7409
|
if (current_block_type_index === previous_block_index) {
|
|
7258
7410
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
7259
7411
|
} else {
|
|
@@ -7299,7 +7451,7 @@ function create_else_block_12(ctx) {
|
|
|
7299
7451
|
return { props: { theme: ctx2[1] } };
|
|
7300
7452
|
}
|
|
7301
7453
|
if (switch_value) {
|
|
7302
|
-
switch_instance =
|
|
7454
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
|
|
7303
7455
|
}
|
|
7304
7456
|
return {
|
|
7305
7457
|
c() {
|
|
@@ -7308,9 +7460,8 @@ function create_else_block_12(ctx) {
|
|
|
7308
7460
|
switch_instance_anchor = empty();
|
|
7309
7461
|
},
|
|
7310
7462
|
m(target, anchor) {
|
|
7311
|
-
if (switch_instance)
|
|
7463
|
+
if (switch_instance)
|
|
7312
7464
|
mount_component(switch_instance, target, anchor);
|
|
7313
|
-
}
|
|
7314
7465
|
insert(target, switch_instance_anchor, anchor);
|
|
7315
7466
|
current = true;
|
|
7316
7467
|
},
|
|
@@ -7328,7 +7479,7 @@ function create_else_block_12(ctx) {
|
|
|
7328
7479
|
check_outros();
|
|
7329
7480
|
}
|
|
7330
7481
|
if (switch_value) {
|
|
7331
|
-
switch_instance =
|
|
7482
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx2));
|
|
7332
7483
|
create_component(switch_instance.$$.fragment);
|
|
7333
7484
|
transition_in(switch_instance.$$.fragment, 1);
|
|
7334
7485
|
mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
|
|
@@ -7370,7 +7521,7 @@ function create_if_block_3(ctx) {
|
|
|
7370
7521
|
};
|
|
7371
7522
|
}
|
|
7372
7523
|
if (switch_value) {
|
|
7373
|
-
switch_instance =
|
|
7524
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
|
|
7374
7525
|
}
|
|
7375
7526
|
return {
|
|
7376
7527
|
c() {
|
|
@@ -7379,9 +7530,8 @@ function create_if_block_3(ctx) {
|
|
|
7379
7530
|
switch_instance_anchor = empty();
|
|
7380
7531
|
},
|
|
7381
7532
|
m(target, anchor) {
|
|
7382
|
-
if (switch_instance)
|
|
7533
|
+
if (switch_instance)
|
|
7383
7534
|
mount_component(switch_instance, target, anchor);
|
|
7384
|
-
}
|
|
7385
7535
|
insert(target, switch_instance_anchor, anchor);
|
|
7386
7536
|
current = true;
|
|
7387
7537
|
},
|
|
@@ -7399,7 +7549,7 @@ function create_if_block_3(ctx) {
|
|
|
7399
7549
|
check_outros();
|
|
7400
7550
|
}
|
|
7401
7551
|
if (switch_value) {
|
|
7402
|
-
switch_instance =
|
|
7552
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx2));
|
|
7403
7553
|
create_component(switch_instance.$$.fragment);
|
|
7404
7554
|
transition_in(switch_instance.$$.fragment, 1);
|
|
7405
7555
|
mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
|
|
@@ -7442,7 +7592,7 @@ function create_default_slot_43(ctx) {
|
|
|
7442
7592
|
return 0;
|
|
7443
7593
|
return 1;
|
|
7444
7594
|
}
|
|
7445
|
-
current_block_type_index = select_block_type_4(ctx);
|
|
7595
|
+
current_block_type_index = select_block_type_4(ctx, [-1, -1]);
|
|
7446
7596
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
7447
7597
|
return {
|
|
7448
7598
|
c() {
|
|
@@ -7456,7 +7606,7 @@ function create_default_slot_43(ctx) {
|
|
|
7456
7606
|
},
|
|
7457
7607
|
p(ctx2, dirty) {
|
|
7458
7608
|
let previous_block_index = current_block_type_index;
|
|
7459
|
-
current_block_type_index = select_block_type_4(ctx2);
|
|
7609
|
+
current_block_type_index = select_block_type_4(ctx2, dirty);
|
|
7460
7610
|
if (current_block_type_index === previous_block_index) {
|
|
7461
7611
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
7462
7612
|
} else {
|
|
@@ -7573,7 +7723,7 @@ function create_default_slot_34(ctx) {
|
|
|
7573
7723
|
return 0;
|
|
7574
7724
|
return 1;
|
|
7575
7725
|
}
|
|
7576
|
-
current_block_type_index = select_block_type_5(ctx);
|
|
7726
|
+
current_block_type_index = select_block_type_5(ctx, [-1, -1]);
|
|
7577
7727
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
7578
7728
|
return {
|
|
7579
7729
|
c() {
|
|
@@ -7587,7 +7737,7 @@ function create_default_slot_34(ctx) {
|
|
|
7587
7737
|
},
|
|
7588
7738
|
p(ctx2, dirty) {
|
|
7589
7739
|
let previous_block_index = current_block_type_index;
|
|
7590
|
-
current_block_type_index = select_block_type_5(ctx2);
|
|
7740
|
+
current_block_type_index = select_block_type_5(ctx2, dirty);
|
|
7591
7741
|
if (current_block_type_index === previous_block_index) {
|
|
7592
7742
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
7593
7743
|
} else {
|
|
@@ -7691,7 +7841,7 @@ function create_if_block_12(ctx) {
|
|
|
7691
7841
|
dirty[0] & 16384 && { menu: ctx2[14] },
|
|
7692
7842
|
button_spread_levels[4]
|
|
7693
7843
|
]) : {};
|
|
7694
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
7844
|
+
if (dirty[0] & 2 | dirty[1] & 1048576) {
|
|
7695
7845
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7696
7846
|
}
|
|
7697
7847
|
button.$set(button_changes);
|
|
@@ -7772,7 +7922,7 @@ function create_if_block6(ctx) {
|
|
|
7772
7922
|
button_changes.theme = ctx2[1];
|
|
7773
7923
|
if (dirty[0] & 8)
|
|
7774
7924
|
button_changes.disabled = ctx2[3];
|
|
7775
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
7925
|
+
if (dirty[0] & 2 | dirty[1] & 1048576) {
|
|
7776
7926
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7777
7927
|
}
|
|
7778
7928
|
button.$set(button_changes);
|
|
@@ -7834,7 +7984,7 @@ function create_each_block4(ctx) {
|
|
|
7834
7984
|
let img_title_value;
|
|
7835
7985
|
let t0;
|
|
7836
7986
|
let span;
|
|
7837
|
-
let t1_value = ctx[
|
|
7987
|
+
let t1_value = ctx[44] + "";
|
|
7838
7988
|
let t1;
|
|
7839
7989
|
let span_class_value;
|
|
7840
7990
|
let t2;
|
|
@@ -7853,17 +8003,17 @@ function create_each_block4(ctx) {
|
|
|
7853
8003
|
t1 = text(t1_value);
|
|
7854
8004
|
t2 = space();
|
|
7855
8005
|
attr(img, "class", img_class_value = name5 + "-app-btn-icon " + ctx[1]);
|
|
7856
|
-
if (!src_url_equal(img.src, img_src_value = ctx[
|
|
8006
|
+
if (!src_url_equal(img.src, img_src_value = ctx[43]))
|
|
7857
8007
|
attr(img, "src", img_src_value);
|
|
7858
|
-
attr(img, "alt", img_alt_value = ctx[
|
|
7859
|
-
attr(img, "title", img_title_value = ctx[
|
|
8008
|
+
attr(img, "alt", img_alt_value = ctx[45]);
|
|
8009
|
+
attr(img, "title", img_title_value = ctx[44]);
|
|
7860
8010
|
attr(span, "class", span_class_value = name5 + "-app-btn-text " + ctx[1]);
|
|
7861
|
-
attr(button, "class", button_class_value = name5 + "-app-btn " + ctx[
|
|
7862
|
-
attr(button, "title", button_title_value = ctx[
|
|
7863
|
-
attr(button, "data-app-kind", button_data_app_kind_value = ctx[
|
|
7864
|
-
button.disabled = button_disabled_value = ctx[
|
|
7865
|
-
toggle_class(button, "is-loading", ctx[
|
|
7866
|
-
toggle_class(button, "is-failed", ctx[
|
|
8011
|
+
attr(button, "class", button_class_value = name5 + "-app-btn " + ctx[45] + " " + ctx[1]);
|
|
8012
|
+
attr(button, "title", button_title_value = ctx[44] + (ctx[47] && ctx[47].reason ? ": " + ctx[47].reason : ""));
|
|
8013
|
+
attr(button, "data-app-kind", button_data_app_kind_value = ctx[42].kind);
|
|
8014
|
+
button.disabled = button_disabled_value = ctx[47] && ctx[47].status !== "idle";
|
|
8015
|
+
toggle_class(button, "is-loading", ctx[47] && ctx[47].status === "loading");
|
|
8016
|
+
toggle_class(button, "is-failed", ctx[47] && ctx[47].status === "failed");
|
|
7867
8017
|
},
|
|
7868
8018
|
m(target, anchor) {
|
|
7869
8019
|
insert(target, button, anchor);
|
|
@@ -7874,8 +8024,8 @@ function create_each_block4(ctx) {
|
|
|
7874
8024
|
append(button, t2);
|
|
7875
8025
|
if (!mounted) {
|
|
7876
8026
|
dispose = listen(button, "click", function() {
|
|
7877
|
-
if (is_function(ctx[
|
|
7878
|
-
ctx[
|
|
8027
|
+
if (is_function(ctx[48]))
|
|
8028
|
+
ctx[48].apply(this, arguments);
|
|
7879
8029
|
});
|
|
7880
8030
|
mounted = true;
|
|
7881
8031
|
}
|
|
@@ -7885,37 +8035,37 @@ function create_each_block4(ctx) {
|
|
|
7885
8035
|
if (dirty[0] & 2 && img_class_value !== (img_class_value = name5 + "-app-btn-icon " + ctx[1])) {
|
|
7886
8036
|
attr(img, "class", img_class_value);
|
|
7887
8037
|
}
|
|
7888
|
-
if (dirty[0] & 524288 && !src_url_equal(img.src, img_src_value = ctx[
|
|
8038
|
+
if (dirty[0] & 524288 && !src_url_equal(img.src, img_src_value = ctx[43])) {
|
|
7889
8039
|
attr(img, "src", img_src_value);
|
|
7890
8040
|
}
|
|
7891
|
-
if (dirty[0] & 524288 && img_alt_value !== (img_alt_value = ctx[
|
|
8041
|
+
if (dirty[0] & 524288 && img_alt_value !== (img_alt_value = ctx[45])) {
|
|
7892
8042
|
attr(img, "alt", img_alt_value);
|
|
7893
8043
|
}
|
|
7894
|
-
if (dirty[0] & 524288 && img_title_value !== (img_title_value = ctx[
|
|
8044
|
+
if (dirty[0] & 524288 && img_title_value !== (img_title_value = ctx[44])) {
|
|
7895
8045
|
attr(img, "title", img_title_value);
|
|
7896
8046
|
}
|
|
7897
|
-
if (dirty[0] & 524288 && t1_value !== (t1_value = ctx[
|
|
8047
|
+
if (dirty[0] & 524288 && t1_value !== (t1_value = ctx[44] + ""))
|
|
7898
8048
|
set_data(t1, t1_value);
|
|
7899
8049
|
if (dirty[0] & 2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + ctx[1])) {
|
|
7900
8050
|
attr(span, "class", span_class_value);
|
|
7901
8051
|
}
|
|
7902
|
-
if (dirty[0] & 524290 && button_class_value !== (button_class_value = name5 + "-app-btn " + ctx[
|
|
8052
|
+
if (dirty[0] & 524290 && button_class_value !== (button_class_value = name5 + "-app-btn " + ctx[45] + " " + ctx[1])) {
|
|
7903
8053
|
attr(button, "class", button_class_value);
|
|
7904
8054
|
}
|
|
7905
|
-
if (dirty[0] & 1572864 && button_title_value !== (button_title_value = ctx[
|
|
8055
|
+
if (dirty[0] & 1572864 && button_title_value !== (button_title_value = ctx[44] + (ctx[47] && ctx[47].reason ? ": " + ctx[47].reason : ""))) {
|
|
7906
8056
|
attr(button, "title", button_title_value);
|
|
7907
8057
|
}
|
|
7908
|
-
if (dirty[0] & 524288 && button_data_app_kind_value !== (button_data_app_kind_value = ctx[
|
|
8058
|
+
if (dirty[0] & 524288 && button_data_app_kind_value !== (button_data_app_kind_value = ctx[42].kind)) {
|
|
7909
8059
|
attr(button, "data-app-kind", button_data_app_kind_value);
|
|
7910
8060
|
}
|
|
7911
|
-
if (dirty[0] & 1572864 && button_disabled_value !== (button_disabled_value = ctx[
|
|
8061
|
+
if (dirty[0] & 1572864 && button_disabled_value !== (button_disabled_value = ctx[47] && ctx[47].status !== "idle")) {
|
|
7912
8062
|
button.disabled = button_disabled_value;
|
|
7913
8063
|
}
|
|
7914
8064
|
if (dirty[0] & 1572866) {
|
|
7915
|
-
toggle_class(button, "is-loading", ctx[
|
|
8065
|
+
toggle_class(button, "is-loading", ctx[47] && ctx[47].status === "loading");
|
|
7916
8066
|
}
|
|
7917
8067
|
if (dirty[0] & 1572866) {
|
|
7918
|
-
toggle_class(button, "is-failed", ctx[
|
|
8068
|
+
toggle_class(button, "is-failed", ctx[47] && ctx[47].status === "failed");
|
|
7919
8069
|
}
|
|
7920
8070
|
},
|
|
7921
8071
|
d(detaching) {
|
|
@@ -7943,7 +8093,9 @@ function create_fragment54(ctx) {
|
|
|
7943
8093
|
let t6;
|
|
7944
8094
|
let button6;
|
|
7945
8095
|
let t7;
|
|
8096
|
+
let div0_class_value;
|
|
7946
8097
|
let scrollHeight_action;
|
|
8098
|
+
let scrollTop_action;
|
|
7947
8099
|
let t8;
|
|
7948
8100
|
let t9;
|
|
7949
8101
|
let div8;
|
|
@@ -7951,24 +8103,32 @@ function create_fragment54(ctx) {
|
|
|
7951
8103
|
let strokewidth0;
|
|
7952
8104
|
let t10;
|
|
7953
8105
|
let div1;
|
|
8106
|
+
let div1_class_value;
|
|
7954
8107
|
let t11;
|
|
7955
8108
|
let strokecolor0;
|
|
8109
|
+
let div2_class_value;
|
|
7956
8110
|
let t12;
|
|
7957
8111
|
let div3;
|
|
7958
8112
|
let textcolor;
|
|
8113
|
+
let div3_class_value;
|
|
7959
8114
|
let t13;
|
|
7960
8115
|
let div6;
|
|
7961
8116
|
let shapes2;
|
|
7962
8117
|
let t14;
|
|
7963
8118
|
let div4;
|
|
8119
|
+
let div4_class_value;
|
|
7964
8120
|
let t15;
|
|
7965
8121
|
let strokewidth1;
|
|
7966
8122
|
let t16;
|
|
7967
8123
|
let div5;
|
|
8124
|
+
let div5_class_value;
|
|
7968
8125
|
let t17;
|
|
7969
8126
|
let strokecolor1;
|
|
8127
|
+
let div6_class_value;
|
|
7970
8128
|
let t18;
|
|
7971
8129
|
let div7;
|
|
8130
|
+
let div7_class_value;
|
|
8131
|
+
let div8_class_value;
|
|
7972
8132
|
let current;
|
|
7973
8133
|
let mounted;
|
|
7974
8134
|
let dispose;
|
|
@@ -8168,17 +8328,17 @@ function create_fragment54(ctx) {
|
|
|
8168
8328
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
8169
8329
|
each_blocks[i].c();
|
|
8170
8330
|
}
|
|
8171
|
-
attr(div0, "class", name5 + "-scrollable");
|
|
8331
|
+
attr(div0, "class", div0_class_value = name5 + "-scrollable");
|
|
8172
8332
|
toggle_class(div0, "scrollable", ctx[5]);
|
|
8173
|
-
attr(div1, "class", name5 + "-panel-divider");
|
|
8174
|
-
attr(div2, "class", name5 + "-panel pencil");
|
|
8175
|
-
attr(div3, "class", name5 + "-panel text");
|
|
8176
|
-
attr(div4, "class", name5 + "-panel-divider");
|
|
8177
|
-
attr(div5, "class", name5 + "-panel-divider");
|
|
8178
|
-
attr(div6, "class", name5 + "-panel shapes");
|
|
8179
|
-
attr(div7, "class", name5 + "-panel apps");
|
|
8333
|
+
attr(div1, "class", div1_class_value = name5 + "-panel-divider");
|
|
8334
|
+
attr(div2, "class", div2_class_value = name5 + "-panel pencil");
|
|
8335
|
+
attr(div3, "class", div3_class_value = name5 + "-panel text");
|
|
8336
|
+
attr(div4, "class", div4_class_value = name5 + "-panel-divider");
|
|
8337
|
+
attr(div5, "class", div5_class_value = name5 + "-panel-divider");
|
|
8338
|
+
attr(div6, "class", div6_class_value = name5 + "-panel shapes");
|
|
8339
|
+
attr(div7, "class", div7_class_value = name5 + "-panel apps");
|
|
8180
8340
|
set_style(div7, "--n", ctx[19].length);
|
|
8181
|
-
attr(div8, "class", name5 + "-panel-wrapper");
|
|
8341
|
+
attr(div8, "class", div8_class_value = name5 + "-panel-wrapper");
|
|
8182
8342
|
set_style(div8, "display", "none");
|
|
8183
8343
|
},
|
|
8184
8344
|
m(target, anchor) {
|
|
@@ -8235,12 +8395,12 @@ function create_fragment54(ctx) {
|
|
|
8235
8395
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
8236
8396
|
each_blocks[i].m(div7, null);
|
|
8237
8397
|
}
|
|
8238
|
-
ctx[
|
|
8398
|
+
ctx[39](div7);
|
|
8239
8399
|
current = true;
|
|
8240
8400
|
if (!mounted) {
|
|
8241
8401
|
dispose = [
|
|
8242
8402
|
action_destroyer(scrollHeight_action = scrollHeight.call(null, div0, ctx[4])),
|
|
8243
|
-
action_destroyer(scrollTop.call(null, div0, ctx[21]))
|
|
8403
|
+
action_destroyer(scrollTop_action = scrollTop.call(null, div0, ctx[21]))
|
|
8244
8404
|
];
|
|
8245
8405
|
mounted = true;
|
|
8246
8406
|
}
|
|
@@ -8270,7 +8430,7 @@ function create_fragment54(ctx) {
|
|
|
8270
8430
|
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
8271
8431
|
dirty[0] & 262144 && { content: ctx2[18].clicker }
|
|
8272
8432
|
]) : {};
|
|
8273
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
8433
|
+
if (dirty[0] & 258 | dirty[1] & 1048576) {
|
|
8274
8434
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8275
8435
|
}
|
|
8276
8436
|
button0.$set(button0_changes);
|
|
@@ -8279,7 +8439,7 @@ function create_fragment54(ctx) {
|
|
|
8279
8439
|
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
8280
8440
|
dirty[0] & 262144 && { content: ctx2[18].selector }
|
|
8281
8441
|
]) : {};
|
|
8282
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
8442
|
+
if (dirty[0] & 258 | dirty[1] & 1048576) {
|
|
8283
8443
|
button1_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8284
8444
|
}
|
|
8285
8445
|
button1.$set(button1_changes);
|
|
@@ -8289,7 +8449,7 @@ function create_fragment54(ctx) {
|
|
|
8289
8449
|
dirty[0] & 262144 && { content: ctx2[18].pencil },
|
|
8290
8450
|
dirty[0] & 2048 && { menu: ctx2[11] }
|
|
8291
8451
|
]) : {};
|
|
8292
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
8452
|
+
if (dirty[0] & 258 | dirty[1] & 1048576) {
|
|
8293
8453
|
button2_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8294
8454
|
}
|
|
8295
8455
|
button2.$set(button2_changes);
|
|
@@ -8299,7 +8459,7 @@ function create_fragment54(ctx) {
|
|
|
8299
8459
|
dirty[0] & 262144 && { content: ctx2[18].text },
|
|
8300
8460
|
dirty[0] & 4096 && { menu: ctx2[12] }
|
|
8301
8461
|
]) : {};
|
|
8302
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
8462
|
+
if (dirty[0] & 258 | dirty[1] & 1048576) {
|
|
8303
8463
|
button3_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8304
8464
|
}
|
|
8305
8465
|
button3.$set(button3_changes);
|
|
@@ -8309,7 +8469,7 @@ function create_fragment54(ctx) {
|
|
|
8309
8469
|
dirty[0] & 512 && { content: ctx2[9].shapes },
|
|
8310
8470
|
dirty[0] & 8192 && { menu: ctx2[13] }
|
|
8311
8471
|
]) : {};
|
|
8312
|
-
if (dirty[0] & 1410 | dirty[1] &
|
|
8472
|
+
if (dirty[0] & 1410 | dirty[1] & 1048576) {
|
|
8313
8473
|
button4_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8314
8474
|
}
|
|
8315
8475
|
button4.$set(button4_changes);
|
|
@@ -8318,7 +8478,7 @@ function create_fragment54(ctx) {
|
|
|
8318
8478
|
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
8319
8479
|
dirty[0] & 262144 && { content: ctx2[18].eraser }
|
|
8320
8480
|
]) : {};
|
|
8321
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
8481
|
+
if (dirty[0] & 258 | dirty[1] & 1048576) {
|
|
8322
8482
|
button5_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8323
8483
|
}
|
|
8324
8484
|
button5.$set(button5_changes);
|
|
@@ -8327,7 +8487,7 @@ function create_fragment54(ctx) {
|
|
|
8327
8487
|
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
8328
8488
|
dirty[0] & 512 && { content: ctx2[9].clear }
|
|
8329
8489
|
]) : {};
|
|
8330
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
8490
|
+
if (dirty[0] & 2 | dirty[1] & 1048576) {
|
|
8331
8491
|
button6_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8332
8492
|
}
|
|
8333
8493
|
button6.$set(button6_changes);
|
|
@@ -8352,7 +8512,7 @@ function create_fragment54(ctx) {
|
|
|
8352
8512
|
}
|
|
8353
8513
|
if (scrollHeight_action && is_function(scrollHeight_action.update) && dirty[0] & 16)
|
|
8354
8514
|
scrollHeight_action.update.call(null, ctx2[4]);
|
|
8355
|
-
if (dirty[0] & 32) {
|
|
8515
|
+
if (!current || dirty[0] & 32) {
|
|
8356
8516
|
toggle_class(div0, "scrollable", ctx2[5]);
|
|
8357
8517
|
}
|
|
8358
8518
|
if (ctx2[5]) {
|
|
@@ -8520,7 +8680,7 @@ function create_fragment54(ctx) {
|
|
|
8520
8680
|
destroy_component(strokecolor1);
|
|
8521
8681
|
ctx[37](null);
|
|
8522
8682
|
destroy_each(each_blocks, detaching);
|
|
8523
|
-
ctx[
|
|
8683
|
+
ctx[39](null);
|
|
8524
8684
|
mounted = false;
|
|
8525
8685
|
run_all(dispose);
|
|
8526
8686
|
}
|
|
@@ -8561,7 +8721,7 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8561
8721
|
let apps_panel;
|
|
8562
8722
|
let btn_props;
|
|
8563
8723
|
let top = writable(0);
|
|
8564
|
-
component_subscribe($$self, top, (value) => $$invalidate(
|
|
8724
|
+
component_subscribe($$self, top, (value) => $$invalidate(41, $top = value));
|
|
8565
8725
|
function scroll_up() {
|
|
8566
8726
|
set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
|
|
8567
8727
|
}
|
|
@@ -8611,6 +8771,10 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8611
8771
|
$$invalidate(13, shapes_panel);
|
|
8612
8772
|
});
|
|
8613
8773
|
}
|
|
8774
|
+
const func = (onClick) => {
|
|
8775
|
+
app && onClick(app);
|
|
8776
|
+
tippy_hide_all();
|
|
8777
|
+
};
|
|
8614
8778
|
function div7_binding($$value) {
|
|
8615
8779
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
8616
8780
|
apps_panel = $$value;
|
|
@@ -8637,7 +8801,8 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8637
8801
|
};
|
|
8638
8802
|
$$self.$$.update = () => {
|
|
8639
8803
|
if ($$self.$$.dirty[0] & 10) {
|
|
8640
|
-
|
|
8804
|
+
$:
|
|
8805
|
+
$$invalidate(15, btn_props = {
|
|
8641
8806
|
name: name5,
|
|
8642
8807
|
theme,
|
|
8643
8808
|
disabled,
|
|
@@ -8645,13 +8810,16 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8645
8810
|
});
|
|
8646
8811
|
}
|
|
8647
8812
|
if ($$self.$$.dirty[0] & 4) {
|
|
8648
|
-
|
|
8813
|
+
$:
|
|
8814
|
+
$$invalidate(9, t = i18n4[language]);
|
|
8649
8815
|
}
|
|
8650
8816
|
if ($$self.$$.dirty[0] & 1) {
|
|
8651
|
-
|
|
8817
|
+
$:
|
|
8818
|
+
$$invalidate(32, hotkeys = app == null ? void 0 : app.hotKeys);
|
|
8652
8819
|
}
|
|
8653
8820
|
if ($$self.$$.dirty[0] & 512 | $$self.$$.dirty[1] & 2) {
|
|
8654
|
-
|
|
8821
|
+
$:
|
|
8822
|
+
$$invalidate(18, c = {
|
|
8655
8823
|
clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
|
|
8656
8824
|
selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
|
|
8657
8825
|
pencil: tooltip(t.pencil, hotkeys == null ? void 0 : hotkeys.changeToPencil),
|
|
@@ -8660,26 +8828,32 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8660
8828
|
});
|
|
8661
8829
|
}
|
|
8662
8830
|
if ($$self.$$.dirty[0] & 1) {
|
|
8663
|
-
|
|
8831
|
+
$:
|
|
8832
|
+
$$subscribe_memberState($$invalidate(17, memberState = app == null ? void 0 : app.memberState));
|
|
8664
8833
|
}
|
|
8665
8834
|
if ($$self.$$.dirty[1] & 8) {
|
|
8666
|
-
|
|
8835
|
+
$:
|
|
8836
|
+
$$invalidate(8, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
|
|
8667
8837
|
}
|
|
8668
8838
|
if ($$self.$$.dirty[1] & 8) {
|
|
8669
|
-
|
|
8839
|
+
$:
|
|
8840
|
+
$$invalidate(7, shape = $memberState == null ? void 0 : $memberState.shapeType);
|
|
8670
8841
|
}
|
|
8671
8842
|
if ($$self.$$.dirty[0] & 1) {
|
|
8672
|
-
|
|
8843
|
+
$:
|
|
8844
|
+
$$subscribe_status($$invalidate(16, status = app == null ? void 0 : app.appsStatus));
|
|
8673
8845
|
}
|
|
8674
8846
|
if ($$self.$$.dirty[0] & 384) {
|
|
8675
|
-
|
|
8847
|
+
$:
|
|
8848
|
+
if (applianceShapes.includes(appliance)) {
|
|
8676
8849
|
$$invalidate(10, last_shape = appliance);
|
|
8677
8850
|
} else if (shape) {
|
|
8678
8851
|
$$invalidate(10, last_shape = shape);
|
|
8679
8852
|
}
|
|
8680
8853
|
}
|
|
8681
8854
|
if ($$self.$$.dirty[0] & 32 | $$self.$$.dirty[1] & 5) {
|
|
8682
|
-
|
|
8855
|
+
$:
|
|
8856
|
+
max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
|
|
8683
8857
|
}
|
|
8684
8858
|
};
|
|
8685
8859
|
return [
|
|
@@ -8721,22 +8895,32 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8721
8895
|
div2_binding,
|
|
8722
8896
|
div3_binding,
|
|
8723
8897
|
div6_binding,
|
|
8898
|
+
func,
|
|
8724
8899
|
div7_binding
|
|
8725
8900
|
];
|
|
8726
8901
|
}
|
|
8727
8902
|
var Contents = class extends SvelteComponent {
|
|
8728
8903
|
constructor(options) {
|
|
8729
8904
|
super();
|
|
8730
|
-
init(
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8905
|
+
init(
|
|
8906
|
+
this,
|
|
8907
|
+
options,
|
|
8908
|
+
instance54,
|
|
8909
|
+
create_fragment54,
|
|
8910
|
+
safe_not_equal,
|
|
8911
|
+
{
|
|
8912
|
+
app: 0,
|
|
8913
|
+
theme: 1,
|
|
8914
|
+
language: 2,
|
|
8915
|
+
disabled: 3,
|
|
8916
|
+
scroll_height: 4,
|
|
8917
|
+
computed_height: 31,
|
|
8918
|
+
scrollable: 5,
|
|
8919
|
+
hide_apps: 6
|
|
8920
|
+
},
|
|
8921
|
+
null,
|
|
8922
|
+
[-1, -1]
|
|
8923
|
+
);
|
|
8740
8924
|
}
|
|
8741
8925
|
};
|
|
8742
8926
|
var Contents_default = Contents;
|
|
@@ -8744,18 +8928,20 @@ var Contents_default = Contents;
|
|
|
8744
8928
|
// src/components/Toolbar/Toolbar.svelte
|
|
8745
8929
|
function create_else_block7(ctx) {
|
|
8746
8930
|
let path0;
|
|
8931
|
+
let path0_class_value;
|
|
8747
8932
|
let path1;
|
|
8933
|
+
let path1_class_value;
|
|
8748
8934
|
return {
|
|
8749
8935
|
c() {
|
|
8750
8936
|
path0 = svg_element("path");
|
|
8751
8937
|
path1 = svg_element("path");
|
|
8752
8938
|
attr(path0, "stroke", "#000");
|
|
8753
8939
|
attr(path0, "d", "M20 52v16");
|
|
8754
|
-
attr(path0, "class", name6 + "-handler-image-stroke-color");
|
|
8940
|
+
attr(path0, "class", path0_class_value = name6 + "-handler-image-stroke-color");
|
|
8755
8941
|
attr(path1, "fill", "#000");
|
|
8756
8942
|
attr(path1, "stroke", "none");
|
|
8757
8943
|
attr(path1, "d", "M16 52v16l-8-8z");
|
|
8758
|
-
attr(path1, "class", name6 + "-handler-image-fill-color");
|
|
8944
|
+
attr(path1, "class", path1_class_value = name6 + "-handler-image-fill-color");
|
|
8759
8945
|
},
|
|
8760
8946
|
m(target, anchor) {
|
|
8761
8947
|
insert(target, path0, anchor);
|
|
@@ -8772,18 +8958,20 @@ function create_else_block7(ctx) {
|
|
|
8772
8958
|
}
|
|
8773
8959
|
function create_if_block7(ctx) {
|
|
8774
8960
|
let path0;
|
|
8961
|
+
let path0_class_value;
|
|
8775
8962
|
let path1;
|
|
8963
|
+
let path1_class_value;
|
|
8776
8964
|
return {
|
|
8777
8965
|
c() {
|
|
8778
8966
|
path0 = svg_element("path");
|
|
8779
8967
|
path1 = svg_element("path");
|
|
8780
8968
|
attr(path0, "stroke", "#000");
|
|
8781
8969
|
attr(path0, "d", "M10 52v16");
|
|
8782
|
-
attr(path0, "class", name6 + "-handler-image-stroke-color");
|
|
8970
|
+
attr(path0, "class", path0_class_value = name6 + "-handler-image-stroke-color");
|
|
8783
8971
|
attr(path1, "fill", "#000");
|
|
8784
8972
|
attr(path1, "stroke", "none");
|
|
8785
8973
|
attr(path1, "d", "M14 52v16l8-8z");
|
|
8786
|
-
attr(path1, "class", name6 + "-handler-image-fill-color");
|
|
8974
|
+
attr(path1, "class", path1_class_value = name6 + "-handler-image-fill-color");
|
|
8787
8975
|
},
|
|
8788
8976
|
m(target, anchor) {
|
|
8789
8977
|
insert(target, path0, anchor);
|
|
@@ -8809,9 +8997,12 @@ function create_fragment55(ctx) {
|
|
|
8809
8997
|
let t1;
|
|
8810
8998
|
let svg;
|
|
8811
8999
|
let path0;
|
|
9000
|
+
let path0_class_value;
|
|
8812
9001
|
let path1;
|
|
9002
|
+
let path1_class_value;
|
|
8813
9003
|
let label_class_value;
|
|
8814
9004
|
let div1_class_value;
|
|
9005
|
+
let height_action;
|
|
8815
9006
|
let current;
|
|
8816
9007
|
let mounted;
|
|
8817
9008
|
let dispose;
|
|
@@ -8832,7 +9023,7 @@ function create_fragment55(ctx) {
|
|
|
8832
9023
|
return create_if_block7;
|
|
8833
9024
|
return create_else_block7;
|
|
8834
9025
|
}
|
|
8835
|
-
let current_block_type = select_block_type(ctx);
|
|
9026
|
+
let current_block_type = select_block_type(ctx, -1);
|
|
8836
9027
|
let if_block = current_block_type(ctx);
|
|
8837
9028
|
return {
|
|
8838
9029
|
c() {
|
|
@@ -8848,15 +9039,15 @@ function create_fragment55(ctx) {
|
|
|
8848
9039
|
path1 = svg_element("path");
|
|
8849
9040
|
if_block.c();
|
|
8850
9041
|
attr(div0, "class", div0_class_value = name6 + "-contents " + ctx[1]);
|
|
8851
|
-
set_style(div0, "height", ctx[5] ? ctx[6] + "px" : "auto"
|
|
9042
|
+
set_style(div0, "height", ctx[5] ? ctx[6] + "px" : "auto");
|
|
8852
9043
|
attr(input, "type", "checkbox");
|
|
8853
9044
|
attr(path0, "fill", "#fff");
|
|
8854
9045
|
attr(path0, "stroke", "none");
|
|
8855
9046
|
attr(path0, "d", "m0 0 24 16q6 4 6 14v60q0 10-6 14L0 120");
|
|
8856
|
-
attr(path0, "class", name6 + "-handler-bg-color");
|
|
9047
|
+
attr(path0, "class", path0_class_value = name6 + "-handler-bg-color");
|
|
8857
9048
|
attr(path1, "stroke", "#000");
|
|
8858
9049
|
attr(path1, "d", "m0 0 24 16q6 4 6 14v60q0 10-6 14L0 120");
|
|
8859
|
-
attr(path1, "class", name6 + "-handler-border-color");
|
|
9050
|
+
attr(path1, "class", path1_class_value = name6 + "-handler-border-color");
|
|
8860
9051
|
attr(svg, "fill", "none");
|
|
8861
9052
|
attr(svg, "stroke-width", "2");
|
|
8862
9053
|
attr(svg, "viewBox", "0 0 32 120");
|
|
@@ -8881,7 +9072,7 @@ function create_fragment55(ctx) {
|
|
|
8881
9072
|
if (!mounted) {
|
|
8882
9073
|
dispose = [
|
|
8883
9074
|
listen(input, "change", ctx[15]),
|
|
8884
|
-
action_destroyer(height.call(null, div1, ctx[9]))
|
|
9075
|
+
action_destroyer(height_action = height.call(null, div1, ctx[9]))
|
|
8885
9076
|
];
|
|
8886
9077
|
mounted = true;
|
|
8887
9078
|
}
|
|
@@ -8907,12 +9098,12 @@ function create_fragment55(ctx) {
|
|
|
8907
9098
|
attr(div0, "class", div0_class_value);
|
|
8908
9099
|
}
|
|
8909
9100
|
if (dirty & 96) {
|
|
8910
|
-
set_style(div0, "height", ctx2[5] ? ctx2[6] + "px" : "auto"
|
|
9101
|
+
set_style(div0, "height", ctx2[5] ? ctx2[6] + "px" : "auto");
|
|
8911
9102
|
}
|
|
8912
9103
|
if (dirty & 8) {
|
|
8913
9104
|
input.checked = ctx2[3];
|
|
8914
9105
|
}
|
|
8915
|
-
if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block) {
|
|
9106
|
+
if (current_block_type === (current_block_type = select_block_type(ctx2, dirty)) && if_block) {
|
|
8916
9107
|
if_block.p(ctx2, dirty);
|
|
8917
9108
|
} else {
|
|
8918
9109
|
if_block.d(1);
|
|
@@ -8928,7 +9119,7 @@ function create_fragment55(ctx) {
|
|
|
8928
9119
|
if (!current || dirty & 2 && div1_class_value !== (div1_class_value = name6 + " " + ctx2[1])) {
|
|
8929
9120
|
attr(div1, "class", div1_class_value);
|
|
8930
9121
|
}
|
|
8931
|
-
if (dirty & 10) {
|
|
9122
|
+
if (!current || dirty & 10) {
|
|
8932
9123
|
toggle_class(div1, "collapsed", ctx2[3]);
|
|
8933
9124
|
}
|
|
8934
9125
|
},
|
|
@@ -8990,19 +9181,24 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
8990
9181
|
$$self.$$.update = () => {
|
|
8991
9182
|
var _a;
|
|
8992
9183
|
if ($$self.$$.dirty & 1) {
|
|
8993
|
-
|
|
9184
|
+
$:
|
|
9185
|
+
$$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
|
|
8994
9186
|
}
|
|
8995
9187
|
if ($$self.$$.dirty & 16384) {
|
|
8996
|
-
|
|
9188
|
+
$:
|
|
9189
|
+
$$invalidate(7, disabled = !$writable);
|
|
8997
9190
|
}
|
|
8998
9191
|
if ($$self.$$.dirty & 12288) {
|
|
8999
|
-
|
|
9192
|
+
$:
|
|
9193
|
+
$$invalidate(6, computed_height = clamp($container_height, extra_height, $scroll_height + extra_height));
|
|
9000
9194
|
}
|
|
9001
9195
|
if ($$self.$$.dirty & 12288) {
|
|
9002
|
-
|
|
9196
|
+
$:
|
|
9197
|
+
$$invalidate(5, scrollable = $scroll_height + extra_height > $container_height);
|
|
9003
9198
|
}
|
|
9004
9199
|
if ($$self.$$.dirty & 2048) {
|
|
9005
|
-
|
|
9200
|
+
$:
|
|
9201
|
+
$$invalidate(4, hide_apps = ((_a = config.apps) == null ? void 0 : _a.enable) === false);
|
|
9006
9202
|
}
|
|
9007
9203
|
};
|
|
9008
9204
|
return [
|
|
@@ -9291,7 +9487,7 @@ function create_default_slot_25(ctx) {
|
|
|
9291
9487
|
return 1;
|
|
9292
9488
|
return 2;
|
|
9293
9489
|
}
|
|
9294
|
-
current_block_type_index = select_block_type(ctx);
|
|
9490
|
+
current_block_type_index = select_block_type(ctx, -1);
|
|
9295
9491
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
9296
9492
|
return {
|
|
9297
9493
|
c() {
|
|
@@ -9305,7 +9501,7 @@ function create_default_slot_25(ctx) {
|
|
|
9305
9501
|
},
|
|
9306
9502
|
p(ctx2, dirty) {
|
|
9307
9503
|
let previous_block_index = current_block_type_index;
|
|
9308
|
-
current_block_type_index = select_block_type(ctx2);
|
|
9504
|
+
current_block_type_index = select_block_type(ctx2, dirty);
|
|
9309
9505
|
if (current_block_type_index === previous_block_index) {
|
|
9310
9506
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
9311
9507
|
} else {
|
|
@@ -9349,13 +9545,17 @@ function create_else_block8(ctx) {
|
|
|
9349
9545
|
let span0;
|
|
9350
9546
|
let t1_value = format(ctx[13]) + "";
|
|
9351
9547
|
let t1;
|
|
9548
|
+
let span0_class_value;
|
|
9352
9549
|
let t2;
|
|
9353
9550
|
let span1;
|
|
9354
9551
|
let t3;
|
|
9552
|
+
let span1_class_value;
|
|
9355
9553
|
let t4;
|
|
9356
9554
|
let span2;
|
|
9357
9555
|
let t5_value = format(ctx[14]) + "";
|
|
9358
9556
|
let t5;
|
|
9557
|
+
let span2_class_value;
|
|
9558
|
+
let span3_class_value;
|
|
9359
9559
|
let current;
|
|
9360
9560
|
slider = new Slider_default({
|
|
9361
9561
|
props: {
|
|
@@ -9380,10 +9580,10 @@ function create_else_block8(ctx) {
|
|
|
9380
9580
|
t4 = space();
|
|
9381
9581
|
span2 = element("span");
|
|
9382
9582
|
t5 = text(t5_value);
|
|
9383
|
-
attr(span0, "class", name7 + "-current");
|
|
9384
|
-
attr(span1, "class", name7 + "-slash");
|
|
9385
|
-
attr(span2, "class", name7 + "-duration");
|
|
9386
|
-
attr(span3, "class", name7 + "-progress");
|
|
9583
|
+
attr(span0, "class", span0_class_value = name7 + "-current");
|
|
9584
|
+
attr(span1, "class", span1_class_value = name7 + "-slash");
|
|
9585
|
+
attr(span2, "class", span2_class_value = name7 + "-duration");
|
|
9586
|
+
attr(span3, "class", span3_class_value = name7 + "-progress");
|
|
9387
9587
|
},
|
|
9388
9588
|
m(target, anchor) {
|
|
9389
9589
|
mount_component(slider, target, anchor);
|
|
@@ -9437,6 +9637,7 @@ function create_if_block8(ctx) {
|
|
|
9437
9637
|
let t0;
|
|
9438
9638
|
let span;
|
|
9439
9639
|
let t1;
|
|
9640
|
+
let span_class_value;
|
|
9440
9641
|
let current;
|
|
9441
9642
|
slider = new Slider_default({
|
|
9442
9643
|
props: {
|
|
@@ -9450,7 +9651,7 @@ function create_if_block8(ctx) {
|
|
|
9450
9651
|
t0 = space();
|
|
9451
9652
|
span = element("span");
|
|
9452
9653
|
t1 = text("\u2026/\u2026");
|
|
9453
|
-
attr(span, "class", name7 + "-progress loading");
|
|
9654
|
+
attr(span, "class", span_class_value = name7 + "-progress loading");
|
|
9454
9655
|
},
|
|
9455
9656
|
m(target, anchor) {
|
|
9456
9657
|
mount_component(slider, target, anchor);
|
|
@@ -9484,12 +9685,13 @@ function create_default_slot_15(ctx) {
|
|
|
9484
9685
|
let t0_value = (ctx[15] || 1) + "";
|
|
9485
9686
|
let t0;
|
|
9486
9687
|
let t1;
|
|
9688
|
+
let span_class_value;
|
|
9487
9689
|
return {
|
|
9488
9690
|
c() {
|
|
9489
9691
|
span = element("span");
|
|
9490
9692
|
t0 = text(t0_value);
|
|
9491
9693
|
t1 = text("x");
|
|
9492
|
-
attr(span, "class", name7 + "-speed-text");
|
|
9694
|
+
attr(span, "class", span_class_value = name7 + "-speed-text");
|
|
9493
9695
|
},
|
|
9494
9696
|
m(target, anchor) {
|
|
9495
9697
|
insert(target, span, anchor);
|
|
@@ -9604,6 +9806,7 @@ function create_fragment56(ctx) {
|
|
|
9604
9806
|
let div1;
|
|
9605
9807
|
let each_blocks = [];
|
|
9606
9808
|
let each_1_lookup = /* @__PURE__ */ new Map();
|
|
9809
|
+
let div1_class_value;
|
|
9607
9810
|
let current;
|
|
9608
9811
|
button0 = new Button_default({
|
|
9609
9812
|
props: {
|
|
@@ -9624,7 +9827,7 @@ function create_fragment56(ctx) {
|
|
|
9624
9827
|
return 0;
|
|
9625
9828
|
return 1;
|
|
9626
9829
|
}
|
|
9627
|
-
current_block_type_index = select_block_type_1(ctx);
|
|
9830
|
+
current_block_type_index = select_block_type_1(ctx, -1);
|
|
9628
9831
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
9629
9832
|
button1 = new Button_default({
|
|
9630
9833
|
props: {
|
|
@@ -9661,7 +9864,7 @@ function create_fragment56(ctx) {
|
|
|
9661
9864
|
each_blocks[i].c();
|
|
9662
9865
|
}
|
|
9663
9866
|
attr(div0, "class", div0_class_value = name7 + " " + ctx[0]);
|
|
9664
|
-
attr(div1, "class", name7 + "-panel speed");
|
|
9867
|
+
attr(div1, "class", div1_class_value = name7 + "-panel speed");
|
|
9665
9868
|
set_style(div2, "display", "none");
|
|
9666
9869
|
},
|
|
9667
9870
|
m(target, anchor) {
|
|
@@ -9695,7 +9898,7 @@ function create_fragment56(ctx) {
|
|
|
9695
9898
|
}
|
|
9696
9899
|
button0.$set(button0_changes);
|
|
9697
9900
|
let previous_block_index = current_block_type_index;
|
|
9698
|
-
current_block_type_index = select_block_type_1(ctx2);
|
|
9901
|
+
current_block_type_index = select_block_type_1(ctx2, dirty);
|
|
9699
9902
|
if (current_block_type_index === previous_block_index) {
|
|
9700
9903
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
9701
9904
|
} else {
|
|
@@ -9863,37 +10066,48 @@ function instance56($$self, $$props, $$invalidate) {
|
|
|
9863
10066
|
};
|
|
9864
10067
|
$$self.$$.update = () => {
|
|
9865
10068
|
if ($$self.$$.dirty & 1048576) {
|
|
9866
|
-
|
|
10069
|
+
$:
|
|
10070
|
+
$$invalidate(12, t = i18n6[language]);
|
|
9867
10071
|
}
|
|
9868
10072
|
if ($$self.$$.dirty & 524288) {
|
|
9869
|
-
|
|
10073
|
+
$:
|
|
10074
|
+
$$invalidate(21, canPlay = player == null ? void 0 : player.canplay);
|
|
9870
10075
|
}
|
|
9871
10076
|
if ($$self.$$.dirty & 2097152) {
|
|
9872
|
-
|
|
10077
|
+
$:
|
|
10078
|
+
$$invalidate(4, disabled = !canPlay);
|
|
9873
10079
|
}
|
|
9874
10080
|
if ($$self.$$.dirty & 16) {
|
|
9875
|
-
|
|
10081
|
+
$:
|
|
10082
|
+
$$invalidate(5, type = disabled ? "disable" : "normal");
|
|
9876
10083
|
}
|
|
9877
10084
|
if ($$self.$$.dirty & 524288) {
|
|
9878
|
-
|
|
10085
|
+
$:
|
|
10086
|
+
$$subscribe_duration($$invalidate(11, duration = player == null ? void 0 : player.duration));
|
|
9879
10087
|
}
|
|
9880
10088
|
if ($$self.$$.dirty & 524288) {
|
|
9881
|
-
|
|
10089
|
+
$:
|
|
10090
|
+
$$subscribe_current($$invalidate(10, current = player == null ? void 0 : player.currentTime));
|
|
9882
10091
|
}
|
|
9883
10092
|
if ($$self.$$.dirty & 524288) {
|
|
9884
|
-
|
|
10093
|
+
$:
|
|
10094
|
+
$$subscribe_playbackRate($$invalidate(9, playbackRate = player == null ? void 0 : player.playbackRate));
|
|
9885
10095
|
}
|
|
9886
10096
|
if ($$self.$$.dirty & 524288) {
|
|
9887
|
-
|
|
10097
|
+
$:
|
|
10098
|
+
$$subscribe_phase($$invalidate(8, phase = player == null ? void 0 : player.phase));
|
|
9888
10099
|
}
|
|
9889
10100
|
if ($$self.$$.dirty & 4194304) {
|
|
9890
|
-
|
|
10101
|
+
$:
|
|
10102
|
+
$$invalidate(3, loading = $phase === "waitingFirstFrame" || $phase === "buffering");
|
|
9891
10103
|
}
|
|
9892
10104
|
if ($$self.$$.dirty & 4194304) {
|
|
9893
|
-
|
|
10105
|
+
$:
|
|
10106
|
+
$$invalidate(2, playing = $phase === "playing");
|
|
9894
10107
|
}
|
|
9895
10108
|
if ($$self.$$.dirty & 12) {
|
|
9896
|
-
|
|
10109
|
+
$:
|
|
10110
|
+
$$invalidate(7, className = [loading ? "loading" : "", playing ? "pause" : "play"].filter(Boolean).join(" "));
|
|
9897
10111
|
}
|
|
9898
10112
|
};
|
|
9899
10113
|
return [
|
|
@@ -9941,9 +10155,12 @@ var PlayerControl_default = PlayerControl;
|
|
|
9941
10155
|
function create_fragment57(ctx) {
|
|
9942
10156
|
let div2;
|
|
9943
10157
|
let div0;
|
|
10158
|
+
let div0_class_value;
|
|
9944
10159
|
let t;
|
|
9945
10160
|
let div1;
|
|
9946
10161
|
let playercontrol;
|
|
10162
|
+
let div1_class_value;
|
|
10163
|
+
let div2_class_value;
|
|
9947
10164
|
let current;
|
|
9948
10165
|
let mounted;
|
|
9949
10166
|
let dispose;
|
|
@@ -9961,9 +10178,9 @@ function create_fragment57(ctx) {
|
|
|
9961
10178
|
t = space();
|
|
9962
10179
|
div1 = element("div");
|
|
9963
10180
|
create_component(playercontrol.$$.fragment);
|
|
9964
|
-
attr(div0, "class", name8 + "-view");
|
|
9965
|
-
attr(div1, "class", name8 + "-bottom");
|
|
9966
|
-
attr(div2, "class", name8 + "-root");
|
|
10181
|
+
attr(div0, "class", div0_class_value = name8 + "-view");
|
|
10182
|
+
attr(div1, "class", div1_class_value = name8 + "-bottom");
|
|
10183
|
+
attr(div2, "class", div2_class_value = name8 + "-root");
|
|
9967
10184
|
toggle_class(div2, "loading", !ctx[0]);
|
|
9968
10185
|
},
|
|
9969
10186
|
m(target, anchor) {
|
|
@@ -9988,7 +10205,7 @@ function create_fragment57(ctx) {
|
|
|
9988
10205
|
if (dirty & 4)
|
|
9989
10206
|
playercontrol_changes.language = ctx2[2];
|
|
9990
10207
|
playercontrol.$set(playercontrol_changes);
|
|
9991
|
-
if (dirty & 1) {
|
|
10208
|
+
if (!current || dirty & 1) {
|
|
9992
10209
|
toggle_class(div2, "loading", !ctx2[0]);
|
|
9993
10210
|
}
|
|
9994
10211
|
},
|
|
@@ -10052,7 +10269,8 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
10052
10269
|
};
|
|
10053
10270
|
$$self.$$.update = () => {
|
|
10054
10271
|
if ($$self.$$.dirty & 9) {
|
|
10055
|
-
|
|
10272
|
+
$:
|
|
10273
|
+
try {
|
|
10056
10274
|
if (player && container) {
|
|
10057
10275
|
player.bindContainer(container);
|
|
10058
10276
|
$$invalidate(6, mounted = true);
|
|
@@ -10063,7 +10281,8 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
10063
10281
|
}
|
|
10064
10282
|
}
|
|
10065
10283
|
if ($$self.$$.dirty & 67) {
|
|
10066
|
-
|
|
10284
|
+
$:
|
|
10285
|
+
if (player && theme && mounted) {
|
|
10067
10286
|
player.manager.setPrefersColorScheme(theme);
|
|
10068
10287
|
}
|
|
10069
10288
|
}
|
|
@@ -10272,13 +10491,18 @@ function create_fragment58(ctx) {
|
|
|
10272
10491
|
var _a, _b, _c, _d;
|
|
10273
10492
|
let div4;
|
|
10274
10493
|
let div0;
|
|
10494
|
+
let div0_class_value;
|
|
10275
10495
|
let t0;
|
|
10276
10496
|
let div1;
|
|
10497
|
+
let div1_class_value;
|
|
10277
10498
|
let t1;
|
|
10278
10499
|
let div2;
|
|
10279
10500
|
let t2;
|
|
10501
|
+
let div2_class_value;
|
|
10280
10502
|
let t3;
|
|
10281
10503
|
let div3;
|
|
10504
|
+
let div3_class_value;
|
|
10505
|
+
let div4_class_value;
|
|
10282
10506
|
let current;
|
|
10283
10507
|
let mounted;
|
|
10284
10508
|
let dispose;
|
|
@@ -10305,14 +10529,14 @@ function create_fragment58(ctx) {
|
|
|
10305
10529
|
div3 = element("div");
|
|
10306
10530
|
if (if_block3)
|
|
10307
10531
|
if_block3.c();
|
|
10308
|
-
attr(div0, "class", name9 + "-view");
|
|
10309
|
-
attr(div1, "class", name9 + "-left");
|
|
10532
|
+
attr(div0, "class", div0_class_value = name9 + "-view");
|
|
10533
|
+
attr(div1, "class", div1_class_value = name9 + "-left");
|
|
10310
10534
|
toggle_class(div1, "hidden", !(ctx[5] === "visible" || ctx[5] === "toolbar-only"));
|
|
10311
|
-
attr(div2, "class", name9 + "-bottom-left");
|
|
10535
|
+
attr(div2, "class", div2_class_value = name9 + "-bottom-left");
|
|
10312
10536
|
toggle_class(div2, "hidden", ctx[5] !== "visible");
|
|
10313
|
-
attr(div3, "class", name9 + "-bottom-right");
|
|
10537
|
+
attr(div3, "class", div3_class_value = name9 + "-bottom-right");
|
|
10314
10538
|
toggle_class(div3, "hidden", ctx[5] !== "visible");
|
|
10315
|
-
attr(div4, "class", name9 + "-root");
|
|
10539
|
+
attr(div4, "class", div4_class_value = name9 + "-root");
|
|
10316
10540
|
toggle_class(div4, "loading", !ctx[0]);
|
|
10317
10541
|
},
|
|
10318
10542
|
m(target, anchor) {
|
|
@@ -10361,7 +10585,7 @@ function create_fragment58(ctx) {
|
|
|
10361
10585
|
});
|
|
10362
10586
|
check_outros();
|
|
10363
10587
|
}
|
|
10364
|
-
if (dirty & 32) {
|
|
10588
|
+
if (!current || dirty & 32) {
|
|
10365
10589
|
toggle_class(div1, "hidden", !(ctx2[5] === "visible" || ctx2[5] === "toolbar-only"));
|
|
10366
10590
|
}
|
|
10367
10591
|
if (((_b2 = ctx2[3].redo_undo) == null ? void 0 : _b2.enable) !== false) {
|
|
@@ -10402,7 +10626,7 @@ function create_fragment58(ctx) {
|
|
|
10402
10626
|
});
|
|
10403
10627
|
check_outros();
|
|
10404
10628
|
}
|
|
10405
|
-
if (dirty & 32) {
|
|
10629
|
+
if (!current || dirty & 32) {
|
|
10406
10630
|
toggle_class(div2, "hidden", ctx2[5] !== "visible");
|
|
10407
10631
|
}
|
|
10408
10632
|
if (((_d2 = ctx2[3].page_control) == null ? void 0 : _d2.enable) !== false) {
|
|
@@ -10424,10 +10648,10 @@ function create_fragment58(ctx) {
|
|
|
10424
10648
|
});
|
|
10425
10649
|
check_outros();
|
|
10426
10650
|
}
|
|
10427
|
-
if (dirty & 32) {
|
|
10651
|
+
if (!current || dirty & 32) {
|
|
10428
10652
|
toggle_class(div3, "hidden", ctx2[5] !== "visible");
|
|
10429
10653
|
}
|
|
10430
|
-
if (dirty & 1) {
|
|
10654
|
+
if (!current || dirty & 1) {
|
|
10431
10655
|
toggle_class(div4, "loading", !ctx2[0]);
|
|
10432
10656
|
}
|
|
10433
10657
|
},
|
|
@@ -10518,16 +10742,20 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10518
10742
|
};
|
|
10519
10743
|
$$self.$$.update = () => {
|
|
10520
10744
|
if ($$self.$$.dirty & 1) {
|
|
10521
|
-
|
|
10745
|
+
$:
|
|
10746
|
+
$$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
|
|
10522
10747
|
}
|
|
10523
10748
|
if ($$self.$$.dirty & 1) {
|
|
10524
|
-
|
|
10749
|
+
$:
|
|
10750
|
+
$$subscribe_boxState($$invalidate(7, boxState = app == null ? void 0 : app.boxState));
|
|
10525
10751
|
}
|
|
10526
10752
|
if ($$self.$$.dirty & 1) {
|
|
10527
|
-
|
|
10753
|
+
$:
|
|
10754
|
+
$$subscribe_focusedApp($$invalidate(6, focusedApp = app == null ? void 0 : app.focusedApp));
|
|
10528
10755
|
}
|
|
10529
10756
|
if ($$self.$$.dirty & 28672) {
|
|
10530
|
-
|
|
10757
|
+
$:
|
|
10758
|
+
if (!$writable) {
|
|
10531
10759
|
$$invalidate(5, layout = "hidden");
|
|
10532
10760
|
} else if ($boxState === "maximized") {
|
|
10533
10761
|
if ($focusedApp && AppsShowToolbar.some((kind) => ($focusedApp || "").includes(kind))) {
|
|
@@ -10540,7 +10768,8 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10540
10768
|
}
|
|
10541
10769
|
}
|
|
10542
10770
|
if ($$self.$$.dirty & 17) {
|
|
10543
|
-
|
|
10771
|
+
$:
|
|
10772
|
+
try {
|
|
10544
10773
|
if (app && container) {
|
|
10545
10774
|
app.bindContainer(container);
|
|
10546
10775
|
$$invalidate(11, mounted = true);
|
|
@@ -10551,7 +10780,8 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10551
10780
|
}
|
|
10552
10781
|
}
|
|
10553
10782
|
if ($$self.$$.dirty & 2051) {
|
|
10554
|
-
|
|
10783
|
+
$:
|
|
10784
|
+
if (app && theme && mounted) {
|
|
10555
10785
|
app.manager.setPrefersColorScheme(theme);
|
|
10556
10786
|
}
|
|
10557
10787
|
}
|
|
@@ -10644,20 +10874,4 @@ function createReplayUI(player, div) {
|
|
|
10644
10874
|
}
|
|
10645
10875
|
return ui;
|
|
10646
10876
|
}
|
|
10647
|
-
|
|
10648
|
-
// inline-sass-helper:inline-sass-style-helper.js
|
|
10649
|
-
function injectStyle(text2) {
|
|
10650
|
-
if (typeof document !== "undefined") {
|
|
10651
|
-
var style = document.createElement("style");
|
|
10652
|
-
var node = document.createTextNode(text2);
|
|
10653
|
-
style.appendChild(node);
|
|
10654
|
-
document.head.appendChild(style);
|
|
10655
|
-
}
|
|
10656
|
-
}
|
|
10657
|
-
|
|
10658
|
-
// inline-sass-content:./src/style.scss
|
|
10659
|
-
var style_default = '.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926;background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}.fastboard-icon.light .fastboard-icon-stroke-color{stroke:var(--fastboard-color, #5d6066)}.fastboard-icon.light .fastboard-icon-fill-color{fill:var(--fastboard-color, #5d6066)}.fastboard-icon.light.is-active .fastboard-icon-stroke-color{stroke:var(--fastboard-active-color, #3381ff)}.fastboard-icon.light.is-active .fastboard-icon-fill-color{fill:var(--fastboard-active-color, #3381ff)}.fastboard-icon.dark .fastboard-icon-stroke-color{stroke:var(--fastboard-color, #7b7e84)}.fastboard-icon.dark .fastboard-icon-fill-color{fill:var(--fastboard-color, #7b7e84)}.fastboard-icon.dark.is-active .fastboard-icon-stroke-color{stroke:var(--fastboard-active-color, #2867cc)}.fastboard-icon.dark.is-active .fastboard-icon-fill-color{fill:var(--fastboard-active-color, #2867cc)}.fastboard-redo-undo{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.fastboard-redo-undo *{box-sizing:inherit}.fastboard-redo-undo.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-redo-undo.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-redo-undo-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-redo-undo-btn svg,.fastboard-redo-undo-btn img{width:100%;height:100%;pointer-events:none}.fastboard-redo-undo-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-redo-undo-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-redo-undo-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-zoom-control{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.fastboard-zoom-control *{box-sizing:inherit}.fastboard-zoom-control.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-zoom-control.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-zoom-control-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-zoom-control-btn svg,.fastboard-zoom-control-btn img{width:100%;height:100%;pointer-events:none}.fastboard-zoom-control-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-zoom-control-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-zoom-control-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-zoom-control-text{font-variant-numeric:tabular-nums}.fastboard-page-control{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.fastboard-page-control *{box-sizing:inherit}.fastboard-page-control.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-page-control.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-page-control-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-page-control-btn svg,.fastboard-page-control-btn img{width:100%;height:100%;pointer-events:none}.fastboard-page-control-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-page-control-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-page-control-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-page-control-text{font-variant-numeric:tabular-nums}.fastboard-player-control{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);width:100%}.fastboard-player-control *{box-sizing:inherit}.fastboard-player-control.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-player-control.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-player-control-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0;display:inline}.fastboard-player-control-btn svg,.fastboard-player-control-btn img{width:100%;height:100%;pointer-events:none}.fastboard-player-control-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-player-control-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-player-control-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-player-control-btn.loading svg,.fastboard-player-control-btn.loading img{animation:fastboard-player-control-rotate .5s linear infinite}@keyframes fastboard-player-control-rotate{to{transform:rotate(360deg)}}.fastboard-player-control-btn.speed{width:auto;padding:4px;text-align:right;font-size:14px;font-variant-numeric:tabular-nums}.fastboard-player-control-btn.is-active.light{color:var(--fastboard-active-color, #3381ff)}.fastboard-player-control-btn.is-active.dark{color:var(--fastboard-active-color, #2867cc)}.fastboard-player-control-speed-text,.fastboard-player-control-progress{font-size:14px;font-variant-numeric:tabular-nums;line-height:16px}.fastboard-player-control-progress{display:inline-flex;align-items:center}.fastboard-player-control-panel.speed{display:flex;flex-direction:column}.fastboard-toolbar{height:100%;display:flex;align-items:center;position:relative;transform:translate(0);transition:transform .5s cubic-bezier(.34,1.56,.64,1);pointer-events:none}.fastboard-toolbar.collapsed{transform:translate(-100%)}.fastboard-toolbar-handler{position:absolute;left:100%;width:17px;font-size:0;border-radius:3px;cursor:pointer;pointer-events:auto}.fastboard-toolbar-handler:focus-within{outline:2px solid -webkit-focus-ring-color}.fastboard-toolbar-handler input[type=checkbox]{position:absolute;top:0;left:0;appearance:none;margin:0;width:100%;height:100%;cursor:pointer;opacity:0;z-index:-1}.fastboard-toolbar-handler svg{opacity:0;transition:opacity .5s 1s;pointer-events:none}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-bg-color{fill:var(--fastboard-bg-color, rgba(255, 255, 255, .9))}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-border-color{stroke:var(--fastboard-border-color, #e5e8f0)}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-image-stroke-color{stroke:var(--fastboard-color, #5d6066)}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-image-fill-color{fill:var(--fastboard-color, #5d6066)}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-bg-color{fill:var(--fastboard-bg-color, rgba(20, 24, 30, .9))}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-border-color{stroke:var(--fastboard-border-color, #383b42)}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-image-stroke-color{stroke:var(--fastboard-color, #7b7e84)}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-image-fill-color{fill:var(--fastboard-color, #7b7e84)}.fastboard-toolbar:hover .fastboard-toolbar-handler svg,.fastboard-toolbar.collapsed .fastboard-toolbar-handler svg{opacity:1;transition:opacity .2s}.fastboard-toolbar-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:4px;width:32px;height:32px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-toolbar-btn svg,.fastboard-toolbar-btn img{width:100%;height:100%;pointer-events:none}.fastboard-toolbar-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-toolbar-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-toolbar-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-slider{box-sizing:border-box;position:relative;width:100%;height:100%;display:flex;align-items:center}.fastboard-slider *{box-sizing:inherit}.fastboard-slider-track{appearance:none;background:rgba(0,0,0,0);border:0;border-radius:26px;flex:1;display:block;height:19px;margin:0;width:0;min-width:0;padding:0;transition:box-shadow .3s ease;cursor:pointer;touch-action:manipulation}.fastboard-slider-track::-webkit-slider-runnable-track{border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;user-select:none;background-color:#80808040;-webkit-user-select:none;background-image:linear-gradient(to right,currentColor var(--value, 0%),transparent var(--value, 0%))}.fastboard-slider-track::-webkit-slider-thumb{background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px #23292f26,0 0 0 1px #23292f33;width:13px;height:13px;position:relative;transition:all .2s ease;cursor:grab;appearance:none;margin-top:-4px}.fastboard-slider-track::-moz-range-track{border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;user-select:none;background-color:#80808040;-webkit-user-select:none}.fastboard-slider-track::-moz-range-thumb{appearance:none;background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px #23292f26,0 0 0 1px #23292f33;width:13px;height:13px;position:relative;transition:all .2s ease;cursor:grab}.fastboard-slider-track::-moz-range-progress{background:currentColor;border-radius:2.5px;height:5px}.fastboard-slider-track::-ms-track{border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;user-select:none;background-color:#80808040;-webkit-user-select:none;color:#0000}.fastboard-slider-track::-ms-thumb{appearance:none;background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px #23292f26,0 0 0 1px #23292f33;width:13px;height:13px;position:relative;transition:all .2s ease;cursor:grab;margin-top:0}.fastboard-slider-track::-ms-tooltip{display:none}.fastboard-slider-track::-moz-focus-outer{border:0}.fastboard-slider-track.grabbing::-webkit-slider-thumb{cursor:grabbing}.fastboard-slider-track.light{color:var(--fastboard-active-color, #3381ff)}.fastboard-slider-track.dark{color:var(--fastboard-active-color, #2867cc)}.fastboard-toolbar-contents{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);padding:2px 0;gap:0;flex-direction:column}.fastboard-toolbar-contents *{box-sizing:inherit}.fastboard-toolbar-contents.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-toolbar-contents.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-toolbar-contents>.fastboard-toolbar-btn{margin:2px 4px}.fastboard-toolbar-btn-interactive{position:relative}.fastboard-toolbar-triangle{width:0px;height:0px;border-bottom:4px solid;border-left:4px solid rgba(0,0,0,0);position:absolute;bottom:0;right:0}.fastboard-toolbar-btn:focus+.fastboard-toolbar-triangle{opacity:0}.fastboard-toolbar-scrollable{padding:2px 4px;overflow:hidden;display:flex;flex-direction:column;gap:4px}.fastboard-toolbar-tooltip{display:inline-flex;align-items:center;gap:4px}.fastboard-toolbar-hotkey{display:inline-flex;margin-right:-4px;width:24px;height:24px;align-items:center;justify-content:center;background-color:#ffffff1a;border-radius:4px}.fastboard-toolbar-panel-wrapper{display:none}.fastboard-toolbar-panel{display:flex;flex-direction:column}.fastboard-toolbar-panel-divider{height:.5px;width:100%;margin:4px 0;background-color:#ffffff26}.fastboard-toolbar-colors,.fastboard-toolbar-shapes{display:grid;align-self:center;grid-template:repeat(2,1fr)/repeat(4,1fr);align-items:center;justify-items:center;gap:4px}.fastboard-toolbar-shape-btn,.fastboard-toolbar-color-btn{width:24px;height:24px;padding:0;display:inline-flex;align-items:center;justify-content:center}.fastboard-toolbar-color-btn{border:1px solid rgba(0,0,0,0)}.fastboard-toolbar-color-btn.light.is-active{border-color:var(--fastboard-active-color, #3381ff)}.fastboard-toolbar-color-btn.dark.is-active{border-color:var(--fastboard-active-color, #2867cc)}.fastboard-toolbar-color-item{display:inline-block;width:16px;height:16px;border-radius:4px;pointer-events:none}.fastboard-toolbar-panel.apps{display:grid;grid-template-columns:repeat(min(var(--n, 3),3),minmax(max-content,1fr));gap:4px}.fastboard-toolbar-app-btn{margin:0;border:0;border-radius:2px;padding:4px 6px;background-color:#0000;display:inline-flex;flex-direction:column;align-items:center;gap:4px;font-size:0}.fastboard-toolbar-app-btn:disabled{opacity:.8}.fastboard-toolbar-app-btn-icon{width:32px;height:32px;pointer-events:none}.fastboard-toolbar-app-btn-text{font-size:14px;line-height:1;max-width:100%;overflow:hidden;text-overflow:ellipsis}.fastboard-toolbar-app-btn.is-loading{cursor:progress}.fastboard-toolbar-app-btn.is-failed{cursor:not-allowed;opacity:.5}.fastboard-toolbar-app-btn:not(:disabled,.is-loading,.is-failed):hover.light{cursor:pointer;background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-toolbar-app-btn-text.light{color:var(--fastboard-color, #5d6066)}.fastboard-toolbar-app-btn:not(:disabled,.is-loading,.is-failed):hover.dark{cursor:pointer;background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-toolbar-app-btn-text.dark{color:var(--fastboard-color, #7b7e84)}.fastboard-root{position:relative;width:100%;height:100%;overflow:hidden}.fastboard-view{position:absolute;top:0;left:0;width:100%;height:100%}.fastboard-left{display:flex;align-items:center;position:absolute;bottom:62px;top:8px;left:0;z-index:200;pointer-events:none}.fastboard-left .fastboard-toolbar{padding-left:16px}.fastboard-bottom-left,.fastboard-bottom,.fastboard-bottom-right{display:flex;gap:10px;position:absolute;bottom:8px;left:8px;padding:8px;z-index:200;pointer-events:none}.fastboard-bottom-right{left:auto;right:8px}.fastboard-bottom{right:8px}.fastboard-left.hidden *,.fastboard-bottom.hidden *,.fastboard-bottom-left.hidden *,.fastboard-bottom-right.hidden *{opacity:0;pointer-events:none}.fastboard-tip{font-family:inherit;color:#d5d9e0;background-color:#03060d}.fastboard-tip[data-placement^=right]>.tippy-arrow:before{top:4px;border-width:4px;border-right-color:#03060d}.fastboard-tip[data-placement^=top]>.tippy-arrow:before{left:4px;border-width:4px;border-top-color:#03060d}.fastboard-panel .tippy-content{padding:8px}';
|
|
10660
|
-
|
|
10661
|
-
// inline-sass-stub:./src/style.scss
|
|
10662
|
-
injectStyle(style_default);
|
|
10663
10877
|
//# sourceMappingURL=index.js.map
|