sample-cross-fx 1.8.3-beta.7865 → 1.8.3-beta.7883
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/app/{index.736be3.js → index.69f5a4.js} +1250 -524
- package/app/{index.736be3.js.map → index.69f5a4.js.map} +1 -1
- package/app/index.html +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +21 -21
|
@@ -64765,7 +64765,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
64765
64765
|
|
|
64766
64766
|
|
|
64767
64767
|
function fillDependencies(deps) {
|
|
64768
|
-
deps['sample-cross-fx']={};deps["@angular/common"]=_node_modules_angular_common_fesm2022_common_mjs__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/common@16.2.9"]=_node_modules_angular_common_fesm2022_common_mjs__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/compiler"]=_node_modules_angular_compiler_fesm2022_compiler_mjs__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/compiler@16.2.9"]=_node_modules_angular_compiler_fesm2022_compiler_mjs__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/core"]=_node_modules_angular_core_fesm2022_core_mjs__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/core@16.2.9"]=_node_modules_angular_core_fesm2022_core_mjs__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/platform-browser"]=_node_modules_angular_platform_browser_fesm2022_platform_browser_mjs__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser@16.2.9"]=_node_modules_angular_platform_browser_fesm2022_platform_browser_mjs__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser-dynamic"]=_node_modules_angular_platform_browser_dynamic_fesm2022_platform_browser_dynamic_mjs__WEBPACK_IMPORTED_MODULE_22__;deps["@angular/platform-browser-dynamic@16.2.9"]=_node_modules_angular_platform_browser_dynamic_fesm2022_platform_browser_dynamic_mjs__WEBPACK_IMPORTED_MODULE_22__;deps["@webcomponents/webcomponentsjs"]=_node_modules_webcomponents_webcomponentsjs_webcomponents_bundle_js__WEBPACK_IMPORTED_MODULE_1__;deps["@webcomponents/webcomponentsjs@2.6.0"]=_node_modules_webcomponents_webcomponentsjs_webcomponents_bundle_js__WEBPACK_IMPORTED_MODULE_1__;deps["angular"]=_node_modules_angular_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["angular@1.8.3"]=_node_modules_angular_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["aurelia-framework"]=_node_modules_aurelia_framework_dist_native_modules_aurelia_framework_js__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-framework@1.4.1"]=_node_modules_aurelia_framework_dist_native_modules_aurelia_framework_js__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-templating-binding"]=_samples_sample_cross_fx_node_modules_aurelia_templating_binding_dist_native_modules_aurelia_templating_binding_js__WEBPACK_IMPORTED_MODULE_4__;deps["aurelia-templating-binding@1.6.0"]=_samples_sample_cross_fx_node_modules_aurelia_templating_binding_dist_native_modules_aurelia_templating_binding_js__WEBPACK_IMPORTED_MODULE_4__;deps["aurelia-templating-resources"]=_samples_sample_cross_fx_node_modules_aurelia_templating_resources_dist_native_modules_aurelia_templating_resources_js__WEBPACK_IMPORTED_MODULE_5__;deps["aurelia-templating-resources@1.14.3"]=_samples_sample_cross_fx_node_modules_aurelia_templating_resources_dist_native_modules_aurelia_templating_resources_js__WEBPACK_IMPORTED_MODULE_5__;deps["aurelia-pal-browser"]=_node_modules_aurelia_pal_browser_dist_es2015_aurelia_pal_browser_js__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-pal-browser@1.8.1"]=_node_modules_aurelia_pal_browser_dist_es2015_aurelia_pal_browser_js__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-event-aggregator"]=_node_modules_aurelia_event_aggregator_dist_native_modules_aurelia_event_aggregator_js__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-event-aggregator@1.0.3"]=_node_modules_aurelia_event_aggregator_dist_native_modules_aurelia_event_aggregator_js__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-history-browser"]=_node_modules_aurelia_history_browser_dist_native_modules_aurelia_history_browser_js__WEBPACK_IMPORTED_MODULE_8__;deps["aurelia-history-browser@1.4.0"]=_node_modules_aurelia_history_browser_dist_native_modules_aurelia_history_browser_js__WEBPACK_IMPORTED_MODULE_8__;deps["hyperapp"]=_node_modules_hyperapp_src_index_js__WEBPACK_IMPORTED_MODULE_9__;deps["hyperapp@1.2.10"]=_node_modules_hyperapp_src_index_js__WEBPACK_IMPORTED_MODULE_9__;deps["inferno"]=_node_modules_inferno_index_esm_js__WEBPACK_IMPORTED_MODULE_10__;deps["inferno@7.4.11"]=_node_modules_inferno_index_esm_js__WEBPACK_IMPORTED_MODULE_10__;deps["inferno-create-element"]=_node_modules_inferno_create_element_dist_index_esm_js__WEBPACK_IMPORTED_MODULE_11__;deps["inferno-create-element@7.4.11"]=_node_modules_inferno_create_element_dist_index_esm_js__WEBPACK_IMPORTED_MODULE_11__;deps["mithril"]=_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__;deps["mithril@2.2.2"]=_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__;deps["lit-element"]=_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__;deps["lit-element@2.5.1"]=_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__;deps["solid-js"]=_node_modules_solid_js_dist_dev_js__WEBPACK_IMPORTED_MODULE_23__;deps["solid-js@1.
|
|
64768
|
+
deps['sample-cross-fx']={};deps["@angular/common"]=_node_modules_angular_common_fesm2022_common_mjs__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/common@16.2.9"]=_node_modules_angular_common_fesm2022_common_mjs__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/compiler"]=_node_modules_angular_compiler_fesm2022_compiler_mjs__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/compiler@16.2.9"]=_node_modules_angular_compiler_fesm2022_compiler_mjs__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/core"]=_node_modules_angular_core_fesm2022_core_mjs__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/core@16.2.9"]=_node_modules_angular_core_fesm2022_core_mjs__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/platform-browser"]=_node_modules_angular_platform_browser_fesm2022_platform_browser_mjs__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser@16.2.9"]=_node_modules_angular_platform_browser_fesm2022_platform_browser_mjs__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser-dynamic"]=_node_modules_angular_platform_browser_dynamic_fesm2022_platform_browser_dynamic_mjs__WEBPACK_IMPORTED_MODULE_22__;deps["@angular/platform-browser-dynamic@16.2.9"]=_node_modules_angular_platform_browser_dynamic_fesm2022_platform_browser_dynamic_mjs__WEBPACK_IMPORTED_MODULE_22__;deps["@webcomponents/webcomponentsjs"]=_node_modules_webcomponents_webcomponentsjs_webcomponents_bundle_js__WEBPACK_IMPORTED_MODULE_1__;deps["@webcomponents/webcomponentsjs@2.6.0"]=_node_modules_webcomponents_webcomponentsjs_webcomponents_bundle_js__WEBPACK_IMPORTED_MODULE_1__;deps["angular"]=_node_modules_angular_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["angular@1.8.3"]=_node_modules_angular_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["aurelia-framework"]=_node_modules_aurelia_framework_dist_native_modules_aurelia_framework_js__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-framework@1.4.1"]=_node_modules_aurelia_framework_dist_native_modules_aurelia_framework_js__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-templating-binding"]=_samples_sample_cross_fx_node_modules_aurelia_templating_binding_dist_native_modules_aurelia_templating_binding_js__WEBPACK_IMPORTED_MODULE_4__;deps["aurelia-templating-binding@1.6.0"]=_samples_sample_cross_fx_node_modules_aurelia_templating_binding_dist_native_modules_aurelia_templating_binding_js__WEBPACK_IMPORTED_MODULE_4__;deps["aurelia-templating-resources"]=_samples_sample_cross_fx_node_modules_aurelia_templating_resources_dist_native_modules_aurelia_templating_resources_js__WEBPACK_IMPORTED_MODULE_5__;deps["aurelia-templating-resources@1.14.3"]=_samples_sample_cross_fx_node_modules_aurelia_templating_resources_dist_native_modules_aurelia_templating_resources_js__WEBPACK_IMPORTED_MODULE_5__;deps["aurelia-pal-browser"]=_node_modules_aurelia_pal_browser_dist_es2015_aurelia_pal_browser_js__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-pal-browser@1.8.1"]=_node_modules_aurelia_pal_browser_dist_es2015_aurelia_pal_browser_js__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-event-aggregator"]=_node_modules_aurelia_event_aggregator_dist_native_modules_aurelia_event_aggregator_js__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-event-aggregator@1.0.3"]=_node_modules_aurelia_event_aggregator_dist_native_modules_aurelia_event_aggregator_js__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-history-browser"]=_node_modules_aurelia_history_browser_dist_native_modules_aurelia_history_browser_js__WEBPACK_IMPORTED_MODULE_8__;deps["aurelia-history-browser@1.4.0"]=_node_modules_aurelia_history_browser_dist_native_modules_aurelia_history_browser_js__WEBPACK_IMPORTED_MODULE_8__;deps["hyperapp"]=_node_modules_hyperapp_src_index_js__WEBPACK_IMPORTED_MODULE_9__;deps["hyperapp@1.2.10"]=_node_modules_hyperapp_src_index_js__WEBPACK_IMPORTED_MODULE_9__;deps["inferno"]=_node_modules_inferno_index_esm_js__WEBPACK_IMPORTED_MODULE_10__;deps["inferno@7.4.11"]=_node_modules_inferno_index_esm_js__WEBPACK_IMPORTED_MODULE_10__;deps["inferno-create-element"]=_node_modules_inferno_create_element_dist_index_esm_js__WEBPACK_IMPORTED_MODULE_11__;deps["inferno-create-element@7.4.11"]=_node_modules_inferno_create_element_dist_index_esm_js__WEBPACK_IMPORTED_MODULE_11__;deps["mithril"]=_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__;deps["mithril@2.2.2"]=_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__;deps["lit-element"]=_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__;deps["lit-element@2.5.1"]=_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__;deps["solid-js"]=_node_modules_solid_js_dist_dev_js__WEBPACK_IMPORTED_MODULE_23__;deps["solid-js@1.9.4"]=_node_modules_solid_js_dist_dev_js__WEBPACK_IMPORTED_MODULE_23__;deps["solid-js/web"]=_node_modules_solid_js_web_dist_dev_js__WEBPACK_IMPORTED_MODULE_24__;deps["piral-ng/common"]=_converters_piral_ng_common_js__WEBPACK_IMPORTED_MODULE_25__;deps["piral-ng/common@1.8.3-beta.7883"]=_converters_piral_ng_common_js__WEBPACK_IMPORTED_MODULE_25__;deps["piral-ng@1.8.3-beta.7883"]=_converters_piral_ng_common_js__WEBPACK_IMPORTED_MODULE_25__;deps["preact"]=_node_modules_preact_dist_preact_module_js__WEBPACK_IMPORTED_MODULE_14__;deps["preact@10.18.1"]=_node_modules_preact_dist_preact_module_js__WEBPACK_IMPORTED_MODULE_14__;deps["riot"]=_node_modules_riot_riot_esm_js__WEBPACK_IMPORTED_MODULE_15__;deps["riot@4.14.0"]=_node_modules_riot_riot_esm_js__WEBPACK_IMPORTED_MODULE_15__;deps["rxjs"]=_node_modules_rxjs_dist_esm5_index_js__WEBPACK_IMPORTED_MODULE_26__;deps["rxjs@7.5.6"]=_node_modules_rxjs_dist_esm5_index_js__WEBPACK_IMPORTED_MODULE_26__;deps["vue"]=_node_modules_vue_dist_vue_runtime_esm_js__WEBPACK_IMPORTED_MODULE_27__;deps["vue@2.7.14"]=_node_modules_vue_dist_vue_runtime_esm_js__WEBPACK_IMPORTED_MODULE_27__;deps["zone.js"]=_node_modules_zone_js_fesm2015_zone_js__WEBPACK_IMPORTED_MODULE_16__;deps["zone.js@0.13.3"]=_node_modules_zone_js_fesm2015_zone_js__WEBPACK_IMPORTED_MODULE_16__;deps["tslib"]=_node_modules_tslib_tslib_es6_js__WEBPACK_IMPORTED_MODULE_28__;deps["tslib@2.5.2"]=_node_modules_tslib_tslib_es6_js__WEBPACK_IMPORTED_MODULE_28__;deps["react"]=_node_modules_react_index_js__WEBPACK_IMPORTED_MODULE_17__;deps["react@18.2.0"]=_node_modules_react_index_js__WEBPACK_IMPORTED_MODULE_17__;deps["react-dom"]=/*#__PURE__*/ (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache || (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache = __webpack_require__.t(_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18__, 2)));deps["react-dom@18.2.0"]=/*#__PURE__*/ (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache || (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache = __webpack_require__.t(_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18__, 2)));deps["react-router"]=_node_modules_react_router_esm_react_router_js__WEBPACK_IMPORTED_MODULE_29__;deps["react-router@5.3.4"]=_node_modules_react_router_esm_react_router_js__WEBPACK_IMPORTED_MODULE_29__;deps["react-router-dom"]=_node_modules_react_router_dom_esm_react_router_dom_js__WEBPACK_IMPORTED_MODULE_30__;deps["react-router-dom@5.3.4"]=_node_modules_react_router_dom_esm_react_router_dom_js__WEBPACK_IMPORTED_MODULE_30__
|
|
64769
64769
|
}
|
|
64770
64770
|
|
|
64771
64771
|
|
|
@@ -138261,12 +138261,12 @@ function installPiralDebug(options) {
|
|
|
138261
138261
|
debug: debugApiVersion,
|
|
138262
138262
|
instance: {
|
|
138263
138263
|
name: "sample-cross-fx",
|
|
138264
|
-
version: "1.8.3-beta.
|
|
138264
|
+
version: "1.8.3-beta.7883",
|
|
138265
138265
|
dependencies: "@angular/common,@angular/compiler,@angular/core,@angular/platform-browser,@angular/platform-browser-dynamic,@webcomponents/webcomponentsjs,angular,aurelia-framework,aurelia-templating-binding,aurelia-templating-resources,aurelia-pal-browser,aurelia-event-aggregator,aurelia-history-browser,hyperapp,inferno,inferno-create-element,mithril,lit-element,solid-js,solid-js/web,piral-ng/common,preact,riot,rxjs,vue,zone.js,tslib,react,react-dom,react-router,react-router-dom"
|
|
138266
138266
|
},
|
|
138267
138267
|
build: {
|
|
138268
|
-
date: "2025-02-
|
|
138269
|
-
cli: "1.8.3-beta.
|
|
138268
|
+
date: "2025-02-25T19:47:32.452Z",
|
|
138269
|
+
cli: "1.8.3-beta.7883",
|
|
138270
138270
|
compat: "1"
|
|
138271
138271
|
}
|
|
138272
138272
|
};
|
|
@@ -223675,9 +223675,11 @@ function enqueue(taskQueue, task) {
|
|
|
223675
223675
|
let m = 0;
|
|
223676
223676
|
let n = taskQueue.length - 1;
|
|
223677
223677
|
while (m <= n) {
|
|
223678
|
-
const k = n + m >> 1;
|
|
223678
|
+
const k = (n + m) >> 1;
|
|
223679
223679
|
const cmp = task.expirationTime - taskQueue[k].expirationTime;
|
|
223680
|
-
if (cmp > 0) m = k + 1;
|
|
223680
|
+
if (cmp > 0) m = k + 1;
|
|
223681
|
+
else if (cmp < 0) n = k - 1;
|
|
223682
|
+
else return k;
|
|
223681
223683
|
}
|
|
223682
223684
|
return m;
|
|
223683
223685
|
}
|
|
@@ -223739,21 +223741,35 @@ function workLoop(hasTimeRemaining, initialTime) {
|
|
|
223739
223741
|
|
|
223740
223742
|
const sharedConfig = {
|
|
223741
223743
|
context: undefined,
|
|
223742
|
-
registry: undefined
|
|
223744
|
+
registry: undefined,
|
|
223745
|
+
effects: undefined,
|
|
223746
|
+
done: false,
|
|
223747
|
+
getContextId() {
|
|
223748
|
+
return getContextId(this.context.count);
|
|
223749
|
+
},
|
|
223750
|
+
getNextContextId() {
|
|
223751
|
+
return getContextId(this.context.count++);
|
|
223752
|
+
}
|
|
223743
223753
|
};
|
|
223754
|
+
function getContextId(count) {
|
|
223755
|
+
const num = String(count),
|
|
223756
|
+
len = num.length - 1;
|
|
223757
|
+
return sharedConfig.context.id + (len ? String.fromCharCode(96 + len) : "") + num;
|
|
223758
|
+
}
|
|
223744
223759
|
function setHydrateContext(context) {
|
|
223745
223760
|
sharedConfig.context = context;
|
|
223746
223761
|
}
|
|
223747
223762
|
function nextHydrateContext() {
|
|
223748
223763
|
return {
|
|
223749
223764
|
...sharedConfig.context,
|
|
223750
|
-
id:
|
|
223765
|
+
id: sharedConfig.getNextContextId(),
|
|
223751
223766
|
count: 0
|
|
223752
223767
|
};
|
|
223753
223768
|
}
|
|
223754
223769
|
|
|
223755
223770
|
const equalFn = (a, b) => a === b;
|
|
223756
223771
|
const $PROXY = Symbol("solid-proxy");
|
|
223772
|
+
const SUPPORTS_PROXY = typeof Proxy === "function";
|
|
223757
223773
|
const $TRACK = Symbol("solid-track");
|
|
223758
223774
|
const $DEVCOMP = Symbol("solid-dev-component");
|
|
223759
223775
|
const signalOptions = {
|
|
@@ -223773,35 +223789,40 @@ const NO_INIT = {};
|
|
|
223773
223789
|
var Owner = null;
|
|
223774
223790
|
let Transition = null;
|
|
223775
223791
|
let Scheduler = null;
|
|
223776
|
-
let
|
|
223792
|
+
let ExternalSourceConfig = null;
|
|
223777
223793
|
let Listener = null;
|
|
223778
223794
|
let Updates = null;
|
|
223779
223795
|
let Effects = null;
|
|
223780
223796
|
let ExecCount = 0;
|
|
223781
223797
|
const DevHooks = {
|
|
223782
223798
|
afterUpdate: null,
|
|
223783
|
-
afterCreateOwner: null
|
|
223799
|
+
afterCreateOwner: null,
|
|
223800
|
+
afterCreateSignal: null
|
|
223784
223801
|
};
|
|
223785
|
-
const [transPending, setTransPending] = /*@__PURE__*/createSignal(false);
|
|
223786
223802
|
function createRoot(fn, detachedOwner) {
|
|
223787
223803
|
const listener = Listener,
|
|
223788
223804
|
owner = Owner,
|
|
223789
223805
|
unowned = fn.length === 0,
|
|
223790
223806
|
current = detachedOwner === undefined ? owner : detachedOwner,
|
|
223791
|
-
root = unowned
|
|
223792
|
-
|
|
223793
|
-
|
|
223794
|
-
|
|
223795
|
-
|
|
223796
|
-
|
|
223797
|
-
|
|
223798
|
-
|
|
223799
|
-
|
|
223800
|
-
|
|
223801
|
-
|
|
223802
|
-
|
|
223803
|
-
|
|
223804
|
-
|
|
223807
|
+
root = unowned
|
|
223808
|
+
? {
|
|
223809
|
+
owned: null,
|
|
223810
|
+
cleanups: null,
|
|
223811
|
+
context: null,
|
|
223812
|
+
owner: null
|
|
223813
|
+
}
|
|
223814
|
+
: {
|
|
223815
|
+
owned: null,
|
|
223816
|
+
cleanups: null,
|
|
223817
|
+
context: current ? current.context : null,
|
|
223818
|
+
owner: current
|
|
223819
|
+
},
|
|
223820
|
+
updateFn = unowned
|
|
223821
|
+
? () =>
|
|
223822
|
+
fn(() => {
|
|
223823
|
+
throw new Error("Dispose method must be an explicit argument to createRoot function");
|
|
223824
|
+
})
|
|
223825
|
+
: () => fn(() => untrack(() => cleanNode(root)));
|
|
223805
223826
|
DevHooks.afterCreateOwner && DevHooks.afterCreateOwner(root);
|
|
223806
223827
|
Owner = root;
|
|
223807
223828
|
Listener = null;
|
|
@@ -223820,29 +223841,33 @@ function createSignal(value, options) {
|
|
|
223820
223841
|
observerSlots: null,
|
|
223821
223842
|
comparator: options.equals || undefined
|
|
223822
223843
|
};
|
|
223823
|
-
|
|
223844
|
+
{
|
|
223824
223845
|
if (options.name) s.name = options.name;
|
|
223825
|
-
|
|
223846
|
+
if (DevHooks.afterCreateSignal) DevHooks.afterCreateSignal(s);
|
|
223847
|
+
if (!options.internal) registerGraph(s);
|
|
223826
223848
|
}
|
|
223827
223849
|
const setter = value => {
|
|
223828
223850
|
if (typeof value === "function") {
|
|
223829
|
-
if (Transition && Transition.running && Transition.sources.has(s)) value = value(s.tValue);
|
|
223851
|
+
if (Transition && Transition.running && Transition.sources.has(s)) value = value(s.tValue);
|
|
223852
|
+
else value = value(s.value);
|
|
223830
223853
|
}
|
|
223831
223854
|
return writeSignal(s, value);
|
|
223832
223855
|
};
|
|
223833
223856
|
return [readSignal.bind(s), setter];
|
|
223834
223857
|
}
|
|
223835
223858
|
function createComputed(fn, value, options) {
|
|
223836
|
-
const c = createComputation(fn, value, true, STALE, options
|
|
223837
|
-
if (Scheduler && Transition && Transition.running) Updates.push(c);
|
|
223859
|
+
const c = createComputation(fn, value, true, STALE, options);
|
|
223860
|
+
if (Scheduler && Transition && Transition.running) Updates.push(c);
|
|
223861
|
+
else updateComputation(c);
|
|
223838
223862
|
}
|
|
223839
223863
|
function createRenderEffect(fn, value, options) {
|
|
223840
|
-
const c = createComputation(fn, value, false, STALE, options
|
|
223841
|
-
if (Scheduler && Transition && Transition.running) Updates.push(c);
|
|
223864
|
+
const c = createComputation(fn, value, false, STALE, options);
|
|
223865
|
+
if (Scheduler && Transition && Transition.running) Updates.push(c);
|
|
223866
|
+
else updateComputation(c);
|
|
223842
223867
|
}
|
|
223843
223868
|
function createEffect(fn, value, options) {
|
|
223844
223869
|
runEffects = runUserEffects;
|
|
223845
|
-
const c = createComputation(fn, value, false, STALE, options
|
|
223870
|
+
const c = createComputation(fn, value, false, STALE, options),
|
|
223846
223871
|
s = SuspenseContext && useContext(SuspenseContext);
|
|
223847
223872
|
if (s) c.suspense = s;
|
|
223848
223873
|
if (!options || !options.render) c.user = true;
|
|
@@ -223850,10 +223875,16 @@ function createEffect(fn, value, options) {
|
|
|
223850
223875
|
}
|
|
223851
223876
|
function createReaction(onInvalidate, options) {
|
|
223852
223877
|
let fn;
|
|
223853
|
-
const c = createComputation(
|
|
223854
|
-
|
|
223855
|
-
|
|
223856
|
-
|
|
223878
|
+
const c = createComputation(
|
|
223879
|
+
() => {
|
|
223880
|
+
fn ? fn() : untrack(onInvalidate);
|
|
223881
|
+
fn = undefined;
|
|
223882
|
+
},
|
|
223883
|
+
undefined,
|
|
223884
|
+
false,
|
|
223885
|
+
0,
|
|
223886
|
+
options
|
|
223887
|
+
),
|
|
223857
223888
|
s = SuspenseContext && useContext(SuspenseContext);
|
|
223858
223889
|
if (s) c.suspense = s;
|
|
223859
223890
|
c.user = true;
|
|
@@ -223864,7 +223895,7 @@ function createReaction(onInvalidate, options) {
|
|
|
223864
223895
|
}
|
|
223865
223896
|
function createMemo(fn, value, options) {
|
|
223866
223897
|
options = options ? Object.assign({}, signalOptions, options) : signalOptions;
|
|
223867
|
-
const c = createComputation(fn, value, true, 0, options
|
|
223898
|
+
const c = createComputation(fn, value, true, 0, options);
|
|
223868
223899
|
c.observers = null;
|
|
223869
223900
|
c.observerSlots = null;
|
|
223870
223901
|
c.comparator = options.equals || undefined;
|
|
@@ -223881,21 +223912,21 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
223881
223912
|
let source;
|
|
223882
223913
|
let fetcher;
|
|
223883
223914
|
let options;
|
|
223884
|
-
if (
|
|
223885
|
-
source = true;
|
|
223886
|
-
fetcher = pSource;
|
|
223887
|
-
options = pFetcher || {};
|
|
223888
|
-
} else {
|
|
223915
|
+
if (typeof pFetcher === "function") {
|
|
223889
223916
|
source = pSource;
|
|
223890
223917
|
fetcher = pFetcher;
|
|
223891
223918
|
options = pOptions || {};
|
|
223919
|
+
} else {
|
|
223920
|
+
source = true;
|
|
223921
|
+
fetcher = pSource;
|
|
223922
|
+
options = pFetcher || {};
|
|
223892
223923
|
}
|
|
223893
223924
|
let pr = null,
|
|
223894
223925
|
initP = NO_INIT,
|
|
223895
223926
|
id = null,
|
|
223896
223927
|
loadedUnderTransition = false,
|
|
223897
223928
|
scheduled = false,
|
|
223898
|
-
resolved =
|
|
223929
|
+
resolved = "initialValue" in options,
|
|
223899
223930
|
dynamic = typeof source === "function" && createMemo(source);
|
|
223900
223931
|
const contexts = new Set(),
|
|
223901
223932
|
[value, setValue] = (options.storage || createSignal)(options.initialValue),
|
|
@@ -223905,17 +223936,20 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
223905
223936
|
}),
|
|
223906
223937
|
[state, setState] = createSignal(resolved ? "ready" : "unresolved");
|
|
223907
223938
|
if (sharedConfig.context) {
|
|
223908
|
-
id =
|
|
223909
|
-
|
|
223910
|
-
|
|
223939
|
+
id = sharedConfig.getNextContextId();
|
|
223940
|
+
if (options.ssrLoadFrom === "initial") initP = options.initialValue;
|
|
223941
|
+
else if (sharedConfig.load && sharedConfig.has(id)) initP = sharedConfig.load(id);
|
|
223911
223942
|
}
|
|
223912
223943
|
function loadEnd(p, v, error, key) {
|
|
223913
223944
|
if (pr === p) {
|
|
223914
223945
|
pr = null;
|
|
223915
223946
|
key !== undefined && (resolved = true);
|
|
223916
|
-
if ((p === initP || v === initP) && options.onHydrated)
|
|
223917
|
-
|
|
223918
|
-
|
|
223947
|
+
if ((p === initP || v === initP) && options.onHydrated)
|
|
223948
|
+
queueMicrotask(() =>
|
|
223949
|
+
options.onHydrated(key, {
|
|
223950
|
+
value: v
|
|
223951
|
+
})
|
|
223952
|
+
);
|
|
223919
223953
|
initP = NO_INIT;
|
|
223920
223954
|
if (Transition && p && loadedUnderTransition) {
|
|
223921
223955
|
Transition.promises.delete(p);
|
|
@@ -223946,7 +223980,8 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
223946
223980
|
createComputed(() => {
|
|
223947
223981
|
track();
|
|
223948
223982
|
if (pr) {
|
|
223949
|
-
if (c.resolved && Transition && loadedUnderTransition) Transition.promises.add(pr);
|
|
223983
|
+
if (c.resolved && Transition && loadedUnderTransition) Transition.promises.add(pr);
|
|
223984
|
+
else if (!contexts.has(c)) {
|
|
223950
223985
|
c.increment();
|
|
223951
223986
|
contexts.add(c);
|
|
223952
223987
|
}
|
|
@@ -223965,26 +224000,35 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
223965
224000
|
return;
|
|
223966
224001
|
}
|
|
223967
224002
|
if (Transition && pr) Transition.promises.delete(pr);
|
|
223968
|
-
const p =
|
|
223969
|
-
|
|
223970
|
-
|
|
223971
|
-
|
|
224003
|
+
const p =
|
|
224004
|
+
initP !== NO_INIT
|
|
224005
|
+
? initP
|
|
224006
|
+
: untrack(() =>
|
|
224007
|
+
fetcher(lookup, {
|
|
224008
|
+
value: value(),
|
|
224009
|
+
refetching
|
|
224010
|
+
})
|
|
224011
|
+
);
|
|
223972
224012
|
if (!isPromise(p)) {
|
|
223973
224013
|
loadEnd(pr, p, undefined, lookup);
|
|
223974
224014
|
return p;
|
|
223975
224015
|
}
|
|
224016
|
+
pr = p;
|
|
223976
224017
|
if ("value" in p) {
|
|
223977
|
-
if (p.status === "success") loadEnd(pr, p.value, undefined, lookup);
|
|
224018
|
+
if (p.status === "success") loadEnd(pr, p.value, undefined, lookup);
|
|
224019
|
+
else loadEnd(pr, undefined, castError(p.value), lookup);
|
|
223978
224020
|
return p;
|
|
223979
224021
|
}
|
|
223980
|
-
pr = p;
|
|
223981
224022
|
scheduled = true;
|
|
223982
|
-
queueMicrotask(() => scheduled = false);
|
|
224023
|
+
queueMicrotask(() => (scheduled = false));
|
|
223983
224024
|
runUpdates(() => {
|
|
223984
224025
|
setState(resolved ? "refreshing" : "pending");
|
|
223985
224026
|
trigger();
|
|
223986
224027
|
}, false);
|
|
223987
|
-
return p.then(
|
|
224028
|
+
return p.then(
|
|
224029
|
+
v => loadEnd(p, v, undefined, lookup),
|
|
224030
|
+
e => loadEnd(p, undefined, castError(e), lookup)
|
|
224031
|
+
);
|
|
223988
224032
|
}
|
|
223989
224033
|
Object.defineProperties(read, {
|
|
223990
224034
|
state: {
|
|
@@ -224008,60 +224052,92 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
224008
224052
|
}
|
|
224009
224053
|
}
|
|
224010
224054
|
});
|
|
224011
|
-
if (dynamic) createComputed(() => load(false));
|
|
224012
|
-
|
|
224013
|
-
|
|
224014
|
-
|
|
224015
|
-
|
|
224055
|
+
if (dynamic) createComputed(() => load(false));
|
|
224056
|
+
else load(false);
|
|
224057
|
+
return [
|
|
224058
|
+
read,
|
|
224059
|
+
{
|
|
224060
|
+
refetch: load,
|
|
224061
|
+
mutate: setValue
|
|
224062
|
+
}
|
|
224063
|
+
];
|
|
224016
224064
|
}
|
|
224017
224065
|
function createDeferred(source, options) {
|
|
224018
224066
|
let t,
|
|
224019
224067
|
timeout = options ? options.timeoutMs : undefined;
|
|
224020
|
-
const node = createComputation(
|
|
224021
|
-
|
|
224022
|
-
|
|
224023
|
-
|
|
224024
|
-
|
|
224025
|
-
|
|
224026
|
-
|
|
224068
|
+
const node = createComputation(
|
|
224069
|
+
() => {
|
|
224070
|
+
if (!t || !t.fn)
|
|
224071
|
+
t = requestCallback(
|
|
224072
|
+
() => setDeferred(() => node.value),
|
|
224073
|
+
timeout !== undefined
|
|
224074
|
+
? {
|
|
224075
|
+
timeout
|
|
224076
|
+
}
|
|
224077
|
+
: undefined
|
|
224078
|
+
);
|
|
224079
|
+
return source();
|
|
224080
|
+
},
|
|
224081
|
+
undefined,
|
|
224082
|
+
true
|
|
224083
|
+
);
|
|
224084
|
+
const [deferred, setDeferred] = createSignal(
|
|
224085
|
+
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
224086
|
+
options
|
|
224087
|
+
);
|
|
224027
224088
|
updateComputation(node);
|
|
224028
|
-
setDeferred(() =>
|
|
224089
|
+
setDeferred(() =>
|
|
224090
|
+
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value
|
|
224091
|
+
);
|
|
224029
224092
|
return deferred;
|
|
224030
224093
|
}
|
|
224031
224094
|
function createSelector(source, fn = equalFn, options) {
|
|
224032
224095
|
const subs = new Map();
|
|
224033
|
-
const node = createComputation(
|
|
224034
|
-
|
|
224035
|
-
|
|
224036
|
-
for (const
|
|
224037
|
-
|
|
224038
|
-
|
|
224039
|
-
|
|
224040
|
-
|
|
224041
|
-
|
|
224042
|
-
|
|
224096
|
+
const node = createComputation(
|
|
224097
|
+
p => {
|
|
224098
|
+
const v = source();
|
|
224099
|
+
for (const [key, val] of subs.entries())
|
|
224100
|
+
if (fn(key, v) !== fn(key, p)) {
|
|
224101
|
+
for (const c of val.values()) {
|
|
224102
|
+
c.state = STALE;
|
|
224103
|
+
if (c.pure) Updates.push(c);
|
|
224104
|
+
else Effects.push(c);
|
|
224105
|
+
}
|
|
224106
|
+
}
|
|
224107
|
+
return v;
|
|
224108
|
+
},
|
|
224109
|
+
undefined,
|
|
224110
|
+
true,
|
|
224111
|
+
STALE,
|
|
224112
|
+
options
|
|
224113
|
+
);
|
|
224043
224114
|
updateComputation(node);
|
|
224044
224115
|
return key => {
|
|
224045
224116
|
const listener = Listener;
|
|
224046
224117
|
if (listener) {
|
|
224047
224118
|
let l;
|
|
224048
|
-
if (l = subs.get(key)) l.add(listener);
|
|
224119
|
+
if ((l = subs.get(key))) l.add(listener);
|
|
224120
|
+
else subs.set(key, (l = new Set([listener])));
|
|
224049
224121
|
onCleanup(() => {
|
|
224050
224122
|
l.delete(listener);
|
|
224051
224123
|
!l.size && subs.delete(key);
|
|
224052
224124
|
});
|
|
224053
224125
|
}
|
|
224054
|
-
return fn(
|
|
224126
|
+
return fn(
|
|
224127
|
+
key,
|
|
224128
|
+
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value
|
|
224129
|
+
);
|
|
224055
224130
|
};
|
|
224056
224131
|
}
|
|
224057
224132
|
function batch(fn) {
|
|
224058
224133
|
return runUpdates(fn, false);
|
|
224059
224134
|
}
|
|
224060
224135
|
function untrack(fn) {
|
|
224061
|
-
if (Listener === null) return fn();
|
|
224136
|
+
if (!ExternalSourceConfig && Listener === null) return fn();
|
|
224062
224137
|
const listener = Listener;
|
|
224063
224138
|
Listener = null;
|
|
224064
224139
|
try {
|
|
224140
|
+
if (ExternalSourceConfig) return ExternalSourceConfig.untrack(fn);
|
|
224065
224141
|
return fn();
|
|
224066
224142
|
} finally {
|
|
224067
224143
|
Listener = listener;
|
|
@@ -224079,7 +224155,7 @@ function on(deps, fn, options) {
|
|
|
224079
224155
|
} else input = deps();
|
|
224080
224156
|
if (defer) {
|
|
224081
224157
|
defer = false;
|
|
224082
|
-
return
|
|
224158
|
+
return prevValue;
|
|
224083
224159
|
}
|
|
224084
224160
|
const result = untrack(() => fn(input, prevInput, prevValue));
|
|
224085
224161
|
prevInput = input;
|
|
@@ -224090,7 +224166,10 @@ function onMount(fn) {
|
|
|
224090
224166
|
createEffect(() => untrack(fn));
|
|
224091
224167
|
}
|
|
224092
224168
|
function onCleanup(fn) {
|
|
224093
|
-
if (Owner === null)
|
|
224169
|
+
if (Owner === null)
|
|
224170
|
+
console.warn("cleanups created outside a `createRoot` or `render` will never be run");
|
|
224171
|
+
else if (Owner.cleanups === null) Owner.cleanups = [fn];
|
|
224172
|
+
else Owner.cleanups.push(fn);
|
|
224094
224173
|
return fn;
|
|
224095
224174
|
}
|
|
224096
224175
|
function catchError(fn, handler) {
|
|
@@ -224144,15 +224223,17 @@ function startTransition(fn) {
|
|
|
224144
224223
|
Owner = o;
|
|
224145
224224
|
let t;
|
|
224146
224225
|
if (Scheduler || SuspenseContext) {
|
|
224147
|
-
t =
|
|
224148
|
-
|
|
224149
|
-
|
|
224150
|
-
|
|
224151
|
-
|
|
224152
|
-
|
|
224153
|
-
|
|
224154
|
-
|
|
224155
|
-
|
|
224226
|
+
t =
|
|
224227
|
+
Transition ||
|
|
224228
|
+
(Transition = {
|
|
224229
|
+
sources: new Set(),
|
|
224230
|
+
effects: [],
|
|
224231
|
+
promises: new Set(),
|
|
224232
|
+
disposed: new Set(),
|
|
224233
|
+
queue: new Set(),
|
|
224234
|
+
running: true
|
|
224235
|
+
});
|
|
224236
|
+
t.done || (t.done = new Promise(res => (t.resolve = res)));
|
|
224156
224237
|
t.running = true;
|
|
224157
224238
|
}
|
|
224158
224239
|
runUpdates(fn, false);
|
|
@@ -224160,6 +224241,7 @@ function startTransition(fn) {
|
|
|
224160
224241
|
return t ? t.done : undefined;
|
|
224161
224242
|
});
|
|
224162
224243
|
}
|
|
224244
|
+
const [transPending, setTransPending] = /*@__PURE__*/ createSignal(false);
|
|
224163
224245
|
function useTransition() {
|
|
224164
224246
|
return [transPending, startTransition];
|
|
224165
224247
|
}
|
|
@@ -224168,12 +224250,18 @@ function resumeEffects(e) {
|
|
|
224168
224250
|
e.length = 0;
|
|
224169
224251
|
}
|
|
224170
224252
|
function devComponent(Comp, props) {
|
|
224171
|
-
const c = createComputation(
|
|
224172
|
-
|
|
224173
|
-
|
|
224174
|
-
|
|
224175
|
-
|
|
224176
|
-
|
|
224253
|
+
const c = createComputation(
|
|
224254
|
+
() =>
|
|
224255
|
+
untrack(() => {
|
|
224256
|
+
Object.assign(Comp, {
|
|
224257
|
+
[$DEVCOMP]: true
|
|
224258
|
+
});
|
|
224259
|
+
return Comp(props);
|
|
224260
|
+
}),
|
|
224261
|
+
undefined,
|
|
224262
|
+
true,
|
|
224263
|
+
0
|
|
224264
|
+
);
|
|
224177
224265
|
c.props = props;
|
|
224178
224266
|
c.observers = null;
|
|
224179
224267
|
c.observerSlots = null;
|
|
@@ -224184,7 +224272,8 @@ function devComponent(Comp, props) {
|
|
|
224184
224272
|
}
|
|
224185
224273
|
function registerGraph(value) {
|
|
224186
224274
|
if (!Owner) return;
|
|
224187
|
-
if (Owner.sourceMap) Owner.sourceMap.push(value);
|
|
224275
|
+
if (Owner.sourceMap) Owner.sourceMap.push(value);
|
|
224276
|
+
else Owner.sourceMap = [value];
|
|
224188
224277
|
value.graph = Owner;
|
|
224189
224278
|
}
|
|
224190
224279
|
function createContext(defaultValue, options) {
|
|
@@ -224196,13 +224285,16 @@ function createContext(defaultValue, options) {
|
|
|
224196
224285
|
};
|
|
224197
224286
|
}
|
|
224198
224287
|
function useContext(context) {
|
|
224199
|
-
|
|
224288
|
+
let value;
|
|
224289
|
+
return Owner && Owner.context && (value = Owner.context[context.id]) !== undefined
|
|
224290
|
+
? value
|
|
224291
|
+
: context.defaultValue;
|
|
224200
224292
|
}
|
|
224201
224293
|
function children(fn) {
|
|
224202
224294
|
const children = createMemo(fn);
|
|
224203
224295
|
const memo = createMemo(() => resolveChildren(children()), undefined, {
|
|
224204
224296
|
name: "children"
|
|
224205
|
-
})
|
|
224297
|
+
});
|
|
224206
224298
|
memo.toArray = () => {
|
|
224207
224299
|
const c = memo();
|
|
224208
224300
|
return Array.isArray(c) ? c : c != null ? [c] : [];
|
|
@@ -224213,28 +224305,35 @@ let SuspenseContext;
|
|
|
224213
224305
|
function getSuspenseContext() {
|
|
224214
224306
|
return SuspenseContext || (SuspenseContext = createContext());
|
|
224215
224307
|
}
|
|
224216
|
-
function enableExternalSource(factory) {
|
|
224217
|
-
if (
|
|
224218
|
-
const oldFactory =
|
|
224219
|
-
|
|
224220
|
-
|
|
224221
|
-
|
|
224222
|
-
|
|
224223
|
-
|
|
224224
|
-
|
|
224225
|
-
|
|
224226
|
-
|
|
224227
|
-
|
|
224228
|
-
|
|
224308
|
+
function enableExternalSource(factory, untrack = fn => fn()) {
|
|
224309
|
+
if (ExternalSourceConfig) {
|
|
224310
|
+
const { factory: oldFactory, untrack: oldUntrack } = ExternalSourceConfig;
|
|
224311
|
+
ExternalSourceConfig = {
|
|
224312
|
+
factory: (fn, trigger) => {
|
|
224313
|
+
const oldSource = oldFactory(fn, trigger);
|
|
224314
|
+
const source = factory(x => oldSource.track(x), trigger);
|
|
224315
|
+
return {
|
|
224316
|
+
track: x => source.track(x),
|
|
224317
|
+
dispose() {
|
|
224318
|
+
source.dispose();
|
|
224319
|
+
oldSource.dispose();
|
|
224320
|
+
}
|
|
224321
|
+
};
|
|
224322
|
+
},
|
|
224323
|
+
untrack: fn => oldUntrack(() => untrack(fn))
|
|
224229
224324
|
};
|
|
224230
224325
|
} else {
|
|
224231
|
-
|
|
224326
|
+
ExternalSourceConfig = {
|
|
224327
|
+
factory,
|
|
224328
|
+
untrack
|
|
224329
|
+
};
|
|
224232
224330
|
}
|
|
224233
224331
|
}
|
|
224234
224332
|
function readSignal() {
|
|
224235
224333
|
const runningTransition = Transition && Transition.running;
|
|
224236
224334
|
if (this.sources && (runningTransition ? this.tState : this.state)) {
|
|
224237
|
-
if ((runningTransition ? this.tState : this.state) === STALE) updateComputation(this);
|
|
224335
|
+
if ((runningTransition ? this.tState : this.state) === STALE) updateComputation(this);
|
|
224336
|
+
else {
|
|
224238
224337
|
const updates = Updates;
|
|
224239
224338
|
Updates = null;
|
|
224240
224339
|
runUpdates(() => lookUpstream(this), false);
|
|
@@ -224262,11 +224361,12 @@ function readSignal() {
|
|
|
224262
224361
|
return this.value;
|
|
224263
224362
|
}
|
|
224264
224363
|
function writeSignal(node, value, isComp) {
|
|
224265
|
-
let current =
|
|
224364
|
+
let current =
|
|
224365
|
+
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value;
|
|
224266
224366
|
if (!node.comparator || !node.comparator(current, value)) {
|
|
224267
224367
|
if (Transition) {
|
|
224268
224368
|
const TransitionRunning = Transition.running;
|
|
224269
|
-
if (TransitionRunning || !isComp && Transition.sources.has(node)) {
|
|
224369
|
+
if (TransitionRunning || (!isComp && Transition.sources.has(node))) {
|
|
224270
224370
|
Transition.sources.add(node);
|
|
224271
224371
|
node.tValue = value;
|
|
224272
224372
|
}
|
|
@@ -224279,10 +224379,12 @@ function writeSignal(node, value, isComp) {
|
|
|
224279
224379
|
const TransitionRunning = Transition && Transition.running;
|
|
224280
224380
|
if (TransitionRunning && Transition.disposed.has(o)) continue;
|
|
224281
224381
|
if (TransitionRunning ? !o.tState : !o.state) {
|
|
224282
|
-
if (o.pure) Updates.push(o);
|
|
224382
|
+
if (o.pure) Updates.push(o);
|
|
224383
|
+
else Effects.push(o);
|
|
224283
224384
|
if (o.observers) markDownstream(o);
|
|
224284
224385
|
}
|
|
224285
|
-
if (!TransitionRunning) o.state = STALE;
|
|
224386
|
+
if (!TransitionRunning) o.state = STALE;
|
|
224387
|
+
else o.tState = STALE;
|
|
224286
224388
|
}
|
|
224287
224389
|
if (Updates.length > 10e5) {
|
|
224288
224390
|
Updates = [];
|
|
@@ -224297,11 +224399,12 @@ function writeSignal(node, value, isComp) {
|
|
|
224297
224399
|
function updateComputation(node) {
|
|
224298
224400
|
if (!node.fn) return;
|
|
224299
224401
|
cleanNode(node);
|
|
224300
|
-
const
|
|
224301
|
-
|
|
224302
|
-
|
|
224303
|
-
|
|
224304
|
-
|
|
224402
|
+
const time = ExecCount;
|
|
224403
|
+
runComputation(
|
|
224404
|
+
node,
|
|
224405
|
+
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
224406
|
+
time
|
|
224407
|
+
);
|
|
224305
224408
|
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
224306
224409
|
queueMicrotask(() => {
|
|
224307
224410
|
runUpdates(() => {
|
|
@@ -224312,11 +224415,12 @@ function updateComputation(node) {
|
|
|
224312
224415
|
}, false);
|
|
224313
224416
|
});
|
|
224314
224417
|
}
|
|
224315
|
-
Listener = listener;
|
|
224316
|
-
Owner = owner;
|
|
224317
224418
|
}
|
|
224318
224419
|
function runComputation(node, value, time) {
|
|
224319
224420
|
let nextValue;
|
|
224421
|
+
const owner = Owner,
|
|
224422
|
+
listener = Listener;
|
|
224423
|
+
Listener = Owner = node;
|
|
224320
224424
|
try {
|
|
224321
224425
|
nextValue = node.fn(value);
|
|
224322
224426
|
} catch (err) {
|
|
@@ -224333,6 +224437,9 @@ function runComputation(node, value, time) {
|
|
|
224333
224437
|
}
|
|
224334
224438
|
node.updatedAt = time + 1;
|
|
224335
224439
|
return handleError(err);
|
|
224440
|
+
} finally {
|
|
224441
|
+
Listener = listener;
|
|
224442
|
+
Owner = owner;
|
|
224336
224443
|
}
|
|
224337
224444
|
if (!node.updatedAt || node.updatedAt <= time) {
|
|
224338
224445
|
if (node.updatedAt != null && "observers" in node) {
|
|
@@ -224362,22 +224469,26 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
224362
224469
|
c.state = 0;
|
|
224363
224470
|
c.tState = state;
|
|
224364
224471
|
}
|
|
224365
|
-
if (Owner === null)
|
|
224472
|
+
if (Owner === null)
|
|
224473
|
+
console.warn("computations created outside a `createRoot` or `render` will never be disposed");
|
|
224474
|
+
else if (Owner !== UNOWNED) {
|
|
224366
224475
|
if (Transition && Transition.running && Owner.pure) {
|
|
224367
|
-
if (!Owner.tOwned) Owner.tOwned = [c];
|
|
224476
|
+
if (!Owner.tOwned) Owner.tOwned = [c];
|
|
224477
|
+
else Owner.tOwned.push(c);
|
|
224368
224478
|
} else {
|
|
224369
|
-
if (!Owner.owned) Owner.owned = [c];
|
|
224479
|
+
if (!Owner.owned) Owner.owned = [c];
|
|
224480
|
+
else Owner.owned.push(c);
|
|
224370
224481
|
}
|
|
224371
224482
|
}
|
|
224372
224483
|
if (options && options.name) c.name = options.name;
|
|
224373
|
-
if (
|
|
224484
|
+
if (ExternalSourceConfig && c.fn) {
|
|
224374
224485
|
const [track, trigger] = createSignal(undefined, {
|
|
224375
224486
|
equals: false
|
|
224376
224487
|
});
|
|
224377
|
-
const ordinary =
|
|
224488
|
+
const ordinary = ExternalSourceConfig.factory(c.fn, trigger);
|
|
224378
224489
|
onCleanup(() => ordinary.dispose());
|
|
224379
224490
|
const triggerInTransition = () => startTransition(trigger).then(() => inTransition.dispose());
|
|
224380
|
-
const inTransition =
|
|
224491
|
+
const inTransition = ExternalSourceConfig.factory(c.fn, triggerInTransition);
|
|
224381
224492
|
c.fn = x => {
|
|
224382
224493
|
track();
|
|
224383
224494
|
return Transition && Transition.running ? inTransition.track(x) : ordinary.track(x);
|
|
@@ -224419,7 +224530,8 @@ function runUpdates(fn, init) {
|
|
|
224419
224530
|
if (Updates) return fn();
|
|
224420
224531
|
let wait = false;
|
|
224421
224532
|
if (!init) Updates = [];
|
|
224422
|
-
if (Effects) wait = true;
|
|
224533
|
+
if (Effects) wait = true;
|
|
224534
|
+
else Effects = [];
|
|
224423
224535
|
ExecCount++;
|
|
224424
224536
|
try {
|
|
224425
224537
|
const res = fn();
|
|
@@ -224433,7 +224545,8 @@ function runUpdates(fn, init) {
|
|
|
224433
224545
|
}
|
|
224434
224546
|
function completeUpdates(wait) {
|
|
224435
224547
|
if (Updates) {
|
|
224436
|
-
if (Scheduler && Transition && Transition.running) scheduleQueue(Updates);
|
|
224548
|
+
if (Scheduler && Transition && Transition.running) scheduleQueue(Updates);
|
|
224549
|
+
else runQueue(Updates);
|
|
224437
224550
|
Updates = null;
|
|
224438
224551
|
}
|
|
224439
224552
|
if (wait) return;
|
|
@@ -224473,7 +224586,8 @@ function completeUpdates(wait) {
|
|
|
224473
224586
|
}
|
|
224474
224587
|
const e = Effects;
|
|
224475
224588
|
Effects = null;
|
|
224476
|
-
if (e.length) runUpdates(() => runEffects(e), false);
|
|
224589
|
+
if (e.length) runUpdates(() => runEffects(e), false);
|
|
224590
|
+
else DevHooks.afterUpdate && DevHooks.afterUpdate();
|
|
224477
224591
|
if (res) res();
|
|
224478
224592
|
}
|
|
224479
224593
|
function runQueue(queue) {
|
|
@@ -224501,31 +224615,35 @@ function runUserEffects(queue) {
|
|
|
224501
224615
|
userLength = 0;
|
|
224502
224616
|
for (i = 0; i < queue.length; i++) {
|
|
224503
224617
|
const e = queue[i];
|
|
224504
|
-
if (!e.user) runTop(e);
|
|
224618
|
+
if (!e.user) runTop(e);
|
|
224619
|
+
else queue[userLength++] = e;
|
|
224505
224620
|
}
|
|
224506
224621
|
if (sharedConfig.context) {
|
|
224507
224622
|
if (sharedConfig.count) {
|
|
224508
224623
|
sharedConfig.effects || (sharedConfig.effects = []);
|
|
224509
224624
|
sharedConfig.effects.push(...queue.slice(0, userLength));
|
|
224510
224625
|
return;
|
|
224511
|
-
} else if (sharedConfig.effects) {
|
|
224512
|
-
queue = [...sharedConfig.effects, ...queue];
|
|
224513
|
-
userLength += sharedConfig.effects.length;
|
|
224514
|
-
delete sharedConfig.effects;
|
|
224515
224626
|
}
|
|
224516
224627
|
setHydrateContext();
|
|
224517
224628
|
}
|
|
224629
|
+
if (sharedConfig.effects && (sharedConfig.done || !sharedConfig.count)) {
|
|
224630
|
+
queue = [...sharedConfig.effects, ...queue];
|
|
224631
|
+
userLength += sharedConfig.effects.length;
|
|
224632
|
+
delete sharedConfig.effects;
|
|
224633
|
+
}
|
|
224518
224634
|
for (i = 0; i < userLength; i++) runTop(queue[i]);
|
|
224519
224635
|
}
|
|
224520
224636
|
function lookUpstream(node, ignore) {
|
|
224521
224637
|
const runningTransition = Transition && Transition.running;
|
|
224522
|
-
if (runningTransition) node.tState = 0;
|
|
224638
|
+
if (runningTransition) node.tState = 0;
|
|
224639
|
+
else node.state = 0;
|
|
224523
224640
|
for (let i = 0; i < node.sources.length; i += 1) {
|
|
224524
224641
|
const source = node.sources[i];
|
|
224525
224642
|
if (source.sources) {
|
|
224526
224643
|
const state = runningTransition ? source.tState : source.state;
|
|
224527
224644
|
if (state === STALE) {
|
|
224528
|
-
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
224645
|
+
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
224646
|
+
runTop(source);
|
|
224529
224647
|
} else if (state === PENDING) lookUpstream(source, ignore);
|
|
224530
224648
|
}
|
|
224531
224649
|
}
|
|
@@ -224535,8 +224653,10 @@ function markDownstream(node) {
|
|
|
224535
224653
|
for (let i = 0; i < node.observers.length; i += 1) {
|
|
224536
224654
|
const o = node.observers[i];
|
|
224537
224655
|
if (runningTransition ? !o.tState : !o.state) {
|
|
224538
|
-
if (runningTransition) o.tState = PENDING;
|
|
224539
|
-
|
|
224656
|
+
if (runningTransition) o.tState = PENDING;
|
|
224657
|
+
else o.state = PENDING;
|
|
224658
|
+
if (o.pure) Updates.push(o);
|
|
224659
|
+
else Effects.push(o);
|
|
224540
224660
|
o.observers && markDownstream(o);
|
|
224541
224661
|
}
|
|
224542
224662
|
}
|
|
@@ -224559,11 +224679,11 @@ function cleanNode(node) {
|
|
|
224559
224679
|
}
|
|
224560
224680
|
}
|
|
224561
224681
|
}
|
|
224682
|
+
if (node.tOwned) {
|
|
224683
|
+
for (i = node.tOwned.length - 1; i >= 0; i--) cleanNode(node.tOwned[i]);
|
|
224684
|
+
delete node.tOwned;
|
|
224685
|
+
}
|
|
224562
224686
|
if (Transition && Transition.running && node.pure) {
|
|
224563
|
-
if (node.tOwned) {
|
|
224564
|
-
for (i = node.tOwned.length - 1; i >= 0; i--) cleanNode(node.tOwned[i]);
|
|
224565
|
-
delete node.tOwned;
|
|
224566
|
-
}
|
|
224567
224687
|
reset(node, true);
|
|
224568
224688
|
} else if (node.owned) {
|
|
224569
224689
|
for (i = node.owned.length - 1; i >= 0; i--) cleanNode(node.owned[i]);
|
|
@@ -224573,7 +224693,8 @@ function cleanNode(node) {
|
|
|
224573
224693
|
for (i = node.cleanups.length - 1; i >= 0; i--) node.cleanups[i]();
|
|
224574
224694
|
node.cleanups = null;
|
|
224575
224695
|
}
|
|
224576
|
-
if (Transition && Transition.running) node.tState = 0;
|
|
224696
|
+
if (Transition && Transition.running) node.tState = 0;
|
|
224697
|
+
else node.state = 0;
|
|
224577
224698
|
delete node.sourceMap;
|
|
224578
224699
|
}
|
|
224579
224700
|
function reset(node, top) {
|
|
@@ -224595,19 +224716,21 @@ function runErrors(err, fns, owner) {
|
|
|
224595
224716
|
try {
|
|
224596
224717
|
for (const f of fns) f(err);
|
|
224597
224718
|
} catch (e) {
|
|
224598
|
-
handleError(e, owner && owner.owner || null);
|
|
224719
|
+
handleError(e, (owner && owner.owner) || null);
|
|
224599
224720
|
}
|
|
224600
224721
|
}
|
|
224601
224722
|
function handleError(err, owner = Owner) {
|
|
224602
224723
|
const fns = ERROR && owner && owner.context && owner.context[ERROR];
|
|
224603
224724
|
const error = castError(err);
|
|
224604
224725
|
if (!fns) throw error;
|
|
224605
|
-
if (Effects)
|
|
224606
|
-
|
|
224607
|
-
|
|
224608
|
-
|
|
224609
|
-
|
|
224610
|
-
|
|
224726
|
+
if (Effects)
|
|
224727
|
+
Effects.push({
|
|
224728
|
+
fn() {
|
|
224729
|
+
runErrors(error, fns, owner);
|
|
224730
|
+
},
|
|
224731
|
+
state: STALE
|
|
224732
|
+
});
|
|
224733
|
+
else runErrors(error, fns, owner);
|
|
224611
224734
|
}
|
|
224612
224735
|
function resolveChildren(children) {
|
|
224613
224736
|
if (typeof children === "function" && !children.length) return resolveChildren(children());
|
|
@@ -224624,19 +224747,26 @@ function resolveChildren(children) {
|
|
|
224624
224747
|
function createProvider(id, options) {
|
|
224625
224748
|
return function provider(props) {
|
|
224626
224749
|
let res;
|
|
224627
|
-
createRenderEffect(
|
|
224628
|
-
|
|
224629
|
-
|
|
224630
|
-
|
|
224631
|
-
|
|
224632
|
-
|
|
224633
|
-
|
|
224750
|
+
createRenderEffect(
|
|
224751
|
+
() =>
|
|
224752
|
+
(res = untrack(() => {
|
|
224753
|
+
Owner.context = {
|
|
224754
|
+
...Owner.context,
|
|
224755
|
+
[id]: props.value
|
|
224756
|
+
};
|
|
224757
|
+
return children(() => props.children);
|
|
224758
|
+
})),
|
|
224759
|
+
undefined,
|
|
224760
|
+
options
|
|
224761
|
+
);
|
|
224634
224762
|
return res;
|
|
224635
224763
|
};
|
|
224636
224764
|
}
|
|
224637
224765
|
function onError(fn) {
|
|
224638
224766
|
ERROR || (ERROR = Symbol("error"));
|
|
224639
|
-
if (Owner === null)
|
|
224767
|
+
if (Owner === null)
|
|
224768
|
+
console.warn("error handlers created outside a `createRoot` or `render` will never be run");
|
|
224769
|
+
else if (Owner.context === null || !Owner.context[ERROR]) {
|
|
224640
224770
|
Owner.context = {
|
|
224641
224771
|
...Owner.context,
|
|
224642
224772
|
[ERROR]: [fn]
|
|
@@ -224665,7 +224795,8 @@ function observable(input) {
|
|
|
224665
224795
|
if (!(observer instanceof Object) || observer == null) {
|
|
224666
224796
|
throw new TypeError("Expected the observer to be an object.");
|
|
224667
224797
|
}
|
|
224668
|
-
const handler =
|
|
224798
|
+
const handler =
|
|
224799
|
+
typeof observer === "function" ? observer : observer.next && observer.next.bind(observer);
|
|
224669
224800
|
if (!handler) {
|
|
224670
224801
|
return {
|
|
224671
224802
|
unsubscribe() {}
|
|
@@ -224696,7 +224827,7 @@ function from(producer) {
|
|
|
224696
224827
|
});
|
|
224697
224828
|
if ("subscribe" in producer) {
|
|
224698
224829
|
const unsub = producer.subscribe(v => set(() => v));
|
|
224699
|
-
onCleanup(() => "unsubscribe" in unsub ? unsub.unsubscribe() : unsub());
|
|
224830
|
+
onCleanup(() => ("unsubscribe" in unsub ? unsub.unsubscribe() : unsub()));
|
|
224700
224831
|
} else {
|
|
224701
224832
|
const clean = producer(set);
|
|
224702
224833
|
onCleanup(clean);
|
|
@@ -224717,20 +224848,12 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
224717
224848
|
onCleanup(() => dispose(disposers));
|
|
224718
224849
|
return () => {
|
|
224719
224850
|
let newItems = list() || [],
|
|
224851
|
+
newLen = newItems.length,
|
|
224720
224852
|
i,
|
|
224721
224853
|
j;
|
|
224722
224854
|
newItems[$TRACK];
|
|
224723
224855
|
return untrack(() => {
|
|
224724
|
-
let
|
|
224725
|
-
newIndices,
|
|
224726
|
-
newIndicesNext,
|
|
224727
|
-
temp,
|
|
224728
|
-
tempdisposers,
|
|
224729
|
-
tempIndexes,
|
|
224730
|
-
start,
|
|
224731
|
-
end,
|
|
224732
|
-
newEnd,
|
|
224733
|
-
item;
|
|
224856
|
+
let newIndices, newIndicesNext, temp, tempdisposers, tempIndexes, start, end, newEnd, item;
|
|
224734
224857
|
if (newLen === 0) {
|
|
224735
224858
|
if (len !== 0) {
|
|
224736
224859
|
dispose(disposers);
|
|
@@ -224748,8 +224871,7 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
224748
224871
|
});
|
|
224749
224872
|
len = 1;
|
|
224750
224873
|
}
|
|
224751
|
-
}
|
|
224752
|
-
else if (len === 0) {
|
|
224874
|
+
} else if (len === 0) {
|
|
224753
224875
|
mapped = new Array(newLen);
|
|
224754
224876
|
for (j = 0; j < newLen; j++) {
|
|
224755
224877
|
items[j] = newItems[j];
|
|
@@ -224760,8 +224882,16 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
224760
224882
|
temp = new Array(newLen);
|
|
224761
224883
|
tempdisposers = new Array(newLen);
|
|
224762
224884
|
indexes && (tempIndexes = new Array(newLen));
|
|
224763
|
-
for (
|
|
224764
|
-
|
|
224885
|
+
for (
|
|
224886
|
+
start = 0, end = Math.min(len, newLen);
|
|
224887
|
+
start < end && items[start] === newItems[start];
|
|
224888
|
+
start++
|
|
224889
|
+
);
|
|
224890
|
+
for (
|
|
224891
|
+
end = len - 1, newEnd = newLen - 1;
|
|
224892
|
+
end >= start && newEnd >= start && items[end] === newItems[newEnd];
|
|
224893
|
+
end--, newEnd--
|
|
224894
|
+
) {
|
|
224765
224895
|
temp[newEnd] = mapped[end];
|
|
224766
224896
|
tempdisposers[newEnd] = disposers[end];
|
|
224767
224897
|
indexes && (tempIndexes[newEnd] = indexes[end]);
|
|
@@ -224795,7 +224925,7 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
224795
224925
|
}
|
|
224796
224926
|
} else mapped[j] = createRoot(mapper);
|
|
224797
224927
|
}
|
|
224798
|
-
mapped = mapped.slice(0, len = newLen);
|
|
224928
|
+
mapped = mapped.slice(0, (len = newLen));
|
|
224799
224929
|
items = newItems.slice(0);
|
|
224800
224930
|
}
|
|
224801
224931
|
return mapped;
|
|
@@ -224805,7 +224935,7 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
224805
224935
|
if (indexes) {
|
|
224806
224936
|
const [s, set] = createSignal(j, {
|
|
224807
224937
|
name: "index"
|
|
224808
|
-
})
|
|
224938
|
+
});
|
|
224809
224939
|
indexes[j] = set;
|
|
224810
224940
|
return mapFn(newItems[j], s);
|
|
224811
224941
|
}
|
|
@@ -224822,10 +224952,11 @@ function indexArray(list, mapFn, options = {}) {
|
|
|
224822
224952
|
i;
|
|
224823
224953
|
onCleanup(() => dispose(disposers));
|
|
224824
224954
|
return () => {
|
|
224825
|
-
const newItems = list() || []
|
|
224955
|
+
const newItems = list() || [],
|
|
224956
|
+
newLen = newItems.length;
|
|
224826
224957
|
newItems[$TRACK];
|
|
224827
224958
|
return untrack(() => {
|
|
224828
|
-
if (
|
|
224959
|
+
if (newLen === 0) {
|
|
224829
224960
|
if (len !== 0) {
|
|
224830
224961
|
dispose(disposers);
|
|
224831
224962
|
disposers = [];
|
|
@@ -224851,7 +224982,7 @@ function indexArray(list, mapFn, options = {}) {
|
|
|
224851
224982
|
mapped = [];
|
|
224852
224983
|
len = 0;
|
|
224853
224984
|
}
|
|
224854
|
-
for (i = 0; i <
|
|
224985
|
+
for (i = 0; i < newLen; i++) {
|
|
224855
224986
|
if (i < items.length && items[i] !== newItems[i]) {
|
|
224856
224987
|
signals[i](() => newItems[i]);
|
|
224857
224988
|
} else if (i >= items.length) {
|
|
@@ -224861,15 +224992,15 @@ function indexArray(list, mapFn, options = {}) {
|
|
|
224861
224992
|
for (; i < items.length; i++) {
|
|
224862
224993
|
disposers[i]();
|
|
224863
224994
|
}
|
|
224864
|
-
len = signals.length = disposers.length =
|
|
224995
|
+
len = signals.length = disposers.length = newLen;
|
|
224865
224996
|
items = newItems.slice(0);
|
|
224866
|
-
return mapped = mapped.slice(0, len);
|
|
224997
|
+
return (mapped = mapped.slice(0, len));
|
|
224867
224998
|
});
|
|
224868
224999
|
function mapper(disposer) {
|
|
224869
225000
|
disposers[i] = disposer;
|
|
224870
225001
|
const [s, set] = createSignal(newItems[i], {
|
|
224871
225002
|
name: "value"
|
|
224872
|
-
})
|
|
225003
|
+
});
|
|
224873
225004
|
signals[i] = set;
|
|
224874
225005
|
return mapFn(s, i);
|
|
224875
225006
|
}
|
|
@@ -224885,7 +225016,7 @@ function createComponent(Comp, props) {
|
|
|
224885
225016
|
if (sharedConfig.context) {
|
|
224886
225017
|
const c = sharedConfig.context;
|
|
224887
225018
|
setHydrateContext(nextHydrateContext());
|
|
224888
|
-
const r = devComponent(Comp, props || {})
|
|
225019
|
+
const r = devComponent(Comp, props || {});
|
|
224889
225020
|
setHydrateContext(c);
|
|
224890
225021
|
return r;
|
|
224891
225022
|
}
|
|
@@ -224934,112 +225065,131 @@ function mergeProps(...sources) {
|
|
|
224934
225065
|
let proxy = false;
|
|
224935
225066
|
for (let i = 0; i < sources.length; i++) {
|
|
224936
225067
|
const s = sources[i];
|
|
224937
|
-
proxy = proxy || !!s && $PROXY in s;
|
|
224938
|
-
sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
|
|
225068
|
+
proxy = proxy || (!!s && $PROXY in s);
|
|
225069
|
+
sources[i] = typeof s === "function" ? ((proxy = true), createMemo(s)) : s;
|
|
224939
225070
|
}
|
|
224940
|
-
if (proxy) {
|
|
224941
|
-
return new Proxy(
|
|
224942
|
-
|
|
224943
|
-
|
|
224944
|
-
|
|
224945
|
-
|
|
224946
|
-
|
|
224947
|
-
|
|
224948
|
-
|
|
224949
|
-
|
|
224950
|
-
|
|
225071
|
+
if (SUPPORTS_PROXY && proxy) {
|
|
225072
|
+
return new Proxy(
|
|
225073
|
+
{
|
|
225074
|
+
get(property) {
|
|
225075
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
225076
|
+
const v = resolveSource(sources[i])[property];
|
|
225077
|
+
if (v !== undefined) return v;
|
|
225078
|
+
}
|
|
225079
|
+
},
|
|
225080
|
+
has(property) {
|
|
225081
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
225082
|
+
if (property in resolveSource(sources[i])) return true;
|
|
225083
|
+
}
|
|
225084
|
+
return false;
|
|
225085
|
+
},
|
|
225086
|
+
keys() {
|
|
225087
|
+
const keys = [];
|
|
225088
|
+
for (let i = 0; i < sources.length; i++)
|
|
225089
|
+
keys.push(...Object.keys(resolveSource(sources[i])));
|
|
225090
|
+
return [...new Set(keys)];
|
|
224951
225091
|
}
|
|
224952
|
-
return false;
|
|
224953
225092
|
},
|
|
224954
|
-
|
|
224955
|
-
|
|
224956
|
-
for (let i = 0; i < sources.length; i++) keys.push(...Object.keys(resolveSource(sources[i])));
|
|
224957
|
-
return [...new Set(keys)];
|
|
224958
|
-
}
|
|
224959
|
-
}, propTraps);
|
|
225093
|
+
propTraps
|
|
225094
|
+
);
|
|
224960
225095
|
}
|
|
224961
|
-
const target = {};
|
|
224962
225096
|
const sourcesMap = {};
|
|
224963
|
-
const defined =
|
|
225097
|
+
const defined = Object.create(null);
|
|
224964
225098
|
for (let i = sources.length - 1; i >= 0; i--) {
|
|
224965
225099
|
const source = sources[i];
|
|
224966
225100
|
if (!source) continue;
|
|
224967
225101
|
const sourceKeys = Object.getOwnPropertyNames(source);
|
|
224968
|
-
for (let i =
|
|
225102
|
+
for (let i = sourceKeys.length - 1; i >= 0; i--) {
|
|
224969
225103
|
const key = sourceKeys[i];
|
|
224970
225104
|
if (key === "__proto__" || key === "constructor") continue;
|
|
224971
225105
|
const desc = Object.getOwnPropertyDescriptor(source, key);
|
|
224972
|
-
if (!defined
|
|
224973
|
-
|
|
224974
|
-
|
|
224975
|
-
|
|
224976
|
-
|
|
224977
|
-
|
|
224978
|
-
|
|
224979
|
-
|
|
224980
|
-
|
|
224981
|
-
|
|
224982
|
-
target[key] = desc.value;
|
|
224983
|
-
}
|
|
225106
|
+
if (!defined[key]) {
|
|
225107
|
+
defined[key] = desc.get
|
|
225108
|
+
? {
|
|
225109
|
+
enumerable: true,
|
|
225110
|
+
configurable: true,
|
|
225111
|
+
get: resolveSources.bind((sourcesMap[key] = [desc.get.bind(source)]))
|
|
225112
|
+
}
|
|
225113
|
+
: desc.value !== undefined
|
|
225114
|
+
? desc
|
|
225115
|
+
: undefined;
|
|
224984
225116
|
} else {
|
|
224985
225117
|
const sources = sourcesMap[key];
|
|
224986
225118
|
if (sources) {
|
|
224987
|
-
if (desc.get)
|
|
224988
|
-
|
|
224989
|
-
|
|
224990
|
-
sources.push(() => desc.value);
|
|
224991
|
-
}
|
|
224992
|
-
} else if (target[key] === undefined) target[key] = desc.value;
|
|
225119
|
+
if (desc.get) sources.push(desc.get.bind(source));
|
|
225120
|
+
else if (desc.value !== undefined) sources.push(() => desc.value);
|
|
225121
|
+
}
|
|
224993
225122
|
}
|
|
224994
225123
|
}
|
|
224995
225124
|
}
|
|
225125
|
+
const target = {};
|
|
225126
|
+
const definedKeys = Object.keys(defined);
|
|
225127
|
+
for (let i = definedKeys.length - 1; i >= 0; i--) {
|
|
225128
|
+
const key = definedKeys[i],
|
|
225129
|
+
desc = defined[key];
|
|
225130
|
+
if (desc && desc.get) Object.defineProperty(target, key, desc);
|
|
225131
|
+
else target[key] = desc ? desc.value : undefined;
|
|
225132
|
+
}
|
|
224996
225133
|
return target;
|
|
224997
225134
|
}
|
|
224998
225135
|
function splitProps(props, ...keys) {
|
|
224999
|
-
if ($PROXY in props) {
|
|
225136
|
+
if (SUPPORTS_PROXY && $PROXY in props) {
|
|
225000
225137
|
const blocked = new Set(keys.length > 1 ? keys.flat() : keys[0]);
|
|
225001
225138
|
const res = keys.map(k => {
|
|
225002
|
-
return new Proxy(
|
|
225003
|
-
|
|
225004
|
-
|
|
225005
|
-
|
|
225006
|
-
|
|
225007
|
-
|
|
225139
|
+
return new Proxy(
|
|
225140
|
+
{
|
|
225141
|
+
get(property) {
|
|
225142
|
+
return k.includes(property) ? props[property] : undefined;
|
|
225143
|
+
},
|
|
225144
|
+
has(property) {
|
|
225145
|
+
return k.includes(property) && property in props;
|
|
225146
|
+
},
|
|
225147
|
+
keys() {
|
|
225148
|
+
return k.filter(property => property in props);
|
|
225149
|
+
}
|
|
225008
225150
|
},
|
|
225009
|
-
|
|
225010
|
-
|
|
225011
|
-
}
|
|
225012
|
-
}, propTraps);
|
|
225151
|
+
propTraps
|
|
225152
|
+
);
|
|
225013
225153
|
});
|
|
225014
|
-
res.push(
|
|
225015
|
-
|
|
225016
|
-
|
|
225017
|
-
|
|
225018
|
-
|
|
225019
|
-
|
|
225020
|
-
|
|
225021
|
-
|
|
225022
|
-
|
|
225023
|
-
|
|
225024
|
-
|
|
225154
|
+
res.push(
|
|
225155
|
+
new Proxy(
|
|
225156
|
+
{
|
|
225157
|
+
get(property) {
|
|
225158
|
+
return blocked.has(property) ? undefined : props[property];
|
|
225159
|
+
},
|
|
225160
|
+
has(property) {
|
|
225161
|
+
return blocked.has(property) ? false : property in props;
|
|
225162
|
+
},
|
|
225163
|
+
keys() {
|
|
225164
|
+
return Object.keys(props).filter(k => !blocked.has(k));
|
|
225165
|
+
}
|
|
225166
|
+
},
|
|
225167
|
+
propTraps
|
|
225168
|
+
)
|
|
225169
|
+
);
|
|
225025
225170
|
return res;
|
|
225026
225171
|
}
|
|
225027
225172
|
const otherObject = {};
|
|
225028
225173
|
const objects = keys.map(() => ({}));
|
|
225029
225174
|
for (const propName of Object.getOwnPropertyNames(props)) {
|
|
225030
225175
|
const desc = Object.getOwnPropertyDescriptor(props, propName);
|
|
225031
|
-
const isDefaultDesc =
|
|
225176
|
+
const isDefaultDesc =
|
|
225177
|
+
!desc.get && !desc.set && desc.enumerable && desc.writable && desc.configurable;
|
|
225032
225178
|
let blocked = false;
|
|
225033
225179
|
let objectIndex = 0;
|
|
225034
225180
|
for (const k of keys) {
|
|
225035
225181
|
if (k.includes(propName)) {
|
|
225036
225182
|
blocked = true;
|
|
225037
|
-
isDefaultDesc
|
|
225183
|
+
isDefaultDesc
|
|
225184
|
+
? (objects[objectIndex][propName] = desc.value)
|
|
225185
|
+
: Object.defineProperty(objects[objectIndex], propName, desc);
|
|
225038
225186
|
}
|
|
225039
225187
|
++objectIndex;
|
|
225040
225188
|
}
|
|
225041
225189
|
if (!blocked) {
|
|
225042
|
-
isDefaultDesc
|
|
225190
|
+
isDefaultDesc
|
|
225191
|
+
? (otherObject[propName] = desc.value)
|
|
225192
|
+
: Object.defineProperty(otherObject, propName, desc);
|
|
225043
225193
|
}
|
|
225044
225194
|
}
|
|
225045
225195
|
return [...objects, otherObject];
|
|
@@ -225054,7 +225204,7 @@ function lazy(fn) {
|
|
|
225054
225204
|
sharedConfig.count || (sharedConfig.count = 0);
|
|
225055
225205
|
sharedConfig.count++;
|
|
225056
225206
|
(p || (p = fn())).then(mod => {
|
|
225057
|
-
setHydrateContext(ctx);
|
|
225207
|
+
!sharedConfig.done && setHydrateContext(ctx);
|
|
225058
225208
|
sharedConfig.count--;
|
|
225059
225209
|
set(() => mod.default);
|
|
225060
225210
|
setHydrateContext();
|
|
@@ -225065,96 +225215,138 @@ function lazy(fn) {
|
|
|
225065
225215
|
comp = s;
|
|
225066
225216
|
}
|
|
225067
225217
|
let Comp;
|
|
225068
|
-
return createMemo(() =>
|
|
225069
|
-
|
|
225070
|
-
|
|
225071
|
-
|
|
225072
|
-
|
|
225073
|
-
|
|
225074
|
-
|
|
225075
|
-
|
|
225076
|
-
|
|
225077
|
-
|
|
225078
|
-
|
|
225218
|
+
return createMemo(() =>
|
|
225219
|
+
(Comp = comp())
|
|
225220
|
+
? untrack(() => {
|
|
225221
|
+
if (true)
|
|
225222
|
+
Object.assign(Comp, {
|
|
225223
|
+
[$DEVCOMP]: true
|
|
225224
|
+
});
|
|
225225
|
+
if (!ctx || sharedConfig.done) return Comp(props);
|
|
225226
|
+
const c = sharedConfig.context;
|
|
225227
|
+
setHydrateContext(ctx);
|
|
225228
|
+
const r = Comp(props);
|
|
225229
|
+
setHydrateContext(c);
|
|
225230
|
+
return r;
|
|
225231
|
+
})
|
|
225232
|
+
: ""
|
|
225233
|
+
);
|
|
225079
225234
|
};
|
|
225080
|
-
wrap.preload = () => p || ((p = fn()).then(mod => comp = () => mod.default), p);
|
|
225235
|
+
wrap.preload = () => p || ((p = fn()).then(mod => (comp = () => mod.default)), p);
|
|
225081
225236
|
return wrap;
|
|
225082
225237
|
}
|
|
225083
225238
|
let counter = 0;
|
|
225084
225239
|
function createUniqueId() {
|
|
225085
225240
|
const ctx = sharedConfig.context;
|
|
225086
|
-
return ctx ?
|
|
225241
|
+
return ctx ? sharedConfig.getNextContextId() : `cl-${counter++}`;
|
|
225087
225242
|
}
|
|
225088
225243
|
|
|
225089
|
-
const narrowedError = name =>
|
|
225244
|
+
const narrowedError = name =>
|
|
225245
|
+
`Attempting to access a stale value from <${name}> that could possibly be undefined. This may occur because you are reading the accessor returned from the component at a time where it has already been unmounted. We recommend cleaning up any stale timers or async, or reading from the initial condition.`;
|
|
225090
225246
|
function For(props) {
|
|
225091
225247
|
const fallback = "fallback" in props && {
|
|
225092
225248
|
fallback: () => props.fallback
|
|
225093
225249
|
};
|
|
225094
|
-
return createMemo(
|
|
225095
|
-
|
|
225096
|
-
|
|
225250
|
+
return createMemo(
|
|
225251
|
+
mapArray(() => props.each, props.children, fallback || undefined),
|
|
225252
|
+
undefined,
|
|
225253
|
+
{
|
|
225254
|
+
name: "value"
|
|
225255
|
+
}
|
|
225256
|
+
);
|
|
225097
225257
|
}
|
|
225098
225258
|
function Index(props) {
|
|
225099
225259
|
const fallback = "fallback" in props && {
|
|
225100
225260
|
fallback: () => props.fallback
|
|
225101
225261
|
};
|
|
225102
|
-
return createMemo(
|
|
225103
|
-
|
|
225104
|
-
|
|
225262
|
+
return createMemo(
|
|
225263
|
+
indexArray(() => props.each, props.children, fallback || undefined),
|
|
225264
|
+
undefined,
|
|
225265
|
+
{
|
|
225266
|
+
name: "value"
|
|
225267
|
+
}
|
|
225268
|
+
);
|
|
225105
225269
|
}
|
|
225106
225270
|
function Show(props) {
|
|
225107
225271
|
const keyed = props.keyed;
|
|
225108
225272
|
const condition = createMemo(() => props.when, undefined, {
|
|
225109
|
-
equals: (a, b) => keyed ? a === b : !a === !b,
|
|
225273
|
+
equals: (a, b) => (keyed ? a === b : !a === !b),
|
|
225110
225274
|
name: "condition"
|
|
225111
|
-
}
|
|
225112
|
-
return createMemo(
|
|
225113
|
-
|
|
225114
|
-
|
|
225115
|
-
|
|
225116
|
-
|
|
225117
|
-
|
|
225118
|
-
|
|
225119
|
-
|
|
225120
|
-
|
|
225121
|
-
|
|
225122
|
-
|
|
225123
|
-
|
|
225124
|
-
|
|
225125
|
-
|
|
225275
|
+
});
|
|
225276
|
+
return createMemo(
|
|
225277
|
+
() => {
|
|
225278
|
+
const c = condition();
|
|
225279
|
+
if (c) {
|
|
225280
|
+
const child = props.children;
|
|
225281
|
+
const fn = typeof child === "function" && child.length > 0;
|
|
225282
|
+
return fn
|
|
225283
|
+
? untrack(() =>
|
|
225284
|
+
child(
|
|
225285
|
+
keyed
|
|
225286
|
+
? c
|
|
225287
|
+
: () => {
|
|
225288
|
+
if (!untrack(condition)) throw narrowedError("Show");
|
|
225289
|
+
return props.when;
|
|
225290
|
+
}
|
|
225291
|
+
)
|
|
225292
|
+
)
|
|
225293
|
+
: child;
|
|
225294
|
+
}
|
|
225295
|
+
return props.fallback;
|
|
225296
|
+
},
|
|
225297
|
+
undefined,
|
|
225298
|
+
{
|
|
225299
|
+
name: "value"
|
|
225300
|
+
}
|
|
225301
|
+
);
|
|
225126
225302
|
}
|
|
225127
225303
|
function Switch(props) {
|
|
225128
225304
|
let keyed = false;
|
|
225129
|
-
const equals = (a, b) =>
|
|
225305
|
+
const equals = (a, b) => (keyed ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2];
|
|
225130
225306
|
const conditions = children(() => props.children),
|
|
225131
|
-
evalConditions = createMemo(
|
|
225132
|
-
|
|
225133
|
-
|
|
225134
|
-
|
|
225135
|
-
|
|
225136
|
-
|
|
225137
|
-
|
|
225138
|
-
|
|
225139
|
-
|
|
225140
|
-
|
|
225141
|
-
|
|
225142
|
-
|
|
225143
|
-
|
|
225144
|
-
|
|
225145
|
-
|
|
225146
|
-
|
|
225147
|
-
|
|
225148
|
-
|
|
225149
|
-
|
|
225150
|
-
|
|
225151
|
-
|
|
225152
|
-
|
|
225153
|
-
return
|
|
225154
|
-
|
|
225155
|
-
|
|
225156
|
-
|
|
225157
|
-
|
|
225307
|
+
evalConditions = createMemo(
|
|
225308
|
+
() => {
|
|
225309
|
+
let conds = conditions();
|
|
225310
|
+
if (!Array.isArray(conds)) conds = [conds];
|
|
225311
|
+
for (let i = 0; i < conds.length; i++) {
|
|
225312
|
+
const c = conds[i].when;
|
|
225313
|
+
if (c) {
|
|
225314
|
+
keyed = !!conds[i].keyed;
|
|
225315
|
+
return [i, c, conds[i]];
|
|
225316
|
+
}
|
|
225317
|
+
}
|
|
225318
|
+
return [-1];
|
|
225319
|
+
},
|
|
225320
|
+
undefined,
|
|
225321
|
+
{
|
|
225322
|
+
equals,
|
|
225323
|
+
name: "eval conditions"
|
|
225324
|
+
}
|
|
225325
|
+
);
|
|
225326
|
+
return createMemo(
|
|
225327
|
+
() => {
|
|
225328
|
+
const [index, when, cond] = evalConditions();
|
|
225329
|
+
if (index < 0) return props.fallback;
|
|
225330
|
+
const c = cond.children;
|
|
225331
|
+
const fn = typeof c === "function" && c.length > 0;
|
|
225332
|
+
return fn
|
|
225333
|
+
? untrack(() =>
|
|
225334
|
+
c(
|
|
225335
|
+
keyed
|
|
225336
|
+
? when
|
|
225337
|
+
: () => {
|
|
225338
|
+
if (untrack(evalConditions)[0] !== index) throw narrowedError("Match");
|
|
225339
|
+
return cond.when;
|
|
225340
|
+
}
|
|
225341
|
+
)
|
|
225342
|
+
)
|
|
225343
|
+
: c;
|
|
225344
|
+
},
|
|
225345
|
+
undefined,
|
|
225346
|
+
{
|
|
225347
|
+
name: "value"
|
|
225348
|
+
}
|
|
225349
|
+
);
|
|
225158
225350
|
}
|
|
225159
225351
|
function Match(props) {
|
|
225160
225352
|
return props;
|
|
@@ -225165,28 +225357,34 @@ function resetErrorBoundaries() {
|
|
|
225165
225357
|
}
|
|
225166
225358
|
function ErrorBoundary(props) {
|
|
225167
225359
|
let err;
|
|
225168
|
-
if (sharedConfig.context && sharedConfig.load)
|
|
225360
|
+
if (sharedConfig.context && sharedConfig.load)
|
|
225361
|
+
err = sharedConfig.load(sharedConfig.getContextId());
|
|
225169
225362
|
const [errored, setErrored] = createSignal(err, {
|
|
225170
225363
|
name: "errored"
|
|
225171
|
-
}
|
|
225364
|
+
});
|
|
225172
225365
|
Errors || (Errors = new Set());
|
|
225173
225366
|
Errors.add(setErrored);
|
|
225174
225367
|
onCleanup(() => Errors.delete(setErrored));
|
|
225175
|
-
return createMemo(
|
|
225176
|
-
|
|
225177
|
-
|
|
225178
|
-
|
|
225179
|
-
|
|
225180
|
-
|
|
225368
|
+
return createMemo(
|
|
225369
|
+
() => {
|
|
225370
|
+
let e;
|
|
225371
|
+
if ((e = errored())) {
|
|
225372
|
+
const f = props.fallback;
|
|
225373
|
+
if (typeof f !== "function" || f.length == 0) console.error(e);
|
|
225374
|
+
return typeof f === "function" && f.length ? untrack(() => f(e, () => setErrored())) : f;
|
|
225375
|
+
}
|
|
225376
|
+
return catchError(() => props.children, setErrored);
|
|
225377
|
+
},
|
|
225378
|
+
undefined,
|
|
225379
|
+
{
|
|
225380
|
+
name: "value"
|
|
225181
225381
|
}
|
|
225182
|
-
|
|
225183
|
-
}, undefined, {
|
|
225184
|
-
name: "value"
|
|
225185
|
-
} );
|
|
225382
|
+
);
|
|
225186
225383
|
}
|
|
225187
225384
|
|
|
225188
|
-
const suspenseListEquals = (a, b) =>
|
|
225189
|
-
|
|
225385
|
+
const suspenseListEquals = (a, b) =>
|
|
225386
|
+
a.showContent === b.showContent && a.showFallback === b.showFallback;
|
|
225387
|
+
const SuspenseListContext = /* #__PURE__ */ createContext();
|
|
225190
225388
|
function SuspenseList(props) {
|
|
225191
225389
|
let [wrapper, setWrapper] = createSignal(() => ({
|
|
225192
225390
|
inFallback: false
|
|
@@ -225197,51 +225395,51 @@ function SuspenseList(props) {
|
|
|
225197
225395
|
if (listContext) {
|
|
225198
225396
|
show = listContext.register(createMemo(() => wrapper()().inFallback));
|
|
225199
225397
|
}
|
|
225200
|
-
const resolved = createMemo(
|
|
225201
|
-
|
|
225202
|
-
|
|
225203
|
-
|
|
225204
|
-
showContent = true,
|
|
225205
|
-
|
|
225206
|
-
|
|
225207
|
-
|
|
225208
|
-
|
|
225209
|
-
|
|
225210
|
-
|
|
225211
|
-
const res = reg.map(() => ({
|
|
225212
|
-
showContent: all && showContent,
|
|
225213
|
-
showFallback
|
|
225214
|
-
}));
|
|
225215
|
-
res.inFallback = !all;
|
|
225216
|
-
return res;
|
|
225217
|
-
}
|
|
225218
|
-
let stop = false;
|
|
225219
|
-
let inFallback = prev.inFallback;
|
|
225220
|
-
const res = [];
|
|
225221
|
-
for (let i = 0, len = reg.length; i < len; i++) {
|
|
225222
|
-
const n = reverse ? len - i - 1 : i,
|
|
225223
|
-
s = reg[n]();
|
|
225224
|
-
if (!stop && !s) {
|
|
225225
|
-
res[n] = {
|
|
225226
|
-
showContent,
|
|
225398
|
+
const resolved = createMemo(
|
|
225399
|
+
prev => {
|
|
225400
|
+
const reveal = props.revealOrder,
|
|
225401
|
+
tail = props.tail,
|
|
225402
|
+
{ showContent = true, showFallback = true } = show ? show() : {},
|
|
225403
|
+
reg = registry(),
|
|
225404
|
+
reverse = reveal === "backwards";
|
|
225405
|
+
if (reveal === "together") {
|
|
225406
|
+
const all = reg.every(inFallback => !inFallback());
|
|
225407
|
+
const res = reg.map(() => ({
|
|
225408
|
+
showContent: all && showContent,
|
|
225227
225409
|
showFallback
|
|
225228
|
-
};
|
|
225229
|
-
|
|
225230
|
-
|
|
225231
|
-
if (next) inFallback = true;
|
|
225232
|
-
res[n] = {
|
|
225233
|
-
showContent: next,
|
|
225234
|
-
showFallback: !tail || next && tail === "collapsed" ? showFallback : false
|
|
225235
|
-
};
|
|
225236
|
-
stop = true;
|
|
225410
|
+
}));
|
|
225411
|
+
res.inFallback = !all;
|
|
225412
|
+
return res;
|
|
225237
225413
|
}
|
|
225414
|
+
let stop = false;
|
|
225415
|
+
let inFallback = prev.inFallback;
|
|
225416
|
+
const res = [];
|
|
225417
|
+
for (let i = 0, len = reg.length; i < len; i++) {
|
|
225418
|
+
const n = reverse ? len - i - 1 : i,
|
|
225419
|
+
s = reg[n]();
|
|
225420
|
+
if (!stop && !s) {
|
|
225421
|
+
res[n] = {
|
|
225422
|
+
showContent,
|
|
225423
|
+
showFallback
|
|
225424
|
+
};
|
|
225425
|
+
} else {
|
|
225426
|
+
const next = !stop;
|
|
225427
|
+
if (next) inFallback = true;
|
|
225428
|
+
res[n] = {
|
|
225429
|
+
showContent: next,
|
|
225430
|
+
showFallback: !tail || (next && tail === "collapsed") ? showFallback : false
|
|
225431
|
+
};
|
|
225432
|
+
stop = true;
|
|
225433
|
+
}
|
|
225434
|
+
}
|
|
225435
|
+
if (!stop) inFallback = false;
|
|
225436
|
+
res.inFallback = inFallback;
|
|
225437
|
+
return res;
|
|
225438
|
+
},
|
|
225439
|
+
{
|
|
225440
|
+
inFallback: false
|
|
225238
225441
|
}
|
|
225239
|
-
|
|
225240
|
-
res.inFallback = inFallback;
|
|
225241
|
-
return res;
|
|
225242
|
-
}, {
|
|
225243
|
-
inFallback: false
|
|
225244
|
-
});
|
|
225442
|
+
);
|
|
225245
225443
|
setWrapper(() => resolved);
|
|
225246
225444
|
return createComponent(SuspenseListContext.Provider, {
|
|
225247
225445
|
value: {
|
|
@@ -225283,25 +225481,30 @@ function Suspense(props) {
|
|
|
225283
225481
|
},
|
|
225284
225482
|
owner = getOwner();
|
|
225285
225483
|
if (sharedConfig.context && sharedConfig.load) {
|
|
225286
|
-
const key = sharedConfig.
|
|
225484
|
+
const key = sharedConfig.getContextId();
|
|
225287
225485
|
let ref = sharedConfig.load(key);
|
|
225288
|
-
if (ref
|
|
225486
|
+
if (ref) {
|
|
225487
|
+
if (typeof ref !== "object" || ref.status !== "success") p = ref;
|
|
225488
|
+
else sharedConfig.gather(key);
|
|
225489
|
+
}
|
|
225289
225490
|
if (p && p !== "$$f") {
|
|
225290
225491
|
const [s, set] = createSignal(undefined, {
|
|
225291
225492
|
equals: false
|
|
225292
225493
|
});
|
|
225293
225494
|
flicker = s;
|
|
225294
|
-
p.then(
|
|
225295
|
-
|
|
225296
|
-
|
|
225297
|
-
|
|
225298
|
-
|
|
225299
|
-
|
|
225300
|
-
|
|
225301
|
-
|
|
225302
|
-
|
|
225495
|
+
p.then(
|
|
225496
|
+
() => {
|
|
225497
|
+
if (sharedConfig.done) return set();
|
|
225498
|
+
sharedConfig.gather(key);
|
|
225499
|
+
setHydrateContext(ctx);
|
|
225500
|
+
set();
|
|
225501
|
+
setHydrateContext();
|
|
225502
|
+
},
|
|
225503
|
+
err => {
|
|
225504
|
+
error = err;
|
|
225505
|
+
set();
|
|
225303
225506
|
}
|
|
225304
|
-
|
|
225507
|
+
);
|
|
225305
225508
|
}
|
|
225306
225509
|
}
|
|
225307
225510
|
const listContext = useContext(SuspenseListContext);
|
|
@@ -225316,17 +225519,14 @@ function Suspense(props) {
|
|
|
225316
225519
|
ctx = sharedConfig.context;
|
|
225317
225520
|
if (flicker) {
|
|
225318
225521
|
flicker();
|
|
225319
|
-
return flicker = undefined;
|
|
225522
|
+
return (flicker = undefined);
|
|
225320
225523
|
}
|
|
225321
225524
|
if (ctx && p === "$$f") setHydrateContext();
|
|
225322
225525
|
const rendered = createMemo(() => props.children);
|
|
225323
225526
|
return createMemo(prev => {
|
|
225324
225527
|
const inFallback = store.inFallback(),
|
|
225325
|
-
{
|
|
225326
|
-
|
|
225327
|
-
showFallback = true
|
|
225328
|
-
} = show ? show() : {};
|
|
225329
|
-
if ((!inFallback || p && p !== "$$f") && showContent) {
|
|
225528
|
+
{ showContent = true, showFallback = true } = show ? show() : {};
|
|
225529
|
+
if ((!inFallback || (p && p !== "$$f")) && showContent) {
|
|
225330
225530
|
store.resolved = true;
|
|
225331
225531
|
dispose && dispose();
|
|
225332
225532
|
dispose = ctx = p = undefined;
|
|
@@ -225339,7 +225539,7 @@ function Suspense(props) {
|
|
|
225339
225539
|
dispose = disposer;
|
|
225340
225540
|
if (ctx) {
|
|
225341
225541
|
setHydrateContext({
|
|
225342
|
-
id: ctx.id + "
|
|
225542
|
+
id: ctx.id + "F",
|
|
225343
225543
|
count: 0
|
|
225344
225544
|
});
|
|
225345
225545
|
ctx = undefined;
|
|
@@ -225356,9 +225556,13 @@ const DEV = {
|
|
|
225356
225556
|
hooks: DevHooks,
|
|
225357
225557
|
writeSignal,
|
|
225358
225558
|
registerGraph
|
|
225359
|
-
}
|
|
225559
|
+
};
|
|
225360
225560
|
if (globalThis) {
|
|
225361
|
-
if (!globalThis.Solid$$) globalThis.Solid$$ = true;
|
|
225561
|
+
if (!globalThis.Solid$$) globalThis.Solid$$ = true;
|
|
225562
|
+
else
|
|
225563
|
+
console.warn(
|
|
225564
|
+
"You appear to have multiple instances of Solid. This can lead to unexpected behavior."
|
|
225565
|
+
);
|
|
225362
225566
|
}
|
|
225363
225567
|
|
|
225364
225568
|
|
|
@@ -225390,6 +225594,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
225390
225594
|
/* harmony export */ NoHydration: () => (/* binding */ NoHydration),
|
|
225391
225595
|
/* harmony export */ Portal: () => (/* binding */ Portal),
|
|
225392
225596
|
/* harmony export */ Properties: () => (/* binding */ Properties),
|
|
225597
|
+
/* harmony export */ RequestContext: () => (/* binding */ RequestContext),
|
|
225393
225598
|
/* harmony export */ SVGElements: () => (/* binding */ SVGElements),
|
|
225394
225599
|
/* harmony export */ SVGNamespace: () => (/* binding */ SVGNamespace),
|
|
225395
225600
|
/* harmony export */ Show: () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.Show),
|
|
@@ -225414,6 +225619,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
225414
225619
|
/* harmony export */ getNextMatch: () => (/* binding */ getNextMatch),
|
|
225415
225620
|
/* harmony export */ getOwner: () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.getOwner),
|
|
225416
225621
|
/* harmony export */ getPropAlias: () => (/* binding */ getPropAlias),
|
|
225622
|
+
/* harmony export */ getRequestEvent: () => (/* binding */ voidFn),
|
|
225417
225623
|
/* harmony export */ hydrate: () => (/* binding */ hydrate),
|
|
225418
225624
|
/* harmony export */ innerHTML: () => (/* binding */ innerHTML),
|
|
225419
225625
|
/* harmony export */ insert: () => (/* binding */ insert),
|
|
@@ -225429,6 +225635,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
225429
225635
|
/* harmony export */ runHydrationEvents: () => (/* binding */ runHydrationEvents),
|
|
225430
225636
|
/* harmony export */ setAttribute: () => (/* binding */ setAttribute),
|
|
225431
225637
|
/* harmony export */ setAttributeNS: () => (/* binding */ setAttributeNS),
|
|
225638
|
+
/* harmony export */ setBoolAttribute: () => (/* binding */ setBoolAttribute),
|
|
225432
225639
|
/* harmony export */ setProperty: () => (/* binding */ setProperty),
|
|
225433
225640
|
/* harmony export */ spread: () => (/* binding */ spread),
|
|
225434
225641
|
/* harmony export */ ssr: () => (/* binding */ ssr),
|
|
@@ -225448,14 +225655,54 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
225448
225655
|
|
|
225449
225656
|
|
|
225450
225657
|
|
|
225451
|
-
const booleans = [
|
|
225452
|
-
|
|
225453
|
-
|
|
225454
|
-
|
|
225658
|
+
const booleans = [
|
|
225659
|
+
"allowfullscreen",
|
|
225660
|
+
"async",
|
|
225661
|
+
"autofocus",
|
|
225662
|
+
"autoplay",
|
|
225663
|
+
"checked",
|
|
225664
|
+
"controls",
|
|
225665
|
+
"default",
|
|
225666
|
+
"disabled",
|
|
225667
|
+
"formnovalidate",
|
|
225668
|
+
"hidden",
|
|
225669
|
+
"indeterminate",
|
|
225670
|
+
"inert",
|
|
225671
|
+
"ismap",
|
|
225672
|
+
"loop",
|
|
225673
|
+
"multiple",
|
|
225674
|
+
"muted",
|
|
225675
|
+
"nomodule",
|
|
225676
|
+
"novalidate",
|
|
225677
|
+
"open",
|
|
225678
|
+
"playsinline",
|
|
225679
|
+
"readonly",
|
|
225680
|
+
"required",
|
|
225681
|
+
"reversed",
|
|
225682
|
+
"seamless",
|
|
225683
|
+
"selected"
|
|
225684
|
+
];
|
|
225685
|
+
const Properties = /*#__PURE__*/ new Set([
|
|
225686
|
+
"className",
|
|
225687
|
+
"value",
|
|
225688
|
+
"readOnly",
|
|
225689
|
+
"formNoValidate",
|
|
225690
|
+
"isMap",
|
|
225691
|
+
"noModule",
|
|
225692
|
+
"playsInline",
|
|
225693
|
+
...booleans
|
|
225694
|
+
]);
|
|
225695
|
+
const ChildProperties = /*#__PURE__*/ new Set([
|
|
225696
|
+
"innerHTML",
|
|
225697
|
+
"textContent",
|
|
225698
|
+
"innerText",
|
|
225699
|
+
"children"
|
|
225700
|
+
]);
|
|
225701
|
+
const Aliases = /*#__PURE__*/ Object.assign(Object.create(null), {
|
|
225455
225702
|
className: "class",
|
|
225456
225703
|
htmlFor: "for"
|
|
225457
225704
|
});
|
|
225458
|
-
const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
225705
|
+
const PropAliases = /*#__PURE__*/ Object.assign(Object.create(null), {
|
|
225459
225706
|
class: "className",
|
|
225460
225707
|
formnovalidate: {
|
|
225461
225708
|
$: "formNoValidate",
|
|
@@ -225482,19 +225729,396 @@ const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
|
225482
225729
|
});
|
|
225483
225730
|
function getPropAlias(prop, tagName) {
|
|
225484
225731
|
const a = PropAliases[prop];
|
|
225485
|
-
return typeof a === "object" ? a[tagName] ? a["$"] : undefined : a;
|
|
225486
|
-
}
|
|
225487
|
-
const DelegatedEvents = /*#__PURE__*/new Set([
|
|
225488
|
-
|
|
225489
|
-
"
|
|
225490
|
-
"
|
|
225491
|
-
"
|
|
225492
|
-
"
|
|
225732
|
+
return typeof a === "object" ? (a[tagName] ? a["$"] : undefined) : a;
|
|
225733
|
+
}
|
|
225734
|
+
const DelegatedEvents = /*#__PURE__*/ new Set([
|
|
225735
|
+
"beforeinput",
|
|
225736
|
+
"click",
|
|
225737
|
+
"dblclick",
|
|
225738
|
+
"contextmenu",
|
|
225739
|
+
"focusin",
|
|
225740
|
+
"focusout",
|
|
225741
|
+
"input",
|
|
225742
|
+
"keydown",
|
|
225743
|
+
"keyup",
|
|
225744
|
+
"mousedown",
|
|
225745
|
+
"mousemove",
|
|
225746
|
+
"mouseout",
|
|
225747
|
+
"mouseover",
|
|
225748
|
+
"mouseup",
|
|
225749
|
+
"pointerdown",
|
|
225750
|
+
"pointermove",
|
|
225751
|
+
"pointerout",
|
|
225752
|
+
"pointerover",
|
|
225753
|
+
"pointerup",
|
|
225754
|
+
"touchend",
|
|
225755
|
+
"touchmove",
|
|
225756
|
+
"touchstart"
|
|
225757
|
+
]);
|
|
225758
|
+
const SVGElements = /*#__PURE__*/ new Set([
|
|
225759
|
+
"altGlyph",
|
|
225760
|
+
"altGlyphDef",
|
|
225761
|
+
"altGlyphItem",
|
|
225762
|
+
"animate",
|
|
225763
|
+
"animateColor",
|
|
225764
|
+
"animateMotion",
|
|
225765
|
+
"animateTransform",
|
|
225766
|
+
"circle",
|
|
225767
|
+
"clipPath",
|
|
225768
|
+
"color-profile",
|
|
225769
|
+
"cursor",
|
|
225770
|
+
"defs",
|
|
225771
|
+
"desc",
|
|
225772
|
+
"ellipse",
|
|
225773
|
+
"feBlend",
|
|
225774
|
+
"feColorMatrix",
|
|
225775
|
+
"feComponentTransfer",
|
|
225776
|
+
"feComposite",
|
|
225777
|
+
"feConvolveMatrix",
|
|
225778
|
+
"feDiffuseLighting",
|
|
225779
|
+
"feDisplacementMap",
|
|
225780
|
+
"feDistantLight",
|
|
225781
|
+
"feDropShadow",
|
|
225782
|
+
"feFlood",
|
|
225783
|
+
"feFuncA",
|
|
225784
|
+
"feFuncB",
|
|
225785
|
+
"feFuncG",
|
|
225786
|
+
"feFuncR",
|
|
225787
|
+
"feGaussianBlur",
|
|
225788
|
+
"feImage",
|
|
225789
|
+
"feMerge",
|
|
225790
|
+
"feMergeNode",
|
|
225791
|
+
"feMorphology",
|
|
225792
|
+
"feOffset",
|
|
225793
|
+
"fePointLight",
|
|
225794
|
+
"feSpecularLighting",
|
|
225795
|
+
"feSpotLight",
|
|
225796
|
+
"feTile",
|
|
225797
|
+
"feTurbulence",
|
|
225798
|
+
"filter",
|
|
225799
|
+
"font",
|
|
225800
|
+
"font-face",
|
|
225801
|
+
"font-face-format",
|
|
225802
|
+
"font-face-name",
|
|
225803
|
+
"font-face-src",
|
|
225804
|
+
"font-face-uri",
|
|
225805
|
+
"foreignObject",
|
|
225806
|
+
"g",
|
|
225807
|
+
"glyph",
|
|
225808
|
+
"glyphRef",
|
|
225809
|
+
"hkern",
|
|
225810
|
+
"image",
|
|
225811
|
+
"line",
|
|
225812
|
+
"linearGradient",
|
|
225813
|
+
"marker",
|
|
225814
|
+
"mask",
|
|
225815
|
+
"metadata",
|
|
225816
|
+
"missing-glyph",
|
|
225817
|
+
"mpath",
|
|
225818
|
+
"path",
|
|
225819
|
+
"pattern",
|
|
225820
|
+
"polygon",
|
|
225821
|
+
"polyline",
|
|
225822
|
+
"radialGradient",
|
|
225823
|
+
"rect",
|
|
225824
|
+
"set",
|
|
225825
|
+
"stop",
|
|
225826
|
+
"svg",
|
|
225827
|
+
"switch",
|
|
225828
|
+
"symbol",
|
|
225829
|
+
"text",
|
|
225830
|
+
"textPath",
|
|
225831
|
+
"tref",
|
|
225832
|
+
"tspan",
|
|
225833
|
+
"use",
|
|
225834
|
+
"view",
|
|
225835
|
+
"vkern"
|
|
225836
|
+
]);
|
|
225493
225837
|
const SVGNamespace = {
|
|
225494
225838
|
xlink: "http://www.w3.org/1999/xlink",
|
|
225495
225839
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
225496
225840
|
};
|
|
225497
|
-
const DOMElements = /*#__PURE__*/new Set([
|
|
225841
|
+
const DOMElements = /*#__PURE__*/ new Set([
|
|
225842
|
+
"html",
|
|
225843
|
+
"base",
|
|
225844
|
+
"head",
|
|
225845
|
+
"link",
|
|
225846
|
+
"meta",
|
|
225847
|
+
"style",
|
|
225848
|
+
"title",
|
|
225849
|
+
"body",
|
|
225850
|
+
"address",
|
|
225851
|
+
"article",
|
|
225852
|
+
"aside",
|
|
225853
|
+
"footer",
|
|
225854
|
+
"header",
|
|
225855
|
+
"main",
|
|
225856
|
+
"nav",
|
|
225857
|
+
"section",
|
|
225858
|
+
"body",
|
|
225859
|
+
"blockquote",
|
|
225860
|
+
"dd",
|
|
225861
|
+
"div",
|
|
225862
|
+
"dl",
|
|
225863
|
+
"dt",
|
|
225864
|
+
"figcaption",
|
|
225865
|
+
"figure",
|
|
225866
|
+
"hr",
|
|
225867
|
+
"li",
|
|
225868
|
+
"ol",
|
|
225869
|
+
"p",
|
|
225870
|
+
"pre",
|
|
225871
|
+
"ul",
|
|
225872
|
+
"a",
|
|
225873
|
+
"abbr",
|
|
225874
|
+
"b",
|
|
225875
|
+
"bdi",
|
|
225876
|
+
"bdo",
|
|
225877
|
+
"br",
|
|
225878
|
+
"cite",
|
|
225879
|
+
"code",
|
|
225880
|
+
"data",
|
|
225881
|
+
"dfn",
|
|
225882
|
+
"em",
|
|
225883
|
+
"i",
|
|
225884
|
+
"kbd",
|
|
225885
|
+
"mark",
|
|
225886
|
+
"q",
|
|
225887
|
+
"rp",
|
|
225888
|
+
"rt",
|
|
225889
|
+
"ruby",
|
|
225890
|
+
"s",
|
|
225891
|
+
"samp",
|
|
225892
|
+
"small",
|
|
225893
|
+
"span",
|
|
225894
|
+
"strong",
|
|
225895
|
+
"sub",
|
|
225896
|
+
"sup",
|
|
225897
|
+
"time",
|
|
225898
|
+
"u",
|
|
225899
|
+
"var",
|
|
225900
|
+
"wbr",
|
|
225901
|
+
"area",
|
|
225902
|
+
"audio",
|
|
225903
|
+
"img",
|
|
225904
|
+
"map",
|
|
225905
|
+
"track",
|
|
225906
|
+
"video",
|
|
225907
|
+
"embed",
|
|
225908
|
+
"iframe",
|
|
225909
|
+
"object",
|
|
225910
|
+
"param",
|
|
225911
|
+
"picture",
|
|
225912
|
+
"portal",
|
|
225913
|
+
"source",
|
|
225914
|
+
"svg",
|
|
225915
|
+
"math",
|
|
225916
|
+
"canvas",
|
|
225917
|
+
"noscript",
|
|
225918
|
+
"script",
|
|
225919
|
+
"del",
|
|
225920
|
+
"ins",
|
|
225921
|
+
"caption",
|
|
225922
|
+
"col",
|
|
225923
|
+
"colgroup",
|
|
225924
|
+
"table",
|
|
225925
|
+
"tbody",
|
|
225926
|
+
"td",
|
|
225927
|
+
"tfoot",
|
|
225928
|
+
"th",
|
|
225929
|
+
"thead",
|
|
225930
|
+
"tr",
|
|
225931
|
+
"button",
|
|
225932
|
+
"datalist",
|
|
225933
|
+
"fieldset",
|
|
225934
|
+
"form",
|
|
225935
|
+
"input",
|
|
225936
|
+
"label",
|
|
225937
|
+
"legend",
|
|
225938
|
+
"meter",
|
|
225939
|
+
"optgroup",
|
|
225940
|
+
"option",
|
|
225941
|
+
"output",
|
|
225942
|
+
"progress",
|
|
225943
|
+
"select",
|
|
225944
|
+
"textarea",
|
|
225945
|
+
"details",
|
|
225946
|
+
"dialog",
|
|
225947
|
+
"menu",
|
|
225948
|
+
"summary",
|
|
225949
|
+
"details",
|
|
225950
|
+
"slot",
|
|
225951
|
+
"template",
|
|
225952
|
+
"acronym",
|
|
225953
|
+
"applet",
|
|
225954
|
+
"basefont",
|
|
225955
|
+
"bgsound",
|
|
225956
|
+
"big",
|
|
225957
|
+
"blink",
|
|
225958
|
+
"center",
|
|
225959
|
+
"content",
|
|
225960
|
+
"dir",
|
|
225961
|
+
"font",
|
|
225962
|
+
"frame",
|
|
225963
|
+
"frameset",
|
|
225964
|
+
"hgroup",
|
|
225965
|
+
"image",
|
|
225966
|
+
"keygen",
|
|
225967
|
+
"marquee",
|
|
225968
|
+
"menuitem",
|
|
225969
|
+
"nobr",
|
|
225970
|
+
"noembed",
|
|
225971
|
+
"noframes",
|
|
225972
|
+
"plaintext",
|
|
225973
|
+
"rb",
|
|
225974
|
+
"rtc",
|
|
225975
|
+
"shadow",
|
|
225976
|
+
"spacer",
|
|
225977
|
+
"strike",
|
|
225978
|
+
"tt",
|
|
225979
|
+
"xmp",
|
|
225980
|
+
"a",
|
|
225981
|
+
"abbr",
|
|
225982
|
+
"acronym",
|
|
225983
|
+
"address",
|
|
225984
|
+
"applet",
|
|
225985
|
+
"area",
|
|
225986
|
+
"article",
|
|
225987
|
+
"aside",
|
|
225988
|
+
"audio",
|
|
225989
|
+
"b",
|
|
225990
|
+
"base",
|
|
225991
|
+
"basefont",
|
|
225992
|
+
"bdi",
|
|
225993
|
+
"bdo",
|
|
225994
|
+
"bgsound",
|
|
225995
|
+
"big",
|
|
225996
|
+
"blink",
|
|
225997
|
+
"blockquote",
|
|
225998
|
+
"body",
|
|
225999
|
+
"br",
|
|
226000
|
+
"button",
|
|
226001
|
+
"canvas",
|
|
226002
|
+
"caption",
|
|
226003
|
+
"center",
|
|
226004
|
+
"cite",
|
|
226005
|
+
"code",
|
|
226006
|
+
"col",
|
|
226007
|
+
"colgroup",
|
|
226008
|
+
"content",
|
|
226009
|
+
"data",
|
|
226010
|
+
"datalist",
|
|
226011
|
+
"dd",
|
|
226012
|
+
"del",
|
|
226013
|
+
"details",
|
|
226014
|
+
"dfn",
|
|
226015
|
+
"dialog",
|
|
226016
|
+
"dir",
|
|
226017
|
+
"div",
|
|
226018
|
+
"dl",
|
|
226019
|
+
"dt",
|
|
226020
|
+
"em",
|
|
226021
|
+
"embed",
|
|
226022
|
+
"fieldset",
|
|
226023
|
+
"figcaption",
|
|
226024
|
+
"figure",
|
|
226025
|
+
"font",
|
|
226026
|
+
"footer",
|
|
226027
|
+
"form",
|
|
226028
|
+
"frame",
|
|
226029
|
+
"frameset",
|
|
226030
|
+
"head",
|
|
226031
|
+
"header",
|
|
226032
|
+
"hgroup",
|
|
226033
|
+
"hr",
|
|
226034
|
+
"html",
|
|
226035
|
+
"i",
|
|
226036
|
+
"iframe",
|
|
226037
|
+
"image",
|
|
226038
|
+
"img",
|
|
226039
|
+
"input",
|
|
226040
|
+
"ins",
|
|
226041
|
+
"kbd",
|
|
226042
|
+
"keygen",
|
|
226043
|
+
"label",
|
|
226044
|
+
"legend",
|
|
226045
|
+
"li",
|
|
226046
|
+
"link",
|
|
226047
|
+
"main",
|
|
226048
|
+
"map",
|
|
226049
|
+
"mark",
|
|
226050
|
+
"marquee",
|
|
226051
|
+
"menu",
|
|
226052
|
+
"menuitem",
|
|
226053
|
+
"meta",
|
|
226054
|
+
"meter",
|
|
226055
|
+
"nav",
|
|
226056
|
+
"nobr",
|
|
226057
|
+
"noembed",
|
|
226058
|
+
"noframes",
|
|
226059
|
+
"noscript",
|
|
226060
|
+
"object",
|
|
226061
|
+
"ol",
|
|
226062
|
+
"optgroup",
|
|
226063
|
+
"option",
|
|
226064
|
+
"output",
|
|
226065
|
+
"p",
|
|
226066
|
+
"param",
|
|
226067
|
+
"picture",
|
|
226068
|
+
"plaintext",
|
|
226069
|
+
"portal",
|
|
226070
|
+
"pre",
|
|
226071
|
+
"progress",
|
|
226072
|
+
"q",
|
|
226073
|
+
"rb",
|
|
226074
|
+
"rp",
|
|
226075
|
+
"rt",
|
|
226076
|
+
"rtc",
|
|
226077
|
+
"ruby",
|
|
226078
|
+
"s",
|
|
226079
|
+
"samp",
|
|
226080
|
+
"script",
|
|
226081
|
+
"section",
|
|
226082
|
+
"select",
|
|
226083
|
+
"shadow",
|
|
226084
|
+
"slot",
|
|
226085
|
+
"small",
|
|
226086
|
+
"source",
|
|
226087
|
+
"spacer",
|
|
226088
|
+
"span",
|
|
226089
|
+
"strike",
|
|
226090
|
+
"strong",
|
|
226091
|
+
"style",
|
|
226092
|
+
"sub",
|
|
226093
|
+
"summary",
|
|
226094
|
+
"sup",
|
|
226095
|
+
"table",
|
|
226096
|
+
"tbody",
|
|
226097
|
+
"td",
|
|
226098
|
+
"template",
|
|
226099
|
+
"textarea",
|
|
226100
|
+
"tfoot",
|
|
226101
|
+
"th",
|
|
226102
|
+
"thead",
|
|
226103
|
+
"time",
|
|
226104
|
+
"title",
|
|
226105
|
+
"tr",
|
|
226106
|
+
"track",
|
|
226107
|
+
"tt",
|
|
226108
|
+
"u",
|
|
226109
|
+
"ul",
|
|
226110
|
+
"var",
|
|
226111
|
+
"video",
|
|
226112
|
+
"wbr",
|
|
226113
|
+
"xmp",
|
|
226114
|
+
"input",
|
|
226115
|
+
"h1",
|
|
226116
|
+
"h2",
|
|
226117
|
+
"h3",
|
|
226118
|
+
"h4",
|
|
226119
|
+
"h5",
|
|
226120
|
+
"h6"
|
|
226121
|
+
]);
|
|
225498
226122
|
|
|
225499
226123
|
function reconcileArrays(parentNode, a, b) {
|
|
225500
226124
|
let bLength = b.length,
|
|
@@ -225515,7 +226139,7 @@ function reconcileArrays(parentNode, a, b) {
|
|
|
225515
226139
|
bEnd--;
|
|
225516
226140
|
}
|
|
225517
226141
|
if (aEnd === aStart) {
|
|
225518
|
-
const node = bEnd < bLength ? bStart ? b[bStart - 1].nextSibling : b[bEnd - bStart] : after;
|
|
226142
|
+
const node = bEnd < bLength ? (bStart ? b[bStart - 1].nextSibling : b[bEnd - bStart]) : after;
|
|
225519
226143
|
while (bStart < bEnd) parentNode.insertBefore(b[bStart++], node);
|
|
225520
226144
|
} else if (bEnd === bStart) {
|
|
225521
226145
|
while (aStart < aEnd) {
|
|
@@ -225555,25 +226179,37 @@ function reconcileArrays(parentNode, a, b) {
|
|
|
225555
226179
|
|
|
225556
226180
|
const $$EVENTS = "_$DX_DELEGATE";
|
|
225557
226181
|
function render(code, element, init, options = {}) {
|
|
226182
|
+
if (!element) {
|
|
226183
|
+
throw new Error(
|
|
226184
|
+
"The `element` passed to `render(..., element)` doesn't exist. Make sure `element` exists in the document."
|
|
226185
|
+
);
|
|
226186
|
+
}
|
|
225558
226187
|
let disposer;
|
|
225559
226188
|
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRoot)(dispose => {
|
|
225560
226189
|
disposer = dispose;
|
|
225561
|
-
element === document
|
|
226190
|
+
element === document
|
|
226191
|
+
? code()
|
|
226192
|
+
: insert(element, code(), element.firstChild ? null : undefined, init);
|
|
225562
226193
|
}, options.owner);
|
|
225563
226194
|
return () => {
|
|
225564
226195
|
disposer();
|
|
225565
226196
|
element.textContent = "";
|
|
225566
226197
|
};
|
|
225567
226198
|
}
|
|
225568
|
-
function template(html,
|
|
226199
|
+
function template(html, isImportNode, isSVG) {
|
|
225569
226200
|
let node;
|
|
225570
226201
|
const create = () => {
|
|
225571
|
-
if (
|
|
226202
|
+
if (isHydrating())
|
|
226203
|
+
throw new Error(
|
|
226204
|
+
"Failed attempt to create new DOM elements during hydration. Check that the libraries you are using support hydration."
|
|
226205
|
+
);
|
|
225572
226206
|
const t = document.createElement("template");
|
|
225573
226207
|
t.innerHTML = html;
|
|
225574
226208
|
return isSVG ? t.content.firstChild.firstChild : t.content.firstChild;
|
|
225575
226209
|
};
|
|
225576
|
-
const fn =
|
|
226210
|
+
const fn = isImportNode
|
|
226211
|
+
? () => (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.untrack)(() => document.importNode(node || (node = create()), true))
|
|
226212
|
+
: () => (node || (node = create())).cloneNode(true);
|
|
225577
226213
|
fn.cloneNode = fn;
|
|
225578
226214
|
return fn;
|
|
225579
226215
|
}
|
|
@@ -225594,19 +226230,27 @@ function clearDelegatedEvents(document = window.document) {
|
|
|
225594
226230
|
}
|
|
225595
226231
|
}
|
|
225596
226232
|
function setProperty(node, name, value) {
|
|
225597
|
-
|
|
226233
|
+
if (isHydrating(node)) return;
|
|
226234
|
+
node[name] = value;
|
|
225598
226235
|
}
|
|
225599
226236
|
function setAttribute(node, name, value) {
|
|
225600
|
-
if (
|
|
225601
|
-
if (value == null) node.removeAttribute(name);
|
|
226237
|
+
if (isHydrating(node)) return;
|
|
226238
|
+
if (value == null) node.removeAttribute(name);
|
|
226239
|
+
else node.setAttribute(name, value);
|
|
225602
226240
|
}
|
|
225603
226241
|
function setAttributeNS(node, namespace, name, value) {
|
|
225604
|
-
if (
|
|
225605
|
-
if (value == null) node.removeAttributeNS(namespace, name);
|
|
226242
|
+
if (isHydrating(node)) return;
|
|
226243
|
+
if (value == null) node.removeAttributeNS(namespace, name);
|
|
226244
|
+
else node.setAttributeNS(namespace, name, value);
|
|
226245
|
+
}
|
|
226246
|
+
function setBoolAttribute(node, name, value) {
|
|
226247
|
+
if (isHydrating(node)) return;
|
|
226248
|
+
value ? node.setAttribute(name, "") : node.removeAttribute(name);
|
|
225606
226249
|
}
|
|
225607
226250
|
function className(node, value) {
|
|
225608
|
-
if (
|
|
225609
|
-
if (value == null) node.removeAttribute("class");
|
|
226251
|
+
if (isHydrating(node)) return;
|
|
226252
|
+
if (value == null) node.removeAttribute("class");
|
|
226253
|
+
else node.className = value;
|
|
225610
226254
|
}
|
|
225611
226255
|
function addEventListener(node, name, handler, delegate) {
|
|
225612
226256
|
if (delegate) {
|
|
@@ -225616,8 +226260,8 @@ function addEventListener(node, name, handler, delegate) {
|
|
|
225616
226260
|
} else node[`$$${name}`] = handler;
|
|
225617
226261
|
} else if (Array.isArray(handler)) {
|
|
225618
226262
|
const handlerFn = handler[0];
|
|
225619
|
-
node.addEventListener(name, handler[0] = e => handlerFn.call(node, handler[1], e));
|
|
225620
|
-
} else node.addEventListener(name, handler);
|
|
226263
|
+
node.addEventListener(name, (handler[0] = e => handlerFn.call(node, handler[1], e)));
|
|
226264
|
+
} else node.addEventListener(name, handler, typeof handler !== "function" && handler);
|
|
225621
226265
|
}
|
|
225622
226266
|
function classList(node, value, prev = {}) {
|
|
225623
226267
|
const classKeys = Object.keys(value || {}),
|
|
@@ -225641,7 +226285,7 @@ function classList(node, value, prev = {}) {
|
|
|
225641
226285
|
function style(node, value, prev) {
|
|
225642
226286
|
if (!value) return prev ? setAttribute(node, "style") : value;
|
|
225643
226287
|
const nodeStyle = node.style;
|
|
225644
|
-
if (typeof value === "string") return nodeStyle.cssText = value;
|
|
226288
|
+
if (typeof value === "string") return (nodeStyle.cssText = value);
|
|
225645
226289
|
typeof prev === "string" && (nodeStyle.cssText = prev = undefined);
|
|
225646
226290
|
prev || (prev = {});
|
|
225647
226291
|
value || (value = {});
|
|
@@ -225662,9 +226306,11 @@ function style(node, value, prev) {
|
|
|
225662
226306
|
function spread(node, props = {}, isSVG, skipChildren) {
|
|
225663
226307
|
const prevProps = {};
|
|
225664
226308
|
if (!skipChildren) {
|
|
225665
|
-
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(
|
|
226309
|
+
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(
|
|
226310
|
+
() => (prevProps.children = insertExpression(node, props.children, prevProps.children))
|
|
226311
|
+
);
|
|
225666
226312
|
}
|
|
225667
|
-
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => props.ref && props.ref
|
|
226313
|
+
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => typeof props.ref === "function" && use(props.ref, node));
|
|
225668
226314
|
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => assign(node, props, isSVG, true, prevProps, true));
|
|
225669
226315
|
return prevProps;
|
|
225670
226316
|
}
|
|
@@ -225691,7 +226337,7 @@ function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = fals
|
|
|
225691
226337
|
for (const prop in prevProps) {
|
|
225692
226338
|
if (!(prop in props)) {
|
|
225693
226339
|
if (prop === "children") continue;
|
|
225694
|
-
prevProps[prop] = assignProp(node, prop, null, prevProps[prop], isSVG, skipRef);
|
|
226340
|
+
prevProps[prop] = assignProp(node, prop, null, prevProps[prop], isSVG, skipRef, props);
|
|
225695
226341
|
}
|
|
225696
226342
|
}
|
|
225697
226343
|
for (const prop in props) {
|
|
@@ -225700,10 +226346,11 @@ function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = fals
|
|
|
225700
226346
|
continue;
|
|
225701
226347
|
}
|
|
225702
226348
|
const value = props[prop];
|
|
225703
|
-
prevProps[prop] = assignProp(node, prop, value, prevProps[prop], isSVG, skipRef);
|
|
226349
|
+
prevProps[prop] = assignProp(node, prop, value, prevProps[prop], isSVG, skipRef, props);
|
|
225704
226350
|
}
|
|
225705
226351
|
}
|
|
225706
226352
|
function hydrate$1(code, element, options = {}) {
|
|
226353
|
+
if (globalThis._$HY.done) return render(code, element, [...element.childNodes], options);
|
|
225707
226354
|
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.completed = globalThis._$HY.completed;
|
|
225708
226355
|
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events = globalThis._$HY.events;
|
|
225709
226356
|
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.load = id => globalThis._$HY.r[id];
|
|
@@ -225714,15 +226361,26 @@ function hydrate$1(code, element, options = {}) {
|
|
|
225714
226361
|
id: options.renderId || "",
|
|
225715
226362
|
count: 0
|
|
225716
226363
|
};
|
|
225717
|
-
|
|
225718
|
-
|
|
225719
|
-
|
|
225720
|
-
|
|
226364
|
+
try {
|
|
226365
|
+
gatherHydratable(element, options.renderId);
|
|
226366
|
+
return render(code, element, [...element.childNodes], options);
|
|
226367
|
+
} finally {
|
|
226368
|
+
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context = null;
|
|
226369
|
+
}
|
|
225721
226370
|
}
|
|
225722
226371
|
function getNextElement(template) {
|
|
225723
|
-
let node,
|
|
225724
|
-
|
|
225725
|
-
|
|
226372
|
+
let node,
|
|
226373
|
+
key,
|
|
226374
|
+
hydrating = isHydrating();
|
|
226375
|
+
if (!hydrating || !(node = solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry.get((key = getHydrationKey())))) {
|
|
226376
|
+
if (hydrating) {
|
|
226377
|
+
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.done = true;
|
|
226378
|
+
throw new Error(
|
|
226379
|
+
`Hydration Mismatch. Unable to find DOM nodes for hydration key: ${key}\n${
|
|
226380
|
+
template ? template().outerHTML : ""
|
|
226381
|
+
}`
|
|
226382
|
+
);
|
|
226383
|
+
}
|
|
225726
226384
|
return template();
|
|
225727
226385
|
}
|
|
225728
226386
|
if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.completed) solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.completed.add(node);
|
|
@@ -225737,11 +226395,12 @@ function getNextMarker(start) {
|
|
|
225737
226395
|
let end = start,
|
|
225738
226396
|
count = 0,
|
|
225739
226397
|
current = [];
|
|
225740
|
-
if (
|
|
226398
|
+
if (isHydrating(start)) {
|
|
225741
226399
|
while (end) {
|
|
225742
226400
|
if (end.nodeType === 8) {
|
|
225743
226401
|
const v = end.nodeValue;
|
|
225744
|
-
if (v === "$") count++;
|
|
226402
|
+
if (v === "$") count++;
|
|
226403
|
+
else if (v === "/") {
|
|
225745
226404
|
if (count === 0) return [end, current];
|
|
225746
226405
|
count--;
|
|
225747
226406
|
}
|
|
@@ -225755,29 +226414,35 @@ function getNextMarker(start) {
|
|
|
225755
226414
|
function runHydrationEvents() {
|
|
225756
226415
|
if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events && !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events.queued) {
|
|
225757
226416
|
queueMicrotask(() => {
|
|
225758
|
-
const {
|
|
225759
|
-
|
|
225760
|
-
events
|
|
225761
|
-
} = solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig;
|
|
226417
|
+
const { completed, events } = solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig;
|
|
226418
|
+
if (!events) return;
|
|
225762
226419
|
events.queued = false;
|
|
225763
226420
|
while (events.length) {
|
|
225764
226421
|
const [el, e] = events[0];
|
|
225765
226422
|
if (!completed.has(el)) return;
|
|
225766
|
-
eventHandler(e);
|
|
225767
226423
|
events.shift();
|
|
226424
|
+
eventHandler(e);
|
|
226425
|
+
}
|
|
226426
|
+
if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.done) {
|
|
226427
|
+
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events = _$HY.events = null;
|
|
226428
|
+
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.completed = _$HY.completed = null;
|
|
225768
226429
|
}
|
|
225769
226430
|
});
|
|
225770
226431
|
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events.queued = true;
|
|
225771
226432
|
}
|
|
225772
226433
|
}
|
|
226434
|
+
function isHydrating(node) {
|
|
226435
|
+
return !!solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context && !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.done && (!node || node.isConnected);
|
|
226436
|
+
}
|
|
225773
226437
|
function toPropertyName(name) {
|
|
225774
226438
|
return name.toLowerCase().replace(/-([a-z])/g, (_, w) => w.toUpperCase());
|
|
225775
226439
|
}
|
|
225776
226440
|
function toggleClassKey(node, key, value) {
|
|
225777
226441
|
const classNames = key.trim().split(/\s+/);
|
|
225778
|
-
for (let i = 0, nameLen = classNames.length; i < nameLen; i++)
|
|
226442
|
+
for (let i = 0, nameLen = classNames.length; i < nameLen; i++)
|
|
226443
|
+
node.classList.toggle(classNames[i], value);
|
|
225779
226444
|
}
|
|
225780
|
-
function assignProp(node, prop, value, prev, isSVG, skipRef) {
|
|
226445
|
+
function assignProp(node, prop, value, prev, isSVG, skipRef, props) {
|
|
225781
226446
|
let isCE, isProp, isChildProp, propAlias, forceProp;
|
|
225782
226447
|
if (prop === "style") return style(node, value, prev);
|
|
225783
226448
|
if (prop === "classList") return classList(node, value, prev);
|
|
@@ -225786,8 +226451,8 @@ function assignProp(node, prop, value, prev, isSVG, skipRef) {
|
|
|
225786
226451
|
if (!skipRef) value(node);
|
|
225787
226452
|
} else if (prop.slice(0, 3) === "on:") {
|
|
225788
226453
|
const e = prop.slice(3);
|
|
225789
|
-
prev && node.removeEventListener(e, prev);
|
|
225790
|
-
value && node.addEventListener(e, value);
|
|
226454
|
+
prev && node.removeEventListener(e, prev, typeof prev !== "function" && prev);
|
|
226455
|
+
value && node.addEventListener(e, value, typeof value !== "function" && value);
|
|
225791
226456
|
} else if (prop.slice(0, 10) === "oncapture:") {
|
|
225792
226457
|
const e = prop.slice(10);
|
|
225793
226458
|
prev && node.removeEventListener(e, prev, true);
|
|
@@ -225805,27 +226470,59 @@ function assignProp(node, prop, value, prev, isSVG, skipRef) {
|
|
|
225805
226470
|
}
|
|
225806
226471
|
} else if (prop.slice(0, 5) === "attr:") {
|
|
225807
226472
|
setAttribute(node, prop.slice(5), value);
|
|
225808
|
-
} else if (
|
|
226473
|
+
} else if (prop.slice(0, 5) === "bool:") {
|
|
226474
|
+
setBoolAttribute(node, prop.slice(5), value);
|
|
226475
|
+
} else if (
|
|
226476
|
+
(forceProp = prop.slice(0, 5) === "prop:") ||
|
|
226477
|
+
(isChildProp = ChildProperties.has(prop)) ||
|
|
226478
|
+
(!isSVG &&
|
|
226479
|
+
((propAlias = getPropAlias(prop, node.tagName)) || (isProp = Properties.has(prop)))) ||
|
|
226480
|
+
(isCE = node.nodeName.includes("-") || "is" in props)
|
|
226481
|
+
) {
|
|
225809
226482
|
if (forceProp) {
|
|
225810
226483
|
prop = prop.slice(5);
|
|
225811
226484
|
isProp = true;
|
|
225812
|
-
} else if (
|
|
225813
|
-
if (prop === "class" || prop === "className") className(node, value);
|
|
226485
|
+
} else if (isHydrating(node)) return value;
|
|
226486
|
+
if (prop === "class" || prop === "className") className(node, value);
|
|
226487
|
+
else if (isCE && !isProp && !isChildProp) node[toPropertyName(prop)] = value;
|
|
226488
|
+
else node[propAlias || prop] = value;
|
|
225814
226489
|
} else {
|
|
225815
226490
|
const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
|
|
225816
|
-
if (ns) setAttributeNS(node, ns, prop, value);
|
|
226491
|
+
if (ns) setAttributeNS(node, ns, prop, value);
|
|
226492
|
+
else setAttribute(node, Aliases[prop] || prop, value);
|
|
225817
226493
|
}
|
|
225818
226494
|
return value;
|
|
225819
226495
|
}
|
|
225820
226496
|
function eventHandler(e) {
|
|
226497
|
+
if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry && solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events) {
|
|
226498
|
+
if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events.find(([el, ev]) => ev === e)) return;
|
|
226499
|
+
}
|
|
226500
|
+
let node = e.target;
|
|
225821
226501
|
const key = `$$${e.type}`;
|
|
225822
|
-
|
|
225823
|
-
|
|
226502
|
+
const oriTarget = e.target;
|
|
226503
|
+
const oriCurrentTarget = e.currentTarget;
|
|
226504
|
+
const retarget = value =>
|
|
225824
226505
|
Object.defineProperty(e, "target", {
|
|
225825
226506
|
configurable: true,
|
|
225826
|
-
value
|
|
226507
|
+
value
|
|
225827
226508
|
});
|
|
225828
|
-
|
|
226509
|
+
const handleNode = () => {
|
|
226510
|
+
const handler = node[key];
|
|
226511
|
+
if (handler && !node.disabled) {
|
|
226512
|
+
const data = node[`${key}Data`];
|
|
226513
|
+
data !== undefined ? handler.call(node, data, e) : handler.call(node, e);
|
|
226514
|
+
if (e.cancelBubble) return;
|
|
226515
|
+
}
|
|
226516
|
+
node.host &&
|
|
226517
|
+
typeof node.host !== "string" &&
|
|
226518
|
+
!node.host._$host &&
|
|
226519
|
+
node.contains(e.target) &&
|
|
226520
|
+
retarget(node.host);
|
|
226521
|
+
return true;
|
|
226522
|
+
};
|
|
226523
|
+
const walkUpTree = () => {
|
|
226524
|
+
while (handleNode() && (node = node._$host || node.parentNode || node.host));
|
|
226525
|
+
};
|
|
225829
226526
|
Object.defineProperty(e, "currentTarget", {
|
|
225830
226527
|
configurable: true,
|
|
225831
226528
|
get() {
|
|
@@ -225833,23 +226530,33 @@ function eventHandler(e) {
|
|
|
225833
226530
|
}
|
|
225834
226531
|
});
|
|
225835
226532
|
if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry && !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.done) solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.done = _$HY.done = true;
|
|
225836
|
-
|
|
225837
|
-
const
|
|
225838
|
-
|
|
225839
|
-
|
|
225840
|
-
|
|
225841
|
-
if (
|
|
226533
|
+
if (e.composedPath) {
|
|
226534
|
+
const path = e.composedPath();
|
|
226535
|
+
retarget(path[0]);
|
|
226536
|
+
for (let i = 0; i < path.length - 2; i++) {
|
|
226537
|
+
node = path[i];
|
|
226538
|
+
if (!handleNode()) break;
|
|
226539
|
+
if (node._$host) {
|
|
226540
|
+
node = node._$host;
|
|
226541
|
+
walkUpTree();
|
|
226542
|
+
break;
|
|
226543
|
+
}
|
|
226544
|
+
if (node.parentNode === oriCurrentTarget) {
|
|
226545
|
+
break;
|
|
226546
|
+
}
|
|
225842
226547
|
}
|
|
225843
|
-
|
|
225844
|
-
|
|
226548
|
+
} else walkUpTree();
|
|
226549
|
+
retarget(oriTarget);
|
|
225845
226550
|
}
|
|
225846
226551
|
function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
225847
|
-
|
|
226552
|
+
const hydrating = isHydrating(parent);
|
|
226553
|
+
if (hydrating) {
|
|
225848
226554
|
!current && (current = [...parent.childNodes]);
|
|
225849
226555
|
let cleaned = [];
|
|
225850
226556
|
for (let i = 0; i < current.length; i++) {
|
|
225851
226557
|
const node = current[i];
|
|
225852
|
-
if (node.nodeType === 8 && node.data.slice(0, 2) === "!$") node.remove();
|
|
226558
|
+
if (node.nodeType === 8 && node.data.slice(0, 2) === "!$") node.remove();
|
|
226559
|
+
else cleaned.push(node);
|
|
225853
226560
|
}
|
|
225854
226561
|
current = cleaned;
|
|
225855
226562
|
}
|
|
@@ -225857,14 +226564,17 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
225857
226564
|
if (value === current) return current;
|
|
225858
226565
|
const t = typeof value,
|
|
225859
226566
|
multi = marker !== undefined;
|
|
225860
|
-
parent = multi && current[0] && current[0].parentNode || parent;
|
|
226567
|
+
parent = (multi && current[0] && current[0].parentNode) || parent;
|
|
225861
226568
|
if (t === "string" || t === "number") {
|
|
225862
|
-
if (
|
|
225863
|
-
if (t === "number")
|
|
226569
|
+
if (hydrating) return current;
|
|
226570
|
+
if (t === "number") {
|
|
226571
|
+
value = value.toString();
|
|
226572
|
+
if (value === current) return current;
|
|
226573
|
+
}
|
|
225864
226574
|
if (multi) {
|
|
225865
226575
|
let node = current[0];
|
|
225866
226576
|
if (node && node.nodeType === 3) {
|
|
225867
|
-
node.data = value;
|
|
226577
|
+
node.data !== value && (node.data = value);
|
|
225868
226578
|
} else node = document.createTextNode(value);
|
|
225869
226579
|
current = cleanChildren(parent, current, marker, node);
|
|
225870
226580
|
} else {
|
|
@@ -225873,7 +226583,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
225873
226583
|
} else current = parent.textContent = value;
|
|
225874
226584
|
}
|
|
225875
226585
|
} else if (value == null || t === "boolean") {
|
|
225876
|
-
if (
|
|
226586
|
+
if (hydrating) return current;
|
|
225877
226587
|
current = cleanChildren(parent, current, marker);
|
|
225878
226588
|
} else if (t === "function") {
|
|
225879
226589
|
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => {
|
|
@@ -225886,16 +226596,17 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
225886
226596
|
const array = [];
|
|
225887
226597
|
const currentArray = current && Array.isArray(current);
|
|
225888
226598
|
if (normalizeIncomingArray(array, value, current, unwrapArray)) {
|
|
225889
|
-
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => current = insertExpression(parent, array, current, marker, true));
|
|
226599
|
+
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => (current = insertExpression(parent, array, current, marker, true)));
|
|
225890
226600
|
return () => current;
|
|
225891
226601
|
}
|
|
225892
|
-
if (
|
|
226602
|
+
if (hydrating) {
|
|
225893
226603
|
if (!array.length) return current;
|
|
225894
|
-
if (marker === undefined) return [...parent.childNodes];
|
|
226604
|
+
if (marker === undefined) return (current = [...parent.childNodes]);
|
|
225895
226605
|
let node = array[0];
|
|
225896
|
-
|
|
226606
|
+
if (node.parentNode !== parent) return current;
|
|
226607
|
+
const nodes = [node];
|
|
225897
226608
|
while ((node = node.nextSibling) !== marker) nodes.push(node);
|
|
225898
|
-
return current = nodes;
|
|
226609
|
+
return (current = nodes);
|
|
225899
226610
|
}
|
|
225900
226611
|
if (array.length === 0) {
|
|
225901
226612
|
current = cleanChildren(parent, current, marker);
|
|
@@ -225910,9 +226621,9 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
225910
226621
|
}
|
|
225911
226622
|
current = array;
|
|
225912
226623
|
} else if (value.nodeType) {
|
|
225913
|
-
if (
|
|
226624
|
+
if (hydrating && value.parentNode) return (current = multi ? [value] : value);
|
|
225914
226625
|
if (Array.isArray(current)) {
|
|
225915
|
-
if (multi) return current = cleanChildren(parent, current, marker, value);
|
|
226626
|
+
if (multi) return (current = cleanChildren(parent, current, marker, value));
|
|
225916
226627
|
cleanChildren(parent, current, null, value);
|
|
225917
226628
|
} else if (current == null || current === "" || !parent.firstChild) {
|
|
225918
226629
|
parent.appendChild(value);
|
|
@@ -225925,23 +226636,30 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
|
225925
226636
|
let dynamic = false;
|
|
225926
226637
|
for (let i = 0, len = array.length; i < len; i++) {
|
|
225927
226638
|
let item = array[i],
|
|
225928
|
-
prev = current && current[
|
|
226639
|
+
prev = current && current[normalized.length],
|
|
225929
226640
|
t;
|
|
225930
|
-
if (item == null || item === true || item === false)
|
|
226641
|
+
if (item == null || item === true || item === false);
|
|
226642
|
+
else if ((t = typeof item) === "object" && item.nodeType) {
|
|
225931
226643
|
normalized.push(item);
|
|
225932
226644
|
} else if (Array.isArray(item)) {
|
|
225933
226645
|
dynamic = normalizeIncomingArray(normalized, item, prev) || dynamic;
|
|
225934
226646
|
} else if (t === "function") {
|
|
225935
226647
|
if (unwrap) {
|
|
225936
226648
|
while (typeof item === "function") item = item();
|
|
225937
|
-
dynamic =
|
|
226649
|
+
dynamic =
|
|
226650
|
+
normalizeIncomingArray(
|
|
226651
|
+
normalized,
|
|
226652
|
+
Array.isArray(item) ? item : [item],
|
|
226653
|
+
Array.isArray(prev) ? prev : [prev]
|
|
226654
|
+
) || dynamic;
|
|
225938
226655
|
} else {
|
|
225939
226656
|
normalized.push(item);
|
|
225940
226657
|
dynamic = true;
|
|
225941
226658
|
}
|
|
225942
226659
|
} else {
|
|
225943
226660
|
const value = String(item);
|
|
225944
|
-
if (prev && prev.nodeType === 3 && prev.data === value) normalized.push(prev);
|
|
226661
|
+
if (prev && prev.nodeType === 3 && prev.data === value) normalized.push(prev);
|
|
226662
|
+
else normalized.push(document.createTextNode(value));
|
|
225945
226663
|
}
|
|
225946
226664
|
}
|
|
225947
226665
|
return dynamic;
|
|
@@ -225950,7 +226668,7 @@ function appendNodes(parent, array, marker = null) {
|
|
|
225950
226668
|
for (let i = 0, len = array.length; i < len; i++) parent.insertBefore(array[i], marker);
|
|
225951
226669
|
}
|
|
225952
226670
|
function cleanChildren(parent, current, marker, replacement) {
|
|
225953
|
-
if (marker === undefined) return parent.textContent = "";
|
|
226671
|
+
if (marker === undefined) return (parent.textContent = "");
|
|
225954
226672
|
const node = replacement || document.createTextNode("");
|
|
225955
226673
|
if (current.length) {
|
|
225956
226674
|
let inserted = false;
|
|
@@ -225958,7 +226676,9 @@ function cleanChildren(parent, current, marker, replacement) {
|
|
|
225958
226676
|
const el = current[i];
|
|
225959
226677
|
if (node !== el) {
|
|
225960
226678
|
const isParent = el.parentNode === parent;
|
|
225961
|
-
if (!inserted && !i)
|
|
226679
|
+
if (!inserted && !i)
|
|
226680
|
+
isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);
|
|
226681
|
+
else isParent && el.remove();
|
|
225962
226682
|
} else inserted = true;
|
|
225963
226683
|
}
|
|
225964
226684
|
} else parent.insertBefore(node, marker);
|
|
@@ -225969,12 +226689,12 @@ function gatherHydratable(element, root) {
|
|
|
225969
226689
|
for (let i = 0; i < templates.length; i++) {
|
|
225970
226690
|
const node = templates[i];
|
|
225971
226691
|
const key = node.getAttribute("data-hk");
|
|
225972
|
-
if ((!root || key.startsWith(root)) && !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry.has(key))
|
|
226692
|
+
if ((!root || key.startsWith(root)) && !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry.has(key))
|
|
226693
|
+
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry.set(key, node);
|
|
225973
226694
|
}
|
|
225974
226695
|
}
|
|
225975
226696
|
function getHydrationKey() {
|
|
225976
|
-
|
|
225977
|
-
return `${hydrate.id}${hydrate.count++}`;
|
|
226697
|
+
return solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.getNextContextId();
|
|
225978
226698
|
}
|
|
225979
226699
|
function NoHydration(props) {
|
|
225980
226700
|
return solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context ? undefined : props.children;
|
|
@@ -225982,7 +226702,8 @@ function NoHydration(props) {
|
|
|
225982
226702
|
function Hydration(props) {
|
|
225983
226703
|
return props.children;
|
|
225984
226704
|
}
|
|
225985
|
-
|
|
226705
|
+
const voidFn = () => undefined;
|
|
226706
|
+
const RequestContext = Symbol();
|
|
225986
226707
|
function innerHTML(parent, content) {
|
|
225987
226708
|
!solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context && (parent.innerHTML = content);
|
|
225988
226709
|
}
|
|
@@ -226021,42 +226742,47 @@ const hydrate = (...args) => {
|
|
|
226021
226742
|
return hydrate$1(...args);
|
|
226022
226743
|
};
|
|
226023
226744
|
function Portal(props) {
|
|
226024
|
-
const {
|
|
226025
|
-
useShadow
|
|
226026
|
-
} = props,
|
|
226745
|
+
const { useShadow } = props,
|
|
226027
226746
|
marker = document.createTextNode(""),
|
|
226028
226747
|
mount = () => props.mount || document.body,
|
|
226029
226748
|
owner = (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.getOwner)();
|
|
226030
226749
|
let content;
|
|
226031
226750
|
let hydrating = !!solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context;
|
|
226032
|
-
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createEffect)(
|
|
226033
|
-
|
|
226034
|
-
|
|
226035
|
-
|
|
226036
|
-
|
|
226037
|
-
|
|
226038
|
-
|
|
226039
|
-
|
|
226040
|
-
|
|
226041
|
-
|
|
226042
|
-
|
|
226043
|
-
|
|
226044
|
-
|
|
226045
|
-
|
|
226046
|
-
|
|
226047
|
-
|
|
226048
|
-
|
|
226049
|
-
|
|
226050
|
-
|
|
226051
|
-
|
|
226052
|
-
|
|
226053
|
-
|
|
226054
|
-
|
|
226055
|
-
|
|
226751
|
+
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createEffect)(
|
|
226752
|
+
() => {
|
|
226753
|
+
if (hydrating) (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.getOwner)().user = hydrating = false;
|
|
226754
|
+
content || (content = (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.runWithOwner)(owner, () => (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createMemo)(() => props.children)));
|
|
226755
|
+
const el = mount();
|
|
226756
|
+
if (el instanceof HTMLHeadElement) {
|
|
226757
|
+
const [clean, setClean] = (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createSignal)(false);
|
|
226758
|
+
const cleanup = () => setClean(true);
|
|
226759
|
+
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRoot)(dispose => insert(el, () => (!clean() ? content() : dispose()), null));
|
|
226760
|
+
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.onCleanup)(cleanup);
|
|
226761
|
+
} else {
|
|
226762
|
+
const container = createElement(props.isSVG ? "g" : "div", props.isSVG),
|
|
226763
|
+
renderRoot =
|
|
226764
|
+
useShadow && container.attachShadow
|
|
226765
|
+
? container.attachShadow({
|
|
226766
|
+
mode: "open"
|
|
226767
|
+
})
|
|
226768
|
+
: container;
|
|
226769
|
+
Object.defineProperty(container, "_$host", {
|
|
226770
|
+
get() {
|
|
226771
|
+
return marker.parentNode;
|
|
226772
|
+
},
|
|
226773
|
+
configurable: true
|
|
226774
|
+
});
|
|
226775
|
+
insert(renderRoot, content);
|
|
226776
|
+
el.appendChild(container);
|
|
226777
|
+
props.ref && props.ref(container);
|
|
226778
|
+
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.onCleanup)(() => el.removeChild(container));
|
|
226779
|
+
}
|
|
226780
|
+
},
|
|
226781
|
+
undefined,
|
|
226782
|
+
{
|
|
226783
|
+
render: !hydrating
|
|
226056
226784
|
}
|
|
226057
|
-
|
|
226058
|
-
render: !hydrating
|
|
226059
|
-
});
|
|
226785
|
+
);
|
|
226060
226786
|
return marker;
|
|
226061
226787
|
}
|
|
226062
226788
|
function Dynamic(props) {
|
|
@@ -228187,4 +228913,4 @@ root.render(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(piral_
|
|
|
228187
228913
|
|
|
228188
228914
|
/******/ })()
|
|
228189
228915
|
;
|
|
228190
|
-
//# sourceMappingURL=index.
|
|
228916
|
+
//# sourceMappingURL=index.69f5a4.js.map
|