sample-cross-fx 0.15.9-beta.5420 → 0.15.9-beta.5435

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.
@@ -57049,8 +57049,8 @@ __webpack_require__.r(__webpack_exports__);
57049
57049
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
57050
57050
  /* harmony export */ "createConverter": () => (/* binding */ createConverter)
57051
57051
  /* harmony export */ });
57052
- /* harmony import */ var solid_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! solid-js/dom */ "../../../node_modules/solid-js/dist/index.js");
57053
- /* harmony import */ var solid_js_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! solid-js/dom */ "../../../node_modules/solid-js/dist/dom/index.js");
57052
+ /* harmony import */ var solid_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! solid-js/web */ "../../../node_modules/solid-js/dist/dev.js");
57053
+ /* harmony import */ var solid_js_web__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! solid-js/web */ "../../../node_modules/solid-js/web/dist/dev.js");
57054
57054
  /* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./extension */ "../../converters/piral-solid/esm/extension.js");
57055
57055
 
57056
57056
 
@@ -57064,7 +57064,7 @@ function createConverter(config = {}) {
57064
57064
  const convert = root => ({
57065
57065
  mount(el, props, context, locals) {
57066
57066
  locals.update = (props, context) => {
57067
- locals.destroy = (0,solid_js_dom__WEBPACK_IMPORTED_MODULE_1__.render)(() => {
57067
+ locals.destroy = (0,solid_js_web__WEBPACK_IMPORTED_MODULE_1__.render)(() => {
57068
57068
  (0,solid_js__WEBPACK_IMPORTED_MODULE_2__.onCleanup)(() => {
57069
57069
  el.innerHTML = '';
57070
57070
  });
@@ -57145,7 +57145,7 @@ __webpack_require__.r(__webpack_exports__);
57145
57145
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
57146
57146
  /* harmony export */ "createExtension": () => (/* binding */ createExtension)
57147
57147
  /* harmony export */ });
57148
- /* harmony import */ var solid_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! solid-js */ "../../../node_modules/solid-js/dist/index.js");
57148
+ /* harmony import */ var solid_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! solid-js */ "../../../node_modules/solid-js/dist/dev.js");
57149
57149
 
57150
57150
  function createExtension(rootName) {
57151
57151
  return props => {
@@ -63851,12 +63851,12 @@ function installPiralDebug(options) {
63851
63851
  debug: debugApiVersion,
63852
63852
  instance: {
63853
63853
  name: "sample-cross-fx",
63854
- version: "0.15.9-beta.5420",
63855
- 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/dom,piral-ng/common,preact,riot,rxjs,vue,zone.js,tslib,react,react-dom,react-router,react-router-dom"
63854
+ version: "0.15.9-beta.5435",
63855
+ 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"
63856
63856
  },
63857
63857
  build: {
63858
- date: "2023-04-10T09:18:20.188Z",
63859
- cli: "0.15.9-beta.5420",
63858
+ date: "2023-04-11T09:27:34.509Z",
63859
+ cli: "0.15.9-beta.5435",
63860
63860
  compat: "0.15"
63861
63861
  }
63862
63862
  };
@@ -75629,8 +75629,8 @@ __webpack_require__.r(__webpack_exports__);
75629
75629
  /* harmony import */ var _home_vsts_work_1_s_src_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./node_modules/mithril/index.js */ "./node_modules/mithril/index.js");
75630
75630
  /* harmony import */ var _home_vsts_work_1_s_src_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_home_vsts_work_1_s_src_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__);
75631
75631
  /* harmony import */ var _home_vsts_work_1_s_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../node_modules/lit-element/lit-element.js */ "../../../node_modules/lit-element/lit-element.js");
75632
- /* harmony import */ var _home_vsts_work_1_s_node_modules_solid_js_dist_index_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../../node_modules/solid-js/dist/index.js */ "../../../node_modules/solid-js/dist/index.js");
75633
- /* harmony import */ var _home_vsts_work_1_s_node_modules_solid_js_dist_dom_index_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../../node_modules/solid-js/dist/dom/index.js */ "../../../node_modules/solid-js/dist/dom/index.js");
75632
+ /* harmony import */ var _home_vsts_work_1_s_node_modules_solid_js_dist_dev_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../../node_modules/solid-js/dist/dev.js */ "../../../node_modules/solid-js/dist/dev.js");
75633
+ /* harmony import */ var _home_vsts_work_1_s_node_modules_solid_js_web_dist_dev_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../../node_modules/solid-js/web/dist/dev.js */ "../../../node_modules/solid-js/web/dist/dev.js");
75634
75634
  /* harmony import */ var _home_vsts_work_1_s_src_converters_piral_ng_common_fesm2015_piral_ng_common_mjs__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../converters/piral-ng/common/fesm2015/piral-ng-common.mjs */ "../../converters/piral-ng/common/fesm2015/piral-ng-common.mjs");
75635
75635
  /* harmony import */ var _home_vsts_work_1_s_node_modules_preact_dist_preact_module_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../node_modules/preact/dist/preact.module.js */ "../../../node_modules/preact/dist/preact.module.js");
75636
75636
  /* harmony import */ var _home_vsts_work_1_s_node_modules_riot_riot_esm_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../node_modules/riot/riot.esm.js */ "../../../node_modules/riot/riot.esm.js");
@@ -75697,7 +75697,7 @@ __webpack_require__.r(__webpack_exports__);
75697
75697
 
75698
75698
 
75699
75699
  function fillDependencies(deps) {
75700
- deps['sample-cross-fx']={};deps["@angular/common"]=_home_vsts_work_1_s_node_modules_angular_common_fesm2020_common_mjs__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/common@14.1.3"]=_home_vsts_work_1_s_node_modules_angular_common_fesm2020_common_mjs__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/compiler"]=_home_vsts_work_1_s_node_modules_angular_compiler_fesm2020_compiler_mjs__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/compiler@14.1.3"]=_home_vsts_work_1_s_node_modules_angular_compiler_fesm2020_compiler_mjs__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/core"]=_home_vsts_work_1_s_node_modules_angular_core_fesm2020_core_mjs__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/core@14.1.3"]=_home_vsts_work_1_s_node_modules_angular_core_fesm2020_core_mjs__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/platform-browser"]=_home_vsts_work_1_s_node_modules_angular_platform_browser_fesm2020_platform_browser_mjs__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser@14.1.3"]=_home_vsts_work_1_s_node_modules_angular_platform_browser_fesm2020_platform_browser_mjs__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser-dynamic"]=_home_vsts_work_1_s_node_modules_angular_platform_browser_dynamic_fesm2020_platform_browser_dynamic_mjs__WEBPACK_IMPORTED_MODULE_22__;deps["@angular/platform-browser-dynamic@14.1.3"]=_home_vsts_work_1_s_node_modules_angular_platform_browser_dynamic_fesm2020_platform_browser_dynamic_mjs__WEBPACK_IMPORTED_MODULE_22__;deps["@webcomponents/webcomponentsjs"]=_home_vsts_work_1_s_node_modules_webcomponents_webcomponentsjs_webcomponents_bundle_js__WEBPACK_IMPORTED_MODULE_1__;deps["@webcomponents/webcomponentsjs@2.6.0"]=_home_vsts_work_1_s_node_modules_webcomponents_webcomponentsjs_webcomponents_bundle_js__WEBPACK_IMPORTED_MODULE_1__;deps["angular"]=_home_vsts_work_1_s_node_modules_angular_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["angular@1.8.3"]=_home_vsts_work_1_s_node_modules_angular_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["aurelia-framework"]=_home_vsts_work_1_s_node_modules_aurelia_framework_dist_native_modules_aurelia_framework_js__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-framework@1.4.1"]=_home_vsts_work_1_s_node_modules_aurelia_framework_dist_native_modules_aurelia_framework_js__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-templating-binding"]=_home_vsts_work_1_s_src_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"]=_home_vsts_work_1_s_src_samples_sample_cross_fx_node_modules_aurelia_templating_binding_dist_native_modules_aurelia_templating_binding_js__WEBPACK_IMPORTED_MODULE_4__;deps["aurelia-templating-resources"]=_home_vsts_work_1_s_src_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"]=_home_vsts_work_1_s_src_samples_sample_cross_fx_node_modules_aurelia_templating_resources_dist_native_modules_aurelia_templating_resources_js__WEBPACK_IMPORTED_MODULE_5__;deps["aurelia-pal-browser"]=_home_vsts_work_1_s_node_modules_aurelia_pal_browser_dist_es2015_aurelia_pal_browser_js__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-pal-browser@1.8.1"]=_home_vsts_work_1_s_node_modules_aurelia_pal_browser_dist_es2015_aurelia_pal_browser_js__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-event-aggregator"]=_home_vsts_work_1_s_node_modules_aurelia_event_aggregator_dist_native_modules_aurelia_event_aggregator_js__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-event-aggregator@1.0.3"]=_home_vsts_work_1_s_node_modules_aurelia_event_aggregator_dist_native_modules_aurelia_event_aggregator_js__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-history-browser"]=_home_vsts_work_1_s_node_modules_aurelia_history_browser_dist_native_modules_aurelia_history_browser_js__WEBPACK_IMPORTED_MODULE_8__;deps["aurelia-history-browser@1.4.0"]=_home_vsts_work_1_s_node_modules_aurelia_history_browser_dist_native_modules_aurelia_history_browser_js__WEBPACK_IMPORTED_MODULE_8__;deps["hyperapp"]=_home_vsts_work_1_s_node_modules_hyperapp_src_index_js__WEBPACK_IMPORTED_MODULE_9__;deps["hyperapp@1.2.10"]=_home_vsts_work_1_s_node_modules_hyperapp_src_index_js__WEBPACK_IMPORTED_MODULE_9__;deps["inferno"]=_home_vsts_work_1_s_node_modules_inferno_index_esm_js__WEBPACK_IMPORTED_MODULE_10__;deps["inferno@7.4.11"]=_home_vsts_work_1_s_node_modules_inferno_index_esm_js__WEBPACK_IMPORTED_MODULE_10__;deps["inferno-create-element"]=_home_vsts_work_1_s_node_modules_inferno_create_element_dist_index_esm_js__WEBPACK_IMPORTED_MODULE_11__;deps["inferno-create-element@7.4.11"]=_home_vsts_work_1_s_node_modules_inferno_create_element_dist_index_esm_js__WEBPACK_IMPORTED_MODULE_11__;deps["mithril"]=_home_vsts_work_1_s_src_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__;deps["mithril@2.2.2"]=_home_vsts_work_1_s_src_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__;deps["lit-element"]=_home_vsts_work_1_s_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__;deps["lit-element@2.5.1"]=_home_vsts_work_1_s_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__;deps["solid-js"]=_home_vsts_work_1_s_node_modules_solid_js_dist_index_js__WEBPACK_IMPORTED_MODULE_23__;deps["solid-js@0.18.14"]=_home_vsts_work_1_s_node_modules_solid_js_dist_index_js__WEBPACK_IMPORTED_MODULE_23__;deps["solid-js/dom"]=_home_vsts_work_1_s_node_modules_solid_js_dist_dom_index_js__WEBPACK_IMPORTED_MODULE_24__;deps["piral-ng/common"]=_home_vsts_work_1_s_src_converters_piral_ng_common_fesm2015_piral_ng_common_mjs__WEBPACK_IMPORTED_MODULE_25__;deps["preact"]=_home_vsts_work_1_s_node_modules_preact_dist_preact_module_js__WEBPACK_IMPORTED_MODULE_14__;deps["preact@10.8.2"]=_home_vsts_work_1_s_node_modules_preact_dist_preact_module_js__WEBPACK_IMPORTED_MODULE_14__;deps["riot"]=_home_vsts_work_1_s_node_modules_riot_riot_esm_js__WEBPACK_IMPORTED_MODULE_15__;deps["riot@4.14.0"]=_home_vsts_work_1_s_node_modules_riot_riot_esm_js__WEBPACK_IMPORTED_MODULE_15__;deps["rxjs"]=_home_vsts_work_1_s_node_modules_rxjs_dist_esm5_index_js__WEBPACK_IMPORTED_MODULE_26__;deps["rxjs@7.5.6"]=_home_vsts_work_1_s_node_modules_rxjs_dist_esm5_index_js__WEBPACK_IMPORTED_MODULE_26__;deps["vue"]=_home_vsts_work_1_s_node_modules_vue_dist_vue_runtime_esm_js__WEBPACK_IMPORTED_MODULE_27__;deps["vue@2.7.2"]=_home_vsts_work_1_s_node_modules_vue_dist_vue_runtime_esm_js__WEBPACK_IMPORTED_MODULE_27__;deps["zone.js"]=_home_vsts_work_1_s_node_modules_zone_js_dist_zone_js__WEBPACK_IMPORTED_MODULE_16__;deps["zone.js@0.9.1"]=_home_vsts_work_1_s_node_modules_zone_js_dist_zone_js__WEBPACK_IMPORTED_MODULE_16__;deps["tslib"]=_home_vsts_work_1_s_node_modules_tslib_tslib_es6_js__WEBPACK_IMPORTED_MODULE_28__;deps["tslib@2.3.1"]=_home_vsts_work_1_s_node_modules_tslib_tslib_es6_js__WEBPACK_IMPORTED_MODULE_28__;deps["react"]=_home_vsts_work_1_s_node_modules_react_index_js__WEBPACK_IMPORTED_MODULE_17__;deps["react@18.2.0"]=_home_vsts_work_1_s_node_modules_react_index_js__WEBPACK_IMPORTED_MODULE_17__;deps["react-dom"]=/*#__PURE__*/ (_home_vsts_work_1_s_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache || (_home_vsts_work_1_s_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache = __webpack_require__.t(_home_vsts_work_1_s_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18__, 2)));deps["react-dom@18.2.0"]=/*#__PURE__*/ (_home_vsts_work_1_s_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache || (_home_vsts_work_1_s_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache = __webpack_require__.t(_home_vsts_work_1_s_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18__, 2)));deps["react-router"]=_home_vsts_work_1_s_node_modules_react_router_esm_react_router_js__WEBPACK_IMPORTED_MODULE_29__;deps["react-router@5.3.3"]=_home_vsts_work_1_s_node_modules_react_router_esm_react_router_js__WEBPACK_IMPORTED_MODULE_29__;deps["react-router-dom"]=_home_vsts_work_1_s_node_modules_react_router_dom_esm_react_router_dom_js__WEBPACK_IMPORTED_MODULE_30__;deps["react-router-dom@5.3.3"]=_home_vsts_work_1_s_node_modules_react_router_dom_esm_react_router_dom_js__WEBPACK_IMPORTED_MODULE_30__
75700
+ deps['sample-cross-fx']={};deps["@angular/common"]=_home_vsts_work_1_s_node_modules_angular_common_fesm2020_common_mjs__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/common@14.1.3"]=_home_vsts_work_1_s_node_modules_angular_common_fesm2020_common_mjs__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/compiler"]=_home_vsts_work_1_s_node_modules_angular_compiler_fesm2020_compiler_mjs__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/compiler@14.1.3"]=_home_vsts_work_1_s_node_modules_angular_compiler_fesm2020_compiler_mjs__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/core"]=_home_vsts_work_1_s_node_modules_angular_core_fesm2020_core_mjs__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/core@14.1.3"]=_home_vsts_work_1_s_node_modules_angular_core_fesm2020_core_mjs__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/platform-browser"]=_home_vsts_work_1_s_node_modules_angular_platform_browser_fesm2020_platform_browser_mjs__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser@14.1.3"]=_home_vsts_work_1_s_node_modules_angular_platform_browser_fesm2020_platform_browser_mjs__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser-dynamic"]=_home_vsts_work_1_s_node_modules_angular_platform_browser_dynamic_fesm2020_platform_browser_dynamic_mjs__WEBPACK_IMPORTED_MODULE_22__;deps["@angular/platform-browser-dynamic@14.1.3"]=_home_vsts_work_1_s_node_modules_angular_platform_browser_dynamic_fesm2020_platform_browser_dynamic_mjs__WEBPACK_IMPORTED_MODULE_22__;deps["@webcomponents/webcomponentsjs"]=_home_vsts_work_1_s_node_modules_webcomponents_webcomponentsjs_webcomponents_bundle_js__WEBPACK_IMPORTED_MODULE_1__;deps["@webcomponents/webcomponentsjs@2.6.0"]=_home_vsts_work_1_s_node_modules_webcomponents_webcomponentsjs_webcomponents_bundle_js__WEBPACK_IMPORTED_MODULE_1__;deps["angular"]=_home_vsts_work_1_s_node_modules_angular_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["angular@1.8.3"]=_home_vsts_work_1_s_node_modules_angular_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["aurelia-framework"]=_home_vsts_work_1_s_node_modules_aurelia_framework_dist_native_modules_aurelia_framework_js__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-framework@1.4.1"]=_home_vsts_work_1_s_node_modules_aurelia_framework_dist_native_modules_aurelia_framework_js__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-templating-binding"]=_home_vsts_work_1_s_src_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"]=_home_vsts_work_1_s_src_samples_sample_cross_fx_node_modules_aurelia_templating_binding_dist_native_modules_aurelia_templating_binding_js__WEBPACK_IMPORTED_MODULE_4__;deps["aurelia-templating-resources"]=_home_vsts_work_1_s_src_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"]=_home_vsts_work_1_s_src_samples_sample_cross_fx_node_modules_aurelia_templating_resources_dist_native_modules_aurelia_templating_resources_js__WEBPACK_IMPORTED_MODULE_5__;deps["aurelia-pal-browser"]=_home_vsts_work_1_s_node_modules_aurelia_pal_browser_dist_es2015_aurelia_pal_browser_js__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-pal-browser@1.8.1"]=_home_vsts_work_1_s_node_modules_aurelia_pal_browser_dist_es2015_aurelia_pal_browser_js__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-event-aggregator"]=_home_vsts_work_1_s_node_modules_aurelia_event_aggregator_dist_native_modules_aurelia_event_aggregator_js__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-event-aggregator@1.0.3"]=_home_vsts_work_1_s_node_modules_aurelia_event_aggregator_dist_native_modules_aurelia_event_aggregator_js__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-history-browser"]=_home_vsts_work_1_s_node_modules_aurelia_history_browser_dist_native_modules_aurelia_history_browser_js__WEBPACK_IMPORTED_MODULE_8__;deps["aurelia-history-browser@1.4.0"]=_home_vsts_work_1_s_node_modules_aurelia_history_browser_dist_native_modules_aurelia_history_browser_js__WEBPACK_IMPORTED_MODULE_8__;deps["hyperapp"]=_home_vsts_work_1_s_node_modules_hyperapp_src_index_js__WEBPACK_IMPORTED_MODULE_9__;deps["hyperapp@1.2.10"]=_home_vsts_work_1_s_node_modules_hyperapp_src_index_js__WEBPACK_IMPORTED_MODULE_9__;deps["inferno"]=_home_vsts_work_1_s_node_modules_inferno_index_esm_js__WEBPACK_IMPORTED_MODULE_10__;deps["inferno@7.4.11"]=_home_vsts_work_1_s_node_modules_inferno_index_esm_js__WEBPACK_IMPORTED_MODULE_10__;deps["inferno-create-element"]=_home_vsts_work_1_s_node_modules_inferno_create_element_dist_index_esm_js__WEBPACK_IMPORTED_MODULE_11__;deps["inferno-create-element@7.4.11"]=_home_vsts_work_1_s_node_modules_inferno_create_element_dist_index_esm_js__WEBPACK_IMPORTED_MODULE_11__;deps["mithril"]=_home_vsts_work_1_s_src_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__;deps["mithril@2.2.2"]=_home_vsts_work_1_s_src_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__;deps["lit-element"]=_home_vsts_work_1_s_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__;deps["lit-element@2.5.1"]=_home_vsts_work_1_s_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__;deps["solid-js"]=_home_vsts_work_1_s_node_modules_solid_js_dist_dev_js__WEBPACK_IMPORTED_MODULE_23__;deps["solid-js@1.7.3"]=_home_vsts_work_1_s_node_modules_solid_js_dist_dev_js__WEBPACK_IMPORTED_MODULE_23__;deps["solid-js/web"]=_home_vsts_work_1_s_node_modules_solid_js_web_dist_dev_js__WEBPACK_IMPORTED_MODULE_24__;deps["piral-ng/common"]=_home_vsts_work_1_s_src_converters_piral_ng_common_fesm2015_piral_ng_common_mjs__WEBPACK_IMPORTED_MODULE_25__;deps["preact"]=_home_vsts_work_1_s_node_modules_preact_dist_preact_module_js__WEBPACK_IMPORTED_MODULE_14__;deps["preact@10.8.2"]=_home_vsts_work_1_s_node_modules_preact_dist_preact_module_js__WEBPACK_IMPORTED_MODULE_14__;deps["riot"]=_home_vsts_work_1_s_node_modules_riot_riot_esm_js__WEBPACK_IMPORTED_MODULE_15__;deps["riot@4.14.0"]=_home_vsts_work_1_s_node_modules_riot_riot_esm_js__WEBPACK_IMPORTED_MODULE_15__;deps["rxjs"]=_home_vsts_work_1_s_node_modules_rxjs_dist_esm5_index_js__WEBPACK_IMPORTED_MODULE_26__;deps["rxjs@7.5.6"]=_home_vsts_work_1_s_node_modules_rxjs_dist_esm5_index_js__WEBPACK_IMPORTED_MODULE_26__;deps["vue"]=_home_vsts_work_1_s_node_modules_vue_dist_vue_runtime_esm_js__WEBPACK_IMPORTED_MODULE_27__;deps["vue@2.7.2"]=_home_vsts_work_1_s_node_modules_vue_dist_vue_runtime_esm_js__WEBPACK_IMPORTED_MODULE_27__;deps["zone.js"]=_home_vsts_work_1_s_node_modules_zone_js_dist_zone_js__WEBPACK_IMPORTED_MODULE_16__;deps["zone.js@0.9.1"]=_home_vsts_work_1_s_node_modules_zone_js_dist_zone_js__WEBPACK_IMPORTED_MODULE_16__;deps["tslib"]=_home_vsts_work_1_s_node_modules_tslib_tslib_es6_js__WEBPACK_IMPORTED_MODULE_28__;deps["tslib@2.3.1"]=_home_vsts_work_1_s_node_modules_tslib_tslib_es6_js__WEBPACK_IMPORTED_MODULE_28__;deps["react"]=_home_vsts_work_1_s_node_modules_react_index_js__WEBPACK_IMPORTED_MODULE_17__;deps["react@18.2.0"]=_home_vsts_work_1_s_node_modules_react_index_js__WEBPACK_IMPORTED_MODULE_17__;deps["react-dom"]=/*#__PURE__*/ (_home_vsts_work_1_s_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache || (_home_vsts_work_1_s_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache = __webpack_require__.t(_home_vsts_work_1_s_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18__, 2)));deps["react-dom@18.2.0"]=/*#__PURE__*/ (_home_vsts_work_1_s_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache || (_home_vsts_work_1_s_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache = __webpack_require__.t(_home_vsts_work_1_s_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18__, 2)));deps["react-router"]=_home_vsts_work_1_s_node_modules_react_router_esm_react_router_js__WEBPACK_IMPORTED_MODULE_29__;deps["react-router@5.3.3"]=_home_vsts_work_1_s_node_modules_react_router_esm_react_router_js__WEBPACK_IMPORTED_MODULE_29__;deps["react-router-dom"]=_home_vsts_work_1_s_node_modules_react_router_dom_esm_react_router_dom_js__WEBPACK_IMPORTED_MODULE_30__;deps["react-router-dom@5.3.3"]=_home_vsts_work_1_s_node_modules_react_router_dom_esm_react_router_dom_js__WEBPACK_IMPORTED_MODULE_30__
75701
75701
  }
75702
75702
 
75703
75703
 
@@ -124082,2220 +124082,6 @@ function createInvalidObservableTypeError(input) {
124082
124082
  }
124083
124083
  //# sourceMappingURL=throwUnobservableError.js.map
124084
124084
 
124085
- /***/ }),
124086
-
124087
- /***/ "../../../node_modules/solid-js/dist/dom/index.js":
124088
- /*!********************************************************!*\
124089
- !*** ../../../node_modules/solid-js/dist/dom/index.js ***!
124090
- \********************************************************/
124091
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
124092
-
124093
- "use strict";
124094
- __webpack_require__.r(__webpack_exports__);
124095
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
124096
- /* harmony export */ "Dynamic": () => (/* binding */ Dynamic),
124097
- /* harmony export */ "For": () => (/* reexport safe */ _index_js__WEBPACK_IMPORTED_MODULE_0__.For),
124098
- /* harmony export */ "Index": () => (/* reexport safe */ _index_js__WEBPACK_IMPORTED_MODULE_0__.Index),
124099
- /* harmony export */ "Match": () => (/* reexport safe */ _index_js__WEBPACK_IMPORTED_MODULE_0__.Match),
124100
- /* harmony export */ "Portal": () => (/* binding */ Portal),
124101
- /* harmony export */ "Show": () => (/* reexport safe */ _index_js__WEBPACK_IMPORTED_MODULE_0__.Show),
124102
- /* harmony export */ "Suspense": () => (/* reexport safe */ _index_js__WEBPACK_IMPORTED_MODULE_0__.Suspense),
124103
- /* harmony export */ "SuspenseList": () => (/* reexport safe */ _index_js__WEBPACK_IMPORTED_MODULE_0__.SuspenseList),
124104
- /* harmony export */ "Switch": () => (/* reexport safe */ _index_js__WEBPACK_IMPORTED_MODULE_0__.Switch),
124105
- /* harmony export */ "assign": () => (/* binding */ assign),
124106
- /* harmony export */ "classList": () => (/* binding */ classList),
124107
- /* harmony export */ "clearDelegatedEvents": () => (/* binding */ clearDelegatedEvents),
124108
- /* harmony export */ "createComponent": () => (/* reexport safe */ _index_js__WEBPACK_IMPORTED_MODULE_0__.createComponent),
124109
- /* harmony export */ "currentContext": () => (/* reexport safe */ _index_js__WEBPACK_IMPORTED_MODULE_0__.getContextOwner),
124110
- /* harmony export */ "delegateEvents": () => (/* binding */ delegateEvents),
124111
- /* harmony export */ "effect": () => (/* reexport safe */ _index_js__WEBPACK_IMPORTED_MODULE_0__.createEffect),
124112
- /* harmony export */ "escape": () => (/* binding */ escape),
124113
- /* harmony export */ "generateHydrationEventsScript": () => (/* binding */ generateHydrationEventsScript),
124114
- /* harmony export */ "getHydrationKey": () => (/* binding */ getHydrationKey),
124115
- /* harmony export */ "getNextElement": () => (/* binding */ getNextElement),
124116
- /* harmony export */ "getNextMarker": () => (/* binding */ getNextMarker),
124117
- /* harmony export */ "hydrate": () => (/* binding */ hydrate),
124118
- /* harmony export */ "insert": () => (/* binding */ insert),
124119
- /* harmony export */ "memo": () => (/* binding */ memo),
124120
- /* harmony export */ "render": () => (/* binding */ render),
124121
- /* harmony export */ "renderDOMToString": () => (/* binding */ renderDOMToString),
124122
- /* harmony export */ "renderToString": () => (/* binding */ renderToString),
124123
- /* harmony export */ "runHydrationEvents": () => (/* binding */ runHydrationEvents),
124124
- /* harmony export */ "setAttribute": () => (/* binding */ setAttribute),
124125
- /* harmony export */ "setAttributeNS": () => (/* binding */ setAttributeNS),
124126
- /* harmony export */ "spread": () => (/* binding */ spread),
124127
- /* harmony export */ "ssr": () => (/* binding */ ssr),
124128
- /* harmony export */ "ssrClassList": () => (/* binding */ ssrClassList),
124129
- /* harmony export */ "ssrSpread": () => (/* binding */ ssrSpread),
124130
- /* harmony export */ "ssrStyle": () => (/* binding */ ssrStyle),
124131
- /* harmony export */ "style": () => (/* binding */ style),
124132
- /* harmony export */ "template": () => (/* binding */ template)
124133
- /* harmony export */ });
124134
- /* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index.js */ "../../../node_modules/solid-js/dist/index.js");
124135
-
124136
-
124137
-
124138
- const Types = {
124139
- ATTRIBUTE: "attribute",
124140
- PROPERTY: "property"
124141
- },
124142
- Attributes = {
124143
- href: {
124144
- type: Types.ATTRIBUTE
124145
- },
124146
- style: {
124147
- type: Types.PROPERTY,
124148
- alias: "style.cssText"
124149
- },
124150
- for: {
124151
- type: Types.PROPERTY,
124152
- alias: "htmlFor"
124153
- },
124154
- class: {
124155
- type: Types.PROPERTY,
124156
- alias: "className"
124157
- },
124158
- spellCheck: {
124159
- type: Types.PROPERTY,
124160
- alias: "spellcheck"
124161
- },
124162
- allowFullScreen: {
124163
- type: Types.PROPERTY,
124164
- alias: "allowFullscreen"
124165
- },
124166
- autoCapitalize: {
124167
- type: Types.PROPERTY,
124168
- alias: "autocapitalize"
124169
- },
124170
- autoFocus: {
124171
- type: Types.PROPERTY,
124172
- alias: "autofocus"
124173
- },
124174
- autoPlay: {
124175
- type: Types.PROPERTY,
124176
- alias: "autoplay"
124177
- }
124178
- },
124179
- SVGAttributes = {
124180
- className: {
124181
- type: Types.ATTRIBUTE,
124182
- alias: "class"
124183
- },
124184
- htmlFor: {
124185
- type: Types.ATTRIBUTE,
124186
- alias: "for"
124187
- },
124188
- tabIndex: {
124189
- type: Types.ATTRIBUTE,
124190
- alias: "tabindex"
124191
- },
124192
- allowReorder: {
124193
- type: Types.ATTRIBUTE
124194
- },
124195
- attributeName: {
124196
- type: Types.ATTRIBUTE
124197
- },
124198
- attributeType: {
124199
- type: Types.ATTRIBUTE
124200
- },
124201
- autoReverse: {
124202
- type: Types.ATTRIBUTE
124203
- },
124204
- baseFrequency: {
124205
- type: Types.ATTRIBUTE
124206
- },
124207
- calcMode: {
124208
- type: Types.ATTRIBUTE
124209
- },
124210
- clipPathUnits: {
124211
- type: Types.ATTRIBUTE
124212
- },
124213
- contentScriptType: {
124214
- type: Types.ATTRIBUTE
124215
- },
124216
- contentStyleType: {
124217
- type: Types.ATTRIBUTE
124218
- },
124219
- diffuseConstant: {
124220
- type: Types.ATTRIBUTE
124221
- },
124222
- edgeMode: {
124223
- type: Types.ATTRIBUTE
124224
- },
124225
- externalResourcesRequired: {
124226
- type: Types.ATTRIBUTE
124227
- },
124228
- filterRes: {
124229
- type: Types.ATTRIBUTE
124230
- },
124231
- filterUnits: {
124232
- type: Types.ATTRIBUTE
124233
- },
124234
- gradientTransform: {
124235
- type: Types.ATTRIBUTE
124236
- },
124237
- gradientUnits: {
124238
- type: Types.ATTRIBUTE
124239
- },
124240
- kernelMatrix: {
124241
- type: Types.ATTRIBUTE
124242
- },
124243
- kernelUnitLength: {
124244
- type: Types.ATTRIBUTE
124245
- },
124246
- keyPoints: {
124247
- type: Types.ATTRIBUTE
124248
- },
124249
- keySplines: {
124250
- type: Types.ATTRIBUTE
124251
- },
124252
- keyTimes: {
124253
- type: Types.ATTRIBUTE
124254
- },
124255
- lengthAdjust: {
124256
- type: Types.ATTRIBUTE
124257
- },
124258
- limitingConeAngle: {
124259
- type: Types.ATTRIBUTE
124260
- },
124261
- markerHeight: {
124262
- type: Types.ATTRIBUTE
124263
- },
124264
- markerUnits: {
124265
- type: Types.ATTRIBUTE
124266
- },
124267
- maskContentUnits: {
124268
- type: Types.ATTRIBUTE
124269
- },
124270
- maskUnits: {
124271
- type: Types.ATTRIBUTE
124272
- },
124273
- numOctaves: {
124274
- type: Types.ATTRIBUTE
124275
- },
124276
- pathLength: {
124277
- type: Types.ATTRIBUTE
124278
- },
124279
- patternContentUnits: {
124280
- type: Types.ATTRIBUTE
124281
- },
124282
- patternTransform: {
124283
- type: Types.ATTRIBUTE
124284
- },
124285
- patternUnits: {
124286
- type: Types.ATTRIBUTE
124287
- },
124288
- pointsAtX: {
124289
- type: Types.ATTRIBUTE
124290
- },
124291
- pointsAtY: {
124292
- type: Types.ATTRIBUTE
124293
- },
124294
- pointsAtZ: {
124295
- type: Types.ATTRIBUTE
124296
- },
124297
- preserveAlpha: {
124298
- type: Types.ATTRIBUTE
124299
- },
124300
- preserveAspectRatio: {
124301
- type: Types.ATTRIBUTE
124302
- },
124303
- primitiveUnits: {
124304
- type: Types.ATTRIBUTE
124305
- },
124306
- refX: {
124307
- type: Types.ATTRIBUTE
124308
- },
124309
- refY: {
124310
- type: Types.ATTRIBUTE
124311
- },
124312
- repeatCount: {
124313
- type: Types.ATTRIBUTE
124314
- },
124315
- repeatDur: {
124316
- type: Types.ATTRIBUTE
124317
- },
124318
- requiredExtensions: {
124319
- type: Types.ATTRIBUTE
124320
- },
124321
- requiredFeatures: {
124322
- type: Types.ATTRIBUTE
124323
- },
124324
- specularConstant: {
124325
- type: Types.ATTRIBUTE
124326
- },
124327
- specularExponent: {
124328
- type: Types.ATTRIBUTE
124329
- },
124330
- spreadMethod: {
124331
- type: Types.ATTRIBUTE
124332
- },
124333
- startOffset: {
124334
- type: Types.ATTRIBUTE
124335
- },
124336
- stdDeviation: {
124337
- type: Types.ATTRIBUTE
124338
- },
124339
- stitchTiles: {
124340
- type: Types.ATTRIBUTE
124341
- },
124342
- surfaceScale: {
124343
- type: Types.ATTRIBUTE
124344
- },
124345
- systemLanguage: {
124346
- type: Types.ATTRIBUTE
124347
- },
124348
- tableValues: {
124349
- type: Types.ATTRIBUTE
124350
- },
124351
- targetX: {
124352
- type: Types.ATTRIBUTE
124353
- },
124354
- targetY: {
124355
- type: Types.ATTRIBUTE
124356
- },
124357
- textLength: {
124358
- type: Types.ATTRIBUTE
124359
- },
124360
- viewBox: {
124361
- type: Types.ATTRIBUTE
124362
- },
124363
- viewTarget: {
124364
- type: Types.ATTRIBUTE
124365
- },
124366
- xChannelSelector: {
124367
- type: Types.ATTRIBUTE
124368
- },
124369
- yChannelSelector: {
124370
- type: Types.ATTRIBUTE
124371
- },
124372
- zoomAndPan: {
124373
- type: Types.ATTRIBUTE
124374
- }
124375
- };
124376
- const NonComposedEvents = new Set(["abort", "animationstart", "animationend", "animationiteration", "blur", "change", "copy", "cut", "error", "focus", "gotpointercapture", "load", "loadend", "loadstart", "lostpointercapture", "mouseenter", "mouseleave", "paste", "progress", "reset", "scroll", "select", "submit", "transitionstart", "transitioncancel", "transitionend", "transitionrun"]);
124377
-
124378
- function memo(fn, equal) {
124379
- return (0,_index_js__WEBPACK_IMPORTED_MODULE_0__.createMemo)(fn, undefined, equal);
124380
- }
124381
-
124382
- function reconcileArrays(parentNode, a, b) {
124383
- let bLength = b.length,
124384
- aEnd = a.length,
124385
- bEnd = bLength,
124386
- aStart = 0,
124387
- bStart = 0,
124388
- after = a[aEnd - 1].nextSibling,
124389
- map = null;
124390
- while (aStart < aEnd || bStart < bEnd) {
124391
- if (aEnd === aStart) {
124392
- const node = bEnd < bLength ? bStart ? b[bStart - 1].nextSibling : b[bEnd - bStart] : after;
124393
- while (bStart < bEnd) parentNode.insertBefore(b[bStart++], node);
124394
- } else if (bEnd === bStart) {
124395
- while (aStart < aEnd) {
124396
- if (!map || !map.has(a[aStart])) parentNode.removeChild(a[aStart]);
124397
- aStart++;
124398
- }
124399
- } else if (a[aStart] === b[bStart]) {
124400
- aStart++;
124401
- bStart++;
124402
- } else if (a[aEnd - 1] === b[bEnd - 1]) {
124403
- aEnd--;
124404
- bEnd--;
124405
- } else if (aEnd - aStart === 1 && bEnd - bStart === 1) {
124406
- if (map && map.has(a[aStart]) || a[aStart].parentNode !== parentNode) {
124407
- parentNode.insertBefore(b[bStart], bEnd < bLength ? b[bEnd] : after);
124408
- } else parentNode.replaceChild(b[bStart], a[aStart]);
124409
- break;
124410
- } else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {
124411
- const node = a[--aEnd].nextSibling;
124412
- parentNode.insertBefore(b[bStart++], a[aStart++].nextSibling);
124413
- parentNode.insertBefore(b[--bEnd], node);
124414
- a[aEnd] = b[bEnd];
124415
- } else {
124416
- if (!map) {
124417
- map = new Map();
124418
- let i = bStart;
124419
- while (i < bEnd) map.set(b[i], i++);
124420
- }
124421
- if (map.has(a[aStart])) {
124422
- const index = map.get(a[aStart]);
124423
- if (bStart < index && index < bEnd) {
124424
- let i = aStart,
124425
- sequence = 1;
124426
- while (++i < aEnd && i < bEnd) {
124427
- if (!map.has(a[i]) || map.get(a[i]) !== index + sequence) break;
124428
- sequence++;
124429
- }
124430
- if (sequence > index - bStart) {
124431
- const node = a[aStart];
124432
- while (bStart < index) parentNode.insertBefore(b[bStart++], node);
124433
- } else parentNode.replaceChild(b[bStart++], a[aStart++]);
124434
- } else aStart++;
124435
- } else parentNode.removeChild(a[aStart++]);
124436
- }
124437
- }
124438
- }
124439
-
124440
- const eventRegistry = new Set(),
124441
- hydration = globalThis._$HYDRATION || (globalThis._$HYDRATION = {});
124442
- function render(code, element) {
124443
- let disposer;
124444
- (0,_index_js__WEBPACK_IMPORTED_MODULE_0__.createRoot)(dispose => {
124445
- disposer = dispose;
124446
- insert(element, code(), element.firstChild ? null : undefined);
124447
- });
124448
- return disposer;
124449
- }
124450
- function renderToString(code, options = {}) {
124451
- options = {
124452
- timeoutMs: 30000,
124453
- ...options
124454
- };
124455
- hydration.context = {
124456
- id: "0",
124457
- count: 0
124458
- };
124459
- return (0,_index_js__WEBPACK_IMPORTED_MODULE_0__.createRoot)(() => {
124460
- const rendered = code();
124461
- if (typeof rendered === "object" && "then" in rendered) {
124462
- const timeout = new Promise((_, reject) => setTimeout(() => reject("renderToString timed out"), options.timeoutMs));
124463
- return Promise.race([rendered, timeout]).then(resolveSSRNode);
124464
- }
124465
- return resolveSSRNode(rendered);
124466
- });
124467
- }
124468
- function renderDOMToString(code, options = {}) {
124469
- options = {
124470
- timeoutMs: 30000,
124471
- ...options
124472
- };
124473
- hydration.context = {
124474
- id: "0",
124475
- count: 0
124476
- };
124477
- const container = document.createElement("div");
124478
- document.body.appendChild(container);
124479
- return (0,_index_js__WEBPACK_IMPORTED_MODULE_0__.createRoot)(d1 => {
124480
- const rendered = code();
124481
- function resolve(rendered) {
124482
- (0,_index_js__WEBPACK_IMPORTED_MODULE_0__.createRoot)(d2 => (insert(container, rendered), d1(), d2()));
124483
- const html = container.innerHTML;
124484
- document.body.removeChild(container);
124485
- return html;
124486
- }
124487
- if (typeof rendered === "object" && "then" in rendered) {
124488
- const timeout = new Promise((_, reject) => setTimeout(() => reject("renderToString timed out"), options.timeoutMs));
124489
- return Promise.race([rendered, timeout]).then(resolve);
124490
- }
124491
- return resolve(rendered);
124492
- });
124493
- }
124494
- function hydrate(code, element) {
124495
- hydration.context = {
124496
- id: "0",
124497
- count: 0,
124498
- registry: {}
124499
- };
124500
- const templates = element.querySelectorAll(`*[_hk]`);
124501
- Array.prototype.reduce.call(templates, (memo, node) => {
124502
- const id = node.getAttribute("_hk"),
124503
- list = memo[id] || (memo[id] = []);
124504
- list.push(node);
124505
- return memo;
124506
- }, hydration.context.registry);
124507
- const dispose = render(code, element);
124508
- delete hydration.context;
124509
- return dispose;
124510
- }
124511
- function template(html, check, isSVG) {
124512
- const t = document.createElement("template");
124513
- t.innerHTML = html;
124514
- if (check && t.innerHTML.split("<").length - 1 !== check) throw `Template html does not match input:\n${t.innerHTML}\n\n${html}`;
124515
- let node = t.content.firstChild;
124516
- if (isSVG) node = node.firstChild;
124517
- return node;
124518
- }
124519
- function delegateEvents(eventNames) {
124520
- for (let i = 0, l = eventNames.length; i < l; i++) {
124521
- const name = eventNames[i];
124522
- if (!eventRegistry.has(name)) {
124523
- eventRegistry.add(name);
124524
- document.addEventListener(name, eventHandler);
124525
- }
124526
- }
124527
- }
124528
- function clearDelegatedEvents() {
124529
- for (let name of eventRegistry.keys()) document.removeEventListener(name, eventHandler);
124530
- eventRegistry.clear();
124531
- }
124532
- function setAttribute(node, name, value) {
124533
- if (value === false || value == null) node.removeAttribute(name);else node.setAttribute(name, value);
124534
- }
124535
- function setAttributeNS(node, namespace, name, value) {
124536
- if (value === false || value == null) node.removeAttributeNS(namespace, name);else node.setAttributeNS(namespace, name, value);
124537
- }
124538
- function classList(node, value, prev) {
124539
- const classKeys = Object.keys(value);
124540
- for (let i = 0, len = classKeys.length; i < len; i++) {
124541
- const key = classKeys[i],
124542
- classValue = !!value[key],
124543
- classNames = key.split(/\s+/);
124544
- if (!key || prev && prev[key] === classValue) continue;
124545
- for (let j = 0, nameLen = classNames.length; j < nameLen; j++) node.classList.toggle(classNames[j], classValue);
124546
- }
124547
- return value;
124548
- }
124549
- function style(node, value, prev) {
124550
- const nodeStyle = node.style;
124551
- if (typeof value === "string") return nodeStyle.cssText = value;
124552
- let v, s;
124553
- if (prev != null && typeof prev !== "string") {
124554
- for (s in value) {
124555
- v = value[s];
124556
- v !== prev[s] && nodeStyle.setProperty(s, v);
124557
- }
124558
- for (s in prev) {
124559
- value[s] == null && nodeStyle.removeProperty(s);
124560
- }
124561
- } else {
124562
- for (s in value) nodeStyle.setProperty(s, value[s]);
124563
- }
124564
- return value;
124565
- }
124566
- function spread(node, accessor, isSVG, skipChildren) {
124567
- if (typeof accessor === "function") {
124568
- (0,_index_js__WEBPACK_IMPORTED_MODULE_0__.createEffect)(current => spreadExpression(node, accessor(), current, isSVG, skipChildren));
124569
- } else spreadExpression(node, accessor, undefined, isSVG, skipChildren);
124570
- }
124571
- function insert(parent, accessor, marker, initial) {
124572
- if (marker !== undefined && !initial) initial = [];
124573
- if (typeof accessor !== "function") return insertExpression(parent, accessor, initial, marker);
124574
- (0,_index_js__WEBPACK_IMPORTED_MODULE_0__.createEffect)(current => insertExpression(parent, accessor(), current, marker), initial);
124575
- }
124576
- function assign(node, props, isSVG, skipChildren, prevProps = {}) {
124577
- let info;
124578
- for (const prop in props) {
124579
- if (prop === "children") {
124580
- if (!skipChildren) insertExpression(node, props.children);
124581
- continue;
124582
- }
124583
- const value = props[prop];
124584
- if (value === prevProps[prop]) continue;
124585
- if (prop === "style") {
124586
- style(node, value, prevProps[prop]);
124587
- } else if (prop === "classList") {
124588
- classList(node, value, prevProps[prop]);
124589
- } else if (prop === "ref") {
124590
- value(node);
124591
- } else if (prop === "on") {
124592
- for (const eventName in value) node.addEventListener(eventName, value[eventName]);
124593
- } else if (prop === "onCapture") {
124594
- for (const eventName in value) node.addEventListener(eventName, value[eventName], true);
124595
- } else if (prop.slice(0, 2) === "on") {
124596
- const lc = prop.toLowerCase();
124597
- if (!NonComposedEvents.has(lc.slice(2))) {
124598
- const name = lc.slice(2);
124599
- if (Array.isArray(value)) {
124600
- node[`__${name}`] = value[0];
124601
- node[`__${name}Data`] = value[1];
124602
- } else node[`__${name}`] = value;
124603
- delegateEvents([name]);
124604
- } else node[lc] = value;
124605
- } else if (info = Attributes[prop]) {
124606
- if (info.type === "attribute") {
124607
- setAttribute(node, prop, value);
124608
- } else node[info.alias] = value;
124609
- } else if (isSVG || prop.indexOf("-") > -1 || prop.indexOf(":") > -1) {
124610
- const ns = prop.indexOf(":") > -1 && SVGNamepace[prop.split(":")[0]];
124611
- if (ns) setAttributeNS(node, ns, prop, value);else if (info = SVGAttributes[prop]) {
124612
- if (info.alias) setAttribute(node, info.alias, value);else setAttribute(node, prop, value);
124613
- } else setAttribute(node, prop.replace(/([A-Z])/g, g => `-${g[0].toLowerCase()}`), value);
124614
- } else node[prop] = value;
124615
- prevProps[prop] = value;
124616
- }
124617
- }
124618
- function ssr(t, ...nodes) {
124619
- if (!nodes.length) return {
124620
- t
124621
- };
124622
- for (let i = 0; i < nodes.length; i++) {
124623
- const n = nodes[i];
124624
- if (typeof n === "function") nodes[i] = memo(() => resolveSSRNode(n()));
124625
- }
124626
- return {
124627
- t: () => {
124628
- let result = "";
124629
- for (let i = 0; i < t.length; i++) {
124630
- result += t[i];
124631
- const node = nodes[i];
124632
- if (node !== undefined) result += resolveSSRNode(node);
124633
- }
124634
- return result;
124635
- }
124636
- };
124637
- }
124638
- function ssrClassList(value) {
124639
- let classKeys = Object.keys(value),
124640
- result = "";
124641
- for (let i = 0, len = classKeys.length; i < len; i++) {
124642
- const key = classKeys[i],
124643
- classValue = !!value[key];
124644
- if (!key || !classValue) continue;
124645
- i && (result += " ");
124646
- result += key;
124647
- }
124648
- return result;
124649
- }
124650
- function ssrStyle(value) {
124651
- if (typeof value === "string") return value;
124652
- let result = "";
124653
- const k = Object.keys(value);
124654
- for (let i = 0; i < k.length; i++) {
124655
- const s = k[i];
124656
- if (i) result += ";";
124657
- result += `${s}:${escape(value[s], true)}`;
124658
- }
124659
- return result;
124660
- }
124661
- function ssrSpread(props, isSVG) {
124662
- return () => {
124663
- if (typeof props === "function") props = props();
124664
- const keys = Object.keys(props);
124665
- let result = "";
124666
- for (let i = 0; i < keys.length; i++) {
124667
- const prop = keys[i];
124668
- if (prop === "children") {
124669
- console.warn(`SSR currently does not support spread children.`);
124670
- continue;
124671
- }
124672
- const value = props[prop];
124673
- if (prop === "style") {
124674
- result += `style="${ssrStyle(value)}"`;
124675
- } else if (prop === "classList") {
124676
- result += `class="${ssrClassList(value)}"`;
124677
- } else {
124678
- const key = toSSRAttribute(prop, isSVG);
124679
- result += `${key}="${escape(value, true)}"`;
124680
- }
124681
- if (i !== keys.length - 1) result += " ";
124682
- }
124683
- return result;
124684
- };
124685
- }
124686
- const ATTR_REGEX = /[&<"]/g,
124687
- CONTENT_REGEX = /[&<]/g;
124688
- function escape(html, attr) {
124689
- if (typeof html !== "string") return html;
124690
- return html.replace(attr ? ATTR_REGEX : CONTENT_REGEX, m => {
124691
- switch (m) {
124692
- case "&":
124693
- return "&amp;";
124694
- case "<":
124695
- return "&lt;";
124696
- case '"':
124697
- return "&quot;";
124698
- }
124699
- });
124700
- }
124701
- function getNextElement(template, isSSR) {
124702
- const hydrate = hydration.context;
124703
- let node, key;
124704
- if (!hydrate || !hydrate.registry || !((key = getHydrationKey()) && hydrate.registry[key] && (node = hydrate.registry[key].shift()))) {
124705
- const el = template.cloneNode(true);
124706
- if (isSSR && hydrate) el.setAttribute("_hk", getHydrationKey());
124707
- return el;
124708
- }
124709
- if (hydration && hydration.completed) hydration.completed.add(node);
124710
- return node;
124711
- }
124712
- function getNextMarker(start) {
124713
- let end = start,
124714
- count = 0,
124715
- current = [];
124716
- if (hydration.context && hydration.context.registry) {
124717
- while (end) {
124718
- if (end.nodeType === 8) {
124719
- const v = end.nodeValue;
124720
- if (v === "#") count++;else if (v === "/") {
124721
- if (count === 0) return [end, current];
124722
- count--;
124723
- }
124724
- }
124725
- current.push(end);
124726
- end = end.nextSibling;
124727
- }
124728
- }
124729
- return [end, current];
124730
- }
124731
- function runHydrationEvents(el) {
124732
- if (hydration && hydration.events) {
124733
- const {
124734
- completed,
124735
- events
124736
- } = hydration;
124737
- while (events.length) {
124738
- const [el, e] = events[0];
124739
- if (!completed.has(el)) return;
124740
- eventHandler(e);
124741
- events.shift();
124742
- }
124743
- }
124744
- }
124745
- function getHydrationKey() {
124746
- return hydration.context.id;
124747
- }
124748
- function generateHydrationEventsScript(eventNames) {
124749
- return `(()=>{_$HYDRATION={events:[],completed:new WeakSet};const t=e=>e&&e.hasAttribute&&(e.hasAttribute("_hk")&&e||t(e.host&&e.host instanceof Node?e.host:e.parentNode)),e=e=>{let o=e.composedPath&&e.composedPath()[0]||e.target,s=t(o);s&&!_$HYDRATION.completed.has(s)&&_$HYDRATION.events.push([s,e])};["${eventNames.join('","')}"].forEach(t=>document.addEventListener(t,e))})();`;
124750
- }
124751
- function eventHandler(e) {
124752
- const key = `__${e.type}`;
124753
- let node = e.composedPath && e.composedPath()[0] || e.target;
124754
- if (e.target !== node) {
124755
- Object.defineProperty(e, "target", {
124756
- configurable: true,
124757
- value: node
124758
- });
124759
- }
124760
- Object.defineProperty(e, "currentTarget", {
124761
- configurable: true,
124762
- get() {
124763
- return node;
124764
- }
124765
- });
124766
- while (node !== null) {
124767
- const handler = node[key];
124768
- if (handler) {
124769
- const data = node[`${key}Data`];
124770
- data ? handler(data, e) : handler(e);
124771
- if (e.cancelBubble) return;
124772
- }
124773
- node = node.host && node.host instanceof Node ? node.host : node.parentNode;
124774
- }
124775
- }
124776
- function spreadExpression(node, props, prevProps = {}, isSVG, skipChildren) {
124777
- if (!skipChildren && "children" in props) {
124778
- (0,_index_js__WEBPACK_IMPORTED_MODULE_0__.createEffect)(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
124779
- }
124780
- (0,_index_js__WEBPACK_IMPORTED_MODULE_0__.createEffect)(() => assign(node, props, isSVG, true, prevProps));
124781
- return prevProps;
124782
- }
124783
- function insertExpression(parent, value, current, marker, unwrapArray) {
124784
- while (typeof current === "function") current = current();
124785
- if (value === current) return current;
124786
- const t = typeof value,
124787
- multi = marker !== undefined;
124788
- parent = multi && current[0] && current[0].parentNode || parent;
124789
- if (t === "string" || t === "number") {
124790
- if (t === "number") value = value.toString();
124791
- if (multi) {
124792
- let node = current[0];
124793
- if (node && node.nodeType === 3) {
124794
- node.data = value;
124795
- } else node = document.createTextNode(value);
124796
- current = cleanChildren(parent, current, marker, node);
124797
- } else {
124798
- if (current !== "" && typeof current === "string") {
124799
- current = parent.firstChild.data = value;
124800
- } else current = parent.textContent = value;
124801
- }
124802
- } else if (value == null || t === "boolean") {
124803
- if (hydration.context && hydration.context.registry) return current;
124804
- current = cleanChildren(parent, current, marker);
124805
- } else if (t === "function") {
124806
- (0,_index_js__WEBPACK_IMPORTED_MODULE_0__.createEffect)(() => current = insertExpression(parent, value(), current, marker));
124807
- return () => current;
124808
- } else if (Array.isArray(value)) {
124809
- const array = [];
124810
- if (normalizeIncomingArray(array, value, unwrapArray)) {
124811
- (0,_index_js__WEBPACK_IMPORTED_MODULE_0__.createEffect)(() => current = insertExpression(parent, array, current, marker, true));
124812
- return () => current;
124813
- }
124814
- if (hydration.context && hydration.context.registry) return array;
124815
- if (array.length === 0) {
124816
- current = cleanChildren(parent, current, marker);
124817
- if (multi) return current;
124818
- } else {
124819
- if (Array.isArray(current)) {
124820
- if (current.length === 0) {
124821
- appendNodes(parent, array, marker);
124822
- } else reconcileArrays(parent, current, array);
124823
- } else if (current == null || current === "") {
124824
- appendNodes(parent, array);
124825
- } else {
124826
- reconcileArrays(parent, multi && current || [parent.firstChild], array);
124827
- }
124828
- }
124829
- current = array;
124830
- } else if (value instanceof Node) {
124831
- if (Array.isArray(current)) {
124832
- if (multi) return current = cleanChildren(parent, current, marker, value);
124833
- cleanChildren(parent, current, null, value);
124834
- } else if (current == null || current === "" || !parent.firstChild) {
124835
- parent.appendChild(value);
124836
- } else parent.replaceChild(value, parent.firstChild);
124837
- current = value;
124838
- } else console.warn(`Skipped inserting`, value);
124839
- return current;
124840
- }
124841
- function normalizeIncomingArray(normalized, array, unwrap) {
124842
- let dynamic = false;
124843
- for (let i = 0, len = array.length; i < len; i++) {
124844
- let item = array[i],
124845
- t;
124846
- if (item instanceof Node) {
124847
- normalized.push(item);
124848
- } else if (item == null || item === true || item === false) ; else if (Array.isArray(item)) {
124849
- dynamic = normalizeIncomingArray(normalized, item) || dynamic;
124850
- } else if ((t = typeof item) === "string") {
124851
- normalized.push(document.createTextNode(item));
124852
- } else if (t === "function") {
124853
- if (unwrap) {
124854
- const idx = item();
124855
- dynamic = normalizeIncomingArray(normalized, Array.isArray(idx) ? idx : [idx]) || dynamic;
124856
- } else {
124857
- normalized.push(item);
124858
- dynamic = true;
124859
- }
124860
- } else normalized.push(document.createTextNode(item.toString()));
124861
- }
124862
- return dynamic;
124863
- }
124864
- function appendNodes(parent, array, marker) {
124865
- for (let i = 0, len = array.length; i < len; i++) parent.insertBefore(array[i], marker);
124866
- }
124867
- function cleanChildren(parent, current, marker, replacement) {
124868
- if (marker === undefined) return parent.textContent = "";
124869
- const node = replacement || document.createTextNode("");
124870
- if (current.length) {
124871
- let inserted = false;
124872
- for (let i = current.length - 1; i >= 0; i--) {
124873
- const el = current[i];
124874
- if (node !== el) {
124875
- const isParent = el.parentNode === parent;
124876
- if (!inserted && !i) isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);else isParent && parent.removeChild(el);
124877
- } else inserted = true;
124878
- }
124879
- } else parent.insertBefore(node, marker);
124880
- return [node];
124881
- }
124882
- function toSSRAttribute(key, isSVG) {
124883
- if (isSVG) {
124884
- const attr = SVGAttributes[key];
124885
- if (attr) {
124886
- if (attr.alias) key = attr.alias;
124887
- } else key = key.replace(/([A-Z])/g, g => `-${g[0].toLowerCase()}`);
124888
- } else {
124889
- const attr = SVGAttributes[key];
124890
- if (attr && attr.alias) key = attr.alias;
124891
- key = key.toLowerCase();
124892
- }
124893
- return key;
124894
- }
124895
- function resolveSSRNode(node) {
124896
- if (Array.isArray(node)) return node.map(resolveSSRNode).join("");
124897
- const t = typeof node;
124898
- if (node && t === "object") return resolveSSRNode(node.t);
124899
- if (t === "function") return resolveSSRNode(node());
124900
- return t === "string" ? node : JSON.stringify(node);
124901
- }
124902
-
124903
- function Portal(props) {
124904
- const {
124905
- useShadow
124906
- } = props,
124907
- container = document.createElement("div"),
124908
- marker = document.createTextNode(""),
124909
- mount = props.mount || document.body,
124910
- renderRoot = useShadow && container.attachShadow ? container.attachShadow({
124911
- mode: "open"
124912
- }) : container;
124913
- Object.defineProperty(container, "host", {
124914
- get() {
124915
- return marker.parentNode;
124916
- }
124917
- });
124918
- insert(renderRoot, (0,_index_js__WEBPACK_IMPORTED_MODULE_0__.sample)(() => props.children));
124919
- mount.appendChild(container);
124920
- props.ref && props.ref(container);
124921
- (0,_index_js__WEBPACK_IMPORTED_MODULE_0__.onCleanup)(() => mount.removeChild(container));
124922
- return marker;
124923
- }
124924
- function Dynamic(props) {
124925
- const [p, others] = (0,_index_js__WEBPACK_IMPORTED_MODULE_0__.splitProps)(props, ["component"]);
124926
- return () => {
124927
- const comp = p.component,
124928
- t = typeof comp;
124929
- if (comp) {
124930
- if (t === "function") return (0,_index_js__WEBPACK_IMPORTED_MODULE_0__.sample)(() => comp(others));else if (t === "string") {
124931
- const el = document.createElement(comp);
124932
- spread(el, others);
124933
- return el;
124934
- }
124935
- }
124936
- };
124937
- }
124938
-
124939
-
124940
-
124941
-
124942
- /***/ }),
124943
-
124944
- /***/ "../../../node_modules/solid-js/dist/index.js":
124945
- /*!****************************************************!*\
124946
- !*** ../../../node_modules/solid-js/dist/index.js ***!
124947
- \****************************************************/
124948
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
124949
-
124950
- "use strict";
124951
- __webpack_require__.r(__webpack_exports__);
124952
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
124953
- /* harmony export */ "$RAW": () => (/* binding */ $RAW),
124954
- /* harmony export */ "Dynamic": () => (/* binding */ Dynamic),
124955
- /* harmony export */ "For": () => (/* binding */ For),
124956
- /* harmony export */ "Index": () => (/* binding */ Index),
124957
- /* harmony export */ "Match": () => (/* binding */ Match),
124958
- /* harmony export */ "Show": () => (/* binding */ Show),
124959
- /* harmony export */ "Suspense": () => (/* binding */ Suspense),
124960
- /* harmony export */ "SuspenseContext": () => (/* binding */ SuspenseContext),
124961
- /* harmony export */ "SuspenseList": () => (/* binding */ SuspenseList),
124962
- /* harmony export */ "Switch": () => (/* binding */ Switch),
124963
- /* harmony export */ "afterEffects": () => (/* binding */ afterEffects),
124964
- /* harmony export */ "awaitSuspense": () => (/* binding */ awaitSuspense),
124965
- /* harmony export */ "cancelCallback": () => (/* binding */ cancelCallback),
124966
- /* harmony export */ "cloneProps": () => (/* binding */ cloneProps),
124967
- /* harmony export */ "createComponent": () => (/* binding */ createComponent),
124968
- /* harmony export */ "createContext": () => (/* binding */ createContext),
124969
- /* harmony export */ "createDeferred": () => (/* binding */ createDeferred),
124970
- /* harmony export */ "createDependentEffect": () => (/* binding */ createDependentEffect),
124971
- /* harmony export */ "createEffect": () => (/* binding */ createEffect),
124972
- /* harmony export */ "createMemo": () => (/* binding */ createMemo),
124973
- /* harmony export */ "createResource": () => (/* binding */ createResource),
124974
- /* harmony export */ "createResourceState": () => (/* binding */ createResourceState),
124975
- /* harmony export */ "createRoot": () => (/* binding */ createRoot),
124976
- /* harmony export */ "createSignal": () => (/* binding */ createSignal),
124977
- /* harmony export */ "createState": () => (/* binding */ createState),
124978
- /* harmony export */ "equalFn": () => (/* binding */ equalFn),
124979
- /* harmony export */ "freeze": () => (/* binding */ freeze),
124980
- /* harmony export */ "getContextOwner": () => (/* binding */ getContextOwner),
124981
- /* harmony export */ "indexArray": () => (/* binding */ indexArray),
124982
- /* harmony export */ "isListening": () => (/* binding */ isListening),
124983
- /* harmony export */ "lazy": () => (/* binding */ lazy),
124984
- /* harmony export */ "mapArray": () => (/* binding */ mapArray),
124985
- /* harmony export */ "onCleanup": () => (/* binding */ onCleanup),
124986
- /* harmony export */ "onError": () => (/* binding */ onError),
124987
- /* harmony export */ "reconcile": () => (/* binding */ reconcile),
124988
- /* harmony export */ "requestCallback": () => (/* binding */ requestCallback),
124989
- /* harmony export */ "sample": () => (/* binding */ sample),
124990
- /* harmony export */ "setDefaults": () => (/* binding */ setDefaults),
124991
- /* harmony export */ "splitProps": () => (/* binding */ splitProps),
124992
- /* harmony export */ "suspend": () => (/* binding */ suspend),
124993
- /* harmony export */ "unwrap": () => (/* binding */ unwrap),
124994
- /* harmony export */ "useContext": () => (/* binding */ useContext),
124995
- /* harmony export */ "useTransition": () => (/* binding */ useTransition)
124996
- /* harmony export */ });
124997
- let taskIdCounter = 1,
124998
- isCallbackScheduled = false,
124999
- isPerformingWork = false,
125000
- taskQueue = [],
125001
- currentTask = null,
125002
- shouldYieldToHost = null,
125003
- yieldInterval = 5,
125004
- deadline = 0,
125005
- maxYieldInterval = 300,
125006
- scheduleCallback = null,
125007
- scheduledCallback = null;
125008
- const maxSigned31BitInt = 1073741823;
125009
- function setupScheduler() {
125010
- if (window && window.MessageChannel) {
125011
- const channel = new MessageChannel(),
125012
- port = channel.port2;
125013
- scheduleCallback = () => port.postMessage(null);
125014
- channel.port1.onmessage = () => {
125015
- if (scheduledCallback !== null) {
125016
- const currentTime = performance.now();
125017
- deadline = currentTime + yieldInterval;
125018
- const hasTimeRemaining = true;
125019
- try {
125020
- const hasMoreWork = scheduledCallback(hasTimeRemaining, currentTime);
125021
- if (!hasMoreWork) {
125022
- scheduledCallback = null;
125023
- } else port.postMessage(null);
125024
- } catch (error) {
125025
- port.postMessage(null);
125026
- throw error;
125027
- }
125028
- }
125029
- };
125030
- } else {
125031
- let _callback;
125032
- scheduleCallback = () => {
125033
- if (!_callback) {
125034
- _callback = scheduledCallback;
125035
- setTimeout(() => {
125036
- const currentTime = performance.now();
125037
- deadline = currentTime + yieldInterval;
125038
- const hasMoreWork = _callback(true, currentTime);
125039
- _callback = null;
125040
- if (hasMoreWork) scheduleCallback();
125041
- }, 0);
125042
- }
125043
- };
125044
- }
125045
- if (navigator && navigator.scheduling && navigator.scheduling.isInputPending) {
125046
- const scheduling = navigator.scheduling;
125047
- shouldYieldToHost = () => {
125048
- const currentTime = performance.now();
125049
- if (currentTime >= deadline) {
125050
- if (scheduling.isInputPending()) {
125051
- return true;
125052
- }
125053
- return currentTime >= maxYieldInterval;
125054
- } else {
125055
- return false;
125056
- }
125057
- };
125058
- } else {
125059
- shouldYieldToHost = () => performance.now() >= deadline;
125060
- }
125061
- }
125062
- function enqueue(taskQueue, task) {
125063
- function findIndex() {
125064
- let m = 0;
125065
- let n = taskQueue.length - 1;
125066
- while (m <= n) {
125067
- let k = n + m >> 1;
125068
- let cmp = task.expirationTime - taskQueue[k].expirationTime;
125069
- if (cmp > 0) m = k + 1;else if (cmp < 0) n = k - 1;else return k;
125070
- }
125071
- return m;
125072
- }
125073
- taskQueue.splice(findIndex(), 0, task);
125074
- }
125075
- function requestCallback(fn, options) {
125076
- if (!scheduleCallback) setupScheduler();
125077
- let startTime = performance.now(),
125078
- timeout = maxSigned31BitInt;
125079
- if (options && options.timeout) timeout = options.timeout;
125080
- const newTask = {
125081
- id: taskIdCounter++,
125082
- fn,
125083
- startTime,
125084
- expirationTime: startTime + timeout
125085
- };
125086
- enqueue(taskQueue, newTask);
125087
- if (!isCallbackScheduled && !isPerformingWork) {
125088
- isCallbackScheduled = true;
125089
- scheduledCallback = flushWork;
125090
- scheduleCallback();
125091
- }
125092
- return newTask;
125093
- }
125094
- function cancelCallback(task) {
125095
- task.fn = null;
125096
- }
125097
- function flushWork(hasTimeRemaining, initialTime) {
125098
- isCallbackScheduled = false;
125099
- isPerformingWork = true;
125100
- try {
125101
- return workLoop(hasTimeRemaining, initialTime);
125102
- } finally {
125103
- currentTask = null;
125104
- isPerformingWork = false;
125105
- }
125106
- }
125107
- function workLoop(hasTimeRemaining, initialTime) {
125108
- let currentTime = initialTime;
125109
- currentTask = taskQueue[0] || null;
125110
- while (currentTask !== null) {
125111
- if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {
125112
- break;
125113
- }
125114
- const callback = currentTask.fn;
125115
- if (callback !== null) {
125116
- currentTask.fn = null;
125117
- const didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
125118
- callback(didUserCallbackTimeout);
125119
- currentTime = performance.now();
125120
- if (currentTask === taskQueue[0]) {
125121
- taskQueue.shift();
125122
- }
125123
- } else taskQueue.shift();
125124
- currentTask = taskQueue[0] || null;
125125
- }
125126
- return currentTask !== null;
125127
- }
125128
-
125129
- const equalFn = (a, b) => a === b;
125130
- const ERROR = Symbol("error");
125131
- const NOTPENDING = {};
125132
- const STALE = 1;
125133
- const PENDING = 2;
125134
- const UNOWNED = {
125135
- owned: null,
125136
- cleanups: null,
125137
- context: null,
125138
- owner: null
125139
- };
125140
- let Owner = null;
125141
- let Listener = null;
125142
- let Pending = null;
125143
- let Updates = null;
125144
- let Afters = [];
125145
- let ExecCount = 0;
125146
- function createRoot(fn, detachedOwner) {
125147
- detachedOwner && (Owner = detachedOwner);
125148
- const listener = Listener,
125149
- owner = Owner,
125150
- root = fn.length === 0 ? UNOWNED : {
125151
- owned: null,
125152
- cleanups: null,
125153
- context: null,
125154
- owner
125155
- };
125156
- Owner = root;
125157
- Listener = null;
125158
- let result;
125159
- try {
125160
- result = fn(() => cleanNode(root));
125161
- } catch (err) {
125162
- const fns = lookup(Owner, ERROR);
125163
- if (!fns) throw err;
125164
- fns.forEach(f => f(err));
125165
- } finally {
125166
- while (Afters.length) Afters.shift()();
125167
- Listener = listener;
125168
- Owner = owner;
125169
- }
125170
- return result;
125171
- }
125172
- function createSignal(value, areEqual) {
125173
- const s = {
125174
- value,
125175
- observers: null,
125176
- observerSlots: null,
125177
- pending: NOTPENDING,
125178
- comparator: areEqual ? typeof areEqual === "function" ? areEqual : equalFn : undefined
125179
- };
125180
- return [readSignal.bind(s), writeSignal.bind(s)];
125181
- }
125182
- function createEffect(fn, value) {
125183
- updateComputation(createComputation(fn, value));
125184
- }
125185
- function createDependentEffect(fn, deps, defer) {
125186
- const resolved = Array.isArray(deps) ? callAll(deps) : deps;
125187
- defer = !!defer;
125188
- createEffect(value => {
125189
- const listener = Listener;
125190
- resolved();
125191
- if (defer) defer = false;else {
125192
- Listener = null;
125193
- value = fn(value);
125194
- Listener = listener;
125195
- }
125196
- return value;
125197
- });
125198
- }
125199
- function createMemo(fn, value, areEqual) {
125200
- const c = createComputation(fn, value);
125201
- c.pending = NOTPENDING;
125202
- c.observers = null;
125203
- c.observerSlots = null;
125204
- c.comparator = areEqual ? typeof areEqual === "function" ? areEqual : equalFn : undefined;
125205
- updateComputation(c);
125206
- return readSignal.bind(c);
125207
- }
125208
- function createDeferred(fn, options) {
125209
- let t,
125210
- timeout = options ? options.timeoutMs : undefined;
125211
- const [deferred, setDeferred] = createSignal(fn());
125212
- createEffect(() => {
125213
- fn();
125214
- if (!t || !t.fn) t = requestCallback(() => setDeferred(fn()), timeout !== undefined ? {
125215
- timeout
125216
- } : undefined);
125217
- });
125218
- return deferred;
125219
- }
125220
- function freeze(fn) {
125221
- let pending = Pending,
125222
- q = Pending = [];
125223
- const result = fn();
125224
- Pending = pending;
125225
- runUpdates(() => {
125226
- for (let i = 0; i < q.length; i += 1) {
125227
- const data = q[i];
125228
- if (data.pending !== NOTPENDING) {
125229
- const pending = data.pending;
125230
- data.pending = NOTPENDING;
125231
- writeSignal.call(data, pending);
125232
- }
125233
- }
125234
- });
125235
- return result;
125236
- }
125237
- function sample(fn) {
125238
- let result,
125239
- listener = Listener;
125240
- Listener = null;
125241
- result = fn();
125242
- Listener = listener;
125243
- return result;
125244
- }
125245
- function afterEffects(fn) {
125246
- Afters.push(fn);
125247
- }
125248
- function onCleanup(fn) {
125249
- if (Owner === null) console.warn("cleanups created outside a `createRoot` or `render` will never be run");else if (Owner.cleanups === null) Owner.cleanups = [fn];else Owner.cleanups.push(fn);
125250
- return fn;
125251
- }
125252
- function onError(fn) {
125253
- if (Owner === null) console.warn("error handlers created outside a `createRoot` or `render` will never be run");else if (Owner.context === null) Owner.context = {
125254
- [ERROR]: [fn]
125255
- };else if (!Owner.context[ERROR]) Owner.context[ERROR] = [fn];else Owner.context[ERROR].push(fn);
125256
- }
125257
- function isListening() {
125258
- return Listener !== null;
125259
- }
125260
- function createContext(defaultValue) {
125261
- const id = Symbol("context");
125262
- return {
125263
- id,
125264
- Provider: createProvider(id),
125265
- defaultValue
125266
- };
125267
- }
125268
- function useContext(context) {
125269
- return lookup(Owner, context.id) || context.defaultValue;
125270
- }
125271
- function getContextOwner() {
125272
- return Owner;
125273
- }
125274
- function readSignal() {
125275
- if (this.state && this.sources) {
125276
- const updates = Updates;
125277
- Updates = null;
125278
- this.state === STALE ? updateComputation(this) : lookDownstream(this);
125279
- Updates = updates;
125280
- }
125281
- if (Listener) {
125282
- const sSlot = this.observers ? this.observers.length : 0;
125283
- if (!Listener.sources) {
125284
- Listener.sources = [this];
125285
- Listener.sourceSlots = [sSlot];
125286
- } else {
125287
- Listener.sources.push(this);
125288
- Listener.sourceSlots.push(sSlot);
125289
- }
125290
- if (!this.observers) {
125291
- this.observers = [Listener];
125292
- this.observerSlots = [Listener.sources.length - 1];
125293
- } else {
125294
- this.observers.push(Listener);
125295
- this.observerSlots.push(Listener.sources.length - 1);
125296
- }
125297
- }
125298
- return this.value;
125299
- }
125300
- function writeSignal(value) {
125301
- if (this.comparator && this.comparator(this.value, value)) return value;
125302
- if (Pending) {
125303
- if (this.pending === NOTPENDING) Pending.push(this);
125304
- this.pending = value;
125305
- return value;
125306
- }
125307
- this.value = value;
125308
- if (this.observers && (!Updates || this.observers.length)) {
125309
- runUpdates(() => {
125310
- for (let i = 0; i < this.observers.length; i += 1) {
125311
- const o = this.observers[i];
125312
- if (o.observers && o.state !== PENDING) markUpstream(o);
125313
- o.state = STALE;
125314
- if (Updates.length > 10e5) throw new Error("Potential Infinite Loop Detected.");
125315
- Updates.push(o);
125316
- }
125317
- });
125318
- }
125319
- return value;
125320
- }
125321
- function updateComputation(node) {
125322
- if (!node.fn) return;
125323
- cleanNode(node);
125324
- const owner = Owner,
125325
- listener = Listener,
125326
- time = ExecCount;
125327
- Listener = Owner = node;
125328
- const nextValue = node.fn(node.value);
125329
- if (!node.updatedAt || node.updatedAt <= time) {
125330
- if (node.observers && node.observers.length) {
125331
- writeSignal.call(node, nextValue);
125332
- } else node.value = nextValue;
125333
- node.updatedAt = time;
125334
- }
125335
- Listener = listener;
125336
- Owner = owner;
125337
- }
125338
- function createComputation(fn, init) {
125339
- const c = {
125340
- fn,
125341
- state: 0,
125342
- updatedAt: null,
125343
- owned: null,
125344
- sources: null,
125345
- sourceSlots: null,
125346
- cleanups: null,
125347
- value: init,
125348
- owner: Owner,
125349
- context: null
125350
- };
125351
- if (Owner === null) console.warn("computations created outside a `createRoot` or `render` will never be disposed");else if (Owner !== UNOWNED) {
125352
- if (!Owner.owned) Owner.owned = [c];else Owner.owned.push(c);
125353
- }
125354
- return c;
125355
- }
125356
- function runTop(node) {
125357
- let top = node.state === STALE && node;
125358
- while (node.fn && (node = node.owner)) node.state === STALE && (top = node);
125359
- top && updateComputation(top);
125360
- }
125361
- function runUpdates(fn) {
125362
- if (Updates) return fn();
125363
- Updates = [];
125364
- ExecCount++;
125365
- try {
125366
- fn();
125367
- for (let i = 0; i < Updates.length; i += 1) {
125368
- try {
125369
- runTop(Updates[i]);
125370
- } catch (err) {
125371
- const fns = lookup(Owner, ERROR);
125372
- if (!fns) throw err;
125373
- fns.forEach(f => f(err));
125374
- }
125375
- }
125376
- } finally {
125377
- Updates = null;
125378
- while (Afters.length) Afters.shift()();
125379
- }
125380
- }
125381
- function lookDownstream(node) {
125382
- node.state = 0;
125383
- for (let i = 0; i < node.sources.length; i += 1) {
125384
- const source = node.sources[i];
125385
- if (source.sources) {
125386
- if (source.state === STALE) runTop(source);else if (source.state === PENDING) lookDownstream(source);
125387
- }
125388
- }
125389
- }
125390
- function markUpstream(node) {
125391
- for (let i = 0; i < node.observers.length; i += 1) {
125392
- const o = node.observers[i];
125393
- if (!o.state) {
125394
- o.state = PENDING;
125395
- o.observers && markUpstream(o);
125396
- }
125397
- }
125398
- }
125399
- function cleanNode(node) {
125400
- let i;
125401
- if (node.sources) {
125402
- while (node.sources.length) {
125403
- const source = node.sources.pop(),
125404
- index = node.sourceSlots.pop(),
125405
- obs = source.observers;
125406
- if (obs && obs.length) {
125407
- const n = obs.pop(),
125408
- s = source.observerSlots.pop();
125409
- if (index < obs.length) {
125410
- n.sourceSlots[s] = index;
125411
- obs[index] = n;
125412
- source.observerSlots[index] = s;
125413
- }
125414
- }
125415
- }
125416
- node.state = 0;
125417
- }
125418
- if (node.owned) {
125419
- for (i = 0; i < node.owned.length; i++) cleanNode(node.owned[i]);
125420
- node.owned = null;
125421
- }
125422
- if (node.cleanups) {
125423
- for (i = 0; i < node.cleanups.length; i++) node.cleanups[i]();
125424
- node.cleanups = null;
125425
- }
125426
- }
125427
- function callAll(ss) {
125428
- return () => {
125429
- for (let i = 0; i < ss.length; i++) ss[i]();
125430
- };
125431
- }
125432
- function lookup(owner, key) {
125433
- return owner && (owner.context && owner.context[key] || owner.owner && lookup(owner.owner, key));
125434
- }
125435
- function resolveChildren(children) {
125436
- if (typeof children === "function") return createMemo(() => resolveChildren(children()));
125437
- if (Array.isArray(children)) {
125438
- const results = [];
125439
- for (let i = 0; i < children.length; i++) {
125440
- let result = resolveChildren(children[i]);
125441
- Array.isArray(result) ? results.push.apply(results, result) : results.push(result);
125442
- }
125443
- return results;
125444
- }
125445
- return children;
125446
- }
125447
- function createProvider(id) {
125448
- return function provider(props) {
125449
- let rendered;
125450
- createEffect(() => {
125451
- Owner.context = {
125452
- [id]: props.value
125453
- };
125454
- rendered = sample(() => resolveChildren(props.children));
125455
- });
125456
- return rendered;
125457
- };
125458
- }
125459
-
125460
- const $RAW = Symbol("state-raw"),
125461
- $NODE = Symbol("state-node"),
125462
- $PROXY = Symbol("state-proxy");
125463
- function wrap(value, traps) {
125464
- return value[$PROXY] || (value[$PROXY] = new Proxy(value, traps || proxyTraps));
125465
- }
125466
- function isWrappable(obj) {
125467
- return obj != null && typeof obj === "object" && (obj.__proto__ === Object.prototype || Array.isArray(obj));
125468
- }
125469
- function unwrap(item) {
125470
- let result, unwrapped, v;
125471
- if (result = item != null && item[$RAW]) return result;
125472
- if (!isWrappable(item)) return item;
125473
- if (Array.isArray(item)) {
125474
- if (Object.isFrozen(item)) item = item.slice(0);
125475
- for (let i = 0, l = item.length; i < l; i++) {
125476
- v = item[i];
125477
- if ((unwrapped = unwrap(v)) !== v) item[i] = unwrapped;
125478
- }
125479
- } else {
125480
- if (Object.isFrozen(item)) item = Object.assign({}, item);
125481
- let keys = Object.keys(item);
125482
- for (let i = 0, l = keys.length; i < l; i++) {
125483
- v = item[keys[i]];
125484
- if ((unwrapped = unwrap(v)) !== v) item[keys[i]] = unwrapped;
125485
- }
125486
- }
125487
- return item;
125488
- }
125489
- function getDataNodes(target) {
125490
- let nodes = target[$NODE];
125491
- if (!nodes) target[$NODE] = nodes = {};
125492
- return nodes;
125493
- }
125494
- const proxyTraps = {
125495
- get(target, property) {
125496
- if (property === $RAW) return target;
125497
- if (property === $PROXY || property === $NODE) return;
125498
- const value = target[property],
125499
- wrappable = isWrappable(value);
125500
- if (isListening() && (typeof value !== "function" || target.hasOwnProperty(property))) {
125501
- let nodes, node;
125502
- if (wrappable && (nodes = getDataNodes(value))) {
125503
- node = nodes._ || (nodes._ = createSignal());
125504
- node[0]();
125505
- }
125506
- nodes = getDataNodes(target);
125507
- node = nodes[property] || (nodes[property] = createSignal());
125508
- node[0]();
125509
- }
125510
- return wrappable ? wrap(value) : value;
125511
- },
125512
- set() {
125513
- return true;
125514
- },
125515
- deleteProperty() {
125516
- return true;
125517
- }
125518
- };
125519
- const setterTraps = {
125520
- get(target, property) {
125521
- if (property === $RAW) return target;
125522
- const value = target[property];
125523
- return isWrappable(value) ? new Proxy(value, setterTraps) : value;
125524
- },
125525
- set(target, property, value) {
125526
- setProperty(target, property, unwrap(value));
125527
- return true;
125528
- },
125529
- deleteProperty(target, property) {
125530
- setProperty(target, property, undefined);
125531
- return true;
125532
- }
125533
- };
125534
- function setProperty(state, property, value, force) {
125535
- if (!force && state[property] === value) return;
125536
- const notify = Array.isArray(state) || !(property in state);
125537
- if (value === undefined) {
125538
- delete state[property];
125539
- } else state[property] = value;
125540
- let nodes = getDataNodes(state),
125541
- node;
125542
- (node = nodes[property]) && node[1]();
125543
- notify && (node = nodes._) && node[1]();
125544
- }
125545
- function mergeState(state, value, force) {
125546
- const keys = Object.keys(value);
125547
- for (let i = 0; i < keys.length; i += 1) {
125548
- const key = keys[i];
125549
- setProperty(state, key, value[key], force);
125550
- }
125551
- }
125552
- function updatePath(current, path, traversed = []) {
125553
- let part,
125554
- next = current;
125555
- if (path.length > 1) {
125556
- part = path.shift();
125557
- const partType = typeof part,
125558
- isArray = Array.isArray(current);
125559
- if (Array.isArray(part)) {
125560
- for (let i = 0; i < part.length; i++) {
125561
- updatePath(current, [part[i]].concat(path), [part[i]].concat(traversed));
125562
- }
125563
- return;
125564
- } else if (isArray && partType === "function") {
125565
- for (let i = 0; i < current.length; i++) {
125566
- if (part(current[i], i)) updatePath(current, [i].concat(path), [i].concat(traversed));
125567
- }
125568
- return;
125569
- } else if (isArray && partType === "object") {
125570
- const {
125571
- from = 0,
125572
- to = current.length - 1,
125573
- by = 1
125574
- } = part;
125575
- for (let i = from; i <= to; i += by) {
125576
- updatePath(current, [i].concat(path), [i].concat(traversed));
125577
- }
125578
- return;
125579
- } else if (path.length > 1) {
125580
- updatePath(current[part], path, [part].concat(traversed));
125581
- return;
125582
- }
125583
- next = current[part];
125584
- traversed = [part].concat(traversed);
125585
- }
125586
- let value = path[0];
125587
- if (typeof value === "function") {
125588
- const wrapped = part === undefined || isWrappable(next) ? new Proxy(next, setterTraps) : next;
125589
- value = value(wrapped, traversed);
125590
- if (value === wrapped || value === undefined) return;
125591
- }
125592
- value = unwrap(value);
125593
- if (part === undefined || isWrappable(next) && isWrappable(value) && !Array.isArray(value)) {
125594
- mergeState(next, value);
125595
- } else setProperty(current, part, value);
125596
- }
125597
- function createState(state) {
125598
- const unwrappedState = unwrap(state || {});
125599
- const wrappedState = wrap(unwrappedState);
125600
- function setState(...args) {
125601
- freeze(() => updatePath(unwrappedState, args));
125602
- }
125603
- return [wrappedState, setState];
125604
- }
125605
-
125606
- function applyState(target, parent, property, merge, key) {
125607
- let previous = parent[property];
125608
- if (target === previous) return;
125609
- if (!isWrappable(target) || !isWrappable(previous) || key && target[key] !== previous[key]) {
125610
- target !== previous && setProperty(parent, property, target);
125611
- return;
125612
- }
125613
- if (Array.isArray(target)) {
125614
- if (target.length && previous.length && (!merge || key && target[0][key] != null)) {
125615
- let i, j, start, end, newEnd, item, newIndicesNext, keyVal;
125616
- for (start = 0, end = Math.min(previous.length, target.length); start < end && (previous[start] === target[start] || key && previous[start][key] === target[start][key]); start++) {
125617
- applyState(target[start], previous, start, merge, key);
125618
- }
125619
- const temp = new Array(target.length),
125620
- newIndices = new Map();
125621
- for (end = previous.length - 1, newEnd = target.length - 1; end >= start && newEnd >= start && (previous[end] === target[newEnd] || key && previous[end][key] === target[newEnd][key]); end--, newEnd--) {
125622
- temp[newEnd] = previous[end];
125623
- }
125624
- if (start > newEnd || start > end) {
125625
- for (j = start; j <= newEnd; j++) setProperty(previous, j, target[j]);
125626
- for (; j < target.length; j++) {
125627
- setProperty(previous, j, temp[j]);
125628
- applyState(target[j], previous, j, merge, key);
125629
- }
125630
- if (previous.length > target.length) setProperty(previous, "length", target.length);
125631
- return;
125632
- }
125633
- newIndicesNext = new Array(newEnd + 1);
125634
- for (j = newEnd; j >= start; j--) {
125635
- item = target[j];
125636
- keyVal = key ? item[key] : item;
125637
- i = newIndices.get(keyVal);
125638
- newIndicesNext[j] = i === undefined ? -1 : i;
125639
- newIndices.set(keyVal, j);
125640
- }
125641
- for (i = start; i <= end; i++) {
125642
- item = previous[i];
125643
- keyVal = key ? item[key] : item;
125644
- j = newIndices.get(keyVal);
125645
- if (j !== undefined && j !== -1) {
125646
- temp[j] = previous[i];
125647
- j = newIndicesNext[j];
125648
- newIndices.set(keyVal, j);
125649
- }
125650
- }
125651
- for (j = start; j < target.length; j++) {
125652
- if (j in temp) {
125653
- setProperty(previous, j, temp[j]);
125654
- applyState(target[j], previous, j, merge, key);
125655
- } else setProperty(previous, j, target[j]);
125656
- }
125657
- } else {
125658
- for (let i = 0, len = target.length; i < len; i++) {
125659
- applyState(target[i], previous, i, merge, key);
125660
- }
125661
- }
125662
- if (previous.length > target.length) setProperty(previous, "length", target.length);
125663
- return;
125664
- }
125665
- const targetKeys = Object.keys(target);
125666
- for (let i = 0, len = targetKeys.length; i < len; i++) {
125667
- applyState(target[targetKeys[i]], previous, targetKeys[i], merge, key);
125668
- }
125669
- const previousKeys = Object.keys(previous);
125670
- for (let i = 0, len = previousKeys.length; i < len; i++) {
125671
- if (target[previousKeys[i]] === undefined) setProperty(previous, previousKeys[i], undefined);
125672
- }
125673
- }
125674
- function reconcile(value, options = {}) {
125675
- const {
125676
- merge,
125677
- key = "id"
125678
- } = options;
125679
- return state => {
125680
- state = unwrap(state);
125681
- if (!isWrappable(state)) return value;
125682
- applyState(value, {
125683
- state
125684
- }, "state", merge, key);
125685
- };
125686
- }
125687
-
125688
- const FALLBACK = Symbol("fallback");
125689
- function mapArray(list, mapFn, options) {
125690
- if (typeof mapFn !== "function") {
125691
- options = mapFn || {};
125692
- mapFn = list;
125693
- return map;
125694
- }
125695
- options || (options = {});
125696
- return map(list);
125697
- function map(list) {
125698
- let items = [],
125699
- mapped = [],
125700
- disposers = [],
125701
- len = 0,
125702
- indexes = mapFn.length > 1 ? [] : null;
125703
- onCleanup(() => {
125704
- for (let i = 0, length = disposers.length; i < length; i++) disposers[i]();
125705
- });
125706
- return () => {
125707
- let newItems = list() || [],
125708
- i,
125709
- j;
125710
- return sample(() => {
125711
- let newLen = newItems.length,
125712
- newIndices,
125713
- newIndicesNext,
125714
- temp,
125715
- tempdisposers,
125716
- tempIndexes,
125717
- start,
125718
- end,
125719
- newEnd,
125720
- item;
125721
- if (newLen === 0) {
125722
- if (len !== 0) {
125723
- for (i = 0; i < len; i++) disposers[i]();
125724
- disposers = [];
125725
- items = [];
125726
- mapped = [];
125727
- len = 0;
125728
- indexes && (indexes = []);
125729
- }
125730
- if (options.fallback) {
125731
- items = [FALLBACK];
125732
- mapped[0] = createRoot(disposer => {
125733
- disposers[0] = disposer;
125734
- return options.fallback();
125735
- });
125736
- len = 1;
125737
- }
125738
- }
125739
- else if (len === 0) {
125740
- for (j = 0; j < newLen; j++) {
125741
- items[j] = newItems[j];
125742
- mapped[j] = createRoot(mapper);
125743
- }
125744
- len = newLen;
125745
- } else {
125746
- temp = new Array(newLen);
125747
- tempdisposers = new Array(newLen);
125748
- indexes && (tempIndexes = new Array(newLen));
125749
- for (start = 0, end = Math.min(len, newLen); start < end && items[start] === newItems[start]; start++);
125750
- for (end = len - 1, newEnd = newLen - 1; end >= start && newEnd >= start && items[end] === newItems[newEnd]; end--, newEnd--) {
125751
- temp[newEnd] = mapped[end];
125752
- tempdisposers[newEnd] = disposers[end];
125753
- indexes && (tempIndexes[newEnd] = indexes[end]);
125754
- }
125755
- if (start > newEnd) {
125756
- for (j = end; start <= j; j--) disposers[j]();
125757
- const rLen = end - start + 1;
125758
- if (rLen > 0) {
125759
- mapped.splice(start, rLen);
125760
- disposers.splice(start, rLen);
125761
- if (indexes) {
125762
- indexes.splice(start, rLen);
125763
- for (j = start; j < newLen; j++) indexes[j](j);
125764
- }
125765
- }
125766
- items = newItems.slice(0);
125767
- len = newLen;
125768
- return mapped;
125769
- }
125770
- if (start > end) {
125771
- for (j = start; j <= newEnd; j++) mapped[j] = createRoot(mapper);
125772
- for (; j < newLen; j++) {
125773
- mapped[j] = temp[j];
125774
- disposers[j] = tempdisposers[j];
125775
- if (indexes) {
125776
- indexes[j] = tempIndexes[j];
125777
- indexes[j](j);
125778
- }
125779
- }
125780
- items = newItems.slice(0);
125781
- len = newLen;
125782
- return mapped;
125783
- }
125784
- newIndices = new Map();
125785
- newIndicesNext = new Array(newEnd + 1);
125786
- for (j = newEnd; j >= start; j--) {
125787
- item = newItems[j];
125788
- i = newIndices.get(item);
125789
- newIndicesNext[j] = i === undefined ? -1 : i;
125790
- newIndices.set(item, j);
125791
- }
125792
- for (i = start; i <= end; i++) {
125793
- item = items[i];
125794
- j = newIndices.get(item);
125795
- if (j !== undefined && j !== -1) {
125796
- temp[j] = mapped[i];
125797
- tempdisposers[j] = disposers[i];
125798
- indexes && (tempIndexes[j] = indexes[i]);
125799
- j = newIndicesNext[j];
125800
- newIndices.set(item, j);
125801
- } else disposers[i]();
125802
- }
125803
- for (j = start; j < newLen; j++) {
125804
- if (j in temp) {
125805
- mapped[j] = temp[j];
125806
- disposers[j] = tempdisposers[j];
125807
- if (indexes) {
125808
- indexes[j] = tempIndexes[j];
125809
- indexes[j](j);
125810
- }
125811
- } else mapped[j] = createRoot(mapper);
125812
- }
125813
- len = mapped.length = newLen;
125814
- items = newItems.slice(0);
125815
- }
125816
- return mapped;
125817
- });
125818
- function mapper(disposer) {
125819
- disposers[j] = disposer;
125820
- if (indexes) {
125821
- const [s, set] = createSignal(j, true);
125822
- indexes[j] = set;
125823
- return mapFn(newItems[j], s);
125824
- }
125825
- return mapFn(newItems[j]);
125826
- }
125827
- };
125828
- }
125829
- }
125830
- function indexArray(list, mapFn, options) {
125831
- if (typeof mapFn !== "function") {
125832
- options = mapFn || {};
125833
- mapFn = list;
125834
- return map;
125835
- }
125836
- options || (options = {});
125837
- return map(list);
125838
- function map(list) {
125839
- let items = [],
125840
- mapped = [],
125841
- disposers = [],
125842
- signals = [],
125843
- len = 0,
125844
- i;
125845
- onCleanup(() => {
125846
- for (let i = 0, length = disposers.length; i < length; i++) disposers[i]();
125847
- });
125848
- return () => {
125849
- const newItems = list() || [];
125850
- return sample(() => {
125851
- if (newItems.length === 0) {
125852
- if (len !== 0) {
125853
- for (i = 0; i < len; i++) disposers[i]();
125854
- disposers = [];
125855
- items = [];
125856
- mapped = [];
125857
- len = 0;
125858
- signals = [];
125859
- }
125860
- if (options.fallback) {
125861
- items = [FALLBACK];
125862
- mapped[0] = createRoot(disposer => {
125863
- disposers[0] = disposer;
125864
- return options.fallback();
125865
- });
125866
- len = 1;
125867
- }
125868
- return mapped;
125869
- }
125870
- if (items[0] === FALLBACK) {
125871
- disposers[0]();
125872
- disposers = [];
125873
- items = [];
125874
- mapped = [];
125875
- len = 0;
125876
- }
125877
- for (i = 0; i < newItems.length; i++) {
125878
- if (i < items.length && items[i] !== newItems[i]) {
125879
- signals[i](newItems[i]);
125880
- } else if (i >= items.length) {
125881
- mapped[i] = createRoot(mapper);
125882
- }
125883
- }
125884
- for (; i < items.length; i++) {
125885
- disposers[i]();
125886
- }
125887
- len = mapped.length = signals.length = disposers.length = newItems.length;
125888
- items = newItems.slice(0);
125889
- return mapped;
125890
- });
125891
- function mapper(disposer) {
125892
- disposers[i] = disposer;
125893
- const [s, set] = createSignal(newItems[i]);
125894
- signals[i] = set;
125895
- return mapFn(s, i);
125896
- }
125897
- };
125898
- }
125899
- }
125900
-
125901
- function dynamicProperty(props, key) {
125902
- const src = props[key];
125903
- Object.defineProperty(props, key, {
125904
- get() {
125905
- return src();
125906
- },
125907
- enumerable: true
125908
- });
125909
- }
125910
- function createComponent(Comp, props, dynamicKeys) {
125911
- if (dynamicKeys) {
125912
- for (let i = 0; i < dynamicKeys.length; i++) dynamicProperty(props, dynamicKeys[i]);
125913
- }
125914
- const c = sample(() => Comp(props));
125915
- return typeof c === "function" ? createMemo(c) : c;
125916
- }
125917
- function setDefaults(props, defaultProps) {
125918
- const propKeys = Object.keys(defaultProps);
125919
- for (let i = 0; i < propKeys.length; i++) {
125920
- const key = propKeys[i];
125921
- !(key in props) && (props[key] = defaultProps[key]);
125922
- }
125923
- }
125924
- function cloneProps(props) {
125925
- const clone = {},
125926
- descriptors = Object.getOwnPropertyDescriptors(props);
125927
- Object.defineProperties(clone, descriptors);
125928
- return clone;
125929
- }
125930
- function splitProps(props, ...keys) {
125931
- const descriptors = Object.getOwnPropertyDescriptors(props),
125932
- split = k => {
125933
- const clone = {};
125934
- for (let i = 0; i < k.length; i++) {
125935
- const key = k[i];
125936
- if (descriptors[key]) {
125937
- Object.defineProperty(clone, key, descriptors[key]);
125938
- delete descriptors[key];
125939
- }
125940
- }
125941
- return clone;
125942
- };
125943
- return keys.map(split).concat(split(Object.keys(descriptors)));
125944
- }
125945
-
125946
- function createActivityTracker() {
125947
- let count = 0;
125948
- const [read, trigger] = createSignal(false);
125949
- return [read, () => count++ === 0 && trigger(true), () => --count <= 0 && trigger(false)];
125950
- }
125951
- const SuspenseContext = createContext({});
125952
- const [active, increment, decrement] = createActivityTracker();
125953
- SuspenseContext.active = active;
125954
- SuspenseContext.increment = increment;
125955
- SuspenseContext.decrement = decrement;
125956
- function awaitSuspense(fn) {
125957
- return () => new Promise(resolve => {
125958
- const res = fn();
125959
- createEffect(() => !SuspenseContext.active() && resolve(res));
125960
- });
125961
- }
125962
- function createResource(value) {
125963
- const [s, set] = createSignal(value),
125964
- [trackPromise, triggerPromise] = createSignal(),
125965
- [trackLoading, triggerLoading] = createSignal(),
125966
- contexts = new Set();
125967
- let loading = false,
125968
- error = null,
125969
- pr;
125970
- function loadEnd(v) {
125971
- pr = undefined;
125972
- freeze(() => {
125973
- set(v);
125974
- loading && (loading = false, triggerLoading());
125975
- for (let c of contexts.keys()) c.decrement();
125976
- contexts.clear();
125977
- });
125978
- }
125979
- function read() {
125980
- const c = useContext(SuspenseContext),
125981
- v = s();
125982
- if (error) throw error;
125983
- trackPromise();
125984
- if (pr && c.increment && !contexts.has(c)) {
125985
- c.increment();
125986
- contexts.add(c);
125987
- }
125988
- return v;
125989
- }
125990
- function load(p) {
125991
- error = null;
125992
- if (p == null || typeof p !== "object" || !("then" in p)) {
125993
- pr = undefined;
125994
- loadEnd(p);
125995
- return p;
125996
- } else {
125997
- pr = p;
125998
- if (!loading) {
125999
- loading = true;
126000
- freeze(() => {
126001
- triggerLoading();
126002
- triggerPromise();
126003
- });
126004
- }
126005
- return p.then(v => (pr === p && loadEnd(v), s()), err => (pr === p && (error = err, loadEnd(undefined)), s()));
126006
- }
126007
- }
126008
- Object.defineProperty(read, "loading", {
126009
- get() {
126010
- return trackLoading(), loading;
126011
- }
126012
- });
126013
- return [read, load];
126014
- }
126015
- function createResourceNode(v) {
126016
- const node = createSignal(),
126017
- [r, load] = createResource(v);
126018
- return [() => (r(), node[0]()), node[1], load, () => r.loading];
126019
- }
126020
- const loadingTraps = {
126021
- get(nodes, property) {
126022
- const node = nodes[property] || (nodes[property] = createResourceNode(undefined));
126023
- return node[3]();
126024
- },
126025
- set() {
126026
- return true;
126027
- },
126028
- deleteProperty() {
126029
- return true;
126030
- }
126031
- };
126032
- const resourceTraps = {
126033
- get(target, property) {
126034
- if (property === $RAW) return target;
126035
- if (property === $PROXY || property === $NODE) return;
126036
- if (property === "loading") return new Proxy(getDataNodes(target), loadingTraps);
126037
- const value = target[property],
126038
- wrappable = isWrappable(value);
126039
- if (isListening() && (typeof value !== "function" || target.hasOwnProperty(property))) {
126040
- let nodes, node;
126041
- if (wrappable && (nodes = getDataNodes(value))) {
126042
- node = nodes._ || (nodes._ = createSignal());
126043
- node[0]();
126044
- }
126045
- nodes = getDataNodes(target);
126046
- node = nodes[property] || (nodes[property] = createResourceNode(value));
126047
- node[0]();
126048
- }
126049
- return wrappable ? wrap(value) : value;
126050
- },
126051
- set() {
126052
- return true;
126053
- },
126054
- deleteProperty() {
126055
- return true;
126056
- }
126057
- };
126058
- function createResourceState(state) {
126059
- const unwrappedState = unwrap(state || {}),
126060
- wrappedState = wrap(unwrappedState, resourceTraps);
126061
- function setState(...args) {
126062
- freeze(() => updatePath(unwrappedState, args));
126063
- }
126064
- function loadState(v, r) {
126065
- const nodes = getDataNodes(unwrappedState),
126066
- keys = Object.keys(v);
126067
- for (let i = 0; i < keys.length; i++) {
126068
- const k = keys[i],
126069
- node = nodes[k] || (nodes[k] = createResourceNode(unwrappedState[k])),
126070
- resolver = v => (r ? setState(k, r(v)) : setProperty(unwrappedState, k, v), v),
126071
- p = node[2](v[k]);
126072
- typeof p === "object" && "then" in p ? p.then(resolver) : resolver(p);
126073
- }
126074
- }
126075
- return [wrappedState, loadState, setState];
126076
- }
126077
- function lazy(fn) {
126078
- return props => {
126079
- const hydrating = globalThis._$HYDRATION.context && globalThis._$HYDRATION.context.registry,
126080
- ctx = nextHydrateContext(),
126081
- [s, p] = createResource();
126082
- if (hydrating) {
126083
- fn().then(mod => p(mod.default));
126084
- } else p(fn().then(mod => mod.default));
126085
- let Comp;
126086
- return () => (Comp = s()) && sample(() => {
126087
- if (!ctx) return Comp(props);
126088
- const h = globalThis._$HYDRATION.context;
126089
- setHydrateContext(ctx);
126090
- const r = Comp(props);
126091
- !h && setHydrateContext();
126092
- return r;
126093
- });
126094
- };
126095
- }
126096
- function useTransition(config) {
126097
- const [pending, increment, decrement] = createActivityTracker();
126098
- return [pending, fn => {
126099
- const prevTransition = SuspenseContext.transition;
126100
- SuspenseContext.transition = {
126101
- timeoutMs: config.timeoutMs,
126102
- increment,
126103
- decrement
126104
- };
126105
- increment();
126106
- fn();
126107
- decrement();
126108
- afterEffects(() => SuspenseContext.transition = prevTransition);
126109
- }];
126110
- }
126111
- function suspend(fn) {
126112
- const {
126113
- state
126114
- } = useContext(SuspenseContext);
126115
- let cached;
126116
- return state ? (fn = createMemo(fn), () => state() === "suspended" ? cached : cached = fn()) : fn;
126117
- }
126118
- function setHydrateContext(context) {
126119
- globalThis._$HYDRATION.context = context;
126120
- }
126121
- function nextHydrateContext() {
126122
- const hydration = globalThis._$HYDRATION;
126123
- return hydration && hydration.context ? {
126124
- id: `${hydration.context.id}.${hydration.context.count++}`,
126125
- count: 0,
126126
- registry: hydration.context.registry
126127
- } : undefined;
126128
- }
126129
-
126130
- function For(props) {
126131
- const fallback = "fallback" in props && {
126132
- fallback: () => props.fallback
126133
- };
126134
- return suspend(mapArray(() => props.each, props.children, fallback ? fallback : undefined));
126135
- }
126136
- function Index(props) {
126137
- const fallback = "fallback" in props && {
126138
- fallback: () => props.fallback
126139
- };
126140
- return suspend(indexArray(() => props.each, props.children, fallback ? fallback : undefined));
126141
- }
126142
- function Show(props) {
126143
- const childDesc = Object.getOwnPropertyDescriptor(props, "children").value,
126144
- callFn = typeof childDesc === "function" && childDesc.length,
126145
- condition = createMemo(callFn ? () => props.when : () => !!props.when, undefined, true);
126146
- return suspend(() => {
126147
- const c = condition();
126148
- return c ? callFn ? sample(() => props.children(c)) : props.children : props.fallback;
126149
- });
126150
- }
126151
- function Switch(props) {
126152
- let conditions = props.children;
126153
- Array.isArray(conditions) || (conditions = [conditions]);
126154
- const evalConditions = createMemo(() => {
126155
- for (let i = 0; i < conditions.length; i++) {
126156
- const c = conditions[i].when;
126157
- if (c) return [i, conditions[i].keyed ? c : !!c];
126158
- }
126159
- return [-1];
126160
- }, undefined, (a, b) => a && a[0] === b[0] && a[1] === b[1]);
126161
- return suspend(() => {
126162
- const [index, when] = evalConditions();
126163
- if (index < 0) return props.fallback;
126164
- const c = conditions[index].children;
126165
- return typeof c === "function" && c.length ? sample(() => c(when)) : c;
126166
- });
126167
- }
126168
- function Match(props) {
126169
- const childDesc = Object.getOwnPropertyDescriptor(props, "children").value;
126170
- props.keyed = typeof childDesc === "function" && childDesc.length;
126171
- return props;
126172
- }
126173
- function Dynamic(props) {
126174
- const [p, others] = splitProps(props, ["component"]);
126175
- return () => {
126176
- const comp = p.component;
126177
- return comp && sample(() => comp(others));
126178
- };
126179
- }
126180
-
126181
- const SuspenseListContext = createContext();
126182
- function SuspenseList(props) {
126183
- let index = 0,
126184
- suspenseSetter,
126185
- showContent,
126186
- showFallback;
126187
- const listContext = useContext(SuspenseListContext);
126188
- if (listContext) {
126189
- const [state, stateSetter] = createSignal("running", true);
126190
- suspenseSetter = stateSetter;
126191
- [showContent, showFallback] = listContext.register(state);
126192
- }
126193
- const registry = [],
126194
- comp = createComponent(SuspenseListContext.Provider, {
126195
- value: {
126196
- register: state => {
126197
- const [showingContent, showContent] = createSignal(false, true),
126198
- [showingFallback, showFallback] = createSignal(false, true);
126199
- registry[index++] = {
126200
- state,
126201
- showContent,
126202
- showFallback
126203
- };
126204
- return [showingContent, showingFallback];
126205
- }
126206
- },
126207
- children: () => props.children
126208
- }, ["children"]);
126209
- createEffect(() => {
126210
- const reveal = props.revealOrder,
126211
- tail = props.tail,
126212
- visibleContent = showContent ? showContent() : true,
126213
- visibleFallback = showFallback ? showFallback() : true,
126214
- reverse = reveal === "backwards";
126215
- if (reveal === "together") {
126216
- const all = registry.every(i => i.state() === "running");
126217
- suspenseSetter && suspenseSetter(all ? "running" : "fallback");
126218
- registry.forEach(i => {
126219
- i.showContent(all && visibleContent);
126220
- i.showFallback(visibleFallback);
126221
- });
126222
- return;
126223
- }
126224
- let stop = false;
126225
- for (let i = 0, len = registry.length; i < len; i++) {
126226
- const n = reverse ? len - i - 1 : i,
126227
- s = registry[n].state();
126228
- if (!stop && (s === "running" || s === "suspended")) {
126229
- registry[n].showContent(visibleContent);
126230
- registry[n].showFallback(visibleFallback);
126231
- } else {
126232
- const next = !stop;
126233
- if (next && suspenseSetter) suspenseSetter("fallback");
126234
- if (!tail || next && tail === "collapsed") {
126235
- registry[n].showFallback(visibleFallback);
126236
- } else registry[n].showFallback(false);
126237
- stop = true;
126238
- registry[n].showContent(next);
126239
- }
126240
- }
126241
- if (!stop && suspenseSetter) suspenseSetter("running");
126242
- });
126243
- return comp;
126244
- }
126245
- function Suspense(props) {
126246
- let counter = 0,
126247
- t,
126248
- showContent,
126249
- showFallback,
126250
- transition;
126251
- const [state, nextState] = createSignal("running", true),
126252
- store = {
126253
- increment: () => {
126254
- if (++counter === 1) {
126255
- if (!store.initializing) {
126256
- if (SuspenseContext.transition) {
126257
- !transition && (transition = SuspenseContext.transition).increment();
126258
- t = setTimeout(() => nextState("fallback"), SuspenseContext.transition.timeoutMs);
126259
- nextState("suspended");
126260
- } else nextState("fallback");
126261
- } else nextState("fallback");
126262
- SuspenseContext.increment();
126263
- }
126264
- },
126265
- decrement: () => {
126266
- if (--counter === 0) {
126267
- t && clearTimeout(t);
126268
- transition && transition.decrement();
126269
- transition = undefined;
126270
- nextState("running");
126271
- afterEffects(() => SuspenseContext.decrement());
126272
- }
126273
- },
126274
- state,
126275
- initializing: true
126276
- };
126277
- const listContext = useContext(SuspenseListContext);
126278
- if (listContext) [showContent, showFallback] = listContext.register(store.state);
126279
- return createComponent(SuspenseContext.Provider, {
126280
- value: store,
126281
- children: () => {
126282
- const rendered = sample(() => props.children);
126283
- return () => {
126284
- const value = store.state(),
126285
- visibleContent = showContent ? showContent() : true,
126286
- visibleFallback = showFallback ? showFallback() : true;
126287
- if (store.initializing) store.initializing = false;
126288
- if (value === "running" && visibleContent || value === "suspended") return rendered;
126289
- if (!visibleFallback) return;
126290
- return props.fallback;
126291
- };
126292
- }
126293
- }, ["children"]);
126294
- }
126295
-
126296
-
126297
-
126298
-
126299
124085
  /***/ }),
126300
124086
 
126301
124087
  /***/ "../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":
@@ -216436,6 +214222,2461 @@ const html = (strings, ...values) => new _lib_template_result_js__WEBPACK_IMPORT
216436
214222
  const svg = (strings, ...values) => new _lib_template_result_js__WEBPACK_IMPORTED_MODULE_1__.SVGTemplateResult(strings, values, 'svg', _lib_default_template_processor_js__WEBPACK_IMPORTED_MODULE_0__.defaultTemplateProcessor);
216437
214223
  //# sourceMappingURL=lit-html.js.map
216438
214224
 
214225
+ /***/ }),
214226
+
214227
+ /***/ "../../../node_modules/solid-js/dist/dev.js":
214228
+ /*!**************************************************!*\
214229
+ !*** ../../../node_modules/solid-js/dist/dev.js ***!
214230
+ \**************************************************/
214231
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
214232
+
214233
+ "use strict";
214234
+ __webpack_require__.r(__webpack_exports__);
214235
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
214236
+ /* harmony export */ "$DEVCOMP": () => (/* binding */ $DEVCOMP),
214237
+ /* harmony export */ "$PROXY": () => (/* binding */ $PROXY),
214238
+ /* harmony export */ "$TRACK": () => (/* binding */ $TRACK),
214239
+ /* harmony export */ "DEV": () => (/* binding */ DEV),
214240
+ /* harmony export */ "ErrorBoundary": () => (/* binding */ ErrorBoundary),
214241
+ /* harmony export */ "For": () => (/* binding */ For),
214242
+ /* harmony export */ "Index": () => (/* binding */ Index),
214243
+ /* harmony export */ "Match": () => (/* binding */ Match),
214244
+ /* harmony export */ "Show": () => (/* binding */ Show),
214245
+ /* harmony export */ "Suspense": () => (/* binding */ Suspense),
214246
+ /* harmony export */ "SuspenseList": () => (/* binding */ SuspenseList),
214247
+ /* harmony export */ "Switch": () => (/* binding */ Switch),
214248
+ /* harmony export */ "batch": () => (/* binding */ batch),
214249
+ /* harmony export */ "cancelCallback": () => (/* binding */ cancelCallback),
214250
+ /* harmony export */ "catchError": () => (/* binding */ catchError),
214251
+ /* harmony export */ "children": () => (/* binding */ children),
214252
+ /* harmony export */ "createComponent": () => (/* binding */ createComponent),
214253
+ /* harmony export */ "createComputed": () => (/* binding */ createComputed),
214254
+ /* harmony export */ "createContext": () => (/* binding */ createContext),
214255
+ /* harmony export */ "createDeferred": () => (/* binding */ createDeferred),
214256
+ /* harmony export */ "createEffect": () => (/* binding */ createEffect),
214257
+ /* harmony export */ "createMemo": () => (/* binding */ createMemo),
214258
+ /* harmony export */ "createReaction": () => (/* binding */ createReaction),
214259
+ /* harmony export */ "createRenderEffect": () => (/* binding */ createRenderEffect),
214260
+ /* harmony export */ "createResource": () => (/* binding */ createResource),
214261
+ /* harmony export */ "createRoot": () => (/* binding */ createRoot),
214262
+ /* harmony export */ "createSelector": () => (/* binding */ createSelector),
214263
+ /* harmony export */ "createSignal": () => (/* binding */ createSignal),
214264
+ /* harmony export */ "createUniqueId": () => (/* binding */ createUniqueId),
214265
+ /* harmony export */ "enableExternalSource": () => (/* binding */ enableExternalSource),
214266
+ /* harmony export */ "enableHydration": () => (/* binding */ enableHydration),
214267
+ /* harmony export */ "enableScheduling": () => (/* binding */ enableScheduling),
214268
+ /* harmony export */ "equalFn": () => (/* binding */ equalFn),
214269
+ /* harmony export */ "from": () => (/* binding */ from),
214270
+ /* harmony export */ "getListener": () => (/* binding */ getListener),
214271
+ /* harmony export */ "getOwner": () => (/* binding */ getOwner),
214272
+ /* harmony export */ "indexArray": () => (/* binding */ indexArray),
214273
+ /* harmony export */ "lazy": () => (/* binding */ lazy),
214274
+ /* harmony export */ "mapArray": () => (/* binding */ mapArray),
214275
+ /* harmony export */ "mergeProps": () => (/* binding */ mergeProps),
214276
+ /* harmony export */ "observable": () => (/* binding */ observable),
214277
+ /* harmony export */ "on": () => (/* binding */ on),
214278
+ /* harmony export */ "onCleanup": () => (/* binding */ onCleanup),
214279
+ /* harmony export */ "onError": () => (/* binding */ onError),
214280
+ /* harmony export */ "onMount": () => (/* binding */ onMount),
214281
+ /* harmony export */ "requestCallback": () => (/* binding */ requestCallback),
214282
+ /* harmony export */ "resetErrorBoundaries": () => (/* binding */ resetErrorBoundaries),
214283
+ /* harmony export */ "runWithOwner": () => (/* binding */ runWithOwner),
214284
+ /* harmony export */ "sharedConfig": () => (/* binding */ sharedConfig),
214285
+ /* harmony export */ "splitProps": () => (/* binding */ splitProps),
214286
+ /* harmony export */ "startTransition": () => (/* binding */ startTransition),
214287
+ /* harmony export */ "untrack": () => (/* binding */ untrack),
214288
+ /* harmony export */ "useContext": () => (/* binding */ useContext),
214289
+ /* harmony export */ "useTransition": () => (/* binding */ useTransition)
214290
+ /* harmony export */ });
214291
+ let taskIdCounter = 1,
214292
+ isCallbackScheduled = false,
214293
+ isPerformingWork = false,
214294
+ taskQueue = [],
214295
+ currentTask = null,
214296
+ shouldYieldToHost = null,
214297
+ yieldInterval = 5,
214298
+ deadline = 0,
214299
+ maxYieldInterval = 300,
214300
+ scheduleCallback = null,
214301
+ scheduledCallback = null;
214302
+ const maxSigned31BitInt = 1073741823;
214303
+ function setupScheduler() {
214304
+ const channel = new MessageChannel(),
214305
+ port = channel.port2;
214306
+ scheduleCallback = () => port.postMessage(null);
214307
+ channel.port1.onmessage = () => {
214308
+ if (scheduledCallback !== null) {
214309
+ const currentTime = performance.now();
214310
+ deadline = currentTime + yieldInterval;
214311
+ const hasTimeRemaining = true;
214312
+ try {
214313
+ const hasMoreWork = scheduledCallback(hasTimeRemaining, currentTime);
214314
+ if (!hasMoreWork) {
214315
+ scheduledCallback = null;
214316
+ } else port.postMessage(null);
214317
+ } catch (error) {
214318
+ port.postMessage(null);
214319
+ throw error;
214320
+ }
214321
+ }
214322
+ };
214323
+ if (navigator && navigator.scheduling && navigator.scheduling.isInputPending) {
214324
+ const scheduling = navigator.scheduling;
214325
+ shouldYieldToHost = () => {
214326
+ const currentTime = performance.now();
214327
+ if (currentTime >= deadline) {
214328
+ if (scheduling.isInputPending()) {
214329
+ return true;
214330
+ }
214331
+ return currentTime >= maxYieldInterval;
214332
+ } else {
214333
+ return false;
214334
+ }
214335
+ };
214336
+ } else {
214337
+ shouldYieldToHost = () => performance.now() >= deadline;
214338
+ }
214339
+ }
214340
+ function enqueue(taskQueue, task) {
214341
+ function findIndex() {
214342
+ let m = 0;
214343
+ let n = taskQueue.length - 1;
214344
+ while (m <= n) {
214345
+ const k = n + m >> 1;
214346
+ const cmp = task.expirationTime - taskQueue[k].expirationTime;
214347
+ if (cmp > 0) m = k + 1;else if (cmp < 0) n = k - 1;else return k;
214348
+ }
214349
+ return m;
214350
+ }
214351
+ taskQueue.splice(findIndex(), 0, task);
214352
+ }
214353
+ function requestCallback(fn, options) {
214354
+ if (!scheduleCallback) setupScheduler();
214355
+ let startTime = performance.now(),
214356
+ timeout = maxSigned31BitInt;
214357
+ if (options && options.timeout) timeout = options.timeout;
214358
+ const newTask = {
214359
+ id: taskIdCounter++,
214360
+ fn,
214361
+ startTime,
214362
+ expirationTime: startTime + timeout
214363
+ };
214364
+ enqueue(taskQueue, newTask);
214365
+ if (!isCallbackScheduled && !isPerformingWork) {
214366
+ isCallbackScheduled = true;
214367
+ scheduledCallback = flushWork;
214368
+ scheduleCallback();
214369
+ }
214370
+ return newTask;
214371
+ }
214372
+ function cancelCallback(task) {
214373
+ task.fn = null;
214374
+ }
214375
+ function flushWork(hasTimeRemaining, initialTime) {
214376
+ isCallbackScheduled = false;
214377
+ isPerformingWork = true;
214378
+ try {
214379
+ return workLoop(hasTimeRemaining, initialTime);
214380
+ } finally {
214381
+ currentTask = null;
214382
+ isPerformingWork = false;
214383
+ }
214384
+ }
214385
+ function workLoop(hasTimeRemaining, initialTime) {
214386
+ let currentTime = initialTime;
214387
+ currentTask = taskQueue[0] || null;
214388
+ while (currentTask !== null) {
214389
+ if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {
214390
+ break;
214391
+ }
214392
+ const callback = currentTask.fn;
214393
+ if (callback !== null) {
214394
+ currentTask.fn = null;
214395
+ const didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
214396
+ callback(didUserCallbackTimeout);
214397
+ currentTime = performance.now();
214398
+ if (currentTask === taskQueue[0]) {
214399
+ taskQueue.shift();
214400
+ }
214401
+ } else taskQueue.shift();
214402
+ currentTask = taskQueue[0] || null;
214403
+ }
214404
+ return currentTask !== null;
214405
+ }
214406
+
214407
+ const sharedConfig = {
214408
+ context: undefined,
214409
+ registry: undefined
214410
+ };
214411
+ function setHydrateContext(context) {
214412
+ sharedConfig.context = context;
214413
+ }
214414
+ function nextHydrateContext() {
214415
+ return {
214416
+ ...sharedConfig.context,
214417
+ id: `${sharedConfig.context.id}${sharedConfig.context.count++}-`,
214418
+ count: 0
214419
+ };
214420
+ }
214421
+
214422
+ const equalFn = (a, b) => a === b;
214423
+ const $PROXY = Symbol("solid-proxy");
214424
+ const $TRACK = Symbol("solid-track");
214425
+ const $DEVCOMP = Symbol("solid-dev-component");
214426
+ const signalOptions = {
214427
+ equals: equalFn
214428
+ };
214429
+ let ERROR = null;
214430
+ let runEffects = runQueue;
214431
+ const STALE = 1;
214432
+ const PENDING = 2;
214433
+ const UNOWNED = {
214434
+ owned: null,
214435
+ cleanups: null,
214436
+ context: null,
214437
+ owner: null
214438
+ };
214439
+ const NO_INIT = {};
214440
+ var Owner = null;
214441
+ let Transition = null;
214442
+ let Scheduler = null;
214443
+ let ExternalSourceFactory = null;
214444
+ let Listener = null;
214445
+ let Updates = null;
214446
+ let Effects = null;
214447
+ let ExecCount = 0;
214448
+ const DevHooks = {
214449
+ afterUpdate: null,
214450
+ afterCreateOwner: null
214451
+ };
214452
+ const [transPending, setTransPending] = /*@__PURE__*/createSignal(false);
214453
+ function createRoot(fn, detachedOwner) {
214454
+ const listener = Listener,
214455
+ owner = Owner,
214456
+ unowned = fn.length === 0,
214457
+ root = unowned ? {
214458
+ owned: null,
214459
+ cleanups: null,
214460
+ context: null,
214461
+ owner: null
214462
+ } : {
214463
+ owned: null,
214464
+ cleanups: null,
214465
+ context: null,
214466
+ owner: detachedOwner === undefined ? owner : detachedOwner
214467
+ },
214468
+ updateFn = unowned ? () => fn(() => {
214469
+ throw new Error("Dispose method must be an explicit argument to createRoot function");
214470
+ }) : () => fn(() => untrack(() => cleanNode(root)));
214471
+ DevHooks.afterCreateOwner && DevHooks.afterCreateOwner(root);
214472
+ Owner = root;
214473
+ Listener = null;
214474
+ try {
214475
+ return runUpdates(updateFn, true);
214476
+ } finally {
214477
+ Listener = listener;
214478
+ Owner = owner;
214479
+ }
214480
+ }
214481
+ function createSignal(value, options) {
214482
+ options = options ? Object.assign({}, signalOptions, options) : signalOptions;
214483
+ const s = {
214484
+ value,
214485
+ observers: null,
214486
+ observerSlots: null,
214487
+ comparator: options.equals || undefined
214488
+ };
214489
+ if (!options.internal) {
214490
+ if (options.name) s.name = options.name;
214491
+ registerGraph(s);
214492
+ }
214493
+ const setter = value => {
214494
+ if (typeof value === "function") {
214495
+ if (Transition && Transition.running && Transition.sources.has(s)) value = value(s.tValue);else value = value(s.value);
214496
+ }
214497
+ return writeSignal(s, value);
214498
+ };
214499
+ return [readSignal.bind(s), setter];
214500
+ }
214501
+ function createComputed(fn, value, options) {
214502
+ const c = createComputation(fn, value, true, STALE, options );
214503
+ if (Scheduler && Transition && Transition.running) Updates.push(c);else updateComputation(c);
214504
+ }
214505
+ function createRenderEffect(fn, value, options) {
214506
+ const c = createComputation(fn, value, false, STALE, options );
214507
+ if (Scheduler && Transition && Transition.running) Updates.push(c);else updateComputation(c);
214508
+ }
214509
+ function createEffect(fn, value, options) {
214510
+ runEffects = runUserEffects;
214511
+ const c = createComputation(fn, value, false, STALE, options ),
214512
+ s = SuspenseContext && lookup(Owner, SuspenseContext.id);
214513
+ if (s) c.suspense = s;
214514
+ if (!options || !options.render) c.user = true;
214515
+ Effects ? Effects.push(c) : updateComputation(c);
214516
+ }
214517
+ function createReaction(onInvalidate, options) {
214518
+ let fn;
214519
+ const c = createComputation(() => {
214520
+ fn ? fn() : untrack(onInvalidate);
214521
+ fn = undefined;
214522
+ }, undefined, false, 0, options ),
214523
+ s = SuspenseContext && lookup(Owner, SuspenseContext.id);
214524
+ if (s) c.suspense = s;
214525
+ c.user = true;
214526
+ return tracking => {
214527
+ fn = tracking;
214528
+ updateComputation(c);
214529
+ };
214530
+ }
214531
+ function createMemo(fn, value, options) {
214532
+ options = options ? Object.assign({}, signalOptions, options) : signalOptions;
214533
+ const c = createComputation(fn, value, true, 0, options );
214534
+ c.observers = null;
214535
+ c.observerSlots = null;
214536
+ c.comparator = options.equals || undefined;
214537
+ if (Scheduler && Transition && Transition.running) {
214538
+ c.tState = STALE;
214539
+ Updates.push(c);
214540
+ } else updateComputation(c);
214541
+ return readSignal.bind(c);
214542
+ }
214543
+ function createResource(pSource, pFetcher, pOptions) {
214544
+ let source;
214545
+ let fetcher;
214546
+ let options;
214547
+ if (arguments.length === 2 && typeof pFetcher === "object" || arguments.length === 1) {
214548
+ source = true;
214549
+ fetcher = pSource;
214550
+ options = pFetcher || {};
214551
+ } else {
214552
+ source = pSource;
214553
+ fetcher = pFetcher;
214554
+ options = pOptions || {};
214555
+ }
214556
+ let pr = null,
214557
+ initP = NO_INIT,
214558
+ id = null,
214559
+ loadedUnderTransition = false,
214560
+ scheduled = false,
214561
+ resolved = ("initialValue" in options),
214562
+ dynamic = typeof source === "function" && createMemo(source);
214563
+ const contexts = new Set(),
214564
+ [value, setValue] = (options.storage || createSignal)(options.initialValue),
214565
+ [error, setError] = createSignal(undefined),
214566
+ [track, trigger] = createSignal(undefined, {
214567
+ equals: false
214568
+ }),
214569
+ [state, setState] = createSignal(resolved ? "ready" : "unresolved");
214570
+ if (sharedConfig.context) {
214571
+ id = `${sharedConfig.context.id}${sharedConfig.context.count++}`;
214572
+ let v;
214573
+ if (options.ssrLoadFrom === "initial") initP = options.initialValue;else if (sharedConfig.load && (v = sharedConfig.load(id))) initP = v[0];
214574
+ }
214575
+ function loadEnd(p, v, error, key) {
214576
+ if (pr === p) {
214577
+ pr = null;
214578
+ resolved = true;
214579
+ if ((p === initP || v === initP) && options.onHydrated) queueMicrotask(() => options.onHydrated(key, {
214580
+ value: v
214581
+ }));
214582
+ initP = NO_INIT;
214583
+ if (Transition && p && loadedUnderTransition) {
214584
+ Transition.promises.delete(p);
214585
+ loadedUnderTransition = false;
214586
+ runUpdates(() => {
214587
+ Transition.running = true;
214588
+ completeLoad(v, error);
214589
+ }, false);
214590
+ } else completeLoad(v, error);
214591
+ }
214592
+ return v;
214593
+ }
214594
+ function completeLoad(v, err) {
214595
+ runUpdates(() => {
214596
+ if (err === undefined) setValue(() => v);
214597
+ setState(err !== undefined ? "errored" : "ready");
214598
+ setError(err);
214599
+ for (const c of contexts.keys()) c.decrement();
214600
+ contexts.clear();
214601
+ }, false);
214602
+ }
214603
+ function read() {
214604
+ const c = SuspenseContext && lookup(Owner, SuspenseContext.id),
214605
+ v = value(),
214606
+ err = error();
214607
+ if (err !== undefined && !pr) throw err;
214608
+ if (Listener && !Listener.user && c) {
214609
+ createComputed(() => {
214610
+ track();
214611
+ if (pr) {
214612
+ if (c.resolved && Transition && loadedUnderTransition) Transition.promises.add(pr);else if (!contexts.has(c)) {
214613
+ c.increment();
214614
+ contexts.add(c);
214615
+ }
214616
+ }
214617
+ });
214618
+ }
214619
+ return v;
214620
+ }
214621
+ function load(refetching = true) {
214622
+ if (refetching !== false && scheduled) return;
214623
+ scheduled = false;
214624
+ const lookup = dynamic ? dynamic() : source;
214625
+ loadedUnderTransition = Transition && Transition.running;
214626
+ if (lookup == null || lookup === false) {
214627
+ loadEnd(pr, untrack(value));
214628
+ return;
214629
+ }
214630
+ if (Transition && pr) Transition.promises.delete(pr);
214631
+ const p = initP !== NO_INIT ? initP : untrack(() => fetcher(lookup, {
214632
+ value: value(),
214633
+ refetching
214634
+ }));
214635
+ if (typeof p !== "object" || !(p && "then" in p)) {
214636
+ loadEnd(pr, p, undefined, lookup);
214637
+ return p;
214638
+ }
214639
+ pr = p;
214640
+ scheduled = true;
214641
+ queueMicrotask(() => scheduled = false);
214642
+ runUpdates(() => {
214643
+ setState(resolved ? "refreshing" : "pending");
214644
+ trigger();
214645
+ }, false);
214646
+ return p.then(v => loadEnd(p, v, undefined, lookup), e => loadEnd(p, undefined, castError(e), lookup));
214647
+ }
214648
+ Object.defineProperties(read, {
214649
+ state: {
214650
+ get: () => state()
214651
+ },
214652
+ error: {
214653
+ get: () => error()
214654
+ },
214655
+ loading: {
214656
+ get() {
214657
+ const s = state();
214658
+ return s === "pending" || s === "refreshing";
214659
+ }
214660
+ },
214661
+ latest: {
214662
+ get() {
214663
+ if (!resolved) return read();
214664
+ const err = error();
214665
+ if (err && !pr) throw err;
214666
+ return value();
214667
+ }
214668
+ }
214669
+ });
214670
+ if (dynamic) createComputed(() => load(false));else load(false);
214671
+ return [read, {
214672
+ refetch: load,
214673
+ mutate: setValue
214674
+ }];
214675
+ }
214676
+ function createDeferred(source, options) {
214677
+ let t,
214678
+ timeout = options ? options.timeoutMs : undefined;
214679
+ const node = createComputation(() => {
214680
+ if (!t || !t.fn) t = requestCallback(() => setDeferred(() => node.value), timeout !== undefined ? {
214681
+ timeout
214682
+ } : undefined);
214683
+ return source();
214684
+ }, undefined, true);
214685
+ const [deferred, setDeferred] = createSignal(node.value, options);
214686
+ updateComputation(node);
214687
+ setDeferred(() => node.value);
214688
+ return deferred;
214689
+ }
214690
+ function createSelector(source, fn = equalFn, options) {
214691
+ const subs = new Map();
214692
+ const node = createComputation(p => {
214693
+ const v = source();
214694
+ for (const [key, val] of subs.entries()) if (fn(key, v) !== fn(key, p)) {
214695
+ for (const c of val.values()) {
214696
+ c.state = STALE;
214697
+ if (c.pure) Updates.push(c);else Effects.push(c);
214698
+ }
214699
+ }
214700
+ return v;
214701
+ }, undefined, true, STALE, options );
214702
+ updateComputation(node);
214703
+ return key => {
214704
+ const listener = Listener;
214705
+ if (listener) {
214706
+ let l;
214707
+ if (l = subs.get(key)) l.add(listener);else subs.set(key, l = new Set([listener]));
214708
+ onCleanup(() => {
214709
+ l.delete(listener);
214710
+ !l.size && subs.delete(key);
214711
+ });
214712
+ }
214713
+ return fn(key, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value);
214714
+ };
214715
+ }
214716
+ function batch(fn) {
214717
+ return runUpdates(fn, false);
214718
+ }
214719
+ function untrack(fn) {
214720
+ if (Listener === null) return fn();
214721
+ const listener = Listener;
214722
+ Listener = null;
214723
+ try {
214724
+ return fn();
214725
+ } finally {
214726
+ Listener = listener;
214727
+ }
214728
+ }
214729
+ function on(deps, fn, options) {
214730
+ const isArray = Array.isArray(deps);
214731
+ let prevInput;
214732
+ let defer = options && options.defer;
214733
+ return prevValue => {
214734
+ let input;
214735
+ if (isArray) {
214736
+ input = Array(deps.length);
214737
+ for (let i = 0; i < deps.length; i++) input[i] = deps[i]();
214738
+ } else input = deps();
214739
+ if (defer) {
214740
+ defer = false;
214741
+ return undefined;
214742
+ }
214743
+ const result = untrack(() => fn(input, prevInput, prevValue));
214744
+ prevInput = input;
214745
+ return result;
214746
+ };
214747
+ }
214748
+ function onMount(fn) {
214749
+ createEffect(() => untrack(fn));
214750
+ }
214751
+ function onCleanup(fn) {
214752
+ if (Owner === null) console.warn("cleanups created outside a `createRoot` or `render` will never be run");else if (Owner.cleanups === null) Owner.cleanups = [fn];else Owner.cleanups.push(fn);
214753
+ return fn;
214754
+ }
214755
+ function catchError(fn, handler) {
214756
+ ERROR || (ERROR = Symbol("error"));
214757
+ Owner = createComputation(undefined, undefined, true);
214758
+ Owner.context = {
214759
+ [ERROR]: [handler]
214760
+ };
214761
+ if (Transition && Transition.running) Transition.sources.add(Owner);
214762
+ try {
214763
+ return fn();
214764
+ } catch (err) {
214765
+ handleError(err);
214766
+ } finally {
214767
+ Owner = Owner.owner;
214768
+ }
214769
+ }
214770
+ function onError(fn) {
214771
+ ERROR || (ERROR = Symbol("error"));
214772
+ if (Owner === null) console.warn("error handlers created outside a `createRoot` or `render` will never be run");else if (Owner.context === null) Owner.context = {
214773
+ [ERROR]: [fn]
214774
+ };else if (!Owner.context[ERROR]) Owner.context[ERROR] = [fn];else Owner.context[ERROR].push(fn);
214775
+ }
214776
+ function getListener() {
214777
+ return Listener;
214778
+ }
214779
+ function getOwner() {
214780
+ return Owner;
214781
+ }
214782
+ function runWithOwner(o, fn) {
214783
+ const prev = Owner;
214784
+ const prevListener = Listener;
214785
+ Owner = o;
214786
+ Listener = null;
214787
+ try {
214788
+ return runUpdates(fn, true);
214789
+ } catch (err) {
214790
+ handleError(err);
214791
+ } finally {
214792
+ Owner = prev;
214793
+ Listener = prevListener;
214794
+ }
214795
+ }
214796
+ function enableScheduling(scheduler = requestCallback) {
214797
+ Scheduler = scheduler;
214798
+ }
214799
+ function startTransition(fn) {
214800
+ if (Transition && Transition.running) {
214801
+ fn();
214802
+ return Transition.done;
214803
+ }
214804
+ const l = Listener;
214805
+ const o = Owner;
214806
+ return Promise.resolve().then(() => {
214807
+ Listener = l;
214808
+ Owner = o;
214809
+ let t;
214810
+ if (Scheduler || SuspenseContext) {
214811
+ t = Transition || (Transition = {
214812
+ sources: new Set(),
214813
+ effects: [],
214814
+ promises: new Set(),
214815
+ disposed: new Set(),
214816
+ queue: new Set(),
214817
+ running: true
214818
+ });
214819
+ t.done || (t.done = new Promise(res => t.resolve = res));
214820
+ t.running = true;
214821
+ }
214822
+ runUpdates(fn, false);
214823
+ Listener = Owner = null;
214824
+ return t ? t.done : undefined;
214825
+ });
214826
+ }
214827
+ function useTransition() {
214828
+ return [transPending, startTransition];
214829
+ }
214830
+ function resumeEffects(e) {
214831
+ Effects.push.apply(Effects, e);
214832
+ e.length = 0;
214833
+ }
214834
+ function devComponent(Comp, props) {
214835
+ const c = createComputation(() => untrack(() => {
214836
+ Object.assign(Comp, {
214837
+ [$DEVCOMP]: true
214838
+ });
214839
+ return Comp(props);
214840
+ }), undefined, true, 0);
214841
+ c.props = props;
214842
+ c.observers = null;
214843
+ c.observerSlots = null;
214844
+ c.name = Comp.name;
214845
+ c.component = Comp;
214846
+ updateComputation(c);
214847
+ return c.tValue !== undefined ? c.tValue : c.value;
214848
+ }
214849
+ function registerGraph(value) {
214850
+ if (!Owner) return;
214851
+ if (Owner.sourceMap) Owner.sourceMap.push(value);else Owner.sourceMap = [value];
214852
+ value.graph = Owner;
214853
+ }
214854
+ function createContext(defaultValue, options) {
214855
+ const id = Symbol("context");
214856
+ return {
214857
+ id,
214858
+ Provider: createProvider(id, options),
214859
+ defaultValue
214860
+ };
214861
+ }
214862
+ function useContext(context) {
214863
+ let ctx;
214864
+ return (ctx = lookup(Owner, context.id)) !== undefined ? ctx : context.defaultValue;
214865
+ }
214866
+ function children(fn) {
214867
+ const children = createMemo(fn);
214868
+ const memo = createMemo(() => resolveChildren(children()), undefined, {
214869
+ name: "children"
214870
+ }) ;
214871
+ memo.toArray = () => {
214872
+ const c = memo();
214873
+ return Array.isArray(c) ? c : c != null ? [c] : [];
214874
+ };
214875
+ return memo;
214876
+ }
214877
+ let SuspenseContext;
214878
+ function getSuspenseContext() {
214879
+ return SuspenseContext || (SuspenseContext = createContext({}));
214880
+ }
214881
+ function enableExternalSource(factory) {
214882
+ if (ExternalSourceFactory) {
214883
+ const oldFactory = ExternalSourceFactory;
214884
+ ExternalSourceFactory = (fn, trigger) => {
214885
+ const oldSource = oldFactory(fn, trigger);
214886
+ const source = factory(x => oldSource.track(x), trigger);
214887
+ return {
214888
+ track: x => source.track(x),
214889
+ dispose() {
214890
+ source.dispose();
214891
+ oldSource.dispose();
214892
+ }
214893
+ };
214894
+ };
214895
+ } else {
214896
+ ExternalSourceFactory = factory;
214897
+ }
214898
+ }
214899
+ function readSignal() {
214900
+ const runningTransition = Transition && Transition.running;
214901
+ if (this.sources && (runningTransition ? this.tState : this.state)) {
214902
+ if ((runningTransition ? this.tState : this.state) === STALE) updateComputation(this);else {
214903
+ const updates = Updates;
214904
+ Updates = null;
214905
+ runUpdates(() => lookUpstream(this), false);
214906
+ Updates = updates;
214907
+ }
214908
+ }
214909
+ if (Listener) {
214910
+ const sSlot = this.observers ? this.observers.length : 0;
214911
+ if (!Listener.sources) {
214912
+ Listener.sources = [this];
214913
+ Listener.sourceSlots = [sSlot];
214914
+ } else {
214915
+ Listener.sources.push(this);
214916
+ Listener.sourceSlots.push(sSlot);
214917
+ }
214918
+ if (!this.observers) {
214919
+ this.observers = [Listener];
214920
+ this.observerSlots = [Listener.sources.length - 1];
214921
+ } else {
214922
+ this.observers.push(Listener);
214923
+ this.observerSlots.push(Listener.sources.length - 1);
214924
+ }
214925
+ }
214926
+ if (runningTransition && Transition.sources.has(this)) return this.tValue;
214927
+ return this.value;
214928
+ }
214929
+ function writeSignal(node, value, isComp) {
214930
+ let current = Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value;
214931
+ if (!node.comparator || !node.comparator(current, value)) {
214932
+ if (Transition) {
214933
+ const TransitionRunning = Transition.running;
214934
+ if (TransitionRunning || !isComp && Transition.sources.has(node)) {
214935
+ Transition.sources.add(node);
214936
+ node.tValue = value;
214937
+ }
214938
+ if (!TransitionRunning) node.value = value;
214939
+ } else node.value = value;
214940
+ if (node.observers && node.observers.length) {
214941
+ runUpdates(() => {
214942
+ for (let i = 0; i < node.observers.length; i += 1) {
214943
+ const o = node.observers[i];
214944
+ const TransitionRunning = Transition && Transition.running;
214945
+ if (TransitionRunning && Transition.disposed.has(o)) continue;
214946
+ if (TransitionRunning ? !o.tState : !o.state) {
214947
+ if (o.pure) Updates.push(o);else Effects.push(o);
214948
+ if (o.observers) markDownstream(o);
214949
+ }
214950
+ if (!TransitionRunning) o.state = STALE;else o.tState = STALE;
214951
+ }
214952
+ if (Updates.length > 10e5) {
214953
+ Updates = [];
214954
+ if (true) throw new Error("Potential Infinite Loop Detected.");
214955
+ throw new Error();
214956
+ }
214957
+ }, false);
214958
+ }
214959
+ }
214960
+ return value;
214961
+ }
214962
+ function updateComputation(node) {
214963
+ if (!node.fn) return;
214964
+ cleanNode(node);
214965
+ const owner = Owner,
214966
+ listener = Listener,
214967
+ time = ExecCount;
214968
+ Listener = Owner = node;
214969
+ runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
214970
+ if (Transition && !Transition.running && Transition.sources.has(node)) {
214971
+ queueMicrotask(() => {
214972
+ runUpdates(() => {
214973
+ Transition && (Transition.running = true);
214974
+ Listener = Owner = node;
214975
+ runComputation(node, node.tValue, time);
214976
+ Listener = Owner = null;
214977
+ }, false);
214978
+ });
214979
+ }
214980
+ Listener = listener;
214981
+ Owner = owner;
214982
+ }
214983
+ function runComputation(node, value, time) {
214984
+ let nextValue;
214985
+ try {
214986
+ nextValue = node.fn(value);
214987
+ } catch (err) {
214988
+ if (node.pure) {
214989
+ if (Transition && Transition.running) {
214990
+ node.tState = STALE;
214991
+ node.tOwned && node.tOwned.forEach(cleanNode);
214992
+ node.tOwned = undefined;
214993
+ } else {
214994
+ node.state = STALE;
214995
+ node.owned && node.owned.forEach(cleanNode);
214996
+ node.owned = null;
214997
+ }
214998
+ }
214999
+ node.updatedAt = time + 1;
215000
+ return handleError(err);
215001
+ }
215002
+ if (!node.updatedAt || node.updatedAt <= time) {
215003
+ if (node.updatedAt != null && "observers" in node) {
215004
+ writeSignal(node, nextValue, true);
215005
+ } else if (Transition && Transition.running && node.pure) {
215006
+ Transition.sources.add(node);
215007
+ node.tValue = nextValue;
215008
+ } else node.value = nextValue;
215009
+ node.updatedAt = time;
215010
+ }
215011
+ }
215012
+ function createComputation(fn, init, pure, state = STALE, options) {
215013
+ const c = {
215014
+ fn,
215015
+ state: state,
215016
+ updatedAt: null,
215017
+ owned: null,
215018
+ sources: null,
215019
+ sourceSlots: null,
215020
+ cleanups: null,
215021
+ value: init,
215022
+ owner: Owner,
215023
+ context: null,
215024
+ pure
215025
+ };
215026
+ if (Transition && Transition.running) {
215027
+ c.state = 0;
215028
+ c.tState = state;
215029
+ }
215030
+ if (Owner === null) console.warn("computations created outside a `createRoot` or `render` will never be disposed");else if (Owner !== UNOWNED) {
215031
+ if (Transition && Transition.running && Owner.pure) {
215032
+ if (!Owner.tOwned) Owner.tOwned = [c];else Owner.tOwned.push(c);
215033
+ } else {
215034
+ if (!Owner.owned) Owner.owned = [c];else Owner.owned.push(c);
215035
+ }
215036
+ }
215037
+ if (options && options.name) c.name = options.name;
215038
+ if (ExternalSourceFactory) {
215039
+ const [track, trigger] = createSignal(undefined, {
215040
+ equals: false
215041
+ });
215042
+ const ordinary = ExternalSourceFactory(c.fn, trigger);
215043
+ onCleanup(() => ordinary.dispose());
215044
+ const triggerInTransition = () => startTransition(trigger).then(() => inTransition.dispose());
215045
+ const inTransition = ExternalSourceFactory(c.fn, triggerInTransition);
215046
+ c.fn = x => {
215047
+ track();
215048
+ return Transition && Transition.running ? inTransition.track(x) : ordinary.track(x);
215049
+ };
215050
+ }
215051
+ DevHooks.afterCreateOwner && DevHooks.afterCreateOwner(c);
215052
+ return c;
215053
+ }
215054
+ function runTop(node) {
215055
+ const runningTransition = Transition && Transition.running;
215056
+ if ((runningTransition ? node.tState : node.state) === 0) return;
215057
+ if ((runningTransition ? node.tState : node.state) === PENDING) return lookUpstream(node);
215058
+ if (node.suspense && untrack(node.suspense.inFallback)) return node.suspense.effects.push(node);
215059
+ const ancestors = [node];
215060
+ while ((node = node.owner) && (!node.updatedAt || node.updatedAt < ExecCount)) {
215061
+ if (runningTransition && Transition.disposed.has(node)) return;
215062
+ if (runningTransition ? node.tState : node.state) ancestors.push(node);
215063
+ }
215064
+ for (let i = ancestors.length - 1; i >= 0; i--) {
215065
+ node = ancestors[i];
215066
+ if (runningTransition) {
215067
+ let top = node,
215068
+ prev = ancestors[i + 1];
215069
+ while ((top = top.owner) && top !== prev) {
215070
+ if (Transition.disposed.has(top)) return;
215071
+ }
215072
+ }
215073
+ if ((runningTransition ? node.tState : node.state) === STALE) {
215074
+ updateComputation(node);
215075
+ } else if ((runningTransition ? node.tState : node.state) === PENDING) {
215076
+ const updates = Updates;
215077
+ Updates = null;
215078
+ runUpdates(() => lookUpstream(node, ancestors[0]), false);
215079
+ Updates = updates;
215080
+ }
215081
+ }
215082
+ }
215083
+ function runUpdates(fn, init) {
215084
+ if (Updates) return fn();
215085
+ let wait = false;
215086
+ if (!init) Updates = [];
215087
+ if (Effects) wait = true;else Effects = [];
215088
+ ExecCount++;
215089
+ try {
215090
+ const res = fn();
215091
+ completeUpdates(wait);
215092
+ return res;
215093
+ } catch (err) {
215094
+ if (!wait) Effects = null;
215095
+ Updates = null;
215096
+ handleError(err);
215097
+ }
215098
+ }
215099
+ function completeUpdates(wait) {
215100
+ if (Updates) {
215101
+ if (Scheduler && Transition && Transition.running) scheduleQueue(Updates);else runQueue(Updates);
215102
+ Updates = null;
215103
+ }
215104
+ if (wait) return;
215105
+ let res;
215106
+ if (Transition) {
215107
+ if (!Transition.promises.size && !Transition.queue.size) {
215108
+ const sources = Transition.sources;
215109
+ const disposed = Transition.disposed;
215110
+ Effects.push.apply(Effects, Transition.effects);
215111
+ res = Transition.resolve;
215112
+ for (const e of Effects) {
215113
+ "tState" in e && (e.state = e.tState);
215114
+ delete e.tState;
215115
+ }
215116
+ Transition = null;
215117
+ runUpdates(() => {
215118
+ for (const d of disposed) cleanNode(d);
215119
+ for (const v of sources) {
215120
+ v.value = v.tValue;
215121
+ if (v.owned) {
215122
+ for (let i = 0, len = v.owned.length; i < len; i++) cleanNode(v.owned[i]);
215123
+ }
215124
+ if (v.tOwned) v.owned = v.tOwned;
215125
+ delete v.tValue;
215126
+ delete v.tOwned;
215127
+ v.tState = 0;
215128
+ }
215129
+ setTransPending(false);
215130
+ }, false);
215131
+ } else if (Transition.running) {
215132
+ Transition.running = false;
215133
+ Transition.effects.push.apply(Transition.effects, Effects);
215134
+ Effects = null;
215135
+ setTransPending(true);
215136
+ return;
215137
+ }
215138
+ }
215139
+ const e = Effects;
215140
+ Effects = null;
215141
+ if (e.length) runUpdates(() => runEffects(e), false);else DevHooks.afterUpdate && DevHooks.afterUpdate();
215142
+ if (res) res();
215143
+ }
215144
+ function runQueue(queue) {
215145
+ for (let i = 0; i < queue.length; i++) runTop(queue[i]);
215146
+ }
215147
+ function scheduleQueue(queue) {
215148
+ for (let i = 0; i < queue.length; i++) {
215149
+ const item = queue[i];
215150
+ const tasks = Transition.queue;
215151
+ if (!tasks.has(item)) {
215152
+ tasks.add(item);
215153
+ Scheduler(() => {
215154
+ tasks.delete(item);
215155
+ runUpdates(() => {
215156
+ Transition.running = true;
215157
+ runTop(item);
215158
+ }, false);
215159
+ Transition && (Transition.running = false);
215160
+ });
215161
+ }
215162
+ }
215163
+ }
215164
+ function runUserEffects(queue) {
215165
+ let i,
215166
+ userLength = 0;
215167
+ for (i = 0; i < queue.length; i++) {
215168
+ const e = queue[i];
215169
+ if (!e.user) runTop(e);else queue[userLength++] = e;
215170
+ }
215171
+ if (sharedConfig.context) setHydrateContext();
215172
+ for (i = 0; i < userLength; i++) runTop(queue[i]);
215173
+ }
215174
+ function lookUpstream(node, ignore) {
215175
+ const runningTransition = Transition && Transition.running;
215176
+ if (runningTransition) node.tState = 0;else node.state = 0;
215177
+ for (let i = 0; i < node.sources.length; i += 1) {
215178
+ const source = node.sources[i];
215179
+ if (source.sources) {
215180
+ const state = runningTransition ? source.tState : source.state;
215181
+ if (state === STALE) {
215182
+ if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
215183
+ } else if (state === PENDING) lookUpstream(source, ignore);
215184
+ }
215185
+ }
215186
+ }
215187
+ function markDownstream(node) {
215188
+ const runningTransition = Transition && Transition.running;
215189
+ for (let i = 0; i < node.observers.length; i += 1) {
215190
+ const o = node.observers[i];
215191
+ if (runningTransition ? !o.tState : !o.state) {
215192
+ if (runningTransition) o.tState = PENDING;else o.state = PENDING;
215193
+ if (o.pure) Updates.push(o);else Effects.push(o);
215194
+ o.observers && markDownstream(o);
215195
+ }
215196
+ }
215197
+ }
215198
+ function cleanNode(node) {
215199
+ let i;
215200
+ if (node.sources) {
215201
+ while (node.sources.length) {
215202
+ const source = node.sources.pop(),
215203
+ index = node.sourceSlots.pop(),
215204
+ obs = source.observers;
215205
+ if (obs && obs.length) {
215206
+ const n = obs.pop(),
215207
+ s = source.observerSlots.pop();
215208
+ if (index < obs.length) {
215209
+ n.sourceSlots[s] = index;
215210
+ obs[index] = n;
215211
+ source.observerSlots[index] = s;
215212
+ }
215213
+ }
215214
+ }
215215
+ }
215216
+ if (Transition && Transition.running && node.pure) {
215217
+ if (node.tOwned) {
215218
+ for (i = node.tOwned.length - 1; i >= 0; i--) cleanNode(node.tOwned[i]);
215219
+ delete node.tOwned;
215220
+ }
215221
+ reset(node, true);
215222
+ } else if (node.owned) {
215223
+ for (i = node.owned.length - 1; i >= 0; i--) cleanNode(node.owned[i]);
215224
+ node.owned = null;
215225
+ }
215226
+ if (node.cleanups) {
215227
+ for (i = node.cleanups.length - 1; i >= 0; i--) node.cleanups[i]();
215228
+ node.cleanups = null;
215229
+ }
215230
+ if (Transition && Transition.running) node.tState = 0;else node.state = 0;
215231
+ node.context = null;
215232
+ delete node.sourceMap;
215233
+ }
215234
+ function reset(node, top) {
215235
+ if (!top) {
215236
+ node.tState = 0;
215237
+ Transition.disposed.add(node);
215238
+ }
215239
+ if (node.owned) {
215240
+ for (let i = 0; i < node.owned.length; i++) reset(node.owned[i]);
215241
+ }
215242
+ }
215243
+ function castError(err) {
215244
+ if (err instanceof Error) return err;
215245
+ return new Error(typeof err === "string" ? err : "Unknown error", {
215246
+ cause: err
215247
+ });
215248
+ }
215249
+ function runErrors(fns, err) {
215250
+ for (const f of fns) f(err);
215251
+ }
215252
+ function handleError(err) {
215253
+ const fns = ERROR && lookup(Owner, ERROR);
215254
+ if (!fns) throw err;
215255
+ const error = castError(err);
215256
+ if (Effects) Effects.push({
215257
+ fn() {
215258
+ runErrors(fns, error);
215259
+ },
215260
+ state: STALE
215261
+ });else runErrors(fns, error);
215262
+ }
215263
+ function lookup(owner, key) {
215264
+ return owner ? owner.context && owner.context[key] !== undefined ? owner.context[key] : lookup(owner.owner, key) : undefined;
215265
+ }
215266
+ function resolveChildren(children) {
215267
+ if (typeof children === "function" && !children.length) return resolveChildren(children());
215268
+ if (Array.isArray(children)) {
215269
+ const results = [];
215270
+ for (let i = 0; i < children.length; i++) {
215271
+ const result = resolveChildren(children[i]);
215272
+ Array.isArray(result) ? results.push.apply(results, result) : results.push(result);
215273
+ }
215274
+ return results;
215275
+ }
215276
+ return children;
215277
+ }
215278
+ function createProvider(id, options) {
215279
+ return function provider(props) {
215280
+ let res;
215281
+ createRenderEffect(() => res = untrack(() => {
215282
+ Owner.context = {
215283
+ [id]: props.value
215284
+ };
215285
+ return children(() => props.children);
215286
+ }), undefined, options);
215287
+ return res;
215288
+ };
215289
+ }
215290
+
215291
+ function observable(input) {
215292
+ return {
215293
+ subscribe(observer) {
215294
+ if (!(observer instanceof Object) || observer == null) {
215295
+ throw new TypeError("Expected the observer to be an object.");
215296
+ }
215297
+ const handler = typeof observer === "function" ? observer : observer.next && observer.next.bind(observer);
215298
+ if (!handler) {
215299
+ return {
215300
+ unsubscribe() {}
215301
+ };
215302
+ }
215303
+ const dispose = createRoot(disposer => {
215304
+ createEffect(() => {
215305
+ const v = input();
215306
+ untrack(() => handler(v));
215307
+ });
215308
+ return disposer;
215309
+ });
215310
+ if (getOwner()) onCleanup(dispose);
215311
+ return {
215312
+ unsubscribe() {
215313
+ dispose();
215314
+ }
215315
+ };
215316
+ },
215317
+ [Symbol.observable || "@@observable"]() {
215318
+ return this;
215319
+ }
215320
+ };
215321
+ }
215322
+ function from(producer) {
215323
+ const [s, set] = createSignal(undefined, {
215324
+ equals: false
215325
+ });
215326
+ if ("subscribe" in producer) {
215327
+ const unsub = producer.subscribe(v => set(() => v));
215328
+ onCleanup(() => "unsubscribe" in unsub ? unsub.unsubscribe() : unsub());
215329
+ } else {
215330
+ const clean = producer(set);
215331
+ onCleanup(clean);
215332
+ }
215333
+ return s;
215334
+ }
215335
+
215336
+ const FALLBACK = Symbol("fallback");
215337
+ function dispose(d) {
215338
+ for (let i = 0; i < d.length; i++) d[i]();
215339
+ }
215340
+ function mapArray(list, mapFn, options = {}) {
215341
+ let items = [],
215342
+ mapped = [],
215343
+ disposers = [],
215344
+ len = 0,
215345
+ indexes = mapFn.length > 1 ? [] : null;
215346
+ onCleanup(() => dispose(disposers));
215347
+ return () => {
215348
+ let newItems = list() || [],
215349
+ i,
215350
+ j;
215351
+ newItems[$TRACK];
215352
+ return untrack(() => {
215353
+ let newLen = newItems.length,
215354
+ newIndices,
215355
+ newIndicesNext,
215356
+ temp,
215357
+ tempdisposers,
215358
+ tempIndexes,
215359
+ start,
215360
+ end,
215361
+ newEnd,
215362
+ item;
215363
+ if (newLen === 0) {
215364
+ if (len !== 0) {
215365
+ dispose(disposers);
215366
+ disposers = [];
215367
+ items = [];
215368
+ mapped = [];
215369
+ len = 0;
215370
+ indexes && (indexes = []);
215371
+ }
215372
+ if (options.fallback) {
215373
+ items = [FALLBACK];
215374
+ mapped[0] = createRoot(disposer => {
215375
+ disposers[0] = disposer;
215376
+ return options.fallback();
215377
+ });
215378
+ len = 1;
215379
+ }
215380
+ }
215381
+ else if (len === 0) {
215382
+ mapped = new Array(newLen);
215383
+ for (j = 0; j < newLen; j++) {
215384
+ items[j] = newItems[j];
215385
+ mapped[j] = createRoot(mapper);
215386
+ }
215387
+ len = newLen;
215388
+ } else {
215389
+ temp = new Array(newLen);
215390
+ tempdisposers = new Array(newLen);
215391
+ indexes && (tempIndexes = new Array(newLen));
215392
+ for (start = 0, end = Math.min(len, newLen); start < end && items[start] === newItems[start]; start++);
215393
+ for (end = len - 1, newEnd = newLen - 1; end >= start && newEnd >= start && items[end] === newItems[newEnd]; end--, newEnd--) {
215394
+ temp[newEnd] = mapped[end];
215395
+ tempdisposers[newEnd] = disposers[end];
215396
+ indexes && (tempIndexes[newEnd] = indexes[end]);
215397
+ }
215398
+ newIndices = new Map();
215399
+ newIndicesNext = new Array(newEnd + 1);
215400
+ for (j = newEnd; j >= start; j--) {
215401
+ item = newItems[j];
215402
+ i = newIndices.get(item);
215403
+ newIndicesNext[j] = i === undefined ? -1 : i;
215404
+ newIndices.set(item, j);
215405
+ }
215406
+ for (i = start; i <= end; i++) {
215407
+ item = items[i];
215408
+ j = newIndices.get(item);
215409
+ if (j !== undefined && j !== -1) {
215410
+ temp[j] = mapped[i];
215411
+ tempdisposers[j] = disposers[i];
215412
+ indexes && (tempIndexes[j] = indexes[i]);
215413
+ j = newIndicesNext[j];
215414
+ newIndices.set(item, j);
215415
+ } else disposers[i]();
215416
+ }
215417
+ for (j = start; j < newLen; j++) {
215418
+ if (j in temp) {
215419
+ mapped[j] = temp[j];
215420
+ disposers[j] = tempdisposers[j];
215421
+ if (indexes) {
215422
+ indexes[j] = tempIndexes[j];
215423
+ indexes[j](j);
215424
+ }
215425
+ } else mapped[j] = createRoot(mapper);
215426
+ }
215427
+ mapped = mapped.slice(0, len = newLen);
215428
+ items = newItems.slice(0);
215429
+ }
215430
+ return mapped;
215431
+ });
215432
+ function mapper(disposer) {
215433
+ disposers[j] = disposer;
215434
+ if (indexes) {
215435
+ const [s, set] = createSignal(j, {
215436
+ name: "index"
215437
+ }) ;
215438
+ indexes[j] = set;
215439
+ return mapFn(newItems[j], s);
215440
+ }
215441
+ return mapFn(newItems[j]);
215442
+ }
215443
+ };
215444
+ }
215445
+ function indexArray(list, mapFn, options = {}) {
215446
+ let items = [],
215447
+ mapped = [],
215448
+ disposers = [],
215449
+ signals = [],
215450
+ len = 0,
215451
+ i;
215452
+ onCleanup(() => dispose(disposers));
215453
+ return () => {
215454
+ const newItems = list() || [];
215455
+ newItems[$TRACK];
215456
+ return untrack(() => {
215457
+ if (newItems.length === 0) {
215458
+ if (len !== 0) {
215459
+ dispose(disposers);
215460
+ disposers = [];
215461
+ items = [];
215462
+ mapped = [];
215463
+ len = 0;
215464
+ signals = [];
215465
+ }
215466
+ if (options.fallback) {
215467
+ items = [FALLBACK];
215468
+ mapped[0] = createRoot(disposer => {
215469
+ disposers[0] = disposer;
215470
+ return options.fallback();
215471
+ });
215472
+ len = 1;
215473
+ }
215474
+ return mapped;
215475
+ }
215476
+ if (items[0] === FALLBACK) {
215477
+ disposers[0]();
215478
+ disposers = [];
215479
+ items = [];
215480
+ mapped = [];
215481
+ len = 0;
215482
+ }
215483
+ for (i = 0; i < newItems.length; i++) {
215484
+ if (i < items.length && items[i] !== newItems[i]) {
215485
+ signals[i](() => newItems[i]);
215486
+ } else if (i >= items.length) {
215487
+ mapped[i] = createRoot(mapper);
215488
+ }
215489
+ }
215490
+ for (; i < items.length; i++) {
215491
+ disposers[i]();
215492
+ }
215493
+ len = signals.length = disposers.length = newItems.length;
215494
+ items = newItems.slice(0);
215495
+ return mapped = mapped.slice(0, len);
215496
+ });
215497
+ function mapper(disposer) {
215498
+ disposers[i] = disposer;
215499
+ const [s, set] = createSignal(newItems[i], {
215500
+ name: "value"
215501
+ }) ;
215502
+ signals[i] = set;
215503
+ return mapFn(s, i);
215504
+ }
215505
+ };
215506
+ }
215507
+
215508
+ let hydrationEnabled = false;
215509
+ function enableHydration() {
215510
+ hydrationEnabled = true;
215511
+ }
215512
+ function createComponent(Comp, props) {
215513
+ if (hydrationEnabled) {
215514
+ if (sharedConfig.context) {
215515
+ const c = sharedConfig.context;
215516
+ setHydrateContext(nextHydrateContext());
215517
+ const r = devComponent(Comp, props || {}) ;
215518
+ setHydrateContext(c);
215519
+ return r;
215520
+ }
215521
+ }
215522
+ return devComponent(Comp, props || {});
215523
+ }
215524
+ function trueFn() {
215525
+ return true;
215526
+ }
215527
+ const propTraps = {
215528
+ get(_, property, receiver) {
215529
+ if (property === $PROXY) return receiver;
215530
+ return _.get(property);
215531
+ },
215532
+ has(_, property) {
215533
+ if (property === $PROXY) return true;
215534
+ return _.has(property);
215535
+ },
215536
+ set: trueFn,
215537
+ deleteProperty: trueFn,
215538
+ getOwnPropertyDescriptor(_, property) {
215539
+ return {
215540
+ configurable: true,
215541
+ enumerable: true,
215542
+ get() {
215543
+ return _.get(property);
215544
+ },
215545
+ set: trueFn,
215546
+ deleteProperty: trueFn
215547
+ };
215548
+ },
215549
+ ownKeys(_) {
215550
+ return _.keys();
215551
+ }
215552
+ };
215553
+ function resolveSource(s) {
215554
+ return !(s = typeof s === "function" ? s() : s) ? {} : s;
215555
+ }
215556
+ function mergeProps(...sources) {
215557
+ let proxy = false;
215558
+ for (let i = 0; i < sources.length; i++) {
215559
+ const s = sources[i];
215560
+ proxy = proxy || !!s && $PROXY in s;
215561
+ sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
215562
+ }
215563
+ if (proxy) {
215564
+ return new Proxy({
215565
+ get(property) {
215566
+ for (let i = sources.length - 1; i >= 0; i--) {
215567
+ const v = resolveSource(sources[i])[property];
215568
+ if (v !== undefined) return v;
215569
+ }
215570
+ },
215571
+ has(property) {
215572
+ for (let i = sources.length - 1; i >= 0; i--) {
215573
+ if (property in resolveSource(sources[i])) return true;
215574
+ }
215575
+ return false;
215576
+ },
215577
+ keys() {
215578
+ const keys = [];
215579
+ for (let i = 0; i < sources.length; i++) keys.push(...Object.keys(resolveSource(sources[i])));
215580
+ return [...new Set(keys)];
215581
+ }
215582
+ }, propTraps);
215583
+ }
215584
+ const target = {};
215585
+ for (let i = sources.length - 1; i >= 0; i--) {
215586
+ if (sources[i]) {
215587
+ const descriptors = Object.getOwnPropertyDescriptors(sources[i]);
215588
+ for (const key in descriptors) {
215589
+ if (key in target) continue;
215590
+ Object.defineProperty(target, key, {
215591
+ enumerable: true,
215592
+ get() {
215593
+ for (let i = sources.length - 1; i >= 0; i--) {
215594
+ const v = (sources[i] || {})[key];
215595
+ if (v !== undefined) return v;
215596
+ }
215597
+ }
215598
+ });
215599
+ }
215600
+ }
215601
+ }
215602
+ return target;
215603
+ }
215604
+ function splitProps(props, ...keys) {
215605
+ const blocked = new Set(keys.flat());
215606
+ if ($PROXY in props) {
215607
+ const res = keys.map(k => {
215608
+ return new Proxy({
215609
+ get(property) {
215610
+ return k.includes(property) ? props[property] : undefined;
215611
+ },
215612
+ has(property) {
215613
+ return k.includes(property) && property in props;
215614
+ },
215615
+ keys() {
215616
+ return k.filter(property => property in props);
215617
+ }
215618
+ }, propTraps);
215619
+ });
215620
+ res.push(new Proxy({
215621
+ get(property) {
215622
+ return blocked.has(property) ? undefined : props[property];
215623
+ },
215624
+ has(property) {
215625
+ return blocked.has(property) ? false : property in props;
215626
+ },
215627
+ keys() {
215628
+ return Object.keys(props).filter(k => !blocked.has(k));
215629
+ }
215630
+ }, propTraps));
215631
+ return res;
215632
+ }
215633
+ const descriptors = Object.getOwnPropertyDescriptors(props);
215634
+ keys.push(Object.keys(descriptors).filter(k => !blocked.has(k)));
215635
+ return keys.map(k => {
215636
+ const clone = {};
215637
+ for (let i = 0; i < k.length; i++) {
215638
+ const key = k[i];
215639
+ if (!(key in props)) continue;
215640
+ Object.defineProperty(clone, key, descriptors[key] ? descriptors[key] : {
215641
+ get() {
215642
+ return props[key];
215643
+ },
215644
+ set() {
215645
+ return true;
215646
+ },
215647
+ enumerable: true
215648
+ });
215649
+ }
215650
+ return clone;
215651
+ });
215652
+ }
215653
+ function lazy(fn) {
215654
+ let comp;
215655
+ let p;
215656
+ const wrap = props => {
215657
+ const ctx = sharedConfig.context;
215658
+ if (ctx) {
215659
+ const [s, set] = createSignal();
215660
+ (p || (p = fn())).then(mod => {
215661
+ setHydrateContext(ctx);
215662
+ set(() => mod.default);
215663
+ setHydrateContext();
215664
+ });
215665
+ comp = s;
215666
+ } else if (!comp) {
215667
+ const [s] = createResource(() => (p || (p = fn())).then(mod => mod.default));
215668
+ comp = s;
215669
+ }
215670
+ let Comp;
215671
+ return createMemo(() => (Comp = comp()) && untrack(() => {
215672
+ if (true) Object.assign(Comp, {
215673
+ [$DEVCOMP]: true
215674
+ });
215675
+ if (!ctx) return Comp(props);
215676
+ const c = sharedConfig.context;
215677
+ setHydrateContext(ctx);
215678
+ const r = Comp(props);
215679
+ setHydrateContext(c);
215680
+ return r;
215681
+ }));
215682
+ };
215683
+ wrap.preload = () => p || ((p = fn()).then(mod => comp = () => mod.default), p);
215684
+ return wrap;
215685
+ }
215686
+ let counter = 0;
215687
+ function createUniqueId() {
215688
+ const ctx = sharedConfig.context;
215689
+ return ctx ? `${ctx.id}${ctx.count++}` : `cl-${counter++}`;
215690
+ }
215691
+
215692
+ const narrowedError = name => `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.` ;
215693
+ function For(props) {
215694
+ const fallback = "fallback" in props && {
215695
+ fallback: () => props.fallback
215696
+ };
215697
+ return createMemo(mapArray(() => props.each, props.children, fallback || undefined), undefined, {
215698
+ name: "value"
215699
+ }) ;
215700
+ }
215701
+ function Index(props) {
215702
+ const fallback = "fallback" in props && {
215703
+ fallback: () => props.fallback
215704
+ };
215705
+ return createMemo(indexArray(() => props.each, props.children, fallback || undefined), undefined, {
215706
+ name: "value"
215707
+ }) ;
215708
+ }
215709
+ function Show(props) {
215710
+ const keyed = props.keyed;
215711
+ const condition = createMemo(() => props.when, undefined, {
215712
+ equals: (a, b) => keyed ? a === b : !a === !b,
215713
+ name: "condition"
215714
+ } );
215715
+ return createMemo(() => {
215716
+ const c = condition();
215717
+ if (c) {
215718
+ const child = props.children;
215719
+ const fn = typeof child === "function" && child.length > 0;
215720
+ return fn ? untrack(() => child(keyed ? c : () => {
215721
+ if (!untrack(condition)) throw narrowedError("Show");
215722
+ return props.when;
215723
+ })) : child;
215724
+ }
215725
+ return props.fallback;
215726
+ }, undefined, {
215727
+ name: "value"
215728
+ } );
215729
+ }
215730
+ function Switch(props) {
215731
+ let keyed = false;
215732
+ const equals = (a, b) => a[0] === b[0] && (keyed ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2];
215733
+ const conditions = children(() => props.children),
215734
+ evalConditions = createMemo(() => {
215735
+ let conds = conditions();
215736
+ if (!Array.isArray(conds)) conds = [conds];
215737
+ for (let i = 0; i < conds.length; i++) {
215738
+ const c = conds[i].when;
215739
+ if (c) {
215740
+ keyed = !!conds[i].keyed;
215741
+ return [i, c, conds[i]];
215742
+ }
215743
+ }
215744
+ return [-1];
215745
+ }, undefined, {
215746
+ equals,
215747
+ name: "eval conditions"
215748
+ } );
215749
+ return createMemo(() => {
215750
+ const [index, when, cond] = evalConditions();
215751
+ if (index < 0) return props.fallback;
215752
+ const c = cond.children;
215753
+ const fn = typeof c === "function" && c.length > 0;
215754
+ return fn ? untrack(() => c(keyed ? when : () => {
215755
+ if (untrack(evalConditions)[0] !== index) throw narrowedError("Match");
215756
+ return cond.when;
215757
+ })) : c;
215758
+ }, undefined, {
215759
+ name: "value"
215760
+ } );
215761
+ }
215762
+ function Match(props) {
215763
+ return props;
215764
+ }
215765
+ let Errors;
215766
+ function resetErrorBoundaries() {
215767
+ Errors && [...Errors].forEach(fn => fn());
215768
+ }
215769
+ function ErrorBoundary(props) {
215770
+ let err;
215771
+ let v;
215772
+ if (sharedConfig.context && sharedConfig.load && (v = sharedConfig.load(sharedConfig.context.id + sharedConfig.context.count))) err = v[0];
215773
+ const [errored, setErrored] = createSignal(err, {
215774
+ name: "errored"
215775
+ } );
215776
+ Errors || (Errors = new Set());
215777
+ Errors.add(setErrored);
215778
+ onCleanup(() => Errors.delete(setErrored));
215779
+ return createMemo(() => {
215780
+ let e;
215781
+ if (e = errored()) {
215782
+ const f = props.fallback;
215783
+ if ((typeof f !== "function" || f.length == 0)) console.error(e);
215784
+ return typeof f === "function" && f.length ? untrack(() => f(e, () => setErrored())) : f;
215785
+ }
215786
+ return catchError(() => props.children, setErrored);
215787
+ }, undefined, {
215788
+ name: "value"
215789
+ } );
215790
+ }
215791
+
215792
+ const suspenseListEquals = (a, b) => a.showContent === b.showContent && a.showFallback === b.showFallback;
215793
+ const SuspenseListContext = createContext();
215794
+ function SuspenseList(props) {
215795
+ let [wrapper, setWrapper] = createSignal(() => ({
215796
+ inFallback: false
215797
+ })),
215798
+ show;
215799
+ const listContext = useContext(SuspenseListContext);
215800
+ const [registry, setRegistry] = createSignal([]);
215801
+ if (listContext) {
215802
+ show = listContext.register(createMemo(() => wrapper()().inFallback));
215803
+ }
215804
+ const resolved = createMemo(prev => {
215805
+ const reveal = props.revealOrder,
215806
+ tail = props.tail,
215807
+ {
215808
+ showContent = true,
215809
+ showFallback = true
215810
+ } = show ? show() : {},
215811
+ reg = registry(),
215812
+ reverse = reveal === "backwards";
215813
+ if (reveal === "together") {
215814
+ const all = reg.every(inFallback => !inFallback());
215815
+ const res = reg.map(() => ({
215816
+ showContent: all && showContent,
215817
+ showFallback
215818
+ }));
215819
+ res.inFallback = !all;
215820
+ return res;
215821
+ }
215822
+ let stop = false;
215823
+ let inFallback = prev.inFallback;
215824
+ const res = [];
215825
+ for (let i = 0, len = reg.length; i < len; i++) {
215826
+ const n = reverse ? len - i - 1 : i,
215827
+ s = reg[n]();
215828
+ if (!stop && !s) {
215829
+ res[n] = {
215830
+ showContent,
215831
+ showFallback
215832
+ };
215833
+ } else {
215834
+ const next = !stop;
215835
+ if (next) inFallback = true;
215836
+ res[n] = {
215837
+ showContent: next,
215838
+ showFallback: !tail || next && tail === "collapsed" ? showFallback : false
215839
+ };
215840
+ stop = true;
215841
+ }
215842
+ }
215843
+ if (!stop) inFallback = false;
215844
+ res.inFallback = inFallback;
215845
+ return res;
215846
+ }, {
215847
+ inFallback: false
215848
+ });
215849
+ setWrapper(() => resolved);
215850
+ return createComponent(SuspenseListContext.Provider, {
215851
+ value: {
215852
+ register: inFallback => {
215853
+ let index;
215854
+ setRegistry(registry => {
215855
+ index = registry.length;
215856
+ return [...registry, inFallback];
215857
+ });
215858
+ return createMemo(() => resolved()[index], undefined, {
215859
+ equals: suspenseListEquals
215860
+ });
215861
+ }
215862
+ },
215863
+ get children() {
215864
+ return props.children;
215865
+ }
215866
+ });
215867
+ }
215868
+ function Suspense(props) {
215869
+ let counter = 0,
215870
+ show,
215871
+ ctx,
215872
+ p,
215873
+ flicker,
215874
+ error;
215875
+ const [inFallback, setFallback] = createSignal(false),
215876
+ SuspenseContext = getSuspenseContext(),
215877
+ store = {
215878
+ increment: () => {
215879
+ if (++counter === 1) setFallback(true);
215880
+ },
215881
+ decrement: () => {
215882
+ if (--counter === 0) setFallback(false);
215883
+ },
215884
+ inFallback,
215885
+ effects: [],
215886
+ resolved: false
215887
+ },
215888
+ owner = getOwner();
215889
+ if (sharedConfig.context && sharedConfig.load) {
215890
+ const key = sharedConfig.context.id + sharedConfig.context.count;
215891
+ let ref = sharedConfig.load(key);
215892
+ if (ref && (p = ref[0]) && p !== "$$f") {
215893
+ if (typeof p !== "object" || !("then" in p)) p = Promise.resolve(p);
215894
+ const [s, set] = createSignal(undefined, {
215895
+ equals: false
215896
+ });
215897
+ flicker = s;
215898
+ p.then(err => {
215899
+ if (err || sharedConfig.done) {
215900
+ err && (error = err);
215901
+ return set();
215902
+ }
215903
+ sharedConfig.gather(key);
215904
+ setHydrateContext(ctx);
215905
+ set();
215906
+ setHydrateContext();
215907
+ });
215908
+ }
215909
+ }
215910
+ const listContext = useContext(SuspenseListContext);
215911
+ if (listContext) show = listContext.register(store.inFallback);
215912
+ let dispose;
215913
+ onCleanup(() => dispose && dispose());
215914
+ return createComponent(SuspenseContext.Provider, {
215915
+ value: store,
215916
+ get children() {
215917
+ return createMemo(() => {
215918
+ if (error) throw error;
215919
+ ctx = sharedConfig.context;
215920
+ if (flicker) {
215921
+ flicker();
215922
+ return flicker = undefined;
215923
+ }
215924
+ if (ctx && p === "$$f") setHydrateContext();
215925
+ const rendered = createMemo(() => props.children);
215926
+ return createMemo(prev => {
215927
+ const inFallback = store.inFallback(),
215928
+ {
215929
+ showContent = true,
215930
+ showFallback = true
215931
+ } = show ? show() : {};
215932
+ if ((!inFallback || p && p !== "$$f") && showContent) {
215933
+ store.resolved = true;
215934
+ dispose && dispose();
215935
+ dispose = ctx = p = undefined;
215936
+ resumeEffects(store.effects);
215937
+ return rendered();
215938
+ }
215939
+ if (!showFallback) return;
215940
+ if (dispose) return prev;
215941
+ return createRoot(disposer => {
215942
+ dispose = disposer;
215943
+ if (ctx) {
215944
+ setHydrateContext({
215945
+ id: ctx.id + "f",
215946
+ count: 0
215947
+ });
215948
+ ctx = undefined;
215949
+ }
215950
+ return props.fallback;
215951
+ }, owner);
215952
+ });
215953
+ });
215954
+ }
215955
+ });
215956
+ }
215957
+
215958
+ const DEV = {
215959
+ hooks: DevHooks,
215960
+ writeSignal,
215961
+ registerGraph
215962
+ } ;
215963
+ if (globalThis) {
215964
+ if (!globalThis.Solid$$) globalThis.Solid$$ = true;else console.warn("You appear to have multiple instances of Solid. This can lead to unexpected behavior.");
215965
+ }
215966
+
215967
+
215968
+
215969
+
215970
+ /***/ }),
215971
+
215972
+ /***/ "../../../node_modules/solid-js/web/dist/dev.js":
215973
+ /*!******************************************************!*\
215974
+ !*** ../../../node_modules/solid-js/web/dist/dev.js ***!
215975
+ \******************************************************/
215976
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
215977
+
215978
+ "use strict";
215979
+ __webpack_require__.r(__webpack_exports__);
215980
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
215981
+ /* harmony export */ "Aliases": () => (/* binding */ Aliases),
215982
+ /* harmony export */ "Assets": () => (/* binding */ voidFn),
215983
+ /* harmony export */ "ChildProperties": () => (/* binding */ ChildProperties),
215984
+ /* harmony export */ "DOMElements": () => (/* binding */ DOMElements),
215985
+ /* harmony export */ "DelegatedEvents": () => (/* binding */ DelegatedEvents),
215986
+ /* harmony export */ "Dynamic": () => (/* binding */ Dynamic),
215987
+ /* harmony export */ "ErrorBoundary": () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.ErrorBoundary),
215988
+ /* harmony export */ "For": () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.For),
215989
+ /* harmony export */ "Hydration": () => (/* binding */ Hydration),
215990
+ /* harmony export */ "HydrationScript": () => (/* binding */ voidFn),
215991
+ /* harmony export */ "Index": () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.Index),
215992
+ /* harmony export */ "Match": () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.Match),
215993
+ /* harmony export */ "NoHydration": () => (/* binding */ NoHydration),
215994
+ /* harmony export */ "Portal": () => (/* binding */ Portal),
215995
+ /* harmony export */ "Properties": () => (/* binding */ Properties),
215996
+ /* harmony export */ "SVGElements": () => (/* binding */ SVGElements),
215997
+ /* harmony export */ "SVGNamespace": () => (/* binding */ SVGNamespace),
215998
+ /* harmony export */ "Show": () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.Show),
215999
+ /* harmony export */ "Suspense": () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.Suspense),
216000
+ /* harmony export */ "SuspenseList": () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.SuspenseList),
216001
+ /* harmony export */ "Switch": () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.Switch),
216002
+ /* harmony export */ "addEventListener": () => (/* binding */ addEventListener),
216003
+ /* harmony export */ "assign": () => (/* binding */ assign),
216004
+ /* harmony export */ "classList": () => (/* binding */ classList),
216005
+ /* harmony export */ "className": () => (/* binding */ className),
216006
+ /* harmony export */ "clearDelegatedEvents": () => (/* binding */ clearDelegatedEvents),
216007
+ /* harmony export */ "createComponent": () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.createComponent),
216008
+ /* harmony export */ "delegateEvents": () => (/* binding */ delegateEvents),
216009
+ /* harmony export */ "dynamicProperty": () => (/* binding */ dynamicProperty),
216010
+ /* harmony export */ "effect": () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect),
216011
+ /* harmony export */ "escape": () => (/* binding */ escape),
216012
+ /* harmony export */ "generateHydrationScript": () => (/* binding */ voidFn),
216013
+ /* harmony export */ "getAssets": () => (/* binding */ voidFn),
216014
+ /* harmony export */ "getHydrationKey": () => (/* binding */ getHydrationKey),
216015
+ /* harmony export */ "getNextElement": () => (/* binding */ getNextElement),
216016
+ /* harmony export */ "getNextMarker": () => (/* binding */ getNextMarker),
216017
+ /* harmony export */ "getNextMatch": () => (/* binding */ getNextMatch),
216018
+ /* harmony export */ "getOwner": () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.getOwner),
216019
+ /* harmony export */ "getPropAlias": () => (/* binding */ getPropAlias),
216020
+ /* harmony export */ "hydrate": () => (/* binding */ hydrate),
216021
+ /* harmony export */ "innerHTML": () => (/* binding */ innerHTML),
216022
+ /* harmony export */ "insert": () => (/* binding */ insert),
216023
+ /* harmony export */ "isDev": () => (/* binding */ isDev),
216024
+ /* harmony export */ "isServer": () => (/* binding */ isServer),
216025
+ /* harmony export */ "memo": () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.createMemo),
216026
+ /* harmony export */ "mergeProps": () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.mergeProps),
216027
+ /* harmony export */ "render": () => (/* binding */ render),
216028
+ /* harmony export */ "renderToStream": () => (/* binding */ renderToStream),
216029
+ /* harmony export */ "renderToString": () => (/* binding */ renderToString),
216030
+ /* harmony export */ "renderToStringAsync": () => (/* binding */ renderToStringAsync),
216031
+ /* harmony export */ "resolveSSRNode": () => (/* binding */ resolveSSRNode),
216032
+ /* harmony export */ "runHydrationEvents": () => (/* binding */ runHydrationEvents),
216033
+ /* harmony export */ "setAttribute": () => (/* binding */ setAttribute),
216034
+ /* harmony export */ "setAttributeNS": () => (/* binding */ setAttributeNS),
216035
+ /* harmony export */ "spread": () => (/* binding */ spread),
216036
+ /* harmony export */ "ssr": () => (/* binding */ ssr),
216037
+ /* harmony export */ "ssrAttribute": () => (/* binding */ ssrAttribute),
216038
+ /* harmony export */ "ssrClassList": () => (/* binding */ ssrClassList),
216039
+ /* harmony export */ "ssrElement": () => (/* binding */ ssrElement),
216040
+ /* harmony export */ "ssrHydrationKey": () => (/* binding */ ssrHydrationKey),
216041
+ /* harmony export */ "ssrSpread": () => (/* binding */ ssrSpread),
216042
+ /* harmony export */ "ssrStyle": () => (/* binding */ ssrStyle),
216043
+ /* harmony export */ "style": () => (/* binding */ style),
216044
+ /* harmony export */ "template": () => (/* binding */ template),
216045
+ /* harmony export */ "untrack": () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.untrack),
216046
+ /* harmony export */ "use": () => (/* binding */ use),
216047
+ /* harmony export */ "useAssets": () => (/* binding */ voidFn)
216048
+ /* harmony export */ });
216049
+ /* harmony import */ var solid_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! solid-js */ "../../../node_modules/solid-js/dist/dev.js");
216050
+
216051
+
216052
+
216053
+ const booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
216054
+ const Properties = /*#__PURE__*/new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
216055
+ const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]);
216056
+ const Aliases = /*#__PURE__*/Object.assign(Object.create(null), {
216057
+ className: "class",
216058
+ htmlFor: "for"
216059
+ });
216060
+ const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
216061
+ class: "className",
216062
+ formnovalidate: {
216063
+ $: "formNoValidate",
216064
+ BUTTON: 1,
216065
+ INPUT: 1
216066
+ },
216067
+ ismap: {
216068
+ $: "isMap",
216069
+ IMG: 1
216070
+ },
216071
+ nomodule: {
216072
+ $: "noModule",
216073
+ SCRIPT: 1
216074
+ },
216075
+ playsinline: {
216076
+ $: "playsInline",
216077
+ VIDEO: 1
216078
+ },
216079
+ readonly: {
216080
+ $: "readOnly",
216081
+ INPUT: 1,
216082
+ TEXTAREA: 1
216083
+ }
216084
+ });
216085
+ function getPropAlias(prop, tagName) {
216086
+ const a = PropAliases[prop];
216087
+ return typeof a === "object" ? a[tagName] ? a["$"] : undefined : a;
216088
+ }
216089
+ const DelegatedEvents = /*#__PURE__*/new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
216090
+ const SVGElements = /*#__PURE__*/new Set([
216091
+ "altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "font", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignObject", "g", "glyph", "glyphRef", "hkern", "image", "line", "linearGradient", "marker", "mask", "metadata", "missing-glyph", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect",
216092
+ "set", "stop",
216093
+ "svg", "switch", "symbol", "text", "textPath",
216094
+ "tref", "tspan", "use", "view", "vkern"]);
216095
+ const SVGNamespace = {
216096
+ xlink: "http://www.w3.org/1999/xlink",
216097
+ xml: "http://www.w3.org/XML/1998/namespace"
216098
+ };
216099
+ const DOMElements = /*#__PURE__*/new Set(["html", "base", "head", "link", "meta", "style", "title", "body", "address", "article", "aside", "footer", "header", "main", "nav", "section", "body", "blockquote", "dd", "div", "dl", "dt", "figcaption", "figure", "hr", "li", "ol", "p", "pre", "ul", "a", "abbr", "b", "bdi", "bdo", "br", "cite", "code", "data", "dfn", "em", "i", "kbd", "mark", "q", "rp", "rt", "ruby", "s", "samp", "small", "span", "strong", "sub", "sup", "time", "u", "var", "wbr", "area", "audio", "img", "map", "track", "video", "embed", "iframe", "object", "param", "picture", "portal", "source", "svg", "math", "canvas", "noscript", "script", "del", "ins", "caption", "col", "colgroup", "table", "tbody", "td", "tfoot", "th", "thead", "tr", "button", "datalist", "fieldset", "form", "input", "label", "legend", "meter", "optgroup", "option", "output", "progress", "select", "textarea", "details", "dialog", "menu", "summary", "details", "slot", "template", "acronym", "applet", "basefont", "bgsound", "big", "blink", "center", "content", "dir", "font", "frame", "frameset", "hgroup", "image", "keygen", "marquee", "menuitem", "nobr", "noembed", "noframes", "plaintext", "rb", "rtc", "shadow", "spacer", "strike", "tt", "xmp", "a", "abbr", "acronym", "address", "applet", "area", "article", "aside", "audio", "b", "base", "basefont", "bdi", "bdo", "bgsound", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "font", "footer", "form", "frame", "frameset", "head", "header", "hgroup", "hr", "html", "i", "iframe", "image", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "nobr", "noembed", "noframes", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "plaintext", "portal", "pre", "progress", "q", "rb", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "tt", "u", "ul", "var", "video", "wbr", "xmp", "input"]);
216100
+
216101
+ function reconcileArrays(parentNode, a, b) {
216102
+ let bLength = b.length,
216103
+ aEnd = a.length,
216104
+ bEnd = bLength,
216105
+ aStart = 0,
216106
+ bStart = 0,
216107
+ after = a[aEnd - 1].nextSibling,
216108
+ map = null;
216109
+ while (aStart < aEnd || bStart < bEnd) {
216110
+ if (a[aStart] === b[bStart]) {
216111
+ aStart++;
216112
+ bStart++;
216113
+ continue;
216114
+ }
216115
+ while (a[aEnd - 1] === b[bEnd - 1]) {
216116
+ aEnd--;
216117
+ bEnd--;
216118
+ }
216119
+ if (aEnd === aStart) {
216120
+ const node = bEnd < bLength ? bStart ? b[bStart - 1].nextSibling : b[bEnd - bStart] : after;
216121
+ while (bStart < bEnd) parentNode.insertBefore(b[bStart++], node);
216122
+ } else if (bEnd === bStart) {
216123
+ while (aStart < aEnd) {
216124
+ if (!map || !map.has(a[aStart])) a[aStart].remove();
216125
+ aStart++;
216126
+ }
216127
+ } else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {
216128
+ const node = a[--aEnd].nextSibling;
216129
+ parentNode.insertBefore(b[bStart++], a[aStart++].nextSibling);
216130
+ parentNode.insertBefore(b[--bEnd], node);
216131
+ a[aEnd] = b[bEnd];
216132
+ } else {
216133
+ if (!map) {
216134
+ map = new Map();
216135
+ let i = bStart;
216136
+ while (i < bEnd) map.set(b[i], i++);
216137
+ }
216138
+ const index = map.get(a[aStart]);
216139
+ if (index != null) {
216140
+ if (bStart < index && index < bEnd) {
216141
+ let i = aStart,
216142
+ sequence = 1,
216143
+ t;
216144
+ while (++i < aEnd && i < bEnd) {
216145
+ if ((t = map.get(a[i])) == null || t !== index + sequence) break;
216146
+ sequence++;
216147
+ }
216148
+ if (sequence > index - bStart) {
216149
+ const node = a[aStart];
216150
+ while (bStart < index) parentNode.insertBefore(b[bStart++], node);
216151
+ } else parentNode.replaceChild(b[bStart++], a[aStart++]);
216152
+ } else aStart++;
216153
+ } else a[aStart++].remove();
216154
+ }
216155
+ }
216156
+ }
216157
+
216158
+ const $$EVENTS = "_$DX_DELEGATE";
216159
+ function render(code, element, init, options = {}) {
216160
+ let disposer;
216161
+ (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRoot)(dispose => {
216162
+ disposer = dispose;
216163
+ element === document ? code() : insert(element, code(), element.firstChild ? null : undefined, init);
216164
+ }, options.owner);
216165
+ return () => {
216166
+ disposer();
216167
+ element.textContent = "";
216168
+ };
216169
+ }
216170
+ function template(html, isCE, isSVG) {
216171
+ let node;
216172
+ const create = () => {
216173
+ const t = document.createElement("template");
216174
+ t.innerHTML = html;
216175
+ return isSVG ? t.content.firstChild.firstChild : t.content.firstChild;
216176
+ };
216177
+ const fn = isCE ? () => (node || (node = create())).cloneNode(true) : () => (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.untrack)(() => document.importNode(node || (node = create()), true));
216178
+ fn.cloneNode = fn;
216179
+ return fn;
216180
+ }
216181
+ function delegateEvents(eventNames, document = window.document) {
216182
+ const e = document[$$EVENTS] || (document[$$EVENTS] = new Set());
216183
+ for (let i = 0, l = eventNames.length; i < l; i++) {
216184
+ const name = eventNames[i];
216185
+ if (!e.has(name)) {
216186
+ e.add(name);
216187
+ document.addEventListener(name, eventHandler);
216188
+ }
216189
+ }
216190
+ }
216191
+ function clearDelegatedEvents(document = window.document) {
216192
+ if (document[$$EVENTS]) {
216193
+ for (let name of document[$$EVENTS].keys()) document.removeEventListener(name, eventHandler);
216194
+ delete document[$$EVENTS];
216195
+ }
216196
+ }
216197
+ function setAttribute(node, name, value) {
216198
+ if (value == null) node.removeAttribute(name);else node.setAttribute(name, value);
216199
+ }
216200
+ function setAttributeNS(node, namespace, name, value) {
216201
+ if (value == null) node.removeAttributeNS(namespace, name);else node.setAttributeNS(namespace, name, value);
216202
+ }
216203
+ function className(node, value) {
216204
+ if (value == null) node.removeAttribute("class");else node.className = value;
216205
+ }
216206
+ function addEventListener(node, name, handler, delegate) {
216207
+ if (delegate) {
216208
+ if (Array.isArray(handler)) {
216209
+ node[`$$${name}`] = handler[0];
216210
+ node[`$$${name}Data`] = handler[1];
216211
+ } else node[`$$${name}`] = handler;
216212
+ } else if (Array.isArray(handler)) {
216213
+ const handlerFn = handler[0];
216214
+ node.addEventListener(name, handler[0] = e => handlerFn.call(node, handler[1], e));
216215
+ } else node.addEventListener(name, handler);
216216
+ }
216217
+ function classList(node, value, prev = {}) {
216218
+ const classKeys = Object.keys(value || {}),
216219
+ prevKeys = Object.keys(prev);
216220
+ let i, len;
216221
+ for (i = 0, len = prevKeys.length; i < len; i++) {
216222
+ const key = prevKeys[i];
216223
+ if (!key || key === "undefined" || value[key]) continue;
216224
+ toggleClassKey(node, key, false);
216225
+ delete prev[key];
216226
+ }
216227
+ for (i = 0, len = classKeys.length; i < len; i++) {
216228
+ const key = classKeys[i],
216229
+ classValue = !!value[key];
216230
+ if (!key || key === "undefined" || prev[key] === classValue || !classValue) continue;
216231
+ toggleClassKey(node, key, true);
216232
+ prev[key] = classValue;
216233
+ }
216234
+ return prev;
216235
+ }
216236
+ function style(node, value, prev) {
216237
+ if (!value) return prev ? setAttribute(node, "style") : value;
216238
+ const nodeStyle = node.style;
216239
+ if (typeof value === "string") return nodeStyle.cssText = value;
216240
+ typeof prev === "string" && (nodeStyle.cssText = prev = undefined);
216241
+ prev || (prev = {});
216242
+ value || (value = {});
216243
+ let v, s;
216244
+ for (s in prev) {
216245
+ value[s] == null && nodeStyle.removeProperty(s);
216246
+ delete prev[s];
216247
+ }
216248
+ for (s in value) {
216249
+ v = value[s];
216250
+ if (v !== prev[s]) {
216251
+ nodeStyle.setProperty(s, v);
216252
+ prev[s] = v;
216253
+ }
216254
+ }
216255
+ return prev;
216256
+ }
216257
+ function spread(node, props = {}, isSVG, skipChildren) {
216258
+ const prevProps = {};
216259
+ if (!skipChildren) {
216260
+ (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
216261
+ }
216262
+ (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => props.ref && props.ref(node));
216263
+ (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => assign(node, props, isSVG, true, prevProps, true));
216264
+ return prevProps;
216265
+ }
216266
+ function dynamicProperty(props, key) {
216267
+ const src = props[key];
216268
+ Object.defineProperty(props, key, {
216269
+ get() {
216270
+ return src();
216271
+ },
216272
+ enumerable: true
216273
+ });
216274
+ return props;
216275
+ }
216276
+ function innerHTML(parent, content) {
216277
+ !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context && (parent.innerHTML = content);
216278
+ }
216279
+ function use(fn, element, arg) {
216280
+ return (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.untrack)(() => fn(element, arg));
216281
+ }
216282
+ function insert(parent, accessor, marker, initial) {
216283
+ if (marker !== undefined && !initial) initial = [];
216284
+ if (typeof accessor !== "function") return insertExpression(parent, accessor, initial, marker);
216285
+ (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(current => insertExpression(parent, accessor(), current, marker), initial);
216286
+ }
216287
+ function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = false) {
216288
+ props || (props = {});
216289
+ for (const prop in prevProps) {
216290
+ if (!(prop in props)) {
216291
+ if (prop === "children") continue;
216292
+ prevProps[prop] = assignProp(node, prop, null, prevProps[prop], isSVG, skipRef);
216293
+ }
216294
+ }
216295
+ for (const prop in props) {
216296
+ if (prop === "children") {
216297
+ if (!skipChildren) insertExpression(node, props.children);
216298
+ continue;
216299
+ }
216300
+ const value = props[prop];
216301
+ prevProps[prop] = assignProp(node, prop, value, prevProps[prop], isSVG, skipRef);
216302
+ }
216303
+ }
216304
+ function hydrate$1(code, element, options = {}) {
216305
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.completed = globalThis._$HY.completed;
216306
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events = globalThis._$HY.events;
216307
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.load = globalThis._$HY.load;
216308
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.gather = root => gatherHydratable(element, root);
216309
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry = new Map();
216310
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context = {
216311
+ id: options.renderId || "",
216312
+ count: 0
216313
+ };
216314
+ gatherHydratable(element, options.renderId);
216315
+ const dispose = render(code, element, [...element.childNodes], options);
216316
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context = null;
216317
+ return dispose;
216318
+ }
216319
+ function getNextElement(template) {
216320
+ let node, key;
216321
+ if (!solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context || !(node = solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry.get(key = getHydrationKey()))) {
216322
+ if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context) console.warn("Unable to find DOM nodes for hydration key:", key);
216323
+ if (!template) throw new Error("Unrecoverable Hydration Mismatch. No template for key: " + key);
216324
+ return template();
216325
+ }
216326
+ if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.completed) solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.completed.add(node);
216327
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry["delete"](key);
216328
+ return node;
216329
+ }
216330
+ function getNextMatch(el, nodeName) {
216331
+ while (el && el.localName !== nodeName) el = el.nextSibling;
216332
+ return el;
216333
+ }
216334
+ function getNextMarker(start) {
216335
+ let end = start,
216336
+ count = 0,
216337
+ current = [];
216338
+ if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context) {
216339
+ while (end) {
216340
+ if (end.nodeType === 8) {
216341
+ const v = end.nodeValue;
216342
+ if (v === "#") count++;else if (v === "/") {
216343
+ if (count === 0) return [end, current];
216344
+ count--;
216345
+ }
216346
+ }
216347
+ current.push(end);
216348
+ end = end.nextSibling;
216349
+ }
216350
+ }
216351
+ return [end, current];
216352
+ }
216353
+ function runHydrationEvents() {
216354
+ if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events && !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events.queued) {
216355
+ queueMicrotask(() => {
216356
+ const {
216357
+ completed,
216358
+ events
216359
+ } = solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig;
216360
+ events.queued = false;
216361
+ while (events.length) {
216362
+ const [el, e] = events[0];
216363
+ if (!completed.has(el)) return;
216364
+ eventHandler(e);
216365
+ events.shift();
216366
+ }
216367
+ });
216368
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events.queued = true;
216369
+ }
216370
+ }
216371
+ function toPropertyName(name) {
216372
+ return name.toLowerCase().replace(/-([a-z])/g, (_, w) => w.toUpperCase());
216373
+ }
216374
+ function toggleClassKey(node, key, value) {
216375
+ const classNames = key.trim().split(/\s+/);
216376
+ for (let i = 0, nameLen = classNames.length; i < nameLen; i++) node.classList.toggle(classNames[i], value);
216377
+ }
216378
+ function assignProp(node, prop, value, prev, isSVG, skipRef) {
216379
+ let isCE, isProp, isChildProp, propAlias, forceProp;
216380
+ if (prop === "style") return style(node, value, prev);
216381
+ if (prop === "classList") return classList(node, value, prev);
216382
+ if (value === prev) return prev;
216383
+ if (prop === "ref") {
216384
+ if (!skipRef) value(node);
216385
+ } else if (prop.slice(0, 3) === "on:") {
216386
+ const e = prop.slice(3);
216387
+ prev && node.removeEventListener(e, prev);
216388
+ value && node.addEventListener(e, value);
216389
+ } else if (prop.slice(0, 10) === "oncapture:") {
216390
+ const e = prop.slice(10);
216391
+ prev && node.removeEventListener(e, prev, true);
216392
+ value && node.addEventListener(e, value, true);
216393
+ } else if (prop.slice(0, 2) === "on") {
216394
+ const name = prop.slice(2).toLowerCase();
216395
+ const delegate = DelegatedEvents.has(name);
216396
+ if (!delegate && prev) {
216397
+ const h = Array.isArray(prev) ? prev[0] : prev;
216398
+ node.removeEventListener(name, h);
216399
+ }
216400
+ if (delegate || value) {
216401
+ addEventListener(node, name, value, delegate);
216402
+ delegate && delegateEvents([name]);
216403
+ }
216404
+ } else if (prop.slice(0, 5) === "attr:") {
216405
+ setAttribute(node, prop.slice(5), value);
216406
+ } else if ((forceProp = prop.slice(0, 5) === "prop:") || (isChildProp = ChildProperties.has(prop)) || !isSVG && ((propAlias = getPropAlias(prop, node.tagName)) || (isProp = Properties.has(prop))) || (isCE = node.nodeName.includes("-"))) {
216407
+ if (forceProp) {
216408
+ prop = prop.slice(5);
216409
+ isProp = true;
216410
+ }
216411
+ if (prop === "class" || prop === "className") className(node, value);else if (isCE && !isProp && !isChildProp) node[toPropertyName(prop)] = value;else node[propAlias || prop] = value;
216412
+ } else {
216413
+ const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
216414
+ if (ns) setAttributeNS(node, ns, prop, value);else setAttribute(node, Aliases[prop] || prop, value);
216415
+ }
216416
+ return value;
216417
+ }
216418
+ function eventHandler(e) {
216419
+ const key = `$$${e.type}`;
216420
+ let node = e.composedPath && e.composedPath()[0] || e.target;
216421
+ if (e.target !== node) {
216422
+ Object.defineProperty(e, "target", {
216423
+ configurable: true,
216424
+ value: node
216425
+ });
216426
+ }
216427
+ Object.defineProperty(e, "currentTarget", {
216428
+ configurable: true,
216429
+ get() {
216430
+ return node || document;
216431
+ }
216432
+ });
216433
+ 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;
216434
+ while (node) {
216435
+ const handler = node[key];
216436
+ if (handler && !node.disabled) {
216437
+ const data = node[`${key}Data`];
216438
+ data !== undefined ? handler.call(node, data, e) : handler.call(node, e);
216439
+ if (e.cancelBubble) return;
216440
+ }
216441
+ node = node._$host || node.parentNode || node.host;
216442
+ }
216443
+ }
216444
+ function insertExpression(parent, value, current, marker, unwrapArray) {
216445
+ if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context) {
216446
+ !current && (current = [...parent.childNodes]);
216447
+ let cleaned = [];
216448
+ for (let i = 0; i < current.length; i++) {
216449
+ const node = current[i];
216450
+ if (node.nodeType === 8 && node.data.slice(0, 2) === "!$") node.remove();else cleaned.push(node);
216451
+ }
216452
+ current = cleaned;
216453
+ }
216454
+ while (typeof current === "function") current = current();
216455
+ if (value === current) return current;
216456
+ const t = typeof value,
216457
+ multi = marker !== undefined;
216458
+ parent = multi && current[0] && current[0].parentNode || parent;
216459
+ if (t === "string" || t === "number") {
216460
+ if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context) return current;
216461
+ if (t === "number") value = value.toString();
216462
+ if (multi) {
216463
+ let node = current[0];
216464
+ if (node && node.nodeType === 3) {
216465
+ node.data = value;
216466
+ } else node = document.createTextNode(value);
216467
+ current = cleanChildren(parent, current, marker, node);
216468
+ } else {
216469
+ if (current !== "" && typeof current === "string") {
216470
+ current = parent.firstChild.data = value;
216471
+ } else current = parent.textContent = value;
216472
+ }
216473
+ } else if (value == null || t === "boolean") {
216474
+ if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context) return current;
216475
+ current = cleanChildren(parent, current, marker);
216476
+ } else if (t === "function") {
216477
+ (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => {
216478
+ let v = value();
216479
+ while (typeof v === "function") v = v();
216480
+ current = insertExpression(parent, v, current, marker);
216481
+ });
216482
+ return () => current;
216483
+ } else if (Array.isArray(value)) {
216484
+ const array = [];
216485
+ const currentArray = current && Array.isArray(current);
216486
+ if (normalizeIncomingArray(array, value, current, unwrapArray)) {
216487
+ (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => current = insertExpression(parent, array, current, marker, true));
216488
+ return () => current;
216489
+ }
216490
+ if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context) {
216491
+ if (!array.length) return current;
216492
+ for (let i = 0; i < array.length; i++) {
216493
+ if (array[i].parentNode) return current = array;
216494
+ }
216495
+ }
216496
+ if (array.length === 0) {
216497
+ current = cleanChildren(parent, current, marker);
216498
+ if (multi) return current;
216499
+ } else if (currentArray) {
216500
+ if (current.length === 0) {
216501
+ appendNodes(parent, array, marker);
216502
+ } else reconcileArrays(parent, current, array);
216503
+ } else {
216504
+ current && cleanChildren(parent);
216505
+ appendNodes(parent, array);
216506
+ }
216507
+ current = array;
216508
+ } else if (value instanceof Node) {
216509
+ if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context && value.parentNode) return current = multi ? [value] : value;
216510
+ if (Array.isArray(current)) {
216511
+ if (multi) return current = cleanChildren(parent, current, marker, value);
216512
+ cleanChildren(parent, current, null, value);
216513
+ } else if (current == null || current === "" || !parent.firstChild) {
216514
+ parent.appendChild(value);
216515
+ } else parent.replaceChild(value, parent.firstChild);
216516
+ current = value;
216517
+ } else console.warn(`Unrecognized value. Skipped inserting`, value);
216518
+ return current;
216519
+ }
216520
+ function normalizeIncomingArray(normalized, array, current, unwrap) {
216521
+ let dynamic = false;
216522
+ for (let i = 0, len = array.length; i < len; i++) {
216523
+ let item = array[i],
216524
+ prev = current && current[i];
216525
+ if (item instanceof Node) {
216526
+ normalized.push(item);
216527
+ } else if (item == null || item === true || item === false) ; else if (Array.isArray(item)) {
216528
+ dynamic = normalizeIncomingArray(normalized, item, prev) || dynamic;
216529
+ } else if ((typeof item) === "function") {
216530
+ if (unwrap) {
216531
+ while (typeof item === "function") item = item();
216532
+ dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
216533
+ } else {
216534
+ normalized.push(item);
216535
+ dynamic = true;
216536
+ }
216537
+ } else {
216538
+ const value = String(item);
216539
+ if (prev && prev.nodeType === 3) {
216540
+ prev.data = value;
216541
+ normalized.push(prev);
216542
+ } else normalized.push(document.createTextNode(value));
216543
+ }
216544
+ }
216545
+ return dynamic;
216546
+ }
216547
+ function appendNodes(parent, array, marker = null) {
216548
+ for (let i = 0, len = array.length; i < len; i++) parent.insertBefore(array[i], marker);
216549
+ }
216550
+ function cleanChildren(parent, current, marker, replacement) {
216551
+ if (marker === undefined) return parent.textContent = "";
216552
+ const node = replacement || document.createTextNode("");
216553
+ if (current.length) {
216554
+ let inserted = false;
216555
+ for (let i = current.length - 1; i >= 0; i--) {
216556
+ const el = current[i];
216557
+ if (node !== el) {
216558
+ const isParent = el.parentNode === parent;
216559
+ if (!inserted && !i) isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);else isParent && el.remove();
216560
+ } else inserted = true;
216561
+ }
216562
+ } else parent.insertBefore(node, marker);
216563
+ return [node];
216564
+ }
216565
+ function gatherHydratable(element, root) {
216566
+ const templates = element.querySelectorAll(`*[data-hk]`);
216567
+ for (let i = 0; i < templates.length; i++) {
216568
+ const node = templates[i];
216569
+ const key = node.getAttribute("data-hk");
216570
+ if ((!root || key.startsWith(root)) && !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry.has(key)) solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry.set(key, node);
216571
+ }
216572
+ }
216573
+ function getHydrationKey() {
216574
+ const hydrate = solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context;
216575
+ return `${hydrate.id}${hydrate.count++}`;
216576
+ }
216577
+ function NoHydration(props) {
216578
+ return solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context ? undefined : props.children;
216579
+ }
216580
+ function Hydration(props) {
216581
+ return props.children;
216582
+ }
216583
+ function voidFn() {}
216584
+
216585
+ function throwInBrowser(func) {
216586
+ const err = new Error(`${func.name} is not supported in the browser, returning undefined`);
216587
+ console.error(err);
216588
+ }
216589
+ function renderToString(fn, options) {
216590
+ throwInBrowser(renderToString);
216591
+ }
216592
+ function renderToStringAsync(fn, options) {
216593
+ throwInBrowser(renderToStringAsync);
216594
+ }
216595
+ function renderToStream(fn, options) {
216596
+ throwInBrowser(renderToStream);
216597
+ }
216598
+ function ssr(template, ...nodes) {}
216599
+ function ssrElement(name, props, children, needsId) {}
216600
+ function ssrClassList(value) {}
216601
+ function ssrStyle(value) {}
216602
+ function ssrAttribute(key, value) {}
216603
+ function ssrHydrationKey() {}
216604
+ function resolveSSRNode(node) {}
216605
+ function escape(html) {}
216606
+ function ssrSpread(props, isSVG, skipChildren) {}
216607
+
216608
+ const isServer = false;
216609
+ const isDev = true;
216610
+ const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
216611
+ function createElement(tagName, isSVG = false) {
216612
+ return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName);
216613
+ }
216614
+ const hydrate = (...args) => {
216615
+ (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.enableHydration)();
216616
+ return hydrate$1(...args);
216617
+ };
216618
+ function Portal(props) {
216619
+ const {
216620
+ useShadow
216621
+ } = props,
216622
+ marker = document.createTextNode(""),
216623
+ mount = () => props.mount || document.body,
216624
+ owner = (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.getOwner)();
216625
+ let content;
216626
+ let hydrating = !!solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context;
216627
+ (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createEffect)(() => {
216628
+ if (hydrating) (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.getOwner)().user = hydrating = false;
216629
+ content || (content = (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.runWithOwner)(owner, () => props.children));
216630
+ const el = mount();
216631
+ if (el instanceof HTMLHeadElement) {
216632
+ const [clean, setClean] = (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createSignal)(false);
216633
+ const cleanup = () => setClean(true);
216634
+ (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRoot)(dispose => insert(el, () => !clean() ? content : dispose(), null));
216635
+ (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.onCleanup)(cleanup);
216636
+ } else {
216637
+ const container = createElement(props.isSVG ? "g" : "div", props.isSVG),
216638
+ renderRoot = useShadow && container.attachShadow ? container.attachShadow({
216639
+ mode: "open"
216640
+ }) : container;
216641
+ Object.defineProperty(container, "_$host", {
216642
+ get() {
216643
+ return marker.parentNode;
216644
+ },
216645
+ configurable: true
216646
+ });
216647
+ insert(renderRoot, content);
216648
+ el.appendChild(container);
216649
+ props.ref && props.ref(container);
216650
+ (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.onCleanup)(() => el.removeChild(container));
216651
+ }
216652
+ }, undefined, {
216653
+ render: !hydrating
216654
+ });
216655
+ return marker;
216656
+ }
216657
+ function Dynamic(props) {
216658
+ const [p, others] = (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.splitProps)(props, ["component"]);
216659
+ const cached = (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createMemo)(() => p.component);
216660
+ return (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createMemo)(() => {
216661
+ const component = cached();
216662
+ switch (typeof component) {
216663
+ case "function":
216664
+ Object.assign(component, {
216665
+ [solid_js__WEBPACK_IMPORTED_MODULE_0__.$DEVCOMP]: true
216666
+ });
216667
+ return (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.untrack)(() => component(others));
216668
+ case "string":
216669
+ const isSvg = SVGElements.has(component);
216670
+ const el = solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context ? getNextElement() : createElement(component, isSvg);
216671
+ spread(el, others, isSvg);
216672
+ return el;
216673
+ }
216674
+ });
216675
+ }
216676
+
216677
+
216678
+
216679
+
216439
216680
  /***/ })
216440
216681
 
216441
216682
  /******/ });
@@ -216724,4 +216965,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
216724
216965
 
216725
216966
  /******/ })()
216726
216967
  ;
216727
- //# sourceMappingURL=index.f32e91.js.map
216968
+ //# sourceMappingURL=index.42a69a.js.map