@realsee/dnalogel 3.31.1-dev.0 → 3.32.0-dev.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.
Files changed (167) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
  3. package/dist/PanoTagPlugin/controller/TagCache.d.ts +1 -1
  4. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +4 -1
  5. package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
  6. package/dist/PanoTagPlugin/typings/controller.d.ts +1 -0
  7. package/dist/index.cjs.js +66 -66
  8. package/dist/index.js +5849 -5666
  9. package/dist/index.umd.js +59 -59
  10. package/libs/AreaMakerPlugin/Controller.js +54 -44
  11. package/libs/AreaMakerPlugin/index.js +13 -3
  12. package/libs/AreaMakerPlugin/utils/Item.js +13 -3
  13. package/libs/CruisePlugin/Move.js +50 -37
  14. package/libs/CruisePlugin/Work.js +19 -6
  15. package/libs/CruisePlugin/index.js +23 -10
  16. package/libs/GuideLinePlugin/Components/Tag.js +58 -48
  17. package/libs/GuideLinePlugin/Controller.js +46 -33
  18. package/libs/GuideLinePlugin/GuideLineItem.js +19 -6
  19. package/libs/GuideLinePlugin/GuideLineModeItem.js +19 -6
  20. package/libs/GuideLinePlugin/index.js +23 -10
  21. package/libs/ItemLabelPlugin/ItemLabelComponent.js +152 -139
  22. package/libs/ItemLabelPlugin/ItemLabelItem.js +67 -57
  23. package/libs/ItemLabelPlugin/Plugin.js +37 -26
  24. package/libs/ItemLabelPlugin/index.js +16 -5
  25. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +116 -103
  26. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +45 -35
  27. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +35 -24
  28. package/libs/ModelItemLabelPlugin/index.js +16 -5
  29. package/libs/ModelMakerPlugin/Controller.js +33 -23
  30. package/libs/ModelMakerPlugin/index.js +13 -3
  31. package/libs/ModelMakerPlugin/utils/Text.js +43 -33
  32. package/libs/ModelMakerPlugin/utils/tagRenderer.js +28 -18
  33. package/libs/ModelRoomLabelPlugin/Controller.js +20 -8
  34. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +52 -42
  35. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +75 -61
  36. package/libs/ModelRoomLabelPlugin/index.js +17 -5
  37. package/libs/PanoDoorLabelPlugin/Controller.js +38 -28
  38. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +55 -45
  39. package/libs/PanoDoorLabelPlugin/index.js +14 -4
  40. package/libs/PanoMeasurePlugin/Components/Common/CircleButton.js +70 -60
  41. package/libs/PanoMeasurePlugin/Components/Common/Exit.js +32 -22
  42. package/libs/PanoMeasurePlugin/Components/Common/Switcher0.js +75 -62
  43. package/libs/PanoMeasurePlugin/Components/Common/Switcher1.js +110 -97
  44. package/libs/PanoMeasurePlugin/Components/Controller0.js +72 -61
  45. package/libs/PanoMeasurePlugin/Components/Controller1.js +33 -22
  46. package/libs/PanoMeasurePlugin/Components/Tip.js +76 -66
  47. package/libs/PanoMeasurePlugin/Controller/index.js +28 -17
  48. package/libs/PanoMeasurePlugin/Modules/GuideController.js +26 -16
  49. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +34 -23
  50. package/libs/PanoMeasurePlugin/index.js +27 -16
  51. package/libs/PanoRulerProPlugin/Controller.js +38 -27
  52. package/libs/PanoRulerProPlugin/RulerItem.js +94 -79
  53. package/libs/PanoRulerProPlugin/RulerItems.js +95 -82
  54. package/libs/PanoRulerProPlugin/index.js +15 -4
  55. package/libs/PanoSpatialTagPlugin/Components/origins.js +51 -38
  56. package/libs/PanoSpatialTagPlugin/Components/tag.js +32 -22
  57. package/libs/PanoSpatialTagPlugin/Plugin.js +115 -104
  58. package/libs/PanoSpatialTagPlugin/index.js +13 -2
  59. package/libs/PanoSpatialTagPlugin/store.d.ts +1 -0
  60. package/libs/PanoSpatialTagPlugin/store.js +2 -2
  61. package/libs/PanoTagPlugin/Components/Common/Arrow.js +44 -34
  62. package/libs/PanoTagPlugin/Components/Common/Audio.js +99 -89
  63. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +123 -112
  64. package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +55 -45
  65. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +59 -49
  66. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +79 -69
  67. package/libs/PanoTagPlugin/Components/Common/Media.js +145 -131
  68. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +35 -25
  69. package/libs/PanoTagPlugin/Components/Common/Shadow.js +58 -48
  70. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +35 -24
  71. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +97 -86
  72. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +109 -96
  73. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +128 -118
  74. package/libs/PanoTagPlugin/Components/Common/TextItem.js +59 -49
  75. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +100 -90
  76. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +92 -81
  77. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +68 -57
  78. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +45 -35
  79. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +122 -110
  80. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +53 -42
  81. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +130 -115
  82. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +66 -54
  83. package/libs/PanoTagPlugin/Components/Tag/PanoramaTag.js +62 -52
  84. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +66 -56
  85. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +109 -98
  86. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +54 -43
  87. package/libs/PanoTagPlugin/Components/Tag/index.js +161 -148
  88. package/libs/PanoTagPlugin/Components/TagContainer.js +77 -62
  89. package/libs/PanoTagPlugin/Components/TagItem.js +182 -169
  90. package/libs/PanoTagPlugin/controller/TagCache.d.ts +1 -1
  91. package/libs/PanoTagPlugin/controller/TagCache.js +5 -5
  92. package/libs/PanoTagPlugin/controller/TagComputer.js +2 -2
  93. package/libs/PanoTagPlugin/controller/TagRender.js +56 -43
  94. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +4 -1
  95. package/libs/PanoTagPlugin/controller/TagUtil.js +78 -70
  96. package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
  97. package/libs/PanoTagPlugin/controller/index.js +84 -65
  98. package/libs/PanoTagPlugin/index.js +28 -15
  99. package/libs/PanoTagPlugin/typings/controller.d.ts +1 -0
  100. package/libs/base/BasePlugin.js +1 -1
  101. package/libs/components/AreaLabel/LabelItem.js +56 -51
  102. package/libs/floorplan/Components/BaseImage.js +43 -39
  103. package/libs/floorplan/Components/Camera.js +41 -32
  104. package/libs/floorplan/Components/Compass.js +27 -24
  105. package/libs/floorplan/Components/CurrentFloor.js +167 -162
  106. package/libs/floorplan/Components/Main.js +85 -76
  107. package/libs/floorplan/Components/MissingFloor.js +24 -21
  108. package/libs/floorplan/Components/Normalmage.js +25 -22
  109. package/libs/floorplan/Components/RoomHighlight/Room.js +28 -25
  110. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +69 -61
  111. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +104 -101
  112. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +65 -57
  113. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +125 -118
  114. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +25 -22
  115. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +43 -40
  116. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +32 -29
  117. package/libs/floorplan/Components/RuleLabels/RuleItem.js +49 -41
  118. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +102 -94
  119. package/libs/floorplan/Components/SvgImage.js +30 -27
  120. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +18 -6
  121. package/libs/floorplan/MapviewFloorplanPlugin/index.js +19 -7
  122. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +58 -46
  123. package/libs/floorplan/ModelFloorplanPlugin/index.js +19 -7
  124. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +77 -65
  125. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +95 -83
  126. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +70 -53
  127. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +112 -100
  128. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +40 -28
  129. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +16 -4
  130. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +30 -18
  131. package/libs/floorplan/TopviewFloorplanPlugin/index.js +19 -7
  132. package/libs/floorplan/index.js +1 -0
  133. package/libs/index.js +143 -129
  134. package/libs/shared-utils/logger.js +1 -1
  135. package/libs/vendor/svelte/src/runtime/internal/Component.js +122 -0
  136. package/libs/vendor/svelte/src/runtime/internal/ResizeObserverSingleton.js +1 -0
  137. package/libs/vendor/svelte/src/runtime/internal/animations.js +1 -0
  138. package/libs/vendor/svelte/src/runtime/internal/await_block.js +47 -0
  139. package/libs/vendor/svelte/src/runtime/internal/dev.js +1 -0
  140. package/libs/vendor/svelte/src/runtime/internal/disclose-version/index.js +2 -0
  141. package/libs/vendor/svelte/src/runtime/internal/dom.js +214 -0
  142. package/libs/vendor/svelte/src/runtime/internal/each.js +46 -0
  143. package/libs/vendor/svelte/src/runtime/internal/environment.js +7 -0
  144. package/libs/vendor/svelte/src/runtime/internal/globals.js +7 -0
  145. package/libs/vendor/svelte/src/runtime/internal/index.js +1 -0
  146. package/libs/vendor/svelte/src/runtime/internal/lifecycle.js +63 -0
  147. package/libs/vendor/svelte/src/runtime/internal/loop.js +21 -0
  148. package/libs/vendor/svelte/src/runtime/internal/scheduler.js +66 -0
  149. package/libs/vendor/svelte/src/runtime/internal/spread.js +26 -0
  150. package/libs/vendor/svelte/src/runtime/internal/ssr.js +1 -0
  151. package/libs/vendor/svelte/src/runtime/internal/style_manager.js +48 -0
  152. package/libs/vendor/svelte/src/runtime/internal/transitions.js +192 -0
  153. package/libs/vendor/svelte/src/runtime/internal/utils.js +110 -0
  154. package/libs/vendor/svelte/{store → src/runtime/store}/index.js +5 -5
  155. package/libs/vendor/svelte/{transition → src/runtime/transition}/index.js +1 -1
  156. package/libs/vendor/svelte/src/shared/boolean_attributes.js +1 -0
  157. package/libs/vendor/svelte/src/shared/utils/names.js +1 -0
  158. package/libs/vendor/svelte/src/shared/version.js +4 -0
  159. package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +29 -25
  160. package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +197 -225
  161. package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +16 -12
  162. package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +65 -59
  163. package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +32 -29
  164. package/package.json +5 -6
  165. package/libs/vendor/svelte/internal/index.js +0 -749
  166. /package/libs/vendor/svelte/{easing → src/runtime/easing}/index.js +0 -0
  167. /package/libs/vendor/svelte/{index.js → src/runtime/index.js} +0 -0
@@ -1,749 +0,0 @@
1
- function N() {
2
- }
3
- const Z = (t) => t;
4
- function kt(t, e) {
5
- for (const n in e)
6
- t[n] = e[n];
7
- return t;
8
- }
9
- function xt(t) {
10
- return !!t && (typeof t == "object" || typeof t == "function") && typeof t.then == "function";
11
- }
12
- function at(t) {
13
- return t();
14
- }
15
- function ut() {
16
- return /* @__PURE__ */ Object.create(null);
17
- }
18
- function M(t) {
19
- t.forEach(at);
20
- }
21
- function L(t) {
22
- return typeof t == "function";
23
- }
24
- function Ft(t, e) {
25
- return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
26
- }
27
- let F;
28
- function Wt(t, e) {
29
- return F || (F = document.createElement("a")), F.href = e, t === F.href;
30
- }
31
- function Et(t) {
32
- return Object.keys(t).length === 0;
33
- }
34
- function Bt(t, e, n, i) {
35
- if (t) {
36
- const r = dt(t, e, n, i);
37
- return t[0](r);
38
- }
39
- }
40
- function dt(t, e, n, i) {
41
- return t[1] && i ? kt(n.ctx.slice(), t[1](i(e))) : n.ctx;
42
- }
43
- function Ht(t, e, n, i) {
44
- if (t[2] && i) {
45
- const r = t[2](i(n));
46
- if (e.dirty === void 0)
47
- return r;
48
- if (typeof r == "object") {
49
- const s = [], c = Math.max(e.dirty.length, r.length);
50
- for (let o = 0; o < c; o += 1)
51
- s[o] = e.dirty[o] | r[o];
52
- return s;
53
- }
54
- return e.dirty | r;
55
- }
56
- return e.dirty;
57
- }
58
- function It(t, e, n, i, r, s) {
59
- if (r) {
60
- const c = dt(e, n, i, s);
61
- t.p(c, r);
62
- }
63
- }
64
- function Ut(t) {
65
- if (t.ctx.length > 32) {
66
- const e = [], n = t.ctx.length / 32;
67
- for (let i = 0; i < n; i++)
68
- e[i] = -1;
69
- return e;
70
- }
71
- return -1;
72
- }
73
- function Gt(t) {
74
- return t == null ? "" : t;
75
- }
76
- function Jt(t) {
77
- return t && L(t.destroy) ? t.destroy : N;
78
- }
79
- function Kt(t) {
80
- const e = typeof t == "string" && t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
81
- return e ? [parseFloat(e[1]), e[2] || "px"] : [t, "px"];
82
- }
83
- const ht = typeof window != "undefined";
84
- let tt = ht ? () => window.performance.now() : () => Date.now(), et = ht ? (t) => requestAnimationFrame(t) : N;
85
- const j = /* @__PURE__ */ new Set();
86
- function _t(t) {
87
- j.forEach((e) => {
88
- e.c(t) || (j.delete(e), e.f());
89
- }), j.size !== 0 && et(_t);
90
- }
91
- function nt(t) {
92
- let e;
93
- return j.size === 0 && et(_t), {
94
- promise: new Promise((n) => {
95
- j.add(e = { c: t, f: n });
96
- }),
97
- abort() {
98
- j.delete(e);
99
- }
100
- };
101
- }
102
- function pt(t, e) {
103
- t.appendChild(e);
104
- }
105
- function Qt(t, e, n) {
106
- const i = it(t);
107
- if (!i.getElementById(e)) {
108
- const r = K("style");
109
- r.id = e, r.textContent = n, mt(i, r);
110
- }
111
- }
112
- function it(t) {
113
- if (!t)
114
- return document;
115
- const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
116
- return e && e.host ? e : t.ownerDocument;
117
- }
118
- function vt(t) {
119
- const e = K("style");
120
- return mt(it(t), e), e.sheet;
121
- }
122
- function mt(t, e) {
123
- return pt(t.head || t, e), e.sheet;
124
- }
125
- function Nt(t, e, n) {
126
- t.insertBefore(e, n || null);
127
- }
128
- function J(t) {
129
- t.parentNode && t.parentNode.removeChild(t);
130
- }
131
- function Vt(t, e) {
132
- for (let n = 0; n < t.length; n += 1)
133
- t[n] && t[n].d(e);
134
- }
135
- function K(t) {
136
- return document.createElement(t);
137
- }
138
- function Mt(t) {
139
- return document.createElementNS("http://www.w3.org/2000/svg", t);
140
- }
141
- function gt(t) {
142
- return document.createTextNode(t);
143
- }
144
- function Xt() {
145
- return gt(" ");
146
- }
147
- function Yt() {
148
- return gt("");
149
- }
150
- function lt(t, e, n, i) {
151
- return t.addEventListener(e, n, i), () => t.removeEventListener(e, n, i);
152
- }
153
- function Zt(t) {
154
- return function(e) {
155
- return e.stopPropagation(), t.call(this, e);
156
- };
157
- }
158
- function te(t, e, n) {
159
- n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
160
- }
161
- function At(t) {
162
- return Array.from(t.childNodes);
163
- }
164
- function ee(t, e) {
165
- e = "" + e, t.data !== e && (t.data = e);
166
- }
167
- function ne(t, e, n, i) {
168
- n === null ? t.style.removeProperty(e) : t.style.setProperty(e, n, i ? "important" : "");
169
- }
170
- let W;
171
- function Tt() {
172
- if (W === void 0) {
173
- W = !1;
174
- try {
175
- typeof window != "undefined" && window.parent && window.parent.document;
176
- } catch (t) {
177
- W = !0;
178
- }
179
- }
180
- return W;
181
- }
182
- function ie(t, e) {
183
- getComputedStyle(t).position === "static" && (t.style.position = "relative");
184
- const i = K("iframe");
185
- i.setAttribute("style", "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"), i.setAttribute("aria-hidden", "true"), i.tabIndex = -1;
186
- const r = Tt();
187
- let s;
188
- return r ? (i.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = lt(window, "message", (c) => {
189
- c.source === i.contentWindow && e();
190
- })) : (i.src = "about:blank", i.onload = () => {
191
- s = lt(i.contentWindow, "resize", e), e();
192
- }), pt(t, i), () => {
193
- (r || s && i.contentWindow) && s(), J(i);
194
- };
195
- }
196
- function re(t, e, n) {
197
- t.classList[n ? "add" : "remove"](e);
198
- }
199
- function yt(t, e, { bubbles: n = !1, cancelable: i = !1 } = {}) {
200
- const r = document.createEvent("CustomEvent");
201
- return r.initCustomEvent(t, n, i, e), r;
202
- }
203
- class se {
204
- constructor(e = !1) {
205
- this.is_svg = !1, this.is_svg = e, this.e = this.n = null;
206
- }
207
- c(e) {
208
- this.h(e);
209
- }
210
- m(e, n, i = null) {
211
- this.e || (this.is_svg ? this.e = Mt(n.nodeName) : this.e = K(n.nodeType === 11 ? "TEMPLATE" : n.nodeName), this.t = n.tagName !== "TEMPLATE" ? n : n.content, this.c(e)), this.i(i);
212
- }
213
- h(e) {
214
- this.e.innerHTML = e, this.n = Array.from(this.e.nodeName === "TEMPLATE" ? this.e.content.childNodes : this.e.childNodes);
215
- }
216
- i(e) {
217
- for (let n = 0; n < this.n.length; n += 1)
218
- Nt(this.t, this.n[n], e);
219
- }
220
- p(e) {
221
- this.d(), this.h(e), this.i(this.a);
222
- }
223
- d() {
224
- this.n.forEach(J);
225
- }
226
- }
227
- const H = /* @__PURE__ */ new Map();
228
- let I = 0;
229
- function Ct(t) {
230
- let e = 5381, n = t.length;
231
- for (; n--; )
232
- e = (e << 5) - e ^ t.charCodeAt(n);
233
- return e >>> 0;
234
- }
235
- function Pt(t, e) {
236
- const n = { stylesheet: vt(e), rules: {} };
237
- return H.set(t, n), n;
238
- }
239
- function U(t, e, n, i, r, s, c, o = 0) {
240
- const l = 16.666 / i;
241
- let u = `{
242
- `;
243
- for (let p = 0; p <= 1; p += l) {
244
- const y = e + (n - e) * s(p);
245
- u += p * 100 + `%{${c(y, 1 - y)}}
246
- `;
247
- }
248
- const _ = u + `100% {${c(n, 1 - n)}}
249
- }`, a = `__svelte_${Ct(_)}_${o}`, d = it(t), { stylesheet: f, rules: h } = H.get(d) || Pt(d, t);
250
- h[a] || (h[a] = !0, f.insertRule(`@keyframes ${a} ${_}`, f.cssRules.length));
251
- const m = t.style.animation || "";
252
- return t.style.animation = `${m ? `${m}, ` : ""}${a} ${i}ms linear ${r}ms 1 both`, I += 1, a;
253
- }
254
- function G(t, e) {
255
- const n = (t.style.animation || "").split(", "), i = n.filter(
256
- e ? (s) => s.indexOf(e) < 0 : (s) => s.indexOf("__svelte") === -1
257
- // remove all Svelte animations
258
- ), r = n.length - i.length;
259
- r && (t.style.animation = i.join(", "), I -= r, I || jt());
260
- }
261
- function jt() {
262
- et(() => {
263
- I || (H.forEach((t) => {
264
- const { ownerNode: e } = t.stylesheet;
265
- e && J(e);
266
- }), H.clear());
267
- });
268
- }
269
- let D;
270
- function v(t) {
271
- D = t;
272
- }
273
- function A() {
274
- if (!D)
275
- throw new Error("Function called outside component initialization");
276
- return D;
277
- }
278
- function oe(t) {
279
- A().$$.before_update.push(t);
280
- }
281
- function ce(t) {
282
- A().$$.on_mount.push(t);
283
- }
284
- function ue(t) {
285
- A().$$.after_update.push(t);
286
- }
287
- function le(t) {
288
- A().$$.on_destroy.push(t);
289
- }
290
- function fe() {
291
- const t = A();
292
- return (e, n, { cancelable: i = !1 } = {}) => {
293
- const r = t.$$.callbacks[e];
294
- if (r) {
295
- const s = yt(e, n, { cancelable: i });
296
- return r.slice().forEach((c) => {
297
- c.call(t, s);
298
- }), !s.defaultPrevented;
299
- }
300
- return !0;
301
- };
302
- }
303
- function ae(t, e) {
304
- return A().$$.context.set(t, e), e;
305
- }
306
- function de(t) {
307
- return A().$$.context.get(t);
308
- }
309
- function he(t, e) {
310
- const n = t.$$.callbacks[e.type];
311
- n && n.slice().forEach((i) => i.call(this, e));
312
- }
313
- const P = [], ft = [];
314
- let S = [];
315
- const X = [], bt = /* @__PURE__ */ Promise.resolve();
316
- let Y = !1;
317
- function wt() {
318
- Y || (Y = !0, bt.then(rt));
319
- }
320
- function _e() {
321
- return wt(), bt;
322
- }
323
- function z(t) {
324
- S.push(t);
325
- }
326
- function pe(t) {
327
- X.push(t);
328
- }
329
- const V = /* @__PURE__ */ new Set();
330
- let C = 0;
331
- function rt() {
332
- if (C !== 0)
333
- return;
334
- const t = D;
335
- do {
336
- try {
337
- for (; C < P.length; ) {
338
- const e = P[C];
339
- C++, v(e), St(e.$$);
340
- }
341
- } catch (e) {
342
- throw P.length = 0, C = 0, e;
343
- }
344
- for (v(null), P.length = 0, C = 0; ft.length; )
345
- ft.pop()();
346
- for (let e = 0; e < S.length; e += 1) {
347
- const n = S[e];
348
- V.has(n) || (V.add(n), n());
349
- }
350
- S.length = 0;
351
- } while (P.length);
352
- for (; X.length; )
353
- X.pop()();
354
- Y = !1, V.clear(), v(t);
355
- }
356
- function St(t) {
357
- if (t.fragment !== null) {
358
- t.update(), M(t.before_update);
359
- const e = t.dirty;
360
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(z);
361
- }
362
- }
363
- function zt(t) {
364
- const e = [], n = [];
365
- S.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), S = e;
366
- }
367
- let O;
368
- function st() {
369
- return O || (O = Promise.resolve(), O.then(() => {
370
- O = null;
371
- })), O;
372
- }
373
- function T(t, e, n) {
374
- t.dispatchEvent(yt(`${e ? "intro" : "outro"}${n}`));
375
- }
376
- const B = /* @__PURE__ */ new Set();
377
- let x;
378
- function Lt() {
379
- x = {
380
- r: 0,
381
- c: [],
382
- p: x
383
- // parent group
384
- };
385
- }
386
- function Ot() {
387
- x.r || M(x.c), x = x.p;
388
- }
389
- function ot(t, e) {
390
- t && t.i && (B.delete(t), t.i(e));
391
- }
392
- function $t(t, e, n, i) {
393
- if (t && t.o) {
394
- if (B.has(t))
395
- return;
396
- B.add(t), x.c.push(() => {
397
- B.delete(t), i && (n && t.d(1), i());
398
- }), t.o(e);
399
- } else
400
- i && i();
401
- }
402
- const ct = { duration: 0 };
403
- function me(t, e, n) {
404
- const i = { direction: "in" };
405
- let r = e(t, n, i), s = !1, c, o, l = 0;
406
- function u() {
407
- c && G(t, c);
408
- }
409
- function _() {
410
- const { delay: d = 0, duration: f = 300, easing: h = Z, tick: m = N, css: p } = r || ct;
411
- p && (c = U(t, 0, 1, f, d, h, p, l++)), m(0, 1);
412
- const y = tt() + d, E = y + f;
413
- o && o.abort(), s = !0, z(() => T(t, !0, "start")), o = nt((b) => {
414
- if (s) {
415
- if (b >= E)
416
- return m(1, 0), T(t, !0, "end"), u(), s = !1;
417
- if (b >= y) {
418
- const w = h((b - y) / f);
419
- m(w, 1 - w);
420
- }
421
- }
422
- return s;
423
- });
424
- }
425
- let a = !1;
426
- return {
427
- start() {
428
- a || (a = !0, G(t), L(r) ? (r = r(i), st().then(_)) : _());
429
- },
430
- invalidate() {
431
- a = !1;
432
- },
433
- end() {
434
- s && (u(), s = !1);
435
- }
436
- };
437
- }
438
- function ge(t, e, n) {
439
- const i = { direction: "out" };
440
- let r = e(t, n, i), s = !0, c;
441
- const o = x;
442
- o.r += 1;
443
- function l() {
444
- const { delay: u = 0, duration: _ = 300, easing: a = Z, tick: d = N, css: f } = r || ct;
445
- f && (c = U(t, 1, 0, _, u, a, f));
446
- const h = tt() + u, m = h + _;
447
- z(() => T(t, !1, "start")), nt((p) => {
448
- if (s) {
449
- if (p >= m)
450
- return d(0, 1), T(t, !1, "end"), --o.r || M(o.c), !1;
451
- if (p >= h) {
452
- const y = a((p - h) / _);
453
- d(1 - y, y);
454
- }
455
- }
456
- return s;
457
- });
458
- }
459
- return L(r) ? st().then(() => {
460
- r = r(i), l();
461
- }) : l(), {
462
- end(u) {
463
- u && r.tick && r.tick(1, 0), s && (c && G(t, c), s = !1);
464
- }
465
- };
466
- }
467
- function ye(t, e, n, i) {
468
- const r = { direction: "both" };
469
- let s = e(t, n, r), c = i ? 0 : 1, o = null, l = null, u = null;
470
- function _() {
471
- u && G(t, u);
472
- }
473
- function a(f, h) {
474
- const m = f.b - c;
475
- return h *= Math.abs(m), {
476
- a: c,
477
- b: f.b,
478
- d: m,
479
- duration: h,
480
- start: f.start,
481
- end: f.start + h,
482
- group: f.group
483
- };
484
- }
485
- function d(f) {
486
- const { delay: h = 0, duration: m = 300, easing: p = Z, tick: y = N, css: E } = s || ct, b = {
487
- start: tt() + h,
488
- b: f
489
- };
490
- f || (b.group = x, x.r += 1), o || l ? l = b : (E && (_(), u = U(t, c, f, m, h, p, E)), f && y(0, 1), o = a(b, m), z(() => T(t, f, "start")), nt((w) => {
491
- if (l && w > l.start && (o = a(l, m), l = null, T(t, o.b, "start"), E && (_(), u = U(t, c, o.b, o.duration, 0, p, s.css))), o) {
492
- if (w >= o.end)
493
- y(c = o.b, 1 - c), T(t, o.b, "end"), l || (o.b ? _() : --o.group.r || M(o.group.c)), o = null;
494
- else if (w >= o.start) {
495
- const R = w - o.start;
496
- c = o.a + o.d * p(R / o.duration), y(c, 1 - c);
497
- }
498
- }
499
- return !!(o || l);
500
- }));
501
- }
502
- return {
503
- run(f) {
504
- L(s) ? st().then(() => {
505
- s = s(r), d(f);
506
- }) : d(f);
507
- },
508
- end() {
509
- _(), o = l = null;
510
- }
511
- };
512
- }
513
- function be(t, e) {
514
- const n = e.token = {};
515
- function i(r, s, c, o) {
516
- if (e.token !== n)
517
- return;
518
- e.resolved = o;
519
- let l = e.ctx;
520
- c !== void 0 && (l = l.slice(), l[c] = o);
521
- const u = r && (e.current = r)(l);
522
- let _ = !1;
523
- e.block && (e.blocks ? e.blocks.forEach((a, d) => {
524
- d !== s && a && (Lt(), $t(a, 1, 1, () => {
525
- e.blocks[d] === a && (e.blocks[d] = null);
526
- }), Ot());
527
- }) : e.block.d(1), u.c(), ot(u, 1), u.m(e.mount(), e.anchor), _ = !0), e.block = u, e.blocks && (e.blocks[s] = u), _ && rt();
528
- }
529
- if (xt(t)) {
530
- const r = A();
531
- if (t.then((s) => {
532
- v(r), i(e.then, 1, e.value, s), v(null);
533
- }, (s) => {
534
- if (v(r), i(e.catch, 2, e.error, s), v(null), !e.hasCatch)
535
- throw s;
536
- }), e.current !== e.pending)
537
- return i(e.pending, 0), !0;
538
- } else {
539
- if (e.current !== e.then)
540
- return i(e.then, 1, e.value, t), !0;
541
- e.resolved = t;
542
- }
543
- }
544
- function we(t, e, n) {
545
- const i = e.slice(), { resolved: r } = t;
546
- t.current === t.then && (i[t.value] = r), t.current === t.catch && (i[t.error] = r), t.block.p(i, n);
547
- }
548
- const $e = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : global;
549
- function ke(t, e) {
550
- t.d(1), e.delete(t.key);
551
- }
552
- function xe(t, e) {
553
- $t(t, 1, 1, () => {
554
- e.delete(t.key);
555
- });
556
- }
557
- function Ee(t, e, n, i, r, s, c, o, l, u, _, a) {
558
- let d = t.length, f = s.length, h = d;
559
- const m = {};
560
- for (; h--; )
561
- m[t[h].key] = h;
562
- const p = [], y = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), b = [];
563
- for (h = f; h--; ) {
564
- const g = a(r, s, h), $ = n(g);
565
- let k = c.get($);
566
- k ? i && b.push(() => k.p(g, e)) : (k = u($, g), k.c()), y.set($, p[h] = k), $ in m && E.set($, Math.abs(h - m[$]));
567
- }
568
- const w = /* @__PURE__ */ new Set(), R = /* @__PURE__ */ new Set();
569
- function Q(g) {
570
- ot(g, 1), g.m(o, _), c.set(g.key, g), _ = g.first, f--;
571
- }
572
- for (; d && f; ) {
573
- const g = p[f - 1], $ = t[d - 1], k = g.key, q = $.key;
574
- g === $ ? (_ = g.first, d--, f--) : y.has(q) ? !c.has(k) || w.has(k) ? Q(g) : R.has(q) ? d-- : E.get(k) > E.get(q) ? (R.add(k), Q(g)) : (w.add(q), d--) : (l($, c), d--);
575
- }
576
- for (; d--; ) {
577
- const g = t[d];
578
- y.has(g.key) || l(g, c);
579
- }
580
- for (; f; )
581
- Q(p[f - 1]);
582
- return M(b), p;
583
- }
584
- function ve(t, e) {
585
- const n = {}, i = {}, r = { $$scope: 1 };
586
- let s = t.length;
587
- for (; s--; ) {
588
- const c = t[s], o = e[s];
589
- if (o) {
590
- for (const l in c)
591
- l in o || (i[l] = 1);
592
- for (const l in o)
593
- r[l] || (n[l] = o[l], r[l] = 1);
594
- t[s] = o;
595
- } else
596
- for (const l in c)
597
- r[l] = 1;
598
- }
599
- for (const c in i)
600
- c in n || (n[c] = void 0);
601
- return n;
602
- }
603
- function Ne(t) {
604
- return typeof t == "object" && t !== null ? t : {};
605
- }
606
- function Me(t, e, n) {
607
- const i = t.$$.props[e];
608
- i !== void 0 && (t.$$.bound[i] = n, n(t.$$.ctx[i]));
609
- }
610
- function Ae(t) {
611
- t && t.c();
612
- }
613
- function Dt(t, e, n, i) {
614
- const { fragment: r, after_update: s } = t.$$;
615
- r && r.m(e, n), i || z(() => {
616
- const c = t.$$.on_mount.map(at).filter(L);
617
- t.$$.on_destroy ? t.$$.on_destroy.push(...c) : M(c), t.$$.on_mount = [];
618
- }), s.forEach(z);
619
- }
620
- function Rt(t, e) {
621
- const n = t.$$;
622
- n.fragment !== null && (zt(n.after_update), M(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
623
- }
624
- function qt(t, e) {
625
- t.$$.dirty[0] === -1 && (P.push(t), wt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
626
- }
627
- function Te(t, e, n, i, r, s, c, o = [-1]) {
628
- const l = D;
629
- v(t);
630
- const u = t.$$ = {
631
- fragment: null,
632
- ctx: [],
633
- // state
634
- props: s,
635
- update: N,
636
- not_equal: r,
637
- bound: ut(),
638
- // lifecycle
639
- on_mount: [],
640
- on_destroy: [],
641
- on_disconnect: [],
642
- before_update: [],
643
- after_update: [],
644
- context: new Map(e.context || (l ? l.$$.context : [])),
645
- // everything else
646
- callbacks: ut(),
647
- dirty: o,
648
- skip_bound: !1,
649
- root: e.target || l.$$.root
650
- };
651
- c && c(u.root);
652
- let _ = !1;
653
- if (u.ctx = n ? n(t, e.props || {}, (a, d, ...f) => {
654
- const h = f.length ? f[0] : d;
655
- return u.ctx && r(u.ctx[a], u.ctx[a] = h) && (!u.skip_bound && u.bound[a] && u.bound[a](h), _ && qt(t, a)), d;
656
- }) : [], u.update(), _ = !0, M(u.before_update), u.fragment = i ? i(u.ctx) : !1, e.target) {
657
- if (e.hydrate) {
658
- const a = At(e.target);
659
- u.fragment && u.fragment.l(a), a.forEach(J);
660
- } else
661
- u.fragment && u.fragment.c();
662
- e.intro && ot(t.$$.fragment), Dt(t, e.target, e.anchor, e.customElement), rt();
663
- }
664
- v(l);
665
- }
666
- class Ce {
667
- $destroy() {
668
- Rt(this, 1), this.$destroy = N;
669
- }
670
- $on(e, n) {
671
- if (!L(n))
672
- return N;
673
- const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
674
- return i.push(n), () => {
675
- const r = i.indexOf(n);
676
- r !== -1 && i.splice(r, 1);
677
- };
678
- }
679
- $set(e) {
680
- this.$$set && !Et(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
681
- }
682
- }
683
- export {
684
- se as HtmlTag,
685
- Ce as SvelteComponent,
686
- Jt as action_destroyer,
687
- pe as add_flush_callback,
688
- z as add_render_callback,
689
- ie as add_resize_listener,
690
- ue as afterUpdate,
691
- pt as append,
692
- Qt as append_styles,
693
- kt as assign,
694
- te as attr,
695
- oe as beforeUpdate,
696
- Me as bind,
697
- ft as binding_callbacks,
698
- he as bubble,
699
- Ot as check_outros,
700
- fe as createEventDispatcher,
701
- ye as create_bidirectional_transition,
702
- Ae as create_component,
703
- me as create_in_transition,
704
- ge as create_out_transition,
705
- Bt as create_slot,
706
- ke as destroy_block,
707
- Rt as destroy_component,
708
- Vt as destroy_each,
709
- J as detach,
710
- K as element,
711
- Yt as empty,
712
- de as getContext,
713
- Ut as get_all_dirty_from_scope,
714
- Ht as get_slot_changes,
715
- Ne as get_spread_object,
716
- ve as get_spread_update,
717
- $e as globals,
718
- Lt as group_outros,
719
- be as handle_promise,
720
- Z as identity,
721
- Te as init,
722
- Nt as insert,
723
- L as is_function,
724
- lt as listen,
725
- Dt as mount_component,
726
- N as noop,
727
- Gt as null_to_empty,
728
- le as onDestroy,
729
- ce as onMount,
730
- xe as outro_and_destroy_block,
731
- M as run_all,
732
- Ft as safe_not_equal,
733
- ae as setContext,
734
- ee as set_data,
735
- ne as set_style,
736
- Xt as space,
737
- Kt as split_css_unit,
738
- Wt as src_url_equal,
739
- Zt as stop_propagation,
740
- Mt as svg_element,
741
- gt as text,
742
- _e as tick,
743
- re as toggle_class,
744
- ot as transition_in,
745
- $t as transition_out,
746
- we as update_await_block_branch,
747
- Ee as update_keyed_each,
748
- It as update_slot_base
749
- };