@pie-element/simple-cloze 0.1.0 → 0.1.2
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/author/index.js +132 -67
- package/dist/author/index.js.map +1 -1
- package/dist/delivery/index.js +128 -63
- package/dist/delivery/index.js.map +1 -1
- package/dist/index.iife.d.ts +1 -1
- package/dist/index.iife.d.ts.map +1 -1
- package/dist/index.iife.js +2 -2
- package/dist/index.js +128 -63
- package/dist/index.js.map +1 -1
- package/dist/print/index.js +126 -61
- package/dist/print/index.js.map +1 -1
- package/package.json +3 -3
- package/src/index.iife.ts +1 -5
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
1
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/disclose-version.js
|
|
2
2
|
if (typeof window !== "undefined") {
|
|
3
3
|
var _window$__svelte, _window;
|
|
4
4
|
((_window$__svelte = (_window = window).__svelte ?? (_window.__svelte = {})).v ?? (_window$__svelte.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
6
|
//#endregion
|
|
7
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
7
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/constants.js
|
|
8
8
|
var HYDRATION_ERROR = {};
|
|
9
9
|
var UNINITIALIZED = Symbol();
|
|
10
10
|
var NAMESPACE_SVG = "http://www.w3.org/2000/svg";
|
|
11
11
|
var NAMESPACE_MATHML = "http://www.w3.org/1998/Math/MathML";
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
13
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/shared/utils.js
|
|
14
14
|
var is_array = Array.isArray;
|
|
15
15
|
var index_of = Array.prototype.indexOf;
|
|
16
16
|
var includes = Array.prototype.includes;
|
|
@@ -130,7 +130,7 @@ function lifecycle_outside_component(name) {
|
|
|
130
130
|
throw new Error(`https://svelte.dev/e/lifecycle_outside_component`);
|
|
131
131
|
}
|
|
132
132
|
//#endregion
|
|
133
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
133
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/errors.js
|
|
134
134
|
/**
|
|
135
135
|
* Cannot create a `$derived(...)` with an `await` expression outside of an effect tree
|
|
136
136
|
* @returns {never}
|
|
@@ -217,7 +217,7 @@ function svelte_boundary_reset_noop() {
|
|
|
217
217
|
console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`);
|
|
218
218
|
}
|
|
219
219
|
//#endregion
|
|
220
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
220
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
221
221
|
/** @import { TemplateNode } from '#client' */
|
|
222
222
|
/**
|
|
223
223
|
* Use this variable to guard everything related to hydration code so it can be treeshaken out
|
|
@@ -296,7 +296,7 @@ function read_hydration_instruction(node) {
|
|
|
296
296
|
return node.data;
|
|
297
297
|
}
|
|
298
298
|
//#endregion
|
|
299
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
299
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
300
300
|
/** @import { Equals } from '#client' */
|
|
301
301
|
/** @type {Equals} */
|
|
302
302
|
function equals(value) {
|
|
@@ -315,13 +315,13 @@ function safe_equals(value) {
|
|
|
315
315
|
return !safe_not_equal(value, this.v);
|
|
316
316
|
}
|
|
317
317
|
//#endregion
|
|
318
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
318
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/flags/index.js
|
|
319
319
|
/** True if experimental.async=true */
|
|
320
320
|
var async_mode_flag = false;
|
|
321
321
|
/** True if we're not certain that we only have Svelte 5 code in the compilation */
|
|
322
322
|
var legacy_mode_flag = false;
|
|
323
323
|
//#endregion
|
|
324
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
324
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/context.js
|
|
325
325
|
/** @import { ComponentContext, DevStackEntry, Effect } from '#client' */
|
|
326
326
|
/** @type {ComponentContext | null} */
|
|
327
327
|
var component_context = null;
|
|
@@ -373,7 +373,7 @@ function is_runes() {
|
|
|
373
373
|
return !legacy_mode_flag || component_context !== null && component_context.l === null;
|
|
374
374
|
}
|
|
375
375
|
//#endregion
|
|
376
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
376
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/task.js
|
|
377
377
|
/** @type {Array<() => void>} */
|
|
378
378
|
var micro_tasks = [];
|
|
379
379
|
function run_micro_tasks() {
|
|
@@ -431,7 +431,7 @@ function invoke_error_boundary(error, effect) {
|
|
|
431
431
|
throw error;
|
|
432
432
|
}
|
|
433
433
|
//#endregion
|
|
434
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
434
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
435
435
|
/** @import { Derived, Signal } from '#client' */
|
|
436
436
|
var STATUS_MASK = ~(DIRTY | MAYBE_DIRTY | CLEAN);
|
|
437
437
|
/**
|
|
@@ -450,7 +450,7 @@ function update_derived_status(derived) {
|
|
|
450
450
|
else set_signal_status(derived, MAYBE_DIRTY);
|
|
451
451
|
}
|
|
452
452
|
//#endregion
|
|
453
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
453
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
454
454
|
/** @import { Derived, Effect, Value } from '#client' */
|
|
455
455
|
/**
|
|
456
456
|
* @param {Value[] | null} deps
|
|
@@ -478,7 +478,7 @@ function defer_effect(effect, dirty_effects, maybe_dirty_effects) {
|
|
|
478
478
|
set_signal_status(effect, CLEAN);
|
|
479
479
|
}
|
|
480
480
|
//#endregion
|
|
481
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
481
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
482
482
|
/**
|
|
483
483
|
* We set this to `true` when updating a store so that we correctly
|
|
484
484
|
* schedule effects if the update takes place inside a `$:` effect
|
|
@@ -516,7 +516,7 @@ function _classPrivateFieldSet2(s, a, r) {
|
|
|
516
516
|
return s.set(_assertClassBrand(s, a), r), r;
|
|
517
517
|
}
|
|
518
518
|
//#endregion
|
|
519
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
519
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
520
520
|
/** @import { Fork } from 'svelte' */
|
|
521
521
|
/** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
|
|
522
522
|
var _Batch;
|
|
@@ -558,10 +558,12 @@ var _pending = /* @__PURE__ */ new WeakMap();
|
|
|
558
558
|
var _blocking_pending = /* @__PURE__ */ new WeakMap();
|
|
559
559
|
var _deferred = /* @__PURE__ */ new WeakMap();
|
|
560
560
|
var _roots = /* @__PURE__ */ new WeakMap();
|
|
561
|
+
var _new_effects = /* @__PURE__ */ new WeakMap();
|
|
561
562
|
var _dirty_effects$1 = /* @__PURE__ */ new WeakMap();
|
|
562
563
|
var _maybe_dirty_effects$1 = /* @__PURE__ */ new WeakMap();
|
|
563
564
|
var _skipped_branches = /* @__PURE__ */ new WeakMap();
|
|
564
565
|
var _decrement_queued = /* @__PURE__ */ new WeakMap();
|
|
566
|
+
var _blockers = /* @__PURE__ */ new WeakMap();
|
|
565
567
|
var _Batch_brand = /* @__PURE__ */ new WeakSet();
|
|
566
568
|
var Batch = class Batch {
|
|
567
569
|
constructor() {
|
|
@@ -570,9 +572,10 @@ var Batch = class Batch {
|
|
|
570
572
|
_defineProperty(
|
|
571
573
|
this,
|
|
572
574
|
/**
|
|
573
|
-
* The current values of any
|
|
575
|
+
* The current values of any signals that are updated in this batch.
|
|
576
|
+
* Tuple format: [value, is_derived] (note: is_derived is false for deriveds, too, if they were overridden via assignment)
|
|
574
577
|
* They keys of this map are identical to `this.#previous`
|
|
575
|
-
* @type {Map<
|
|
578
|
+
* @type {Map<Value, [any, boolean]>}
|
|
576
579
|
*/
|
|
577
580
|
"current",
|
|
578
581
|
/* @__PURE__ */ new Map()
|
|
@@ -580,24 +583,26 @@ var Batch = class Batch {
|
|
|
580
583
|
_defineProperty(
|
|
581
584
|
this,
|
|
582
585
|
/**
|
|
583
|
-
* The values of any sources that are updated in this batch _before_ those updates took place.
|
|
586
|
+
* The values of any signals (sources and deriveds) that are updated in this batch _before_ those updates took place.
|
|
584
587
|
* They keys of this map are identical to `this.#current`
|
|
585
|
-
* @type {Map<
|
|
588
|
+
* @type {Map<Value, any>}
|
|
586
589
|
*/
|
|
587
590
|
"previous",
|
|
588
591
|
/* @__PURE__ */ new Map()
|
|
589
592
|
);
|
|
590
593
|
_classPrivateFieldInitSpec(this, _commit_callbacks, /* @__PURE__ */ new Set());
|
|
591
594
|
_classPrivateFieldInitSpec(this, _discard_callbacks, /* @__PURE__ */ new Set());
|
|
592
|
-
_classPrivateFieldInitSpec(this, _pending,
|
|
593
|
-
_classPrivateFieldInitSpec(this, _blocking_pending,
|
|
595
|
+
_classPrivateFieldInitSpec(this, _pending, /* @__PURE__ */ new Map());
|
|
596
|
+
_classPrivateFieldInitSpec(this, _blocking_pending, /* @__PURE__ */ new Map());
|
|
594
597
|
_classPrivateFieldInitSpec(this, _deferred, null);
|
|
595
598
|
_classPrivateFieldInitSpec(this, _roots, []);
|
|
599
|
+
_classPrivateFieldInitSpec(this, _new_effects, []);
|
|
596
600
|
_classPrivateFieldInitSpec(this, _dirty_effects$1, /* @__PURE__ */ new Set());
|
|
597
601
|
_classPrivateFieldInitSpec(this, _maybe_dirty_effects$1, /* @__PURE__ */ new Set());
|
|
598
602
|
_classPrivateFieldInitSpec(this, _skipped_branches, /* @__PURE__ */ new Map());
|
|
599
603
|
_defineProperty(this, "is_fork", false);
|
|
600
604
|
_classPrivateFieldInitSpec(this, _decrement_queued, false);
|
|
605
|
+
_classPrivateFieldInitSpec(this, _blockers, /* @__PURE__ */ new Set());
|
|
601
606
|
}
|
|
602
607
|
/**
|
|
603
608
|
* Add an effect to the #skipped_branches map and reset its children
|
|
@@ -631,13 +636,14 @@ var Batch = class Batch {
|
|
|
631
636
|
/**
|
|
632
637
|
* Associate a change to a given source with the current
|
|
633
638
|
* batch, noting its previous and current values
|
|
634
|
-
* @param {
|
|
639
|
+
* @param {Value} source
|
|
635
640
|
* @param {any} old_value
|
|
641
|
+
* @param {boolean} [is_derived]
|
|
636
642
|
*/
|
|
637
|
-
capture(source, old_value) {
|
|
643
|
+
capture(source, old_value, is_derived = false) {
|
|
638
644
|
if (old_value !== UNINITIALIZED && !this.previous.has(source)) this.previous.set(source, old_value);
|
|
639
645
|
if ((source.f & 8388608) === 0) {
|
|
640
|
-
this.current.set(source, source.v);
|
|
646
|
+
this.current.set(source, [source.v, is_derived]);
|
|
641
647
|
batch_values?.set(source, source.v);
|
|
642
648
|
}
|
|
643
649
|
}
|
|
@@ -670,20 +676,37 @@ var Batch = class Batch {
|
|
|
670
676
|
batches.delete(this);
|
|
671
677
|
}
|
|
672
678
|
/**
|
|
673
|
-
*
|
|
679
|
+
* @param {Effect} effect
|
|
680
|
+
*/
|
|
681
|
+
register_created_effect(effect) {
|
|
682
|
+
_classPrivateFieldGet2(_new_effects, this).push(effect);
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
674
685
|
* @param {boolean} blocking
|
|
686
|
+
* @param {Effect} effect
|
|
675
687
|
*/
|
|
676
|
-
increment(blocking) {
|
|
677
|
-
|
|
678
|
-
|
|
688
|
+
increment(blocking, effect) {
|
|
689
|
+
let pending_count = _classPrivateFieldGet2(_pending, this).get(effect) ?? 0;
|
|
690
|
+
_classPrivateFieldGet2(_pending, this).set(effect, pending_count + 1);
|
|
691
|
+
if (blocking) {
|
|
692
|
+
let blocking_pending_count = _classPrivateFieldGet2(_blocking_pending, this).get(effect) ?? 0;
|
|
693
|
+
_classPrivateFieldGet2(_blocking_pending, this).set(effect, blocking_pending_count + 1);
|
|
694
|
+
}
|
|
679
695
|
}
|
|
680
696
|
/**
|
|
681
697
|
* @param {boolean} blocking
|
|
698
|
+
* @param {Effect} effect
|
|
682
699
|
* @param {boolean} skip - whether to skip updates (because this is triggered by a stale reaction)
|
|
683
700
|
*/
|
|
684
|
-
decrement(blocking, skip) {
|
|
685
|
-
|
|
686
|
-
if (
|
|
701
|
+
decrement(blocking, effect, skip) {
|
|
702
|
+
let pending_count = _classPrivateFieldGet2(_pending, this).get(effect) ?? 0;
|
|
703
|
+
if (pending_count === 1) _classPrivateFieldGet2(_pending, this).delete(effect);
|
|
704
|
+
else _classPrivateFieldGet2(_pending, this).set(effect, pending_count - 1);
|
|
705
|
+
if (blocking) {
|
|
706
|
+
let blocking_pending_count = _classPrivateFieldGet2(_blocking_pending, this).get(effect) ?? 0;
|
|
707
|
+
if (blocking_pending_count === 1) _classPrivateFieldGet2(_blocking_pending, this).delete(effect);
|
|
708
|
+
else _classPrivateFieldGet2(_blocking_pending, this).set(effect, blocking_pending_count - 1);
|
|
709
|
+
}
|
|
687
710
|
if (_classPrivateFieldGet2(_decrement_queued, this) || skip) return;
|
|
688
711
|
_classPrivateFieldSet2(_decrement_queued, this, true);
|
|
689
712
|
queue_micro_task(() => {
|
|
@@ -730,10 +753,19 @@ var Batch = class Batch {
|
|
|
730
753
|
batch_values = null;
|
|
731
754
|
return;
|
|
732
755
|
}
|
|
733
|
-
batch_values = new Map(
|
|
756
|
+
batch_values = /* @__PURE__ */ new Map();
|
|
757
|
+
for (const [source, [value]] of this.current) batch_values.set(source, value);
|
|
734
758
|
for (const batch of batches) {
|
|
735
759
|
if (batch === this || batch.is_fork) continue;
|
|
736
|
-
|
|
760
|
+
var intersects = false;
|
|
761
|
+
var differs = false;
|
|
762
|
+
if (batch.id < this.id) for (const [source, [, is_derived]] of batch.current) {
|
|
763
|
+
if (is_derived) continue;
|
|
764
|
+
intersects || (intersects = this.current.has(source));
|
|
765
|
+
differs || (differs = !this.current.has(source));
|
|
766
|
+
}
|
|
767
|
+
if (intersects && differs) _classPrivateFieldGet2(_blockers, this).add(batch);
|
|
768
|
+
else for (const [source, previous] of batch.previous) if (!batch_values.has(source)) batch_values.set(source, previous);
|
|
737
769
|
}
|
|
738
770
|
}
|
|
739
771
|
/**
|
|
@@ -764,7 +796,22 @@ var Batch = class Batch {
|
|
|
764
796
|
};
|
|
765
797
|
_Batch = Batch;
|
|
766
798
|
function _is_deferred() {
|
|
767
|
-
return this.is_fork || _classPrivateFieldGet2(_blocking_pending, this) > 0;
|
|
799
|
+
return this.is_fork || _classPrivateFieldGet2(_blocking_pending, this).size > 0;
|
|
800
|
+
}
|
|
801
|
+
function _is_blocked() {
|
|
802
|
+
for (const batch of _classPrivateFieldGet2(_blockers, this)) for (const effect of _classPrivateFieldGet2(_blocking_pending, batch).keys()) {
|
|
803
|
+
var skipped = false;
|
|
804
|
+
var e = effect;
|
|
805
|
+
while (e.parent !== null) {
|
|
806
|
+
if (_classPrivateFieldGet2(_skipped_branches, this).has(e)) {
|
|
807
|
+
skipped = true;
|
|
808
|
+
break;
|
|
809
|
+
}
|
|
810
|
+
e = e.parent;
|
|
811
|
+
}
|
|
812
|
+
if (!skipped) return true;
|
|
813
|
+
}
|
|
814
|
+
return false;
|
|
768
815
|
}
|
|
769
816
|
function _process() {
|
|
770
817
|
if (flush_count++ > 1e3) {
|
|
@@ -807,12 +854,12 @@ function _process() {
|
|
|
807
854
|
}
|
|
808
855
|
collected_effects = null;
|
|
809
856
|
legacy_updates = null;
|
|
810
|
-
if (_assertClassBrand(_Batch_brand, this, _is_deferred).call(this)) {
|
|
857
|
+
if (_assertClassBrand(_Batch_brand, this, _is_deferred).call(this) || _assertClassBrand(_Batch_brand, this, _is_blocked).call(this)) {
|
|
811
858
|
_assertClassBrand(_Batch_brand, this, _defer_effects).call(this, render_effects);
|
|
812
859
|
_assertClassBrand(_Batch_brand, this, _defer_effects).call(this, effects);
|
|
813
860
|
for (const [e, t] of _classPrivateFieldGet2(_skipped_branches, this)) reset_branch(e, t);
|
|
814
861
|
} else {
|
|
815
|
-
if (_classPrivateFieldGet2(_pending, this) === 0) batches.delete(this);
|
|
862
|
+
if (_classPrivateFieldGet2(_pending, this).size === 0) batches.delete(this);
|
|
816
863
|
_classPrivateFieldGet2(_dirty_effects$1, this).clear();
|
|
817
864
|
_classPrivateFieldGet2(_maybe_dirty_effects$1, this).clear();
|
|
818
865
|
for (const fn of _classPrivateFieldGet2(_commit_callbacks, this)) fn(this);
|
|
@@ -880,9 +927,12 @@ function _commit$1() {
|
|
|
880
927
|
var is_earlier = batch.id < this.id;
|
|
881
928
|
/** @type {Source[]} */
|
|
882
929
|
var sources = [];
|
|
883
|
-
for (const [source, value] of this.current) {
|
|
884
|
-
if (batch.current.has(source))
|
|
885
|
-
|
|
930
|
+
for (const [source, [value, is_derived]] of this.current) {
|
|
931
|
+
if (batch.current.has(source)) {
|
|
932
|
+
var batch_value = batch.current.get(source)[0];
|
|
933
|
+
if (is_earlier && value !== batch_value) batch.current.set(source, [value, is_derived]);
|
|
934
|
+
else continue;
|
|
935
|
+
}
|
|
886
936
|
sources.push(source);
|
|
887
937
|
}
|
|
888
938
|
var others = [...batch.current.keys()].filter((s) => !this.current.has(s));
|
|
@@ -895,6 +945,12 @@ function _commit$1() {
|
|
|
895
945
|
/** @type {Map<Reaction, boolean>} */
|
|
896
946
|
var checked = /* @__PURE__ */ new Map();
|
|
897
947
|
for (var source of sources) mark_effects(source, others, marked, checked);
|
|
948
|
+
checked = /* @__PURE__ */ new Map();
|
|
949
|
+
var current_unequal = [...batch.current.keys()].filter((c) => this.current.has(c) ? this.current.get(c)[0] !== c : true);
|
|
950
|
+
for (const effect of _classPrivateFieldGet2(_new_effects, this)) if ((effect.f & 155648) === 0 && depends_on(effect, current_unequal, checked)) if ((effect.f & 4194320) !== 0) {
|
|
951
|
+
set_signal_status(effect, DIRTY);
|
|
952
|
+
batch.schedule(effect);
|
|
953
|
+
} else _classPrivateFieldGet2(_dirty_effects$1, batch).add(effect);
|
|
898
954
|
if (_classPrivateFieldGet2(_roots, batch).length > 0) {
|
|
899
955
|
batch.apply();
|
|
900
956
|
for (var root of _classPrivateFieldGet2(_roots, batch)) _assertClassBrand(_Batch_brand, batch, _traverse).call(batch, root, [], []);
|
|
@@ -903,6 +959,13 @@ function _commit$1() {
|
|
|
903
959
|
batch.deactivate();
|
|
904
960
|
}
|
|
905
961
|
}
|
|
962
|
+
for (const batch of batches) if (_classPrivateFieldGet2(_blockers, batch).has(this)) {
|
|
963
|
+
_classPrivateFieldGet2(_blockers, batch).delete(this);
|
|
964
|
+
if (_classPrivateFieldGet2(_blockers, batch).size === 0 && !_assertClassBrand(_Batch_brand, batch, _is_deferred).call(batch)) {
|
|
965
|
+
batch.activate();
|
|
966
|
+
_assertClassBrand(_Batch_brand, batch, _process).call(batch);
|
|
967
|
+
}
|
|
968
|
+
}
|
|
906
969
|
}
|
|
907
970
|
/**
|
|
908
971
|
* Synchronously flush any pending updates.
|
|
@@ -1055,7 +1118,7 @@ function reset_all(effect) {
|
|
|
1055
1118
|
}
|
|
1056
1119
|
}
|
|
1057
1120
|
//#endregion
|
|
1058
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
1121
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
1059
1122
|
/**
|
|
1060
1123
|
* Returns a `subscribe` function that integrates external event-based systems with Svelte's reactivity.
|
|
1061
1124
|
* It's particularly useful for integrating with web APIs like `MediaQuery`, `IntersectionObserver`, or `WebSocket`.
|
|
@@ -1128,7 +1191,7 @@ function createSubscriber(start) {
|
|
|
1128
1191
|
};
|
|
1129
1192
|
}
|
|
1130
1193
|
//#endregion
|
|
1131
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
1194
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
1132
1195
|
/** @import { Effect, Source, TemplateNode, } from '#client' */
|
|
1133
1196
|
/**
|
|
1134
1197
|
* @typedef {{
|
|
@@ -1468,7 +1531,7 @@ function _update_pending_count(d, batch) {
|
|
|
1468
1531
|
}
|
|
1469
1532
|
}
|
|
1470
1533
|
//#endregion
|
|
1471
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
1534
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
1472
1535
|
/** @import { Blocker, Effect, Value } from '#client' */
|
|
1473
1536
|
/**
|
|
1474
1537
|
* @param {Blocker[]} blockers
|
|
@@ -1541,14 +1604,15 @@ function unset_context(deactivate_batch = true) {
|
|
|
1541
1604
|
* @returns {(skip?: boolean) => void}
|
|
1542
1605
|
*/
|
|
1543
1606
|
function increment_pending() {
|
|
1544
|
-
var
|
|
1607
|
+
var effect = active_effect;
|
|
1608
|
+
var boundary = effect.b;
|
|
1545
1609
|
var batch = current_batch;
|
|
1546
1610
|
var blocking = boundary.is_rendered();
|
|
1547
1611
|
boundary.update_pending_count(1, batch);
|
|
1548
|
-
batch.increment(blocking);
|
|
1612
|
+
batch.increment(blocking, effect);
|
|
1549
1613
|
return (skip = false) => {
|
|
1550
1614
|
boundary.update_pending_count(-1, batch);
|
|
1551
|
-
batch.decrement(blocking, skip);
|
|
1615
|
+
batch.decrement(blocking, effect, skip);
|
|
1552
1616
|
};
|
|
1553
1617
|
}
|
|
1554
1618
|
/**
|
|
@@ -1728,7 +1792,7 @@ function update_derived(derived) {
|
|
|
1728
1792
|
derived.wv = increment_write_version();
|
|
1729
1793
|
if (!current_batch?.is_fork || derived.deps === null) {
|
|
1730
1794
|
derived.v = value;
|
|
1731
|
-
current_batch?.capture(derived, old_value);
|
|
1795
|
+
current_batch?.capture(derived, old_value, true);
|
|
1732
1796
|
if (derived.deps === null) {
|
|
1733
1797
|
set_signal_status(derived, CLEAN);
|
|
1734
1798
|
return;
|
|
@@ -1762,7 +1826,7 @@ function unfreeze_derived_effects(derived) {
|
|
|
1762
1826
|
for (const e of derived.effects) if (e.teardown) update_effect(e);
|
|
1763
1827
|
}
|
|
1764
1828
|
//#endregion
|
|
1765
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
1829
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
1766
1830
|
/** @import { Derived, Effect, Source, Value } from '#client' */
|
|
1767
1831
|
/** @type {Set<any>} */
|
|
1768
1832
|
var eager_effects = /* @__PURE__ */ new Set();
|
|
@@ -2057,7 +2121,7 @@ function proxy(value) {
|
|
|
2057
2121
|
});
|
|
2058
2122
|
}
|
|
2059
2123
|
//#endregion
|
|
2060
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
2124
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/operations.js
|
|
2061
2125
|
/** @import { Effect, TemplateNode } from '#client' */
|
|
2062
2126
|
/** @type {Window} */
|
|
2063
2127
|
var $window;
|
|
@@ -2206,7 +2270,7 @@ function merge_text_nodes(text) {
|
|
|
2206
2270
|
}
|
|
2207
2271
|
}
|
|
2208
2272
|
//#endregion
|
|
2209
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
2273
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
2210
2274
|
/**
|
|
2211
2275
|
* @template T
|
|
2212
2276
|
* @param {() => T} fn
|
|
@@ -2224,7 +2288,7 @@ function without_reactive_context(fn) {
|
|
|
2224
2288
|
}
|
|
2225
2289
|
}
|
|
2226
2290
|
//#endregion
|
|
2227
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
2291
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
2228
2292
|
/** @import { Blocker, ComponentContext, ComponentContextLegacy, Derived, Effect, TemplateNode, TransitionManager } from '#client' */
|
|
2229
2293
|
/**
|
|
2230
2294
|
* @param {'$effect' | '$effect.pre' | '$inspect'} rune
|
|
@@ -2274,6 +2338,7 @@ function create_effect(type, fn) {
|
|
|
2274
2338
|
wv: 0,
|
|
2275
2339
|
ac: null
|
|
2276
2340
|
};
|
|
2341
|
+
current_batch?.register_created_effect(effect);
|
|
2277
2342
|
/** @type {Effect | null} */
|
|
2278
2343
|
var e = effect;
|
|
2279
2344
|
if ((type & 4) !== 0) if (collected_effects !== null) collected_effects.push(effect);
|
|
@@ -2482,7 +2547,7 @@ function destroy_effect(effect, remove_dom = true) {
|
|
|
2482
2547
|
effect.f |= DESTROYED;
|
|
2483
2548
|
var parent = effect.parent;
|
|
2484
2549
|
if (parent !== null && parent.first !== null) unlink_effect(effect);
|
|
2485
|
-
effect.next = effect.prev = effect.teardown = effect.ctx = effect.deps = effect.fn = effect.nodes = effect.ac = null;
|
|
2550
|
+
effect.next = effect.prev = effect.teardown = effect.ctx = effect.deps = effect.fn = effect.nodes = effect.ac = effect.b = null;
|
|
2486
2551
|
}
|
|
2487
2552
|
/**
|
|
2488
2553
|
*
|
|
@@ -2605,14 +2670,14 @@ function move_effect(effect, fragment) {
|
|
|
2605
2670
|
}
|
|
2606
2671
|
}
|
|
2607
2672
|
//#endregion
|
|
2608
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
2673
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/legacy.js
|
|
2609
2674
|
/**
|
|
2610
2675
|
* @type {Set<Value> | null}
|
|
2611
2676
|
* @deprecated
|
|
2612
2677
|
*/
|
|
2613
2678
|
var captured_signals = null;
|
|
2614
2679
|
//#endregion
|
|
2615
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
2680
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/runtime.js
|
|
2616
2681
|
/** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
|
|
2617
2682
|
var is_updating_effect = false;
|
|
2618
2683
|
var is_destroying_effect = false;
|
|
@@ -2956,7 +3021,7 @@ function untrack(fn) {
|
|
|
2956
3021
|
}
|
|
2957
3022
|
}
|
|
2958
3023
|
//#endregion
|
|
2959
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3024
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
2960
3025
|
/**
|
|
2961
3026
|
* Used on elements, as a map of event type -> event handler,
|
|
2962
3027
|
* and on events themselves to track which element handled an event
|
|
@@ -3056,7 +3121,7 @@ function handle_event_propagation(event) {
|
|
|
3056
3121
|
}
|
|
3057
3122
|
}
|
|
3058
3123
|
//#endregion
|
|
3059
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3124
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/reconciler.js
|
|
3060
3125
|
var policy = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (html) => {
|
|
3061
3126
|
return html;
|
|
3062
3127
|
} });
|
|
@@ -3073,7 +3138,7 @@ function create_fragment_from_html(html) {
|
|
|
3073
3138
|
return elem.content;
|
|
3074
3139
|
}
|
|
3075
3140
|
//#endregion
|
|
3076
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3141
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/template.js
|
|
3077
3142
|
/** @import { Effect, EffectNodes, TemplateNode } from '#client' */
|
|
3078
3143
|
/** @import { TemplateStructure } from './types' */
|
|
3079
3144
|
/**
|
|
@@ -3390,7 +3455,7 @@ function unmount(component, options) {
|
|
|
3390
3455
|
return Promise.resolve();
|
|
3391
3456
|
}
|
|
3392
3457
|
//#endregion
|
|
3393
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3458
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/blocks/branches.js
|
|
3394
3459
|
/** @import { Effect, TemplateNode } from '#client' */
|
|
3395
3460
|
var _batches = /* @__PURE__ */ new WeakMap();
|
|
3396
3461
|
var _onscreen = /* @__PURE__ */ new WeakMap();
|
|
@@ -3546,7 +3611,7 @@ function init_update_callbacks(context) {
|
|
|
3546
3611
|
});
|
|
3547
3612
|
}
|
|
3548
3613
|
//#endregion
|
|
3549
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3614
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
3550
3615
|
/** @import { TemplateNode } from '#client' */
|
|
3551
3616
|
/**
|
|
3552
3617
|
* @param {TemplateNode} node
|
|
@@ -3652,7 +3717,7 @@ function html(node, get_value, is_controlled = false, svg = false, mathml = fals
|
|
|
3652
3717
|
});
|
|
3653
3718
|
}
|
|
3654
3719
|
//#endregion
|
|
3655
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3720
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/css.js
|
|
3656
3721
|
/**
|
|
3657
3722
|
* @param {Node} anchor
|
|
3658
3723
|
* @param {{ hash: string, code: string }} css
|
|
@@ -3754,7 +3819,7 @@ function to_style(value, styles) {
|
|
|
3754
3819
|
return value == null ? null : String(value);
|
|
3755
3820
|
}
|
|
3756
3821
|
//#endregion
|
|
3757
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3822
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/style.js
|
|
3758
3823
|
/**
|
|
3759
3824
|
* @param {Element & ElementCSSInlineStyle} dom
|
|
3760
3825
|
* @param {Record<string, any>} prev
|
|
@@ -3788,7 +3853,7 @@ function set_style(dom, value, prev_styles, next_styles) {
|
|
|
3788
3853
|
return next_styles;
|
|
3789
3854
|
}
|
|
3790
3855
|
//#endregion
|
|
3791
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3856
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/attributes.js
|
|
3792
3857
|
/** @import { Blocker, Effect } from '#client' */
|
|
3793
3858
|
var IS_CUSTOM_ELEMENT = Symbol("is custom element");
|
|
3794
3859
|
var IS_HTML = Symbol("is html");
|
|
@@ -3849,7 +3914,7 @@ function get_setters(element) {
|
|
|
3849
3914
|
*/
|
|
3850
3915
|
function check_src_in_dev_hydration(element, attribute, value) {}
|
|
3851
3916
|
//#endregion
|
|
3852
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3917
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
|
|
3853
3918
|
var _ResizeObserverSingleton;
|
|
3854
3919
|
var _listeners = /* @__PURE__ */ new WeakMap();
|
|
3855
3920
|
var _observer = /* @__PURE__ */ new WeakMap();
|
|
@@ -3901,7 +3966,7 @@ function _getObserver() {
|
|
|
3901
3966
|
}
|
|
3902
3967
|
_defineProperty(ResizeObserverSingleton, "entries", /* @__PURE__ */ new WeakMap());
|
|
3903
3968
|
//#endregion
|
|
3904
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
3969
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
|
|
3905
3970
|
/** @import { ComponentContext, Effect } from '#client' */
|
|
3906
3971
|
/**
|
|
3907
3972
|
* @param {any} bound_value
|
|
@@ -3953,7 +4018,7 @@ function bind_this(element_or_component = {}, update, get_value, get_parts) {
|
|
|
3953
4018
|
return element_or_component;
|
|
3954
4019
|
}
|
|
3955
4020
|
//#endregion
|
|
3956
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
4021
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/legacy/legacy-client.js
|
|
3957
4022
|
/** @import { ComponentConstructorOptions, ComponentType, SvelteComponent, Component } from 'svelte' */
|
|
3958
4023
|
/**
|
|
3959
4024
|
* Takes the same options as a Svelte 4 component and the component function and returns a Svelte 4 compatible component.
|
|
@@ -4071,7 +4136,7 @@ var Svelte4Component = class {
|
|
|
4071
4136
|
}
|
|
4072
4137
|
};
|
|
4073
4138
|
//#endregion
|
|
4074
|
-
//#region ../../../node_modules/.bun/svelte@5.
|
|
4139
|
+
//#region ../../../node_modules/.bun/svelte@5.55.1/node_modules/svelte/src/internal/client/dom/elements/custom-element.js
|
|
4075
4140
|
/**
|
|
4076
4141
|
* @typedef {Object} CustomElementPropDefinition
|
|
4077
4142
|
* @property {string} [attribute]
|