@lmvz-ds/components 0.18.2 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +45 -100
  3. package/cjs/ds.constants-DSnxZ3ia.js +16 -0
  4. package/cjs/{icons-swqMn6s2.js → icons-Tg7ySOh-.js} +54 -38
  5. package/cjs/index.cjs.js +9 -10
  6. package/cjs/lmvz-button.cjs.entry.js +2 -2
  7. package/cjs/lmvz-chip.cjs.entry.js +68 -4
  8. package/cjs/lmvz-components.cjs.js +1 -1
  9. package/cjs/lmvz-header_2.cjs.entry.js +2 -2
  10. package/cjs/lmvz-icon.cjs.entry.js +6 -6
  11. package/cjs/lmvz-input.cjs.entry.js +3 -3
  12. package/cjs/lmvz-menuitem.cjs.entry.js +2 -2
  13. package/cjs/lmvz-select.cjs.entry.js +2 -2
  14. package/cjs/loader.cjs.js +1 -1
  15. package/cjs/{reactive-controller-host-CtaVAiYJ.js → reactive-controller-host-Bi9eu2bV.js} +9 -9
  16. package/collection/api/ds.constants.js +2 -0
  17. package/collection/components/lmvz-button/lmvz-button.js +6 -3
  18. package/collection/components/lmvz-chip/lmvz-chip.css +84 -1
  19. package/collection/components/lmvz-chip/lmvz-chip.js +110 -13
  20. package/collection/components/lmvz-header/lmvz-header.js +2 -2
  21. package/collection/components/lmvz-icon/lmvz-icon.css +11 -10
  22. package/collection/components/lmvz-icon/lmvz-icon.js +7 -6
  23. package/collection/components/lmvz-input/lmvz-input.js +4 -4
  24. package/collection/components/lmvz-menuitem/lmvz-menuitem.js +11 -5
  25. package/collection/components/lmvz-select/lmvz-select.js +1 -1
  26. package/collection/index.js +1 -1
  27. package/collection/integration/header-integration/header-integration.js +1 -1
  28. package/collection/utils/aria/aria-validation-controller.js +1 -0
  29. package/collection/utils/reactive-controller-host.js +9 -9
  30. package/components/index.js +1 -1
  31. package/components/lmvz-button.js +1 -1
  32. package/components/lmvz-chip.js +1 -1
  33. package/components/lmvz-header.js +1 -1
  34. package/components/lmvz-icon.js +1 -1
  35. package/components/lmvz-input.js +1 -1
  36. package/components/lmvz-menuitem.js +1 -1
  37. package/components/lmvz-select.js +1 -1
  38. package/components/{p-DQEkWkMh.js → p-DIrAQ4IB.js} +1 -1
  39. package/esm/{aria-loader-BF_AYtbb.js → aria-loader-CES8Ae1e.js} +1 -1
  40. package/esm/ds.constants-Bmi89ll1.js +9 -0
  41. package/esm/{icons-Ca8oMiRa.js → icons-Bj4dF1-I.js} +55 -40
  42. package/esm/{index-7Ru1khgk.js → index-BvxaUA12.js} +1 -1
  43. package/esm/index.js +4 -11
  44. package/esm/lmvz-button.entry.js +3 -3
  45. package/esm/lmvz-chip.entry.js +69 -5
  46. package/esm/lmvz-components.js +1 -1
  47. package/esm/lmvz-header_2.entry.js +3 -3
  48. package/esm/lmvz-icon.entry.js +7 -7
  49. package/esm/lmvz-input.entry.js +4 -4
  50. package/esm/lmvz-menuitem.entry.js +3 -3
  51. package/esm/lmvz-select.entry.js +3 -3
  52. package/esm/loader.js +1 -1
  53. package/esm/{logger-fiRXhuXK.js → logger-0bL3pydp.js} +1 -1
  54. package/esm/{reactive-controller-host-sR2jJxNG.js → reactive-controller-host-J2thAxVH.js} +10 -10
  55. package/hydrate/index.js +92 -27
  56. package/hydrate/index.mjs +92 -27
  57. package/lmvz-components/index.esm.js +1 -1
  58. package/lmvz-components/lmvz-components.esm.js +1 -1
  59. package/lmvz-components/{p-fiRXhuXK.js → p-0bL3pydp.js} +1 -1
  60. package/lmvz-components/p-40569208.entry.js +1 -0
  61. package/lmvz-components/p-49ab22bd.entry.js +1 -0
  62. package/lmvz-components/{p-6dbb3f13.entry.js → p-6e8acbd9.entry.js} +1 -1
  63. package/lmvz-components/{p-59383f3a.entry.js → p-9212bd23.entry.js} +1 -1
  64. package/lmvz-components/p-9626e951.entry.js +1 -0
  65. package/lmvz-components/p-Bmi89ll1.js +1 -0
  66. package/lmvz-components/p-Bu4Z_PMf.js +1 -0
  67. package/lmvz-components/{p-Bkfdgg0T.js → p-BxHnZA0M.js} +1 -1
  68. package/lmvz-components/{p-DXOTa5VF.js → p-DHZwxmLb.js} +1 -1
  69. package/lmvz-components/{p-B3dnXEPG.js → p-DYaffOLo.js} +1 -1
  70. package/lmvz-components/{p-84267405.entry.js → p-e1b847d2.entry.js} +1 -1
  71. package/lmvz-components/{p-5aa17cd2.entry.js → p-ec96c6b6.entry.js} +1 -1
  72. package/manifest.json +139 -32
  73. package/package.json +1 -1
  74. package/types/api/ds.constants.d.ts +6 -1
  75. package/types/components/lmvz-action/lmvz-action.d.ts +0 -1
  76. package/types/components/lmvz-button/lmvz-button.d.ts +0 -1
  77. package/types/components/lmvz-card/lmvz-card.d.ts +0 -1
  78. package/types/components/lmvz-chip/lmvz-chip.d.ts +18 -3
  79. package/types/components/lmvz-header/lmvz-header.d.ts +0 -1
  80. package/types/components/lmvz-icon/lmvz-icon.d.ts +0 -1
  81. package/types/components/lmvz-input/lmvz-input.d.ts +0 -1
  82. package/types/components/lmvz-menuitem/lmvz-menuitem.d.ts +0 -1
  83. package/types/components/lmvz-select/lmvz-select.d.ts +0 -1
  84. package/types/components.d.ts +70 -12
  85. package/types/index.d.ts +1 -2
  86. package/types/utils/aria/aria-validation-controller.d.ts +1 -2
  87. package/types/utils/aria/element-activation-controller.d.ts +0 -1
  88. package/types/utils/aria/list-keyboard-controller.d.ts +0 -1
  89. package/types/utils/assets.d.ts +0 -1
  90. package/types/utils/component.d.ts +0 -1
  91. package/types/utils/environment.d.ts +0 -1
  92. package/types/utils/http.d.ts +0 -1
  93. package/types/utils/http.unit.d.ts +0 -1
  94. package/types/utils/icons/icons-registry.d.ts +0 -1
  95. package/types/utils/icons/icons.d.ts +0 -1
  96. package/types/utils/icons/icons.unit.d.ts +0 -1
  97. package/types/utils/icons/public.d.ts +0 -1
  98. package/types/utils/public.d.ts +0 -1
  99. package/types/utils/reactive-controller-host.d.ts +0 -1
  100. package/lmvz-components/p-0a41cc24.entry.js +0 -1
  101. package/lmvz-components/p-30b99f11.entry.js +0 -1
  102. package/lmvz-components/p-5f150890.entry.js +0 -1
  103. package/lmvz-components/p-Bh2Epkwf.js +0 -1
  104. /package/components/{p-CBLAeife.js → p-DbeHBSOe.js} +0 -0
package/hydrate/index.mjs CHANGED
@@ -5481,9 +5481,6 @@ function resolvePossiblyAsyncFunction(func, args = []) {
5481
5481
  return Promise.resolve(res);
5482
5482
  }
5483
5483
 
5484
- const hasProcessStdout = typeof process === "object" && process !== null && typeof process.stdout === "object" && process.stdout !== null;
5485
- hasProcessStdout && process.stdout.isTTY === true;
5486
-
5487
5484
  const GLOBAL_STATE_KEY = Symbol('LMVZ__ariaValidationRuntimeState');
5488
5485
  const ARIA_VALIDATION_RUNTIME_CHANGED_EVENT = 'lmvz:aria-validation-runtime-changed';
5489
5486
  function getRuntimeState() {
@@ -5818,34 +5815,34 @@ class ReactiveControllerHost {
5818
5815
  this.controllers.delete(controller);
5819
5816
  }
5820
5817
  get activeControllers() {
5821
- return Array.from(this.controllers).filter(controller => !controller.disabled);
5818
+ return Array.from(this.controllers).filter((controller) => !controller.disabled);
5822
5819
  }
5823
5820
  connectedCallback() {
5824
5821
  if (!this.controllers.size) {
5825
5822
  console.warn('ReactiveControllerHost connected with no controllers registered.', this);
5826
5823
  }
5827
- this.activeControllers.forEach(controller => controller.hostConnected?.());
5824
+ this.activeControllers.forEach((controller) => controller.hostConnected?.());
5828
5825
  }
5829
5826
  disconnectedCallback() {
5830
- this.activeControllers.forEach(controller => controller.hostDisconnected?.());
5827
+ this.activeControllers.forEach((controller) => controller.hostDisconnected?.());
5831
5828
  }
5832
5829
  componentWillLoad() {
5833
- this.activeControllers.forEach(controller => controller.hostWillLoad?.());
5830
+ this.activeControllers.forEach((controller) => controller.hostWillLoad?.());
5834
5831
  }
5835
5832
  componentDidLoad() {
5836
- this.activeControllers.forEach(controller => controller.hostDidLoad?.());
5833
+ this.activeControllers.forEach((controller) => controller.hostDidLoad?.());
5837
5834
  }
5838
5835
  componentWillRender() {
5839
- this.activeControllers.forEach(controller => controller.hostWillRender?.());
5836
+ this.activeControllers.forEach((controller) => controller.hostWillRender?.());
5840
5837
  }
5841
5838
  componentDidRender() {
5842
- this.activeControllers.forEach(controller => controller.hostDidRender?.());
5839
+ this.activeControllers.forEach((controller) => controller.hostDidRender?.());
5843
5840
  }
5844
5841
  componentWillUpdate() {
5845
- this.activeControllers.forEach(controller => controller.hostWillUpdate?.());
5842
+ this.activeControllers.forEach((controller) => controller.hostWillUpdate?.());
5846
5843
  }
5847
5844
  componentDidUpdate() {
5848
- this.activeControllers.forEach(controller => controller.hostDidUpdate?.());
5845
+ this.activeControllers.forEach((controller) => controller.hostDidUpdate?.());
5849
5846
  }
5850
5847
  }
5851
5848
 
@@ -5906,7 +5903,7 @@ class LmvzButton extends ReactiveControllerHost {
5906
5903
  };
5907
5904
  render() {
5908
5905
  this.renderHiddenButton();
5909
- return (hAsync(Host, { key: '2897a943aca62561b0e78b5b3f2b7b85d76f4e78', "aria-disabled": this.disabled ? 'true' : null }, hAsync("button", { key: '92555224e33b00fb2602fdb2d19075145c0d9097', ref: (e) => (this.validationEl = e), disabled: this.disabled, class: classNames(this.variant, { [this.scale ?? '']: !!this.scale, disabled: this.disabled }), ...this.inheritedAttributes }, hAsync("slot", { key: '637a03a73db84a63bf1e3165d57c474151f87783' }))));
5906
+ return (hAsync(Host, { key: 'ce82e749ffb9172a9421d303e0d7cc02de58dff9', "aria-disabled": this.disabled ? 'true' : null }, hAsync("button", { key: 'acd0773f72e76139ec5495eb15fc3a5949029e40', ref: (e) => (this.validationEl = e), disabled: this.disabled, class: classNames(this.variant, { [this.scale ?? '']: !!this.scale, disabled: this.disabled }), ...this.inheritedAttributes }, hAsync("slot", { key: 'f519e0f82e68811a8831214e83e609bd9501fed0' }))));
5910
5907
  }
5911
5908
  static get delegatesFocus() { return true; }
5912
5909
  static get style() { return lmvzButtonCss(); }
@@ -5991,26 +5988,91 @@ class LmvzCard {
5991
5988
  }; }
5992
5989
  }
5993
5990
 
5994
- const lmvzChipCss = () => `:host{display:block}`;
5991
+ function debounce(func, wait) {
5992
+ let timeout;
5993
+ return () => {
5994
+ if (timeout !== undefined) {
5995
+ window.clearTimeout(timeout);
5996
+ }
5997
+ timeout = window.setTimeout(() => {
5998
+ func();
5999
+ timeout = undefined;
6000
+ }, wait);
6001
+ };
6002
+ }
6003
+
6004
+ const chipTypes = ['active', 'warning', 'success', 'error', 'neutral'];
6005
+ const chipSizes = ['default', 'small'];
5995
6006
 
5996
- class LmvzChip {
6007
+ const lmvzChipCss = () => `:host { --lmvz-chip-border-color: var(--lmvz-semantic-color-status-on-neutral-subtle, #d4d4d4); --lmvz-chip-background-color: var(--lmvz-semantic-color-status-neutral, #fcfcfc); --lmvz-chip-foreground-color: var(--lmvz-semantic-color-status-on-neutral, #545454); padding-block: var(--lmvz-dimension-4-6, clamp(0.25rem, 0.22rem + 0.13vw, 0.38rem)); padding-inline: var(--lmvz-dimension-8-10, clamp(0.5rem, 0.47rem + 0.13vw, 0.63rem)); border: 1px solid var(--lmvz-chip-border-color); border-radius: var(--lmvz-semantic-border-radius-round, 999px); font: var(--lmvz-typography-body-xs-strong, 500 clamp(0.69rem, 0.67rem + 0.06vw, 0.75rem) / 1.4 Router); background-color: var(--lmvz-chip-background-color); color: var(--lmvz-chip-foreground-color); display: inline-flex; align-items: center; justify-content: center; gap: var(--lmvz-dimension-4-6, clamp(0.25rem, 0.22rem + 0.13vw, 0.38rem)); box-sizing: border-box; max-width: 100%; overflow: hidden; white-space: nowrap; > .content-overflow-wrapper { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } :host([size='small']) { padding-block: var(--lmvz-dimension-2-4, clamp(0.13rem, 0.09rem + 0.13vw, 0.25rem)); padding-inline: var(--lmvz-dimension-6-8, clamp(0.38rem, 0.34rem + 0.13vw, 0.5rem)); font: var(--lmvz-typography-body-2xs-strong, 500 clamp(0.63rem, 0.61rem + 0.06vw, 0.69rem) / 1.4 Router); gap: var(--lmvz-dimension-2-4, clamp(0.13rem, 0.09rem + 0.13vw, 0.25rem)); } ::slotted(*) { display: inline; white-space: inherit; } ::slotted(lmvz-icon) { --lmvz-component-color: var(--lmvz-chip-foreground-color); --lmvz-component-size: var(--lmvz-dimension-12-14, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem)); } :host([size='small']) ::slotted(lmvz-icon) { --lmvz-component-size: var(--lmvz-dimension-10-12, clamp(0.63rem, 0.59rem + 0.13vw, 0.75rem)); } :host([type='active']) { --lmvz-chip-border-color: var(--lmvz-semantic-color-status-on-active-subtle, #c1e6fa); --lmvz-chip-background-color: var(--lmvz-semantic-color-status-active, #f1f9fe); --lmvz-chip-foreground-color: var(--lmvz-semantic-color-status-on-active, #0e7ab4); } :host([type='warning']) { --lmvz-chip-border-color: var(--lmvz-semantic-color-status-on-warning-subtle, #ffdf75); --lmvz-chip-background-color: var(--lmvz-semantic-color-status-warning, #fffbf0); --lmvz-chip-foreground-color: var(--lmvz-semantic-color-status-on-warning, #7a5e00); } :host([type='success']) { --lmvz-chip-border-color: var(--lmvz-semantic-color-status-on-success-subtle, #a5dad3); --lmvz-chip-background-color: var(--lmvz-semantic-color-status-success, #f1f9f8); --lmvz-chip-foreground-color: var(--lmvz-semantic-color-status-on-success, #37867c); } :host([type='error']) { --lmvz-chip-border-color: var(--lmvz-semantic-color-status-on-danger-subtle, #f7bfc2); --lmvz-chip-background-color: var(--lmvz-semantic-color-status-danger, #fdf1f2); --lmvz-chip-foreground-color: var(--lmvz-semantic-color-status-on-danger, #e52a31); } :host([type='neutral']) { --lmvz-chip-border-color: var(--lmvz-semantic-color-status-on-neutral-subtle, #d4d4d4); --lmvz-chip-background-color: var(--lmvz-semantic-color-status-neutral, #fcfcfc); --lmvz-chip-foreground-color: var(--lmvz-semantic-color-status-on-neutral, #545454); } `;
6008
+
6009
+ class LmvzChip extends ReactiveControllerHost {
6010
+ ariaValidationController = new AriaValidationController(this);
6011
+ beforeSlot;
6012
+ defaultSlot;
6013
+ afterSlot;
6014
+ get el() { return getElement(this); }
6015
+ get validationEl() {
6016
+ return this.el;
6017
+ }
6018
+ type = 'active';
6019
+ size = 'default';
5997
6020
  constructor(hostRef) {
6021
+ super();
5998
6022
  registerInstance(this, hostRef);
6023
+ this.addController(this.ariaValidationController);
6024
+ }
6025
+ normalizeType(value) {
6026
+ const normalizedType = chipTypes.includes(value) ? value : 'active';
6027
+ if (normalizedType !== this.type) {
6028
+ this.type = normalizedType;
6029
+ }
5999
6030
  }
6000
- text;
6031
+ normalizeSize(value) {
6032
+ const normalizedSize = chipSizes.includes(value) ? value : 'default';
6033
+ if (normalizedSize !== this.size) {
6034
+ this.size = normalizedSize;
6035
+ }
6036
+ }
6037
+ componentWillLoad() {
6038
+ this.normalizeType(this.type);
6039
+ this.normalizeSize(this.size);
6040
+ super.componentWillLoad();
6041
+ }
6042
+ connectedCallback() {
6043
+ super.connectedCallback();
6044
+ this.checkContent();
6045
+ }
6046
+ checkContent = debounce(() => {
6047
+ if (!isAriaValidationEnabled)
6048
+ return;
6049
+ const elements = [...(this.beforeSlot?.assignedElements() ?? []), ...(this.defaultSlot?.assignedElements() ?? []), ...(this.afterSlot?.assignedElements() ?? [])];
6050
+ if (!elements.length) {
6051
+ console.warn('LmvzChip has no assigned content. Please add content to the default slot or the before-text/after-text slots.');
6052
+ }
6053
+ }, 500);
6001
6054
  render() {
6002
- return hAsync(Host, { key: 'd128e24bb90891ebd13d13a8e27c06782363cace' }, this.text);
6055
+ return (hAsync(Host, { key: 'd34b677a3f6ac2cdb53453c774badb837a3b9e25', type: this.type, size: this.size }, hAsync("slot", { key: 'c6f8beea28cd847f8d8b7c7a075c774f58e39262', name: "before-text", ref: (el) => (this.beforeSlot = el), onSlotchange: () => this.checkContent() }), hAsync("span", { key: 'be784ef977bc1d0eae2fd2d9377642636bd325bc', class: "content-overflow-wrapper" }, hAsync("slot", { key: '3730f2902bcae7917979dedd91264670fbff00de', ref: (el) => (this.defaultSlot = el), onSlotchange: () => this.checkContent() })), hAsync("slot", { key: 'f827a03e407385c7bdfd483073453d97f6f73afb', name: "after-text", ref: (el) => (this.afterSlot = el), onSlotchange: () => this.checkContent() })));
6003
6056
  }
6057
+ static get watchers() { return {
6058
+ "type": [{
6059
+ "normalizeType": 0
6060
+ }],
6061
+ "size": [{
6062
+ "normalizeSize": 0
6063
+ }]
6064
+ }; }
6004
6065
  static get style() { return lmvzChipCss(); }
6005
6066
  static get cmpMeta() { return {
6006
- "$flags$": 521,
6067
+ "$flags$": 777,
6007
6068
  "$tagName$": "lmvz-chip",
6008
6069
  "$members$": {
6009
- "text": [1]
6070
+ "type": [1537],
6071
+ "size": [1537]
6010
6072
  },
6011
6073
  "$listeners$": undefined,
6012
6074
  "$lazyBundleId$": "-",
6013
- "$attrsToReflect$": []
6075
+ "$attrsToReflect$": [["type", "type"], ["size", "size"]]
6014
6076
  }; }
6015
6077
  }
6016
6078
 
@@ -6146,7 +6208,7 @@ class LmvzHeader extends ReactiveControllerHost {
6146
6208
  }
6147
6209
  }
6148
6210
  render() {
6149
- return (hAsync(Host, { key: '96626b8d29cdefc8ed97a7bb68a689ff6155d2c7', onFocus: this.delegateFocus.bind(this) }, hAsync("div", { key: '41ac004bdc6c2c6a1f8e3d293f6b0c3727c27aff', class: "brand" }, hAsync("slot", { key: '8e33150a54c8b8070b22db51c8584e06dd06dd5c', name: "brand" }, hAsync("img", { key: '889955c7335d64f2c8d0b2e032db3dd64a27cbd2', id: "fallback-logo-lmvz", src: logoSvg, alt: "Lehrmittelverlag Z\u00FCrich" }))), hAsync("nav", { key: '37b6ef465d320c325e0c830bcc91ea3a575d2690', "aria-label": "Hauptnavigation" }, hAsync("div", { key: '7a0ec1a78d6eee3b3e37f55f872806b0791c2156', role: "menubar", class: "primary-menubar" }, hAsync("slot", { key: 'e0403633c6acd137c94b1552cc7f08e3549550d3', name: "nav-primary", ref: (el) => (this.primarySlot = el) }), hAsync("div", { key: '4e377f38a0b94a766f9001174729e5763fa0a194', role: "menu", id: "nav-secondary", class: "secondary-menubar", hidden: !this.lmvzActiveNav, ref: (el) => (this.secondaryNav = el) }, hAsync("slot", { key: '368e461f239498c706a3c9bb27a7b05de2b79cac', name: this.secondarySlotName, ref: (el) => (this.secondarySlot = el) })))), hAsync("div", { key: '8ffaf8d6f1254644b48dc0a40b9f552339ecc690', class: "actions" }, hAsync("slot", { key: '5b679885e4fa111d66e993458ab7f5092d8179d4', name: "actions" }))));
6211
+ return (hAsync(Host, { key: '74061d97a6d4cdec1f445a91b9e819bb12565681', onFocus: this.delegateFocus.bind(this) }, hAsync("div", { key: 'af7f08ff48a20b7d36df5ee233da7027cd30a047', class: "brand" }, hAsync("slot", { key: '46be4fcf2798ac374ac967bc2742260c4d7e082b', name: "brand" }, hAsync("img", { key: '3ee79f9732758a6ca5dd6e8264c67707917b358b', id: "fallback-logo-lmvz", src: logoSvg, alt: "Lehrmittelverlag Z\u00FCrich" }))), hAsync("nav", { key: '8f37883454544a384bb35a151c4e24bb12c35f40', "aria-label": "Hauptnavigation" }, hAsync("div", { key: 'a3166ad7e924dd72148d05c01160c889c8f07529', role: "menubar", class: "primary-menubar" }, hAsync("slot", { key: 'aa600791e4d8f3463fefbc3b366831e3b3a3eaac', name: "nav-primary", ref: (el) => (this.primarySlot = el) }), hAsync("div", { key: '6471256967f4d14c454205a330b2a97ecfcad7a8', role: "menu", id: "nav-secondary", class: "secondary-menubar", hidden: !this.lmvzActiveNav, ref: (el) => (this.secondaryNav = el) }, hAsync("slot", { key: '1b9b461b958e76184938a1c65d032b296894e2dd', name: this.secondarySlotName, ref: (el) => (this.secondarySlot = el) })))), hAsync("div", { key: '019d87472272df09ce99eeed405771229f326f1a', class: "actions" }, hAsync("slot", { key: '18035fb0a51a26c96dc687547d17d57118a88e87', name: "actions" }))));
6150
6212
  }
6151
6213
  static get watchers() { return {
6152
6214
  "lmvzActiveNav": [{
@@ -6167,7 +6229,10 @@ class LmvzHeader extends ReactiveControllerHost {
6167
6229
  }; }
6168
6230
  }
6169
6231
 
6170
- const lmvzIconCss = () => `.sc-lmvz-icon-h{--lmvz-icon-color:var(--lmvz-component-color, var(--lmvz-semantic-color-on-surface-input-primary, #000000));display:inline-block;line-height:0;svg{display:block}svg path{stroke:var(--lmvz-icon-color);fill:none}}[size='xs'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem));height:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem))}}[size='sm'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.84rem + 0.13vw, 1rem));height:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.84rem + 0.13vw, 1rem))}}[size='md'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-md, clamp(1rem, 0.94rem + 0.26vw, 1.25rem));height:var(--lmvz-component-icon-size-md, clamp(1rem, 0.94rem + 0.26vw, 1.25rem))}}[size='lg'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.44rem + 0.26vw, 1.75rem));height:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.44rem + 0.26vw, 1.75rem))}}[size='inherit'].sc-lmvz-icon-h{svg{width:inherit;height:inherit}}[weight='light'].sc-lmvz-icon-h{svg path{stroke-width:1}}[weight='medium'].sc-lmvz-icon-h{svg path{stroke-width:1.5}}[weight='bold'].sc-lmvz-icon-h{svg path{stroke-width:2}}[weight='filled'].sc-lmvz-icon-h{svg path{stroke-width:2;fill:var(--lmvz-icon-color)}}`;
6232
+ const hasProcessStdout = typeof process === "object" && process !== null && typeof process.stdout === "object" && process.stdout !== null;
6233
+ hasProcessStdout && process.stdout.isTTY === true;
6234
+
6235
+ const lmvzIconCss = () => `.sc-lmvz-icon-h{--lmvz-icon-color:var(--lmvz-component-color, var(--lmvz-semantic-color-on-surface-input-primary, #000000));--lmvz-icon-size:var(--lmvz-component-size, var(--lmvz-component-icon-size-md, clamp(1rem, 0.94rem + 0.26vw, 1.25rem)));display:inline-block;line-height:0;svg{display:block;height:var(--lmvz-icon-size);width:auto}svg path{stroke:var(--lmvz-icon-color);fill:none}}[size='xs'].sc-lmvz-icon-h{svg{--lmvz-icon-size:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem))}}[size='sm'].sc-lmvz-icon-h{svg{--lmvz-icon-size:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.84rem + 0.13vw, 1rem))}}[size='md'].sc-lmvz-icon-h{svg{--lmvz-icon-size:var(--lmvz-component-icon-size-md, clamp(1rem, 0.94rem + 0.26vw, 1.25rem))}}[size='lg'].sc-lmvz-icon-h{svg{--lmvz-icon-size:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.44rem + 0.26vw, 1.75rem))}}[size='inherit'].sc-lmvz-icon-h{svg{height:var(--lmvz-component-size, inherit)}}[weight='light'].sc-lmvz-icon-h{svg path{stroke-width:1}}[weight='medium'].sc-lmvz-icon-h{svg path{stroke-width:1.5}}[weight='bold'].sc-lmvz-icon-h{svg path{stroke-width:2}}[weight='filled'].sc-lmvz-icon-h{svg path{stroke-width:2;fill:var(--lmvz-icon-color)}}`;
6171
6236
 
6172
6237
  class LmvzIcon extends ReactiveControllerHost {
6173
6238
  intersectionObserver;
@@ -6214,7 +6279,7 @@ class LmvzIcon extends ReactiveControllerHost {
6214
6279
  super.componentDidRender();
6215
6280
  }
6216
6281
  render() {
6217
- return hAsync(Host, { key: '6022ed0e30bcdd13455ccaae65784ac70abcb349', role: "img", "aria-hidden": `${this.ariaHidden}`, innerHTML: this.iconData });
6282
+ return hAsync(Host, { key: 'c1e952e00df287c66c49eb043408514c07c3dc39', role: "img", "aria-hidden": `${this.ariaHidden}`, innerHTML: this.iconData });
6218
6283
  }
6219
6284
  waitUntilVisible(callback, rootMargin = 50) {
6220
6285
  {
@@ -6407,9 +6472,9 @@ class LmvzInput extends ReactiveControllerHost {
6407
6472
  render() {
6408
6473
  const hasValue = Boolean(this.value);
6409
6474
  const shouldFloatLabel = hasValue || Boolean(this.placeholder);
6410
- return (hAsync("div", { key: '3f14adbe321717cdfe305dc623940acb8be194f8', class: classNames('input-container', {
6475
+ return (hAsync("div", { key: '22be29e5fcd4976fc6c4d125781be00acef0b359', class: classNames('input-container', {
6411
6476
  'interaction-filled': hasValue,
6412
- }) }, hAsync("div", { key: '2cc559cc0ff4da1f8418c510188bcbb93b42da02', class: "input-wrapper" }, hAsync("slot", { key: 'b41a5179b6d8651a9b60777718f92b32f80fda89', name: "before-input" }), hAsync("div", { key: '4ac81c8d277d6592e1d84f4b3abfffef03843a9c', class: "label-input-group" }, hAsync("label", { key: '80b272c3b069a246dcbf26812d2281e436c6cdfa', htmlFor: this.inputId, class: classNames({ floating: shouldFloatLabel }) }, this.label, this.required && (hAsync("span", { key: 'eb00d3be1a3eddd0661df74cfb2d4b95c75f5eea', class: "required-indicator", "aria-hidden": "true" }, ' ', "*"))), hAsync("input", { key: '6192c875976e7d21003de29badabd5a910ed0c17', id: this.inputId, ref: (el) => (this.nativeInputElement = el), type: this.type, min: this.min, max: this.max, step: this.step, value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, form: this.form, autocomplete: this.autocomplete, inputmode: this.inputmode, autocorrect: this.autocorrect, autocapitalize: this.autocapitalize, spellcheck: this.spellcheck, autofocus: this.autofocus, minlength: this.minlength, maxlength: this.maxlength, pattern: this.pattern, "aria-invalid": this.error ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-describedby": this.describedBy, "aria-errormessage": this.errorId, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur })), hAsync("slot", { key: '9a908984ecebead7f08bbd88ed57fa8f30a69b67', name: "after-input" })), hAsync("div", { key: 'abe658929d955042358ff24ea2267ae5b7b3484d', id: this.helperId, role: "status" }, this.helperText || null), hAsync("div", { key: '61c689c7d8ab3bbb7c62dc7a227c35441b4bbbd8', id: this.errorId, role: "alert" }, (this.showErrorMessage && this.errorMessage) || null)));
6477
+ }) }, hAsync("div", { key: 'ffeb620419316976e800b16b4a9fd9538f1efd26', class: "input-wrapper" }, hAsync("slot", { key: '2a1a67f7fde0232b2bb5ce3cc228b869e5ac3516', name: "before-input" }), hAsync("div", { key: '3bbe623cae67d376c60a28306164293a712b1bb5', class: "label-input-group" }, hAsync("label", { key: 'c260b3eb249d5c785fe3b6e223c7428a8c147f50', htmlFor: this.inputId, class: classNames({ floating: shouldFloatLabel }) }, this.label, this.required && (hAsync("span", { key: 'f43dd77efe7e319428dd72ec8933b7587635e767', class: "required-indicator", "aria-hidden": "true" }, ' ', "*"))), hAsync("input", { key: 'eeb821a74a5ac7aab3fab65a48a37d21a22744e6', id: this.inputId, ref: (el) => (this.nativeInputElement = el), type: this.type, min: this.min, max: this.max, step: this.step, value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, form: this.form, autocomplete: this.autocomplete, inputmode: this.inputmode, autocorrect: this.autocorrect, autocapitalize: this.autocapitalize, spellcheck: this.spellcheck, autofocus: this.autofocus, minlength: this.minlength, maxlength: this.maxlength, pattern: this.pattern, "aria-invalid": this.error ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-describedby": this.describedBy, "aria-errormessage": this.errorId, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur })), hAsync("slot", { key: 'dd36a212c05c43ab2a8249750c14a7475b6d65d3', name: "after-input" })), hAsync("div", { key: 'c2aedd67036faf4d3dc459c3c1fab8d07ee5a991', id: this.helperId, role: "status" }, this.helperText || null), hAsync("div", { key: '01d2a6d6df9b3804a595711c7b57b6177d311c39', id: this.errorId, role: "alert" }, (this.showErrorMessage && this.errorMessage) || null)));
6413
6478
  }
6414
6479
  static get formAssociated() { return true; }
6415
6480
  static get watchers() { return {
@@ -6487,7 +6552,7 @@ class LmvzMenuItem extends ReactiveControllerHost {
6487
6552
  this.addController(new ElementActivationController(this));
6488
6553
  }
6489
6554
  render() {
6490
- return (hAsync(Host, { key: '1a37d2873a29c713cf95c60070c8dcf045c9f8fc' }, hAsync("slot", { key: 'c6578bcfdb9f0cebad095d80f0ed63cf663bf91e', ref: (e) => (this.validationSlot = e) })));
6555
+ return (hAsync(Host, { key: '0878343aec1c98c16c073c6cdd3382ee5c980799' }, hAsync("slot", { key: 'f7a87d4c9d786bb4686d406d4313e9b5d79701d6', ref: (e) => (this.validationSlot = e) })));
6491
6556
  }
6492
6557
  static get style() { return lmvzMenuitemCss(); }
6493
6558
  static get cmpMeta() { return {
@@ -6557,7 +6622,7 @@ class LmvzSelect extends ReactiveControllerHost {
6557
6622
  render() {
6558
6623
  const hasValue = this.hasValue;
6559
6624
  const shouldShowLabel = hasValue;
6560
- return (hAsync(Host, { key: '7d1abb943f79e90451b43c9221801b80a2f61346' }, hAsync("div", { key: 'ded3e45246ab38e89d444c59239cdc63a2c4d4fc', class: "select-wrapper" }, hAsync("label", { key: 'cb68ff79976c2fb55d4cc827f9e90ba2597a8a43', htmlFor: this.selectId, class: shouldShowLabel ? 'floating-label' : 'assistive-label' }, this.label, this.required && shouldShowLabel && hAsync("span", { key: 'ab77eaea1645b95d90f00ffb609bbd7a1704f7bc', "aria-hidden": "true" }, " *")), hAsync("div", { key: '45cee00478a6cc31c10dddf69d8e6687fc8f440d', "aria-hidden": "true" }, hAsync("span", { key: '0c5d425ea8843234aa6abd94a207377e2a675686' }, hasValue ? this.selectedLabel : this.label, this.required && !hasValue && hAsync("span", { key: 'ebef5322371ee0253b50dd801b80cbb6402c067a', "aria-hidden": "true" }, " *")), hAsync("span", { key: 'a12d31dc29563444f728133f181b48914d31705b' }, hAsync("img", { key: 'dd3f175d1ca2b9ccc6c2bfa2075e5da62016a896', src: chevronDownSvg, alt: "" }))), hAsync("select", { key: 'a196f3b824177d1b45971c38341bf6a2939dda82', id: this.selectId, ref: (el) => (this.nativeSelectEl = el), name: this.name, disabled: this.disabled, required: this.required, "aria-label": this.label, onChange: this.handleChange }, !hasValue && hAsync("option", { key: '536cc559def0e9ffa4b2150693ece9a597c238d1', value: "", disabled: true, selected: true, hidden: true }), hAsync("slot", { key: 'ad9fed96b9f8c1d8257511bb1d5ab5ee756973ce' }))), this.helperText && hAsync("div", { key: '4723b44d781c900be5aae7ece2a0be04b6c744b9', role: "status" }, this.helperText)));
6625
+ return (hAsync(Host, { key: 'b9f6211fec35e7c03cc9c462cb1f8eb60fc6c96c' }, hAsync("div", { key: '43d22daa1492f87f89f9479687b82ee893f10faa', class: "select-wrapper" }, hAsync("label", { key: 'cf399d80e31a345cea60286db4aea2d7dd7973d1', htmlFor: this.selectId, class: shouldShowLabel ? 'floating-label' : 'assistive-label' }, this.label, this.required && shouldShowLabel && hAsync("span", { key: '6bdd8e0d652f126eb1c64c2a647ac0816cc61b05', "aria-hidden": "true" }, " *")), hAsync("div", { key: '5d8497c64e197a71003a0c8e11149993fcefd684', "aria-hidden": "true" }, hAsync("span", { key: '95b73705ad81d000ce415a377002e4ae4d63aae6' }, hasValue ? this.selectedLabel : this.label, this.required && !hasValue && hAsync("span", { key: '2ff855f0fa89d3c66c59a176f855fdbf18ecb6c2', "aria-hidden": "true" }, " *")), hAsync("span", { key: 'a66d4ec65c95b1463223c07aecb17d65a45c6b24' }, hAsync("img", { key: '4cd21532ff13a3ecbd229cd79d0a3fa7b3eafc60', src: chevronDownSvg, alt: "" }))), hAsync("select", { key: '2a9e46e29f8ef7d116989b58abfacee840dd2275', id: this.selectId, ref: (el) => (this.nativeSelectEl = el), name: this.name, disabled: this.disabled, required: this.required, "aria-label": this.label, onChange: this.handleChange }, !hasValue && hAsync("option", { key: '5c5fa4d5e3b120a0085f6fc408d20a56f6547441', value: "", disabled: true, selected: true, hidden: true }), hAsync("slot", { key: 'e11909e901624af7d9d5275f2e9715007960eab9' }))), this.helperText && hAsync("div", { key: 'fa0d06d3294f303081fd5ffb9aeaff6a8e297901', role: "status" }, this.helperText)));
6561
6626
  }
6562
6627
  static get watchers() { return {
6563
6628
  "value": [{
@@ -1 +1 @@
1
- export{A as ARIA_VALIDATION_RUNTIME_CHANGED_EVENT,d as disableAriaValidation,e as enableAriaValidation,i as isAriaValidationEnabled,q as queueValidation,u as useVerboseLogging}from"./p-B3dnXEPG.js";export{g as getRegisteredIconProvider,r as registerIconProvider,t as typedIconFromSet}from"./p-Bh2Epkwf.js";import"./p-fiRXhuXK.js";const a=["xs","sm","md","lg"],s=[...a,"xl"],o=["text","email","password","tel","url","search","number"],l=[...a,"inherit"],n=["thin","medium","bold","filled"];export{l as iconSizes,n as iconWeights,o as inputTypes,s as textSizes}
1
+ export{A as ARIA_VALIDATION_RUNTIME_CHANGED_EVENT,d as disableAriaValidation,e as enableAriaValidation,i as isAriaValidationEnabled,q as queueValidation,u as useVerboseLogging}from"./p-DYaffOLo.js";export{c as chipSizes,a as chipTypes,i as iconSizes,b as iconWeights,d as inputTypes,t as textSizes}from"./p-Bmi89ll1.js";export{g as getRegisteredIconProvider,r as registerIconProvider,t as typedIconFromSet}from"./p-Bu4Z_PMf.js";import"./p-0bL3pydp.js";
@@ -1 +1 @@
1
- import{p as e,b as a}from"./p-saW7O-EW.js";export{s as setNonce}from"./p-saW7O-EW.js";import{g as l}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a([["p-30b99f11",[[769,"lmvz-header",{role:[2561],lmvzActiveNav:[1,"lmvz-active-nav"]},null,{lmvzActiveNav:[{handleActiveNavChange:0}]}],[774,"lmvz-menuitem",{role:[2561],ti:[2562,"tabindex"]}]]],["p-43e295ba",[[257,"lmvz-action"]]],["p-5aa17cd2",[[785,"lmvz-button",{ti:[2562,"tabindex"],scale:[513],variant:[513],disabled:[516],type:[1],form:[1]}]]],["p-7a6bec13",[[774,"lmvz-card",{cardTitle:[1,"card-title"],imageUrl:[1,"image-url"],description:[1],primaryActionLabel:[1,"primary-action-label"]}]]],["p-5f150890",[[513,"lmvz-chip",{text:[1]}]]],["p-0a41cc24",[[514,"lmvz-icon",{icon:[513],weight:[513],size:[513],iconset:[513],ariaLabel:[513,"aria-label"],iconData:[32],visible:[32]},null,{icon:[{loadIconPathData:0}],iconset:[{loadIconPathData:0}]}]]],["p-6dbb3f13",[[838,"lmvz-input",{value:[1025],label:[1],helperText:[1,"helper-text"],placeholder:[1],disabled:[516],readonly:[516],required:[516],name:[1],type:[1],errorMessage:[1,"error-message"],autocomplete:[1],inputmode:[1],autocorrect:[1],autocapitalize:[1],spellcheck:[4],autofocus:[4],minlength:[2],maxlength:[2],pattern:[1],min:[8],max:[8],step:[8],form:[1],error:[6660],nativeError:[32],setValue:[64],focusInput:[64],blurInput:[64],select:[64],checkValidity:[64],reportValidity:[64],getInputElement:[64]},null,{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}]]],["p-59383f3a",[[774,"lmvz-menuitem",{role:[2561],ti:[2562,"tabindex"]}]]],["p-84267405",[[774,"lmvz-select",{value:[1025],label:[1],helperText:[1,"helper-text"],disabled:[516],required:[516],name:[1],selectedLabel:[32]},null,{value:[{handleValueChange:0}]}]]]],e))));
1
+ import{p as e,b as a}from"./p-saW7O-EW.js";export{s as setNonce}from"./p-saW7O-EW.js";import{g as l}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a([["p-40569208",[[769,"lmvz-header",{role:[2561],lmvzActiveNav:[1,"lmvz-active-nav"]},null,{lmvzActiveNav:[{handleActiveNavChange:0}]}],[774,"lmvz-menuitem",{role:[2561],ti:[2562,"tabindex"]}]]],["p-43e295ba",[[257,"lmvz-action"]]],["p-ec96c6b6",[[785,"lmvz-button",{ti:[2562,"tabindex"],scale:[513],variant:[513],disabled:[516],type:[1],form:[1]}]]],["p-7a6bec13",[[774,"lmvz-card",{cardTitle:[1,"card-title"],imageUrl:[1,"image-url"],description:[1],primaryActionLabel:[1,"primary-action-label"]}]]],["p-9626e951",[[769,"lmvz-chip",{type:[1537],size:[1537]},null,{type:[{normalizeType:0}],size:[{normalizeSize:0}]}]]],["p-49ab22bd",[[514,"lmvz-icon",{icon:[513],weight:[513],size:[513],iconset:[513],ariaLabel:[513,"aria-label"],iconData:[32],visible:[32]},null,{icon:[{loadIconPathData:0}],iconset:[{loadIconPathData:0}]}]]],["p-6e8acbd9",[[838,"lmvz-input",{value:[1025],label:[1],helperText:[1,"helper-text"],placeholder:[1],disabled:[516],readonly:[516],required:[516],name:[1],type:[1],errorMessage:[1,"error-message"],autocomplete:[1],inputmode:[1],autocorrect:[1],autocapitalize:[1],spellcheck:[4],autofocus:[4],minlength:[2],maxlength:[2],pattern:[1],min:[8],max:[8],step:[8],form:[1],error:[6660],nativeError:[32],setValue:[64],focusInput:[64],blurInput:[64],select:[64],checkValidity:[64],reportValidity:[64],getInputElement:[64]},null,{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}]]],["p-9212bd23",[[774,"lmvz-menuitem",{role:[2561],ti:[2562,"tabindex"]}]]],["p-e1b847d2",[[774,"lmvz-select",{value:[1025],label:[1],helperText:[1,"helper-text"],disabled:[516],required:[516],name:[1],selectedLabel:[32]},null,{value:[{handleValueChange:0}]}]]]],e))));
@@ -1 +1 @@
1
- const t=function(t,e){if("function"==typeof t)return function(){return t(arguments)?e.apply(this,arguments):t=>e(t,...arguments)};switch(t){case 0:case 1:throw new RangeError(`Invalid arity ${t}`);case 2:return function(t,r){return arguments.length>=2?e(t,r):function(r){return e(r,t)}};case 3:return function(t,r,n){return arguments.length>=3?e(t,r,n):function(n){return e(n,t,r)}};case 4:return function(t,r,n,s){return arguments.length>=4?e(t,r,n,s):function(s){return e(s,t,r,n)}};case 5:return function(t,r,n,s,i){return arguments.length>=5?e(t,r,n,s,i):function(i){return e(i,t,r,n,s)}};default:return function(){if(arguments.length>=t)return e.apply(this,arguments);const r=arguments;return function(t){return e(t,...r)}}}},e=t=>t,r=t=>()=>t,n=r(!0),s=r(!1),i=r(void 0),a=i;function o(t,e,r,n,s,i,a,o,c){switch(arguments.length){case 1:return t;case 2:return e(t);case 3:return r(e(t));case 4:return n(r(e(t)));case 5:return s(n(r(e(t))));case 6:return i(s(n(r(e(t)))));case 7:return a(i(s(n(r(e(t))))));case 8:return o(a(i(s(n(r(e(t)))))));case 9:return c(o(a(i(s(n(r(e(t))))))));default:{let t=arguments[0];for(let e=1;e<arguments.length;e++)t=arguments[e](t);return t}}}const c=t=>(e,r)=>e===r||t(e,r),u=t(2,((t,e)=>c(((r,n)=>t(e(r),e(n)))))),f="effect/GlobalValue";let h;const l=(t,e)=>(h||(globalThis[f]??=new Map,h=globalThis[f]),h.has(t)||h.set(t,e()),h.get(t)),b=t=>"string"==typeof t,d=t=>"number"==typeof t,p=t=>"bigint"==typeof t,g=t=>"function"==typeof t,y=t=>(t=>"object"==typeof t&&null!==t)(t)||g(t),S=t(2,((t,e)=>y(t)&&e in t)),_=t(2,((t,e)=>S(t,"_tag")&&t._tag===e)),m=t=>null==t,w=t=>"string"==typeof t||S(t,Symbol.iterator),I=t=>S(t,"then")&&g(t.then),v=t=>`BUG: ${t} - please report an issue at https://github.com/Effect-TS/effect/issues`;class O{self;called=!1;constructor(t){this.self=t}next(t){return this.called?{value:t,done:!0}:(this.called=!0,{value:this.self,done:!1})}return(t){return{value:t,done:!0}}throw(t){throw t}[Symbol.iterator](){return new O(this.self)}}class C{_state;constructor(t,e,r,n){return m(e)&&m(t)?(e=4294967295*Math.random()>>>0,t=0):m(e)&&(e=t,t=0),m(n)&&m(r)?(n=this._state?this._state[3]:4150755663,r=this._state?this._state[2]:335903614):m(n)&&(n=r,r=0),this._state=new Int32Array([0,0,r>>>0,(1|(n||0))>>>0]),this._next(),E(this._state,this._state[0],this._state[1],t>>>0,e>>>0),this._next(),this}getState(){return[this._state[0],this._state[1],this._state[2],this._state[3]]}setState(t){this._state[0]=t[0],this._state[1]=t[1],this._state[2]=t[2],this._state[3]=1|t[3]}integer(t){return Math.round(this.number()*Number.MAX_SAFE_INTEGER)%t}number(){return(1*(67108863&this._next())*134217728+1*(134217727&this._next()))/9007199254740992}_next(){const t=this._state[0]>>>0,e=this._state[1]>>>0;!function(t,e,r,n,s){let i=32557*(r>>>16)>>>0,a=19605*(65535&r)>>>0,o=32557*(65535&r)>>>0,c=19605*(r>>>16)+((a>>>16)+(i>>>16))>>>0;a=a<<16>>>0,o=o+a>>>0,o>>>0<a>>>0&&(c=c+1>>>0),i=i<<16>>>0,o=o+i>>>0,o>>>0<i>>>0&&(c=c+1>>>0),c=c+Math.imul(r,1481765933)>>>0,c=c+Math.imul(e,s)>>>0,t[0]=c,t[1]=o}(this._state,t,e,0,1284865837),E(this._state,this._state[0],this._state[1],this._state[2],this._state[3]);let r=t>>>18,n=(e>>>18|t<<14)>>>0;r=(r^t)>>>0,n=(n^e)>>>0;const s=(n>>>27|r<<5)>>>0,i=t>>>27;return(s>>>i|s<<((-i>>>0&31)>>>0))>>>0}}function E(t,e,r,n,s){let i=e+n>>>0;const a=r+s>>>0;a>>>0<r>>>0&&(i=i+1|0),t[0]=i,t[1]=a}const M=Symbol.for("effect/Utils/YieldWrap");class j{#t;constructor(t){this.#t=t}[M](){return this.#t}}function N(t){if("object"==typeof t&&null!==t&&M in t)return t[M]();throw new Error(v("yieldWrapGet"))}const $=l("effect/Utils/isStructuralRegion",(()=>({enabled:!1,tester:void 0}))),k={effect_internal_function:t=>t()},A=!0===k.effect_internal_function((()=>(new Error).stack))?.includes("effect_internal_function")?k.effect_internal_function:t=>{try{return t()}finally{}},x=l(Symbol.for("effect/Hash/randomHashCache"),(()=>new WeakMap)),F=Symbol.for("effect/Hash"),R=t=>{if(!0===$.enabled)return 0;switch(typeof t){case"number":return q(t);case"bigint":return P(t.toString(10));case"boolean":case"symbol":return P(String(t));case"string":return P(t);case"undefined":return P("undefined");case"function":case"object":return null===t?P("null"):t instanceof Date?Number.isNaN(t.getTime())?P("Invalid Date"):R(t.toISOString()):t instanceof URL?R(t.href):D(t)?t[F]():T(t);default:throw new Error(`BUG: unhandled typeof ${typeof t} - please report an issue at https://github.com/Effect-TS/effect/issues`)}},T=t=>(x.has(t)||x.set(t,q(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))),x.get(t)),L=t=>e=>53*e^t,J=t=>3221225471&t|t>>>1&1073741824,D=t=>S(t,F),q=t=>{if(t!=t||t===1/0)return 0;let e=0|t;for(e!==t&&(e^=4294967295*t);t>4294967295;)e^=t/=4294967295;return J(e)},P=t=>{let e=5381,r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return J(e)},U=t=>((t,e)=>{let r=12289;for(let n=0;n<e.length;n++)r^=o(P(e[n]),L(R(t[e[n]])));return J(r)})(t,Object.keys(t)),W=t=>{let e=6151;for(let r=0;r<t.length;r++)e=o(e,L(R(t[r])));return J(e)},H=function(){if(1===arguments.length){const t=arguments[0];return function(e){return Object.defineProperty(t,F,{value:()=>e,enumerable:!1}),e}}const t=arguments[1];return Object.defineProperty(arguments[0],F,{value:()=>t,enumerable:!1}),t},Y=Symbol.for("effect/Equal");function G(){return 1===arguments.length?t=>B(t,arguments[0]):B(arguments[0],arguments[1])}function B(t,e){if(t===e)return!0;const r=typeof t;if(r!==typeof e)return!1;if("object"===r||"function"===r){if(null!==t&&null!==e){if(V(t)&&V(e))return!(R(t)!==R(e)||!t[Y](e))||!(!$.enabled||!$.tester)&&$.tester(t,e);if(t instanceof Date&&e instanceof Date){const r=t.getTime(),n=e.getTime();return r===n||Number.isNaN(r)&&Number.isNaN(n)}if(t instanceof URL&&e instanceof URL)return t.href===e.href}if($.enabled){if(null===t||null===e)return!1;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every(((t,r)=>B(t,e[r])));if(Object.getPrototypeOf(t)===Object.prototype&&Object.getPrototypeOf(e)===Object.prototype){const r=Object.keys(t),n=Object.keys(e);if(r.length===n.length){for(const n of r)if(!(n in e)||!B(t[n],e[n]))return!!$.tester&&$.tester(t,e);return!0}}return!!$.tester&&$.tester(t,e)}}return!(!$.enabled||!$.tester)&&$.tester(t,e)}const V=t=>S(t,Y),z=()=>G,K=Symbol.for("nodejs.util.inspect.custom"),Q=t=>{try{if(S(t,"toJSON")&&g(t.toJSON)&&0===t.toJSON.length)return t.toJSON();if(Array.isArray(t))return t.map(Q)}catch{return{}}return it(t)},X=t=>JSON.stringify(t,null,2),Z=(t,e=2)=>{if("string"==typeof t)return t;try{return"object"==typeof t?tt(t,e):String(t)}catch{return String(t)}},tt=(t,e)=>{let r=[];const n=JSON.stringify(t,((t,e)=>"object"==typeof e&&null!==e?r.includes(e)?void 0:r.push(e)&&(void 0!==nt.fiberRefs&&rt(e)?e[et](nt.fiberRefs):e):e),e);return r=void 0,n},et=Symbol.for("effect/Inspectable/Redactable"),rt=t=>"object"==typeof t&&null!==t&&et in t,nt=l("effect/Inspectable/redactableState",(()=>({fiberRefs:void 0}))),st=(t,e)=>{const r=nt.fiberRefs;nt.fiberRefs=t;try{return e()}finally{nt.fiberRefs=r}},it=t=>rt(t)&&void 0!==nt.fiberRefs?t[et](nt.fiberRefs):t,at=(t,e)=>{switch(e.length){case 0:return t;case 1:return e[0](t);case 2:return e[1](e[0](t));case 3:return e[2](e[1](e[0](t)));case 4:return e[3](e[2](e[1](e[0](t))));case 5:return e[4](e[3](e[2](e[1](e[0](t)))));case 6:return e[5](e[4](e[3](e[2](e[1](e[0](t))))));case 7:return e[6](e[5](e[4](e[3](e[2](e[1](e[0](t)))))));case 8:return e[7](e[6](e[5](e[4](e[3](e[2](e[1](e[0](t))))))));case 9:return e[8](e[7](e[6](e[5](e[4](e[3](e[2](e[1](e[0](t)))))))));default:{let r=t;for(let t=0,n=e.length;t<n;t++)r=e[t](r);return r}}},ot="Async",ct="Commit",ut="Failure",ft="OnFailure",ht="OnSuccess",lt="OnSuccessAndFailure",bt="Success",dt="Sync",pt="Tag",gt="UpdateRuntimeFlags",yt="While",St="Iterator",_t="WithRuntime",mt="Yield",wt="RevertFlags",It=()=>"3.21.1",vt=Symbol.for("effect/Effect"),Ot=Symbol.for("effect/Stream"),Ct=Symbol.for("effect/Sink"),Et=Symbol.for("effect/Channel"),Mt={_R:t=>t,_E:t=>t,_A:t=>t,_V:It()},jt={[vt]:Mt,[Ot]:Mt,[Ct]:{_A:t=>t,_In:t=>t,_L:t=>t,_E:t=>t,_R:t=>t},[Et]:{_Env:t=>t,_InErr:t=>t,_InElem:t=>t,_InDone:t=>t,_OutErr:t=>t,_OutElem:t=>t,_OutDone:t=>t},[Y](t){return this===t},[F](){return H(this,T(this))},[Symbol.iterator](){return new O(new j(this))},pipe(){return at(this,arguments)}},Nt={[F](){return H(this,U(this))},[Y](t){const e=Object.keys(this),r=Object.keys(t);if(e.length!==r.length)return!1;for(const r of e)if(!(r in t)||!G(this[r],t[r]))return!1;return!0}},$t={...jt,_op:ct},kt={...$t,...Nt},At=function(){function t(){}return t.prototype=$t,t}(),xt=Symbol.for("effect/Option"),Ft={...jt,[xt]:{_A:t=>t},[K](){return this.toJSON()},toString(){return X(this.toJSON())}},Rt=Object.assign(Object.create(Ft),{_tag:"Some",_op:"Some",[Y](t){return Jt(t)&&qt(t)&&G(this.value,t.value)},[F](){return H(this,L(R(this._tag))(R(this.value)))},toJSON(){return{_id:"Option",_tag:this._tag,value:Q(this.value)}}}),Tt=R("None"),Lt=Object.assign(Object.create(Ft),{_tag:"None",_op:"None",[Y]:t=>Jt(t)&&Dt(t),[F]:()=>Tt,toJSON(){return{_id:"Option",_tag:this._tag}}}),Jt=t=>S(t,xt),Dt=t=>"None"===t._tag,qt=t=>"Some"===t._tag,Pt=Object.create(Lt),Ut=t=>{const e=Object.create(Rt);return e.value=t,e},Wt=Symbol.for("effect/Either"),Ht={...jt,[Wt]:{_R:t=>t},[K](){return this.toJSON()},toString(){return X(this.toJSON())}},Yt=Object.assign(Object.create(Ht),{_tag:"Right",_op:"Right",[Y](t){return Bt(t)&&zt(t)&&G(this.right,t.right)},[F](){return L(R(this._tag))(R(this.right))},toJSON(){return{_id:"Either",_tag:this._tag,right:Q(this.right)}}}),Gt=Object.assign(Object.create(Ht),{_tag:"Left",_op:"Left",[Y](t){return Bt(t)&&Vt(t)&&G(this.left,t.left)},[F](){return L(R(this._tag))(R(this.left))},toJSON(){return{_id:"Either",_tag:this._tag,left:Q(this.left)}}}),Bt=t=>S(t,Wt),Vt=t=>"Left"===t._tag,zt=t=>"Right"===t._tag,Kt=t=>{const e=Object.create(Yt);return e.right=t,e},Qt=t=>{const e=Object.create(Gt);return e.left=t,e},Xt=Vt,Zt=zt,te=t(2,((t,{onLeft:e,onRight:r})=>Xt(t)?e(t.left):r(t.right))),ee=te({onLeft:e,onRight:e}),re=t(2,((t,e)=>{if(Zt(t))return t.right;throw e(t.left)})),ne=t=>t.length>0,se=()=>Pt,ie=Ut,ae=Dt,oe=qt,ce=t(2,((t,{onNone:e,onSome:r})=>ae(t)?e():r(t.value))),ue=t=>Vt(t)?Pt:Ut(t.right),fe=t(2,((t,e)=>ae(t)?e():t.value)),he=t(2,((t,e)=>ae(t)?ie(e()):t)),le=t=>null==t?se():ie(t),be=fe(i),de=t(2,((t,e)=>ae(t)?se():ie(e(t.value)))),pe=t(2,((t,e)=>ae(t)?se():e(t.value))),ge=(e=>t(2,((t,r)=>!ae(t)&&e(t.value,r))))(z()),ye=t=>(e,r)=>ae(e)?r:ae(r)?e:ie(t(e.value,r.value)),Se=(...t)=>t,_e=t=>new Array(t),me=t(2,((t,e)=>{const r=Math.max(1,Math.floor(t)),n=new Array(r);for(let t=0;t<r;t++)n[t]=e(t);return n})),we=t=>Array.isArray(t)?t:Array.from(t),Ie=t(2,((t,e)=>[e,...t])),ve=t(2,((t,e)=>[...t,e])),Oe=t(2,((t,e)=>we(t).concat(we(e)))),Ce=ne,Ee=ne,Me=(t,e)=>t<0||t>=e.length,je=t(2,((t,e)=>{const r=Math.floor(e);return Me(r,t)?se():ie(t[r])})),Ne=t(2,((t,e)=>{const r=Math.floor(e);if(Me(r,t))throw new Error(`Index ${r} out of bounds`);return t[r]})),$e=je(0),ke=Ne(0),Ae=t=>Ee(t)?ie(xe(t)):se(),xe=t=>t[t.length-1],Fe=t=>t.slice(1),Re=t(2,((t,e)=>Ue(t,((t,e)=>{let r=0;for(const n of t){if(!e(n,r))break;r++}return r})(t,e)))),Te=t(2,((t,e)=>{const r=we(t);return r.slice((n=r,Math.floor(Math.min(Math.max(0,e),n.length))),r.length);var n})),Le=t=>Array.from(t).reverse(),Je=t(2,((t,e)=>{const r=Array.from(t);return r.sort(e),r})),De=t(2,((t,e)=>qe(t,e,Se))),qe=t(3,((t,e,r)=>{const n=we(t),s=we(e);if(Ee(n)&&Ee(s)){const t=[r(ke(n),ke(s))],e=Math.min(n.length,s.length);for(let i=1;i<e;i++)t[i]=r(n[i],s[i]);return t}return[]})),Pe=z(),Ue=t(2,((t,e)=>{const r=Array.from(t),n=Math.floor(e);return Ee(r)?n>=1?We(r,n):[[],r]:[r,[]]})),We=t(2,((t,e)=>{const r=Math.max(1,Math.floor(e));return r>=t.length?[He(t),[]]:[Ie(t.slice(1,r),ke(t)),t.slice(r)]})),He=t=>t.slice(),Ye=t(3,((t,e,r)=>{const n=we(t),s=we(e);return Ee(n)?Ee(s)?rr(r)(Oe(n,s)):n:s})),Ge=t(2,((t,e)=>Ye(t,e,Pe))),Be=()=>[],Ve=t=>[t],ze=t(2,((t,e)=>t.map(e))),Ke=t(2,((t,e)=>{if((t=>0===t.length)(t))return[];const r=[];for(let n=0;n<t.length;n++){const s=e(t[n],n);for(let t=0;t<s.length;t++)r.push(s[t])}return r}))(e),Qe=t(2,((t,e)=>{const r=we(t),n=[];for(let t=0;t<r.length;t++){const s=e(r[t],t);oe(s)&&n.push(s.value)}return n})),Xe=t(2,((t,e)=>{const r=we(t),n=[];for(let t=0;t<r.length;t++)e(r[t],t)&&n.push(r[t]);return n})),Ze=t(3,((t,e,r)=>we(t).reduce(((t,e,n)=>r(t,e,n)),e))),tr=(t,e)=>{const r=[];let n,s=t;for(;oe(n=e(s));){const[t,e]=n.value;r.push(t),s=e}return r},er=t=>c(((e,r)=>{if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(!t(e[n],r[n]))return!1;return!0})),rr=t(2,((t,e)=>{const r=we(t);if(Ee(r)){const t=[ke(r)],n=Fe(r);for(const r of n)t.every((t=>!e(r,t)))&&t.push(r);return t}return[]})),nr=t=>rr(t,z()),sr=t(2,((t,e)=>we(t).join(e))),ir=Symbol.for("effect/Context/Tag"),ar=Symbol.for("effect/Context/Reference"),or=Symbol.for("effect/STM"),cr={...jt,_op:"Tag",[or]:Mt,[ir]:{_Service:t=>t,_Identifier:t=>t},toString(){return X(this.toJSON())},toJSON(){return{_id:"Tag",key:this.key,stack:this.stack}},[K](){return this.toJSON()},of:t=>t,context(t){return pr(this,t)}},ur={...cr,[ar]:ar},fr=Symbol.for("effect/Context"),hr={[fr]:{_Services:t=>t},[Y](t){if(br(t)&&this.unsafeMap.size===t.unsafeMap.size){for(const e of this.unsafeMap.keys())if(!t.unsafeMap.has(e)||!G(this.unsafeMap.get(e),t.unsafeMap.get(e)))return!1;return!0}return!1},[F](){return H(this,q(this.unsafeMap.size))},pipe(){return at(this,arguments)},toString(){return X(this.toJSON())},toJSON(){return{_id:"Context",services:Array.from(this.unsafeMap).map(Q)}},[K](){return this.toJSON()}},lr=t=>{const e=Object.create(hr);return e.unsafeMap=t,e},br=t=>S(t,fr),dr=lr(new Map),pr=(t,e)=>lr(new Map([[t.key,e]])),gr=t(3,((t,e,r)=>{const n=new Map(t.unsafeMap);return n.set(e.key,r),lr(n)})),yr=l("effect/Context/defaultValueCache",(()=>new Map)),Sr=t=>{if(yr.has(t.key))return yr.get(t.key);const e=t.defaultValue();return yr.set(t.key,e),e},_r=t(2,((t,e)=>{if(!t.unsafeMap.has(e.key)){if(ar in e)return Sr(e);throw(t=>{const e=new Error("Service not found"+(t.key?`: ${String(t.key)}`:""));if(t.stack){const r=t.stack.split("\n");if(r.length>2){const t=r[2].match(/at (.*)/);t&&(e.message=e.message+` (defined at ${t[1]})`)}}if(e.stack){const t=e.stack.split("\n");t.splice(1,3),e.stack=t.join("\n")}return e})(e)}return t.unsafeMap.get(e.key)})),mr=_r,wr=t(2,((t,e)=>t.unsafeMap.has(e.key)?Ut(t.unsafeMap.get(e.key)):S(e,ar)?Ut(Sr(e)):Pt)),Ir=t(2,((t,e)=>{const r=new Map(t.unsafeMap);for(const[t,n]of e.unsafeMap)r.set(t,n);return lr(r)})),vr=t=>{const e=Error.stackTraceLimit;Error.stackTraceLimit=2;const r=new Error;Error.stackTraceLimit=e;const n=Object.create(cr);return Object.defineProperty(n,"stack",{get:()=>r.stack}),n.key=t,n},Or=br,Cr=()=>dr,Er=pr,Mr=gr,jr=mr,Nr=_r,$r=wr,kr=Ir,Ar=(...t)=>{const e=new Map;for(let r=0;r<t.length;r++)t[r].unsafeMap.forEach(((t,r)=>{e.set(r,t)}));return lr(e)},xr=()=>(t,e)=>{const r=Error.stackTraceLimit;Error.stackTraceLimit=2;const n=new Error;function s(){}return Error.stackTraceLimit=r,Object.setPrototypeOf(s,ur),s.key=t,s.defaultValue=e.defaultValue,Object.defineProperty(s,"stack",{get:()=>n.stack}),s},Fr=Symbol.for("effect/Chunk"),Rr=[],Tr=(t=>c(((e,r)=>e.length===r.length&&Gr(e).every(((e,n)=>t(e,Qr(r,n)))))))(G),Lr={[Fr]:{_A:t=>t},toString(){return X(this.toJSON())},toJSON(){return{_id:"Chunk",values:Gr(this).map(Q)}},[K](){return this.toJSON()},[Y](t){return Dr(t)&&Tr(this,t)},[F](){return H(this,W(Gr(this)))},[Symbol.iterator](){switch(this.backing._tag){case"IArray":return this.backing.array[Symbol.iterator]();case"IEmpty":return Rr[Symbol.iterator]();default:return Gr(this)[Symbol.iterator]()}},pipe(){return at(this,arguments)}},Jr=t=>{const e=Object.create(Lr);switch(e.backing=t,t._tag){case"IEmpty":e.length=0,e.depth=0,e.left=e,e.right=e;break;case"IConcat":e.length=t.left.length+t.right.length,e.depth=1+Math.max(t.left.depth,t.right.depth),e.left=t.left,e.right=t.right;break;case"IArray":e.length=t.array.length,e.depth=0,e.left=qr,e.right=qr;break;case"ISingleton":e.length=1,e.depth=0,e.left=qr,e.right=qr;break;case"ISlice":e.length=t.length,e.depth=t.chunk.depth+1,e.left=qr,e.right=qr}return e},Dr=t=>S(t,Fr),qr=Jr({_tag:"IEmpty"}),Pr=()=>qr,Ur=(...t)=>Kr(t),Wr=t=>Jr({_tag:"ISingleton",a:t}),Hr=t=>Dr(t)?t:zr(we(t)),Yr=(t,e,r)=>{switch(t.backing._tag){case"IArray":!function(t,e,r,n,s){for(let e=0;e<Math.min(t.length,0+s);e++)r[n+e-0]=t[e]}(t.backing.array,0,e,r,t.length);break;case"IConcat":Yr(t.left,e,r),Yr(t.right,e,r+t.left.length);break;case"ISingleton":e[r]=t.backing.a;break;case"ISlice":{let n=0,s=r;for(;n<t.length;)e[s]=Qr(t,n),n+=1,s+=1;break}}},Gr=t=>{switch(t.backing._tag){case"IEmpty":return Rr;case"IArray":return t.backing.array;default:{const e=new Array(t.length);return Yr(t,e,0),t.backing={_tag:"IArray",array:e},t.left=qr,t.right=qr,t.depth=0,e}}},Br=t=>{switch(t.backing._tag){case"IEmpty":case"ISingleton":return t;case"IArray":return Jr({_tag:"IArray",array:Le(t.backing.array)});case"IConcat":return Jr({_tag:"IConcat",left:Br(t.backing.right),right:Br(t.backing.left)});case"ISlice":return zr(Le(Gr(t)))}},Vr=t(2,((t,e)=>e<0||e>=t.length?se():ie(Qr(t,e)))),zr=t=>0===t.length?Pr():1===t.length?Wr(t[0]):Jr({_tag:"IArray",array:t}),Kr=t=>zr(t),Qr=t(2,((t,e)=>{switch(t.backing._tag){case"IEmpty":throw new Error("Index out of bounds");case"ISingleton":if(0!==e)throw new Error("Index out of bounds");return t.backing.a;case"IArray":if(e>=t.length||e<0)throw new Error("Index out of bounds");return t.backing.array[e];case"IConcat":return e<t.left.length?Qr(t.left,e):Qr(t.right,e-t.left.length);case"ISlice":return Qr(t.backing.chunk,e+t.backing.offset)}})),Xr=t(2,((t,e)=>rn(t,Wr(e)))),Zr=t(2,((t,e)=>rn(Wr(e),t))),tn=t(2,((t,e)=>{if(e<=0)return qr;if(e>=t.length)return t;switch(t.backing._tag){case"ISlice":return Jr({_tag:"ISlice",chunk:t.backing.chunk,length:e,offset:t.backing.offset});case"IConcat":return e>t.left.length?Jr({_tag:"IConcat",left:t.left,right:tn(t.right,e-t.left.length)}):tn(t.left,e);default:return Jr({_tag:"ISlice",chunk:t,offset:0,length:e})}})),en=t(2,((t,e)=>{if(e<=0)return t;if(e>=t.length)return qr;switch(t.backing._tag){case"ISlice":return Jr({_tag:"ISlice",chunk:t.backing.chunk,offset:t.backing.offset+e,length:t.backing.length-e});case"IConcat":return e>t.left.length?en(t.right,e-t.left.length):Jr({_tag:"IConcat",left:en(t.left,e),right:t.right});default:return Jr({_tag:"ISlice",chunk:t,offset:e,length:t.length-e})}})),rn=t(2,((t,e)=>{if("IEmpty"===t.backing._tag)return e;if("IEmpty"===e.backing._tag)return t;const r=e.depth-t.depth;if(Math.abs(r)<=1)return Jr({_tag:"IConcat",left:t,right:e});if(r<-1){if(t.left.depth>=t.right.depth){const r=rn(t.right,e);return Jr({_tag:"IConcat",left:t.left,right:r})}{const r=rn(t.right.right,e);if(r.depth===t.depth-3){const e=Jr({_tag:"IConcat",left:t.right.left,right:r});return Jr({_tag:"IConcat",left:t.left,right:e})}{const e=Jr({_tag:"IConcat",left:t.left,right:t.right.left});return Jr({_tag:"IConcat",left:e,right:r})}}}if(e.right.depth>=e.left.depth){const r=rn(t,e.left);return Jr({_tag:"IConcat",left:r,right:e.right})}{const r=rn(t,e.left.left);if(r.depth===e.depth-3){const t=Jr({_tag:"IConcat",left:r,right:e.left.right});return Jr({_tag:"IConcat",left:t,right:e.right})}{const t=Jr({_tag:"IConcat",left:e.left.right,right:e.right});return Jr({_tag:"IConcat",left:r,right:t})}}})),nn=t(2,((t,e)=>zr(Qe(t,e)))),sn=t(2,((t,e)=>zr(Xe(t,e)))),an=t=>0===t.length,on=t=>t.length>0,cn=Vr(0),un=t=>Qr(t,0),fn=un,hn=t(2,((t,e)=>"ISingleton"===t.backing._tag?Wr(e(t.backing.a,0)):zr(o(Gr(t),ze(((t,r)=>e(t,r))))))),ln=t(2,((t,e)=>[tn(t,e),en(t,e)])),bn=t(2,((t,e)=>{let r=0;for(const n of Gr(t)){if(e(n))break;r++}return ln(t,r)})),dn=t=>en(t,1),pn=Ze,gn=Math.pow(2,5),yn=gn-1,Sn=gn/2,_n=gn/4;function mn(t,e){return e>>>t&yn}function wn(t){return 1<<t}function In(t,e){return r=t&e-1,r=(r=(858993459&(r-=r>>1&1431655765))+(r>>2&858993459))+(r>>4)&252645135,127&(r+=r>>8)+(r>>16);var r}function vn(t,e,r,n){let s=n;if(!t){const t=n.length;s=new Array(t);for(let e=0;e<t;++e)s[e]=n[e]}return s[e]=r,s}function On(t,e,r){const n=r.length-1;let s=0,i=0,a=r;if(t)s=i=e;else for(a=new Array(n);s<e;)a[i++]=r[s++];for(++s;s<=n;)a[i++]=r[s++];return t&&(a.length=n),a}class Cn{_tag="EmptyNode";modify(t,e,r,n,s,i){const a=r(se());return ae(a)?new Cn:(++i.value,new jn(t,n,s,a))}}function En(t){return _(t,"EmptyNode")}function Mn(t,e){return!En(t)&&e===t.edit}class jn{edit;hash;key;value;_tag="LeafNode";constructor(t,e,r,n){this.edit=t,this.hash=e,this.key=r,this.value=n}modify(t,e,r,n,s,i){if(G(s,this.key)){const e=r(this.value);return e===this.value?this:ae(e)?(--i.value,new Cn):Mn(this,t)?(this.value=e,this):new jn(t,n,s,e)}const a=r(se());return ae(a)?this:(++i.value,xn(t,e,this.hash,this,n,new jn(t,n,s,a)))}}class Nn{edit;hash;children;_tag="CollisionNode";constructor(t,e,r){this.edit=t,this.hash=e,this.children=r}modify(t,e,r,n,s,i){if(n===this.hash){const e=Mn(this,t),n=this.updateCollisionList(e,t,this.hash,this.children,r,s,i);return n===this.children?this:n.length>1?new Nn(t,this.hash,n):n[0]}const a=r(se());return ae(a)?this:(++i.value,xn(t,e,this.hash,this,n,new jn(t,n,s,a)))}updateCollisionList(t,e,r,n,s,i,a){const o=n.length;for(let c=0;c<o;++c){const o=n[c];if("key"in o&&G(i,o.key)){const u=o.value,f=s(u);return f===u?n:ae(f)?(--a.value,On(t,c,n)):vn(t,c,new jn(e,r,i,f),n)}}const c=s(se());return ae(c)?n:(++a.value,vn(t,o,new jn(e,r,i,c),n))}}class $n{edit;mask;children;_tag="IndexedNode";constructor(t,e,r){this.edit=t,this.mask=e,this.children=r}modify(t,e,r,n,s,i){const a=this.mask,o=this.children,c=mn(e,n),u=wn(c),f=In(a,u),h=a&u,l=Mn(this,t);if(!h){const h=(new Cn).modify(t,e+5,r,n,s,i);return h?o.length>=Sn?function(t,e,r,n,s){const i=[];let a=n,o=0;for(let t=0;a;++t)1&a&&(i[t]=s[o++]),a>>>=1;return i[e]=r,new kn(t,o+1,i)}(t,c,h,a,o):new $n(t,a|u,function(t,e,r,n){const s=n.length;if(t){let t=s;for(;t>=e;)n[t--]=n[t];return n[e]=r,n}let i=0,a=0;const o=new Array(s+1);for(;i<e;)o[a++]=n[i++];for(o[e]=r;i<s;)o[++a]=n[i++];return o}(l,f,h,o)):this}const b=o[f],d=b.modify(t,e+5,r,n,s,i);if(b===d)return this;let p,g=a;if(En(d)){if(g&=~u,!g)return new Cn;if(o.length<=2&&(En(y=o[1^f])||"LeafNode"===y._tag||"CollisionNode"===y._tag))return o[1^f];p=On(l,f,o)}else p=vn(l,f,d,o);var y;return l?(this.mask=g,this.children=p,this):new $n(t,g,p)}}class kn{edit;size;children;_tag="ArrayNode";constructor(t,e,r){this.edit=t,this.size=e,this.children=r}modify(t,e,r,n,s,i){let a=this.size;const o=this.children,c=mn(e,n),u=o[c],f=(u||new Cn).modify(t,e+5,r,n,s,i);if(u===f)return this;const h=Mn(this,t);let l;if(En(u)&&!En(f))++a,l=vn(h,c,f,o);else if(!En(u)&&En(f)){if(--a,a<=_n)return function(t,e,r,n){const s=new Array(e-1);let i=0,a=0;for(let t=0,e=n.length;t<e;++t)if(t!==r){const e=n[t];e&&!En(e)&&(s[i++]=e,a|=1<<t)}return new $n(t,a,s)}(t,a,c,o);l=vn(h,c,new Cn,o)}else l=vn(h,c,f,o);return h?(this.size=a,this.children=l,this):new kn(t,a,l)}}function An(t,e,r,n,s,i){if(r===s)return new Nn(t,r,[i,n]);const a=mn(e,r),o=mn(e,s);if(a===o)return e=>new $n(t,wn(a)|wn(o),[e]);{const e=a<o?[n,i]:[i,n];return new $n(t,wn(a)|wn(o),e)}}function xn(t,e,r,n,s,i){let a,o=e;for(;;){const e=An(t,o,r,n,s,i);if("function"!=typeof e){let t=e;for(;null!=a;)t=a.value(t),a=a.previous;return t}a={value:e,previous:a},o+=5}}const Fn="effect/HashMap",Rn=Symbol.for(Fn),Tn={[Rn]:Rn,[Symbol.iterator](){return new Jn(this,((t,e)=>[t,e]))},[F](){let t=R(Fn);for(const e of this)t^=o(R(e[0]),L(R(e[1])));return H(this,t)},[Y](t){if(Yn(t)){if(t._size!==this._size)return!1;for(const e of this){const r=o(t,Vn(e[0],R(e[0])));if(ae(r))return!1;if(!G(e[1],r.value))return!1}return!0}return!1},toString(){return X(this.toJSON())},toJSON(){return{_id:"HashMap",values:Array.from(this).map(Q)}},[K](){return this.toJSON()},pipe(){return at(this,arguments)}},Ln=(t,e,r,n)=>{const s=Object.create(Tn);return s._editable=t,s._edit=e,s._root=r,s._size=n,s};class Jn{map;f;v;constructor(t,e){this.map=t,this.f=e,this.v=qn(this.map._root,this.f,void 0)}next(){if(ae(this.v))return{done:!0,value:void 0};const t=this.v.value;return this.v=Dn(t.cont),{done:!1,value:t.value}}[Symbol.iterator](){return new Jn(this.map,this.f)}}const Dn=t=>t?Pn(t[0],t[1],t[2],t[3],t[4]):se(),qn=(t,e,r)=>{switch(t._tag){case"LeafNode":return oe(t.value)?ie({value:e(t.key,t.value.value),cont:r}):Dn(r);case"CollisionNode":case"ArrayNode":case"IndexedNode":{const n=t.children;return Pn(n.length,n,0,e,r)}default:return Dn(r)}},Pn=(t,e,r,n,s)=>{for(;r<t;){const i=e[r++];if(i&&!En(i))return qn(i,n,[t,e,r,n,s])}return Dn(s)},Un=Ln(!1,0,new Cn,0),Wn=()=>Un,Hn=t=>{const e=ts(Wn());for(const r of t)Kn(e,r[0],r[1]);return es(e)},Yn=t=>S(t,Rn),Gn=t=>t&&En(t._root),Bn=t(2,((t,e)=>Vn(t,e,R(e)))),Vn=t(3,((t,e,r)=>{let n=t._root,s=0;for(;;)switch(n._tag){case"LeafNode":return G(e,n.key)?n.value:se();case"CollisionNode":if(r===n.hash){const t=n.children;for(let r=0,n=t.length;r<n;++r){const n=t[r];if("key"in n&&G(e,n.key))return n.value}}return se();case"IndexedNode":{const t=wn(mn(s,r));if(n.mask&t){n=n.children[In(n.mask,t)],s+=5;break}return se()}case"ArrayNode":if(n=n.children[mn(s,r)],n){s+=5;break}return se();default:return se()}})),zn=t(2,((t,e)=>oe(Vn(t,e,R(e))))),Kn=t(3,((t,e,r)=>rs(t,e,(()=>ie(r))))),Qn=t(3,((t,e,r)=>t._editable?(t._root=e,t._size=r,t):e===t._root?t:Ln(t._editable,t._edit,e,r))),Xn=t=>new Jn(t,(t=>t)),Zn=t=>t._size,ts=t=>Ln(!0,t._edit+1,t._root,t._size),es=t=>(t._editable=!1,t),rs=t(3,((t,e,r)=>ns(t,e,R(e),r))),ns=t(4,((t,e,r,n)=>{const s={value:t._size},i=t._root.modify(t._editable?t._edit:NaN,0,n,r,e,s);return o(t,Qn(i,s.value))})),ss=t(2,((t,e)=>rs(t,e,se))),is=t(2,((t,e)=>os(t,Wn(),((t,r,n)=>Kn(t,n,e(r,n)))))),as=t(2,((t,e)=>os(t,void 0,((t,r,n)=>e(r,n))))),os=t(3,((t,e,r)=>{const n=t._root;if("LeafNode"===n._tag)return oe(n.value)?r(e,n.value.value,n.key):e;if("EmptyNode"===n._tag)return e;const s=[n.children];let i;for(;i=s.pop();)for(let t=0,n=i.length;t<n;){const n=i[t++];n&&!En(n)&&("LeafNode"===n._tag?oe(n.value)&&(e=r(e,n.value.value,n.key)):s.push(n.children))}return e})),cs="effect/HashSet",us=Symbol.for(cs),fs={[us]:us,[Symbol.iterator](){return Xn(this._keyMap)},[F](){return H(this,L(R(this._keyMap))(R(cs)))},[Y](t){return!!ls(t)&&Zn(this._keyMap)===Zn(t._keyMap)&&G(this._keyMap,t._keyMap)},toString(){return X(this.toJSON())},toJSON(){return{_id:"HashSet",values:Array.from(this).map(Q)}},[K](){return this.toJSON()},pipe(){return at(this,arguments)}},hs=t=>{const e=Object.create(fs);return e._keyMap=t,e},ls=t=>S(t,us),bs=hs(Wn()),ds=()=>bs,ps=t(2,((t,e)=>zn(t._keyMap,e))),gs=t=>hs(ts(t._keyMap)),ys=t=>(t._keyMap._editable=!1,t),Ss=t(2,((t,e)=>{const r=gs(t);return e(r),ys(r)})),_s=t(2,((t,e)=>t._keyMap._editable?(Kn(e,!0)(t._keyMap),t):hs(Kn(e,!0)(t._keyMap)))),ms=t(2,((t,e)=>t._keyMap._editable?(ss(e)(t._keyMap),t):hs(ss(e)(t._keyMap)))),ws=t(2,((t,e)=>Ss(t,(t=>{for(const r of e)ms(t,r)})))),Is=t(2,((t,e)=>Ss(ds(),(r=>{vs(t,(t=>_s(r,t)));for(const t of e)_s(r,t)})))),vs=t(2,((t,e)=>as(t._keyMap,((t,r)=>e(r))))),Os=ds,Cs=t=>{const e=gs(ds());for(const r of t)_s(e,r);return ys(e)},Es=(...t)=>{const e=gs(ds());for(const r of t)_s(e,r);return ys(e)},Ms=ps,js=t=>Zn(t._keyMap),Ns=_s,$s=ms,ks=ws,As=Is,xs=t(3,((t,e,r)=>os(t._keyMap,e,((t,e,n)=>r(t,n))))),Fs=Symbol.for("effect/MutableRef"),Rs={[Fs]:Fs,toString(){return X(this.toJSON())},toJSON(){return{_id:"MutableRef",current:Q(this.current)}},[K](){return this.toJSON()},pipe(){return at(this,arguments)}},Ts=t=>{const e=Object.create(Rs);return e.current=t,e},Ls=t(3,((t,e,r)=>!!G(e,t.current)&&(t.current=r,!0))),Js=t=>t.current,Ds=t(2,((t,e)=>(t.current=e,t))),qs="effect/FiberId",Ps=Symbol.for(qs),Us="None",Ws="Runtime",Hs="Composite",Ys=P(`${qs}-${Us}`);class Gs{[Ps]=Ps;_tag=Us;id=-1;startTimeMillis=-1;[F](){return Ys}[Y](t){return Ks(t)&&t._tag===Us}toString(){return X(this.toJSON())}toJSON(){return{_id:"FiberId",_tag:this._tag}}[K](){return this.toJSON()}}class Bs{id;startTimeMillis;[Ps]=Ps;_tag=Ws;constructor(t,e){this.id=t,this.startTimeMillis=e}[F](){return H(this,P(`${qs}-${this._tag}-${this.id}-${this.startTimeMillis}`))}[Y](t){return Ks(t)&&t._tag===Ws&&this.id===t.id&&this.startTimeMillis===t.startTimeMillis}toString(){return X(this.toJSON())}toJSON(){return{_id:"FiberId",_tag:this._tag,id:this.id,startTimeMillis:this.startTimeMillis}}[K](){return this.toJSON()}}class Vs{left;right;[Ps]=Ps;_tag=Hs;constructor(t,e){this.left=t,this.right=e}_hash;[F](){return o(P(`${qs}-${this._tag}`),L(R(this.left)),L(R(this.right)),H(this))}[Y](t){return Ks(t)&&t._tag===Hs&&G(this.left,t.left)&&G(this.right,t.right)}toString(){return X(this.toJSON())}toJSON(){return{_id:"FiberId",_tag:this._tag,left:Q(this.left),right:Q(this.right)}}[K](){return this.toJSON()}}const zs=new Gs,Ks=t=>S(t,Ps),Qs=t(2,((t,e)=>t._tag===Us?e:e._tag===Us?t:new Vs(t,e))),Xs=t=>o(t,xs(zs,((t,e)=>Qs(e)(t)))),Zs=t=>{switch(t._tag){case Us:return Os();case Ws:return Es(t.id);case Hs:return o(Zs(t.left),As(Zs(t.right)))}},ti=l(Symbol.for("effect/Fiber/Id/_fiberCounter"),(()=>Ts(0))),ei=t=>Array.from(Zs(t)).map((t=>`#${t}`)).join(","),ri=()=>{const t=Js(ti);return o(ti,Ds(t+1)),new Bs(t,Date.now())},ni="Die",si="Empty",ii="Fail",ai="Interrupt",oi="Parallel",ci="Sequential",ui="effect/Cause",fi=Symbol.for(ui),hi={[fi]:{_E:t=>t},[F](){return o(R(ui),L(R(Fi(this))),H(this))},[Y](t){return Si(t)&&xi(this,t)},pipe(){return at(this,arguments)},toJSON(){switch(this._tag){case"Empty":return{_id:"Cause",_tag:this._tag};case"Die":return{_id:"Cause",_tag:this._tag,defect:Q(this.defect)};case"Interrupt":return{_id:"Cause",_tag:this._tag,fiberId:this.fiberId.toJSON()};case"Fail":return{_id:"Cause",_tag:this._tag,failure:Q(this.error)};case"Sequential":case"Parallel":return{_id:"Cause",_tag:this._tag,left:Q(this.left),right:Q(this.right)}}},toString(){return Hi(this)},[K](){return this.toJSON()}},li=(()=>{const t=Object.create(hi);return t._tag=si,t})(),bi=t=>{const e=Object.create(hi);return e._tag=ii,e.error=t,e},di=t=>{const e=Object.create(hi);return e._tag=ni,e.defect=t,e},pi=t=>{const e=Object.create(hi);return e._tag=ai,e.fiberId=t,e},gi=(t,e)=>{const r=Object.create(hi);return r._tag=oi,r.left=t,r.right=e,r},yi=(t,e)=>{const r=Object.create(hi);return r._tag=ci,r.left=t,r.right=e,r},Si=t=>S(t,fi),_i=t=>t._tag===ni,mi=t=>t._tag===si||Ui(t,!0,((t,e)=>{switch(e._tag){case si:return ie(t);case ni:case ii:case ai:return ie(!1);default:return se()}})),wi=t=>oe(ji(t)),Ii=t=>Wi(void 0,Ji)(t),vi=t=>Br(Ui(t,Pr(),((t,e)=>e._tag===ii?ie(o(t,Zr(e.error))):se()))),Oi=t=>Br(Ui(t,Pr(),((t,e)=>e._tag===ni?ie(o(t,Zr(e.defect))):se()))),Ci=t=>Ui(t,Os(),((t,e)=>e._tag===ai?ie(o(t,Ns(e.fiberId))):se())),Ei=t=>{const e=(t=>Ti(t,(t=>t._tag===ii?ie(t.error):se())))(t);switch(e._tag){case"None":return Kt(t);case"Some":return Qt(e.value)}},Mi=t=>Pi(t,{onEmpty:ie(li),onFail:de(bi),onDie:t=>ie(di(t)),onInterrupt:t=>ie(pi(t)),onSequential:ye(yi),onParallel:ye(gi)}),ji=t=>Ti(t,(t=>t._tag===ai?ie(t.fiberId):se())),Ni=t=>Pi(t,{onEmpty:li,onFail:()=>li,onDie:di,onInterrupt:pi,onSequential:yi,onParallel:gi}),$i=t=>Pi(t,{onEmpty:li,onFail:di,onDie:di,onInterrupt:pi,onSequential:yi,onParallel:gi}),ki=t(2,((t,e)=>Ai(t,(t=>bi(e(t)))))),Ai=t(2,((t,e)=>Pi(t,{onEmpty:li,onFail:t=>e(t),onDie:t=>di(t),onInterrupt:t=>pi(t),onSequential:(t,e)=>yi(t,e),onParallel:(t,e)=>gi(t,e)}))),xi=(t,e)=>{let r=Wr(t),n=Wr(e);for(;on(r)&&on(n);){const[t,e]=o(fn(r),Ui([Os(),Pr()],(([t,e],r)=>{const[n,s]=Li(r);return ie([o(t,As(n)),o(e,rn(s))])}))),[s,i]=o(fn(n),Ui([Os(),Pr()],(([t,e],r)=>{const[n,s]=Li(r);return ie([o(t,As(n)),o(e,rn(s))])})));if(!G(t,s))return!1;r=e,n=i}return!0},Fi=t=>Ri(Wr(t),Pr()),Ri=(t,e)=>{for(;;){const[r,n]=o(t,Ze([Os(),Pr()],(([t,e],r)=>{const[n,s]=Li(r);return[o(t,As(n)),o(e,rn(s))]}))),s=js(r)>0?o(e,Zr(r)):e;if(an(n))return Br(s);t=n,e=s}throw new Error(v("Cause.flattenCauseLoop"))},Ti=t(2,((t,e)=>{const r=[t];for(;r.length>0;){const t=r.pop(),n=e(t);switch(n._tag){case"None":switch(t._tag){case ci:case oi:r.push(t.right),r.push(t.left)}break;case"Some":return n}}return se()})),Li=t=>{let e=t;const r=[];let n=Os(),s=Pr();for(;void 0!==e;)switch(e._tag){case si:if(0===r.length)return[n,s];e=r.pop();break;case ii:if(n=Ns(n,Ur(e._tag,e.error)),0===r.length)return[n,s];e=r.pop();break;case ni:if(n=Ns(n,Ur(e._tag,e.defect)),0===r.length)return[n,s];e=r.pop();break;case ai:if(n=Ns(n,Ur(e._tag,e.fiberId)),0===r.length)return[n,s];e=r.pop();break;case ci:switch(e.left._tag){case si:e=e.right;break;case ci:e=yi(e.left.left,yi(e.left.right,e.right));break;case oi:e=gi(yi(e.left.left,e.right),yi(e.left.right,e.right));break;default:s=Zr(s,e.right),e=e.left}break;case oi:r.push(e.right),e=e.left}throw new Error(v("Cause.evaluateCauseLoop"))},Ji={emptyCase:n,failCase:s,dieCase:s,interruptCase:n,sequentialCase:(t,e,r)=>e&&r,parallelCase:(t,e,r)=>e&&r},Di="SequentialCase",qi="ParallelCase",Pi=t(2,((t,{onDie:e,onEmpty:r,onFail:n,onInterrupt:s,onParallel:i,onSequential:a})=>Wi(t,void 0,{emptyCase:()=>r,failCase:(t,e)=>n(e),dieCase:(t,r)=>e(r),interruptCase:(t,e)=>s(e),sequentialCase:(t,e,r)=>a(e,r),parallelCase:(t,e,r)=>i(e,r)}))),Ui=t(3,((t,e,r)=>{let n=e,s=t;const i=[];for(;void 0!==s;){const t=r(n,s);switch(n=oe(t)?t.value:n,s._tag){case ci:case oi:i.push(s.right),s=s.left;break;default:s=void 0}void 0===s&&i.length>0&&(s=i.pop())}return n})),Wi=t(3,((t,e,r)=>{const n=[t],s=[];for(;n.length>0;){const t=n.pop();switch(t._tag){case si:s.push(Kt(r.emptyCase(e)));break;case ii:s.push(Kt(r.failCase(e,t.error)));break;case ni:s.push(Kt(r.dieCase(e,t.defect)));break;case ai:s.push(Kt(r.interruptCase(e,t.fiberId)));break;case ci:n.push(t.right),n.push(t.left),s.push(Qt({_tag:Di}));break;case oi:n.push(t.right),n.push(t.left),s.push(Qt({_tag:qi}))}}const i=[];for(;s.length>0;){const t=s.pop();switch(t._tag){case"Left":switch(t.left._tag){case Di:{const t=i.pop(),n=i.pop(),s=r.sequentialCase(e,t,n);i.push(s);break}case qi:{const t=i.pop(),n=i.pop(),s=r.parallelCase(e,t,n);i.push(s);break}}break;case"Right":i.push(t.right)}}if(0===i.length)throw new Error("BUG: Cause.reduceWithContext - please report an issue at https://github.com/Effect-TS/effect/issues");return i.pop()})),Hi=(t,e)=>Ii(t)?"All fibers interrupted without errors.":Xi(t).map((function(t){return!0!==e?.renderErrorCause||void 0===t.cause?t.stack:`${t.stack} {\n${Yi(t.cause," ")}\n}`})).join("\n"),Yi=(t,e)=>{const r=t.stack.split("\n");let n=`${e}[cause]: ${r[0]}`;for(let t=1,s=r.length;t<s;t++)n+=`\n${e}${r[t]}`;return t.cause&&(n+=` {\n${Yi(t.cause,`${e} `)}\n${e}}`),n},Gi=t=>{const e="object"==typeof t&&null!==t,r=Error.stackTraceLimit;Error.stackTraceLimit=1;const n=new Error(Bi(t),e&&"cause"in t&&void 0!==t.cause?{cause:Gi(t.cause)}:void 0);return Error.stackTraceLimit=r,""===n.message&&(n.message="An error has occurred"),Error.stackTraceLimit=r,n.name=t instanceof Error?t.name:"Error",e&&(Qi in t&&(n.span=t[Qi]),Object.keys(t).forEach((e=>{e in n||(n[e]=t[e])}))),n.stack=Ki(`${n.name}: ${n.message}`,t instanceof Error&&t.stack?t.stack:"",n.span),n},Bi=t=>{if("string"==typeof t)return t;if("object"==typeof t&&null!==t&&t instanceof Error)return t.message;try{if(S(t,"toString")&&g(t.toString)&&t.toString!==Object.prototype.toString&&t.toString!==globalThis.Array.prototype.toString)return t.toString()}catch{}return tt(t)},Vi=/\((.*)\)/g,zi=l("effect/Tracer/spanToTrace",(()=>new WeakMap)),Ki=(t,e,r)=>{const n=[t],s=e.startsWith(t)?e.slice(t.length).split("\n"):e.split("\n");for(let t=1;t<s.length;t++)if(s[t].includes(" at new BaseEffectError")||s[t].includes(" at new YieldableError"))t++;else{if(s[t].includes("Generator.next"))break;if(s[t].includes("effect_internal_function"))break;n.push(s[t].replace(/at .*effect_instruction_i.*\((.*)\)/,"at $1").replace(/EffectPrimitive\.\w+/,"<anonymous>"))}if(r){let t=r,e=0;for(;t&&"Span"===t._tag&&e<10;){const r=zi.get(t);if("function"==typeof r){const e=r();if("string"==typeof e){const r=e.matchAll(Vi);let s=!1;for(const[,e]of r)s=!0,n.push(` at ${t.name} (${e})`);s||n.push(` at ${t.name} (${e.replace(/^at /,"")})`)}else n.push(` at ${t.name}`)}else n.push(` at ${t.name}`);t=be(t.parent),e++}}return n.join("\n")},Qi=Symbol.for("effect/SpanAnnotation"),Xi=t=>Wi(t,void 0,{emptyCase:()=>[],dieCase:(t,e)=>[Gi(e)],failCase:(t,e)=>[Gi(e)],interruptCase:()=>[],parallelCase:(t,e,r)=>[...e,...r],sequentialCase:(t,e,r)=>[...e,...r]}),Zi=t=>t.replace(/[\s="]/g,"_"),ta=t=>e=>`${Zi(e.label)}=${t-e.startTime}ms`,ea=jt,ra=At;class na extends ra{}const sa=Symbol.for("effect/Micro"),ia=Symbol.for("effect/Micro/MicroExit"),aa=Symbol.for("effect/Micro/MicroCause"),oa={_E:e};class ca extends globalThis.Error{_tag;traces;[aa];constructor(t,e,r){const n=`MicroCause.${t}`;let s,i,a;if(e instanceof globalThis.Error){s=`(${n}) ${e.name}`,i=e.message;const t=i.split("\n").length;a=e.stack?`(${n}) ${e.stack.split("\n").slice(0,t+3).join("\n")}`:`${s}: ${i}`}else s=n,i=Z(e,0),a=`${s}: ${i}`;r.length>0&&(a+=`\n ${r.join("\n ")}`),super(i),this._tag=t,this.traces=r,this[aa]=oa,this.name=s,this.stack=a}pipe(){return at(this,arguments)}toString(){return this.stack}[K](){return this.stack}}class ua extends ca{error;constructor(t,e=[]){super("Fail",t,e),this.error=t}}class fa extends ca{defect;constructor(t,e=[]){super("Die",t,e),this.defect=t}}class ha extends ca{constructor(t=[]){super("Interrupt","interrupted",t)}}const la=(t=[])=>new ha(t),ba=Symbol.for("effect/Micro/MicroFiber"),da={_A:e,_E:e};class pa{context;interruptible;[ba];_stack=[];_observers=[];_exit;_children;currentOpCount=0;constructor(t,e=!0){this.context=t,this.interruptible=e,this[ba]=da}getRef(t){return(e=this.context).unsafeMap.has((r=t).key)?e.unsafeMap.get(r.key):Sr(r);var e,r}addObserver(t){return this._exit?(t(this._exit),a):(this._observers.push(t),()=>{const e=this._observers.indexOf(t);e>=0&&this._observers.splice(e,1)})}_interrupted=!1;unsafeInterrupt(){this._exit||(this._interrupted=!0,this.interruptible&&this.evaluate(Wa))}unsafePoll(){return this._exit}evaluate(t){if(this._exit)return;if(void 0!==this._yielded){const t=this._yielded;this._yielded=void 0,t()}const e=this.runLoop(t);if(e===va)return;const r=ga.interruptChildren&&ga.interruptChildren(this);if(void 0!==r)return this.evaluate(Ja(r,(()=>e)));this._exit=e;for(let t=0;t<this._observers.length;t++)this._observers[t](e);this._observers.length=0}runLoop(t){let e=!1,r=t;this.currentOpCount=0;try{for(;;){if(this.currentOpCount++,!e&&this.getRef(Qa).shouldYield(this)){e=!0;const t=r;r=Ja(Fa,(()=>t))}if(r=r[_a](this),r===va){const t=this._yielded;return ia in t?(this._yielded=void 0,t):va}}}catch(t){return S(r,_a)?Ha(t):Ha(`MicroFiber.runLoop: Not a valid effect: ${String(r)}`)}}getCont(t){for(;;){const e=this._stack.pop();if(!e)return;const r=e[Ia]&&e[Ia](this);if(r)return{[t]:r};if(e[t])return e}}_yielded=void 0;yieldWith(t){return this._yielded=t,va}children(){return this._children??=new Set}}const ga=l("effect/Micro/fiberMiddleware",(()=>({interruptChildren:void 0}))),ya=Symbol.for("effect/Micro/identifier"),Sa=Symbol.for("effect/Micro/args"),_a=Symbol.for("effect/Micro/evaluate"),ma=Symbol.for("effect/Micro/successCont"),wa=Symbol.for("effect/Micro/failureCont"),Ia=Symbol.for("effect/Micro/ensureCont"),va=Symbol.for("effect/Micro/Yield"),Oa={_A:e,_E:e,_R:e},Ca={...ea,_op:"Micro",[sa]:Oa,pipe(){return at(this,arguments)},[Symbol.iterator](){return new O(new j(this))},toJSON(){return{_id:"Micro",op:this[ya],...Sa in this?{args:this[Sa]}:void 0}},toString(){return X(this)},[K](){return X(this)}};function Ea(){return Ha("Micro.evaluate: Not implemented")}const Ma=t=>({...Ca,[ya]:t.op,[_a]:t.eval??Ea,[ma]:t.contA,[wa]:t.contE,[Ia]:t.ensure}),ja=t=>{const e=Ma(t);return function(){const r=Object.create(e);return r[Sa]=!1===t.single?arguments:arguments[0],r}},Na=t=>{const e={...Ma(t),[ia]:ia,_tag:t.op,get[t.prop](){return this[Sa]},toJSON(){return{_id:"MicroExit",_tag:t.op,[t.prop]:this[Sa]}},[Y](e){return qa(e)&&e._tag===t.op&&G(this[Sa],e[Sa])},[F](){return H(this,L(P(t.op))(R(this[Sa])))}};return function(t){const r=Object.create(e);return r[Sa]=t,r[ma]=void 0,r[wa]=void 0,r[Ia]=void 0,r}},$a=Na({op:"Success",prop:"value",eval(t){const e=t.getCont(ma);return e?e[ma](this[Sa],t):t.yieldWith(this)}}),ka=Na({op:"Failure",prop:"cause",eval(t){let e=t.getCont(wa);for(;"Interrupt"===this[Sa]._tag&&e&&t.interruptible;)e=t.getCont(wa);return e?e[wa](this[Sa],t):t.yieldWith(this)}}),Aa=t=>ka(((t,e=[])=>new ua(t,e))(t)),xa=ja({op:"Suspend",eval(t){return this[Sa]()}}),Fa=ja({op:"Yield",eval(t){let e=!1;return t.getRef(Qa).scheduleTask((()=>{e||t.evaluate(Ya)}),this[Sa]??0),t.yieldWith((()=>{e=!0}))}})(0),Ra=$a(void 0),Ta=t=>xa((()=>{try{return $a(t.try())}catch(e){return Aa(t.catch(e))}})),La=ja({op:"WithMicroFiber",eval(t){return this[Sa](t)}}),Ja=t(2,((t,e)=>{const r=Object.create(Da);return r[Sa]=t,r[ma]=e,r})),Da=Ma({op:"OnSuccess",eval(t){return t._stack.push(this),this[Sa]}}),qa=t=>S(t,ia),Pa=$a,Ua=ka,Wa=Ua(la()),Ha=t=>Ua(((t,e=[])=>new fa(t,e))(t)),Ya=Pa(void 0),Ga="setImmediate"in globalThis?globalThis.setImmediate:t=>setTimeout(t,0);class Ba{tasks=[];running=!1;scheduleTask(t,e){this.tasks.push(t),this.running||(this.running=!0,Ga(this.afterScheduled))}afterScheduled=()=>{this.running=!1,this.runTasks()};runTasks(){const t=this.tasks;this.tasks=[];for(let e=0,r=t.length;e<r;e++)t[e]()}shouldYield(t){return t.currentOpCount>=t.getRef(Ka)}flush(){for(;this.tasks.length>0;)this.runTasks()}}const Va=t(2,((t,e)=>La((r=>{const n=r.context;return r.context=e(n),to(t,(()=>(r.context=n,Ra)))})))),za=t(2,((t,e)=>Va(t,kr(e))));class Ka extends(xr()("effect/Micro/currentMaxOpsBeforeYield",{defaultValue:()=>2048})){}class Qa extends(xr()("effect/Micro/currentScheduler",{defaultValue:()=>new Ba})){}const Xa=t(2,((t,e)=>{const r=Object.create(Za);return r[Sa]=t,r[ma]=e.onSuccess,r[wa]=e.onFailure,r})),Za=Ma({op:"OnSuccessAndFailure",eval(t){return t._stack.push(this),this[Sa]}}),to=t(2,((t,e)=>no((r=>Xa(r(t),{onFailure:t=>Ja(e(Ua(t)),(()=>ka(t))),onSuccess:t=>Ja(e(Pa(t)),(()=>$a(t)))}))))),eo=ja({op:"SetInterruptible",ensure(t){if(t.interruptible=this[Sa],t._interrupted&&t.interruptible)return()=>Wa}}),ro=t=>La((e=>e.interruptible?t:(e.interruptible=!0,e._stack.push(eo(!1)),e._interrupted?Wa:t))),no=t=>La((r=>r.interruptible?(r.interruptible=!1,r._stack.push(eo(!0)),t(ro)):t(e))),so=t=>{const e=new pa(Qa.context(new Ba));return e.evaluate(t),e},io=t=>(t=>new Promise((e=>{so(t).addObserver(e)})))(t).then((t=>{if("Failure"===t._tag)throw t.cause;return t.value})),ao=function(){class t extends globalThis.Error{}return Object.assign(t.prototype,Ca,Nt,{[ya]:"Failure",[_a](){return Aa(this)},toString(){return this.message?`${this.name}: ${this.message}`:this.name},toJSON(){return{...this}},[K](){const t=this.stack;return t?`${this.toString()}\n${t.split("\n").slice(1).join("\n")}`:this.toString()}}),t}(),oo=function(){return class extends ao{constructor(t){super(),t&&Object.assign(this,t)}}}(),co=t=>{class e extends oo{_tag=t}return e.prototype.name=t,e},uo=Symbol.for("effect/Logger"),fo={_Message:t=>t,_Output:t=>t},ho=t=>({[uo]:fo,log:t,pipe(){return at(this,arguments)}}),lo=/^[^\s"=]*$/,bo=(t,e)=>({annotations:r,cause:n,date:s,fiberId:i,logLevel:a,message:o,spans:c})=>{const u=(e,r)=>`${Zi(e)}=${(e=>e.match(lo)?e:t(e))(r)}`,f=(t,e)=>" "+u(t,e);let h=u("timestamp",s.toISOString());h+=f("level",a.label),h+=f("fiber",ei(i));const l=(b=o,Array.isArray(b)?b:[b]);var b;for(let t=0;t<l.length;t++)h+=f("message",Z(l[t],e));(t=>t._tag===si)(n)||(h+=f("cause",Hi(n,{renderErrorCause:!0})));for(const t of c)h+=" "+ta(s.getTime())(t);for(const[t,n]of r)h+=f(t,Z(n,e));return h},po=ho(bo((t=>`"${t.replace(/\\([\s\S])|(")/g,"\\$1$2")}"`)));"object"==typeof process&&null!==process&&"object"==typeof process.stdout&&null!==process.stdout&&process;export{Ns as $,Kn as A,Bn as B,Gn as C,rs as D,is as E,Xn as F,Hn as G,P as H,X as I,W as J,we as K,u as L,Q as M,K as N,er as O,G as P,Wr as Q,on as R,Nt as S,co as T,fn as U,dn as V,Zr as W,lr as X,xs as Y,Ms as Z,$s as _,Zt as a,mt as a$,Te as a0,Ce as a1,Ve as a2,ke as a3,Fe as a4,r as a5,rn as a6,he as a7,de as a8,Xr as a9,Ci as aA,gt as aB,Oi as aC,$i as aD,vi as aE,un as aF,pi as aG,Js as aH,Ds as aI,l as aJ,fe as aK,ot as aL,Hr as aM,Gr as aN,Br as aO,Ze as aP,_e as aQ,yi as aR,I as aS,yt as aT,kr as aU,kt as aV,li as aW,di as aX,wt as aY,Hi as aZ,oe as a_,Pr as aa,ct as ab,Mt as ac,T as ad,j as ae,ht as af,ft as ag,y as ah,Qi as ai,bi as aj,Ei as ak,v as al,dt as am,_t as an,ut as ao,o as ap,L as aq,R as ar,lt as as,bt as at,A as au,ie as av,se as aw,Ts as ax,$t as ay,Ii as az,ue as b,Mi as b$,St as b0,Cr as b1,Be as b2,gi as b3,V as b4,vr as b5,s as b6,sr as b7,ge as b8,$e as b9,xe as bA,Re as bB,ae as bC,be as bD,_ as bE,ks as bF,Os as bG,As as bH,Es as bI,Er as bJ,w as bK,Ls as bL,mi as bM,js as bN,st as bO,pt as bP,Nr as bQ,so as bR,za as bS,Ni as bT,It as bU,Z as bV,N as bW,$r as bX,ho as bY,po as bZ,wi as b_,Ie as ba,ze as bb,Xt as bc,De as bd,ve as be,Ke as bf,Ae as bg,tr as bh,ee as bi,Je as bj,pe as bk,Ne as bl,Cs as bm,C as bn,xr as bo,Mr as bp,Ee as bq,na as br,a as bs,jr as bt,zr as bu,me as bv,nr as bw,Oe as bx,le as by,Ge as bz,io as c,ki as c0,_i as c1,cn as c2,Xi as c3,Or as c4,Ar as c5,Ti as c6,Ue as c7,an as c8,sn as c9,te as ca,Qr as cb,pn as cc,hn as cd,bn as ce,nn as cf,t as d,d as e,p as f,re as g,S as h,e as i,b as j,F as k,Qt as l,ce as m,H as n,U as o,at as p,zs as q,Kt as r,Y as s,Ta as t,Qs as u,ri as v,ei as w,Xs as x,Wn as y,os as z}
1
+ const t=function(t,e){if("function"==typeof t)return function(){return t(arguments)?e.apply(this,arguments):t=>e(t,...arguments)};switch(t){case 0:case 1:throw new RangeError(`Invalid arity ${t}`);case 2:return function(t,r){return arguments.length>=2?e(t,r):function(r){return e(r,t)}};case 3:return function(t,r,n){return arguments.length>=3?e(t,r,n):function(n){return e(n,t,r)}};case 4:return function(t,r,n,s){return arguments.length>=4?e(t,r,n,s):function(s){return e(s,t,r,n)}};case 5:return function(t,r,n,s,i){return arguments.length>=5?e(t,r,n,s,i):function(i){return e(i,t,r,n,s)}};default:return function(){if(arguments.length>=t)return e.apply(this,arguments);const r=arguments;return function(t){return e(t,...r)}}}},e=t=>t,r=t=>()=>t,n=r(!0),s=r(!1),i=r(void 0),a=i;function o(t,e,r,n,s,i,a,o,c){switch(arguments.length){case 1:return t;case 2:return e(t);case 3:return r(e(t));case 4:return n(r(e(t)));case 5:return s(n(r(e(t))));case 6:return i(s(n(r(e(t)))));case 7:return a(i(s(n(r(e(t))))));case 8:return o(a(i(s(n(r(e(t)))))));case 9:return c(o(a(i(s(n(r(e(t))))))));default:{let t=arguments[0];for(let e=1;e<arguments.length;e++)t=arguments[e](t);return t}}}const c=t=>(e,r)=>e===r||t(e,r),u=t(2,((t,e)=>c(((r,n)=>t(e(r),e(n)))))),f="effect/GlobalValue";let h;const l=(t,e)=>(h||(globalThis[f]??=new Map,h=globalThis[f]),h.has(t)||h.set(t,e()),h.get(t)),b=t=>"string"==typeof t,d=t=>"number"==typeof t,p=t=>"bigint"==typeof t,g=t=>"function"==typeof t,y=t=>(t=>"object"==typeof t&&null!==t)(t)||g(t),S=t(2,((t,e)=>y(t)&&e in t)),_=t(2,((t,e)=>S(t,"_tag")&&t._tag===e)),m=t=>null==t,w=t=>"string"==typeof t||S(t,Symbol.iterator),I=t=>S(t,"then")&&g(t.then),v=t=>`BUG: ${t} - please report an issue at https://github.com/Effect-TS/effect/issues`;class O{self;called=!1;constructor(t){this.self=t}next(t){return this.called?{value:t,done:!0}:(this.called=!0,{value:this.self,done:!1})}return(t){return{value:t,done:!0}}throw(t){throw t}[Symbol.iterator](){return new O(this.self)}}class C{_state;constructor(t,e,r,n){return m(e)&&m(t)?(e=4294967295*Math.random()>>>0,t=0):m(e)&&(e=t,t=0),m(n)&&m(r)?(n=this._state?this._state[3]:4150755663,r=this._state?this._state[2]:335903614):m(n)&&(n=r,r=0),this._state=new Int32Array([0,0,r>>>0,(1|(n||0))>>>0]),this._next(),E(this._state,this._state[0],this._state[1],t>>>0,e>>>0),this._next(),this}getState(){return[this._state[0],this._state[1],this._state[2],this._state[3]]}setState(t){this._state[0]=t[0],this._state[1]=t[1],this._state[2]=t[2],this._state[3]=1|t[3]}integer(t){return Math.round(this.number()*Number.MAX_SAFE_INTEGER)%t}number(){return(1*(67108863&this._next())*134217728+1*(134217727&this._next()))/9007199254740992}_next(){const t=this._state[0]>>>0,e=this._state[1]>>>0;!function(t,e,r,n,s){let i=32557*(r>>>16)>>>0,a=19605*(65535&r)>>>0,o=32557*(65535&r)>>>0,c=19605*(r>>>16)+((a>>>16)+(i>>>16))>>>0;a=a<<16>>>0,o=o+a>>>0,o>>>0<a>>>0&&(c=c+1>>>0),i=i<<16>>>0,o=o+i>>>0,o>>>0<i>>>0&&(c=c+1>>>0),c=c+Math.imul(r,1481765933)>>>0,c=c+Math.imul(e,s)>>>0,t[0]=c,t[1]=o}(this._state,t,e,0,1284865837),E(this._state,this._state[0],this._state[1],this._state[2],this._state[3]);let r=t>>>18,n=(e>>>18|t<<14)>>>0;r=(r^t)>>>0,n=(n^e)>>>0;const s=(n>>>27|r<<5)>>>0,i=t>>>27;return(s>>>i|s<<((-i>>>0&31)>>>0))>>>0}}function E(t,e,r,n,s){let i=e+n>>>0;const a=r+s>>>0;a>>>0<r>>>0&&(i=i+1|0),t[0]=i,t[1]=a}const M=Symbol.for("effect/Utils/YieldWrap");class j{#t;constructor(t){this.#t=t}[M](){return this.#t}}function N(t){if("object"==typeof t&&null!==t&&M in t)return t[M]();throw new Error(v("yieldWrapGet"))}const $=l("effect/Utils/isStructuralRegion",(()=>({enabled:!1,tester:void 0}))),k={effect_internal_function:t=>t()},A=!0===k.effect_internal_function((()=>(new Error).stack))?.includes("effect_internal_function")?k.effect_internal_function:t=>{try{return t()}finally{}},x=l(Symbol.for("effect/Hash/randomHashCache"),(()=>new WeakMap)),F=Symbol.for("effect/Hash"),R=t=>{if(!0===$.enabled)return 0;switch(typeof t){case"number":return q(t);case"bigint":return P(t.toString(10));case"boolean":case"symbol":return P(String(t));case"string":return P(t);case"undefined":return P("undefined");case"function":case"object":return null===t?P("null"):t instanceof Date?Number.isNaN(t.getTime())?P("Invalid Date"):R(t.toISOString()):t instanceof URL?R(t.href):D(t)?t[F]():T(t);default:throw new Error(`BUG: unhandled typeof ${typeof t} - please report an issue at https://github.com/Effect-TS/effect/issues`)}},T=t=>(x.has(t)||x.set(t,q(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))),x.get(t)),L=t=>e=>53*e^t,J=t=>3221225471&t|t>>>1&1073741824,D=t=>S(t,F),q=t=>{if(t!=t||t===1/0)return 0;let e=0|t;for(e!==t&&(e^=4294967295*t);t>4294967295;)e^=t/=4294967295;return J(e)},P=t=>{let e=5381,r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return J(e)},U=t=>((t,e)=>{let r=12289;for(let n=0;n<e.length;n++)r^=o(P(e[n]),L(R(t[e[n]])));return J(r)})(t,Object.keys(t)),W=t=>{let e=6151;for(let r=0;r<t.length;r++)e=o(e,L(R(t[r])));return J(e)},H=function(){if(1===arguments.length){const t=arguments[0];return function(e){return Object.defineProperty(t,F,{value:()=>e,enumerable:!1}),e}}const t=arguments[1];return Object.defineProperty(arguments[0],F,{value:()=>t,enumerable:!1}),t},Y=Symbol.for("effect/Equal");function G(){return 1===arguments.length?t=>B(t,arguments[0]):B(arguments[0],arguments[1])}function B(t,e){if(t===e)return!0;const r=typeof t;if(r!==typeof e)return!1;if("object"===r||"function"===r){if(null!==t&&null!==e){if(V(t)&&V(e))return!(R(t)!==R(e)||!t[Y](e))||!(!$.enabled||!$.tester)&&$.tester(t,e);if(t instanceof Date&&e instanceof Date){const r=t.getTime(),n=e.getTime();return r===n||Number.isNaN(r)&&Number.isNaN(n)}if(t instanceof URL&&e instanceof URL)return t.href===e.href}if($.enabled){if(null===t||null===e)return!1;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every(((t,r)=>B(t,e[r])));if(Object.getPrototypeOf(t)===Object.prototype&&Object.getPrototypeOf(e)===Object.prototype){const r=Object.keys(t),n=Object.keys(e);if(r.length===n.length){for(const n of r)if(!(n in e)||!B(t[n],e[n]))return!!$.tester&&$.tester(t,e);return!0}}return!!$.tester&&$.tester(t,e)}}return!(!$.enabled||!$.tester)&&$.tester(t,e)}const V=t=>S(t,Y),z=()=>G,K=Symbol.for("nodejs.util.inspect.custom"),Q=t=>{try{if(S(t,"toJSON")&&g(t.toJSON)&&0===t.toJSON.length)return t.toJSON();if(Array.isArray(t))return t.map(Q)}catch{return{}}return it(t)},X=t=>JSON.stringify(t,null,2),Z=(t,e=2)=>{if("string"==typeof t)return t;try{return"object"==typeof t?tt(t,e):String(t)}catch{return String(t)}},tt=(t,e)=>{let r=[];const n=JSON.stringify(t,((t,e)=>"object"==typeof e&&null!==e?r.includes(e)?void 0:r.push(e)&&(void 0!==nt.fiberRefs&&rt(e)?e[et](nt.fiberRefs):e):e),e);return r=void 0,n},et=Symbol.for("effect/Inspectable/Redactable"),rt=t=>"object"==typeof t&&null!==t&&et in t,nt=l("effect/Inspectable/redactableState",(()=>({fiberRefs:void 0}))),st=(t,e)=>{const r=nt.fiberRefs;nt.fiberRefs=t;try{return e()}finally{nt.fiberRefs=r}},it=t=>rt(t)&&void 0!==nt.fiberRefs?t[et](nt.fiberRefs):t,at=(t,e)=>{switch(e.length){case 0:return t;case 1:return e[0](t);case 2:return e[1](e[0](t));case 3:return e[2](e[1](e[0](t)));case 4:return e[3](e[2](e[1](e[0](t))));case 5:return e[4](e[3](e[2](e[1](e[0](t)))));case 6:return e[5](e[4](e[3](e[2](e[1](e[0](t))))));case 7:return e[6](e[5](e[4](e[3](e[2](e[1](e[0](t)))))));case 8:return e[7](e[6](e[5](e[4](e[3](e[2](e[1](e[0](t))))))));case 9:return e[8](e[7](e[6](e[5](e[4](e[3](e[2](e[1](e[0](t)))))))));default:{let r=t;for(let t=0,n=e.length;t<n;t++)r=e[t](r);return r}}},ot="Async",ct="Commit",ut="Failure",ft="OnFailure",ht="OnSuccess",lt="OnSuccessAndFailure",bt="Success",dt="Sync",pt="Tag",gt="UpdateRuntimeFlags",yt="While",St="Iterator",_t="WithRuntime",mt="Yield",wt="RevertFlags",It=()=>"3.21.1",vt=Symbol.for("effect/Effect"),Ot=Symbol.for("effect/Stream"),Ct=Symbol.for("effect/Sink"),Et=Symbol.for("effect/Channel"),Mt={_R:t=>t,_E:t=>t,_A:t=>t,_V:It()},jt={[vt]:Mt,[Ot]:Mt,[Ct]:{_A:t=>t,_In:t=>t,_L:t=>t,_E:t=>t,_R:t=>t},[Et]:{_Env:t=>t,_InErr:t=>t,_InElem:t=>t,_InDone:t=>t,_OutErr:t=>t,_OutElem:t=>t,_OutDone:t=>t},[Y](t){return this===t},[F](){return H(this,T(this))},[Symbol.iterator](){return new O(new j(this))},pipe(){return at(this,arguments)}},Nt={[F](){return H(this,U(this))},[Y](t){const e=Object.keys(this),r=Object.keys(t);if(e.length!==r.length)return!1;for(const r of e)if(!(r in t)||!G(this[r],t[r]))return!1;return!0}},$t={...jt,_op:ct},kt={...$t,...Nt},At=function(){function t(){}return t.prototype=$t,t}(),xt=Symbol.for("effect/Option"),Ft={...jt,[xt]:{_A:t=>t},[K](){return this.toJSON()},toString(){return X(this.toJSON())}},Rt=Object.assign(Object.create(Ft),{_tag:"Some",_op:"Some",[Y](t){return Jt(t)&&qt(t)&&G(this.value,t.value)},[F](){return H(this,L(R(this._tag))(R(this.value)))},toJSON(){return{_id:"Option",_tag:this._tag,value:Q(this.value)}}}),Tt=R("None"),Lt=Object.assign(Object.create(Ft),{_tag:"None",_op:"None",[Y]:t=>Jt(t)&&Dt(t),[F]:()=>Tt,toJSON(){return{_id:"Option",_tag:this._tag}}}),Jt=t=>S(t,xt),Dt=t=>"None"===t._tag,qt=t=>"Some"===t._tag,Pt=Object.create(Lt),Ut=t=>{const e=Object.create(Rt);return e.value=t,e},Wt=Symbol.for("effect/Either"),Ht={...jt,[Wt]:{_R:t=>t},[K](){return this.toJSON()},toString(){return X(this.toJSON())}},Yt=Object.assign(Object.create(Ht),{_tag:"Right",_op:"Right",[Y](t){return Bt(t)&&zt(t)&&G(this.right,t.right)},[F](){return L(R(this._tag))(R(this.right))},toJSON(){return{_id:"Either",_tag:this._tag,right:Q(this.right)}}}),Gt=Object.assign(Object.create(Ht),{_tag:"Left",_op:"Left",[Y](t){return Bt(t)&&Vt(t)&&G(this.left,t.left)},[F](){return L(R(this._tag))(R(this.left))},toJSON(){return{_id:"Either",_tag:this._tag,left:Q(this.left)}}}),Bt=t=>S(t,Wt),Vt=t=>"Left"===t._tag,zt=t=>"Right"===t._tag,Kt=t=>{const e=Object.create(Yt);return e.right=t,e},Qt=t=>{const e=Object.create(Gt);return e.left=t,e},Xt=Vt,Zt=zt,te=t(2,((t,{onLeft:e,onRight:r})=>Xt(t)?e(t.left):r(t.right))),ee=te({onLeft:e,onRight:e}),re=t(2,((t,e)=>{if(Zt(t))return t.right;throw e(t.left)})),ne=t=>t.length>0,se=()=>Pt,ie=Ut,ae=Dt,oe=qt,ce=t(2,((t,{onNone:e,onSome:r})=>ae(t)?e():r(t.value))),ue=t=>Vt(t)?Pt:Ut(t.right),fe=t(2,((t,e)=>ae(t)?e():t.value)),he=t(2,((t,e)=>ae(t)?ie(e()):t)),le=t=>null==t?se():ie(t),be=fe(i),de=t(2,((t,e)=>ae(t)?se():ie(e(t.value)))),pe=t(2,((t,e)=>ae(t)?se():e(t.value))),ge=(e=>t(2,((t,r)=>!ae(t)&&e(t.value,r))))(z()),ye=t=>(e,r)=>ae(e)?r:ae(r)?e:ie(t(e.value,r.value)),Se=(...t)=>t,_e=t=>new Array(t),me=t(2,((t,e)=>{const r=Math.max(1,Math.floor(t)),n=new Array(r);for(let t=0;t<r;t++)n[t]=e(t);return n})),we=t=>Array.isArray(t)?t:Array.from(t),Ie=t(2,((t,e)=>[e,...t])),ve=t(2,((t,e)=>[...t,e])),Oe=t(2,((t,e)=>we(t).concat(we(e)))),Ce=ne,Ee=ne,Me=(t,e)=>t<0||t>=e.length,je=t(2,((t,e)=>{const r=Math.floor(e);return Me(r,t)?se():ie(t[r])})),Ne=t(2,((t,e)=>{const r=Math.floor(e);if(Me(r,t))throw new Error(`Index ${r} out of bounds`);return t[r]})),$e=je(0),ke=Ne(0),Ae=t=>Ee(t)?ie(xe(t)):se(),xe=t=>t[t.length-1],Fe=t=>t.slice(1),Re=t(2,((t,e)=>Ue(t,((t,e)=>{let r=0;for(const n of t){if(!e(n,r))break;r++}return r})(t,e)))),Te=t(2,((t,e)=>{const r=we(t);return r.slice((n=r,Math.floor(Math.min(Math.max(0,e),n.length))),r.length);var n})),Le=t=>Array.from(t).reverse(),Je=t(2,((t,e)=>{const r=Array.from(t);return r.sort(e),r})),De=t(2,((t,e)=>qe(t,e,Se))),qe=t(3,((t,e,r)=>{const n=we(t),s=we(e);if(Ee(n)&&Ee(s)){const t=[r(ke(n),ke(s))],e=Math.min(n.length,s.length);for(let i=1;i<e;i++)t[i]=r(n[i],s[i]);return t}return[]})),Pe=z(),Ue=t(2,((t,e)=>{const r=Array.from(t),n=Math.floor(e);return Ee(r)?n>=1?We(r,n):[[],r]:[r,[]]})),We=t(2,((t,e)=>{const r=Math.max(1,Math.floor(e));return r>=t.length?[He(t),[]]:[Ie(t.slice(1,r),ke(t)),t.slice(r)]})),He=t=>t.slice(),Ye=t(3,((t,e,r)=>{const n=we(t),s=we(e);return Ee(n)?Ee(s)?rr(r)(Oe(n,s)):n:s})),Ge=t(2,((t,e)=>Ye(t,e,Pe))),Be=()=>[],Ve=t=>[t],ze=t(2,((t,e)=>t.map(e))),Ke=t(2,((t,e)=>{if((t=>0===t.length)(t))return[];const r=[];for(let n=0;n<t.length;n++){const s=e(t[n],n);for(let t=0;t<s.length;t++)r.push(s[t])}return r}))(e),Qe=t(2,((t,e)=>{const r=we(t),n=[];for(let t=0;t<r.length;t++){const s=e(r[t],t);oe(s)&&n.push(s.value)}return n})),Xe=t(2,((t,e)=>{const r=we(t),n=[];for(let t=0;t<r.length;t++)e(r[t],t)&&n.push(r[t]);return n})),Ze=t(3,((t,e,r)=>we(t).reduce(((t,e,n)=>r(t,e,n)),e))),tr=(t,e)=>{const r=[];let n,s=t;for(;oe(n=e(s));){const[t,e]=n.value;r.push(t),s=e}return r},er=t=>c(((e,r)=>{if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(!t(e[n],r[n]))return!1;return!0})),rr=t(2,((t,e)=>{const r=we(t);if(Ee(r)){const t=[ke(r)],n=Fe(r);for(const r of n)t.every((t=>!e(r,t)))&&t.push(r);return t}return[]})),nr=t=>rr(t,z()),sr=t(2,((t,e)=>we(t).join(e))),ir=Symbol.for("effect/Context/Tag"),ar=Symbol.for("effect/Context/Reference"),or=Symbol.for("effect/STM"),cr={...jt,_op:"Tag",[or]:Mt,[ir]:{_Service:t=>t,_Identifier:t=>t},toString(){return X(this.toJSON())},toJSON(){return{_id:"Tag",key:this.key,stack:this.stack}},[K](){return this.toJSON()},of:t=>t,context(t){return pr(this,t)}},ur={...cr,[ar]:ar},fr=Symbol.for("effect/Context"),hr={[fr]:{_Services:t=>t},[Y](t){if(br(t)&&this.unsafeMap.size===t.unsafeMap.size){for(const e of this.unsafeMap.keys())if(!t.unsafeMap.has(e)||!G(this.unsafeMap.get(e),t.unsafeMap.get(e)))return!1;return!0}return!1},[F](){return H(this,q(this.unsafeMap.size))},pipe(){return at(this,arguments)},toString(){return X(this.toJSON())},toJSON(){return{_id:"Context",services:Array.from(this.unsafeMap).map(Q)}},[K](){return this.toJSON()}},lr=t=>{const e=Object.create(hr);return e.unsafeMap=t,e},br=t=>S(t,fr),dr=lr(new Map),pr=(t,e)=>lr(new Map([[t.key,e]])),gr=t(3,((t,e,r)=>{const n=new Map(t.unsafeMap);return n.set(e.key,r),lr(n)})),yr=l("effect/Context/defaultValueCache",(()=>new Map)),Sr=t=>{if(yr.has(t.key))return yr.get(t.key);const e=t.defaultValue();return yr.set(t.key,e),e},_r=t(2,((t,e)=>{if(!t.unsafeMap.has(e.key)){if(ar in e)return Sr(e);throw(t=>{const e=new Error("Service not found"+(t.key?`: ${String(t.key)}`:""));if(t.stack){const r=t.stack.split("\n");if(r.length>2){const t=r[2].match(/at (.*)/);t&&(e.message=e.message+` (defined at ${t[1]})`)}}if(e.stack){const t=e.stack.split("\n");t.splice(1,3),e.stack=t.join("\n")}return e})(e)}return t.unsafeMap.get(e.key)})),mr=_r,wr=t(2,((t,e)=>t.unsafeMap.has(e.key)?Ut(t.unsafeMap.get(e.key)):S(e,ar)?Ut(Sr(e)):Pt)),Ir=t(2,((t,e)=>{const r=new Map(t.unsafeMap);for(const[t,n]of e.unsafeMap)r.set(t,n);return lr(r)})),vr=t=>{const e=Error.stackTraceLimit;Error.stackTraceLimit=2;const r=new Error;Error.stackTraceLimit=e;const n=Object.create(cr);return Object.defineProperty(n,"stack",{get:()=>r.stack}),n.key=t,n},Or=br,Cr=()=>dr,Er=pr,Mr=gr,jr=mr,Nr=_r,$r=wr,kr=Ir,Ar=(...t)=>{const e=new Map;for(let r=0;r<t.length;r++)t[r].unsafeMap.forEach(((t,r)=>{e.set(r,t)}));return lr(e)},xr=()=>(t,e)=>{const r=Error.stackTraceLimit;Error.stackTraceLimit=2;const n=new Error;function s(){}return Error.stackTraceLimit=r,Object.setPrototypeOf(s,ur),s.key=t,s.defaultValue=e.defaultValue,Object.defineProperty(s,"stack",{get:()=>n.stack}),s},Fr=Symbol.for("effect/Chunk"),Rr=[],Tr=(t=>c(((e,r)=>e.length===r.length&&Gr(e).every(((e,n)=>t(e,Qr(r,n)))))))(G),Lr={[Fr]:{_A:t=>t},toString(){return X(this.toJSON())},toJSON(){return{_id:"Chunk",values:Gr(this).map(Q)}},[K](){return this.toJSON()},[Y](t){return Dr(t)&&Tr(this,t)},[F](){return H(this,W(Gr(this)))},[Symbol.iterator](){switch(this.backing._tag){case"IArray":return this.backing.array[Symbol.iterator]();case"IEmpty":return Rr[Symbol.iterator]();default:return Gr(this)[Symbol.iterator]()}},pipe(){return at(this,arguments)}},Jr=t=>{const e=Object.create(Lr);switch(e.backing=t,t._tag){case"IEmpty":e.length=0,e.depth=0,e.left=e,e.right=e;break;case"IConcat":e.length=t.left.length+t.right.length,e.depth=1+Math.max(t.left.depth,t.right.depth),e.left=t.left,e.right=t.right;break;case"IArray":e.length=t.array.length,e.depth=0,e.left=qr,e.right=qr;break;case"ISingleton":e.length=1,e.depth=0,e.left=qr,e.right=qr;break;case"ISlice":e.length=t.length,e.depth=t.chunk.depth+1,e.left=qr,e.right=qr}return e},Dr=t=>S(t,Fr),qr=Jr({_tag:"IEmpty"}),Pr=()=>qr,Ur=(...t)=>Kr(t),Wr=t=>Jr({_tag:"ISingleton",a:t}),Hr=t=>Dr(t)?t:zr(we(t)),Yr=(t,e,r)=>{switch(t.backing._tag){case"IArray":!function(t,e,r,n,s){for(let e=0;e<Math.min(t.length,0+s);e++)r[n+e-0]=t[e]}(t.backing.array,0,e,r,t.length);break;case"IConcat":Yr(t.left,e,r),Yr(t.right,e,r+t.left.length);break;case"ISingleton":e[r]=t.backing.a;break;case"ISlice":{let n=0,s=r;for(;n<t.length;)e[s]=Qr(t,n),n+=1,s+=1;break}}},Gr=t=>{switch(t.backing._tag){case"IEmpty":return Rr;case"IArray":return t.backing.array;default:{const e=new Array(t.length);return Yr(t,e,0),t.backing={_tag:"IArray",array:e},t.left=qr,t.right=qr,t.depth=0,e}}},Br=t=>{switch(t.backing._tag){case"IEmpty":case"ISingleton":return t;case"IArray":return Jr({_tag:"IArray",array:Le(t.backing.array)});case"IConcat":return Jr({_tag:"IConcat",left:Br(t.backing.right),right:Br(t.backing.left)});case"ISlice":return zr(Le(Gr(t)))}},Vr=t(2,((t,e)=>e<0||e>=t.length?se():ie(Qr(t,e)))),zr=t=>0===t.length?Pr():1===t.length?Wr(t[0]):Jr({_tag:"IArray",array:t}),Kr=t=>zr(t),Qr=t(2,((t,e)=>{switch(t.backing._tag){case"IEmpty":throw new Error("Index out of bounds");case"ISingleton":if(0!==e)throw new Error("Index out of bounds");return t.backing.a;case"IArray":if(e>=t.length||e<0)throw new Error("Index out of bounds");return t.backing.array[e];case"IConcat":return e<t.left.length?Qr(t.left,e):Qr(t.right,e-t.left.length);case"ISlice":return Qr(t.backing.chunk,e+t.backing.offset)}})),Xr=t(2,((t,e)=>rn(t,Wr(e)))),Zr=t(2,((t,e)=>rn(Wr(e),t))),tn=t(2,((t,e)=>{if(e<=0)return qr;if(e>=t.length)return t;switch(t.backing._tag){case"ISlice":return Jr({_tag:"ISlice",chunk:t.backing.chunk,length:e,offset:t.backing.offset});case"IConcat":return e>t.left.length?Jr({_tag:"IConcat",left:t.left,right:tn(t.right,e-t.left.length)}):tn(t.left,e);default:return Jr({_tag:"ISlice",chunk:t,offset:0,length:e})}})),en=t(2,((t,e)=>{if(e<=0)return t;if(e>=t.length)return qr;switch(t.backing._tag){case"ISlice":return Jr({_tag:"ISlice",chunk:t.backing.chunk,offset:t.backing.offset+e,length:t.backing.length-e});case"IConcat":return e>t.left.length?en(t.right,e-t.left.length):Jr({_tag:"IConcat",left:en(t.left,e),right:t.right});default:return Jr({_tag:"ISlice",chunk:t,offset:e,length:t.length-e})}})),rn=t(2,((t,e)=>{if("IEmpty"===t.backing._tag)return e;if("IEmpty"===e.backing._tag)return t;const r=e.depth-t.depth;if(Math.abs(r)<=1)return Jr({_tag:"IConcat",left:t,right:e});if(r<-1){if(t.left.depth>=t.right.depth){const r=rn(t.right,e);return Jr({_tag:"IConcat",left:t.left,right:r})}{const r=rn(t.right.right,e);if(r.depth===t.depth-3){const e=Jr({_tag:"IConcat",left:t.right.left,right:r});return Jr({_tag:"IConcat",left:t.left,right:e})}{const e=Jr({_tag:"IConcat",left:t.left,right:t.right.left});return Jr({_tag:"IConcat",left:e,right:r})}}}if(e.right.depth>=e.left.depth){const r=rn(t,e.left);return Jr({_tag:"IConcat",left:r,right:e.right})}{const r=rn(t,e.left.left);if(r.depth===e.depth-3){const t=Jr({_tag:"IConcat",left:r,right:e.left.right});return Jr({_tag:"IConcat",left:t,right:e.right})}{const t=Jr({_tag:"IConcat",left:e.left.right,right:e.right});return Jr({_tag:"IConcat",left:r,right:t})}}})),nn=t(2,((t,e)=>zr(Qe(t,e)))),sn=t(2,((t,e)=>zr(Xe(t,e)))),an=t=>0===t.length,on=t=>t.length>0,cn=Vr(0),un=t=>Qr(t,0),fn=un,hn=t(2,((t,e)=>"ISingleton"===t.backing._tag?Wr(e(t.backing.a,0)):zr(o(Gr(t),ze(((t,r)=>e(t,r))))))),ln=t(2,((t,e)=>[tn(t,e),en(t,e)])),bn=t(2,((t,e)=>{let r=0;for(const n of Gr(t)){if(e(n))break;r++}return ln(t,r)})),dn=t=>en(t,1),pn=Ze,gn=Math.pow(2,5),yn=gn-1,Sn=gn/2,_n=gn/4;function mn(t,e){return e>>>t&yn}function wn(t){return 1<<t}function In(t,e){return r=t&e-1,r=(r=(858993459&(r-=r>>1&1431655765))+(r>>2&858993459))+(r>>4)&252645135,127&(r+=r>>8)+(r>>16);var r}function vn(t,e,r,n){let s=n;if(!t){const t=n.length;s=new Array(t);for(let e=0;e<t;++e)s[e]=n[e]}return s[e]=r,s}function On(t,e,r){const n=r.length-1;let s=0,i=0,a=r;if(t)s=i=e;else for(a=new Array(n);s<e;)a[i++]=r[s++];for(++s;s<=n;)a[i++]=r[s++];return t&&(a.length=n),a}class Cn{_tag="EmptyNode";modify(t,e,r,n,s,i){const a=r(se());return ae(a)?new Cn:(++i.value,new jn(t,n,s,a))}}function En(t){return _(t,"EmptyNode")}function Mn(t,e){return!En(t)&&e===t.edit}class jn{edit;hash;key;value;_tag="LeafNode";constructor(t,e,r,n){this.edit=t,this.hash=e,this.key=r,this.value=n}modify(t,e,r,n,s,i){if(G(s,this.key)){const e=r(this.value);return e===this.value?this:ae(e)?(--i.value,new Cn):Mn(this,t)?(this.value=e,this):new jn(t,n,s,e)}const a=r(se());return ae(a)?this:(++i.value,xn(t,e,this.hash,this,n,new jn(t,n,s,a)))}}class Nn{edit;hash;children;_tag="CollisionNode";constructor(t,e,r){this.edit=t,this.hash=e,this.children=r}modify(t,e,r,n,s,i){if(n===this.hash){const e=Mn(this,t),n=this.updateCollisionList(e,t,this.hash,this.children,r,s,i);return n===this.children?this:n.length>1?new Nn(t,this.hash,n):n[0]}const a=r(se());return ae(a)?this:(++i.value,xn(t,e,this.hash,this,n,new jn(t,n,s,a)))}updateCollisionList(t,e,r,n,s,i,a){const o=n.length;for(let c=0;c<o;++c){const o=n[c];if("key"in o&&G(i,o.key)){const u=o.value,f=s(u);return f===u?n:ae(f)?(--a.value,On(t,c,n)):vn(t,c,new jn(e,r,i,f),n)}}const c=s(se());return ae(c)?n:(++a.value,vn(t,o,new jn(e,r,i,c),n))}}class $n{edit;mask;children;_tag="IndexedNode";constructor(t,e,r){this.edit=t,this.mask=e,this.children=r}modify(t,e,r,n,s,i){const a=this.mask,o=this.children,c=mn(e,n),u=wn(c),f=In(a,u),h=a&u,l=Mn(this,t);if(!h){const h=(new Cn).modify(t,e+5,r,n,s,i);return h?o.length>=Sn?function(t,e,r,n,s){const i=[];let a=n,o=0;for(let t=0;a;++t)1&a&&(i[t]=s[o++]),a>>>=1;return i[e]=r,new kn(t,o+1,i)}(t,c,h,a,o):new $n(t,a|u,function(t,e,r,n){const s=n.length;if(t){let t=s;for(;t>=e;)n[t--]=n[t];return n[e]=r,n}let i=0,a=0;const o=new Array(s+1);for(;i<e;)o[a++]=n[i++];for(o[e]=r;i<s;)o[++a]=n[i++];return o}(l,f,h,o)):this}const b=o[f],d=b.modify(t,e+5,r,n,s,i);if(b===d)return this;let p,g=a;if(En(d)){if(g&=~u,!g)return new Cn;if(o.length<=2&&(En(y=o[1^f])||"LeafNode"===y._tag||"CollisionNode"===y._tag))return o[1^f];p=On(l,f,o)}else p=vn(l,f,d,o);var y;return l?(this.mask=g,this.children=p,this):new $n(t,g,p)}}class kn{edit;size;children;_tag="ArrayNode";constructor(t,e,r){this.edit=t,this.size=e,this.children=r}modify(t,e,r,n,s,i){let a=this.size;const o=this.children,c=mn(e,n),u=o[c],f=(u||new Cn).modify(t,e+5,r,n,s,i);if(u===f)return this;const h=Mn(this,t);let l;if(En(u)&&!En(f))++a,l=vn(h,c,f,o);else if(!En(u)&&En(f)){if(--a,a<=_n)return function(t,e,r,n){const s=new Array(e-1);let i=0,a=0;for(let t=0,e=n.length;t<e;++t)if(t!==r){const e=n[t];e&&!En(e)&&(s[i++]=e,a|=1<<t)}return new $n(t,a,s)}(t,a,c,o);l=vn(h,c,new Cn,o)}else l=vn(h,c,f,o);return h?(this.size=a,this.children=l,this):new kn(t,a,l)}}function An(t,e,r,n,s,i){if(r===s)return new Nn(t,r,[i,n]);const a=mn(e,r),o=mn(e,s);if(a===o)return e=>new $n(t,wn(a)|wn(o),[e]);{const e=a<o?[n,i]:[i,n];return new $n(t,wn(a)|wn(o),e)}}function xn(t,e,r,n,s,i){let a,o=e;for(;;){const e=An(t,o,r,n,s,i);if("function"!=typeof e){let t=e;for(;null!=a;)t=a.value(t),a=a.previous;return t}a={value:e,previous:a},o+=5}}const Fn="effect/HashMap",Rn=Symbol.for(Fn),Tn={[Rn]:Rn,[Symbol.iterator](){return new Jn(this,((t,e)=>[t,e]))},[F](){let t=R(Fn);for(const e of this)t^=o(R(e[0]),L(R(e[1])));return H(this,t)},[Y](t){if(Yn(t)){if(t._size!==this._size)return!1;for(const e of this){const r=o(t,Vn(e[0],R(e[0])));if(ae(r))return!1;if(!G(e[1],r.value))return!1}return!0}return!1},toString(){return X(this.toJSON())},toJSON(){return{_id:"HashMap",values:Array.from(this).map(Q)}},[K](){return this.toJSON()},pipe(){return at(this,arguments)}},Ln=(t,e,r,n)=>{const s=Object.create(Tn);return s._editable=t,s._edit=e,s._root=r,s._size=n,s};class Jn{map;f;v;constructor(t,e){this.map=t,this.f=e,this.v=qn(this.map._root,this.f,void 0)}next(){if(ae(this.v))return{done:!0,value:void 0};const t=this.v.value;return this.v=Dn(t.cont),{done:!1,value:t.value}}[Symbol.iterator](){return new Jn(this.map,this.f)}}const Dn=t=>t?Pn(t[0],t[1],t[2],t[3],t[4]):se(),qn=(t,e,r)=>{switch(t._tag){case"LeafNode":return oe(t.value)?ie({value:e(t.key,t.value.value),cont:r}):Dn(r);case"CollisionNode":case"ArrayNode":case"IndexedNode":{const n=t.children;return Pn(n.length,n,0,e,r)}default:return Dn(r)}},Pn=(t,e,r,n,s)=>{for(;r<t;){const i=e[r++];if(i&&!En(i))return qn(i,n,[t,e,r,n,s])}return Dn(s)},Un=Ln(!1,0,new Cn,0),Wn=()=>Un,Hn=t=>{const e=ts(Wn());for(const r of t)Kn(e,r[0],r[1]);return es(e)},Yn=t=>S(t,Rn),Gn=t=>t&&En(t._root),Bn=t(2,((t,e)=>Vn(t,e,R(e)))),Vn=t(3,((t,e,r)=>{let n=t._root,s=0;for(;;)switch(n._tag){case"LeafNode":return G(e,n.key)?n.value:se();case"CollisionNode":if(r===n.hash){const t=n.children;for(let r=0,n=t.length;r<n;++r){const n=t[r];if("key"in n&&G(e,n.key))return n.value}}return se();case"IndexedNode":{const t=wn(mn(s,r));if(n.mask&t){n=n.children[In(n.mask,t)],s+=5;break}return se()}case"ArrayNode":if(n=n.children[mn(s,r)],n){s+=5;break}return se();default:return se()}})),zn=t(2,((t,e)=>oe(Vn(t,e,R(e))))),Kn=t(3,((t,e,r)=>rs(t,e,(()=>ie(r))))),Qn=t(3,((t,e,r)=>t._editable?(t._root=e,t._size=r,t):e===t._root?t:Ln(t._editable,t._edit,e,r))),Xn=t=>new Jn(t,(t=>t)),Zn=t=>t._size,ts=t=>Ln(!0,t._edit+1,t._root,t._size),es=t=>(t._editable=!1,t),rs=t(3,((t,e,r)=>ns(t,e,R(e),r))),ns=t(4,((t,e,r,n)=>{const s={value:t._size},i=t._root.modify(t._editable?t._edit:NaN,0,n,r,e,s);return o(t,Qn(i,s.value))})),ss=t(2,((t,e)=>rs(t,e,se))),is=t(2,((t,e)=>os(t,Wn(),((t,r,n)=>Kn(t,n,e(r,n)))))),as=t(2,((t,e)=>os(t,void 0,((t,r,n)=>e(r,n))))),os=t(3,((t,e,r)=>{const n=t._root;if("LeafNode"===n._tag)return oe(n.value)?r(e,n.value.value,n.key):e;if("EmptyNode"===n._tag)return e;const s=[n.children];let i;for(;i=s.pop();)for(let t=0,n=i.length;t<n;){const n=i[t++];n&&!En(n)&&("LeafNode"===n._tag?oe(n.value)&&(e=r(e,n.value.value,n.key)):s.push(n.children))}return e})),cs="effect/HashSet",us=Symbol.for(cs),fs={[us]:us,[Symbol.iterator](){return Xn(this._keyMap)},[F](){return H(this,L(R(this._keyMap))(R(cs)))},[Y](t){return!!ls(t)&&Zn(this._keyMap)===Zn(t._keyMap)&&G(this._keyMap,t._keyMap)},toString(){return X(this.toJSON())},toJSON(){return{_id:"HashSet",values:Array.from(this).map(Q)}},[K](){return this.toJSON()},pipe(){return at(this,arguments)}},hs=t=>{const e=Object.create(fs);return e._keyMap=t,e},ls=t=>S(t,us),bs=hs(Wn()),ds=()=>bs,ps=t(2,((t,e)=>zn(t._keyMap,e))),gs=t=>hs(ts(t._keyMap)),ys=t=>(t._keyMap._editable=!1,t),Ss=t(2,((t,e)=>{const r=gs(t);return e(r),ys(r)})),_s=t(2,((t,e)=>t._keyMap._editable?(Kn(e,!0)(t._keyMap),t):hs(Kn(e,!0)(t._keyMap)))),ms=t(2,((t,e)=>t._keyMap._editable?(ss(e)(t._keyMap),t):hs(ss(e)(t._keyMap)))),ws=t(2,((t,e)=>Ss(t,(t=>{for(const r of e)ms(t,r)})))),Is=t(2,((t,e)=>Ss(ds(),(r=>{vs(t,(t=>_s(r,t)));for(const t of e)_s(r,t)})))),vs=t(2,((t,e)=>as(t._keyMap,((t,r)=>e(r))))),Os=ds,Cs=t=>{const e=gs(ds());for(const r of t)_s(e,r);return ys(e)},Es=(...t)=>{const e=gs(ds());for(const r of t)_s(e,r);return ys(e)},Ms=ps,js=t=>Zn(t._keyMap),Ns=_s,$s=ms,ks=ws,As=Is,xs=t(3,((t,e,r)=>os(t._keyMap,e,((t,e,n)=>r(t,n))))),Fs=Symbol.for("effect/MutableRef"),Rs={[Fs]:Fs,toString(){return X(this.toJSON())},toJSON(){return{_id:"MutableRef",current:Q(this.current)}},[K](){return this.toJSON()},pipe(){return at(this,arguments)}},Ts=t=>{const e=Object.create(Rs);return e.current=t,e},Ls=t(3,((t,e,r)=>!!G(e,t.current)&&(t.current=r,!0))),Js=t=>t.current,Ds=t(2,((t,e)=>(t.current=e,t))),qs="effect/FiberId",Ps=Symbol.for(qs),Us="None",Ws="Runtime",Hs="Composite",Ys=P(`${qs}-${Us}`);class Gs{[Ps]=Ps;_tag=Us;id=-1;startTimeMillis=-1;[F](){return Ys}[Y](t){return Ks(t)&&t._tag===Us}toString(){return X(this.toJSON())}toJSON(){return{_id:"FiberId",_tag:this._tag}}[K](){return this.toJSON()}}class Bs{id;startTimeMillis;[Ps]=Ps;_tag=Ws;constructor(t,e){this.id=t,this.startTimeMillis=e}[F](){return H(this,P(`${qs}-${this._tag}-${this.id}-${this.startTimeMillis}`))}[Y](t){return Ks(t)&&t._tag===Ws&&this.id===t.id&&this.startTimeMillis===t.startTimeMillis}toString(){return X(this.toJSON())}toJSON(){return{_id:"FiberId",_tag:this._tag,id:this.id,startTimeMillis:this.startTimeMillis}}[K](){return this.toJSON()}}class Vs{left;right;[Ps]=Ps;_tag=Hs;constructor(t,e){this.left=t,this.right=e}_hash;[F](){return o(P(`${qs}-${this._tag}`),L(R(this.left)),L(R(this.right)),H(this))}[Y](t){return Ks(t)&&t._tag===Hs&&G(this.left,t.left)&&G(this.right,t.right)}toString(){return X(this.toJSON())}toJSON(){return{_id:"FiberId",_tag:this._tag,left:Q(this.left),right:Q(this.right)}}[K](){return this.toJSON()}}const zs=new Gs,Ks=t=>S(t,Ps),Qs=t(2,((t,e)=>t._tag===Us?e:e._tag===Us?t:new Vs(t,e))),Xs=t=>o(t,xs(zs,((t,e)=>Qs(e)(t)))),Zs=t=>{switch(t._tag){case Us:return Os();case Ws:return Es(t.id);case Hs:return o(Zs(t.left),As(Zs(t.right)))}},ti=l(Symbol.for("effect/Fiber/Id/_fiberCounter"),(()=>Ts(0))),ei=t=>Array.from(Zs(t)).map((t=>`#${t}`)).join(","),ri=()=>{const t=Js(ti);return o(ti,Ds(t+1)),new Bs(t,Date.now())},ni="Die",si="Empty",ii="Fail",ai="Interrupt",oi="Parallel",ci="Sequential",ui="effect/Cause",fi=Symbol.for(ui),hi={[fi]:{_E:t=>t},[F](){return o(R(ui),L(R(Fi(this))),H(this))},[Y](t){return Si(t)&&xi(this,t)},pipe(){return at(this,arguments)},toJSON(){switch(this._tag){case"Empty":return{_id:"Cause",_tag:this._tag};case"Die":return{_id:"Cause",_tag:this._tag,defect:Q(this.defect)};case"Interrupt":return{_id:"Cause",_tag:this._tag,fiberId:this.fiberId.toJSON()};case"Fail":return{_id:"Cause",_tag:this._tag,failure:Q(this.error)};case"Sequential":case"Parallel":return{_id:"Cause",_tag:this._tag,left:Q(this.left),right:Q(this.right)}}},toString(){return Hi(this)},[K](){return this.toJSON()}},li=(()=>{const t=Object.create(hi);return t._tag=si,t})(),bi=t=>{const e=Object.create(hi);return e._tag=ii,e.error=t,e},di=t=>{const e=Object.create(hi);return e._tag=ni,e.defect=t,e},pi=t=>{const e=Object.create(hi);return e._tag=ai,e.fiberId=t,e},gi=(t,e)=>{const r=Object.create(hi);return r._tag=oi,r.left=t,r.right=e,r},yi=(t,e)=>{const r=Object.create(hi);return r._tag=ci,r.left=t,r.right=e,r},Si=t=>S(t,fi),_i=t=>t._tag===ni,mi=t=>t._tag===si||Ui(t,!0,((t,e)=>{switch(e._tag){case si:return ie(t);case ni:case ii:case ai:return ie(!1);default:return se()}})),wi=t=>oe(ji(t)),Ii=t=>Wi(void 0,Ji)(t),vi=t=>Br(Ui(t,Pr(),((t,e)=>e._tag===ii?ie(o(t,Zr(e.error))):se()))),Oi=t=>Br(Ui(t,Pr(),((t,e)=>e._tag===ni?ie(o(t,Zr(e.defect))):se()))),Ci=t=>Ui(t,Os(),((t,e)=>e._tag===ai?ie(o(t,Ns(e.fiberId))):se())),Ei=t=>{const e=(t=>Ti(t,(t=>t._tag===ii?ie(t.error):se())))(t);switch(e._tag){case"None":return Kt(t);case"Some":return Qt(e.value)}},Mi=t=>Pi(t,{onEmpty:ie(li),onFail:de(bi),onDie:t=>ie(di(t)),onInterrupt:t=>ie(pi(t)),onSequential:ye(yi),onParallel:ye(gi)}),ji=t=>Ti(t,(t=>t._tag===ai?ie(t.fiberId):se())),Ni=t=>Pi(t,{onEmpty:li,onFail:()=>li,onDie:di,onInterrupt:pi,onSequential:yi,onParallel:gi}),$i=t=>Pi(t,{onEmpty:li,onFail:di,onDie:di,onInterrupt:pi,onSequential:yi,onParallel:gi}),ki=t(2,((t,e)=>Ai(t,(t=>bi(e(t)))))),Ai=t(2,((t,e)=>Pi(t,{onEmpty:li,onFail:t=>e(t),onDie:t=>di(t),onInterrupt:t=>pi(t),onSequential:(t,e)=>yi(t,e),onParallel:(t,e)=>gi(t,e)}))),xi=(t,e)=>{let r=Wr(t),n=Wr(e);for(;on(r)&&on(n);){const[t,e]=o(fn(r),Ui([Os(),Pr()],(([t,e],r)=>{const[n,s]=Li(r);return ie([o(t,As(n)),o(e,rn(s))])}))),[s,i]=o(fn(n),Ui([Os(),Pr()],(([t,e],r)=>{const[n,s]=Li(r);return ie([o(t,As(n)),o(e,rn(s))])})));if(!G(t,s))return!1;r=e,n=i}return!0},Fi=t=>Ri(Wr(t),Pr()),Ri=(t,e)=>{for(;;){const[r,n]=o(t,Ze([Os(),Pr()],(([t,e],r)=>{const[n,s]=Li(r);return[o(t,As(n)),o(e,rn(s))]}))),s=js(r)>0?o(e,Zr(r)):e;if(an(n))return Br(s);t=n,e=s}throw new Error(v("Cause.flattenCauseLoop"))},Ti=t(2,((t,e)=>{const r=[t];for(;r.length>0;){const t=r.pop(),n=e(t);switch(n._tag){case"None":switch(t._tag){case ci:case oi:r.push(t.right),r.push(t.left)}break;case"Some":return n}}return se()})),Li=t=>{let e=t;const r=[];let n=Os(),s=Pr();for(;void 0!==e;)switch(e._tag){case si:if(0===r.length)return[n,s];e=r.pop();break;case ii:if(n=Ns(n,Ur(e._tag,e.error)),0===r.length)return[n,s];e=r.pop();break;case ni:if(n=Ns(n,Ur(e._tag,e.defect)),0===r.length)return[n,s];e=r.pop();break;case ai:if(n=Ns(n,Ur(e._tag,e.fiberId)),0===r.length)return[n,s];e=r.pop();break;case ci:switch(e.left._tag){case si:e=e.right;break;case ci:e=yi(e.left.left,yi(e.left.right,e.right));break;case oi:e=gi(yi(e.left.left,e.right),yi(e.left.right,e.right));break;default:s=Zr(s,e.right),e=e.left}break;case oi:r.push(e.right),e=e.left}throw new Error(v("Cause.evaluateCauseLoop"))},Ji={emptyCase:n,failCase:s,dieCase:s,interruptCase:n,sequentialCase:(t,e,r)=>e&&r,parallelCase:(t,e,r)=>e&&r},Di="SequentialCase",qi="ParallelCase",Pi=t(2,((t,{onDie:e,onEmpty:r,onFail:n,onInterrupt:s,onParallel:i,onSequential:a})=>Wi(t,void 0,{emptyCase:()=>r,failCase:(t,e)=>n(e),dieCase:(t,r)=>e(r),interruptCase:(t,e)=>s(e),sequentialCase:(t,e,r)=>a(e,r),parallelCase:(t,e,r)=>i(e,r)}))),Ui=t(3,((t,e,r)=>{let n=e,s=t;const i=[];for(;void 0!==s;){const t=r(n,s);switch(n=oe(t)?t.value:n,s._tag){case ci:case oi:i.push(s.right),s=s.left;break;default:s=void 0}void 0===s&&i.length>0&&(s=i.pop())}return n})),Wi=t(3,((t,e,r)=>{const n=[t],s=[];for(;n.length>0;){const t=n.pop();switch(t._tag){case si:s.push(Kt(r.emptyCase(e)));break;case ii:s.push(Kt(r.failCase(e,t.error)));break;case ni:s.push(Kt(r.dieCase(e,t.defect)));break;case ai:s.push(Kt(r.interruptCase(e,t.fiberId)));break;case ci:n.push(t.right),n.push(t.left),s.push(Qt({_tag:Di}));break;case oi:n.push(t.right),n.push(t.left),s.push(Qt({_tag:qi}))}}const i=[];for(;s.length>0;){const t=s.pop();switch(t._tag){case"Left":switch(t.left._tag){case Di:{const t=i.pop(),n=i.pop(),s=r.sequentialCase(e,t,n);i.push(s);break}case qi:{const t=i.pop(),n=i.pop(),s=r.parallelCase(e,t,n);i.push(s);break}}break;case"Right":i.push(t.right)}}if(0===i.length)throw new Error("BUG: Cause.reduceWithContext - please report an issue at https://github.com/Effect-TS/effect/issues");return i.pop()})),Hi=(t,e)=>Ii(t)?"All fibers interrupted without errors.":Xi(t).map((function(t){return!0!==e?.renderErrorCause||void 0===t.cause?t.stack:`${t.stack} {\n${Yi(t.cause," ")}\n}`})).join("\n"),Yi=(t,e)=>{const r=t.stack.split("\n");let n=`${e}[cause]: ${r[0]}`;for(let t=1,s=r.length;t<s;t++)n+=`\n${e}${r[t]}`;return t.cause&&(n+=` {\n${Yi(t.cause,`${e} `)}\n${e}}`),n},Gi=t=>{const e="object"==typeof t&&null!==t,r=Error.stackTraceLimit;Error.stackTraceLimit=1;const n=new Error(Bi(t),e&&"cause"in t&&void 0!==t.cause?{cause:Gi(t.cause)}:void 0);return Error.stackTraceLimit=r,""===n.message&&(n.message="An error has occurred"),Error.stackTraceLimit=r,n.name=t instanceof Error?t.name:"Error",e&&(Qi in t&&(n.span=t[Qi]),Object.keys(t).forEach((e=>{e in n||(n[e]=t[e])}))),n.stack=Ki(`${n.name}: ${n.message}`,t instanceof Error&&t.stack?t.stack:"",n.span),n},Bi=t=>{if("string"==typeof t)return t;if("object"==typeof t&&null!==t&&t instanceof Error)return t.message;try{if(S(t,"toString")&&g(t.toString)&&t.toString!==Object.prototype.toString&&t.toString!==globalThis.Array.prototype.toString)return t.toString()}catch{}return tt(t)},Vi=/\((.*)\)/g,zi=l("effect/Tracer/spanToTrace",(()=>new WeakMap)),Ki=(t,e,r)=>{const n=[t],s=e.startsWith(t)?e.slice(t.length).split("\n"):e.split("\n");for(let t=1;t<s.length;t++)if(s[t].includes(" at new BaseEffectError")||s[t].includes(" at new YieldableError"))t++;else{if(s[t].includes("Generator.next"))break;if(s[t].includes("effect_internal_function"))break;n.push(s[t].replace(/at .*effect_instruction_i.*\((.*)\)/,"at $1").replace(/EffectPrimitive\.\w+/,"<anonymous>"))}if(r){let t=r,e=0;for(;t&&"Span"===t._tag&&e<10;){const r=zi.get(t);if("function"==typeof r){const e=r();if("string"==typeof e){const r=e.matchAll(Vi);let s=!1;for(const[,e]of r)s=!0,n.push(` at ${t.name} (${e})`);s||n.push(` at ${t.name} (${e.replace(/^at /,"")})`)}else n.push(` at ${t.name}`)}else n.push(` at ${t.name}`);t=be(t.parent),e++}}return n.join("\n")},Qi=Symbol.for("effect/SpanAnnotation"),Xi=t=>Wi(t,void 0,{emptyCase:()=>[],dieCase:(t,e)=>[Gi(e)],failCase:(t,e)=>[Gi(e)],interruptCase:()=>[],parallelCase:(t,e,r)=>[...e,...r],sequentialCase:(t,e,r)=>[...e,...r]}),Zi=t=>t.replace(/[\s="]/g,"_"),ta=t=>e=>`${Zi(e.label)}=${t-e.startTime}ms`,ea=jt,ra=At;class na extends ra{}const sa=Symbol.for("effect/Micro"),ia=Symbol.for("effect/Micro/MicroExit"),aa=Symbol.for("effect/Micro/MicroCause"),oa={_E:e};class ca extends globalThis.Error{_tag;traces;[aa];constructor(t,e,r){const n=`MicroCause.${t}`;let s,i,a;if(e instanceof globalThis.Error){s=`(${n}) ${e.name}`,i=e.message;const t=i.split("\n").length;a=e.stack?`(${n}) ${e.stack.split("\n").slice(0,t+3).join("\n")}`:`${s}: ${i}`}else s=n,i=Z(e,0),a=`${s}: ${i}`;r.length>0&&(a+=`\n ${r.join("\n ")}`),super(i),this._tag=t,this.traces=r,this[aa]=oa,this.name=s,this.stack=a}pipe(){return at(this,arguments)}toString(){return this.stack}[K](){return this.stack}}class ua extends ca{error;constructor(t,e=[]){super("Fail",t,e),this.error=t}}class fa extends ca{defect;constructor(t,e=[]){super("Die",t,e),this.defect=t}}class ha extends ca{constructor(t=[]){super("Interrupt","interrupted",t)}}const la=(t=[])=>new ha(t),ba=Symbol.for("effect/Micro/MicroFiber"),da={_A:e,_E:e};class pa{context;interruptible;[ba];_stack=[];_observers=[];_exit;_children;currentOpCount=0;constructor(t,e=!0){this.context=t,this.interruptible=e,this[ba]=da}getRef(t){return(e=this.context).unsafeMap.has((r=t).key)?e.unsafeMap.get(r.key):Sr(r);var e,r}addObserver(t){return this._exit?(t(this._exit),a):(this._observers.push(t),()=>{const e=this._observers.indexOf(t);e>=0&&this._observers.splice(e,1)})}_interrupted=!1;unsafeInterrupt(){this._exit||(this._interrupted=!0,this.interruptible&&this.evaluate(Wa))}unsafePoll(){return this._exit}evaluate(t){if(this._exit)return;if(void 0!==this._yielded){const t=this._yielded;this._yielded=void 0,t()}const e=this.runLoop(t);if(e===va)return;const r=ga.interruptChildren&&ga.interruptChildren(this);if(void 0!==r)return this.evaluate(Ja(r,(()=>e)));this._exit=e;for(let t=0;t<this._observers.length;t++)this._observers[t](e);this._observers.length=0}runLoop(t){let e=!1,r=t;this.currentOpCount=0;try{for(;;){if(this.currentOpCount++,!e&&this.getRef(Qa).shouldYield(this)){e=!0;const t=r;r=Ja(Fa,(()=>t))}if(r=r[_a](this),r===va){const t=this._yielded;return ia in t?(this._yielded=void 0,t):va}}}catch(t){return S(r,_a)?Ha(t):Ha(`MicroFiber.runLoop: Not a valid effect: ${String(r)}`)}}getCont(t){for(;;){const e=this._stack.pop();if(!e)return;const r=e[Ia]&&e[Ia](this);if(r)return{[t]:r};if(e[t])return e}}_yielded=void 0;yieldWith(t){return this._yielded=t,va}children(){return this._children??=new Set}}const ga=l("effect/Micro/fiberMiddleware",(()=>({interruptChildren:void 0}))),ya=Symbol.for("effect/Micro/identifier"),Sa=Symbol.for("effect/Micro/args"),_a=Symbol.for("effect/Micro/evaluate"),ma=Symbol.for("effect/Micro/successCont"),wa=Symbol.for("effect/Micro/failureCont"),Ia=Symbol.for("effect/Micro/ensureCont"),va=Symbol.for("effect/Micro/Yield"),Oa={_A:e,_E:e,_R:e},Ca={...ea,_op:"Micro",[sa]:Oa,pipe(){return at(this,arguments)},[Symbol.iterator](){return new O(new j(this))},toJSON(){return{_id:"Micro",op:this[ya],...Sa in this?{args:this[Sa]}:void 0}},toString(){return X(this)},[K](){return X(this)}};function Ea(){return Ha("Micro.evaluate: Not implemented")}const Ma=t=>({...Ca,[ya]:t.op,[_a]:t.eval??Ea,[ma]:t.contA,[wa]:t.contE,[Ia]:t.ensure}),ja=t=>{const e=Ma(t);return function(){const r=Object.create(e);return r[Sa]=!1===t.single?arguments:arguments[0],r}},Na=t=>{const e={...Ma(t),[ia]:ia,_tag:t.op,get[t.prop](){return this[Sa]},toJSON(){return{_id:"MicroExit",_tag:t.op,[t.prop]:this[Sa]}},[Y](e){return qa(e)&&e._tag===t.op&&G(this[Sa],e[Sa])},[F](){return H(this,L(P(t.op))(R(this[Sa])))}};return function(t){const r=Object.create(e);return r[Sa]=t,r[ma]=void 0,r[wa]=void 0,r[Ia]=void 0,r}},$a=Na({op:"Success",prop:"value",eval(t){const e=t.getCont(ma);return e?e[ma](this[Sa],t):t.yieldWith(this)}}),ka=Na({op:"Failure",prop:"cause",eval(t){let e=t.getCont(wa);for(;"Interrupt"===this[Sa]._tag&&e&&t.interruptible;)e=t.getCont(wa);return e?e[wa](this[Sa],t):t.yieldWith(this)}}),Aa=t=>ka(((t,e=[])=>new ua(t,e))(t)),xa=ja({op:"Suspend",eval(t){return this[Sa]()}}),Fa=ja({op:"Yield",eval(t){let e=!1;return t.getRef(Qa).scheduleTask((()=>{e||t.evaluate(Ya)}),this[Sa]??0),t.yieldWith((()=>{e=!0}))}})(0),Ra=$a(void 0),Ta=t=>xa((()=>{try{return $a(t.try())}catch(e){return Aa(t.catch(e))}})),La=ja({op:"WithMicroFiber",eval(t){return this[Sa](t)}}),Ja=t(2,((t,e)=>{const r=Object.create(Da);return r[Sa]=t,r[ma]=e,r})),Da=Ma({op:"OnSuccess",eval(t){return t._stack.push(this),this[Sa]}}),qa=t=>S(t,ia),Pa=$a,Ua=ka,Wa=Ua(la()),Ha=t=>Ua(((t,e=[])=>new fa(t,e))(t)),Ya=Pa(void 0),Ga="setImmediate"in globalThis?globalThis.setImmediate:t=>setTimeout(t,0);class Ba{tasks=[];running=!1;scheduleTask(t,e){this.tasks.push(t),this.running||(this.running=!0,Ga(this.afterScheduled))}afterScheduled=()=>{this.running=!1,this.runTasks()};runTasks(){const t=this.tasks;this.tasks=[];for(let e=0,r=t.length;e<r;e++)t[e]()}shouldYield(t){return t.currentOpCount>=t.getRef(Ka)}flush(){for(;this.tasks.length>0;)this.runTasks()}}const Va=t(2,((t,e)=>La((r=>{const n=r.context;return r.context=e(n),to(t,(()=>(r.context=n,Ra)))})))),za=t(2,((t,e)=>Va(t,kr(e))));class Ka extends(xr()("effect/Micro/currentMaxOpsBeforeYield",{defaultValue:()=>2048})){}class Qa extends(xr()("effect/Micro/currentScheduler",{defaultValue:()=>new Ba})){}const Xa=t(2,((t,e)=>{const r=Object.create(Za);return r[Sa]=t,r[ma]=e.onSuccess,r[wa]=e.onFailure,r})),Za=Ma({op:"OnSuccessAndFailure",eval(t){return t._stack.push(this),this[Sa]}}),to=t(2,((t,e)=>no((r=>Xa(r(t),{onFailure:t=>Ja(e(Ua(t)),(()=>ka(t))),onSuccess:t=>Ja(e(Pa(t)),(()=>$a(t)))}))))),eo=ja({op:"SetInterruptible",ensure(t){if(t.interruptible=this[Sa],t._interrupted&&t.interruptible)return()=>Wa}}),ro=t=>La((e=>e.interruptible?t:(e.interruptible=!0,e._stack.push(eo(!1)),e._interrupted?Wa:t))),no=t=>La((r=>r.interruptible?(r.interruptible=!1,r._stack.push(eo(!0)),t(ro)):t(e))),so=t=>{const e=new pa(Qa.context(new Ba));return e.evaluate(t),e},io=t=>(t=>new Promise((e=>{so(t).addObserver(e)})))(t).then((t=>{if("Failure"===t._tag)throw t.cause;return t.value})),ao=function(){class t extends globalThis.Error{}return Object.assign(t.prototype,Ca,Nt,{[ya]:"Failure",[_a](){return Aa(this)},toString(){return this.message?`${this.name}: ${this.message}`:this.name},toJSON(){return{...this}},[K](){const t=this.stack;return t?`${this.toString()}\n${t.split("\n").slice(1).join("\n")}`:this.toString()}}),t}(),oo=function(){return class extends ao{constructor(t){super(),t&&Object.assign(this,t)}}}(),co=t=>{class e extends oo{_tag=t}return e.prototype.name=t,e},uo=Symbol.for("effect/Logger"),fo={_Message:t=>t,_Output:t=>t},ho=t=>({[uo]:fo,log:t,pipe(){return at(this,arguments)}}),lo=/^[^\s"=]*$/,bo=(t,e)=>({annotations:r,cause:n,date:s,fiberId:i,logLevel:a,message:o,spans:c})=>{const u=(e,r)=>`${Zi(e)}=${(e=>e.match(lo)?e:t(e))(r)}`,f=(t,e)=>" "+u(t,e);let h=u("timestamp",s.toISOString());h+=f("level",a.label),h+=f("fiber",ei(i));const l=(b=o,Array.isArray(b)?b:[b]);var b;for(let t=0;t<l.length;t++)h+=f("message",Z(l[t],e));(t=>t._tag===si)(n)||(h+=f("cause",Hi(n,{renderErrorCause:!0})));for(const t of c)h+=" "+ta(s.getTime())(t);for(const[t,n]of r)h+=f(t,Z(n,e));return h},po=ho(bo((t=>`"${t.replace(/\\([\s\S])|(")/g,"\\$1$2")}"`)));"object"==typeof process&&null!==process&&"object"==typeof process.stdout&&null!==process.stdout&&process;export{Ns as $,Kn as A,Bn as B,Gn as C,rs as D,is as E,Xn as F,Hn as G,P as H,X as I,W as J,we as K,u as L,Q as M,K as N,er as O,G as P,Wr as Q,on as R,Nt as S,co as T,fn as U,dn as V,Zr as W,lr as X,xs as Y,Ms as Z,$s as _,Kt as a,mt as a$,Te as a0,Ce as a1,Ve as a2,ke as a3,Fe as a4,r as a5,rn as a6,he as a7,de as a8,Xr as a9,Ci as aA,gt as aB,Oi as aC,$i as aD,vi as aE,un as aF,pi as aG,Js as aH,Ds as aI,l as aJ,fe as aK,ot as aL,Hr as aM,Gr as aN,Br as aO,Ze as aP,_e as aQ,yi as aR,I as aS,yt as aT,kr as aU,kt as aV,li as aW,di as aX,wt as aY,Hi as aZ,oe as a_,Pr as aa,ct as ab,Mt as ac,T as ad,j as ae,ht as af,ft as ag,y as ah,Qi as ai,bi as aj,Ei as ak,v as al,dt as am,_t as an,ut as ao,o as ap,L as aq,R as ar,lt as as,bt as at,A as au,ie as av,se as aw,Ts as ax,$t as ay,Ii as az,Zt as b,Mi as b$,St as b0,Cr as b1,Be as b2,gi as b3,V as b4,vr as b5,s as b6,sr as b7,ge as b8,$e as b9,xe as bA,Re as bB,ae as bC,be as bD,_ as bE,ks as bF,Os as bG,As as bH,Es as bI,Er as bJ,w as bK,Ls as bL,mi as bM,js as bN,st as bO,pt as bP,Nr as bQ,so as bR,za as bS,Ni as bT,It as bU,Z as bV,N as bW,$r as bX,ho as bY,po as bZ,wi as b_,Ie as ba,ze as bb,Xt as bc,De as bd,ve as be,Ke as bf,Ae as bg,tr as bh,ee as bi,Je as bj,pe as bk,Ne as bl,Cs as bm,C as bn,xr as bo,Mr as bp,Ee as bq,na as br,a as bs,jr as bt,zr as bu,me as bv,nr as bw,Oe as bx,le as by,Ge as bz,ue as c,ki as c0,_i as c1,cn as c2,Xi as c3,Or as c4,Ar as c5,Ti as c6,Ue as c7,an as c8,sn as c9,te as ca,Qr as cb,pn as cc,hn as cd,bn as ce,nn as cf,t as d,d as e,p as f,re as g,S as h,e as i,b as j,F as k,Qt as l,ce as m,H as n,U as o,at as p,zs as q,io as r,Y as s,Ta as t,Qs as u,ri as v,ei as w,Xs as x,Wn as y,os as z}
@@ -0,0 +1 @@
1
+ import{g as M,r as N,h as e,H as I}from"./p-saW7O-EW.js";import{R as j,A as D}from"./p-BxHnZA0M.js";import{g,a}from"./p-DIrAQ4IB.js";export{lmvz_menuitem}from"./p-9212bd23.entry.js";import"./p-DYaffOLo.js";import"./p-CN0JX9-m.js";class u{host;elements=[];constructor(M){this.host=M}hostDidRender(){this.host.el.addEventListener("keydown",this.handleKeydown)}updateElements(M){this.elements=M}handleKeydown=M=>{const{key:N}=M;if(!["ArrowDown","ArrowRight","ArrowUp","ArrowLeft"].includes(N))return;const e=g(document),I=this.getNextFocusableElement(e,["ArrowDown","ArrowRight"].includes(N)?"down":"up");I&&(M.preventDefault(),I.focus?.())};getNextFocusableElement(M,N){if(!M)return;const{elements:e}=this,I=e.indexOf(M);if(-1===I)return;let j;if("down"===N?j=(I+1)%e.length:"up"===N&&(j=(I-1+e.length)%e.length),null==j)return;const D=e[j];return a(D)?D:this.getNextFocusableElement(D,N)}}const i=class extends j{get el(){return M(this)}get validationEl(){return this.el}primarySlot;secondarySlot;secondaryNav;keyboardNavigationController=new u(this);get primaryMenuitems(){return this.primarySlot?.assignedElements({flatten:!1})||[]}get secondaryMenuitems(){return this.secondarySlot?.assignedElements({flatten:!0})||[]}get role(){return"banner"}lmvzActiveNav;get secondarySlotName(){return`connect-nav-${this.lmvzActiveNav}`}constructor(M){super(),N(this,M),this.addController(new D(this,{reValidateOnPropChanges:!0})),this.addController(this.keyboardNavigationController)}handleActiveNavChange(){this.updateElementsActive()}componentDidLoad(){this.primarySlot?.addEventListener("slotchange",this.handlePrimaryNavItemsChange.bind(this)),this.handlePrimaryNavItemsChange(),this.secondarySlot?.addEventListener("slotchange",this.handleSecondaryNavItemsChange.bind(this)),super.componentDidLoad()}handlePrimaryNavItemsChange(){const M=this.primaryMenuitems;M.length?(M.forEach((M=>{M.setAttribute("aria-haspopup","true"),M.setAttribute("aria-controls","nav-secondary")})),this.updateElementsActive(),this.updateKeyboardNavSubjects()):console.warn("Primary slot has no assigned elements. Please add navigation items to the primary slot.")}handleSecondaryNavItemsChange(){this.secondaryMenuitems.length&&this.updateKeyboardNavSubjects()}updateKeyboardNavSubjects(){this.keyboardNavigationController.updateElements([...this.primaryMenuitems,...this.secondaryMenuitems])}updateElementsActive(){const M=this.primaryMenuitems;if(!M.length)return;let N="";M.forEach((M=>{const e=M.id===this.lmvzActiveNav;e&&(N=M.textContent||M.id),M.setAttribute("aria-expanded",e?"true":"false")})),N&&this.secondaryNav?.setAttribute("aria-label",`Untermenü für ${N}`)}delegateFocus(){const M=this.primaryMenuitems[0];M&&M.focus()}render(){return e(I,{key:"74061d97a6d4cdec1f445a91b9e819bb12565681",onFocus:this.delegateFocus.bind(this)},e("div",{key:"af7f08ff48a20b7d36df5ee233da7027cd30a047",class:"brand"},e("slot",{key:"46be4fcf2798ac374ac967bc2742260c4d7e082b",name:"brand"},e("img",{key:"3ee79f9732758a6ca5dd6e8264c67707917b358b",id:"fallback-logo-lmvz",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYiIGhlaWdodD0iNzIiIHZpZXdCb3g9IjAgMCA0NiA3MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzI3Ml80MDUpIj4KPHBhdGggZD0iTTEyLjUgMjAuNjVDMTMuMSAyMC42NSAxNC4yIDIwLjM1IDE0LjcgMjAuMzVDMTYuMSAyMC4zNSAxNy4yIDIxLjQ1IDE3LjIgMjIuODVDMTcuMiAyNC4yNSAxNi4xIDI1LjM1IDE0LjcgMjUuMzVIMi44QzEuMiAyNS4zNSAwIDI0LjE1IDAgMjIuNTVDMCAyMS45NSAwLjIgMjAuNjUgMC4yIDIwLjA1VjUuODQ5OTlDMC4yIDUuMTQ5OTkgMCAzLjk0OTk5IDAgMy4zNDk5OUMwIDEuNzQ5OTkgMS4yIDAuNTQ5OTg4IDIuOCAwLjU0OTk4OEM0LjMgMC41NDk5ODggNS42IDEuNzQ5OTkgNS42IDMuMzQ5OTlDNS42IDMuOTQ5OTkgNS40IDUuMTQ5OTkgNS40IDUuODQ5OTlWMjAuNTVIMTIuNVYyMC42NVpNMjIuMSAyMi43NUMyMi4xIDIyLjE1IDIyLjMgMjAuOTUgMjIuMyAyMC4yNVY1Ljg0OTk5QzIyLjMgNS4xNDk5OSAyMi4xIDMuOTQ5OTkgMjIuMSAzLjQ0OTk5QzIyLjEgMS45NDk5OSAyMy4yIDAuNzQ5OTg4IDI0LjYgMC43NDk5ODhIMjUuMkMyNi40IDAuNzQ5OTg4IDI3LjIgMS41NDk5OSAyNy42IDIuNjQ5OTlMMjggMy40NDk5OUwzMi45IDE0LjA1QzMzLjMgMTQuOTUgMzMuNyAxNi4wNSAzNCAxNi43NUMzNC4zIDE2LjA1IDM0LjcgMTQuOTUgMzUuMSAxNC4wNUw0MCAzLjU0OTk5TDQwLjMgMi41NDk5OUM0MC43IDEuNTQ5OTkgNDEuNSAwLjY0OTk4OCA0Mi42IDAuNjQ5OTg4SDQzLjJDNDQuNyAwLjY0OTk4OCA0NS43IDEuODQ5OTkgNDUuNyAzLjM0OTk5QzQ1LjcgMy45NDk5OSA0NS41IDUuMTQ5OTkgNDUuNSA1Ljc0OTk5VjIwLjE1QzQ1LjUgMjAuODUgNDUuNyAyMi4wNSA0NS43IDIyLjY1QzQ1LjcgMjQuMjUgNDQuNSAyNS40NSA0MyAyNS40NUM0MS40IDI1LjQ1IDQwLjMgMjQuMjUgNDAuMyAyMi42NUM0MC4zIDIxLjk1IDQwLjQgMjAuNzUgNDAuNCAyMC4xNUw0MC42IDE0LjA1QzQwLjYgMTMuMTUgNDAuNyAxMS43NSA0MC43IDEwLjY1TDM3IDE5LjA1QzM2LjcgMTkuNzUgMzYuNiAxOS45NSAzNi40IDIwLjM1QzM2IDIxLjI1IDM1LjMgMjEuODUgMzMuOSAyMS44NUMzMi41IDIxLjg1IDMxLjggMjEuMjUgMzEuNCAyMC40NUMzMS4yIDIwLjA1IDMxLjIgMTkuNzUgMzAuOCAxOS4wNUwyNyAxMC43NUMyNyAxMC43NSAyNy4xIDEzLjE1IDI3LjIgMTQuMDVMMjcuNCAyMC4xNUMyNy40IDIwLjg1IDI3LjUgMjEuOTUgMjcuNSAyMi42NUMyNy41IDI0LjI1IDI2LjQgMjUuNDUgMjQuOCAyNS40NUMyMy4zIDI1LjU1IDIyLjEgMjQuMjUgMjIuMSAyMi43NVpNMjguNyAzMi45NUMyOS4xIDMyLjk1IDMwLjIgMzMuMTUgMzAuNyAzMy4xNUg0MS44QzQyLjMgMzMuMTUgNDMuMiAzMi45NSA0My43IDMyLjk1QzQ0LjkgMzIuOTUgNDUuOCAzMy44NSA0NS44IDM1LjA1QzQ1LjggMzYuMTUgNDQuOSAzNy4xNSA0My43IDM3LjE1QzQzLjMgMzcuMTUgNDIuMyAzNi45NSA0MS44IDM2Ljk1SDMwLjhDMzAuMyAzNi45NSAyOS4yIDM3LjE1IDI4LjggMzcuMTVDMjcuNiAzNy4xNSAyNi43IDM2LjI1IDI2LjcgMzUuMDVDMjYuNiAzMy45NSAyNy41IDMyLjk1IDI4LjcgMzIuOTVaTTIuMSA2Ny4yNUMyLjUgNjcuMjUgMy42IDY3LjQ1IDQuMSA2Ny40NUgxOC41QzE5IDY3LjQ1IDE5LjkgNjcuMjUgMjAuNCA2Ny4yNUMyMS42IDY3LjI1IDIyLjUgNjguMTUgMjIuNSA2OS4zNUMyMi41IDcwLjQ1IDIxLjYgNzEuNDUgMjAuNCA3MS40NUMyMCA3MS40NSAxOSA3MS4yNSAxOC41IDcxLjI1SDQuMUMzLjYgNzEuMjUgMi41IDcxLjQ1IDIuMSA3MS40NUMwLjkgNzEuNDUgMCA3MC41NSAwIDY5LjM1QzAgNjguMjUgMC45IDY3LjI1IDIuMSA2Ny4yNVpNMjEuOSAzNS42NUMyMS45IDM1Ljk1IDIxLjggMzYuMzUgMjEuNiAzNi43NUMyMS4zIDM3LjQ1IDIwLjkgMzguMzUgMjAuNyAzOC44NUwxNC43IDU0LjY1QzE0LjUgNTUuMDUgMTQuNCA1NS41NSAxNC4yIDU2LjM1QzEzLjggNTcuNjUgMTIuNiA1OC4yNSAxMS4yIDU4LjI1SDEwLjhDOS40IDU4LjI1IDguMiA1Ny43NSA3LjggNTYuMzVDNy42IDU1LjU1IDcuNCA1NS4xNSA3LjIgNTQuNjVMMS4yIDM4Ljg1QzEgMzguMzUgMC42IDM3LjU1IDAuMiAzNi44NUMwLjEgMzYuNDUgMCAzNS45NSAwIDM1LjY1QzAgMzQuMTUgMS4yIDMyLjg1IDIuOCAzMi44NUMzLjkgMzIuODUgNSAzMy41NSA1LjMgMzQuNzVDNS41IDM1LjU1IDUuNSAzNi4xNSA2IDM3LjU1TDEwLjIgNDkuNDVDMTAuNSA1MC4zNSAxMC45IDUxLjQ1IDExLjEgNTIuMzVDMTEuMyA1MS40NSAxMS42IDUwLjQ1IDExLjkgNDkuNTVMMTYgMzcuNTVDMTYuNSAzNi4wNSAxNi40IDM1LjY1IDE2LjcgMzQuODVDMTcuMSAzMy42NSAxOC4xIDMyLjg1IDE5LjMgMzIuODVDMjAuOSAzMi44NSAyMS45IDM0LjE1IDIxLjkgMzUuNjVaTTI5LjcgNzEuNDVDMjguMiA3MS40NSAyNy4yIDcwLjQ1IDI3LjIgNjkuMTVDMjcuMiA2OC43NSAyNy4yIDY4LjI1IDI3LjggNjcuNDVMMzcuNCA1My40NUMzNy45IDUyLjc1IDM4LjUgNTIuMDUgMzkuMSA1MS4zNUgzMi4yQzMxLjUgNTEuMzUgMzAuNyA1MS42NSAzMC4xIDUxLjY1QzI4LjcgNTEuNjUgMjcuNiA1MC43NSAyNy42IDQ5LjM1QzI3LjYgNDcuOTUgMjguNyA0Ni45NSAzMC4xIDQ2Ljk1SDQyLjdDNDQuMiA0Ni45NSA0NS4yIDQ3Ljg1IDQ1LjIgNDkuMjVDNDUuMiA0OS42NSA0NSA1MC4zNSA0NC41IDUxLjA1TDM1LjIgNjQuODVDMzQuNyA2NS42NSAzNC4xIDY2LjQ1IDMzLjUgNjcuMDVINDEuMUM0MS45IDY3LjA1IDQyLjcgNjYuNzUgNDMuMyA2Ni43NUM0NC43IDY2Ljc1IDQ1LjcgNjcuNzUgNDUuNyA2OS4wNUM0NS43IDcwLjU1IDQ0LjUgNzEuNTUgNDMuMiA3MS41NUgyOS43VjcxLjQ1WiIgZmlsbD0iYmxhY2siLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yNzJfNDA1Ij4KPHJlY3Qgd2lkdGg9IjQ2IiBoZWlnaHQ9IjcyIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",alt:"Lehrmittelverlag Zürich"}))),e("nav",{key:"8f37883454544a384bb35a151c4e24bb12c35f40","aria-label":"Hauptnavigation"},e("div",{key:"a3166ad7e924dd72148d05c01160c889c8f07529",role:"menubar",class:"primary-menubar"},e("slot",{key:"aa600791e4d8f3463fefbc3b366831e3b3a3eaac",name:"nav-primary",ref:M=>this.primarySlot=M}),e("div",{key:"6471256967f4d14c454205a330b2a97ecfcad7a8",role:"menu",id:"nav-secondary",class:"secondary-menubar",hidden:!this.lmvzActiveNav,ref:M=>this.secondaryNav=M},e("slot",{key:"1b9b461b958e76184938a1c65d032b296894e2dd",name:this.secondarySlotName,ref:M=>this.secondarySlot=M})))),e("div",{key:"019d87472272df09ce99eeed405771229f326f1a",class:"actions"},e("slot",{key:"18035fb0a51a26c96dc687547d17d57118a88e87",name:"actions"})))}static get watchers(){return{lmvzActiveNav:[{handleActiveNavChange:0}]}}};i.style=":host{display:flex;width:100vw;flex-direction:row;align-items:center;box-sizing:border-box;background-color:var(--lmvz-semantic-color-surface-primary, #ffffff);--lmvz-header-x-spacing-level-1:var(--lmvz-dimension-8-28, clamp(0.5rem, 0.2rem + 1.29vw, 1.75rem));--lmvz-header-x-spacing-level-2:var(--lmvz-component-buttongroup-wrapper-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem));padding:var(--lmvz-dimension-8-16, clamp(0.5rem, 0.38rem + 0.52vw, 1rem)) var(--lmvz-header-x-spacing-level-1);gap:var(--lmvz-header-x-spacing-level-1);.brand{display:inline-flex;justify-content:center;align-items:center}#fallback-logo-lmvz{height:34px;width:auto}nav{flex-grow:1}.primary-menubar{display:flex;flex-direction:row;align-items:center}.secondary-menubar{display:flex;flex-direction:row;align-items:center;margin-left:var(--lmvz-header-x-spacing-level-2);padding-left:var(--lmvz-header-x-spacing-level-2);border-left:1px solid var(--lmvz-semantic-color-border-default, #e0e0e0)}}";export{i as lmvz_header}
@@ -0,0 +1 @@
1
+ import{g as i,r as e,h as s,H as t}from"./p-saW7O-EW.js";import{i as o,c as n,a as c}from"./p-Bu4Z_PMf.js";import{r}from"./p-0bL3pydp.js";import{R as a,A as m}from"./p-BxHnZA0M.js";import"./p-DYaffOLo.js";const l=class extends a{intersectionObserver;ariaValidationController=new m(this);get el(){return i(this)}validationEl;icon;weight="medium";size="md";iconset;iconData;visible=!1;ariaLabel;get ariaHidden(){return!this.ariaLabel}constructor(i){super(),e(this,i),this.addController(this.ariaValidationController)}connectedCallback(){this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()})),super.connectedCallback()}disconnectedCallback(){this.intersectionObserver&&"function"==typeof this.intersectionObserver.disconnect&&this.intersectionObserver.disconnect(),this.intersectionObserver=void 0,super.disconnectedCallback()}async loadIconPathData(){const{icon:i,iconset:e,visible:s}=this;i&&s&&(this.iconData=o(i)?await r(n(i)):await c({icon:i,iconset:e}))}componentDidRender(){this.validationEl=this.el.querySelector("svg"),this.ariaValidationController.revalidateAria(),super.componentDidRender()}render(){return s(t,{key:"c1e952e00df287c66c49eb043408514c07c3dc39",role:"img","aria-hidden":`${this.ariaHidden}`,innerHTML:this.iconData})}waitUntilVisible(i,e=50){"undefined"!=typeof window&&window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver((e=>{e.some((e=>!!e.isIntersecting&&(this.intersectionObserver&&"function"==typeof this.intersectionObserver.disconnect&&this.intersectionObserver.disconnect(),this.intersectionObserver=void 0,i(),!0)))}),{rootMargin:`${e}px`}),this.intersectionObserver.observe(this.el)):i()}static get watchers(){return{icon:[{loadIconPathData:0}],iconset:[{loadIconPathData:0}]}}};l.style=".sc-lmvz-icon-h{--lmvz-icon-color:var(--lmvz-component-color, var(--lmvz-semantic-color-on-surface-input-primary, #000000));--lmvz-icon-size:var(--lmvz-component-size, var(--lmvz-component-icon-size-md, clamp(1rem, 0.94rem + 0.26vw, 1.25rem)));display:inline-block;line-height:0;svg{display:block;height:var(--lmvz-icon-size);width:auto}svg path{stroke:var(--lmvz-icon-color);fill:none}}[size='xs'].sc-lmvz-icon-h{svg{--lmvz-icon-size:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem))}}[size='sm'].sc-lmvz-icon-h{svg{--lmvz-icon-size:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.84rem + 0.13vw, 1rem))}}[size='md'].sc-lmvz-icon-h{svg{--lmvz-icon-size:var(--lmvz-component-icon-size-md, clamp(1rem, 0.94rem + 0.26vw, 1.25rem))}}[size='lg'].sc-lmvz-icon-h{svg{--lmvz-icon-size:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.44rem + 0.26vw, 1.75rem))}}[size='inherit'].sc-lmvz-icon-h{svg{height:var(--lmvz-component-size, inherit)}}[weight='light'].sc-lmvz-icon-h{svg path{stroke-width:1}}[weight='medium'].sc-lmvz-icon-h{svg path{stroke-width:1.5}}[weight='bold'].sc-lmvz-icon-h{svg path{stroke-width:2}}[weight='filled'].sc-lmvz-icon-h{svg path{stroke-width:2;fill:var(--lmvz-icon-color)}}";export{l as lmvz_icon}
@@ -1 +1 @@
1
- import{g as t,r as e,c as r,h as i}from"./p-saW7O-EW.js";import{c as o}from"./p-BfTCfPZ1.js";import{R as a,A as n}from"./p-Bkfdgg0T.js";import{c as s}from"./p-DIrAQ4IB.js";import"./p-B3dnXEPG.js";let l=0;const c=class extends a{get el(){return t(this)}get validationEl(){return this.el}lmvzInput;internals;nativeInputElement;inputId="lmvz-input-"+l++;initialValue="";nativeError=!1;errorFromProp=!1;get helperId(){return this.helperText?`${this.inputId}-helper`:void 0}get showErrorMessage(){return this.error&&Boolean(this.errorMessage)}get errorId(){return`${this.inputId}-error`}get describedBy(){const t=[];return this.helperId&&t.push(this.helperId),this.showErrorMessage&&t.push(this.errorId),t.length>0?t.join(" "):void 0}value;label;helperText;placeholder;disabled=!1;readonly=!1;required=!1;name;type="text";errorMessage;autocomplete;inputmode;autocorrect;autocapitalize;spellcheck;autofocus=!1;minlength;maxlength;pattern;min;max;step;form;get error(){return this.errorFromProp||this.nativeError}set error(t){this.errorFromProp=t}async setValue(t){const e=this.nativeInputElement,r=t??"";e&&(e.value=r),this.value=r,this.internals.setFormValue?.(r),this.lmvzInput.emit(r)}async focusInput(){this.nativeInputElement?.focus()}async blurInput(){this.nativeInputElement?.blur()}async select(){this.nativeInputElement?.select()}async checkValidity(){return this.nativeInputElement?.checkValidity?.()??!1}async reportValidity(){return this.nativeInputElement?.reportValidity?.()??!1}async getInputElement(){return this.nativeInputElement||await new Promise((t=>s(this.el,t))),Promise.resolve(this.nativeInputElement)}constructor(t){super(),e(this,t),this.lmvzInput=r(this,"lmvzInput"),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals),this.addController(new n(this,{reValidateOnPropChanges:!0}))}componentWillLoad(){this.initialValue=this.value??"",super.componentWillLoad()}formAssociatedCallback(t){t&&this.internals.setFormValue?.(this.value??"")}formResetCallback(){this.internals.setValidity({}),this.setValue(this.initialValue)}formStateRestoreCallback(t){this.setValue(t)}handleValueChange(t){this.nativeInputElement&&(this.nativeInputElement.value===t||this.setValue(t))}handleDisabledChange(t){t&&this.nativeInputElement&&this.nativeInputElement.blur()}handleInput=t=>{this.setValue(t.target.value)};handleChange=t=>{this.updateNativeError(t.target??this.nativeInputElement)};handleFocus=()=>{};handleBlur=t=>{const e=t.target;e.reportValidity?.()};updateNativeError(t){const e=t??this.nativeInputElement;e&&(this.nativeError=!(e.checkValidity?.()??1))}render(){const t=Boolean(this.value),e=t||Boolean(this.placeholder);return i("div",{key:"3f14adbe321717cdfe305dc623940acb8be194f8",class:o("input-container",{"interaction-filled":t})},i("div",{key:"2cc559cc0ff4da1f8418c510188bcbb93b42da02",class:"input-wrapper"},i("slot",{key:"b41a5179b6d8651a9b60777718f92b32f80fda89",name:"before-input"}),i("div",{key:"4ac81c8d277d6592e1d84f4b3abfffef03843a9c",class:"label-input-group"},i("label",{key:"80b272c3b069a246dcbf26812d2281e436c6cdfa",htmlFor:this.inputId,class:o({floating:e})},this.label,this.required&&i("span",{key:"eb00d3be1a3eddd0661df74cfb2d4b95c75f5eea",class:"required-indicator","aria-hidden":"true"}," ","*")),i("input",{key:"6192c875976e7d21003de29badabd5a910ed0c17",id:this.inputId,ref:t=>this.nativeInputElement=t,type:this.type,min:this.min,max:this.max,step:this.step,value:this.value,name:this.name,placeholder:this.placeholder,disabled:this.disabled,readOnly:this.readonly,required:this.required,form:this.form,autocomplete:this.autocomplete,inputmode:this.inputmode,autocorrect:this.autocorrect,autocapitalize:this.autocapitalize,spellcheck:this.spellcheck,autofocus:this.autofocus,minlength:this.minlength,maxlength:this.maxlength,pattern:this.pattern,"aria-invalid":this.error?"true":"false","aria-required":this.required?"true":"false","aria-describedby":this.describedBy,"aria-errormessage":this.errorId,onInput:this.handleInput,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur})),i("slot",{key:"9a908984ecebead7f08bbd88ed57fa8f30a69b67",name:"after-input"})),i("div",{key:"abe658929d955042358ff24ea2267ae5b7b3484d",id:this.helperId,role:"status"},this.helperText||null),i("div",{key:"61c689c7d8ab3bbb7c62dc7a227c35441b4bbbd8",id:this.errorId,role:"alert"},this.showErrorMessage&&this.errorMessage||null))}static get formAssociated(){return!0}static get watchers(){return{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}}};c.style="@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } .sc-lmvz-input-h { display: block; font-family: var(--lmvz-global-font-family-default, Router); --input-radius: var(--lmvz-component-input-radius-default, 999px); --input-bg: var(--lmvz-semantic-color-surface-input-primary, #ffffff); --input-border-color: var(--lmvz-semantic-color-border-default, #e0e0e0); --input-border-color-hover: var(--lmvz-semantic-color-border-hover, #c7c7c7); --input-border-color-focus: var(--lmvz-semantic-color-status-on-active, #0e7ab4); --input-border-width: var(--lmvz-semantic-border-width-default, 1px); --input-height: 48px; --input-padding-x: 16px; --label-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --input-text-color: var(--lmvz-semantic-color-on-surface-input-primary, #000000); --helper-text-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --error-text-color: var(--lmvz-semantic-color-status-on-danger, #e52a31); --label-floating-scale: 0.85; --label-minimized-top: -6px; --label-minimized-bg: var(--input-bg); --label-minimized-padding-x: 4px; --input-disabled-opacity: var(--lmvz-component-input-disabled-opacity, 40%); } .input-container.sc-lmvz-input { display: flex; flex-direction: column; position: relative; width: 100%; } .input-wrapper.sc-lmvz-input { background-color: var(--input-bg); border: var(--input-border-width) solid var(--input-border-color); border-radius: var(--input-radius); display: flex; align-items: center; height: var(--input-height); padding: 0 var(--input-padding-x); position: relative; transition: border-color 0.2s ease; gap: 8px; } [disabled].sc-lmvz-input-h .input-wrapper.sc-lmvz-input { opacity: var(--input-disabled-opacity); cursor: not-allowed; pointer-events: none; } .input-container.sc-lmvz-input:focus-within .input-wrapper.sc-lmvz-input { border-color: var(--input-border-color-focus); outline: 2px solid var(--input-border-color-focus); outline-offset: 2px; } .input-container.sc-lmvz-input:has(input:focus-visible) .input-wrapper.sc-lmvz-input { box-shadow: 0 0 0 3px rgb(0 86 214 / 20%); } [error].sc-lmvz-input-h .input-wrapper.sc-lmvz-input { border-color: var(--error-text-color); } [error].sc-lmvz-input-h:focus-within .input-wrapper.sc-lmvz-input { border-color: var(--error-text-color); outline-color: var(--error-text-color); } .sc-lmvz-input-h:not([disabled]) .input-wrapper.sc-lmvz-input:hover { border-color: var(--input-border-color-hover); } .label-input-group.sc-lmvz-input { position: relative; flex-grow: 1; display: flex; align-items: center; height: 100%; } label.sc-lmvz-input { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--label-color); font-size: 14px; font-family: Router, sans-serif; font-weight: 400; pointer-events: none; transition: all 0.2s ease-out; background-color: transparent; padding: 0; margin: 0; line-height: normal; white-space: nowrap; } label.floating.sc-lmvz-input { top: 0; transform: translateY(-50%) scale(0.85); transform-origin: left top; background-color: var(--label-minimized-bg); padding: 0 var(--label-minimized-padding-x); left: -2px; color: var(--input-text-color); font-weight: 500; } .required-indicator.sc-lmvz-input { color: var(--error-text-color); margin-left: 2px; } input.sc-lmvz-input { border: none; background: transparent; width: 100%; height: 100%; color: var(--input-text-color); font-family: inherit; font-size: 14px; outline: none; padding: 0; margin: 0; font-weight: 400; } input.sc-lmvz-input::placeholder { color: var(--label-color); } div.sc-lmvz-input:empty { display: none; } [role='status'].sc-lmvz-input { padding-top: 8px; padding-left: 12px; font-size: 12px; color: var(--helper-text-color); font-family: Router, sans-serif; font-weight: 500; } [role='alert'].sc-lmvz-input { padding-top: 8px; padding-left: 12px; font-size: 12px; color: var(--error-text-color); font-family: Router, sans-serif; font-weight: 500; } .sc-lmvz-input-s > lmvz-button { --lmvz-button-padding: 4px; }";export{c as lmvz_input}
1
+ import{g as t,r as e,c as r,h as i}from"./p-saW7O-EW.js";import{c as o}from"./p-BfTCfPZ1.js";import{R as a,A as n}from"./p-BxHnZA0M.js";import{c as s}from"./p-DIrAQ4IB.js";import"./p-DYaffOLo.js";let l=0;const c=class extends a{get el(){return t(this)}get validationEl(){return this.el}lmvzInput;internals;nativeInputElement;inputId="lmvz-input-"+l++;initialValue="";nativeError=!1;errorFromProp=!1;get helperId(){return this.helperText?`${this.inputId}-helper`:void 0}get showErrorMessage(){return this.error&&Boolean(this.errorMessage)}get errorId(){return`${this.inputId}-error`}get describedBy(){const t=[];return this.helperId&&t.push(this.helperId),this.showErrorMessage&&t.push(this.errorId),t.length>0?t.join(" "):void 0}value;label;helperText;placeholder;disabled=!1;readonly=!1;required=!1;name;type="text";errorMessage;autocomplete;inputmode;autocorrect;autocapitalize;spellcheck;autofocus=!1;minlength;maxlength;pattern;min;max;step;form;get error(){return this.errorFromProp||this.nativeError}set error(t){this.errorFromProp=t}async setValue(t){const e=this.nativeInputElement,r=t??"";e&&(e.value=r),this.value=r,this.internals.setFormValue?.(r),this.lmvzInput.emit(r)}async focusInput(){this.nativeInputElement?.focus()}async blurInput(){this.nativeInputElement?.blur()}async select(){this.nativeInputElement?.select()}async checkValidity(){return this.nativeInputElement?.checkValidity?.()??!1}async reportValidity(){return this.nativeInputElement?.reportValidity?.()??!1}async getInputElement(){return this.nativeInputElement||await new Promise((t=>s(this.el,t))),Promise.resolve(this.nativeInputElement)}constructor(t){super(),e(this,t),this.lmvzInput=r(this,"lmvzInput"),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals),this.addController(new n(this,{reValidateOnPropChanges:!0}))}componentWillLoad(){this.initialValue=this.value??"",super.componentWillLoad()}formAssociatedCallback(t){t&&this.internals.setFormValue?.(this.value??"")}formResetCallback(){this.internals.setValidity({}),this.setValue(this.initialValue)}formStateRestoreCallback(t){this.setValue(t)}handleValueChange(t){this.nativeInputElement&&(this.nativeInputElement.value===t||this.setValue(t))}handleDisabledChange(t){t&&this.nativeInputElement&&this.nativeInputElement.blur()}handleInput=t=>{this.setValue(t.target.value)};handleChange=t=>{this.updateNativeError(t.target??this.nativeInputElement)};handleFocus=()=>{};handleBlur=t=>{const e=t.target;e.reportValidity?.()};updateNativeError(t){const e=t??this.nativeInputElement;e&&(this.nativeError=!(e.checkValidity?.()??1))}render(){const t=Boolean(this.value),e=t||Boolean(this.placeholder);return i("div",{key:"22be29e5fcd4976fc6c4d125781be00acef0b359",class:o("input-container",{"interaction-filled":t})},i("div",{key:"ffeb620419316976e800b16b4a9fd9538f1efd26",class:"input-wrapper"},i("slot",{key:"2a1a67f7fde0232b2bb5ce3cc228b869e5ac3516",name:"before-input"}),i("div",{key:"3bbe623cae67d376c60a28306164293a712b1bb5",class:"label-input-group"},i("label",{key:"c260b3eb249d5c785fe3b6e223c7428a8c147f50",htmlFor:this.inputId,class:o({floating:e})},this.label,this.required&&i("span",{key:"f43dd77efe7e319428dd72ec8933b7587635e767",class:"required-indicator","aria-hidden":"true"}," ","*")),i("input",{key:"eeb821a74a5ac7aab3fab65a48a37d21a22744e6",id:this.inputId,ref:t=>this.nativeInputElement=t,type:this.type,min:this.min,max:this.max,step:this.step,value:this.value,name:this.name,placeholder:this.placeholder,disabled:this.disabled,readOnly:this.readonly,required:this.required,form:this.form,autocomplete:this.autocomplete,inputmode:this.inputmode,autocorrect:this.autocorrect,autocapitalize:this.autocapitalize,spellcheck:this.spellcheck,autofocus:this.autofocus,minlength:this.minlength,maxlength:this.maxlength,pattern:this.pattern,"aria-invalid":this.error?"true":"false","aria-required":this.required?"true":"false","aria-describedby":this.describedBy,"aria-errormessage":this.errorId,onInput:this.handleInput,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur})),i("slot",{key:"dd36a212c05c43ab2a8249750c14a7475b6d65d3",name:"after-input"})),i("div",{key:"c2aedd67036faf4d3dc459c3c1fab8d07ee5a991",id:this.helperId,role:"status"},this.helperText||null),i("div",{key:"01d2a6d6df9b3804a595711c7b57b6177d311c39",id:this.errorId,role:"alert"},this.showErrorMessage&&this.errorMessage||null))}static get formAssociated(){return!0}static get watchers(){return{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}}};c.style="@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } .sc-lmvz-input-h { display: block; font-family: var(--lmvz-global-font-family-default, Router); --input-radius: var(--lmvz-component-input-radius-default, 999px); --input-bg: var(--lmvz-semantic-color-surface-input-primary, #ffffff); --input-border-color: var(--lmvz-semantic-color-border-default, #e0e0e0); --input-border-color-hover: var(--lmvz-semantic-color-border-hover, #c7c7c7); --input-border-color-focus: var(--lmvz-semantic-color-status-on-active, #0e7ab4); --input-border-width: var(--lmvz-semantic-border-width-default, 1px); --input-height: 48px; --input-padding-x: 16px; --label-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --input-text-color: var(--lmvz-semantic-color-on-surface-input-primary, #000000); --helper-text-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --error-text-color: var(--lmvz-semantic-color-status-on-danger, #e52a31); --label-floating-scale: 0.85; --label-minimized-top: -6px; --label-minimized-bg: var(--input-bg); --label-minimized-padding-x: 4px; --input-disabled-opacity: var(--lmvz-component-input-disabled-opacity, 40%); } .input-container.sc-lmvz-input { display: flex; flex-direction: column; position: relative; width: 100%; } .input-wrapper.sc-lmvz-input { background-color: var(--input-bg); border: var(--input-border-width) solid var(--input-border-color); border-radius: var(--input-radius); display: flex; align-items: center; height: var(--input-height); padding: 0 var(--input-padding-x); position: relative; transition: border-color 0.2s ease; gap: 8px; } [disabled].sc-lmvz-input-h .input-wrapper.sc-lmvz-input { opacity: var(--input-disabled-opacity); cursor: not-allowed; pointer-events: none; } .input-container.sc-lmvz-input:focus-within .input-wrapper.sc-lmvz-input { border-color: var(--input-border-color-focus); outline: 2px solid var(--input-border-color-focus); outline-offset: 2px; } .input-container.sc-lmvz-input:has(input:focus-visible) .input-wrapper.sc-lmvz-input { box-shadow: 0 0 0 3px rgb(0 86 214 / 20%); } [error].sc-lmvz-input-h .input-wrapper.sc-lmvz-input { border-color: var(--error-text-color); } [error].sc-lmvz-input-h:focus-within .input-wrapper.sc-lmvz-input { border-color: var(--error-text-color); outline-color: var(--error-text-color); } .sc-lmvz-input-h:not([disabled]) .input-wrapper.sc-lmvz-input:hover { border-color: var(--input-border-color-hover); } .label-input-group.sc-lmvz-input { position: relative; flex-grow: 1; display: flex; align-items: center; height: 100%; } label.sc-lmvz-input { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--label-color); font-size: 14px; font-family: Router, sans-serif; font-weight: 400; pointer-events: none; transition: all 0.2s ease-out; background-color: transparent; padding: 0; margin: 0; line-height: normal; white-space: nowrap; } label.floating.sc-lmvz-input { top: 0; transform: translateY(-50%) scale(0.85); transform-origin: left top; background-color: var(--label-minimized-bg); padding: 0 var(--label-minimized-padding-x); left: -2px; color: var(--input-text-color); font-weight: 500; } .required-indicator.sc-lmvz-input { color: var(--error-text-color); margin-left: 2px; } input.sc-lmvz-input { border: none; background: transparent; width: 100%; height: 100%; color: var(--input-text-color); font-family: inherit; font-size: 14px; outline: none; padding: 0; margin: 0; font-weight: 400; } input.sc-lmvz-input::placeholder { color: var(--label-color); } div.sc-lmvz-input:empty { display: none; } [role='status'].sc-lmvz-input { padding-top: 8px; padding-left: 12px; font-size: 12px; color: var(--helper-text-color); font-family: Router, sans-serif; font-weight: 500; } [role='alert'].sc-lmvz-input { padding-top: 8px; padding-left: 12px; font-size: 12px; color: var(--error-text-color); font-family: Router, sans-serif; font-weight: 500; } .sc-lmvz-input-s > lmvz-button { --lmvz-button-padding: 4px; }";export{c as lmvz_input}