diff --git a/packages/bigframes/bigframes/dataframe.py b/packages/bigframes/bigframes/dataframe.py index f5fc7bdfc6b1..f42942c7bd50 100644 --- a/packages/bigframes/bigframes/dataframe.py +++ b/packages/bigframes/bigframes/dataframe.py @@ -819,7 +819,7 @@ def __repr__(self) -> str: column_count=len(self.columns), ) - def _prepare_display_df(self) -> DataFrame: + def _process_display_df(self) -> tuple[DataFrame, list[str]]: """Process ObjectRef and JSON/nested JSON columns for display.""" df = self # Arrow/Pandas to_pandas_batches does not support raw JSON/nested JSON @@ -837,7 +837,7 @@ def _prepare_display_df(self) -> DataFrame: sql_template="TO_JSON_STRING({0})", ) df = df.assign(**{col: df[col]._apply_unary_op(op) for col in json_cols}) - return df + return df, [] def _repr_mimebundle_(self, include=None, exclude=None): """ diff --git a/packages/bigframes/bigframes/display/anywidget.py b/packages/bigframes/bigframes/display/anywidget.py index 9d547baff842..bf5ce28c0b52 100644 --- a/packages/bigframes/bigframes/display/anywidget.py +++ b/packages/bigframes/bigframes/display/anywidget.py @@ -18,6 +18,9 @@ import dataclasses import functools +import logging + +logger = logging.getLogger(__name__) import math import threading import uuid @@ -77,8 +80,18 @@ class TableWidget(_WIDGET_BASE): _error_message = traitlets.Unicode(allow_none=True, default_value=None).tag( sync=True ) - - def __init__(self, dataframe: bigframes.dataframe.DataFrame): + start_execution = traitlets.Bool(False).tag(sync=True) + is_deferred_mode = traitlets.Bool(False).tag(sync=True) + dry_run_info = traitlets.Unicode("").tag(sync=True) + + def __init__( + self, + dataframe: ( + bigframes.dataframe.DataFrame + | bigframes.session.deferred.DeferredBigQueryDataFrame + ), + dry_run_info: Optional[str] = None, + ): """Initialize the TableWidget. Args: @@ -90,7 +103,20 @@ def __init__(self, dataframe: bigframes.dataframe.DataFrame): "`pip install 'bigframes[anywidget]'` to use TableWidget." ) - self._dataframe = dataframe + from bigframes.session import deferred + + is_deferred = False + deferred_df = None + df = None + + if isinstance(dataframe, deferred.DeferredBigQueryDataFrame): + is_deferred = True + deferred_df = dataframe + elif bigframes.options.display.repr_mode == "deferred": + is_deferred = True + df = dataframe + else: + df = dataframe from bigframes.core.utils import get_ipython_execution_count @@ -98,6 +124,13 @@ def __init__(self, dataframe: bigframes.dataframe.DataFrame): super().__init__() + self.is_deferred_mode = is_deferred + self._deferred_dataframe = deferred_df + self._dataframe = df + + if dry_run_info: + self.dry_run_info = dry_run_info + # Initialize attributes that might be needed by observers first self._table_id = str(uuid.uuid4()) self._all_data_loaded = False @@ -111,19 +144,60 @@ def __init__(self, dataframe: bigframes.dataframe.DataFrame): initial_page_size = bigframes.options.display.max_rows initial_max_columns = bigframes.options.display.max_columns - # set traitlets properties that trigger observers - # TODO(b/462525985): Investigate and improve TableWidget UX for DataFrames with a large number of columns. self.page_size = initial_page_size self.max_columns = initial_max_columns - self.orderable_columns = self._get_orderable_columns(dataframe) - - self._initial_load() + if not self.is_deferred_mode: + self._initialize_from_dataframe() # Signals to the frontend that the initial data load is complete. # Also used as a guard to prevent observers from firing during initialization. self._initial_load_complete = True + @traitlets.observe("start_execution") + def _on_start_execution(self, change: dict[str, Any]): + if change["new"]: + + def run_execution(): + try: + self._error_message = None + if self.is_deferred_mode: + if self._deferred_dataframe is not None: + result = self._deferred_dataframe.execute() + if isinstance(result, bigframes.series.Series): + df = result.to_frame() + elif isinstance(result, bigframes.dataframe.DataFrame): + df = result + else: + raise TypeError( + f"Unexpected result type: {type(result)}" + ) + self._dataframe, _ = df._process_display_df() + self._initialize_from_dataframe() + self.is_deferred_mode = False + elif self._dataframe is not None: + self._dataframe, _ = self._dataframe._process_display_df() + self._initialize_from_dataframe() + self.is_deferred_mode = False + elif not self.is_deferred_mode and self._dataframe is not None: + self._initial_load() + except Exception as e: + logger.warning(f"Error in background execution: {e}") + self._error_message = str(e) + finally: + self.start_execution = False + + self._execution_thread = threading.Thread(target=run_execution, daemon=True) + self._execution_thread.start() + + def _initialize_from_dataframe(self): + if self._dataframe is None: + return + + self.orderable_columns = self._get_orderable_columns(self._dataframe) + + self._initial_load() + def _get_orderable_columns( self, dataframe: bigframes.dataframe.DataFrame ) -> list[str]: @@ -278,7 +352,9 @@ def _batch_iterator(self) -> Iterator[pd.DataFrame]: def _cached_data(self) -> pd.DataFrame: """Combine all cached batches into a single DataFrame.""" if not self._cached_batches: - return pd.DataFrame(columns=self._dataframe.columns) + if self._dataframe is not None: + return pd.DataFrame(columns=self._dataframe.columns) + return pd.DataFrame() return pd.concat(self._cached_batches) def _reset_batch_cache(self) -> None: @@ -289,6 +365,8 @@ def _reset_batch_cache(self) -> None: def _reset_batches_for_new_page_size(self) -> None: """Reset the batch iterator when page size changes.""" + if self._dataframe is None: + return with bigframes.option_context("display.progress_bar", None): self._batches = self._dataframe.to_pandas_batches( page_size=self.page_size, @@ -299,6 +377,9 @@ def _reset_batches_for_new_page_size(self) -> None: def _set_table_html(self) -> None: """Sets the current html data based on the current page and page size.""" + if self.is_deferred_mode: + return + new_page = None with ( self._setting_html_lock, @@ -310,6 +391,10 @@ def _set_table_html(self) -> None: ) return + if self._dataframe is None: + self.table_html = "
Internal Error: DataFrame is missing.
" + return + # Apply sorting if a column is selected df_to_display = self._dataframe sort_columns = [item["column"] for item in self.sort_context] diff --git a/packages/bigframes/bigframes/display/html.py b/packages/bigframes/bigframes/display/html.py index c46613d1a84d..49493a2e6af0 100644 --- a/packages/bigframes/bigframes/display/html.py +++ b/packages/bigframes/bigframes/display/html.py @@ -231,6 +231,7 @@ def get_anywidget_bundle( obj: Union[bigframes.dataframe.DataFrame, bigframes.series.Series], include=None, exclude=None, + dry_run_info: str | None = None, ) -> tuple[dict[str, Any], dict[str, Any]]: """ Helper method to create and return the anywidget mimebundle. @@ -244,9 +245,17 @@ def get_anywidget_bundle( else: df = obj - df = df._prepare_display_df() + from bigframes.session import deferred - widget = display.TableWidget(df) + if ( + not isinstance(df, deferred.DeferredBigQueryDataFrame) + and bigframes.options.display.repr_mode != "deferred" + ): + display_df, _ = df._process_display_df() + else: + display_df = df + + widget = display.TableWidget(display_df, dry_run_info=dry_run_info) widget_repr_result = widget._repr_mimebundle_(include=include, exclude=exclude) if isinstance(widget_repr_result, tuple): @@ -262,20 +271,23 @@ def get_anywidget_bundle( total_rows = widget.row_count total_columns = len(df.columns) - widget_repr["text/html"] = create_html_representation( - obj, - cached_pd, - total_rows, - total_columns, - ) - is_series, has_index = _get_obj_metadata(obj) - widget_repr["text/plain"] = plaintext.create_text_representation( - cached_pd, - total_rows, - is_series=is_series, - has_index=has_index, - column_count=len(df.columns) if not is_series else 0, - ) + if dry_run_info: + widget_repr["text/plain"] = dry_run_info + else: + widget_repr["text/html"] = create_html_representation( + obj, + cached_pd, + total_rows, + total_columns, + ) + is_series, has_index = _get_obj_metadata(obj) + widget_repr["text/plain"] = plaintext.create_text_representation( + cached_pd, + total_rows, + is_series=is_series, + has_index=has_index, + column_count=len(df.columns) if not is_series else 0, + ) return widget_repr, widget_metadata @@ -300,7 +312,7 @@ def repr_mimebundle_head( else: df = obj - df = df._prepare_display_df() + df, _ = df._process_display_df() pandas_df, row_count, query_job = df._block.retrieve_repr_request_results( opts.max_rows ) @@ -332,10 +344,11 @@ def repr_mimebundle( # BQ Studio, but there is a known compatibility issue with Marimo that needs to be addressed. opts = options.display - if opts.repr_mode == "deferred": - return repr_mimebundle_deferred(obj) - - if opts.render_mode == "anywidget" or opts.repr_mode == "anywidget": + if ( + opts.render_mode == "anywidget" + or opts.repr_mode == "anywidget" + or opts.repr_mode == "deferred" + ): try: with bigframes.option_context("display.progress_bar", None): with warnings.catch_warnings(): @@ -343,16 +356,28 @@ def repr_mimebundle( "ignore", category=bigframes.exceptions.JSONDtypeWarning ) warnings.simplefilter("ignore", category=FutureWarning) - return get_anywidget_bundle(obj, include=include, exclude=exclude) - except ImportError: + dry_run_info = None + if opts.repr_mode == "deferred": + dry_run_job = obj._compute_dry_run() + dry_run_info = formatter.repr_query_job(dry_run_job) + return get_anywidget_bundle( + obj, + include=include, + exclude=exclude, + dry_run_info=dry_run_info, + ) + except Exception: # Anywidget is an optional dependency, so warn rather than fail. # TODO(shuowei): When Anywidget becomes the default for all repr modes, # remove this warning. warnings.warn( - "Anywidget mode is not available. " - "Please `pip install anywidget traitlets` or `pip install 'bigframes[anywidget]'` to use interactive tables. " + "Anywidget mode is not available or failed to load. " + "Please `pip install anywidget traitlets` or " + "`pip install 'bigframes[anywidget]'` to use interactive tables. " f"Falling back to static HTML. Error: {traceback.format_exc()}" ) + if opts.repr_mode == "deferred": + return repr_mimebundle_deferred(obj) bundle = repr_mimebundle_head(obj) if opts.render_mode == "plaintext": diff --git a/packages/bigframes/bigframes/display/table_widget_angular.js b/packages/bigframes/bigframes/display/table_widget_angular.js index 69d2df7eaab1..ff1483bcd479 100644 --- a/packages/bigframes/bigframes/display/table_widget_angular.js +++ b/packages/bigframes/bigframes/display/table_widget_angular.js @@ -16,153 +16,153 @@ // dist/table-widget-angular/browser/main.js -var od = Object.defineProperty; -var id = Object.defineProperties; -var sd = Object.getOwnPropertyDescriptors; -var Da = Object.getOwnPropertySymbols; -var ad = Object.prototype.hasOwnProperty; -var cd = Object.prototype.propertyIsEnumerable; -var wa = (e12, t, n) => t in e12 ? od(e12, t, { enumerable: true, configurable: true, writable: true, value: n }) : e12[t] = n; -var N = (e12, t) => { +var cd = Object.defineProperty; +var ld = Object.defineProperties; +var ud = Object.getOwnPropertyDescriptors; +var Ta = Object.getOwnPropertySymbols; +var dd = Object.prototype.hasOwnProperty; +var fd = Object.prototype.propertyIsEnumerable; +var Ma = (e12, t, n) => t in e12 ? cd(e12, t, { enumerable: true, configurable: true, writable: true, value: n }) : e12[t] = n; +var x = (e12, t) => { for (var n in t ||= {}) - ad.call(t, n) && wa(e12, n, t[n]); - if (Da) - for (var n of Da(t)) - cd.call(t, n) && wa(e12, n, t[n]); + dd.call(t, n) && Ma(e12, n, t[n]); + if (Ta) + for (var n of Ta(t)) + fd.call(t, n) && Ma(e12, n, t[n]); return e12; }; -var A = (e12, t) => id(e12, sd(t)); -var L = null; -var Sn = false; -var yo = 1; -var ld = null; -var Z = Symbol("SIGNAL"); +var R = (e12, t) => ld(e12, ud(t)); +var V = null; +var On = false; +var wo = 1; +var pd = null; +var Q = Symbol("SIGNAL"); function g(e12) { - let t = L; - return L = e12, t; + let t = V; + return V = e12, t; } -function xn() { - return L; +function Pn() { + return V; } -var ut = { version: 0, lastCleanEpoch: 0, dirty: false, producers: void 0, producersTail: void 0, consumers: void 0, consumersTail: void 0, recomputing: false, consumerAllowSignalWrites: false, consumerIsAlwaysLive: false, kind: "unknown", producerMustRecompute: () => false, producerRecomputeValue: () => { +var pt = { version: 0, lastCleanEpoch: 0, dirty: false, producers: void 0, producersTail: void 0, consumers: void 0, consumersTail: void 0, recomputing: false, consumerAllowSignalWrites: false, consumerIsAlwaysLive: false, kind: "unknown", producerMustRecompute: () => false, producerRecomputeValue: () => { }, consumerMarkedDirty: () => { }, consumerOnSignalRead: () => { } }; -function vo(e12) { - if (Sn) +function To(e12) { + if (On) throw new Error(""); - if (L === null) + if (V === null) return; - L.consumerOnSignalRead(e12); - let t = L.producersTail; + V.consumerOnSignalRead(e12); + let t = V.producersTail; if (t !== void 0 && t.producer === e12) return; - let n, r = L.recomputing; - if (r && (n = t !== void 0 ? t.nextProducer : L.producers, n !== void 0 && n.producer === e12)) { - L.producersTail = n, n.lastReadVersion = e12.version; + let n, r = V.recomputing; + if (r && (n = t !== void 0 ? t.nextProducer : V.producers, n !== void 0 && n.producer === e12)) { + V.producersTail = n, n.lastReadVersion = e12.version; return; } let o = e12.consumersTail; - if (o !== void 0 && o.consumer === L && (!r || dd(o, L))) + if (o !== void 0 && o.consumer === V && (!r || gd(o, V))) return; - let i = ft(L), s = { producer: e12, consumer: L, nextProducer: n, prevConsumer: o, lastReadVersion: e12.version, nextConsumer: void 0 }; - L.producersTail = s, t !== void 0 ? t.nextProducer = s : L.producers = s, i && Ma(e12, s); + let i = gt(V), s = { producer: e12, consumer: V, nextProducer: n, prevConsumer: o, lastReadVersion: e12.version, nextConsumer: void 0 }; + V.producersTail = s, t !== void 0 ? t.nextProducer = s : V.producers = s, i && xa(e12, s); } -function Ca() { - yo++; +function _a() { + wo++; } -function Eo(e12) { - if (!(ft(e12) && !e12.dirty) && !(!e12.dirty && e12.lastCleanEpoch === yo)) { - if (!e12.producerMustRecompute(e12) && !Rn(e12)) { - mo(e12); +function Mo(e12) { + if (!(gt(e12) && !e12.dirty) && !(!e12.dirty && e12.lastCleanEpoch === wo)) { + if (!e12.producerMustRecompute(e12) && !Fn(e12)) { + Co(e12); return; } - e12.producerRecomputeValue(e12), mo(e12); + e12.producerRecomputeValue(e12), Co(e12); } } -function Io(e12) { +function _o(e12) { if (e12.consumers === void 0) return; - let t = Sn; - Sn = true; + let t = On; + On = true; try { for (let n = e12.consumers; n !== void 0; n = n.nextConsumer) { let r = n.consumer; - r.dirty || ud(r); + r.dirty || hd(r); } } finally { - Sn = t; + On = t; } } -function Do() { - return L?.consumerAllowSignalWrites !== false; +function So() { + return V?.consumerAllowSignalWrites !== false; } -function ud(e12) { - e12.dirty = true, Io(e12), e12.consumerMarkedDirty?.(e12); +function hd(e12) { + e12.dirty = true, _o(e12), e12.consumerMarkedDirty?.(e12); } -function mo(e12) { - e12.dirty = false, e12.lastCleanEpoch = yo; +function Co(e12) { + e12.dirty = false, e12.lastCleanEpoch = wo; } -function Bt(e12) { - return e12 && ba(e12), g(e12); +function zt(e12) { + return e12 && Sa(e12), g(e12); } -function ba(e12) { +function Sa(e12) { e12.producersTail = void 0, e12.recomputing = true; } -function An(e12, t) { - g(t), e12 && Ta(e12); +function Ln(e12, t) { + g(t), e12 && Na(e12); } -function Ta(e12) { +function Na(e12) { e12.recomputing = false; let t = e12.producersTail, n = t !== void 0 ? t.nextProducer : e12.producers; if (n !== void 0) { - if (ft(e12)) + if (gt(e12)) do - n = wo(n); + n = No(n); while (n !== void 0); t !== void 0 ? t.nextProducer = void 0 : e12.producers = void 0; } } -function Rn(e12) { +function Fn(e12) { for (let t = e12.producers; t !== void 0; t = t.nextProducer) { let n = t.producer, r = t.lastReadVersion; - if (r !== n.version || (Eo(n), r !== n.version)) + if (r !== n.version || (Mo(n), r !== n.version)) return true; } return false; } -function dt(e12) { - if (ft(e12)) { +function ht(e12) { + if (gt(e12)) { let t = e12.producers; for (; t !== void 0; ) - t = wo(t); + t = No(t); } e12.producers = void 0, e12.producersTail = void 0, e12.consumers = void 0, e12.consumersTail = void 0; } -function Ma(e12, t) { - let n = e12.consumersTail, r = ft(e12); +function xa(e12, t) { + let n = e12.consumersTail, r = gt(e12); if (n !== void 0 ? (t.nextConsumer = n.nextConsumer, n.nextConsumer = t) : (t.nextConsumer = void 0, e12.consumers = t), t.prevConsumer = n, e12.consumersTail = t, !r) for (let o = e12.producers; o !== void 0; o = o.nextProducer) - Ma(o.producer, o); + xa(o.producer, o); } -function wo(e12) { +function No(e12) { let t = e12.producer, n = e12.nextProducer, r = e12.nextConsumer, o = e12.prevConsumer; if (e12.nextConsumer = void 0, e12.prevConsumer = void 0, r !== void 0 ? r.prevConsumer = o : t.consumersTail = o, o !== void 0) o.nextConsumer = r; - else if (t.consumers = r, !ft(t)) { + else if (t.consumers = r, !gt(t)) { let i = t.producers; for (; i !== void 0; ) - i = wo(i); + i = No(i); } return n; } -function ft(e12) { +function gt(e12) { return e12.consumerIsAlwaysLive || e12.consumers !== void 0; } -function Co(e12) { - ld?.(e12); +function xo(e12) { + pd?.(e12); } -function dd(e12, t) { +function gd(e12, t) { let n = t.producersTail; if (n !== void 0) { let r = t.producers; @@ -176,36 +176,36 @@ function dd(e12, t) { } return false; } -function bo(e12, t) { +function Ro(e12, t) { return Object.is(e12, t); } -function On(e12, t) { - let n = Object.create(fd); +function jn(e12, t) { + let n = Object.create(md); n.computation = e12, t !== void 0 && (n.equal = t); let r = () => { - if (Eo(n), vo(n), n.value === Nn) + if (Mo(n), To(n), n.value === kn) throw n.error; return n.value; }; - return r[Z] = n, Co(n), r; + return r[Q] = n, xo(n), r; } -var ho = Symbol("UNSET"); -var go = Symbol("COMPUTING"); -var Nn = Symbol("ERRORED"); -var fd = A(N({}, ut), { value: ho, dirty: true, error: null, equal: bo, kind: "computed", producerMustRecompute(e12) { - return e12.value === ho || e12.value === go; +var Do = Symbol("UNSET"); +var bo = Symbol("COMPUTING"); +var kn = Symbol("ERRORED"); +var md = R(x({}, pt), { value: Do, dirty: true, error: null, equal: Ro, kind: "computed", producerMustRecompute(e12) { + return e12.value === Do || e12.value === bo; }, producerRecomputeValue(e12) { - if (e12.value === go) + if (e12.value === bo) throw new Error(""); let t = e12.value; - e12.value = go; - let n = Bt(e12), r, o = false; + e12.value = bo; + let n = zt(e12), r, o = false; try { - r = e12.computation(), g(null), o = t !== ho && t !== Nn && r !== Nn && e12.equal(t, r); + r = e12.computation(), g(null), o = t !== Do && t !== kn && r !== kn && e12.equal(t, r); } catch (i) { - r = Nn, e12.error = i; + r = kn, e12.error = i; } finally { - An(e12, n); + Ln(e12, n); } if (o) { e12.value = t; @@ -213,69 +213,69 @@ var fd = A(N({}, ut), { value: ho, dirty: true, error: null, equal: bo, kind: "c } e12.value = r, e12.version++; } }); -function pd() { +function yd() { throw new Error(); } -var _a = pd; -function Sa(e12) { - _a(e12); +var Ra = yd; +function Aa(e12) { + Ra(e12); } -function To(e12) { - _a = e12; +function Ao(e12) { + Ra = e12; } -var hd = null; -function Mo(e12, t) { - let n = Object.create(Aa); +var vd = null; +function Oo(e12, t) { + let n = Object.create(Pa); n.value = e12, t !== void 0 && (n.equal = t); - let r = () => Na(n); - return r[Z] = n, Co(n), [r, (s) => _o(n, s), (s) => xa(n, s)]; + let r = () => Oa(n); + return r[Q] = n, xo(n), [r, (s) => ko(n, s), (s) => ka(n, s)]; } -function Na(e12) { - return vo(e12), e12.value; +function Oa(e12) { + return To(e12), e12.value; } -function _o(e12, t) { - Do() || Sa(e12), e12.equal(e12.value, t) || (e12.value = t, gd(e12)); +function ko(e12, t) { + So() || Aa(e12), e12.equal(e12.value, t) || (e12.value = t, Ed(e12)); } -function xa(e12, t) { - Do() || Sa(e12), _o(e12, t(e12.value)); +function ka(e12, t) { + So() || Aa(e12), ko(e12, t(e12.value)); } -var Aa = A(N({}, ut), { equal: bo, value: void 0, kind: "signal" }); -function gd(e12) { - e12.version++, Ca(), Io(e12), hd?.(e12); +var Pa = R(x({}, pt), { equal: Ro, value: void 0, kind: "signal" }); +function Ed(e12) { + e12.version++, _a(), _o(e12), vd?.(e12); } -var So = A(N({}, ut), { consumerIsAlwaysLive: true, consumerAllowSignalWrites: true, dirty: true, kind: "effect" }); -function No(e12) { - if (e12.dirty = false, e12.version > 0 && !Rn(e12)) +var Po = R(x({}, pt), { consumerIsAlwaysLive: true, consumerAllowSignalWrites: true, dirty: true, kind: "effect" }); +function Lo(e12) { + if (e12.dirty = false, e12.version > 0 && !Fn(e12)) return; e12.version++; - let t = Bt(e12); + let t = zt(e12); try { e12.cleanup(), e12.fn(); } finally { - An(e12, t); + Ln(e12, t); } } -function $(e12) { +function U(e12) { return typeof e12 == "function"; } -function kn(e12) { +function Hn(e12) { let n = e12((r) => { Error.call(r), r.stack = new Error().stack; }); return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n; } -var Pn = kn((e12) => function(n) { +var Vn = Hn((e12) => function(n) { e12(this), this.message = n ? `${n.length} errors occurred during unsubscription: ${n.map((r, o) => `${o + 1}) ${r.toString()}`).join(` `)}` : "", this.name = "UnsubscriptionError", this.errors = n; }); -function $t(e12, t) { +function Wt(e12, t) { if (e12) { let n = e12.indexOf(t); 0 <= n && e12.splice(n, 1); } } -var H = class e { +var $ = class e { constructor(t) { this.initialTeardown = t, this.closed = false, this._parentage = null, this._finalizers = null; } @@ -291,31 +291,31 @@ var H = class e { else n.remove(this); let { initialTeardown: r } = this; - if ($(r)) + if (U(r)) try { r(); } catch (i) { - t = i instanceof Pn ? i.errors : [i]; + t = i instanceof Vn ? i.errors : [i]; } let { _finalizers: o } = this; if (o) { this._finalizers = null; for (let i of o) try { - Ra(i); + La(i); } catch (s) { - t = t ?? [], s instanceof Pn ? t = [...t, ...s.errors] : t.push(s); + t = t ?? [], s instanceof Vn ? t = [...t, ...s.errors] : t.push(s); } } if (t) - throw new Pn(t); + throw new Vn(t); } } add(t) { var n; if (t && t !== this) if (this.closed) - Ra(t); + La(t); else { if (t instanceof e) { if (t.closed || t._hasParent(this)) @@ -335,83 +335,83 @@ var H = class e { } _removeParent(t) { let { _parentage: n } = this; - n === t ? this._parentage = null : Array.isArray(n) && $t(n, t); + n === t ? this._parentage = null : Array.isArray(n) && Wt(n, t); } remove(t) { let { _finalizers: n } = this; - n && $t(n, t), t instanceof e && t._removeParent(this); + n && Wt(n, t), t instanceof e && t._removeParent(this); } }; -H.EMPTY = (() => { - let e12 = new H(); +$.EMPTY = (() => { + let e12 = new $(); return e12.closed = true, e12; })(); -var xo = H.EMPTY; -function Ln(e12) { - return e12 instanceof H || e12 && "closed" in e12 && $(e12.remove) && $(e12.add) && $(e12.unsubscribe); +var Fo = $.EMPTY; +function Bn(e12) { + return e12 instanceof $ || e12 && "closed" in e12 && U(e12.remove) && U(e12.add) && U(e12.unsubscribe); } -function Ra(e12) { - $(e12) ? e12() : e12.unsubscribe(); +function La(e12) { + U(e12) ? e12() : e12.unsubscribe(); } -var te = { onUnhandledError: null, onStoppedNotification: null, Promise: void 0, useDeprecatedSynchronousErrorHandling: false, useDeprecatedNextContext: false }; -var pt = { setTimeout(e12, t, ...n) { - let { delegate: r } = pt; +var ne = { onUnhandledError: null, onStoppedNotification: null, Promise: void 0, useDeprecatedSynchronousErrorHandling: false, useDeprecatedNextContext: false }; +var mt = { setTimeout(e12, t, ...n) { + let { delegate: r } = mt; return r?.setTimeout ? r.setTimeout(e12, t, ...n) : setTimeout(e12, t, ...n); }, clearTimeout(e12) { - let { delegate: t } = pt; + let { delegate: t } = mt; return (t?.clearTimeout || clearTimeout)(e12); }, delegate: void 0 }; -function Oa(e12) { - pt.setTimeout(() => { - let { onUnhandledError: t } = te; +function Fa(e12) { + mt.setTimeout(() => { + let { onUnhandledError: t } = ne; if (t) t(e12); else throw e12; }); } -function Ao() { +function jo() { } -var ka = Ro("C", void 0, void 0); -function Pa(e12) { - return Ro("E", void 0, e12); +var ja = Ho("C", void 0, void 0); +function Ha(e12) { + return Ho("E", void 0, e12); } -function La(e12) { - return Ro("N", e12, void 0); +function Va(e12) { + return Ho("N", e12, void 0); } -function Ro(e12, t, n) { +function Ho(e12, t, n) { return { kind: e12, value: t, error: n }; } -var Ue = null; -function ht(e12) { - if (te.useDeprecatedSynchronousErrorHandling) { - let t = !Ue; - if (t && (Ue = { errorThrown: false, error: null }), e12(), t) { - let { errorThrown: n, error: r } = Ue; - if (Ue = null, n) +var Ge = null; +function yt(e12) { + if (ne.useDeprecatedSynchronousErrorHandling) { + let t = !Ge; + if (t && (Ge = { errorThrown: false, error: null }), e12(), t) { + let { errorThrown: n, error: r } = Ge; + if (Ge = null, n) throw r; } } else e12(); } -function Fa(e12) { - te.useDeprecatedSynchronousErrorHandling && Ue && (Ue.errorThrown = true, Ue.error = e12); +function Ba(e12) { + ne.useDeprecatedSynchronousErrorHandling && Ge && (Ge.errorThrown = true, Ge.error = e12); } -var ze = class extends H { +var qe = class extends $ { constructor(t) { - super(), this.isStopped = false, t ? (this.destination = t, Ln(t) && t.add(this)) : this.destination = vd; + super(), this.isStopped = false, t ? (this.destination = t, Bn(t) && t.add(this)) : this.destination = bd; } static create(t, n, r) { - return new gt(t, n, r); + return new vt(t, n, r); } next(t) { - this.isStopped ? ko(La(t), this) : this._next(t); + this.isStopped ? Bo(Va(t), this) : this._next(t); } error(t) { - this.isStopped ? ko(Pa(t), this) : (this.isStopped = true, this._error(t)); + this.isStopped ? Bo(Ha(t), this) : (this.isStopped = true, this._error(t)); } complete() { - this.isStopped ? ko(ka, this) : (this.isStopped = true, this._complete()); + this.isStopped ? Bo(ja, this) : (this.isStopped = true, this._complete()); } unsubscribe() { this.closed || (this.isStopped = true, super.unsubscribe(), this.destination = null); @@ -434,11 +434,11 @@ var ze = class extends H { } } }; -var md = Function.prototype.bind; -function Oo(e12, t) { - return md.call(e12, t); +var Id = Function.prototype.bind; +function Vo(e12, t) { + return Id.call(e12, t); } -var Po = class { +var $o = class { constructor(t) { this.partialObserver = t; } @@ -448,7 +448,7 @@ var Po = class { try { n.next(t); } catch (r) { - Fn(r); + $n(r); } } error(t) { @@ -457,10 +457,10 @@ var Po = class { try { n.error(t); } catch (r) { - Fn(r); + $n(r); } else - Fn(t); + $n(t); } complete() { let { partialObserver: t } = this; @@ -468,44 +468,44 @@ var Po = class { try { t.complete(); } catch (n) { - Fn(n); + $n(n); } } }; -var gt = class extends ze { +var vt = class extends qe { constructor(t, n, r) { super(); let o; - if ($(t) || !t) + if (U(t) || !t) o = { next: t ?? void 0, error: n ?? void 0, complete: r ?? void 0 }; else { let i; - this && te.useDeprecatedNextContext ? (i = Object.create(t), i.unsubscribe = () => this.unsubscribe(), o = { next: t.next && Oo(t.next, i), error: t.error && Oo(t.error, i), complete: t.complete && Oo(t.complete, i) }) : o = t; + this && ne.useDeprecatedNextContext ? (i = Object.create(t), i.unsubscribe = () => this.unsubscribe(), o = { next: t.next && Vo(t.next, i), error: t.error && Vo(t.error, i), complete: t.complete && Vo(t.complete, i) }) : o = t; } - this.destination = new Po(o); + this.destination = new $o(o); } }; -function Fn(e12) { - te.useDeprecatedSynchronousErrorHandling ? Fa(e12) : Oa(e12); +function $n(e12) { + ne.useDeprecatedSynchronousErrorHandling ? Ba(e12) : Fa(e12); } -function yd(e12) { +function Dd(e12) { throw e12; } -function ko(e12, t) { - let { onStoppedNotification: n } = te; - n && pt.setTimeout(() => n(e12, t)); +function Bo(e12, t) { + let { onStoppedNotification: n } = ne; + n && mt.setTimeout(() => n(e12, t)); } -var vd = { closed: true, next: Ao, error: yd, complete: Ao }; -var ja = typeof Symbol == "function" && Symbol.observable || "@@observable"; -function Ha(e12) { +var bd = { closed: true, next: jo, error: Dd, complete: jo }; +var $a = typeof Symbol == "function" && Symbol.observable || "@@observable"; +function Ua(e12) { return e12; } -function Va(e12) { - return e12.length === 0 ? Ha : e12.length === 1 ? e12[0] : function(n) { +function za(e12) { + return e12.length === 0 ? Ua : e12.length === 1 ? e12[0] : function(n) { return e12.reduce((r, o) => o(r), n); }; } -var mt = (() => { +var Et = (() => { class e12 { constructor(n) { n && (this._subscribe = n); @@ -515,8 +515,8 @@ var mt = (() => { return r.source = this, r.operator = n, r; } subscribe(n, r, o) { - let i = Id(n) ? n : new gt(n, r, o); - return ht(() => { + let i = wd(n) ? n : new vt(n, r, o); + return yt(() => { let { operator: s, source: a } = this; i.add(s ? s.call(i, a) : a ? this._subscribe(i) : this._trySubscribe(i)); }), i; @@ -529,8 +529,8 @@ var mt = (() => { } } forEach(n, r) { - return r = Ba(r), new r((o, i) => { - let s = new gt({ next: (a) => { + return r = Wa(r), new r((o, i) => { + let s = new vt({ next: (a) => { try { n(a); } catch (c) { @@ -544,14 +544,14 @@ var mt = (() => { var r; return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n); } - [ja]() { + [$a]() { return this; } pipe(...n) { - return Va(n)(this); + return za(n)(this); } toPromise(n) { - return n = Ba(n), new n((r, o) => { + return n = Wa(n), new n((r, o) => { let i; this.subscribe((s) => i = s, (s) => o(s), () => r(i)); }); @@ -559,22 +559,22 @@ var mt = (() => { } return e12.create = (t) => new e12(t), e12; })(); -function Ba(e12) { +function Wa(e12) { var t; - return (t = e12 ?? te.Promise) !== null && t !== void 0 ? t : Promise; + return (t = e12 ?? ne.Promise) !== null && t !== void 0 ? t : Promise; } -function Ed(e12) { - return e12 && $(e12.next) && $(e12.error) && $(e12.complete); +function Cd(e12) { + return e12 && U(e12.next) && U(e12.error) && U(e12.complete); } -function Id(e12) { - return e12 && e12 instanceof ze || Ed(e12) && Ln(e12); +function wd(e12) { + return e12 && e12 instanceof qe || Cd(e12) && Bn(e12); } -function Dd(e12) { - return $(e12?.lift); +function Td(e12) { + return U(e12?.lift); } -function $a(e12) { +function Ga(e12) { return (t) => { - if (Dd(t)) + if (Td(t)) return t.lift(function(n) { try { return e12(n, this); @@ -585,10 +585,10 @@ function $a(e12) { throw new TypeError("Unable to lift unknown Observable type"); }; } -function Ua(e12, t, n, r, o) { - return new Lo(e12, t, n, r, o); +function qa(e12, t, n, r, o) { + return new Uo(e12, t, n, r, o); } -var Lo = class extends ze { +var Uo = class extends qe { constructor(t, n, r, o, i, s) { super(t), this.onFinalize = i, this.shouldUnsubscribe = s, this._next = n ? function(a) { try { @@ -622,24 +622,24 @@ var Lo = class extends ze { } } }; -var za = kn((e12) => function() { +var Za = Hn((e12) => function() { e12(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed"; }); -var ye = (() => { - class e12 extends mt { +var ve = (() => { + class e12 extends Et { constructor() { super(), this.closed = false, this.currentObservers = null, this.observers = [], this.isStopped = false, this.hasError = false, this.thrownError = null; } lift(n) { - let r = new jn(this, this); + let r = new Un(this, this); return r.operator = n, r; } _throwIfClosed() { if (this.closed) - throw new za(); + throw new Za(); } next(n) { - ht(() => { + yt(() => { if (this._throwIfClosed(), !this.isStopped) { this.currentObservers || (this.currentObservers = Array.from(this.observers)); for (let r of this.currentObservers) @@ -648,7 +648,7 @@ var ye = (() => { }); } error(n) { - ht(() => { + yt(() => { if (this._throwIfClosed(), !this.isStopped) { this.hasError = this.isStopped = true, this.thrownError = n; let { observers: r } = this; @@ -658,7 +658,7 @@ var ye = (() => { }); } complete() { - ht(() => { + yt(() => { if (this._throwIfClosed(), !this.isStopped) { this.isStopped = true; let { observers: n } = this; @@ -682,8 +682,8 @@ var ye = (() => { } _innerSubscribe(n) { let { hasError: r, isStopped: o, observers: i } = this; - return r || o ? xo : (this.currentObservers = null, i.push(n), new H(() => { - this.currentObservers = null, $t(i, n); + return r || o ? Fo : (this.currentObservers = null, i.push(n), new $(() => { + this.currentObservers = null, Wt(i, n); })); } _checkFinalizedStatuses(n) { @@ -691,13 +691,13 @@ var ye = (() => { r ? n.error(o) : i && n.complete(); } asObservable() { - let n = new mt(); + let n = new Et(); return n.source = this, n; } } - return e12.create = (t, n) => new jn(t, n), e12; + return e12.create = (t, n) => new Un(t, n), e12; })(); -var jn = class extends ye { +var Un = class extends ve { constructor(t, n) { super(), this.destination = t, this.source = n; } @@ -715,10 +715,10 @@ var jn = class extends ye { } _subscribe(t) { var n, r; - return (r = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && r !== void 0 ? r : xo; + return (r = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && r !== void 0 ? r : Fo; } }; -var Ut = class extends ye { +var Gt = class extends ve { constructor(t) { super(), this._value = t; } @@ -739,51 +739,51 @@ var Ut = class extends ye { super.next(this._value = t); } }; -function Fo(e12, t) { - return $a((n, r) => { +function zo(e12, t) { + return Ga((n, r) => { let o = 0; - n.subscribe(Ua(r, (i) => { + n.subscribe(qa(r, (i) => { r.next(e12.call(t, i, o++)); })); }); } -var jo; -function Hn() { - return jo; +var Wo; +function zn() { + return Wo; } -function ae(e12) { - let t = jo; - return jo = e12, t; +function le(e12) { + let t = Wo; + return Wo = e12, t; } -var Wa = Symbol("NotFound"); -function yt(e12) { - return e12 === Wa || e12?.name === "\u0275NotFound"; +var Qa = Symbol("NotFound"); +function It(e12) { + return e12 === Qa || e12?.name === "\u0275NotFound"; } -var qn = "https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss"; +var Jn = "https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss"; var v = class extends Error { code; constructor(t, n) { - super(Zn(t, n)), this.code = t; + super(Xn(t, n)), this.code = t; } }; -function wd(e12) { +function Md(e12) { return `NG0${Math.abs(e12)}`; } -function Zn(e12, t) { - return `${wd(e12)}${t ? ": " + t : ""}`; +function Xn(e12, t) { + return `${Md(e12)}${t ? ": " + t : ""}`; } -var Re = globalThis; -function b(e12) { +var Fe = globalThis; +function w(e12) { for (let t in e12) - if (e12[t] === b) + if (e12[t] === w) return t; throw Error(""); } -function Qn(e12) { +function er(e12) { if (typeof e12 == "string") return e12; if (Array.isArray(e12)) - return `[${e12.map(Qn).join(", ")}]`; + return `[${e12.map(er).join(", ")}]`; if (e12 == null) return "" + e12; let t = e12.overriddenName || e12.name; @@ -796,37 +796,37 @@ function Qn(e12) { `); return r >= 0 ? n.slice(0, r) : n; } -function Jo(e12, t) { +function ii(e12, t) { return e12 ? t ? `${e12} ${t}` : e12 : t || ""; } -var Cd = b({ __forward_ref__: b }); -function Yn(e12) { - return e12.__forward_ref__ = Yn, e12; +var _d = w({ __forward_ref__: w }); +function tr(e12) { + return e12.__forward_ref__ = tr, e12; } -function W(e12) { - return Ya(e12) ? e12() : e12; +function q(e12) { + return ec(e12) ? e12() : e12; } -function Ya(e12) { - return typeof e12 == "function" && e12.hasOwnProperty(Cd) && e12.__forward_ref__ === Yn; +function ec(e12) { + return typeof e12 == "function" && e12.hasOwnProperty(_d) && e12.__forward_ref__ === tr; } function _(e12) { return { token: e12.token, providedIn: e12.providedIn || null, factory: e12.factory, value: void 0 }; } -function Kn(e12) { - return bd(e12, Jn); +function nr(e12) { + return Sd(e12, rr); } -function bd(e12, t) { +function Sd(e12, t) { return e12.hasOwnProperty(t) && e12[t] || null; } -function Td(e12) { - let t = e12?.[Jn] ?? null; +function Nd(e12) { + let t = e12?.[rr] ?? null; return t || null; } -function Vo(e12) { - return e12 && e12.hasOwnProperty(Bn) ? e12[Bn] : null; +function qo(e12) { + return e12 && e12.hasOwnProperty(Gn) ? e12[Gn] : null; } -var Jn = b({ \u0275prov: b }); -var Bn = b({ \u0275inj: b }); +var rr = w({ \u0275prov: w }); +var Gn = w({ \u0275inj: w }); var D = class { _desc; ngMetadataName = "InjectionToken"; @@ -841,93 +841,93 @@ var D = class { return `InjectionToken ${this._desc}`; } }; -function Xo(e12) { +function si(e12) { return e12 && !!e12.\u0275providers; } -var ei = b({ \u0275cmp: b }); -var ti = b({ \u0275dir: b }); -var ni = b({ \u0275pipe: b }); -var Bo = b({ \u0275fac: b }); -var Qe = b({ __NG_ELEMENT_ID__: b }); -var Ga = b({ __NG_ENV_ID__: b }); -function Ye(e12) { - return oi(e12, "@Component"), e12[ei] || null; +var ai = w({ \u0275cmp: w }); +var ci = w({ \u0275dir: w }); +var li = w({ \u0275pipe: w }); +var Zo = w({ \u0275fac: w }); +var Je = w({ __NG_ELEMENT_ID__: w }); +var Ya = w({ __NG_ENV_ID__: w }); +function Xe(e12) { + return di(e12, "@Component"), e12[ai] || null; } -function ri(e12) { - return oi(e12, "@Directive"), e12[ti] || null; +function ui(e12) { + return di(e12, "@Directive"), e12[ci] || null; } -function Ka(e12) { - return oi(e12, "@Pipe"), e12[ni] || null; +function tc(e12) { + return di(e12, "@Pipe"), e12[li] || null; } -function oi(e12, t) { +function di(e12, t) { if (e12 == null) throw new v(-919, false); } -function ii(e12) { +function fi(e12) { return typeof e12 == "string" ? e12 : e12 == null ? "" : String(e12); } -var Ja = b({ ngErrorCode: b }); -var Md = b({ ngErrorMessage: b }); -var _d = b({ ngTokenPath: b }); -function si(e12, t) { - return Xa("", -200, t); +var nc = w({ ngErrorCode: w }); +var xd = w({ ngErrorMessage: w }); +var Rd = w({ ngTokenPath: w }); +function pi(e12, t) { + return rc("", -200, t); } -function Xn(e12, t) { +function or(e12, t) { throw new v(-201, false); } -function Xa(e12, t, n) { +function rc(e12, t, n) { let r = new v(t, e12); - return r[Ja] = t, r[Md] = e12, n && (r[_d] = n), r; + return r[nc] = t, r[xd] = e12, n && (r[Rd] = n), r; } -function Sd(e12) { - return e12[Ja]; +function Ad(e12) { + return e12[nc]; } -var $o; -function ec() { - return $o; +var Qo; +function oc() { + return Qo; } -function z(e12) { - let t = $o; - return $o = e12, t; +function G(e12) { + let t = Qo; + return Qo = e12, t; } -function ai(e12, t, n) { - let r = Kn(e12); +function hi(e12, t, n) { + let r = nr(e12); if (r && r.providedIn == "root") return r.value === void 0 ? r.value = r.factory() : r.value; if (n & 8) return null; if (t !== void 0) return t; - Xn(e12, ""); + or(e12, ""); } -var Nd = {}; -var We = Nd; -var xd = "__NG_DI_FLAG__"; -var Uo = class { +var Od = {}; +var Ze = Od; +var kd = "__NG_DI_FLAG__"; +var Yo = class { injector; constructor(t) { this.injector = t; } retrieve(t, n) { - let r = Ge(n) || 0; + let r = Qe(n) || 0; try { - return this.injector.get(t, r & 8 ? null : We, r); + return this.injector.get(t, r & 8 ? null : Ze, r); } catch (o) { - if (yt(o)) + if (It(o)) return o; throw o; } } }; -function Ad(e12, t = 0) { - let n = Hn(); +function Pd(e12, t = 0) { + let n = zn(); if (n === void 0) throw new v(-203, false); if (n === null) - return ai(e12, void 0, t); + return hi(e12, void 0, t); { - let r = Rd(t), o = n.retrieve(e12, r); - if (yt(o)) { + let r = Ld(t), o = n.retrieve(e12, r); + if (It(o)) { if (r.optional) return null; throw o; @@ -935,44 +935,44 @@ function Ad(e12, t = 0) { return o; } } -function w(e12, t = 0) { - return (ec() || Ad)(W(e12), t); +function b(e12, t = 0) { + return (oc() || Pd)(q(e12), t); } function E(e12, t) { - return w(e12, Ge(t)); + return b(e12, Qe(t)); } -function Ge(e12) { +function Qe(e12) { return typeof e12 > "u" || typeof e12 == "number" ? e12 : 0 | (e12.optional && 8) | (e12.host && 1) | (e12.self && 2) | (e12.skipSelf && 4); } -function Rd(e12) { +function Ld(e12) { return { optional: !!(e12 & 8), host: !!(e12 & 1), self: !!(e12 & 2), skipSelf: !!(e12 & 4) }; } -function zo(e12) { +function Ko(e12) { let t = []; for (let n = 0; n < e12.length; n++) { - let r = W(e12[n]); + let r = q(e12[n]); if (Array.isArray(r)) { if (r.length === 0) throw new v(900, false); let o, i = 0; for (let s = 0; s < r.length; s++) { - let a = r[s], c = Od(a); + let a = r[s], c = Fd(a); typeof c == "number" ? c === -1 ? o = a.token : i |= c : o = a; } - t.push(w(o, i)); + t.push(b(o, i)); } else - t.push(w(r)); + t.push(b(r)); } return t; } -function Od(e12) { - return e12[xd]; +function Fd(e12) { + return e12[kd]; } -function Et(e12, t) { - let n = e12.hasOwnProperty(Bo); - return n ? e12[Bo] : null; +function bt(e12, t) { + let n = e12.hasOwnProperty(Zo); + return n ? e12[Zo] : null; } -function tc(e12, t, n) { +function ic(e12, t, n) { if (e12.length !== t.length) return false; for (let r = 0; r < e12.length; r++) { @@ -982,19 +982,19 @@ function tc(e12, t, n) { } return true; } -function nc(e12) { +function sc(e12) { return e12.flat(Number.POSITIVE_INFINITY); } -function er(e12, t) { - e12.forEach((n) => Array.isArray(n) ? er(n, t) : t(n)); +function ir(e12, t) { + e12.forEach((n) => Array.isArray(n) ? ir(n, t) : t(n)); } -function ci(e12, t, n) { +function gi(e12, t, n) { t >= e12.length ? e12.push(n) : e12.splice(t, 0, n); } -function Qt(e12, t) { +function Jt(e12, t) { return t >= e12.length - 1 ? e12.pop() : e12.splice(t, 1)[0]; } -function rc(e12, t, n, r) { +function ac(e12, t, n, r) { let o = e12.length; if (o == t) e12.push(n, r); @@ -1008,19 +1008,19 @@ function rc(e12, t, n, r) { e12[t] = n, e12[t + 1] = r; } } -function oc(e12, t, n) { - let r = It(e12, t); - return r >= 0 ? e12[r | 1] = n : (r = ~r, rc(e12, r, t, n)), r; +function cc(e12, t, n) { + let r = Ct(e12, t); + return r >= 0 ? e12[r | 1] = n : (r = ~r, ac(e12, r, t, n)), r; } -function tr(e12, t) { - let n = It(e12, t); +function sr(e12, t) { + let n = Ct(e12, t); if (n >= 0) return e12[n | 1]; } -function It(e12, t) { - return kd(e12, t, 1); +function Ct(e12, t) { + return jd(e12, t, 1); } -function kd(e12, t, n) { +function jd(e12, t, n) { let r = 0, o = e12.length >> n; for (; o !== r; ) { let i = r + (o - r >> 1), s = e12[i << n]; @@ -1030,53 +1030,53 @@ function kd(e12, t, n) { } return ~(o << n); } -var Ke = {}; -var Ne = []; -var Je = new D(""); -var li = new D("", -1); -var ui = new D(""); -var Wt = class { - get(t, n = We) { - if (n === We) { - let o = Xa("", -201); +var et = {}; +var ke = []; +var tt = new D(""); +var mi = new D("", -1); +var yi = new D(""); +var Zt = class { + get(t, n = Ze) { + if (n === Ze) { + let o = rc("", -201); throw o.name = "\u0275NotFound", o; } return n; } }; -function Dt(e12) { +function wt(e12) { return { \u0275providers: e12 }; } -function ic(e12) { - return Dt([{ provide: Je, multi: true, useValue: e12 }]); +function lc(e12) { + return wt([{ provide: tt, multi: true, useValue: e12 }]); } -function sc(...e12) { - return { \u0275providers: di(true, e12), \u0275fromNgModule: true }; +function uc(...e12) { + return { \u0275providers: vi(true, e12), \u0275fromNgModule: true }; } -function di(e12, ...t) { +function vi(e12, ...t) { let n = [], r = /* @__PURE__ */ new Set(), o, i = (s) => { n.push(s); }; - return er(t, (s) => { + return ir(t, (s) => { let a = s; - $n(a, i, [], r) && (o ||= [], o.push(a)); - }), o !== void 0 && ac(o, i), n; + qn(a, i, [], r) && (o ||= [], o.push(a)); + }), o !== void 0 && dc(o, i), n; } -function ac(e12, t) { +function dc(e12, t) { for (let n = 0; n < e12.length; n++) { let { ngModule: r, providers: o } = e12[n]; - fi(o, (i) => { + Ei(o, (i) => { t(i, r); }); } } -function $n(e12, t, n, r) { - if (e12 = W(e12), !e12) +function qn(e12, t, n, r) { + if (e12 = q(e12), !e12) return false; - let o = null, i = Vo(e12), s = !i && Ye(e12); + let o = null, i = qo(e12), s = !i && Xe(e12); if (!i && !s) { let c = e12.ngModule; - if (i = Vo(c), i) + if (i = qo(c), i) o = c; else return false; @@ -1092,24 +1092,24 @@ function $n(e12, t, n, r) { if (r.add(o), s.dependencies) { let c = typeof s.dependencies == "function" ? s.dependencies() : s.dependencies; for (let l of c) - $n(l, t, n, r); + qn(l, t, n, r); } } else if (i) { if (i.imports != null && !a) { r.add(o); let l; - er(i.imports, (u) => { - $n(u, t, n, r) && (l ||= [], l.push(u)); - }), l !== void 0 && ac(l, t); + ir(i.imports, (u) => { + qn(u, t, n, r) && (l ||= [], l.push(u)); + }), l !== void 0 && dc(l, t); } if (!a) { - let l = Et(o) || (() => new o()); - t({ provide: o, useFactory: l, deps: Ne }, o), t({ provide: ui, useValue: o, multi: true }, o), t({ provide: Je, useValue: () => w(o), multi: true }, o); + let l = bt(o) || (() => new o()); + t({ provide: o, useFactory: l, deps: ke }, o), t({ provide: yi, useValue: o, multi: true }, o), t({ provide: tt, useValue: () => b(o), multi: true }, o); } let c = i.providers; if (c != null && !a) { let l = e12; - fi(c, (u) => { + Ei(c, (u) => { t(u, l); }); } @@ -1117,33 +1117,33 @@ function $n(e12, t, n, r) { return false; return o !== e12 && e12.providers !== void 0; } -function fi(e12, t) { +function Ei(e12, t) { for (let n of e12) - Xo(n) && (n = n.\u0275providers), Array.isArray(n) ? fi(n, t) : t(n); + si(n) && (n = n.\u0275providers), Array.isArray(n) ? Ei(n, t) : t(n); } -var Pd = b({ provide: String, useValue: b }); -function cc(e12) { - return e12 !== null && typeof e12 == "object" && Pd in e12; +var Hd = w({ provide: String, useValue: w }); +function fc(e12) { + return e12 !== null && typeof e12 == "object" && Hd in e12; } -function Ld(e12) { +function Vd(e12) { return !!(e12 && e12.useExisting); } -function Fd(e12) { +function Bd(e12) { return !!(e12 && e12.useFactory); } -function Un(e12) { +function Zn(e12) { return typeof e12 == "function"; } -var Yt = new D(""); -var Vn = {}; -var qa = {}; -var Ho; -function Kt() { - return Ho === void 0 && (Ho = new Wt()), Ho; +var Xt = new D(""); +var Wn = {}; +var Ka = {}; +var Go; +function en() { + return Go === void 0 && (Go = new Zt()), Go; } -var Q = class { +var Y = class { }; -var qe = class extends Q { +var Ye = class extends Y { parent; source; scopes; @@ -1156,22 +1156,22 @@ var qe = class extends Q { _destroyed = false; injectorDefTypes; constructor(t, n, r, o) { - super(), this.parent = n, this.source = r, this.scopes = o, Go(t, (s) => this.processProvider(s)), this.records.set(li, vt(void 0, this)), o.has("environment") && this.records.set(Q, vt(void 0, this)); - let i = this.records.get(Yt); - i != null && typeof i.value == "string" && this.scopes.add(i.value), this.injectorDefTypes = new Set(this.get(ui, Ne, { self: true })); + super(), this.parent = n, this.source = r, this.scopes = o, Xo(t, (s) => this.processProvider(s)), this.records.set(mi, Dt(void 0, this)), o.has("environment") && this.records.set(Y, Dt(void 0, this)); + let i = this.records.get(Xt); + i != null && typeof i.value == "string" && this.scopes.add(i.value), this.injectorDefTypes = new Set(this.get(yi, ke, { self: true })); } retrieve(t, n) { - let r = Ge(n) || 0; + let r = Qe(n) || 0; try { - return this.get(t, We, r); + return this.get(t, Ze, r); } catch (o) { - if (yt(o)) + if (It(o)) return o; throw o; } } destroy() { - zt(this), this._destroyed = true; + qt(this), this._destroyed = true; let t = g(null); try { for (let r of this._ngOnDestroyHooks) @@ -1185,68 +1185,68 @@ var qe = class extends Q { } } onDestroy(t) { - return zt(this), this._onDestroyHooks.push(t), () => this.removeOnDestroy(t); + return qt(this), this._onDestroyHooks.push(t), () => this.removeOnDestroy(t); } runInContext(t) { - zt(this); - let n = ae(this), r = z(void 0), o; + qt(this); + let n = le(this), r = G(void 0), o; try { return t(); } finally { - ae(n), z(r); + le(n), G(r); } } - get(t, n = We, r) { - if (zt(this), t.hasOwnProperty(Ga)) - return t[Ga](this); - let o = Ge(r), i, s = ae(this), a = z(void 0); + get(t, n = Ze, r) { + if (qt(this), t.hasOwnProperty(Ya)) + return t[Ya](this); + let o = Qe(r), i, s = le(this), a = G(void 0); try { if (!(o & 4)) { let l = this.records.get(t); if (l === void 0) { - let u = $d(t) && Kn(t); - u && this.injectableDefInScope(u) ? l = vt(Wo(t), Vn) : l = null, this.records.set(t, l); + let u = Gd(t) && nr(t); + u && this.injectableDefInScope(u) ? l = Dt(Jo(t), Wn) : l = null, this.records.set(t, l); } if (l != null) return this.hydrate(t, l, o); } - let c = o & 2 ? Kt() : this.parent; - return n = o & 8 && n === We ? null : n, c.get(t, n); + let c = o & 2 ? en() : this.parent; + return n = o & 8 && n === Ze ? null : n, c.get(t, n); } catch (c) { - let l = Sd(c); + let l = Ad(c); throw l === -200 || l === -201 ? new v(l, null) : c; } finally { - z(a), ae(s); + G(a), le(s); } } resolveInjectorInitializers() { - let t = g(null), n = ae(this), r = z(void 0), o; + let t = g(null), n = le(this), r = G(void 0), o; try { - let i = this.get(Je, Ne, { self: true }); + let i = this.get(tt, ke, { self: true }); for (let s of i) s(); } finally { - ae(n), z(r), g(t); + le(n), G(r), g(t); } } toString() { return "R3Injector[...]"; } processProvider(t) { - t = W(t); - let n = Un(t) ? t : W(t && t.provide), r = Hd(t); - if (!Un(t) && t.multi === true) { + t = q(t); + let n = Zn(t) ? t : q(t && t.provide), r = Ud(t); + if (!Zn(t) && t.multi === true) { let o = this.records.get(n); - o || (o = vt(void 0, Vn, true), o.factory = () => zo(o.multi), this.records.set(n, o)), n = t, o.multi.push(t); + o || (o = Dt(void 0, Wn, true), o.factory = () => Ko(o.multi), this.records.set(n, o)), n = t, o.multi.push(t); } this.records.set(n, r); } hydrate(t, n, r) { let o = g(null); try { - if (n.value === qa) - throw si(""); - return n.value === Vn && (n.value = qa, n.value = n.factory(void 0, r)), typeof n.value == "object" && n.value && Bd(n.value) && this._ngOnDestroyHooks.add(n.value), n.value; + if (n.value === Ka) + throw pi(""); + return n.value === Wn && (n.value = Ka, n.value = n.factory(void 0, r)), typeof n.value == "object" && n.value && Wd(n.value) && this._ngOnDestroyHooks.add(n.value), n.value; } finally { g(o); } @@ -1254,7 +1254,7 @@ var qe = class extends Q { injectableDefInScope(t) { if (!t.providedIn) return false; - let n = W(t.providedIn); + let n = q(t.providedIn); return typeof n == "string" ? n === "any" || this.scopes.has(n) : this.injectorDefTypes.has(n); } removeOnDestroy(t) { @@ -1262,431 +1262,437 @@ var qe = class extends Q { n !== -1 && this._onDestroyHooks.splice(n, 1); } }; -function Wo(e12) { - let t = Kn(e12), n = t !== null ? t.factory : Et(e12); +function Jo(e12) { + let t = nr(e12), n = t !== null ? t.factory : bt(e12); if (n !== null) return n; if (e12 instanceof D) throw new v(-204, false); if (e12 instanceof Function) - return jd(e12); + return $d(e12); throw new v(-204, false); } -function jd(e12) { +function $d(e12) { if (e12.length > 0) throw new v(-204, false); - let n = Td(e12); + let n = Nd(e12); return n !== null ? () => n.factory(e12) : () => new e12(); } -function Hd(e12) { - if (cc(e12)) - return vt(void 0, e12.useValue); +function Ud(e12) { + if (fc(e12)) + return Dt(void 0, e12.useValue); { - let t = lc(e12); - return vt(t, Vn); + let t = pc(e12); + return Dt(t, Wn); } } -function lc(e12, t, n) { +function pc(e12, t, n) { let r; - if (Un(e12)) { - let o = W(e12); - return Et(o) || Wo(o); - } else if (cc(e12)) - r = () => W(e12.useValue); - else if (Fd(e12)) - r = () => e12.useFactory(...zo(e12.deps || [])); - else if (Ld(e12)) - r = (o, i) => w(W(e12.useExisting), i !== void 0 && i & 8 ? 8 : void 0); + if (Zn(e12)) { + let o = q(e12); + return bt(o) || Jo(o); + } else if (fc(e12)) + r = () => q(e12.useValue); + else if (Bd(e12)) + r = () => e12.useFactory(...Ko(e12.deps || [])); + else if (Vd(e12)) + r = (o, i) => b(q(e12.useExisting), i !== void 0 && i & 8 ? 8 : void 0); else { - let o = W(e12 && (e12.useClass || e12.provide)); - if (Vd(e12)) - r = () => new o(...zo(e12.deps)); + let o = q(e12 && (e12.useClass || e12.provide)); + if (zd(e12)) + r = () => new o(...Ko(e12.deps)); else - return Et(o) || Wo(o); + return bt(o) || Jo(o); } return r; } -function zt(e12) { +function qt(e12) { if (e12.destroyed) throw new v(-205, false); } -function vt(e12, t, n = false) { +function Dt(e12, t, n = false) { return { factory: e12, value: t, multi: n ? [] : void 0 }; } -function Vd(e12) { +function zd(e12) { return !!e12.deps; } -function Bd(e12) { +function Wd(e12) { return e12 !== null && typeof e12 == "object" && typeof e12.ngOnDestroy == "function"; } -function $d(e12) { +function Gd(e12) { return typeof e12 == "function" || typeof e12 == "object" && e12.ngMetadataName === "InjectionToken"; } -function Go(e12, t) { +function Xo(e12, t) { for (let n of e12) - Array.isArray(n) ? Go(n, t) : n && Xo(n) ? Go(n.\u0275providers, t) : t(n); + Array.isArray(n) ? Xo(n, t) : n && si(n) ? Xo(n.\u0275providers, t) : t(n); } -function nr(e12, t) { +function ar(e12, t) { let n; - e12 instanceof qe ? (zt(e12), n = e12) : n = new Uo(e12); - let r, o = ae(n), i = z(void 0); + e12 instanceof Ye ? (qt(e12), n = e12) : n = new Yo(e12); + let r, o = le(n), i = G(void 0); try { return t(); } finally { - ae(o), z(i); + le(o), G(i); } } -function uc() { - return ec() !== void 0 || Hn() != null; +function hc() { + return oc() !== void 0 || zn() != null; } -var ne = 0; +var re = 0; var m = 1; var y = 2; -var R = 3; -var K = 4; -var J = 5; -var wt = 6; -var Ct = 7; -var x = 8; -var De = 9; -var le = 10; +var A = 3; +var J = 4; +var X = 5; +var Tt = 6; +var Mt = 7; +var N = 8; +var be = 9; +var de = 10; var O = 11; -var bt = 12; -var pi = 13; -var Xe = 14; -var X = 15; -var Oe = 16; -var et = 17; -var ue = 18; -var we = 19; -var hi = 20; -var Ee = 21; -var rr = 22; -var xe = 23; -var G = 24; -var or = 25; -var ke = 26; -var F = 27; -var dc = 1; -var gi = 6; -var Pe = 7; -var Jt = 8; -var tt = 9; +var _t = 12; +var Ii = 13; +var nt = 14; +var ee = 15; +var je = 16; +var rt = 17; +var fe = 18; +var Ce = 19; +var Di = 20; +var Ie = 21; +var cr = 22; +var Pe = 23; +var Z = 24; +var lr = 25; +var He = 26; +var B = 27; +var gc = 1; +var bi = 6; +var Ve = 7; +var tn = 8; +var ot = 9; var S = 10; -function Le(e12) { - return Array.isArray(e12) && typeof e12[dc] == "object"; +function Be(e12) { + return Array.isArray(e12) && typeof e12[gc] == "object"; } -function re(e12) { - return Array.isArray(e12) && e12[dc] === true; +function oe(e12) { + return Array.isArray(e12) && e12[gc] === true; } -function mi(e12) { +function Ci(e12) { return (e12.flags & 4) !== 0; } -function Tt(e12) { +function St(e12) { return e12.componentOffset > -1; } -function yi(e12) { +function wi(e12) { return (e12.flags & 1) === 1; } -function Mt(e12) { +function Nt(e12) { return !!e12.template; } -function _t(e12) { +function xt(e12) { return (e12[y] & 512) !== 0; } -function nt(e12) { +function it(e12) { return (e12[y] & 256) === 256; } -var fc = "svg"; -var pc = "math"; -function ee(e12) { +var mc = "svg"; +var yc = "math"; +function te(e12) { for (; Array.isArray(e12); ) - e12 = e12[ne]; + e12 = e12[re]; return e12; } -function vi(e12, t) { - return ee(t[e12]); +function Ti(e12, t) { + return te(t[e12]); } -function de(e12, t) { - return ee(t[e12.index]); +function pe(e12, t) { + return te(t[e12.index]); } -function ir(e12, t) { +function ur(e12, t) { return e12.data[t]; } -function Ce(e12, t) { +function we(e12, t) { let n = t[e12]; - return Le(n) ? n : n[ne]; + return Be(n) ? n : n[re]; } -function hc(e12) { +function vc(e12) { return (e12[y] & 4) === 4; } -function sr(e12) { +function dr(e12) { return (e12[y] & 128) === 128; } -function gc(e12) { - return re(e12[R]); +function Ec(e12) { + return oe(e12[A]); } -function fe(e12, t) { +function he(e12, t) { return t == null ? null : e12[t]; } -function Ei(e12) { - e12[et] = 0; +function Mi(e12) { + e12[rt] = 0; } -function Ii(e12) { - e12[y] & 1024 || (e12[y] |= 1024, sr(e12) && St(e12)); +function _i(e12) { + e12[y] & 1024 || (e12[y] |= 1024, dr(e12) && Rt(e12)); } -function mc(e12, t) { +function Ic(e12, t) { for (; e12 > 0; ) - t = t[Xe], e12--; + t = t[nt], e12--; return t; } -function Xt(e12) { - return !!(e12[y] & 9216 || e12[G]?.dirty); +function nn(e12) { + return !!(e12[y] & 9216 || e12[Z]?.dirty); } -function ar(e12) { - e12[le].changeDetectionScheduler?.notify(8), e12[y] & 64 && (e12[y] |= 1024), Xt(e12) && St(e12); +function fr(e12) { + e12[de].changeDetectionScheduler?.notify(8), e12[y] & 64 && (e12[y] |= 1024), nn(e12) && Rt(e12); } -function St(e12) { - e12[le].changeDetectionScheduler?.notify(0); - let t = Ae(e12); - for (; t !== null && !(t[y] & 8192 || (t[y] |= 8192, !sr(t))); ) - t = Ae(t); +function Rt(e12) { + e12[de].changeDetectionScheduler?.notify(0); + let t = Le(e12); + for (; t !== null && !(t[y] & 8192 || (t[y] |= 8192, !dr(t))); ) + t = Le(t); } -function Di(e12, t) { - if (nt(e12)) +function Si(e12, t) { + if (it(e12)) throw new v(911, false); - e12[Ee] === null && (e12[Ee] = []), e12[Ee].push(t); + e12[Ie] === null && (e12[Ie] = []), e12[Ie].push(t); } -function yc(e12, t) { - if (e12[Ee] === null) +function Dc(e12, t) { + if (e12[Ie] === null) return; - let n = e12[Ee].indexOf(t); - n !== -1 && e12[Ee].splice(n, 1); + let n = e12[Ie].indexOf(t); + n !== -1 && e12[Ie].splice(n, 1); } -function Ae(e12) { - let t = e12[R]; - return re(t) ? t[R] : t; +function Le(e12) { + let t = e12[A]; + return oe(t) ? t[A] : t; } -function wi(e12) { - return e12[Ct] ??= []; +function Ni(e12) { + return e12[Mt] ??= []; } -function Ci(e12) { +function xi(e12) { return e12.cleanup ??= []; } -function vc(e12, t, n, r) { - let o = wi(t); - o.push(n), e12.firstCreatePass && Ci(e12).push(r, o.length - 1); +function bc(e12, t, n, r) { + let o = Ni(t); + o.push(n), e12.firstCreatePass && xi(e12).push(r, o.length - 1); } -var I = { lFrame: kc(null), bindingsEnabled: true, skipHydrationRootTNode: null }; -var qo = false; -function Ec() { +var I = { lFrame: jc(null), bindingsEnabled: true, skipHydrationRootTNode: null }; +var ei = false; +function Cc() { return I.lFrame.elementDepthCount; } -function Ic() { +function wc() { I.lFrame.elementDepthCount++; } -function Dc() { +function Tc() { I.lFrame.elementDepthCount--; } -function wc() { +function Mc() { return I.skipHydrationRootTNode !== null; } -function Cc(e12) { +function _c(e12) { return I.skipHydrationRootTNode === e12; } -function bc() { +function Sc() { I.skipHydrationRootTNode = null; } function M() { return I.lFrame.lView; } -function oe() { +function ie() { return I.lFrame.tView; } -function pe() { - let e12 = bi(); +function Te(e12) { + return I.lFrame.contextLView = e12, e12[N]; +} +function Me(e12) { + return I.lFrame.contextLView = null, e12; +} +function ge() { + let e12 = Ri(); for (; e12 !== null && e12.type === 64; ) e12 = e12.parent; return e12; } -function bi() { +function Ri() { return I.lFrame.currentTNode; } -function Tc() { +function Nc() { let e12 = I.lFrame, t = e12.currentTNode; return e12.isParent ? t : t.parent; } -function Nt(e12, t) { +function At(e12, t) { let n = I.lFrame; n.currentTNode = e12, n.isParent = t; } -function Ti() { +function Ai() { return I.lFrame.isParent; } -function Mc() { +function xc() { I.lFrame.isParent = false; } -function Mi() { - return qo; +function Oi() { + return ei; } -function Gt(e12) { - let t = qo; - return qo = e12, t; +function Qt(e12) { + let t = ei; + return ei = e12, t; } -function _c(e12) { +function Rc(e12) { return I.lFrame.bindingIndex = e12; } -function en() { +function rn() { return I.lFrame.bindingIndex++; } -function Sc(e12) { +function Ac(e12) { let t = I.lFrame, n = t.bindingIndex; return t.bindingIndex = t.bindingIndex + e12, n; } -function Nc() { +function Oc() { return I.lFrame.inI18n; } -function xc(e12, t) { +function kc(e12, t) { let n = I.lFrame; - n.bindingIndex = n.bindingRootIndex = e12, cr(t); + n.bindingIndex = n.bindingRootIndex = e12, pr(t); } -function Ac() { +function Pc() { return I.lFrame.currentDirectiveIndex; } -function cr(e12) { +function pr(e12) { I.lFrame.currentDirectiveIndex = e12; } -function Rc(e12) { +function Lc(e12) { let t = I.lFrame.currentDirectiveIndex; return t === -1 ? null : e12[t]; } -function _i() { +function ki() { return I.lFrame.currentQueryIndex; } -function lr(e12) { +function hr(e12) { I.lFrame.currentQueryIndex = e12; } -function Ud(e12) { +function qd(e12) { let t = e12[m]; - return t.type === 2 ? t.declTNode : t.type === 1 ? e12[J] : null; + return t.type === 2 ? t.declTNode : t.type === 1 ? e12[X] : null; } -function Si(e12, t, n) { +function Pi(e12, t, n) { if (n & 4) { let o = t, i = e12; for (; o = o.parent, o === null && !(n & 1); ) - if (o = Ud(i), o === null || (i = i[Xe], o.type & 10)) + if (o = qd(i), o === null || (i = i[nt], o.type & 10)) break; if (o === null) return false; t = o, e12 = i; } - let r = I.lFrame = Oc(); + let r = I.lFrame = Fc(); return r.currentTNode = t, r.lView = e12, true; } -function ur(e12) { - let t = Oc(), n = e12[m]; +function gr(e12) { + let t = Fc(), n = e12[m]; I.lFrame = t, t.currentTNode = n.firstChild, t.lView = e12, t.tView = n, t.contextLView = e12, t.bindingIndex = n.bindingStartIndex, t.inI18n = false; } -function Oc() { +function Fc() { let e12 = I.lFrame, t = e12 === null ? null : e12.child; - return t === null ? kc(e12) : t; + return t === null ? jc(e12) : t; } -function kc(e12) { +function jc(e12) { let t = { currentTNode: null, isParent: true, lView: null, tView: null, selectedIndex: -1, contextLView: null, elementDepthCount: 0, currentNamespace: null, currentDirectiveIndex: -1, bindingRootIndex: -1, bindingIndex: -1, currentQueryIndex: 0, parent: e12, child: null, inI18n: false }; return e12 !== null && (e12.child = t), t; } -function Pc() { +function Hc() { let e12 = I.lFrame; return I.lFrame = e12.parent, e12.currentTNode = null, e12.lView = null, e12; } -var Ni = Pc; -function dr() { - let e12 = Pc(); +var Li = Hc; +function mr() { + let e12 = Hc(); e12.isParent = true, e12.tView = null, e12.selectedIndex = -1, e12.contextLView = null, e12.elementDepthCount = 0, e12.currentDirectiveIndex = -1, e12.currentNamespace = null, e12.bindingRootIndex = -1, e12.bindingIndex = -1, e12.currentQueryIndex = 0; } -function Lc(e12) { - return (I.lFrame.contextLView = mc(e12, I.lFrame.contextLView))[x]; +function Vc(e12) { + return (I.lFrame.contextLView = Ic(e12, I.lFrame.contextLView))[N]; } -function Fe() { +function $e() { return I.lFrame.selectedIndex; } -function je(e12) { +function Ue(e12) { I.lFrame.selectedIndex = e12; } -function Fc() { +function Bc() { let e12 = I.lFrame; - return ir(e12.tView, e12.selectedIndex); + return ur(e12.tView, e12.selectedIndex); } -function jc() { +function $c() { return I.lFrame.currentNamespace; } -var Hc = true; -function fr() { - return Hc; +var Uc = true; +function yr() { + return Uc; } -function pr(e12) { - Hc = e12; +function vr(e12) { + Uc = e12; } -function Zo(e12, t = null, n = null, r) { - let o = Vc(e12, t, n, r); +function ti(e12, t = null, n = null, r) { + let o = zc(e12, t, n, r); return o.resolveInjectorInitializers(), o; } -function Vc(e12, t = null, n = null, r, o = /* @__PURE__ */ new Set()) { - let i = [n || Ne, sc(e12)], s; - return new qe(i, t || Kt(), s || null, o); +function zc(e12, t = null, n = null, r, o = /* @__PURE__ */ new Set()) { + let i = [n || ke, uc(e12)], s; + return new Ye(i, t || en(), s || null, o); } -var ce = class e2 { - static THROW_IF_NOT_FOUND = We; - static NULL = new Wt(); +var ue = class e2 { + static THROW_IF_NOT_FOUND = Ze; + static NULL = new Zt(); static create(t, n) { if (Array.isArray(t)) - return Zo({ name: "" }, n, t, ""); + return ti({ name: "" }, n, t, ""); { let r = t.name ?? ""; - return Zo({ name: r }, t.parent, t.providers, r); + return ti({ name: r }, t.parent, t.providers, r); } } - static \u0275prov = _({ token: e2, providedIn: "any", factory: () => w(li) }); + static \u0275prov = _({ token: e2, providedIn: "any", factory: () => b(mi) }); static __NG_ELEMENT_ID__ = -1; }; -var U = new D(""); -var xt = /* @__PURE__ */ (() => { +var z = new D(""); +var Ot = /* @__PURE__ */ (() => { class e12 { - static __NG_ELEMENT_ID__ = zd; + static __NG_ELEMENT_ID__ = Zd; static __NG_ENV_ID__ = (n) => n; } return e12; })(); -var zn = class extends xt { +var Qn = class extends Ot { _lView; constructor(t) { super(), this._lView = t; } get destroyed() { - return nt(this._lView); + return it(this._lView); } onDestroy(t) { let n = this._lView; - return Di(n, t), () => yc(n, t); + return Si(n, t), () => Dc(n, t); } }; -function zd() { - return new zn(M()); +function Zd() { + return new Qn(M()); } -var Bc = false; -var $c = new D(""); -var At = (() => { +var Wc = false; +var Gc = new D(""); +var kt = (() => { class e12 { taskId = 0; pendingTasks = /* @__PURE__ */ new Set(); destroyed = false; - pendingTask = new Ut(false); - debugTaskTracker = E($c, { optional: true }); + pendingTask = new Gt(false); + debugTaskTracker = E(Gc, { optional: true }); get hasPendingTasks() { return this.destroyed ? false : this.pendingTask.value; } get hasPendingTasksObservable() { - return this.destroyed ? new mt((n) => { + return this.destroyed ? new Et((n) => { n.next(false), n.complete(); }) : this.pendingTask; } @@ -1708,12 +1714,12 @@ var At = (() => { } return e12; })(); -var Qo = class extends ye { +var ni = class extends ve { __isAsync; destroyRef = void 0; pendingTasks = void 0; constructor(t = false) { - super(), this.__isAsync = t, uc() && (this.destroyRef = E(xt, { optional: true }) ?? void 0, this.pendingTasks = E(At, { optional: true }) ?? void 0); + super(), this.__isAsync = t, hc() && (this.destroyRef = E(Ot, { optional: true }) ?? void 0, this.pendingTasks = E(kt, { optional: true }) ?? void 0); } emit(t) { let n = g(null); @@ -1731,7 +1737,7 @@ var Qo = class extends ye { } this.__isAsync && (i = this.wrapInTimeout(i), o && (o = this.wrapInTimeout(o)), s && (s = this.wrapInTimeout(s))); let a = super.subscribe({ next: o, error: i, complete: s }); - return t instanceof H && t.add(a), a; + return t instanceof $ && t.add(a), a; } wrapInTimeout(t) { return (n) => { @@ -1746,13 +1752,13 @@ var Qo = class extends ye { }; } }; -var ve = Qo; -function Wn(...e12) { +var Ee = ni; +function Yn(...e12) { } -function xi(e12) { +function Fi(e12) { let t, n; function r() { - e12 = Wn; + e12 = Yn; try { n !== void 0 && typeof cancelAnimationFrame == "function" && cancelAnimationFrame(n), t !== void 0 && clearTimeout(t); } catch { @@ -1764,32 +1770,32 @@ function xi(e12) { e12(), r(); })), () => r(); } -function Uc(e12) { +function qc(e12) { return queueMicrotask(() => e12()), () => { - e12 = Wn; + e12 = Yn; }; } -var Ai = "isAngularZone"; -var qt = Ai + "_ID"; -var Wd = 0; -var Y = class e3 { +var ji = "isAngularZone"; +var Yt = ji + "_ID"; +var Qd = 0; +var K = class e3 { hasPendingMacrotasks = false; hasPendingMicrotasks = false; isStable = true; - onUnstable = new ve(false); - onMicrotaskEmpty = new ve(false); - onStable = new ve(false); - onError = new ve(false); + onUnstable = new Ee(false); + onMicrotaskEmpty = new Ee(false); + onStable = new Ee(false); + onError = new Ee(false); constructor(t) { - let { enableLongStackTrace: n = false, shouldCoalesceEventChangeDetection: r = false, shouldCoalesceRunChangeDetection: o = false, scheduleInRootZone: i = Bc } = t; + let { enableLongStackTrace: n = false, shouldCoalesceEventChangeDetection: r = false, shouldCoalesceRunChangeDetection: o = false, scheduleInRootZone: i = Wc } = t; if (typeof Zone > "u") throw new v(908, false); Zone.assertZonePatched(); let s = this; - s._nesting = 0, s._outer = s._inner = Zone.current, Zone.TaskTrackingZoneSpec && (s._inner = s._inner.fork(new Zone.TaskTrackingZoneSpec())), n && Zone.longStackTraceZoneSpec && (s._inner = s._inner.fork(Zone.longStackTraceZoneSpec)), s.shouldCoalesceEventChangeDetection = !o && r, s.shouldCoalesceRunChangeDetection = o, s.callbackScheduled = false, s.scheduleInRootZone = i, Zd(s); + s._nesting = 0, s._outer = s._inner = Zone.current, Zone.TaskTrackingZoneSpec && (s._inner = s._inner.fork(new Zone.TaskTrackingZoneSpec())), n && Zone.longStackTraceZoneSpec && (s._inner = s._inner.fork(Zone.longStackTraceZoneSpec)), s.shouldCoalesceEventChangeDetection = !o && r, s.shouldCoalesceRunChangeDetection = o, s.callbackScheduled = false, s.scheduleInRootZone = i, Jd(s); } static isInAngularZone() { - return typeof Zone < "u" && Zone.current.get(Ai) === true; + return typeof Zone < "u" && Zone.current.get(ji) === true; } static assertInAngularZone() { if (!e3.isInAngularZone()) @@ -1803,7 +1809,7 @@ var Y = class e3 { return this._inner.run(t, n, r); } runTask(t, n, r, o) { - let i = this._inner, s = i.scheduleEventTask("NgZoneEvent: " + o, t, Gd, Wn, Wn); + let i = this._inner, s = i.scheduleEventTask("NgZoneEvent: " + o, t, Yd, Yn, Yn); try { return i.runTask(s, n, r); } finally { @@ -1817,8 +1823,8 @@ var Y = class e3 { return this._outer.run(t); } }; -var Gd = {}; -function Ri(e12) { +var Yd = {}; +function Hi(e12) { if (e12._nesting == 0 && !e12.hasPendingMicrotasks && !e12.isStable) try { e12._nesting++, e12.onMicrotaskEmpty.emit(null); @@ -1831,60 +1837,60 @@ function Ri(e12) { } } } -function qd(e12) { +function Kd(e12) { if (e12.isCheckStableRunning || e12.callbackScheduled) return; e12.callbackScheduled = true; function t() { - xi(() => { - e12.callbackScheduled = false, Yo(e12), e12.isCheckStableRunning = true, Ri(e12), e12.isCheckStableRunning = false; + Fi(() => { + e12.callbackScheduled = false, ri(e12), e12.isCheckStableRunning = true, Hi(e12), e12.isCheckStableRunning = false; }); } e12.scheduleInRootZone ? Zone.root.run(() => { t(); }) : e12._outer.run(() => { t(); - }), Yo(e12); + }), ri(e12); } -function Zd(e12) { +function Jd(e12) { let t = () => { - qd(e12); - }, n = Wd++; - e12._inner = e12._inner.fork({ name: "angular", properties: { [Ai]: true, [qt]: n, [qt + n]: true }, onInvokeTask: (r, o, i, s, a, c) => { - if (Qd(c)) + Kd(e12); + }, n = Qd++; + e12._inner = e12._inner.fork({ name: "angular", properties: { [ji]: true, [Yt]: n, [Yt + n]: true }, onInvokeTask: (r, o, i, s, a, c) => { + if (Xd(c)) return r.invokeTask(i, s, a, c); try { - return Za(e12), r.invokeTask(i, s, a, c); + return Ja(e12), r.invokeTask(i, s, a, c); } finally { - (e12.shouldCoalesceEventChangeDetection && s.type === "eventTask" || e12.shouldCoalesceRunChangeDetection) && t(), Qa(e12); + (e12.shouldCoalesceEventChangeDetection && s.type === "eventTask" || e12.shouldCoalesceRunChangeDetection) && t(), Xa(e12); } }, onInvoke: (r, o, i, s, a, c, l) => { try { - return Za(e12), r.invoke(i, s, a, c, l); + return Ja(e12), r.invoke(i, s, a, c, l); } finally { - e12.shouldCoalesceRunChangeDetection && !e12.callbackScheduled && !Yd(c) && t(), Qa(e12); + e12.shouldCoalesceRunChangeDetection && !e12.callbackScheduled && !ef(c) && t(), Xa(e12); } }, onHasTask: (r, o, i, s) => { - r.hasTask(i, s), o === i && (s.change == "microTask" ? (e12._hasPendingMicrotasks = s.microTask, Yo(e12), Ri(e12)) : s.change == "macroTask" && (e12.hasPendingMacrotasks = s.macroTask)); + r.hasTask(i, s), o === i && (s.change == "microTask" ? (e12._hasPendingMicrotasks = s.microTask, ri(e12), Hi(e12)) : s.change == "macroTask" && (e12.hasPendingMacrotasks = s.macroTask)); }, onHandleError: (r, o, i, s) => (r.handleError(i, s), e12.runOutsideAngular(() => e12.onError.emit(s)), false) }); } -function Yo(e12) { +function ri(e12) { e12._hasPendingMicrotasks || (e12.shouldCoalesceEventChangeDetection || e12.shouldCoalesceRunChangeDetection) && e12.callbackScheduled === true ? e12.hasPendingMicrotasks = true : e12.hasPendingMicrotasks = false; } -function Za(e12) { +function Ja(e12) { e12._nesting++, e12.isStable && (e12.isStable = false, e12.onUnstable.emit(null)); } -function Qa(e12) { - e12._nesting--, Ri(e12); +function Xa(e12) { + e12._nesting--, Hi(e12); } -var Zt = class { +var Kt = class { hasPendingMicrotasks = false; hasPendingMacrotasks = false; isStable = true; - onUnstable = new ve(); - onMicrotaskEmpty = new ve(); - onStable = new ve(); - onError = new ve(); + onUnstable = new Ee(); + onMicrotaskEmpty = new Ee(); + onStable = new Ee(); + onError = new Ee(); run(t, n, r) { return t.apply(n, r); } @@ -1898,91 +1904,91 @@ var Zt = class { return t.apply(n, r); } }; -function Qd(e12) { - return zc(e12, "__ignore_ng_zone__"); +function Xd(e12) { + return Zc(e12, "__ignore_ng_zone__"); } -function Yd(e12) { - return zc(e12, "__scheduler_tick__"); +function ef(e12) { + return Zc(e12, "__scheduler_tick__"); } -function zc(e12, t) { +function Zc(e12, t) { return !Array.isArray(e12) || e12.length !== 1 ? false : e12[0]?.data?.[t] === true; } -var Ie = class { +var De = class { _console = console; handleError(t) { this._console.error("ERROR", t); } }; -var rt = new D("", { factory: () => { - let e12 = E(Y), t = E(Q), n; +var st = new D("", { factory: () => { + let e12 = E(K), t = E(Y), n; return (r) => { e12.runOutsideAngular(() => { t.destroyed && !n ? setTimeout(() => { throw r; - }) : (n ??= t.get(Ie), n.handleError(r)); + }) : (n ??= t.get(De), n.handleError(r)); }); }; } }); -var Wc = { provide: Je, useValue: () => { - let e12 = E(Ie, { optional: true }); +var Qc = { provide: tt, useValue: () => { + let e12 = E(De, { optional: true }); }, multi: true }; -var Kd = new D("", { factory: () => { - let e12 = E(U).defaultView; +var tf = new D("", { factory: () => { + let e12 = E(z).defaultView; if (!e12) return; - let t = E(rt), n = (i) => { + let t = E(st), n = (i) => { t(i.reason), i.preventDefault(); }, r = (i) => { i.error ? t(i.error) : t(new Error(i.message, { cause: i })), i.preventDefault(); }, o = () => { e12.addEventListener("unhandledrejection", n), e12.addEventListener("error", r); }; - typeof Zone < "u" ? Zone.root.run(o) : o(), E(xt).onDestroy(() => { + typeof Zone < "u" ? Zone.root.run(o) : o(), E(Ot).onDestroy(() => { e12.removeEventListener("error", r), e12.removeEventListener("unhandledrejection", n); }); } }); -function Oi() { - return Dt([ic(() => { - E(Kd); +function Vi() { + return wt([lc(() => { + E(tf); })]); } -function q(e12, t) { - let [n, r, o] = Mo(e12, t?.equal), i = n, s = i[Z]; - return i.set = r, i.update = o, i.asReadonly = Gc.bind(i), i; +function j(e12, t) { + let [n, r, o] = Oo(e12, t?.equal), i = n, s = i[Q]; + return i.set = r, i.update = o, i.asReadonly = Yc.bind(i), i; } -function Gc() { - let e12 = this[Z]; +function Yc() { + let e12 = this[Q]; if (e12.readonlyFn === void 0) { let t = () => this(); - t[Z] = e12, e12.readonlyFn = t; + t[Q] = e12, e12.readonlyFn = t; } return e12.readonlyFn; } -var hr = /* @__PURE__ */ (() => { +var Er = /* @__PURE__ */ (() => { class e12 { view; node; constructor(n, r) { this.view = n, this.node = r; } - static __NG_ELEMENT_ID__ = Jd; + static __NG_ELEMENT_ID__ = nf; } return e12; })(); -function Jd() { - return new hr(M(), pe()); +function nf() { + return new Er(M(), ge()); } -var Ze = class { +var Ke = class { }; -var tn = new D("", { factory: () => true }); -var ki = new D(""); -var gr = (() => { +var on = new D("", { factory: () => true }); +var Bi = new D(""); +var Ir = (() => { class e12 { - static \u0275prov = _({ token: e12, providedIn: "root", factory: () => new Ko() }); + static \u0275prov = _({ token: e12, providedIn: "root", factory: () => new oi() }); } return e12; })(); -var Ko = class { +var oi = class { dirtyEffectCount = 0; queues = /* @__PURE__ */ new Map(); add(t) { @@ -2016,25 +2022,25 @@ var Ko = class { return n; } }; -var Gn = class { - [Z]; +var Kn = class { + [Q]; constructor(t) { - this[Z] = t; + this[Q] = t; } destroy() { - this[Z].destroy(); + this[Q].destroy(); } }; -function Pi(e12, t) { - let n = t?.injector ?? E(ce), r = t?.manualCleanup !== true ? n.get(xt) : null, o, i = n.get(hr, null, { optional: true }), s = n.get(Ze); - return i !== null ? (o = tf(i.view, s, e12), r instanceof zn && r._lView === i.view && (r = null)) : o = nf(e12, n.get(gr), s), o.injector = n, r !== null && (o.onDestroyFns = [r.onDestroy(() => o.destroy())]), new Gn(o); +function $i(e12, t) { + let n = t?.injector ?? E(ue), r = t?.manualCleanup !== true ? n.get(Ot) : null, o, i = n.get(Er, null, { optional: true }), s = n.get(Ke); + return i !== null ? (o = sf(i.view, s, e12), r instanceof Qn && r._lView === i.view && (r = null)) : o = af(e12, n.get(Ir), s), o.injector = n, r !== null && (o.onDestroyFns = [r.onDestroy(() => o.destroy())]), new Kn(o); } -var qc = A(N({}, So), { cleanupFns: void 0, zone: null, onDestroyFns: null, run() { - let e12 = Gt(false); +var Kc = R(x({}, Po), { cleanupFns: void 0, zone: null, onDestroyFns: null, run() { + let e12 = Qt(false); try { - No(this); + Lo(this); } finally { - Gt(e12); + Qt(e12); } }, cleanup() { if (!this.cleanupFns?.length) @@ -2047,45 +2053,45 @@ var qc = A(N({}, So), { cleanupFns: void 0, zone: null, onDestroyFns: null, run( this.cleanupFns = [], g(e12); } } }); -var Xd = A(N({}, qc), { consumerMarkedDirty() { +var rf = R(x({}, Kc), { consumerMarkedDirty() { this.scheduler.schedule(this), this.notifier.notify(12); }, destroy() { - if (dt(this), this.onDestroyFns !== null) + if (ht(this), this.onDestroyFns !== null) for (let e12 of this.onDestroyFns) e12(); this.cleanup(), this.scheduler.remove(this); } }); -var ef = A(N({}, qc), { consumerMarkedDirty() { - this.view[y] |= 8192, St(this.view), this.notifier.notify(13); +var of = R(x({}, Kc), { consumerMarkedDirty() { + this.view[y] |= 8192, Rt(this.view), this.notifier.notify(13); }, destroy() { - if (dt(this), this.onDestroyFns !== null) + if (ht(this), this.onDestroyFns !== null) for (let e12 of this.onDestroyFns) e12(); - this.cleanup(), this.view[xe]?.delete(this); + this.cleanup(), this.view[Pe]?.delete(this); } }); -function tf(e12, t, n) { - let r = Object.create(ef); - return r.view = e12, r.zone = typeof Zone < "u" ? Zone.current : null, r.notifier = t, r.fn = Zc(r, n), e12[xe] ??= /* @__PURE__ */ new Set(), e12[xe].add(r), r.consumerMarkedDirty(r), r; +function sf(e12, t, n) { + let r = Object.create(of); + return r.view = e12, r.zone = typeof Zone < "u" ? Zone.current : null, r.notifier = t, r.fn = Jc(r, n), e12[Pe] ??= /* @__PURE__ */ new Set(), e12[Pe].add(r), r.consumerMarkedDirty(r), r; } -function nf(e12, t, n) { - let r = Object.create(Xd); - return r.fn = Zc(r, e12), r.scheduler = t, r.notifier = n, r.zone = typeof Zone < "u" ? Zone.current : null, r.scheduler.add(r), r.notifier.notify(12), r; +function af(e12, t, n) { + let r = Object.create(rf); + return r.fn = Jc(r, e12), r.scheduler = t, r.notifier = n, r.zone = typeof Zone < "u" ? Zone.current : null, r.scheduler.add(r), r.notifier.notify(12), r; } -function Zc(e12, t) { +function Jc(e12, t) { return () => { t((n) => (e12.cleanupFns ??= []).push(n)); }; } -function Tl(e12) { +function Nl(e12) { return { toString: e12 }.toString(); } -function vf(e12) { +function If(e12) { return typeof e12 == "function"; } -function Ml(e12, t, n, r) { +function xl(e12, t, n, r) { t !== null ? t.applyValueToInputSignal(t, r) : e12[n] = r; } -var br = class { +var Nr = class { previousValue; currentValue; firstChange; @@ -2096,14 +2102,14 @@ var br = class { return this.firstChange; } }; -function Ef(e12) { - return e12.type.prototype.ngOnChanges && (e12.setInput = Df), If; +function Df(e12) { + return e12.type.prototype.ngOnChanges && (e12.setInput = Cf), bf; } -function If() { - let e12 = Sl(this), t = e12?.current; +function bf() { + let e12 = Al(this), t = e12?.current; if (t) { let n = e12.previous; - if (n === Ke) + if (n === et) e12.previous = t; else for (let r in t) @@ -2111,61 +2117,61 @@ function If() { e12.current = null, this.ngOnChanges(t); } } -function Df(e12, t, n, r, o) { - let i = this.declaredInputs[r], s = Sl(e12) || wf(e12, { previous: Ke, current: null }), a = s.current || (s.current = {}), c = s.previous, l = c[i]; - a[i] = new br(l && l.currentValue, n, c === Ke), Ml(e12, t, o, n); +function Cf(e12, t, n, r, o) { + let i = this.declaredInputs[r], s = Al(e12) || wf(e12, { previous: et, current: null }), a = s.current || (s.current = {}), c = s.previous, l = c[i]; + a[i] = new Nr(l && l.currentValue, n, c === et), xl(e12, t, o, n); } -var _l = "__ngSimpleChanges__"; -function Sl(e12) { - return e12[_l] || null; +var Rl = "__ngSimpleChanges__"; +function Al(e12) { + return e12[Rl] || null; } function wf(e12, t) { - return e12[_l] = t; + return e12[Rl] = t; } -var Qc = []; +var Xc = []; var T = function(e12, t = null, n) { - for (let r = 0; r < Qc.length; r++) { - let o = Qc[r]; + for (let r = 0; r < Xc.length; r++) { + let o = Xc[r]; o(e12, t, n); } }; var C = function(e12) { return e12[e12.TemplateCreateStart = 0] = "TemplateCreateStart", e12[e12.TemplateCreateEnd = 1] = "TemplateCreateEnd", e12[e12.TemplateUpdateStart = 2] = "TemplateUpdateStart", e12[e12.TemplateUpdateEnd = 3] = "TemplateUpdateEnd", e12[e12.LifecycleHookStart = 4] = "LifecycleHookStart", e12[e12.LifecycleHookEnd = 5] = "LifecycleHookEnd", e12[e12.OutputStart = 6] = "OutputStart", e12[e12.OutputEnd = 7] = "OutputEnd", e12[e12.BootstrapApplicationStart = 8] = "BootstrapApplicationStart", e12[e12.BootstrapApplicationEnd = 9] = "BootstrapApplicationEnd", e12[e12.BootstrapComponentStart = 10] = "BootstrapComponentStart", e12[e12.BootstrapComponentEnd = 11] = "BootstrapComponentEnd", e12[e12.ChangeDetectionStart = 12] = "ChangeDetectionStart", e12[e12.ChangeDetectionEnd = 13] = "ChangeDetectionEnd", e12[e12.ChangeDetectionSyncStart = 14] = "ChangeDetectionSyncStart", e12[e12.ChangeDetectionSyncEnd = 15] = "ChangeDetectionSyncEnd", e12[e12.AfterRenderHooksStart = 16] = "AfterRenderHooksStart", e12[e12.AfterRenderHooksEnd = 17] = "AfterRenderHooksEnd", e12[e12.ComponentStart = 18] = "ComponentStart", e12[e12.ComponentEnd = 19] = "ComponentEnd", e12[e12.DeferBlockStateStart = 20] = "DeferBlockStateStart", e12[e12.DeferBlockStateEnd = 21] = "DeferBlockStateEnd", e12[e12.DynamicComponentStart = 22] = "DynamicComponentStart", e12[e12.DynamicComponentEnd = 23] = "DynamicComponentEnd", e12[e12.HostBindingsUpdateStart = 24] = "HostBindingsUpdateStart", e12[e12.HostBindingsUpdateEnd = 25] = "HostBindingsUpdateEnd", e12; }(C || {}); -function Cf(e12, t, n) { +function Tf(e12, t, n) { let { ngOnChanges: r, ngOnInit: o, ngDoCheck: i } = t.type.prototype; if (r) { - let s = Ef(t); + let s = Df(t); (n.preOrderHooks ??= []).push(e12, s), (n.preOrderCheckHooks ??= []).push(e12, s); } o && (n.preOrderHooks ??= []).push(0 - e12, o), i && ((n.preOrderHooks ??= []).push(e12, i), (n.preOrderCheckHooks ??= []).push(e12, i)); } -function bf(e12, t) { +function Mf(e12, t) { for (let n = t.directiveStart, r = t.directiveEnd; n < r; n++) { let i = e12.data[n].type.prototype, { ngAfterContentInit: s, ngAfterContentChecked: a, ngAfterViewInit: c, ngAfterViewChecked: l, ngOnDestroy: u } = i; s && (e12.contentHooks ??= []).push(-n, s), a && ((e12.contentHooks ??= []).push(n, a), (e12.contentCheckHooks ??= []).push(n, a)), c && (e12.viewHooks ??= []).push(-n, c), l && ((e12.viewHooks ??= []).push(n, l), (e12.viewCheckHooks ??= []).push(n, l)), u != null && (e12.destroyHooks ??= []).push(n, u); } } -function Ir(e12, t, n) { - Nl(e12, t, 3, n); +function Tr(e12, t, n) { + Ol(e12, t, 3, n); } -function Dr(e12, t, n, r) { - (e12[y] & 3) === n && Nl(e12, t, n, r); +function Mr(e12, t, n, r) { + (e12[y] & 3) === n && Ol(e12, t, n, r); } -function Li(e12, t) { +function Ui(e12, t) { let n = e12[y]; (n & 3) === t && (n &= 16383, n += 1, e12[y] = n); } -function Nl(e12, t, n, r) { - let o = r !== void 0 ? e12[et] & 65535 : 0, i = r ?? -1, s = t.length - 1, a = 0; +function Ol(e12, t, n, r) { + let o = r !== void 0 ? e12[rt] & 65535 : 0, i = r ?? -1, s = t.length - 1, a = 0; for (let c = o; c < s; c++) if (typeof t[c + 1] == "number") { if (a = t[c], r != null && a >= r) break; } else - t[c] < 0 && (e12[et] += 65536), (a < i || i == -1) && (Tf(e12, n, t, c), e12[et] = (e12[et] & 4294901760) + c + 2), c++; + t[c] < 0 && (e12[rt] += 65536), (a < i || i == -1) && (_f(e12, n, t, c), e12[rt] = (e12[rt] & 4294901760) + c + 2), c++; } -function Yc(e12, t) { +function el(e12, t) { T(C.LifecycleHookStart, e12, t); let n = g(null); try { @@ -2174,12 +2180,12 @@ function Yc(e12, t) { g(n), T(C.LifecycleHookEnd, e12, t); } } -function Tf(e12, t, n, r) { +function _f(e12, t, n, r) { let o = n[r] < 0, i = n[r + 1], s = o ? -n[r] : n[r], a = e12[s]; - o ? e12[y] >> 14 < e12[et] >> 16 && (e12[y] & 3) === t && (e12[y] += 16384, Yc(a, i)) : Yc(a, i); + o ? e12[y] >> 14 < e12[rt] >> 16 && (e12[y] & 3) === t && (e12[y] += 16384, el(a, i)) : el(a, i); } -var Ot = -1; -var sn = class { +var Lt = -1; +var ln = class { factory; name; injectImpl; @@ -2193,7 +2199,7 @@ var sn = class { this.factory = t, this.name = o, this.canSeeViewProviders = n, this.injectImpl = r; } }; -function Mf(e12, t, n) { +function Sf(e12, t, n) { let r = 0; for (; r < n.length; ) { let o = n[r]; @@ -2205,15 +2211,15 @@ function Mf(e12, t, n) { e12.setAttribute(t, s, a, i); } else { let i = o, s = n[++r]; - _f(i) ? e12.setProperty(t, i, s) : e12.setAttribute(t, i, s), r++; + Nf(i) ? e12.setProperty(t, i, s) : e12.setAttribute(t, i, s), r++; } } return r; } -function _f(e12) { +function Nf(e12) { return e12.charCodeAt(0) === 64; } -function Fr(e12, t) { +function $r(e12, t) { if (!(t === null || t.length === 0)) if (e12 === null || e12.length === 0) e12 = t.slice(); @@ -2221,12 +2227,12 @@ function Fr(e12, t) { let n = -1; for (let r = 0; r < t.length; r++) { let o = t[r]; - typeof o == "number" ? n = o : n === 0 || (n === -1 || n === 2 ? Kc(e12, n, o, null, t[++r]) : Kc(e12, n, o, null, null)); + typeof o == "number" ? n = o : n === 0 || (n === -1 || n === 2 ? tl(e12, n, o, null, t[++r]) : tl(e12, n, o, null, null)); } } return e12; } -function Kc(e12, t, n, r, o) { +function tl(e12, t, n, r, o) { let i = 0, s = e12.length; if (t === -1) s = -1; @@ -2255,134 +2261,134 @@ function Kc(e12, t, n, r, o) { } s !== -1 && (e12.splice(s, 0, t), i = s + 1), e12.splice(i++, 0, n), o !== null && e12.splice(i++, 0, o); } -function xl(e12) { - return e12 !== Ot; +function kl(e12) { + return e12 !== Lt; } -function Tr(e12) { +function xr(e12) { return e12 & 32767; } -function Sf(e12) { +function xf(e12) { return e12 >> 16; } -function Mr(e12, t) { - let n = Sf(e12), r = t; +function Rr(e12, t) { + let n = xf(e12), r = t; for (; n > 0; ) - r = r[Xe], n--; + r = r[nt], n--; return r; } -var Ui = true; -function Jc(e12) { - let t = Ui; - return Ui = e12, t; -} -var Nf = 256; -var Al = Nf - 1; -var Rl = 5; -var xf = 0; -var he = {}; -function Af(e12, t, n) { +var Yi = true; +function nl(e12) { + let t = Yi; + return Yi = e12, t; +} +var Rf = 256; +var Pl = Rf - 1; +var Ll = 5; +var Af = 0; +var me = {}; +function Of(e12, t, n) { let r; - typeof n == "string" ? r = n.charCodeAt(0) || 0 : n.hasOwnProperty(Qe) && (r = n[Qe]), r == null && (r = n[Qe] = xf++); - let o = r & Al, i = 1 << o; - t.data[e12 + (o >> Rl)] |= i; + typeof n == "string" ? r = n.charCodeAt(0) || 0 : n.hasOwnProperty(Je) && (r = n[Je]), r == null && (r = n[Je] = Af++); + let o = r & Pl, i = 1 << o; + t.data[e12 + (o >> Ll)] |= i; } -function Ol(e12, t) { - let n = kl(e12, t); +function Fl(e12, t) { + let n = jl(e12, t); if (n !== -1) return n; let r = t[m]; - r.firstCreatePass && (e12.injectorIndex = t.length, Fi(r.data, e12), Fi(t, null), Fi(r.blueprint, null)); - let o = _s(e12, t), i = e12.injectorIndex; - if (xl(o)) { - let s = Tr(o), a = Mr(o, t), c = a[m].data; + r.firstCreatePass && (e12.injectorIndex = t.length, zi(r.data, e12), zi(t, null), zi(r.blueprint, null)); + let o = ks(e12, t), i = e12.injectorIndex; + if (kl(o)) { + let s = xr(o), a = Rr(o, t), c = a[m].data; for (let l = 0; l < 8; l++) t[i + l] = a[s + l] | c[s + l]; } return t[i + 8] = o, i; } -function Fi(e12, t) { +function zi(e12, t) { e12.push(0, 0, 0, 0, 0, 0, 0, 0, t); } -function kl(e12, t) { +function jl(e12, t) { return e12.injectorIndex === -1 || e12.parent && e12.parent.injectorIndex === e12.injectorIndex || t[e12.injectorIndex + 8] === null ? -1 : e12.injectorIndex; } -function _s(e12, t) { +function ks(e12, t) { if (e12.parent && e12.parent.injectorIndex !== -1) return e12.parent.injectorIndex; let n = 0, r = null, o = t; for (; o !== null; ) { - if (r = Hl(o), r === null) - return Ot; - if (n++, o = o[Xe], r.injectorIndex !== -1) + if (r = Ul(o), r === null) + return Lt; + if (n++, o = o[nt], r.injectorIndex !== -1) return r.injectorIndex | n << 16; } - return Ot; + return Lt; } -function Rf(e12, t, n) { - Af(e12, t, n); +function kf(e12, t, n) { + Of(e12, t, n); } -function Pl(e12, t, n) { +function Hl(e12, t, n) { if (n & 8 || e12 !== void 0) return e12; - Xn(t, "NodeInjector"); + or(t, "NodeInjector"); } -function Ll(e12, t, n, r) { +function Vl(e12, t, n, r) { if (n & 8 && r === void 0 && (r = null), (n & 3) === 0) { - let o = e12[De], i = z(void 0); + let o = e12[be], i = G(void 0); try { - return o ? o.get(t, r, n & 8) : ai(t, r, n & 8); + return o ? o.get(t, r, n & 8) : hi(t, r, n & 8); } finally { - z(i); + G(i); } } - return Pl(r, t, n); + return Hl(r, t, n); } -function Fl(e12, t, n, r = 0, o) { +function Bl(e12, t, n, r = 0, o) { if (e12 !== null) { if (t[y] & 2048 && !(r & 2)) { - let s = Lf(e12, t, n, r, he); - if (s !== he) + let s = jf(e12, t, n, r, me); + if (s !== me) return s; } - let i = jl(e12, t, n, r, he); - if (i !== he) + let i = $l(e12, t, n, r, me); + if (i !== me) return i; } - return Ll(t, n, r, o); + return Vl(t, n, r, o); } -function jl(e12, t, n, r, o) { - let i = kf(n); +function $l(e12, t, n, r, o) { + let i = Lf(n); if (typeof i == "function") { - if (!Si(t, e12, r)) - return r & 1 ? Pl(o, n, r) : Ll(t, n, r, o); + if (!Pi(t, e12, r)) + return r & 1 ? Hl(o, n, r) : Vl(t, n, r, o); try { let s; if (s = i(r), s == null && !(r & 8)) - Xn(n); + or(n); else return s; } finally { - Ni(); + Li(); } } else if (typeof i == "number") { - let s = null, a = kl(e12, t), c = Ot, l = r & 1 ? t[X][J] : null; - for ((a === -1 || r & 4) && (c = a === -1 ? _s(e12, t) : t[a + 8], c === Ot || !el(r, false) ? a = -1 : (s = t[m], a = Tr(c), t = Mr(c, t))); a !== -1; ) { + let s = null, a = jl(e12, t), c = Lt, l = r & 1 ? t[ee][X] : null; + for ((a === -1 || r & 4) && (c = a === -1 ? ks(e12, t) : t[a + 8], c === Lt || !ol(r, false) ? a = -1 : (s = t[m], a = xr(c), t = Rr(c, t))); a !== -1; ) { let u = t[m]; - if (Xc(i, a, u.data)) { - let d = Of(a, t, n, s, r, l); - if (d !== he) + if (rl(i, a, u.data)) { + let d = Pf(a, t, n, s, r, l); + if (d !== me) return d; } - c = t[a + 8], c !== Ot && el(r, t[m].data[a + 8] === l) && Xc(i, a, t) ? (s = u, a = Tr(c), t = Mr(c, t)) : a = -1; + c = t[a + 8], c !== Lt && ol(r, t[m].data[a + 8] === l) && rl(i, a, t) ? (s = u, a = xr(c), t = Rr(c, t)) : a = -1; } } return o; } -function Of(e12, t, n, r, o, i) { - let s = t[m], a = s.data[e12 + 8], c = r == null ? Tt(a) && Ui : r != s && (a.type & 3) !== 0, l = o & 1 && i === a, u = wr(a, s, n, c, l); - return u !== null ? _r(t, s, u, a, o) : he; +function Pf(e12, t, n, r, o, i) { + let s = t[m], a = s.data[e12 + 8], c = r == null ? St(a) && Yi : r != s && (a.type & 3) !== 0, l = o & 1 && i === a, u = _r(a, s, n, c, l); + return u !== null ? Ar(t, s, u, a, o) : me; } -function wr(e12, t, n, r, o) { +function _r(e12, t, n, r, o) { let i = e12.providerIndexes, s = t.data, a = i & 1048575, c = e12.directiveStart, l = e12.directiveEnd, u = i >> 20, d = r ? a : a + u, f = o ? a + u : l; for (let p = d; p < f; p++) { let h = s[p]; @@ -2391,101 +2397,101 @@ function wr(e12, t, n, r, o) { } if (o) { let p = s[c]; - if (p && Mt(p) && p.type === n) + if (p && Nt(p) && p.type === n) return c; } return null; } -function _r(e12, t, n, r, o) { +function Ar(e12, t, n, r, o) { let i = e12[n], s = t.data; - if (i instanceof sn) { + if (i instanceof ln) { let a = i; if (a.resolving) - throw si(""); - let c = Jc(a.canSeeViewProviders); + throw pi(""); + let c = nl(a.canSeeViewProviders); a.resolving = true; - let l = s[n].type || s[n], u, d = a.injectImpl ? z(a.injectImpl) : null, f = Si(e12, r, 0); + let l = s[n].type || s[n], u, d = a.injectImpl ? G(a.injectImpl) : null, f = Pi(e12, r, 0); try { - i = e12[n] = a.factory(void 0, o, s, e12, r), t.firstCreatePass && n >= r.directiveStart && Cf(n, s[n], t); + i = e12[n] = a.factory(void 0, o, s, e12, r), t.firstCreatePass && n >= r.directiveStart && Tf(n, s[n], t); } finally { - d !== null && z(d), Jc(c), a.resolving = false, Ni(); + d !== null && G(d), nl(c), a.resolving = false, Li(); } } return i; } -function kf(e12) { +function Lf(e12) { if (typeof e12 == "string") return e12.charCodeAt(0) || 0; - let t = e12.hasOwnProperty(Qe) ? e12[Qe] : void 0; - return typeof t == "number" ? t >= 0 ? t & Al : Pf : t; + let t = e12.hasOwnProperty(Je) ? e12[Je] : void 0; + return typeof t == "number" ? t >= 0 ? t & Pl : Ff : t; } -function Xc(e12, t, n) { +function rl(e12, t, n) { let r = 1 << e12; - return !!(n[t + (e12 >> Rl)] & r); + return !!(n[t + (e12 >> Ll)] & r); } -function el(e12, t) { +function ol(e12, t) { return !(e12 & 2) && !(e12 & 1 && t); } -var ot = class { +var at = class { _tNode; _lView; constructor(t, n) { this._tNode = t, this._lView = n; } get(t, n, r) { - return Fl(this._tNode, this._lView, t, Ge(r), n); + return Bl(this._tNode, this._lView, t, Qe(r), n); } }; -function Pf() { - return new ot(pe(), M()); +function Ff() { + return new at(ge(), M()); } -function Lf(e12, t, n, r, o) { +function jf(e12, t, n, r, o) { let i = e12, s = t; - for (; i !== null && s !== null && s[y] & 2048 && !_t(s); ) { - let a = jl(i, s, n, r | 2, he); - if (a !== he) + for (; i !== null && s !== null && s[y] & 2048 && !xt(s); ) { + let a = $l(i, s, n, r | 2, me); + if (a !== me) return a; let c = i.parent; if (!c) { - let l = s[hi]; + let l = s[Di]; if (l) { - let u = l.get(n, he, r & -5); - if (u !== he) + let u = l.get(n, me, r & -5); + if (u !== me) return u; } - c = Hl(s), s = s[Xe]; + c = Ul(s), s = s[nt]; } i = c; } return o; } -function Hl(e12) { +function Ul(e12) { let t = e12[m], n = t.type; - return n === 2 ? t.declTNode : n === 1 ? e12[J] : null; + return n === 2 ? t.declTNode : n === 1 ? e12[X] : null; } -function Ff() { - return Ft(pe(), M()); +function Hf() { + return Vt(ge(), M()); } -function Ft(e12, t) { - return new hn(de(e12, t)); +function Vt(e12, t) { + return new yn(pe(e12, t)); } -var hn = /* @__PURE__ */ (() => { +var yn = /* @__PURE__ */ (() => { class e12 { nativeElement; constructor(n) { this.nativeElement = n; } - static __NG_ELEMENT_ID__ = Ff; + static __NG_ELEMENT_ID__ = Hf; } return e12; })(); -function jf(e12) { - return e12 instanceof hn ? e12.nativeElement : e12; +function Vf(e12) { + return e12 instanceof yn ? e12.nativeElement : e12; } -function Hf() { +function Bf() { return this._results[Symbol.iterator](); } -var Sr = class { +var Or = class { _emitDistinctChangesOnly; dirty = true; _onDirty = void 0; @@ -2496,7 +2502,7 @@ var Sr = class { first = void 0; last = void 0; get changes() { - return this._changes ??= new ye(); + return this._changes ??= new ve(); } constructor(t = false) { this._emitDistinctChangesOnly = t; @@ -2530,8 +2536,8 @@ var Sr = class { } reset(t, n) { this.dirty = false; - let r = nc(t); - (this._changesDetected = !tc(this._results, r, n)) && (this._results = r, this.length = r.length, this.last = r[this.length - 1], this.first = r[0]); + let r = sc(t); + (this._changesDetected = !ic(this._results, r, n)) && (this._results = r, this.length = r.length, this.last = r[this.length - 1], this.first = r[0]); } notifyOnChanges() { this._changes !== void 0 && (this._changesDetected || !this._emitDistinctChangesOnly) && this._changes.next(this); @@ -2545,80 +2551,80 @@ var Sr = class { destroy() { this._changes !== void 0 && (this._changes.complete(), this._changes.unsubscribe()); } - [Symbol.iterator] = Hf; + [Symbol.iterator] = Bf; }; -function Vl(e12) { +function zl(e12) { return (e12.flags & 128) === 128; } -var Ss = function(e12) { +var Ps = function(e12) { return e12[e12.OnPush = 0] = "OnPush", e12[e12.Eager = 1] = "Eager", e12[e12.Default = 1] = "Default", e12; -}(Ss || {}); -var Bl = /* @__PURE__ */ new Map(); -var Vf = 0; -function Bf() { - return Vf++; +}(Ps || {}); +var Wl = /* @__PURE__ */ new Map(); +var $f = 0; +function Uf() { + return $f++; } -function $f(e12) { - Bl.set(e12[we], e12); +function zf(e12) { + Wl.set(e12[Ce], e12); } -function zi(e12) { - Bl.delete(e12[we]); +function Ki(e12) { + Wl.delete(e12[Ce]); } -var tl = "__ngContext__"; -function kt(e12, t) { - Le(t) ? (e12[tl] = t[we], $f(t)) : e12[tl] = t; +var il = "__ngContext__"; +function Ft(e12, t) { + Be(t) ? (e12[il] = t[Ce], zf(t)) : e12[il] = t; } -function $l(e12) { - return zl(e12[bt]); +function Gl(e12) { + return Zl(e12[_t]); } -function Ul(e12) { - return zl(e12[K]); +function ql(e12) { + return Zl(e12[J]); } -function zl(e12) { - for (; e12 !== null && !re(e12); ) - e12 = e12[K]; +function Zl(e12) { + for (; e12 !== null && !oe(e12); ) + e12 = e12[J]; return e12; } -var Wi; -function Ns(e12) { - Wi = e12; +var Ji; +function Ls(e12) { + Ji = e12; } -function Wl() { - if (Wi !== void 0) - return Wi; +function Ql() { + if (Ji !== void 0) + return Ji; if (typeof document < "u") return document; throw new v(210, false); } -var jr = new D("", { factory: () => Uf }); -var Uf = "ng"; -var Hr = new D(""); -var gn = new D("", { providedIn: "platform", factory: () => "unknown" }); -var Vr = new D("", { factory: () => E(U).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce") || null }); -var Gl = "r"; -var ql = "di"; -var Zl = false; -var Ql = new D("", { factory: () => Zl }); -var nl = /* @__PURE__ */ new WeakMap(); -function zf(e12, t) { +var Ur = new D("", { factory: () => Wf }); +var Wf = "ng"; +var zr = new D(""); +var vn = new D("", { providedIn: "platform", factory: () => "unknown" }); +var Wr = new D("", { factory: () => E(z).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce") || null }); +var Yl = "r"; +var Kl = "di"; +var Jl = false; +var Xl = new D("", { factory: () => Jl }); +var sl = /* @__PURE__ */ new WeakMap(); +function Gf(e12, t) { if (e12 == null || typeof e12 != "object") return; - let n = nl.get(e12); - n || (n = /* @__PURE__ */ new WeakSet(), nl.set(e12, n)), n.add(t); + let n = sl.get(e12); + n || (n = /* @__PURE__ */ new WeakSet(), sl.set(e12, n)), n.add(t); } -var Wf = (e12, t, n, r) => { +var qf = (e12, t, n, r) => { }; -function Gf(e12, t, n, r) { - Wf(e12, t, n, r); +function Zf(e12, t, n, r) { + qf(e12, t, n, r); } -function xs(e12) { +function Fs(e12) { return (e12.flags & 32) === 32; } -var qf = () => null; -function Yl(e12, t, n = false) { - return qf(e12, t, n); +var Qf = () => null; +function eu(e12, t, n = false) { + return Qf(e12, t, n); } -function Kl(e12, t) { +function tu(e12, t) { let n = e12.contentQueries; if (n !== null) { let r = g(null); @@ -2627,7 +2633,7 @@ function Kl(e12, t) { let i = n[o], s = n[o + 1]; if (s !== -1) { let a = e12.data[s]; - lr(i), a.contentQueries(2, t[s], s); + hr(i), a.contentQueries(2, t[s], s); } } } finally { @@ -2635,8 +2641,8 @@ function Kl(e12, t) { } } } -function Gi(e12, t, n) { - lr(0); +function Xi(e12, t, n) { + hr(0); let r = g(null); try { t(e12, n); @@ -2644,8 +2650,8 @@ function Gi(e12, t, n) { g(r); } } -function Zf(e12, t, n) { - if (mi(t)) { +function Yf(e12, t, n) { + if (Ci(t)) { let r = g(null); try { let o = t.directiveStart, i = t.directiveEnd; @@ -2661,102 +2667,102 @@ function Zf(e12, t, n) { } } } -var ie = function(e12) { +var se = function(e12) { return e12[e12.Emulated = 0] = "Emulated", e12[e12.None = 2] = "None", e12[e12.ShadowDom = 3] = "ShadowDom", e12[e12.ExperimentalIsolatedShadowDom = 4] = "ExperimentalIsolatedShadowDom", e12; -}(ie || {}); -var mr; -function Qf() { - if (mr === void 0 && (mr = null, Re.trustedTypes)) +}(se || {}); +var Dr; +function Kf() { + if (Dr === void 0 && (Dr = null, Fe.trustedTypes)) try { - mr = Re.trustedTypes.createPolicy("angular", { createHTML: (e12) => e12, createScript: (e12) => e12, createScriptURL: (e12) => e12 }); + Dr = Fe.trustedTypes.createPolicy("angular", { createHTML: (e12) => e12, createScript: (e12) => e12, createScriptURL: (e12) => e12 }); } catch { } - return mr; + return Dr; } -function Br(e12) { - return Qf()?.createHTML(e12) || e12; +function Gr(e12) { + return Kf()?.createHTML(e12) || e12; } -var yr; -function Yf() { - if (yr === void 0 && (yr = null, Re.trustedTypes)) +var br; +function Jf() { + if (br === void 0 && (br = null, Fe.trustedTypes)) try { - yr = Re.trustedTypes.createPolicy("angular#unsafe-bypass", { createHTML: (e12) => e12, createScript: (e12) => e12, createScriptURL: (e12) => e12 }); + br = Fe.trustedTypes.createPolicy("angular#unsafe-bypass", { createHTML: (e12) => e12, createScript: (e12) => e12, createScriptURL: (e12) => e12 }); } catch { } - return yr; + return br; } -function rl(e12) { - return Yf()?.createHTML(e12) || e12; +function al(e12) { + return Jf()?.createHTML(e12) || e12; } -var be = class { +var _e = class { changingThisBreaksApplicationSecurity; constructor(t) { this.changingThisBreaksApplicationSecurity = t; } toString() { - return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qn})`; + return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Jn})`; } }; -var qi = class extends be { +var es = class extends _e { getTypeName() { return "HTML"; } }; -var Zi = class extends be { +var ts = class extends _e { getTypeName() { return "Style"; } }; -var Qi = class extends be { +var ns = class extends _e { getTypeName() { return "Script"; } }; -var Yi = class extends be { +var rs = class extends _e { getTypeName() { return "URL"; } }; -var Ki = class extends be { +var os = class extends _e { getTypeName() { return "ResourceURL"; } }; -function Me(e12) { - return e12 instanceof be ? e12.changingThisBreaksApplicationSecurity : e12; +function Ne(e12) { + return e12 instanceof _e ? e12.changingThisBreaksApplicationSecurity : e12; } -function He(e12, t) { - let n = Jl(e12); +function ze(e12, t) { + let n = nu(e12); if (n != null && n !== t) { if (n === "ResourceURL" && t === "URL") return true; - throw new Error(`Required a safe ${t}, got a ${n} (see ${qn})`); + throw new Error(`Required a safe ${t}, got a ${n} (see ${Jn})`); } return n === t; } -function Jl(e12) { - return e12 instanceof be && e12.getTypeName() || null; +function nu(e12) { + return e12 instanceof _e && e12.getTypeName() || null; } -function As(e12) { - return new qi(e12); +function js(e12) { + return new es(e12); } -function Rs(e12) { - return new Zi(e12); +function Hs(e12) { + return new ts(e12); } -function Os(e12) { - return new Qi(e12); +function Vs(e12) { + return new ns(e12); } -function ks(e12) { - return new Yi(e12); +function Bs(e12) { + return new rs(e12); } -function Ps(e12) { - return new Ki(e12); +function $s(e12) { + return new os(e12); } -function Kf(e12) { - let t = new Xi(e12); - return Jf() ? new Ji(t) : t; +function Xf(e12) { + let t = new ss(e12); + return ep() ? new is(t) : t; } -var Ji = class { +var is = class { inertDocumentHelper; constructor(t) { this.inertDocumentHelper = t; @@ -2764,14 +2770,14 @@ var Ji = class { getInertBodyElement(t) { t = "" + t; try { - let n = new window.DOMParser().parseFromString(Br(t), "text/html").body; + let n = new window.DOMParser().parseFromString(Gr(t), "text/html").body; return n === null ? this.inertDocumentHelper.getInertBodyElement(t) : (n.firstChild?.remove(), n); } catch { return null; } } }; -var Xi = class { +var ss = class { defaultDoc; inertDocument; constructor(t) { @@ -2779,58 +2785,58 @@ var Xi = class { } getInertBodyElement(t) { let n = this.inertDocument.createElement("template"); - return n.innerHTML = Br(t), n; + return n.innerHTML = Gr(t), n; } }; -function Jf() { +function ep() { try { - return !!new window.DOMParser().parseFromString(Br(""), "text/html"); + return !!new window.DOMParser().parseFromString(Gr(""), "text/html"); } catch { return false; } } -var Xf = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i; -function $r(e12) { - return e12 = String(e12), e12.match(Xf) ? e12 : "unsafe:" + e12; +var tp = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i; +function qr(e12) { + return e12 = String(e12), e12.match(tp) ? e12 : "unsafe:" + e12; } -function _e(e12) { +function xe(e12) { let t = {}; for (let n of e12.split(",")) t[n] = true; return t; } -function mn(...e12) { +function En(...e12) { let t = {}; for (let n of e12) for (let r in n) n.hasOwnProperty(r) && (t[r] = true); return t; } -var Xl = _e("area,br,col,hr,img,wbr"); -var eu = _e("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"); -var tu = _e("rp,rt"); -var ep = mn(tu, eu); -var tp = mn(eu, _e("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")); -var np = mn(tu, _e("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")); -var ol = mn(Xl, tp, np, ep); -var nu = _e("background,cite,href,itemtype,longdesc,poster,src,xlink:href"); -var rp = _e("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"); -var op = _e("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"); -var ip = mn(nu, rp, op); -var sp = _e("script,style,template"); -var es = class { +var ru = xe("area,br,col,hr,img,wbr"); +var ou = xe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"); +var iu = xe("rp,rt"); +var np = En(iu, ou); +var rp = En(ou, xe("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")); +var op = En(iu, xe("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")); +var cl = En(ru, rp, op, np); +var su = xe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"); +var ip = xe("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"); +var sp = xe("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"); +var ap = En(su, ip, sp); +var cp = xe("script,style,template"); +var as = class { sanitizedSomething = false; buf = []; sanitizeChildren(t) { let n = t.firstChild, r = true, o = []; for (; n; ) { if (n.nodeType === Node.ELEMENT_NODE ? r = this.startElement(n) : n.nodeType === Node.TEXT_NODE ? this.chars(n.nodeValue) : this.sanitizedSomething = true, r && n.firstChild) { - o.push(n), n = lp(n); + o.push(n), n = dp(n); continue; } for (; n; ) { n.nodeType === Node.ELEMENT_NODE && this.endElement(n); - let i = cp(n); + let i = up(n); if (i) { n = i; break; @@ -2841,144 +2847,144 @@ var es = class { return this.buf.join(""); } startElement(t) { - let n = il(t).toLowerCase(); - if (!ol.hasOwnProperty(n)) - return this.sanitizedSomething = true, !sp.hasOwnProperty(n); + let n = ll(t).toLowerCase(); + if (!cl.hasOwnProperty(n)) + return this.sanitizedSomething = true, !cp.hasOwnProperty(n); this.buf.push("<"), this.buf.push(n); let r = t.attributes; for (let o = 0; o < r.length; o++) { let i = r.item(o), s = i.name, a = s.toLowerCase(); - if (!ip.hasOwnProperty(a)) { + if (!ap.hasOwnProperty(a)) { this.sanitizedSomething = true; continue; } let c = i.value; - nu[a] && (c = $r(c)), this.buf.push(" ", s, '="', sl(c), '"'); + su[a] && (c = qr(c)), this.buf.push(" ", s, '="', ul(c), '"'); } return this.buf.push(">"), true; } endElement(t) { - let n = il(t).toLowerCase(); - ol.hasOwnProperty(n) && !Xl.hasOwnProperty(n) && (this.buf.push("")); + let n = ll(t).toLowerCase(); + cl.hasOwnProperty(n) && !ru.hasOwnProperty(n) && (this.buf.push("")); } chars(t) { - this.buf.push(sl(t)); + this.buf.push(ul(t)); } }; -function ap(e12, t) { +function lp(e12, t) { return (e12.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_CONTAINED_BY) !== Node.DOCUMENT_POSITION_CONTAINED_BY; } -function cp(e12) { +function up(e12) { let t = e12.nextSibling; if (t && e12 !== t.previousSibling) - throw ru(t); + throw au(t); return t; } -function lp(e12) { +function dp(e12) { let t = e12.firstChild; - if (t && ap(e12, t)) - throw ru(t); + if (t && lp(e12, t)) + throw au(t); return t; } -function il(e12) { +function ll(e12) { let t = e12.nodeName; return typeof t == "string" ? t : "FORM"; } -function ru(e12) { +function au(e12) { return new Error(`Failed to sanitize html because the element is clobbered: ${e12.outerHTML}`); } -var up = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; -var dp = /([^\#-~ |!])/g; -function sl(e12) { - return e12.replace(/&/g, "&").replace(up, function(t) { +var fp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; +var pp = /([^\#-~ |!])/g; +function ul(e12) { + return e12.replace(/&/g, "&").replace(fp, function(t) { let n = t.charCodeAt(0), r = t.charCodeAt(1); return "&#" + ((n - 55296) * 1024 + (r - 56320) + 65536) + ";"; - }).replace(dp, function(t) { + }).replace(pp, function(t) { return "&#" + t.charCodeAt(0) + ";"; }).replace(//g, ">"); } -var vr; -function Ur(e12, t) { +var Cr; +function Zr(e12, t) { let n = null; try { - vr = vr || Kf(e12); + Cr = Cr || Xf(e12); let r = t ? String(t) : ""; - n = vr.getInertBodyElement(r); + n = Cr.getInertBodyElement(r); let o = 5, i = r; do { if (o === 0) throw new Error("Failed to sanitize html because the input is unstable"); - o--, r = i, i = n.innerHTML, n = vr.getInertBodyElement(r); + o--, r = i, i = n.innerHTML, n = Cr.getInertBodyElement(r); } while (r !== i); - let a = new es().sanitizeChildren(al(n) || n); - return Br(a); + let a = new as().sanitizeChildren(dl(n) || n); + return Gr(a); } finally { if (n) { - let r = al(n) || n; + let r = dl(n) || n; for (; r.firstChild; ) r.firstChild.remove(); } } } -function al(e12) { - return "content" in e12 && fp(e12) ? e12.content : null; +function dl(e12) { + return "content" in e12 && hp(e12) ? e12.content : null; } -function fp(e12) { +function hp(e12) { return e12.nodeType === Node.ELEMENT_NODE && e12.nodeName === "TEMPLATE"; } -function pp(e12, t) { +function gp(e12, t) { return e12.createText(t); } -function hp(e12, t, n) { +function mp(e12, t, n) { e12.setValue(t, n); } -function ou(e12, t, n) { +function cu(e12, t, n) { return e12.createElement(t, n); } -function Nr(e12, t, n, r, o) { +function kr(e12, t, n, r, o) { e12.insertBefore(t, n, r, o); } -function iu(e12, t, n) { +function lu(e12, t, n) { e12.appendChild(t, n); } -function cl(e12, t, n, r, o) { - r !== null ? Nr(e12, t, n, r, o) : iu(e12, t, n); +function fl(e12, t, n, r, o) { + r !== null ? kr(e12, t, n, r, o) : lu(e12, t, n); } -function su(e12, t, n, r) { +function uu(e12, t, n, r) { e12.removeChild(null, t, n, r); } -function gp(e12, t, n) { +function yp(e12, t, n) { e12.setAttribute(t, "style", n); } -function mp(e12, t, n) { +function vp(e12, t, n) { n === "" ? e12.removeAttribute(t, "class") : e12.setAttribute(t, "class", n); } -function au(e12, t, n) { +function du(e12, t, n) { let { mergedAttrs: r, classes: o, styles: i } = n; - r !== null && Mf(e12, t, r), o !== null && mp(e12, t, o), i !== null && gp(e12, t, i); + r !== null && Sf(e12, t, r), o !== null && vp(e12, t, o), i !== null && yp(e12, t, i); } -var ge = function(e12) { +var ye = function(e12) { return e12[e12.NONE = 0] = "NONE", e12[e12.HTML = 1] = "HTML", e12[e12.STYLE = 2] = "STYLE", e12[e12.SCRIPT = 3] = "SCRIPT", e12[e12.URL = 4] = "URL", e12[e12.RESOURCE_URL = 5] = "RESOURCE_URL", e12; -}(ge || {}); -function Ls(e12) { - let t = yp(); - return t ? rl(t.sanitize(ge.HTML, e12) || "") : He(e12, "HTML") ? rl(Me(e12)) : Ur(Wl(), ii(e12)); +}(ye || {}); +function Us(e12) { + let t = Ep(); + return t ? al(t.sanitize(ye.HTML, e12) || "") : ze(e12, "HTML") ? al(Ne(e12)) : Zr(Ql(), fi(e12)); } -function yp() { +function Ep() { let e12 = M(); - return e12 && e12[le].sanitizer; + return e12 && e12[de].sanitizer; } -var vp = "ng-template"; -function Ep(e12) { - return e12.type === 4 && e12.value !== vp; +var Ip = "ng-template"; +function Dp(e12) { + return e12.type === 4 && e12.value !== Ip; } -function ts(e12) { +function cs(e12) { return (e12 & 1) === 0; } -function ll(e12, t) { +function pl(e12, t) { return e12 ? ":not(" + t.trim() + ")" : t; } -function Ip(e12) { +function bp(e12) { let t = e12[0], n = 1, r = 2, o = "", i = false; for (; n < e12.length; ) { let s = e12[n]; @@ -2989,13 +2995,13 @@ function Ip(e12) { } else r & 8 ? o += "." + s : r & 4 && (o += " " + s); else - o !== "" && !ts(s) && (t += ll(i, o), o = ""), r = s, i = i || !ts(r); + o !== "" && !cs(s) && (t += pl(i, o), o = ""), r = s, i = i || !cs(r); n++; } - return o !== "" && (t += ll(i, o)), t; + return o !== "" && (t += pl(i, o)), t; } -function Dp(e12) { - return e12.map(Ip).join(","); +function Cp(e12) { + return e12.map(bp).join(","); } function wp(e12) { let t = [], n = [], r = 1, o = 2; @@ -3004,7 +3010,7 @@ function wp(e12) { if (typeof i == "string") o === 2 ? i !== "" && t.push(i, e12[++r]) : o === 8 && n.push(i); else { - if (!ts(o)) + if (!cs(o)) break; o = i; } @@ -3012,34 +3018,34 @@ function wp(e12) { } return n.length && t.push(1, ...n), t; } -var Se = {}; -function Fs(e12, t, n, r, o, i, s, a, c, l, u) { - let d = F + r, f = d + o, p = Cp(d, f), h = typeof l == "function" ? l() : l; +var Re = {}; +function zs(e12, t, n, r, o, i, s, a, c, l, u) { + let d = B + r, f = d + o, p = Tp(d, f), h = typeof l == "function" ? l() : l; return p[m] = { type: e12, blueprint: p, template: n, queries: null, viewQuery: a, declTNode: t, data: p.slice().fill(null, d), bindingStartIndex: d, expandoStartIndex: f, hostBindingOpCodes: null, firstCreatePass: true, firstUpdatePass: true, staticViewQueries: false, staticContentQueries: false, preOrderHooks: null, preOrderCheckHooks: null, contentHooks: null, contentCheckHooks: null, viewHooks: null, viewCheckHooks: null, destroyHooks: null, cleanup: null, contentQueries: null, components: null, directiveRegistry: typeof i == "function" ? i() : i, pipeRegistry: typeof s == "function" ? s() : s, firstChild: null, schemas: c, consts: h, incompleteFirstPass: false, ssrId: u }; } -function Cp(e12, t) { +function Tp(e12, t) { let n = []; for (let r = 0; r < t; r++) - n.push(r < e12 ? null : Se); + n.push(r < e12 ? null : Re); return n; } -function bp(e12) { +function Mp(e12) { let t = e12.tView; - return t === null || t.incompleteFirstPass ? e12.tView = Fs(1, null, e12.template, e12.decls, e12.vars, e12.directiveDefs, e12.pipeDefs, e12.viewQuery, e12.schemas, e12.consts, e12.id) : t; + return t === null || t.incompleteFirstPass ? e12.tView = zs(1, null, e12.template, e12.decls, e12.vars, e12.directiveDefs, e12.pipeDefs, e12.viewQuery, e12.schemas, e12.consts, e12.id) : t; } -function js(e12, t, n, r, o, i, s, a, c, l, u) { +function Ws(e12, t, n, r, o, i, s, a, c, l, u) { let d = t.blueprint.slice(); - return d[ne] = o, d[y] = r | 4 | 128 | 8 | 64 | 1024, (l !== null || e12 && e12[y] & 2048) && (d[y] |= 2048), Ei(d), d[R] = d[Xe] = e12, d[x] = n, d[le] = s || e12 && e12[le], d[O] = a || e12 && e12[O], d[De] = c || e12 && e12[De] || null, d[J] = i, d[we] = Bf(), d[wt] = u, d[hi] = l, d[X] = t.type == 2 ? e12[X] : d, d; + return d[re] = o, d[y] = r | 4 | 128 | 8 | 64 | 1024, (l !== null || e12 && e12[y] & 2048) && (d[y] |= 2048), Mi(d), d[A] = d[nt] = e12, d[N] = n, d[de] = s || e12 && e12[de], d[O] = a || e12 && e12[O], d[be] = c || e12 && e12[be] || null, d[X] = i, d[Ce] = Uf(), d[Tt] = u, d[Di] = l, d[ee] = t.type == 2 ? e12[ee] : d, d; } -function Tp(e12, t, n) { - let r = de(t, e12), o = bp(n), i = e12[le].rendererFactory, s = Hs(e12, js(e12, o, null, cu(n), r, t, null, i.createRenderer(r, n), null, null, null)); +function _p(e12, t, n) { + let r = pe(t, e12), o = Mp(n), i = e12[de].rendererFactory, s = Gs(e12, Ws(e12, o, null, fu(n), r, t, null, i.createRenderer(r, n), null, null, null)); return e12[t.index] = s; } -function cu(e12) { +function fu(e12) { let t = 16; return e12.signals ? t = 4096 : e12.onPush && (t = 64), t; } -function lu(e12, t, n, r) { +function pu(e12, t, n, r) { if (n === 0) return -1; let o = t.length; @@ -3047,69 +3053,69 @@ function lu(e12, t, n, r) { t.push(r), e12.blueprint.push(r), e12.data.push(null); return o; } -function Hs(e12, t) { - return e12[bt] ? e12[pi][K] = t : e12[bt] = t, e12[pi] = t, t; +function Gs(e12, t) { + return e12[_t] ? e12[Ii][J] = t : e12[_t] = t, e12[Ii] = t, t; } -function V(e12 = 1) { - uu(oe(), M(), Fe() + e12, false); +function F(e12 = 1) { + hu(ie(), M(), $e() + e12, false); } -function uu(e12, t, n, r) { +function hu(e12, t, n, r) { if (!r) if ((t[y] & 3) === 3) { let i = e12.preOrderCheckHooks; - i !== null && Ir(t, i, n); + i !== null && Tr(t, i, n); } else { let i = e12.preOrderHooks; - i !== null && Dr(t, i, 0, n); + i !== null && Mr(t, i, 0, n); } - je(n); + Ue(n); } -var zr = function(e12) { +var Qr = function(e12) { return e12[e12.None = 0] = "None", e12[e12.SignalBased = 1] = "SignalBased", e12[e12.HasDecoratorInputTransform = 2] = "HasDecoratorInputTransform", e12; -}(zr || {}); -function ns(e12, t, n, r) { +}(Qr || {}); +function ls(e12, t, n, r) { let o = g(null); try { let [i, s, a] = e12.inputs[n], c = null; - (s & zr.SignalBased) !== 0 && (c = t[i][Z]), c !== null && c.transformFn !== void 0 ? r = c.transformFn(r) : a !== null && (r = a.call(t, r)), e12.setInput !== null ? e12.setInput(t, c, r, n, i) : Ml(t, c, i, r); + (s & Qr.SignalBased) !== 0 && (c = t[i][Q]), c !== null && c.transformFn !== void 0 ? r = c.transformFn(r) : a !== null && (r = a.call(t, r)), e12.setInput !== null ? e12.setInput(t, c, r, n, i) : xl(t, c, i, r); } finally { g(o); } } -var Te = function(e12) { +var Se = function(e12) { return e12[e12.Important = 1] = "Important", e12[e12.DashCase = 2] = "DashCase", e12; -}(Te || {}); -var Mp; -function Vs(e12, t) { - return Mp(e12, t); -} -var UE = typeof document < "u" && typeof document?.documentElement?.getAnimations == "function"; -var rs = /* @__PURE__ */ new WeakMap(); -var nn = /* @__PURE__ */ new WeakSet(); -function _p(e12, t) { - let n = rs.get(e12); +}(Se || {}); +var Sp; +function qs(e12, t) { + return Sp(e12, t); +} +var YE = typeof document < "u" && typeof document?.documentElement?.getAnimations == "function"; +var us = /* @__PURE__ */ new WeakMap(); +var sn = /* @__PURE__ */ new WeakSet(); +function Np(e12, t) { + let n = us.get(e12); if (!n || n.length === 0) return; let r = t.parentNode, o = t.previousSibling; for (let i = n.length - 1; i >= 0; i--) { let s = n[i], a = s.parentNode; - s === t ? (n.splice(i, 1), nn.add(s), s.dispatchEvent(new CustomEvent("animationend", { detail: { cancel: true } }))) : (o && s === o || a && r && a !== r) && (n.splice(i, 1), s.dispatchEvent(new CustomEvent("animationend", { detail: { cancel: true } })), s.parentNode?.removeChild(s)); + s === t ? (n.splice(i, 1), sn.add(s), s.dispatchEvent(new CustomEvent("animationend", { detail: { cancel: true } }))) : (o && s === o || a && r && a !== r) && (n.splice(i, 1), s.dispatchEvent(new CustomEvent("animationend", { detail: { cancel: true } })), s.parentNode?.removeChild(s)); } } -function Sp(e12, t) { - let n = rs.get(e12); - n ? n.includes(t) || n.push(t) : rs.set(e12, [t]); +function xp(e12, t) { + let n = us.get(e12); + n ? n.includes(t) || n.push(t) : us.set(e12, [t]); } -var it = /* @__PURE__ */ new Set(); -var Bs = function(e12) { +var ct = /* @__PURE__ */ new Set(); +var Zs = function(e12) { return e12[e12.CHANGE_DETECTION = 0] = "CHANGE_DETECTION", e12[e12.AFTER_NEXT_RENDER = 1] = "AFTER_NEXT_RENDER", e12; -}(Bs || {}); -var jt = new D(""); -var ul = /* @__PURE__ */ new Set(); -function ct(e12) { - ul.has(e12) || (ul.add(e12), performance?.mark?.("mark_feature_usage", { detail: { feature: e12 } })); +}(Zs || {}); +var Bt = new D(""); +var hl = /* @__PURE__ */ new Set(); +function dt(e12) { + hl.has(e12) || (hl.add(e12), performance?.mark?.("mark_feature_usage", { detail: { feature: e12 } })); } -var du = (() => { +var gu = (() => { class e12 { impl = null; execute() { @@ -3119,9 +3125,9 @@ var du = (() => { } return e12; })(); -var fu = new D("", { factory: () => ({ queue: /* @__PURE__ */ new Set(), isScheduled: false, scheduler: null, injector: E(Q) }) }); -function pu(e12, t, n) { - let r = e12.get(fu); +var mu = new D("", { factory: () => ({ queue: /* @__PURE__ */ new Set(), isScheduled: false, scheduler: null, injector: E(Y) }) }); +function yu(e12, t, n) { + let r = e12.get(mu); if (Array.isArray(t)) for (let o of t) r.queue.add(o), n?.detachedLeaveAnimationFns?.push(o); @@ -3129,99 +3135,99 @@ function pu(e12, t, n) { r.queue.add(t), n?.detachedLeaveAnimationFns?.push(t); r.scheduler && r.scheduler(e12); } -function Np(e12, t) { - let n = e12.get(fu); +function Rp(e12, t) { + let n = e12.get(mu); if (t.detachedLeaveAnimationFns) { for (let r of t.detachedLeaveAnimationFns) n.queue.delete(r); t.detachedLeaveAnimationFns = void 0; } } -function xp(e12, t) { +function Ap(e12, t) { for (let [n, r] of t) - pu(e12, r.animateFns); + yu(e12, r.animateFns); } -function dl(e12, t, n, r) { - let o = e12?.[ke]?.enter; - t !== null && o && o.has(n.index) && xp(r, o); +function gl(e12, t, n, r) { + let o = e12?.[He]?.enter; + t !== null && o && o.has(n.index) && Ap(r, o); } -function Rt(e12, t, n, r, o, i, s, a) { +function Pt(e12, t, n, r, o, i, s, a) { if (o != null) { let c, l = false; - re(o) ? c = o : Le(o) && (l = true, o = o[ne]); - let u = ee(o); - e12 === 0 && r !== null ? (dl(a, r, i, n), s == null ? iu(t, r, u) : Nr(t, r, u, s || null, true)) : e12 === 1 && r !== null ? (dl(a, r, i, n), Nr(t, r, u, s || null, true), _p(i, u)) : e12 === 2 ? (a?.[ke]?.leave?.has(i.index) && Sp(i, u), nn.delete(u), fl(a, i, n, (d) => { - if (nn.has(u)) { - nn.delete(u); + oe(o) ? c = o : Be(o) && (l = true, o = o[re]); + let u = te(o); + e12 === 0 && r !== null ? (gl(a, r, i, n), s == null ? lu(t, r, u) : kr(t, r, u, s || null, true)) : e12 === 1 && r !== null ? (gl(a, r, i, n), kr(t, r, u, s || null, true), Np(i, u)) : e12 === 2 ? (a?.[He]?.leave?.has(i.index) && xp(i, u), sn.delete(u), ml(a, i, n, (d) => { + if (sn.has(u)) { + sn.delete(u); return; } - su(t, u, l, d); - })) : e12 === 3 && (nn.delete(u), fl(a, i, n, () => { + uu(t, u, l, d); + })) : e12 === 3 && (sn.delete(u), ml(a, i, n, () => { t.destroyNode(u); - })), c != null && Up(t, e12, n, c, i, r, s); + })), c != null && Wp(t, e12, n, c, i, r, s); } } -function Ap(e12, t) { - hu(e12, t), t[ne] = null, t[J] = null; +function Op(e12, t) { + vu(e12, t), t[re] = null, t[X] = null; } -function Rp(e12, t, n, r, o, i) { - r[ne] = o, r[J] = t, Gr(e12, r, n, 1, o, i); +function kp(e12, t, n, r, o, i) { + r[re] = o, r[X] = t, Kr(e12, r, n, 1, o, i); } -function hu(e12, t) { - t[le].changeDetectionScheduler?.notify(9), Gr(e12, t, t[O], 2, null, null); +function vu(e12, t) { + t[de].changeDetectionScheduler?.notify(9), Kr(e12, t, t[O], 2, null, null); } -function Op(e12) { - let t = e12[bt]; +function Pp(e12) { + let t = e12[_t]; if (!t) - return ji(e12[m], e12); + return Wi(e12[m], e12); for (; t; ) { let n = null; - if (Le(t)) - n = t[bt]; + if (Be(t)) + n = t[_t]; else { let r = t[S]; r && (n = r); } if (!n) { - for (; t && !t[K] && t !== e12; ) - Le(t) && ji(t[m], t), t = t[R]; - t === null && (t = e12), Le(t) && ji(t[m], t), n = t && t[K]; + for (; t && !t[J] && t !== e12; ) + Be(t) && Wi(t[m], t), t = t[A]; + t === null && (t = e12), Be(t) && Wi(t[m], t), n = t && t[J]; } t = n; } } -function $s(e12, t) { - let n = e12[tt], r = n.indexOf(t); +function Qs(e12, t) { + let n = e12[ot], r = n.indexOf(t); n.splice(r, 1); } -function Wr(e12, t) { - if (nt(t)) +function Yr(e12, t) { + if (it(t)) return; let n = t[O]; - n.destroyNode && Gr(e12, t, n, 3, null, null), Op(t); + n.destroyNode && Kr(e12, t, n, 3, null, null), Pp(t); } -function ji(e12, t) { - if (nt(t)) +function Wi(e12, t) { + if (it(t)) return; let n = g(null); try { - t[y] &= -129, t[y] |= 256, t[G] && dt(t[G]), Lp(e12, t), Pp(e12, t), t[m].type === 1 && t[O].destroy(); - let r = t[Oe]; - if (r !== null && re(t[R])) { - r !== t[R] && $s(r, t); - let o = t[ue]; + t[y] &= -129, t[y] |= 256, t[Z] && ht(t[Z]), jp(e12, t), Fp(e12, t), t[m].type === 1 && t[O].destroy(); + let r = t[je]; + if (r !== null && oe(t[A])) { + r !== t[A] && Qs(r, t); + let o = t[fe]; o !== null && o.detachView(e12); } - zi(t); + Ki(t); } finally { g(n); } } -function fl(e12, t, n, r) { - let o = e12?.[ke]; +function ml(e12, t, n, r) { + let o = e12?.[He]; if (o == null || o.leave == null || !o.leave.has(t.index)) return r(false); - e12 && it.add(e12[we]), pu(n, () => { + e12 && ct.add(e12[Ce]), yu(n, () => { if (o.leave && o.leave.has(t.index)) { let s = o.leave.get(t.index), a = []; if (s) { @@ -3231,23 +3237,23 @@ function fl(e12, t, n, r) { } o.detachedLeaveAnimationFns = void 0; } - o.running = Promise.allSettled(a), kp(e12, r); + o.running = Promise.allSettled(a), Lp(e12, r); } else - e12 && it.delete(e12[we]), r(false); + e12 && ct.delete(e12[Ce]), r(false); }, o); } -function kp(e12, t) { - let n = e12[ke]?.running; +function Lp(e12, t) { + let n = e12[He]?.running; if (n) { n.then(() => { - e12[ke].running = void 0, it.delete(e12[we]), t(true); + e12[He].running = void 0, ct.delete(e12[Ce]), t(true); }); return; } t(false); } -function Pp(e12, t) { - let n = e12.cleanup, r = t[Ct]; +function Fp(e12, t) { + let n = e12.cleanup, r = t[Mt]; if (n !== null) for (let s = 0; s < n.length - 1; s += 2) if (typeof n[s] == "string") { @@ -3257,28 +3263,28 @@ function Pp(e12, t) { let a = r[n[s + 1]]; n[s].call(a); } - r !== null && (t[Ct] = null); - let o = t[Ee]; + r !== null && (t[Mt] = null); + let o = t[Ie]; if (o !== null) { - t[Ee] = null; + t[Ie] = null; for (let s = 0; s < o.length; s++) { let a = o[s]; a(); } } - let i = t[xe]; + let i = t[Pe]; if (i !== null) { - t[xe] = null; + t[Pe] = null; for (let s of i) s.destroy(); } } -function Lp(e12, t) { +function jp(e12, t) { let n; if (e12 != null && (n = e12.destroyHooks) != null) for (let r = 0; r < n.length; r += 2) { let o = t[n[r]]; - if (!(o instanceof sn)) { + if (!(o instanceof ln)) { let i = n[r + 1]; if (Array.isArray(i)) for (let s = 0; s < i.length; s += 2) { @@ -3301,158 +3307,158 @@ function Lp(e12, t) { } } } -function Fp(e12, t, n) { - return jp(e12, t.parent, n); +function Hp(e12, t, n) { + return Vp(e12, t.parent, n); } -function jp(e12, t, n) { +function Vp(e12, t, n) { let r = t; for (; r !== null && r.type & 168; ) t = r, r = t.parent; if (r === null) - return n[ne]; - if (Tt(r)) { + return n[re]; + if (St(r)) { let { encapsulation: o } = e12.data[r.directiveStart + r.componentOffset]; - if (o === ie.None || o === ie.Emulated) + if (o === se.None || o === se.Emulated) return null; } - return de(r, n); + return pe(r, n); } -function Hp(e12, t, n) { - return Bp(e12, t, n); +function Bp(e12, t, n) { + return Up(e12, t, n); } -function Vp(e12, t, n) { - return e12.type & 40 ? de(e12, n) : null; +function $p(e12, t, n) { + return e12.type & 40 ? pe(e12, n) : null; } -var Bp = Vp; -var pl; -function Us(e12, t, n, r) { - let o = Fp(e12, r, t), i = t[O], s = r.parent || t[J], a = Hp(s, r, t); +var Up = $p; +var yl; +function Ys(e12, t, n, r) { + let o = Hp(e12, r, t), i = t[O], s = r.parent || t[X], a = Bp(s, r, t); if (o != null) if (Array.isArray(n)) for (let c = 0; c < n.length; c++) - cl(i, o, n[c], a, false); + fl(i, o, n[c], a, false); else - cl(i, o, n, a, false); - pl !== void 0 && pl(i, r, t, n, o); + fl(i, o, n, a, false); + yl !== void 0 && yl(i, r, t, n, o); } -function rn(e12, t) { +function an(e12, t) { if (t !== null) { let n = t.type; if (n & 3) - return de(t, e12); + return pe(t, e12); if (n & 4) - return os(-1, e12[t.index]); + return ds(-1, e12[t.index]); if (n & 8) { let r = t.child; if (r !== null) - return rn(e12, r); + return an(e12, r); { let o = e12[t.index]; - return re(o) ? os(-1, o) : ee(o); + return oe(o) ? ds(-1, o) : te(o); } } else { if (n & 128) - return rn(e12, t.next); + return an(e12, t.next); if (n & 32) - return Vs(t, e12)() || ee(e12[t.index]); + return qs(t, e12)() || te(e12[t.index]); { - let r = gu(e12, t); + let r = Eu(e12, t); if (r !== null) { if (Array.isArray(r)) return r[0]; - let o = Ae(e12[X]); - return rn(o, r); + let o = Le(e12[ee]); + return an(o, r); } else - return rn(e12, t.next); + return an(e12, t.next); } } } return null; } -function gu(e12, t) { +function Eu(e12, t) { if (t !== null) { - let r = e12[X][J], o = t.projection; + let r = e12[ee][X], o = t.projection; return r.projection[o]; } return null; } -function os(e12, t) { +function ds(e12, t) { let n = S + e12 + 1; if (n < t.length) { let r = t[n], o = r[m].firstChild; if (o !== null) - return rn(r, o); + return an(r, o); } - return t[Pe]; + return t[Ve]; } -function zs(e12, t, n, r, o, i, s) { +function Ks(e12, t, n, r, o, i, s) { for (; n != null; ) { - let a = r[De]; + let a = r[be]; if (n.type === 128) { n = n.next; continue; } let c = r[n.index], l = n.type; - if (s && t === 0 && (c && kt(ee(c), r), n.flags |= 2), !xs(n)) + if (s && t === 0 && (c && Ft(te(c), r), n.flags |= 2), !Fs(n)) if (l & 8) - zs(e12, t, n.child, r, o, i, false), Rt(t, e12, a, o, c, n, i, r); + Ks(e12, t, n.child, r, o, i, false), Pt(t, e12, a, o, c, n, i, r); else if (l & 32) { - let u = Vs(n, r), d; + let u = qs(n, r), d; for (; d = u(); ) - Rt(t, e12, a, o, d, n, i, r); - Rt(t, e12, a, o, c, n, i, r); + Pt(t, e12, a, o, d, n, i, r); + Pt(t, e12, a, o, c, n, i, r); } else - l & 16 ? $p(e12, t, r, n, o, i) : Rt(t, e12, a, o, c, n, i, r); + l & 16 ? zp(e12, t, r, n, o, i) : Pt(t, e12, a, o, c, n, i, r); n = s ? n.projectionNext : n.next; } } -function Gr(e12, t, n, r, o, i) { - zs(n, r, e12.firstChild, t, o, i, false); +function Kr(e12, t, n, r, o, i) { + Ks(n, r, e12.firstChild, t, o, i, false); } -function $p(e12, t, n, r, o, i) { - let s = n[X], c = s[J].projection[r.projection]; +function zp(e12, t, n, r, o, i) { + let s = n[ee], c = s[X].projection[r.projection]; if (Array.isArray(c)) for (let l = 0; l < c.length; l++) { let u = c[l]; - Rt(t, e12, n[De], o, u, r, i, n); + Pt(t, e12, n[be], o, u, r, i, n); } else { - let l = c, u = s[R]; - Vl(r) && (l.flags |= 128), zs(e12, t, l, u, o, i, true); + let l = c, u = s[A]; + zl(r) && (l.flags |= 128), Ks(e12, t, l, u, o, i, true); } } -function Up(e12, t, n, r, o, i, s) { - let a = r[Pe], c = ee(r); - a !== c && Rt(t, e12, n, i, a, o, s); +function Wp(e12, t, n, r, o, i, s) { + let a = r[Ve], c = te(r); + a !== c && Pt(t, e12, n, i, a, o, s); for (let l = S; l < r.length; l++) { let u = r[l]; - Gr(u[m], u, e12, t, i, a); + Kr(u[m], u, e12, t, i, a); } } -function zp(e12, t, n, r, o) { +function Gp(e12, t, n, r, o) { if (t) o ? e12.addClass(n, r) : e12.removeClass(n, r); else { - let i = r.indexOf("-") === -1 ? void 0 : Te.DashCase; - o == null ? e12.removeStyle(n, r, i) : (typeof o == "string" && o.endsWith("!important") && (o = o.slice(0, -10), i |= Te.Important), e12.setStyle(n, r, o, i)); + let i = r.indexOf("-") === -1 ? void 0 : Se.DashCase; + o == null ? e12.removeStyle(n, r, i) : (typeof o == "string" && o.endsWith("!important") && (o = o.slice(0, -10), i |= Se.Important), e12.setStyle(n, r, o, i)); } } -function mu(e12, t, n, r, o) { - let i = Fe(), s = r & 2; +function Iu(e12, t, n, r, o) { + let i = $e(), s = r & 2; try { - je(-1), s && t.length > F && uu(e12, t, F, false); + Ue(-1), s && t.length > B && hu(e12, t, B, false); let a = s ? C.TemplateUpdateStart : C.TemplateCreateStart; T(a, o, n), n(r, o); } finally { - je(i); + Ue(i); let a = s ? C.TemplateUpdateEnd : C.TemplateCreateEnd; T(a, o, n); } } -function Wp(e12, t, n) { - Yp(e12, t, n), (n.flags & 64) === 64 && Kp(e12, t, n); +function qp(e12, t, n) { + Jp(e12, t, n), (n.flags & 64) === 64 && Xp(e12, t, n); } -function yu(e12, t, n = de) { +function Du(e12, t, n = pe) { let r = t.localNames; if (r !== null) { let o = t.index + 1; @@ -3462,358 +3468,358 @@ function yu(e12, t, n = de) { } } } -function Gp(e12, t, n, r) { - let i = r.get(Ql, Zl) || n === ie.ShadowDom || n === ie.ExperimentalIsolatedShadowDom, s = e12.selectRootElement(t, i); - return qp(s), s; +function Zp(e12, t, n, r) { + let i = r.get(Xl, Jl) || n === se.ShadowDom || n === se.ExperimentalIsolatedShadowDom, s = e12.selectRootElement(t, i); + return Qp(s), s; } -function qp(e12) { - Zp(e12); +function Qp(e12) { + Yp(e12); } -var Zp = () => null; -function Qp(e12, t, n, r, o, i) { +var Yp = () => null; +function Kp(e12, t, n, r, o, i) { if (e12.type & 3) { - let s = de(e12, t); + let s = pe(e12, t); r = i != null ? i(r, e12.value || "", n) : r, o.setProperty(s, n, r); } else e12.type & 12; } -function Yp(e12, t, n) { +function Jp(e12, t, n) { let r = n.directiveStart, o = n.directiveEnd; - Tt(n) && Tp(t, n, e12.data[r + n.componentOffset]), e12.firstCreatePass || Ol(n, t); + St(n) && _p(t, n, e12.data[r + n.componentOffset]), e12.firstCreatePass || Fl(n, t); let i = n.initialInputs; for (let s = r; s < o; s++) { - let a = e12.data[s], c = _r(t, e12, s, n); - if (kt(c, t), i !== null && Xp(t, s - r, c, a, n, i), Mt(a)) { - let l = Ce(n.index, t); - l[x] = _r(t, e12, s, n); + let a = e12.data[s], c = Ar(t, e12, s, n); + if (Ft(c, t), i !== null && th(t, s - r, c, a, n, i), Nt(a)) { + let l = we(n.index, t); + l[N] = Ar(t, e12, s, n); } } } -function Kp(e12, t, n) { - let r = n.directiveStart, o = n.directiveEnd, i = n.index, s = Ac(); +function Xp(e12, t, n) { + let r = n.directiveStart, o = n.directiveEnd, i = n.index, s = Pc(); try { - je(i); + Ue(i); for (let a = r; a < o; a++) { let c = e12.data[a], l = t[a]; - cr(a), (c.hostBindings !== null || c.hostVars !== 0 || c.hostAttrs !== null) && Jp(c, l); + pr(a), (c.hostBindings !== null || c.hostVars !== 0 || c.hostAttrs !== null) && eh(c, l); } } finally { - je(-1), cr(s); + Ue(-1), pr(s); } } -function Jp(e12, t) { +function eh(e12, t) { e12.hostBindings !== null && e12.hostBindings(1, t); } -function Xp(e12, t, n, r, o, i) { +function th(e12, t, n, r, o, i) { let s = i[t]; if (s !== null) for (let a = 0; a < s.length; a += 2) { let c = s[a], l = s[a + 1]; - ns(r, n, c, l); + ls(r, n, c, l); } } -function eh(e12, t, n, r, o) { - let i = F + n, s = t[m], a = o(s, t, e12, r, n); - t[i] = a, Nt(e12, true); +function nh(e12, t, n, r, o) { + let i = B + n, s = t[m], a = o(s, t, e12, r, n); + t[i] = a, At(e12, true); let c = e12.type === 2; - return c ? (au(t[O], a, e12), (Ec() === 0 || yi(e12)) && kt(a, t), Ic()) : kt(a, t), fr() && (!c || !xs(e12)) && Us(s, t, a, e12), e12; + return c ? (du(t[O], a, e12), (Cc() === 0 || wi(e12)) && Ft(a, t), wc()) : Ft(a, t), yr() && (!c || !Fs(e12)) && Ys(s, t, a, e12), e12; } -function th(e12) { +function rh(e12) { let t = e12; - return Ti() ? Mc() : (t = t.parent, Nt(t, false)), t; + return Ai() ? xc() : (t = t.parent, At(t, false)), t; } -function nh(e12, t) { - let n = e12[De]; +function oh(e12, t) { + let n = e12[be]; if (!n) return; let r; try { - r = n.get(rt, null); + r = n.get(st, null); } catch { r = null; } r?.(t); } -function rh(e12, t, n, r, o) { +function ih(e12, t, n, r, o) { let i = e12.inputs?.[r], s = e12.hostDirectiveInputs?.[r], a = false; if (s) for (let c = 0; c < s.length; c += 2) { let l = s[c], u = s[c + 1], d = t.data[l]; - ns(d, n[l], u, o), a = true; + ls(d, n[l], u, o), a = true; } if (i) for (let c of i) { let l = n[c], u = t.data[c]; - ns(u, l, r, o), a = true; + ls(u, l, r, o), a = true; } return a; } -function oh(e12, t) { - let n = Ce(t, e12), r = n[m]; - ih(r, n); - let o = n[ne]; - o !== null && n[wt] === null && (n[wt] = Yl(o, n[De])), T(C.ComponentStart); +function sh(e12, t) { + let n = we(t, e12), r = n[m]; + ah(r, n); + let o = n[re]; + o !== null && n[Tt] === null && (n[Tt] = eu(o, n[be])), T(C.ComponentStart); try { - Ws(r, n, n[x]); + Js(r, n, n[N]); } finally { - T(C.ComponentEnd, n[x]); + T(C.ComponentEnd, n[N]); } } -function ih(e12, t) { +function ah(e12, t) { for (let n = t.length; n < e12.blueprint.length; n++) t.push(e12.blueprint[n]); } -function Ws(e12, t, n) { - ur(t); +function Js(e12, t, n) { + gr(t); try { let r = e12.viewQuery; - r !== null && Gi(1, r, n); + r !== null && Xi(1, r, n); let o = e12.template; - o !== null && mu(e12, t, o, 1, n), e12.firstCreatePass && (e12.firstCreatePass = false), t[ue]?.finishViewCreation(e12), e12.staticContentQueries && Kl(e12, t), e12.staticViewQueries && Gi(2, e12.viewQuery, n); + o !== null && Iu(e12, t, o, 1, n), e12.firstCreatePass && (e12.firstCreatePass = false), t[fe]?.finishViewCreation(e12), e12.staticContentQueries && tu(e12, t), e12.staticViewQueries && Xi(2, e12.viewQuery, n); let i = e12.components; - i !== null && sh(t, i); + i !== null && ch(t, i); } catch (r) { throw e12.firstCreatePass && (e12.incompleteFirstPass = true, e12.firstCreatePass = false), r; } finally { - t[y] &= -5, dr(); + t[y] &= -5, mr(); } } -function sh(e12, t) { +function ch(e12, t) { for (let n = 0; n < t.length; n++) - oh(e12, t[n]); + sh(e12, t[n]); } -function qr(e12, t, n, r) { +function Jr(e12, t, n, r) { let o = g(null); try { - let i = t.tView, a = e12[y] & 4096 ? 4096 : 16, c = js(e12, i, n, a, null, t, null, null, r?.injector ?? null, r?.embeddedViewInjector ?? null, r?.dehydratedView ?? null), l = e12[t.index]; - c[Oe] = l; - let u = e12[ue]; - return u !== null && (c[ue] = u.createEmbeddedView(i)), Ws(i, c, n), c; + let i = t.tView, a = e12[y] & 4096 ? 4096 : 16, c = Ws(e12, i, n, a, null, t, null, null, r?.injector ?? null, r?.embeddedViewInjector ?? null, r?.dehydratedView ?? null), l = e12[t.index]; + c[je] = l; + let u = e12[fe]; + return u !== null && (c[fe] = u.createEmbeddedView(i)), Js(i, c, n), c; } finally { g(o); } } -function an(e12, t) { - return !t || t.firstChild === null || Vl(e12); +function un(e12, t) { + return !t || t.firstChild === null || zl(e12); } -function cn(e12, t, n, r, o = false) { +function dn(e12, t, n, r, o = false) { for (; n !== null; ) { if (n.type === 128) { n = o ? n.projectionNext : n.next; continue; } let i = t[n.index]; - i !== null && r.push(ee(i)), re(i) && vu(i, r); + i !== null && r.push(te(i)), oe(i) && bu(i, r); let s = n.type; if (s & 8) - cn(e12, t, n.child, r); + dn(e12, t, n.child, r); else if (s & 32) { - let a = Vs(n, t), c; + let a = qs(n, t), c; for (; c = a(); ) r.push(c); } else if (s & 16) { - let a = gu(t, n); + let a = Eu(t, n); if (Array.isArray(a)) r.push(...a); else { - let c = Ae(t[X]); - cn(c[m], c, a, r, true); + let c = Le(t[ee]); + dn(c[m], c, a, r, true); } } n = o ? n.projectionNext : n.next; } return r; } -function vu(e12, t) { +function bu(e12, t) { for (let n = S; n < e12.length; n++) { let r = e12[n], o = r[m].firstChild; - o !== null && cn(r[m], r, o, t); + o !== null && dn(r[m], r, o, t); } - e12[Pe] !== e12[ne] && t.push(e12[Pe]); + e12[Ve] !== e12[re] && t.push(e12[Ve]); } -function Eu(e12) { - if (e12[or] !== null) { - for (let t of e12[or]) +function Cu(e12) { + if (e12[lr] !== null) { + for (let t of e12[lr]) t.impl.addSequence(t); - e12[or].length = 0; + e12[lr].length = 0; } } -var Iu = []; -function ah(e12) { - return e12[G] ?? ch(e12); +var wu = []; +function lh(e12) { + return e12[Z] ?? uh(e12); } -function ch(e12) { - let t = Iu.pop() ?? Object.create(uh); +function uh(e12) { + let t = wu.pop() ?? Object.create(fh); return t.lView = e12, t; } -function lh(e12) { - e12.lView[G] !== e12 && (e12.lView = null, Iu.push(e12)); +function dh(e12) { + e12.lView[Z] !== e12 && (e12.lView = null, wu.push(e12)); } -var uh = A(N({}, ut), { consumerIsAlwaysLive: true, kind: "template", consumerMarkedDirty: (e12) => { - St(e12.lView); +var fh = R(x({}, pt), { consumerIsAlwaysLive: true, kind: "template", consumerMarkedDirty: (e12) => { + Rt(e12.lView); }, consumerOnSignalRead() { - this.lView[G] = this; + this.lView[Z] = this; } }); -function dh(e12) { - let t = e12[G] ?? Object.create(fh); +function ph(e12) { + let t = e12[Z] ?? Object.create(hh); return t.lView = e12, t; } -var fh = A(N({}, ut), { consumerIsAlwaysLive: true, kind: "template", consumerMarkedDirty: (e12) => { - let t = Ae(e12.lView); - for (; t && !Du(t[m]); ) - t = Ae(t); - t && Ii(t); +var hh = R(x({}, pt), { consumerIsAlwaysLive: true, kind: "template", consumerMarkedDirty: (e12) => { + let t = Le(e12.lView); + for (; t && !Tu(t[m]); ) + t = Le(t); + t && _i(t); }, consumerOnSignalRead() { - this.lView[G] = this; + this.lView[Z] = this; } }); -function Du(e12) { +function Tu(e12) { return e12.type !== 2; } -function wu(e12) { - if (e12[xe] === null) +function Mu(e12) { + if (e12[Pe] === null) return; let t = true; for (; t; ) { let n = false; - for (let r of e12[xe]) + for (let r of e12[Pe]) r.dirty && (n = true, r.zone === null || Zone.current === r.zone ? r.run() : r.zone.run(() => r.run())); t = n && !!(e12[y] & 8192); } } -var ph = 100; -function Cu(e12, t = 0) { - let r = e12[le].rendererFactory, o = false; +var gh = 100; +function _u(e12, t = 0) { + let r = e12[de].rendererFactory, o = false; o || r.begin?.(); try { - hh(e12, t); + mh(e12, t); } finally { o || r.end?.(); } } -function hh(e12, t) { - let n = Mi(); +function mh(e12, t) { + let n = Oi(); try { - Gt(true), is(e12, t); + Qt(true), fs(e12, t); let r = 0; - for (; Xt(e12); ) { - if (r === ph) + for (; nn(e12); ) { + if (r === gh) throw new v(103, false); - r++, is(e12, 1); + r++, fs(e12, 1); } } finally { - Gt(n); + Qt(n); } } -function gh(e12, t, n, r) { - if (nt(t)) +function yh(e12, t, n, r) { + if (it(t)) return; let o = t[y], i = false, s = false; - ur(t); + gr(t); let a = true, c = null, l = null; - i || (Du(e12) ? (l = ah(t), c = Bt(l)) : xn() === null ? (a = false, l = dh(t), c = Bt(l)) : t[G] && (dt(t[G]), t[G] = null)); + i || (Tu(e12) ? (l = lh(t), c = zt(l)) : Pn() === null ? (a = false, l = ph(t), c = zt(l)) : t[Z] && (ht(t[Z]), t[Z] = null)); try { - Ei(t), _c(e12.bindingStartIndex), n !== null && mu(e12, t, n, 2, r); + Mi(t), Rc(e12.bindingStartIndex), n !== null && Iu(e12, t, n, 2, r); let u = (o & 3) === 3; if (!i) if (u) { let p = e12.preOrderCheckHooks; - p !== null && Ir(t, p, null); + p !== null && Tr(t, p, null); } else { let p = e12.preOrderHooks; - p !== null && Dr(t, p, 0, null), Li(t, 0); + p !== null && Mr(t, p, 0, null), Ui(t, 0); } - if (s || mh(t), wu(t), bu(t, 0), e12.contentQueries !== null && Kl(e12, t), !i) + if (s || vh(t), Mu(t), Su(t, 0), e12.contentQueries !== null && tu(e12, t), !i) if (u) { let p = e12.contentCheckHooks; - p !== null && Ir(t, p); + p !== null && Tr(t, p); } else { let p = e12.contentHooks; - p !== null && Dr(t, p, 1), Li(t, 1); + p !== null && Mr(t, p, 1), Ui(t, 1); } - vh(e12, t); + Ih(e12, t); let d = e12.components; - d !== null && Mu(t, d, 0); + d !== null && xu(t, d, 0); let f = e12.viewQuery; - if (f !== null && Gi(2, f, r), !i) + if (f !== null && Xi(2, f, r), !i) if (u) { let p = e12.viewCheckHooks; - p !== null && Ir(t, p); + p !== null && Tr(t, p); } else { let p = e12.viewHooks; - p !== null && Dr(t, p, 2), Li(t, 2); + p !== null && Mr(t, p, 2), Ui(t, 2); } - if (e12.firstUpdatePass === true && (e12.firstUpdatePass = false), t[rr]) { - for (let p of t[rr]) + if (e12.firstUpdatePass === true && (e12.firstUpdatePass = false), t[cr]) { + for (let p of t[cr]) p(); - t[rr] = null; + t[cr] = null; } - i || (Eu(t), t[y] &= -73); + i || (Cu(t), t[y] &= -73); } catch (u) { - throw i || St(t), u; + throw i || Rt(t), u; } finally { - l !== null && (An(l, c), a && lh(l)), dr(); + l !== null && (Ln(l, c), a && dh(l)), mr(); } } -function bu(e12, t) { - for (let n = $l(e12); n !== null; n = Ul(n)) +function Su(e12, t) { + for (let n = Gl(e12); n !== null; n = ql(n)) for (let r = S; r < n.length; r++) { let o = n[r]; - Tu(o, t); + Nu(o, t); } } -function mh(e12) { - for (let t = $l(e12); t !== null; t = Ul(t)) { +function vh(e12) { + for (let t = Gl(e12); t !== null; t = ql(t)) { if (!(t[y] & 2)) continue; - let n = t[tt]; + let n = t[ot]; for (let r = 0; r < n.length; r++) { let o = n[r]; - Ii(o); + _i(o); } } } -function yh(e12, t, n) { +function Eh(e12, t, n) { T(C.ComponentStart); - let r = Ce(t, e12); + let r = we(t, e12); try { - Tu(r, n); + Nu(r, n); } finally { - T(C.ComponentEnd, r[x]); + T(C.ComponentEnd, r[N]); } } -function Tu(e12, t) { - sr(e12) && is(e12, t); +function Nu(e12, t) { + dr(e12) && fs(e12, t); } -function is(e12, t) { - let r = e12[m], o = e12[y], i = e12[G], s = !!(t === 0 && o & 16); - if (s ||= !!(o & 64 && t === 0), s ||= !!(o & 1024), s ||= !!(i?.dirty && Rn(i)), s ||= false, i && (i.dirty = false), e12[y] &= -9217, s) - gh(r, e12, r.template, e12[x]); +function fs(e12, t) { + let r = e12[m], o = e12[y], i = e12[Z], s = !!(t === 0 && o & 16); + if (s ||= !!(o & 64 && t === 0), s ||= !!(o & 1024), s ||= !!(i?.dirty && Fn(i)), s ||= false, i && (i.dirty = false), e12[y] &= -9217, s) + yh(r, e12, r.template, e12[N]); else if (o & 8192) { let a = g(null); try { - wu(e12), bu(e12, 1); + Mu(e12), Su(e12, 1); let c = r.components; - c !== null && Mu(e12, c, 1), Eu(e12); + c !== null && xu(e12, c, 1), Cu(e12); } finally { g(a); } } } -function Mu(e12, t, n) { +function xu(e12, t, n) { for (let r = 0; r < t.length; r++) - yh(e12, t[r], n); + Eh(e12, t[r], n); } -function vh(e12, t) { +function Ih(e12, t) { let n = e12.hostBindingOpCodes; if (n !== null) try { for (let r = 0; r < n.length; r++) { let o = n[r]; if (o < 0) - je(~o); + Ue(~o); else { let i = o, s = n[++r], a = n[++r]; - xc(s, i); + kc(s, i); let c = t[i]; T(C.HostBindingsUpdateStart, c); try { @@ -3824,74 +3830,74 @@ function vh(e12, t) { } } } finally { - je(-1); + Ue(-1); } } -function Gs(e12, t) { - let n = Mi() ? 64 : 1088; - for (e12[le].changeDetectionScheduler?.notify(t); e12; ) { +function Xs(e12, t) { + let n = Oi() ? 64 : 1088; + for (e12[de].changeDetectionScheduler?.notify(t); e12; ) { e12[y] |= n; - let r = Ae(e12); - if (_t(e12) && !r) + let r = Le(e12); + if (xt(e12) && !r) return e12; e12 = r; } return null; } -function _u(e12, t, n, r) { +function Ru(e12, t, n, r) { return [e12, true, 0, t, null, r, null, n, null, null]; } -function Su(e12, t) { +function Au(e12, t) { let n = S + t; if (n < e12.length) return e12[n]; } -function Zr(e12, t, n, r = true) { +function Xr(e12, t, n, r = true) { let o = t[m]; - if (Eh(o, t, e12, n), r) { - let s = os(n, e12), a = t[O], c = a.parentNode(e12[Pe]); - c !== null && Rp(o, e12[J], a, t, c, s); + if (Dh(o, t, e12, n), r) { + let s = ds(n, e12), a = t[O], c = a.parentNode(e12[Ve]); + c !== null && kp(o, e12[X], a, t, c, s); } - let i = t[wt]; + let i = t[Tt]; i !== null && i.firstChild !== null && (i.firstChild = null); } -function Nu(e12, t) { - let n = ln(e12, t); - return n !== void 0 && Wr(n[m], n), n; +function Ou(e12, t) { + let n = fn(e12, t); + return n !== void 0 && Yr(n[m], n), n; } -function ln(e12, t) { +function fn(e12, t) { if (e12.length <= S) return; let n = S + t, r = e12[n]; if (r) { - let o = r[Oe]; - o !== null && o !== e12 && $s(o, r), t > 0 && (e12[n - 1][K] = r[K]); - let i = Qt(e12, S + t); - Ap(r[m], r); - let s = i[ue]; - s !== null && s.detachView(i[m]), r[R] = null, r[K] = null, r[y] &= -129; + let o = r[je]; + o !== null && o !== e12 && Qs(o, r), t > 0 && (e12[n - 1][J] = r[J]); + let i = Jt(e12, S + t); + Op(r[m], r); + let s = i[fe]; + s !== null && s.detachView(i[m]), r[A] = null, r[J] = null, r[y] &= -129; } return r; } -function Eh(e12, t, n, r) { +function Dh(e12, t, n, r) { let o = S + r, i = n.length; - r > 0 && (n[o - 1][K] = t), r < i - S ? (t[K] = n[o], ci(n, S + r, t)) : (n.push(t), t[K] = null), t[R] = n; - let s = t[Oe]; - s !== null && n !== s && xu(s, t); - let a = t[ue]; - a !== null && a.insertView(e12), ar(t), t[y] |= 128; -} -function xu(e12, t) { - let n = e12[tt], r = t[R]; - if (Le(r)) + r > 0 && (n[o - 1][J] = t), r < i - S ? (t[J] = n[o], gi(n, S + r, t)) : (n.push(t), t[J] = null), t[A] = n; + let s = t[je]; + s !== null && n !== s && ku(s, t); + let a = t[fe]; + a !== null && a.insertView(e12), fr(t), t[y] |= 128; +} +function ku(e12, t) { + let n = e12[ot], r = t[A]; + if (Be(r)) e12[y] |= 2; else { - let o = r[R][X]; - t[X] !== o && (e12[y] |= 2); + let o = r[A][ee]; + t[ee] !== o && (e12[y] |= 2); } - n === null ? e12[tt] = [t] : n.push(t); + n === null ? e12[ot] = [t] : n.push(t); } -var Pt = class { +var jt = class { _lView; _cdRefInjectingView; _appRef = null; @@ -3899,47 +3905,47 @@ var Pt = class { exhaustive; get rootNodes() { let t = this._lView, n = t[m]; - return cn(n, t, n.firstChild, []); + return dn(n, t, n.firstChild, []); } constructor(t, n) { this._lView = t, this._cdRefInjectingView = n; } get context() { - return this._lView[x]; + return this._lView[N]; } set context(t) { - this._lView[x] = t; + this._lView[N] = t; } get destroyed() { - return nt(this._lView); + return it(this._lView); } destroy() { if (this._appRef) this._appRef.detachView(this); else if (this._attachedToViewContainer) { - let t = this._lView[R]; - if (re(t)) { - let n = t[Jt], r = n ? n.indexOf(this) : -1; - r > -1 && (ln(t, r), Qt(n, r)); + let t = this._lView[A]; + if (oe(t)) { + let n = t[tn], r = n ? n.indexOf(this) : -1; + r > -1 && (fn(t, r), Jt(n, r)); } this._attachedToViewContainer = false; } - Wr(this._lView[m], this._lView); + Yr(this._lView[m], this._lView); } onDestroy(t) { - Di(this._lView, t); + Si(this._lView, t); } markForCheck() { - Gs(this._cdRefInjectingView || this._lView, 4); + Xs(this._cdRefInjectingView || this._lView, 4); } detach() { this._lView[y] &= -129; } reattach() { - ar(this._lView), this._lView[y] |= 128; + fr(this._lView), this._lView[y] |= 128; } detectChanges() { - this._lView[y] |= 1024, Cu(this._lView); + this._lView[y] |= 1024, _u(this._lView); } checkNoChanges() { } @@ -3950,23 +3956,23 @@ var Pt = class { } detachFromAppRef() { this._appRef = null; - let t = _t(this._lView), n = this._lView[Oe]; - n !== null && !t && $s(n, this._lView), hu(this._lView[m], this._lView); + let t = xt(this._lView), n = this._lView[je]; + n !== null && !t && Qs(n, this._lView), vu(this._lView[m], this._lView); } attachToAppRef(t) { if (this._attachedToViewContainer) throw new v(902, false); this._appRef = t; - let n = _t(this._lView), r = this._lView[Oe]; - r !== null && !n && xu(r, this._lView), ar(this._lView); + let n = xt(this._lView), r = this._lView[je]; + r !== null && !n && ku(r, this._lView), fr(this._lView); } }; -var un = /* @__PURE__ */ (() => { +var pn = /* @__PURE__ */ (() => { class e12 { _declarationLView; _declarationTContainer; elementRef; - static __NG_ELEMENT_ID__ = Ih; + static __NG_ELEMENT_ID__ = bh; constructor(n, r, o) { this._declarationLView = n, this._declarationTContainer = r, this.elementRef = o; } @@ -3977,97 +3983,97 @@ var un = /* @__PURE__ */ (() => { return this.createEmbeddedViewImpl(n, r); } createEmbeddedViewImpl(n, r, o) { - let i = qr(this._declarationLView, this._declarationTContainer, n, { embeddedViewInjector: r, dehydratedView: o }); - return new Pt(i); + let i = Jr(this._declarationLView, this._declarationTContainer, n, { embeddedViewInjector: r, dehydratedView: o }); + return new jt(i); } } return e12; })(); -function Ih() { - return qs(pe(), M()); +function bh() { + return ea(ge(), M()); } -function qs(e12, t) { - return e12.type & 4 ? new un(t, e12, Ft(e12, t)) : null; +function ea(e12, t) { + return e12.type & 4 ? new pn(t, e12, Vt(e12, t)) : null; } -function Qr(e12, t, n, r, o) { +function eo(e12, t, n, r, o) { let i = e12.data[t]; if (i === null) - i = Dh(e12, t, n, r, o), Nc() && (i.flags |= 32); + i = Ch(e12, t, n, r, o), Oc() && (i.flags |= 32); else if (i.type & 64) { i.type = n, i.value = r, i.attrs = o; - let s = Tc(); + let s = Nc(); i.injectorIndex = s === null ? -1 : s.injectorIndex; } - return Nt(i, true), i; + return At(i, true), i; } -function Dh(e12, t, n, r, o) { - let i = bi(), s = Ti(), a = s ? i : i && i.parent, c = e12.data[t] = Ch(e12, a, n, t, r, o); +function Ch(e12, t, n, r, o) { + let i = Ri(), s = Ai(), a = s ? i : i && i.parent, c = e12.data[t] = Th(e12, a, n, t, r, o); return wh(e12, c, i, s), c; } function wh(e12, t, n, r) { e12.firstChild === null && (e12.firstChild = t), n !== null && (r ? n.child == null && t.parent !== null && (n.child = t) : n.next === null && (n.next = t, t.prev = n)); } -function Ch(e12, t, n, r, o, i) { +function Th(e12, t, n, r, o, i) { let s = t ? t.injectorIndex : -1, a = 0; - return wc() && (a |= 128), { type: n, index: r, insertBeforeIndex: null, injectorIndex: s, directiveStart: -1, directiveEnd: -1, directiveStylingLast: -1, componentOffset: -1, controlDirectiveIndex: -1, customControlIndex: -1, propertyBindings: null, flags: a, providerIndexes: 0, value: o, attrs: i, mergedAttrs: null, localNames: null, initialInputs: null, inputs: null, hostDirectiveInputs: null, outputs: null, hostDirectiveOutputs: null, directiveToIndex: null, tView: null, next: null, prev: null, projectionNext: null, child: null, parent: t, projection: null, styles: null, stylesWithoutHost: null, residualStyles: void 0, classes: null, classesWithoutHost: null, residualClasses: void 0, classBindings: 0, styleBindings: 0 }; + return Mc() && (a |= 128), { type: n, index: r, insertBeforeIndex: null, injectorIndex: s, directiveStart: -1, directiveEnd: -1, directiveStylingLast: -1, componentOffset: -1, controlDirectiveIndex: -1, customControlIndex: -1, propertyBindings: null, flags: a, providerIndexes: 0, value: o, attrs: i, mergedAttrs: null, localNames: null, initialInputs: null, inputs: null, hostDirectiveInputs: null, outputs: null, hostDirectiveOutputs: null, directiveToIndex: null, tView: null, next: null, prev: null, projectionNext: null, child: null, parent: t, projection: null, styles: null, stylesWithoutHost: null, residualStyles: void 0, classes: null, classesWithoutHost: null, residualClasses: void 0, classBindings: 0, styleBindings: 0 }; } -function bh(e12) { - let t = e12[gi] ?? [], r = e12[R][O], o = []; +function Mh(e12) { + let t = e12[bi] ?? [], r = e12[A][O], o = []; for (let i of t) - i.data[ql] !== void 0 ? o.push(i) : Th(i, r); - e12[gi] = o; + i.data[Kl] !== void 0 ? o.push(i) : _h(i, r); + e12[bi] = o; } -function Th(e12, t) { +function _h(e12, t) { let n = 0, r = e12.firstChild; if (r) { - let o = e12.data[Gl]; + let o = e12.data[Yl]; for (; n < o; ) { let i = r.nextSibling; - su(t, r, false), r = i, n++; + uu(t, r, false), r = i, n++; } } } -var Mh = () => null; -var _h = () => null; -function ss(e12, t) { - return Mh(e12, t); +var Sh = () => null; +var Nh = () => null; +function ps(e12, t) { + return Sh(e12, t); } -function Au(e12, t, n) { - return _h(e12, t, n); +function Pu(e12, t, n) { + return Nh(e12, t, n); } -var Ru = class { +var Lu = class { }; -var Yr = class { +var to = class { }; -var as = class { +var hs = class { resolveComponentFactory(t) { throw new v(917, false); } }; -var Kr = class { - static NULL = new as(); +var no = class { + static NULL = new hs(); }; -var st = class { +var lt = class { }; -var Ou = (() => { +var Fu = (() => { class e12 { static \u0275prov = _({ token: e12, providedIn: "root", factory: () => null }); } return e12; })(); -var Cr = {}; -var cs = class { +var Sr = {}; +var gs = class { injector; parentInjector; constructor(t, n) { this.injector = t, this.parentInjector = n; } get(t, n, r) { - let o = this.injector.get(t, Cr, r); - return o !== Cr || n === Cr ? o : this.parentInjector.get(t, n, r); + let o = this.injector.get(t, Sr, r); + return o !== Sr || n === Sr ? o : this.parentInjector.get(t, n, r); } }; -function xr(e12, t, n) { +function Pr(e12, t, n) { let r = n ? e12.styles : null, o = n ? e12.classes : null, i = 0; if (t !== null) for (let s = 0; s < t.length; s++) { @@ -4075,22 +4081,22 @@ function xr(e12, t, n) { if (typeof a == "number") i = a; else if (i == 1) - o = Jo(o, a); + o = ii(o, a); else if (i == 2) { let c = a, l = t[++s]; - r = Jo(r, c + ": " + l + ";"); + r = ii(r, c + ": " + l + ";"); } } n ? e12.styles = r : e12.stylesWithoutHost = r, n ? e12.classes = o : e12.classesWithoutHost = o; } -function ku(e12, t = 0) { +function ju(e12, t = 0) { let n = M(); if (n === null) - return w(e12, t); - let r = pe(); - return Fl(r, n, W(e12), t); + return b(e12, t); + let r = ge(); + return Bl(r, n, q(e12), t); } -function Sh(e12, t, n, r, o) { +function xh(e12, t, n, r, o) { let i = r === null ? null : { "": -1 }, s = o(e12, n); if (s !== null) { let a = s, c = null, l = null; @@ -4099,11 +4105,11 @@ function Sh(e12, t, n, r, o) { [a, c, l] = u.resolveHostDirectives(s); break; } - Ah(e12, t, n, a, i, c, l); + Oh(e12, t, n, a, i, c, l); } - i !== null && r !== null && Nh(n, r, i); + i !== null && r !== null && Rh(n, r, i); } -function Nh(e12, t, n) { +function Rh(e12, t, n) { let r = e12.localNames = []; for (let o = 0; o < t.length; o += 2) { let i = n[t[o + 1]]; @@ -4112,68 +4118,68 @@ function Nh(e12, t, n) { r.push(t[o], i); } } -function xh(e12, t, n) { +function Ah(e12, t, n) { t.componentOffset = n, (e12.components ??= []).push(t.index); } -function Ah(e12, t, n, r, o, i, s) { +function Oh(e12, t, n, r, o, i, s) { let a = r.length, c = null; for (let f = 0; f < a; f++) { let p = r[f]; - c === null && Mt(p) && (c = p, xh(e12, n, f)), Rf(Ol(n, t), e12, p.type); + c === null && Nt(p) && (c = p, Ah(e12, n, f)), kf(Fl(n, t), e12, p.type); } - Fh(n, e12.data.length, a), c?.viewProvidersResolver && c.viewProvidersResolver(c); + Hh(n, e12.data.length, a), c?.viewProvidersResolver && c.viewProvidersResolver(c); for (let f = 0; f < a; f++) { let p = r[f]; p.providersResolver && p.providersResolver(p); } - let l = false, u = false, d = lu(e12, t, a, null); + let l = false, u = false, d = pu(e12, t, a, null); a > 0 && (n.directiveToIndex = /* @__PURE__ */ new Map()); for (let f = 0; f < a; f++) { let p = r[f]; - if (n.mergedAttrs = Fr(n.mergedAttrs, p.hostAttrs), Oh(e12, n, t, d, p), Lh(d, p, o), s !== null && s.has(p)) { - let [k, P] = s.get(p); - n.directiveToIndex.set(p.type, [d, k + n.directiveStart, P + n.directiveStart]); + if (n.mergedAttrs = $r(n.mergedAttrs, p.hostAttrs), Ph(e12, n, t, d, p), jh(d, p, o), s !== null && s.has(p)) { + let [L, H] = s.get(p); + n.directiveToIndex.set(p.type, [d, L + n.directiveStart, H + n.directiveStart]); } else (i === null || !i.has(p)) && n.directiveToIndex.set(p.type, d); p.contentQueries !== null && (n.flags |= 4), (p.hostBindings !== null || p.hostAttrs !== null || p.hostVars !== 0) && (n.flags |= 64); let h = p.type.prototype; !l && (h.ngOnChanges || h.ngOnInit || h.ngDoCheck) && ((e12.preOrderHooks ??= []).push(n.index), l = true), !u && (h.ngOnChanges || h.ngDoCheck) && ((e12.preOrderCheckHooks ??= []).push(n.index), u = true), d++; } - Rh(e12, n, i); + kh(e12, n, i); } -function Rh(e12, t, n) { +function kh(e12, t, n) { for (let r = t.directiveStart; r < t.directiveEnd; r++) { let o = e12.data[r]; if (n === null || !n.has(o)) - hl(0, t, o, r), hl(1, t, o, r), ml(t, r, false); + vl(0, t, o, r), vl(1, t, o, r), Il(t, r, false); else { let i = n.get(o); - gl(0, t, i, r), gl(1, t, i, r), ml(t, r, true); + El(0, t, i, r), El(1, t, i, r), Il(t, r, true); } } } -function hl(e12, t, n, r) { +function vl(e12, t, n, r) { let o = e12 === 0 ? n.inputs : n.outputs; for (let i in o) if (o.hasOwnProperty(i)) { let s; - e12 === 0 ? s = t.inputs ??= {} : s = t.outputs ??= {}, s[i] ??= [], s[i].push(r), Pu(t, i); + e12 === 0 ? s = t.inputs ??= {} : s = t.outputs ??= {}, s[i] ??= [], s[i].push(r), Hu(t, i); } } -function gl(e12, t, n, r) { +function El(e12, t, n, r) { let o = e12 === 0 ? n.inputs : n.outputs; for (let i in o) if (o.hasOwnProperty(i)) { let s = o[i], a; - e12 === 0 ? a = t.hostDirectiveInputs ??= {} : a = t.hostDirectiveOutputs ??= {}, a[s] ??= [], a[s].push(r, i), Pu(t, s); + e12 === 0 ? a = t.hostDirectiveInputs ??= {} : a = t.hostDirectiveOutputs ??= {}, a[s] ??= [], a[s].push(r, i), Hu(t, s); } } -function Pu(e12, t) { +function Hu(e12, t) { t === "class" ? e12.flags |= 8 : t === "style" && (e12.flags |= 16); } -function ml(e12, t, n) { +function Il(e12, t, n) { let { attrs: r, inputs: o, hostDirectiveInputs: i } = e12; - if (r === null || !n && o === null || n && i === null || Ep(e12)) { + if (r === null || !n && o === null || n && i === null || Dp(e12)) { e12.initialInputs ??= [], e12.initialInputs.push(null); return; } @@ -4207,21 +4213,21 @@ function ml(e12, t, n) { } e12.initialInputs ??= [], e12.initialInputs.push(s); } -function Oh(e12, t, n, r, o) { +function Ph(e12, t, n, r, o) { e12.data[r] = o; - let i = o.factory || (o.factory = Et(o.type, true)), s = new sn(i, Mt(o), ku, null); - e12.blueprint[r] = s, n[r] = s, kh(e12, t, r, lu(e12, n, o.hostVars, Se), o); + let i = o.factory || (o.factory = bt(o.type, true)), s = new ln(i, Nt(o), ju, null); + e12.blueprint[r] = s, n[r] = s, Lh(e12, t, r, pu(e12, n, o.hostVars, Re), o); } -function kh(e12, t, n, r, o) { +function Lh(e12, t, n, r, o) { let i = o.hostBindings; if (i) { let s = e12.hostBindingOpCodes; s === null && (s = e12.hostBindingOpCodes = []); let a = ~t.index; - Ph(s) != a && s.push(a), s.push(n, r, i); + Fh(s) != a && s.push(a), s.push(n, r, i); } } -function Ph(e12) { +function Fh(e12) { let t = e12.length; for (; t > 0; ) { let n = e12[--t]; @@ -4230,140 +4236,140 @@ function Ph(e12) { } return 0; } -function Lh(e12, t, n) { +function jh(e12, t, n) { if (n) { if (t.exportAs) for (let r = 0; r < t.exportAs.length; r++) n[t.exportAs[r]] = e12; - Mt(t) && (n[""] = e12); + Nt(t) && (n[""] = e12); } } -function Fh(e12, t, n) { +function Hh(e12, t, n) { e12.flags |= 1, e12.directiveStart = t, e12.directiveEnd = t + n, e12.providerIndexes = t; } -function jh(e12, t, n, r, o, i, s, a) { - let c = t[m], l = c.consts, u = fe(l, s), d = Qr(c, e12, n, r, u); - return i && Sh(c, t, d, fe(l, a), o), d.mergedAttrs = Fr(d.mergedAttrs, d.attrs), d.attrs !== null && xr(d, d.attrs, false), d.mergedAttrs !== null && xr(d, d.mergedAttrs, true), c.queries !== null && c.queries.elementStart(c, d), d; +function Vh(e12, t, n, r, o, i, s, a) { + let c = t[m], l = c.consts, u = he(l, s), d = eo(c, e12, n, r, u); + return i && xh(c, t, d, he(l, a), o), d.mergedAttrs = $r(d.mergedAttrs, d.attrs), d.attrs !== null && Pr(d, d.attrs, false), d.mergedAttrs !== null && Pr(d, d.mergedAttrs, true), c.queries !== null && c.queries.elementStart(c, d), d; } -function Hh(e12, t) { - bf(e12, t), mi(t) && e12.queries.elementEnd(t); +function Bh(e12, t) { + Mf(e12, t), Ci(t) && e12.queries.elementEnd(t); } -function Vh(e12, t, n, r, o, i) { - let s = t.consts, a = fe(s, o), c = Qr(t, e12, n, r, a); - if (c.mergedAttrs = Fr(c.mergedAttrs, c.attrs), i != null) { - let l = fe(s, i); +function $h(e12, t, n, r, o, i) { + let s = t.consts, a = he(s, o), c = eo(t, e12, n, r, a); + if (c.mergedAttrs = $r(c.mergedAttrs, c.attrs), i != null) { + let l = he(s, i); c.localNames = []; for (let u = 0; u < l.length; u += 2) c.localNames.push(l[u], -1); } - return c.attrs !== null && xr(c, c.attrs, false), c.mergedAttrs !== null && xr(c, c.mergedAttrs, true), t.queries !== null && t.queries.elementStart(t, c), c; + return c.attrs !== null && Pr(c, c.attrs, false), c.mergedAttrs !== null && Pr(c, c.mergedAttrs, true), t.queries !== null && t.queries.elementStart(t, c), c; } -function yn(e12, t, n) { - if (n === Se) +function In(e12, t, n) { + if (n === Re) return false; let r = e12[t]; return Object.is(r, n) ? false : (e12[t] = n, true); } -function Bh(e12, t, n) { +function Uh(e12, t, n) { return function r(o) { let i = r.__ngNativeEl__; - i !== void 0 && zf(o, i); - let s = Tt(e12) ? Ce(e12.index, t) : t; - Gs(s, 5); - let a = t[x], c = yl(t, a, n, o), l = r.__ngNextListenerFn__; + i !== void 0 && Gf(o, i); + let s = St(e12) ? we(e12.index, t) : t; + Xs(s, 5); + let a = t[N], c = Dl(t, a, n, o), l = r.__ngNextListenerFn__; for (; l; ) - c = yl(t, a, l, o) && c, l = l.__ngNextListenerFn__; + c = Dl(t, a, l, o) && c, l = l.__ngNextListenerFn__; return c; }; } -function yl(e12, t, n, r) { +function Dl(e12, t, n, r) { let o = g(null); try { return T(C.OutputStart, t, n), n(r) !== false; } catch (i) { - return nh(e12, i), false; + return oh(e12, i), false; } finally { T(C.OutputEnd, t, n), g(o); } } -function $h(e12, t, n, r, o, i, s, a) { - let c = yi(e12), l = false, u = null; - if (!r && c && (u = zh(t, n, i, e12.index)), u !== null) { +function zh(e12, t, n, r, o, i, s, a) { + let c = wi(e12), l = false, u = null; + if (!r && c && (u = Gh(t, n, i, e12.index)), u !== null) { let d = u.__ngLastListenerFn__ || u; d.__ngNextListenerFn__ = s, u.__ngLastListenerFn__ = s, l = true; } else { - let d = de(e12, n), f = r ? r(d) : d; - Gf(n, f, i, a), r || (a.__ngNativeEl__ = d); + let d = pe(e12, n), f = r ? r(d) : d; + Zf(n, f, i, a), r || (a.__ngNativeEl__ = d); let p = o.listen(f, i, a); - if (!Uh(i)) { - let h = r ? (k) => r(ee(k[e12.index])) : e12.index; - Wh(h, t, n, i, a, p, false); + if (!Wh(i)) { + let h = r ? (L) => r(te(L[e12.index])) : e12.index; + qh(h, t, n, i, a, p, false); } } return l; } -function Uh(e12) { +function Wh(e12) { return e12.startsWith("animation") || e12.startsWith("transition"); } -function zh(e12, t, n, r) { +function Gh(e12, t, n, r) { let o = e12.cleanup; if (o != null) for (let i = 0; i < o.length - 1; i += 2) { let s = o[i]; if (s === n && o[i + 1] === r) { - let a = t[Ct], c = o[i + 2]; + let a = t[Mt], c = o[i + 2]; return a && a.length > c ? a[c] : null; } typeof s == "string" && (i += 2); } return null; } -function Wh(e12, t, n, r, o, i, s) { - let a = t.firstCreatePass ? Ci(t) : null, c = wi(n), l = c.length; +function qh(e12, t, n, r, o, i, s) { + let a = t.firstCreatePass ? xi(t) : null, c = Ni(n), l = c.length; c.push(o, i), a && a.push(r, e12, l, (l + 1) * (s ? -1 : 1)); } -var ls = Symbol("BINDING"); -function Gh(e12) { +var ms = Symbol("BINDING"); +function Zh(e12) { return e12.debugInfo?.className || e12.type.name || null; } -var us = class extends Kr { +var ys = class extends no { ngModule; constructor(t) { super(), this.ngModule = t; } resolveComponentFactory(t) { - let n = Ye(t); - return new dn(n, this.ngModule); + let n = Xe(t); + return new hn(n, this.ngModule); } }; -function qh(e12) { +function Qh(e12) { return Object.keys(e12).map((t) => { - let [n, r, o] = e12[t], i = { propName: n, templateName: t, isSignal: (r & zr.SignalBased) !== 0 }; + let [n, r, o] = e12[t], i = { propName: n, templateName: t, isSignal: (r & Qr.SignalBased) !== 0 }; return o && (i.transform = o), i; }); } -function Zh(e12) { +function Yh(e12) { return Object.keys(e12).map((t) => ({ propName: e12[t], templateName: t })); } -function Qh(e12, t, n) { - let r = t instanceof Q ? t : t?.injector; - return r && e12.getStandaloneInjector !== null && (r = e12.getStandaloneInjector(r) || r), r ? new cs(n, r) : n; +function Kh(e12, t, n) { + let r = t instanceof Y ? t : t?.injector; + return r && e12.getStandaloneInjector !== null && (r = e12.getStandaloneInjector(r) || r), r ? new gs(n, r) : n; } -function Yh(e12) { - let t = e12.get(st, null); +function Jh(e12) { + let t = e12.get(lt, null); if (t === null) throw new v(407, false); - let n = e12.get(Ou, null), r = e12.get(Ze, null), o = e12.get(jt, null, { optional: true }); + let n = e12.get(Fu, null), r = e12.get(Ke, null), o = e12.get(Bt, null, { optional: true }); return { rendererFactory: t, sanitizer: n, changeDetectionScheduler: r, ngReflect: false, tracingService: o }; } -function Kh(e12, t) { - let n = Lu(e12); - return ou(t, n, n === "svg" ? fc : n === "math" ? pc : null); +function Xh(e12, t) { + let n = Vu(e12); + return cu(t, n, n === "svg" ? mc : n === "math" ? yc : null); } -function Lu(e12) { +function Vu(e12) { return (e12.selectors[0][0] || "div").toLowerCase(); } -var dn = class extends Yr { +var hn = class extends to { componentDef; ngModule; selector; @@ -4373,50 +4379,50 @@ var dn = class extends Yr { cachedInputs = null; cachedOutputs = null; get inputs() { - return this.cachedInputs ??= qh(this.componentDef.inputs), this.cachedInputs; + return this.cachedInputs ??= Qh(this.componentDef.inputs), this.cachedInputs; } get outputs() { - return this.cachedOutputs ??= Zh(this.componentDef.outputs), this.cachedOutputs; + return this.cachedOutputs ??= Yh(this.componentDef.outputs), this.cachedOutputs; } constructor(t, n) { - super(), this.componentDef = t, this.ngModule = n, this.componentType = t.type, this.selector = Dp(t.selectors), this.ngContentSelectors = t.ngContentSelectors ?? [], this.isBoundToModule = !!n; + super(), this.componentDef = t, this.ngModule = n, this.componentType = t.type, this.selector = Cp(t.selectors), this.ngContentSelectors = t.ngContentSelectors ?? [], this.isBoundToModule = !!n; } create(t, n, r, o, i, s) { T(C.DynamicComponentStart); let a = g(null); try { - let c = this.componentDef, l = Qh(c, o || this.ngModule, t), u = Yh(l), d = u.tracingService; - return d && d.componentCreate ? d.componentCreate(Gh(c), () => this.createComponentRef(u, l, n, r, i, s)) : this.createComponentRef(u, l, n, r, i, s); + let c = this.componentDef, l = Kh(c, o || this.ngModule, t), u = Jh(l), d = u.tracingService; + return d && d.componentCreate ? d.componentCreate(Zh(c), () => this.createComponentRef(u, l, n, r, i, s)) : this.createComponentRef(u, l, n, r, i, s); } finally { g(a); } } createComponentRef(t, n, r, o, i, s) { - let a = this.componentDef, c = Jh(o, a, s, i), l = t.rendererFactory.createRenderer(null, a), u = o ? Gp(l, o, a.encapsulation, n) : Kh(a, l), d = s?.some(vl) || i?.some((h) => typeof h != "function" && h.bindings.some(vl)), f = js(null, c, null, 512 | cu(a), null, null, t, l, n, null, Yl(u, n, true)); - f[F] = u, ur(f); + let a = this.componentDef, c = eg(o, a, s, i), l = t.rendererFactory.createRenderer(null, a), u = o ? Zp(l, o, a.encapsulation, n) : Xh(a, l), d = s?.some(bl) || i?.some((h) => typeof h != "function" && h.bindings.some(bl)), f = Ws(null, c, null, 512 | fu(a), null, null, t, l, n, null, eu(u, n, true)); + f[B] = u, gr(f); let p = null; try { - let h = jh(F, f, 2, "#host", () => c.directiveRegistry, true, 0); - au(l, u, h), kt(u, f), Wp(c, f, h), Zf(c, h, f), Hh(c, h), r !== void 0 && eg(h, this.ngContentSelectors, r), p = Ce(h.index, f), f[x] = p[x], Ws(c, f, null); + let h = Vh(B, f, 2, "#host", () => c.directiveRegistry, true, 0); + du(l, u, h), Ft(u, f), qp(c, f, h), Yf(c, h, f), Bh(c, h), r !== void 0 && ng(h, this.ngContentSelectors, r), p = we(h.index, f), f[N] = p[N], Js(c, f, null); } catch (h) { - throw p !== null && zi(p), zi(f), h; + throw p !== null && Ki(p), Ki(f), h; } finally { - T(C.DynamicComponentEnd), dr(); + T(C.DynamicComponentEnd), mr(); } - return new Ar(this.componentType, f, !!d); + return new Lr(this.componentType, f, !!d); } }; -function Jh(e12, t, n, r) { +function eg(e12, t, n, r) { let o = e12 ? ["ng-version", "21.2.11"] : wp(t.selectors[0]), i = null, s = null, a = 0; if (n) for (let u of n) - a += u[ls].requiredVars, u.create && (u.targetIdx = 0, (i ??= []).push(u)), u.update && (u.targetIdx = 0, (s ??= []).push(u)); + a += u[ms].requiredVars, u.create && (u.targetIdx = 0, (i ??= []).push(u)), u.update && (u.targetIdx = 0, (s ??= []).push(u)); if (r) for (let u = 0; u < r.length; u++) { let d = r[u]; if (typeof d != "function") for (let f of d.bindings) { - a += f[ls].requiredVars; + a += f[ms].requiredVars; let p = u + 1; f.create && (f.targetIdx = p, (i ??= []).push(f)), f.update && (f.targetIdx = p, (s ??= []).push(f)); } @@ -4424,12 +4430,12 @@ function Jh(e12, t, n, r) { let c = [t]; if (r) for (let u of r) { - let d = typeof u == "function" ? u : u.type, f = ri(d); + let d = typeof u == "function" ? u : u.type, f = ui(d); c.push(f); } - return Fs(0, null, Xh(i, s), 1, a, c, null, null, null, [o], null); + return zs(0, null, tg(i, s), 1, a, c, null, null, null, [o], null); } -function Xh(e12, t) { +function tg(e12, t) { return !e12 && !t ? null : (n) => { if (n & 1 && e12) for (let r of e12) @@ -4439,11 +4445,11 @@ function Xh(e12, t) { r.update(); }; } -function vl(e12) { - let t = e12[ls].kind; +function bl(e12) { + let t = e12[ms].kind; return t === "input" || t === "twoWay"; } -var Ar = class extends Ru { +var Lr = class extends Lu { _rootLView; _hasInputBindings; instance; @@ -4454,20 +4460,20 @@ var Ar = class extends Ru { previousInputValues = null; _tNode; constructor(t, n, r) { - super(), this._rootLView = n, this._hasInputBindings = r, this._tNode = ir(n[m], F), this.location = Ft(this._tNode, n), this.instance = Ce(this._tNode.index, n)[x], this.hostView = this.changeDetectorRef = new Pt(n, void 0), this.componentType = t; + super(), this._rootLView = n, this._hasInputBindings = r, this._tNode = ur(n[m], B), this.location = Vt(this._tNode, n), this.instance = we(this._tNode.index, n)[N], this.hostView = this.changeDetectorRef = new jt(n, void 0), this.componentType = t; } setInput(t, n) { this._hasInputBindings; let r = this._tNode; if (this.previousInputValues ??= /* @__PURE__ */ new Map(), this.previousInputValues.has(t) && Object.is(this.previousInputValues.get(t), n)) return; - let o = this._rootLView, i = rh(r, o[m], o, t, n); + let o = this._rootLView, i = ih(r, o[m], o, t, n); this.previousInputValues.set(t, n); - let s = Ce(r.index, o); - Gs(s, 1); + let s = we(r.index, o); + Xs(s, 1); } get injector() { - return new ot(this._tNode, this._rootLView); + return new at(this._tNode, this._rootLView); } destroy() { this.hostView.destroy(); @@ -4476,24 +4482,24 @@ var Ar = class extends Ru { this.hostView.onDestroy(t); } }; -function eg(e12, t, n) { +function ng(e12, t, n) { let r = e12.projection = []; for (let o = 0; o < t.length; o++) { let i = n[o]; r.push(i != null && i.length ? Array.from(i) : null); } } -var Jr = /* @__PURE__ */ (() => { +var ro = /* @__PURE__ */ (() => { class e12 { - static __NG_ELEMENT_ID__ = tg; + static __NG_ELEMENT_ID__ = rg; } return e12; })(); -function tg() { - let e12 = pe(); - return Fu(e12, M()); +function rg() { + let e12 = ge(); + return Bu(e12, M()); } -var ds = class e4 extends Jr { +var vs = class e4 extends ro { _lContainer; _hostTNode; _hostLView; @@ -4501,25 +4507,25 @@ var ds = class e4 extends Jr { super(), this._lContainer = t, this._hostTNode = n, this._hostLView = r; } get element() { - return Ft(this._hostTNode, this._hostLView); + return Vt(this._hostTNode, this._hostLView); } get injector() { - return new ot(this._hostTNode, this._hostLView); + return new at(this._hostTNode, this._hostLView); } get parentInjector() { - let t = _s(this._hostTNode, this._hostLView); - if (xl(t)) { - let n = Mr(t, this._hostLView), r = Tr(t), o = n[m].data[r + 8]; - return new ot(o, n); + let t = ks(this._hostTNode, this._hostLView); + if (kl(t)) { + let n = Rr(t, this._hostLView), r = xr(t), o = n[m].data[r + 8]; + return new at(o, n); } else - return new ot(null, this._hostLView); + return new at(null, this._hostLView); } clear() { for (; this.length > 0; ) this.remove(this.length - 1); } get(t) { - let n = El(this._lContainer); + let n = Cl(this._lContainer); return n !== null && n[t] || null; } get length() { @@ -4528,87 +4534,87 @@ var ds = class e4 extends Jr { createEmbeddedView(t, n, r) { let o, i; typeof r == "number" ? o = r : r != null && (o = r.index, i = r.injector); - let s = ss(this._lContainer, t.ssrId), a = t.createEmbeddedViewImpl(n || {}, i, s); - return this.insertImpl(a, o, an(this._hostTNode, s)), a; + let s = ps(this._lContainer, t.ssrId), a = t.createEmbeddedViewImpl(n || {}, i, s); + return this.insertImpl(a, o, un(this._hostTNode, s)), a; } createComponent(t, n, r, o, i, s, a) { - let c = t && !vf(t), l; + let c = t && !If(t), l; if (c) l = n; else { - let P = n || {}; - l = P.index, r = P.injector, o = P.projectableNodes, i = P.environmentInjector || P.ngModuleRef, s = P.directives, a = P.bindings; + let H = n || {}; + l = H.index, r = H.injector, o = H.projectableNodes, i = H.environmentInjector || H.ngModuleRef, s = H.directives, a = H.bindings; } - let u = c ? t : new dn(Ye(t)), d = r || this.parentInjector; + let u = c ? t : new hn(Xe(t)), d = r || this.parentInjector; if (!i && u.ngModule == null) { - let lt = (c ? d : this.parentInjector).get(Q, null); - lt && (i = lt); + let ft = (c ? d : this.parentInjector).get(Y, null); + ft && (i = ft); } - let f = Ye(u.componentType ?? {}), p = ss(this._lContainer, f?.id ?? null), h = p?.firstChild ?? null, k = u.create(d, o, h, i, s, a); - return this.insertImpl(k.hostView, l, an(this._hostTNode, p)), k; + let f = Xe(u.componentType ?? {}), p = ps(this._lContainer, f?.id ?? null), h = p?.firstChild ?? null, L = u.create(d, o, h, i, s, a); + return this.insertImpl(L.hostView, l, un(this._hostTNode, p)), L; } insert(t, n) { return this.insertImpl(t, n, true); } insertImpl(t, n, r) { let o = t._lView; - if (gc(o)) { + if (Ec(o)) { let a = this.indexOf(t); if (a !== -1) this.detach(a); else { - let c = o[R], l = new e4(c, c[J], c[R]); + let c = o[A], l = new e4(c, c[X], c[A]); l.detach(l.indexOf(t)); } } let i = this._adjustIndex(n), s = this._lContainer; - return Zr(s, o, i, r), t.attachToViewContainerRef(), ci(Hi(s), i, t), t; + return Xr(s, o, i, r), t.attachToViewContainerRef(), gi(Gi(s), i, t), t; } move(t, n) { return this.insert(t, n); } indexOf(t) { - let n = El(this._lContainer); + let n = Cl(this._lContainer); return n !== null ? n.indexOf(t) : -1; } remove(t) { - let n = this._adjustIndex(t, -1), r = ln(this._lContainer, n); - r && (Qt(Hi(this._lContainer), n), Wr(r[m], r)); + let n = this._adjustIndex(t, -1), r = fn(this._lContainer, n); + r && (Jt(Gi(this._lContainer), n), Yr(r[m], r)); } detach(t) { - let n = this._adjustIndex(t, -1), r = ln(this._lContainer, n); - return r && Qt(Hi(this._lContainer), n) != null ? new Pt(r) : null; + let n = this._adjustIndex(t, -1), r = fn(this._lContainer, n); + return r && Jt(Gi(this._lContainer), n) != null ? new jt(r) : null; } _adjustIndex(t, n = 0) { return t ?? this.length + n; } }; -function El(e12) { - return e12[Jt]; +function Cl(e12) { + return e12[tn]; } -function Hi(e12) { - return e12[Jt] || (e12[Jt] = []); +function Gi(e12) { + return e12[tn] || (e12[tn] = []); } -function Fu(e12, t) { +function Bu(e12, t) { let n, r = t[e12.index]; - return re(r) ? n = r : (n = _u(r, t, null, e12), t[e12.index] = n, Hs(t, n)), rg(n, t, e12, r), new ds(n, e12, t); + return oe(r) ? n = r : (n = Ru(r, t, null, e12), t[e12.index] = n, Gs(t, n)), ig(n, t, e12, r), new vs(n, e12, t); } -function ng(e12, t) { - let n = e12[O], r = n.createComment(""), o = de(t, e12), i = n.parentNode(o); - return Nr(n, i, r, n.nextSibling(o), false), r; +function og(e12, t) { + let n = e12[O], r = n.createComment(""), o = pe(t, e12), i = n.parentNode(o); + return kr(n, i, r, n.nextSibling(o), false), r; } -var rg = sg; -var og = () => false; -function ig(e12, t, n) { - return og(e12, t, n); +var ig = cg; +var sg = () => false; +function ag(e12, t, n) { + return sg(e12, t, n); } -function sg(e12, t, n, r) { - if (e12[Pe]) +function cg(e12, t, n, r) { + if (e12[Ve]) return; let o; - n.type & 8 ? o = ee(r) : o = ng(t, n), e12[Pe] = o; + n.type & 8 ? o = te(r) : o = og(t, n), e12[Ve] = o; } -var fs = class e5 { +var Es = class e5 { queryList; matches = null; constructor(t) { @@ -4621,7 +4627,7 @@ var fs = class e5 { this.queryList.setDirty(); } }; -var ps = class e6 { +var Is = class e6 { queries; constructor(t = []) { this.queries = t; @@ -4649,18 +4655,18 @@ var ps = class e6 { } dirtyQueriesWithMatches(t) { for (let n = 0; n < this.queries.length; n++) - Zs(t, n).matches !== null && this.queries[n].setDirty(); + ta(t, n).matches !== null && this.queries[n].setDirty(); } }; -var hs = class { +var Ds = class { flags; read; predicate; constructor(t, n, r = null) { - this.flags = n, this.read = r, typeof t == "string" ? this.predicate = hg(t) : this.predicate = t; + this.flags = n, this.read = r, typeof t == "string" ? this.predicate = mg(t) : this.predicate = t; } }; -var gs = class e7 { +var bs = class e7 { queries; constructor(t = []) { this.queries = t; @@ -4695,7 +4701,7 @@ var gs = class e7 { this.queries.push(t); } }; -var ms = class e8 { +var Cs = class e8 { metadata; matches = null; indexInDeclarationView = -1; @@ -4731,19 +4737,19 @@ var ms = class e8 { if (Array.isArray(r)) for (let o = 0; o < r.length; o++) { let i = r[o]; - this.matchTNodeWithReadOption(t, n, ag(n, i)), this.matchTNodeWithReadOption(t, n, wr(n, t, i, false, false)); + this.matchTNodeWithReadOption(t, n, lg(n, i)), this.matchTNodeWithReadOption(t, n, _r(n, t, i, false, false)); } else - r === un ? n.type & 4 && this.matchTNodeWithReadOption(t, n, -1) : this.matchTNodeWithReadOption(t, n, wr(n, t, r, false, false)); + r === pn ? n.type & 4 && this.matchTNodeWithReadOption(t, n, -1) : this.matchTNodeWithReadOption(t, n, _r(n, t, r, false, false)); } matchTNodeWithReadOption(t, n, r) { if (r !== null) { let o = this.metadata.read; if (o !== null) - if (o === hn || o === Jr || o === un && n.type & 4) + if (o === yn || o === ro || o === pn && n.type & 4) this.addMatch(n.index, -2); else { - let i = wr(n, t, o, false, false); + let i = _r(n, t, o, false, false); i !== null && this.addMatch(n.index, i); } else @@ -4754,7 +4760,7 @@ var ms = class e8 { this.matches === null ? this.matches = [t, n] : this.matches.push(t, n); } }; -function ag(e12, t) { +function lg(e12, t) { let n = e12.localNames; if (n !== null) { for (let r = 0; r < n.length; r += 2) @@ -4763,22 +4769,22 @@ function ag(e12, t) { } return null; } -function cg(e12, t) { - return e12.type & 11 ? Ft(e12, t) : e12.type & 4 ? qs(e12, t) : null; -} -function lg(e12, t, n, r) { - return n === -1 ? cg(t, e12) : n === -2 ? ug(e12, t, r) : _r(e12, e12[m], n, t); +function ug(e12, t) { + return e12.type & 11 ? Vt(e12, t) : e12.type & 4 ? ea(e12, t) : null; } -function ug(e12, t, n) { - if (n === hn) - return Ft(t, e12); - if (n === un) - return qs(t, e12); - if (n === Jr) - return Fu(t, e12); +function dg(e12, t, n, r) { + return n === -1 ? ug(t, e12) : n === -2 ? fg(e12, t, r) : Ar(e12, e12[m], n, t); } -function ju(e12, t, n, r) { - let o = t[ue].queries[r]; +function fg(e12, t, n) { + if (n === yn) + return Vt(t, e12); + if (n === pn) + return ea(t, e12); + if (n === ro) + return Bu(t, e12); +} +function $u(e12, t, n, r) { + let o = t[fe].queries[r]; if (o.matches === null) { let i = e12.data, s = n.matches, a = []; for (let c = 0; s !== null && c < s.length; c += 2) { @@ -4787,17 +4793,17 @@ function ju(e12, t, n, r) { a.push(null); else { let u = i[l]; - a.push(lg(t, u, s[c + 1], n.metadata.read)); + a.push(dg(t, u, s[c + 1], n.metadata.read)); } } o.matches = a; } return o.matches; } -function ys(e12, t, n, r) { +function ws(e12, t, n, r) { let o = e12.queries.getByIndex(n), i = o.matches; if (i !== null) { - let s = ju(e12, t, o, n); + let s = $u(e12, t, o, n); for (let a = 0; a < i.length; a += 2) { let c = i[a]; if (c > 0) @@ -4806,13 +4812,13 @@ function ys(e12, t, n, r) { let l = i[a + 1], u = t[-c]; for (let d = S; d < u.length; d++) { let f = u[d]; - f[Oe] === f[R] && ys(f[m], f, l, r); + f[je] === f[A] && ws(f[m], f, l, r); } - if (u[tt] !== null) { - let d = u[tt]; + if (u[ot] !== null) { + let d = u[ot]; for (let f = 0; f < d.length; f++) { let p = d[f]; - ys(p[m], p, l, r); + ws(p[m], p, l, r); } } } @@ -4820,39 +4826,39 @@ function ys(e12, t, n, r) { } return r; } -function dg(e12, t) { - return e12[ue].queries[t].queryList; +function pg(e12, t) { + return e12[fe].queries[t].queryList; } -function fg(e12, t, n) { - let r = new Sr((n & 4) === 4); - return vc(e12, t, r, r.destroy), (t[ue] ??= new ps()).queries.push(new fs(r)) - 1; +function hg(e12, t, n) { + let r = new Or((n & 4) === 4); + return bc(e12, t, r, r.destroy), (t[fe] ??= new Is()).queries.push(new Es(r)) - 1; } -function pg(e12, t, n) { - let r = oe(); - return r.firstCreatePass && (gg(r, new hs(e12, t, n), -1), (t & 2) === 2 && (r.staticViewQueries = true)), fg(r, M(), t); +function gg(e12, t, n) { + let r = ie(); + return r.firstCreatePass && (yg(r, new Ds(e12, t, n), -1), (t & 2) === 2 && (r.staticViewQueries = true)), hg(r, M(), t); } -function hg(e12) { +function mg(e12) { return e12.split(",").map((t) => t.trim()); } -function gg(e12, t, n) { - e12.queries === null && (e12.queries = new gs()), e12.queries.track(new ms(t, n)); +function yg(e12, t, n) { + e12.queries === null && (e12.queries = new bs()), e12.queries.track(new Cs(t, n)); } -function Zs(e12, t) { +function ta(e12, t) { return e12.queries.getByIndex(t); } -function mg(e12, t) { - let n = e12[m], r = Zs(n, t); - return r.crossesNgTemplate ? ys(n, e12, t, []) : ju(n, e12, r, t); +function vg(e12, t) { + let n = e12[m], r = ta(n, t); + return r.crossesNgTemplate ? ws(n, e12, t, []) : $u(n, e12, r, t); } -var Rr = class { +var Fr = class { }; -var fn = class extends Rr { +var gn = class extends Fr { injector; - componentFactoryResolver = new us(this); + componentFactoryResolver = new ys(this); instance = null; constructor(t) { super(); - let n = new qe([...t.providers, { provide: Rr, useValue: this }, { provide: Kr, useValue: this.componentFactoryResolver }], t.parent || Kt(), t.debugName, /* @__PURE__ */ new Set(["environment"])); + let n = new Ye([...t.providers, { provide: Fr, useValue: this }, { provide: no, useValue: this.componentFactoryResolver }], t.parent || en(), t.debugName, /* @__PURE__ */ new Set(["environment"])); this.injector = n, t.runEnvironmentInitializers && n.resolveInjectorInitializers(); } destroy() { @@ -4862,10 +4868,10 @@ var fn = class extends Rr { this.injector.onDestroy(t); } }; -function Hu(e12, t, n = null) { - return new fn({ providers: e12, parent: t, debugName: n, runEnvironmentInitializers: true }).injector; +function Uu(e12, t, n = null) { + return new gn({ providers: e12, parent: t, debugName: n, runEnvironmentInitializers: true }).injector; } -var yg = (() => { +var Eg = (() => { class e12 { _injector; cachedInjectors = /* @__PURE__ */ new Map(); @@ -4876,7 +4882,7 @@ var yg = (() => { if (!n.standalone) return null; if (!this.cachedInjectors.has(n)) { - let r = di(false, n.type), o = r.length > 0 ? Hu([r], this._injector, "") : null; + let r = vi(false, n.type), o = r.length > 0 ? Uu([r], this._injector, "") : null; this.cachedInjectors.set(n, o); } return this.cachedInjectors.get(n); @@ -4889,48 +4895,48 @@ var yg = (() => { this.cachedInjectors.clear(); } } - static \u0275prov = _({ token: e12, providedIn: "environment", factory: () => new e12(w(Q)) }); + static \u0275prov = _({ token: e12, providedIn: "environment", factory: () => new e12(b(Y)) }); } return e12; })(); -function Qs(e12) { - return Tl(() => { - let t = Dg(e12), n = A(N({}, t), { decls: e12.decls, vars: e12.vars, template: e12.template, consts: e12.consts || null, ngContentSelectors: e12.ngContentSelectors, onPush: e12.changeDetection === Ss.OnPush, directiveDefs: null, pipeDefs: null, dependencies: t.standalone && e12.dependencies || null, getStandaloneInjector: t.standalone ? (o) => o.get(yg).getOrCreateStandaloneInjector(n) : null, getExternalStyles: null, signals: e12.signals ?? false, data: e12.data || {}, encapsulation: e12.encapsulation || ie.Emulated, styles: e12.styles || Ne, _: null, schemas: e12.schemas || null, tView: null, id: "" }); - t.standalone && ct("NgStandalone"), wg(n); +function na(e12) { + return Nl(() => { + let t = Cg(e12), n = R(x({}, t), { decls: e12.decls, vars: e12.vars, template: e12.template, consts: e12.consts || null, ngContentSelectors: e12.ngContentSelectors, onPush: e12.changeDetection === Ps.OnPush, directiveDefs: null, pipeDefs: null, dependencies: t.standalone && e12.dependencies || null, getStandaloneInjector: t.standalone ? (o) => o.get(Eg).getOrCreateStandaloneInjector(n) : null, getExternalStyles: null, signals: e12.signals ?? false, data: e12.data || {}, encapsulation: e12.encapsulation || se.Emulated, styles: e12.styles || ke, _: null, schemas: e12.schemas || null, tView: null, id: "" }); + t.standalone && dt("NgStandalone"), wg(n); let r = e12.dependencies; - return n.directiveDefs = Il(r, vg), n.pipeDefs = Il(r, Ka), n.id = Cg(n), n; + return n.directiveDefs = wl(r, Ig), n.pipeDefs = wl(r, tc), n.id = Tg(n), n; }); } -function vg(e12) { - return Ye(e12) || ri(e12); +function Ig(e12) { + return Xe(e12) || ui(e12); } -function Eg(e12, t) { +function Dg(e12, t) { if (e12 == null) - return Ke; + return et; let n = {}; for (let r in e12) if (e12.hasOwnProperty(r)) { let o = e12[r], i, s, a, c; - Array.isArray(o) ? (a = o[0], i = o[1], s = o[2] ?? i, c = o[3] || null) : (i = o, s = o, a = zr.None, c = null), n[i] = [r, a, c], t[i] = s; + Array.isArray(o) ? (a = o[0], i = o[1], s = o[2] ?? i, c = o[3] || null) : (i = o, s = o, a = Qr.None, c = null), n[i] = [r, a, c], t[i] = s; } return n; } -function Ig(e12) { +function bg(e12) { if (e12 == null) - return Ke; + return et; let t = {}; for (let n in e12) e12.hasOwnProperty(n) && (t[e12[n]] = n); return t; } -function Dg(e12) { +function Cg(e12) { let t = {}; - return { type: e12.type, providersResolver: null, viewProvidersResolver: null, factory: null, hostBindings: e12.hostBindings || null, hostVars: e12.hostVars || 0, hostAttrs: e12.hostAttrs || null, contentQueries: e12.contentQueries || null, declaredInputs: t, inputConfig: e12.inputs || Ke, exportAs: e12.exportAs || null, standalone: e12.standalone ?? true, signals: e12.signals === true, selectors: e12.selectors || Ne, viewQuery: e12.viewQuery || null, features: e12.features || null, setInput: null, resolveHostDirectives: null, hostDirectives: null, controlDef: null, inputs: Eg(e12.inputs, t), outputs: Ig(e12.outputs), debugInfo: null }; + return { type: e12.type, providersResolver: null, viewProvidersResolver: null, factory: null, hostBindings: e12.hostBindings || null, hostVars: e12.hostVars || 0, hostAttrs: e12.hostAttrs || null, contentQueries: e12.contentQueries || null, declaredInputs: t, inputConfig: e12.inputs || et, exportAs: e12.exportAs || null, standalone: e12.standalone ?? true, signals: e12.signals === true, selectors: e12.selectors || ke, viewQuery: e12.viewQuery || null, features: e12.features || null, setInput: null, resolveHostDirectives: null, hostDirectives: null, controlDef: null, inputs: Dg(e12.inputs, t), outputs: bg(e12.outputs), debugInfo: null }; } function wg(e12) { e12.features?.forEach((t) => t(e12)); } -function Il(e12, t) { +function wl(e12, t) { return e12 ? () => { let n = typeof e12 == "function" ? e12() : e12, r = []; for (let o of n) { @@ -4940,50 +4946,50 @@ function Il(e12, t) { return r; } : null; } -function Cg(e12) { +function Tg(e12) { let t = 0, n = typeof e12.consts == "function" ? "" : e12.consts, r = [e12.selectors, e12.ngContentSelectors, e12.hostVars, e12.hostAttrs, n, e12.vars, e12.decls, e12.encapsulation, e12.standalone, e12.signals, e12.exportAs, JSON.stringify(e12.inputs), JSON.stringify(e12.outputs), Object.getOwnPropertyNames(e12.type.prototype), !!e12.contentQueries, !!e12.viewQuery]; for (let i of r.join("|")) t = Math.imul(31, t) + i.charCodeAt(0) << 0; return t += 2147483648, "c" + t; } -function bg(e12, t, n, r, o, i, s, a) { +function Mg(e12, t, n, r, o, i, s, a) { if (n.firstCreatePass) { - e12.mergedAttrs = Fr(e12.mergedAttrs, e12.attrs); - let u = e12.tView = Fs(2, e12, o, i, s, n.directiveRegistry, n.pipeRegistry, null, n.schemas, n.consts, null); + e12.mergedAttrs = $r(e12.mergedAttrs, e12.attrs); + let u = e12.tView = zs(2, e12, o, i, s, n.directiveRegistry, n.pipeRegistry, null, n.schemas, n.consts, null); n.queries !== null && (n.queries.template(n, e12), u.queries = n.queries.embeddedTView(e12)); } - a && (e12.flags |= a), Nt(e12, false); - let c = Tg(n, t, e12, r); - fr() && Us(n, t, c, e12), kt(c, t); - let l = _u(c, t, c, e12); - t[r + F] = l, Hs(t, l), ig(l, e12, t); + a && (e12.flags |= a), At(e12, false); + let c = _g(n, t, e12, r); + yr() && Ys(n, t, c, e12), Ft(c, t); + let l = Ru(c, t, c, e12); + t[r + B] = l, Gs(t, l), ag(l, e12, t); } -function Or(e12, t, n, r, o, i, s, a, c, l, u) { - let d = n + F, f; +function jr(e12, t, n, r, o, i, s, a, c, l, u) { + let d = n + B, f; if (t.firstCreatePass) { - if (f = Qr(t, d, 4, s || null, a || null), l != null) { - let p = fe(t.consts, l); + if (f = eo(t, d, 4, s || null, a || null), l != null) { + let p = he(t.consts, l); f.localNames = []; for (let h = 0; h < p.length; h += 2) f.localNames.push(p[h], -1); } } else f = t.data[d]; - return bg(f, e12, t, n, r, o, i, c), l != null && yu(e12, f, u), f; + return Mg(f, e12, t, n, r, o, i, c), l != null && Du(e12, f, u), f; } -var Tg = Mg; -function Mg(e12, t, n, r) { - return pr(true), t[O].createComment(""); +var _g = Sg; +function Sg(e12, t, n, r) { + return vr(true), t[O].createComment(""); } -var Ys = new D(""); -function Ks(e12) { +var ra = new D(""); +function oa(e12) { return !!e12 && typeof e12.then == "function"; } -function Vu(e12) { +function zu(e12) { return !!e12 && typeof e12.subscribe == "function"; } -var Bu = new D(""); -var Js = (() => { +var Wu = new D(""); +var ia = (() => { class e12 { resolve; reject; @@ -4992,8 +4998,8 @@ var Js = (() => { donePromise = new Promise((n, r) => { this.resolve = n, this.reject = r; }); - appInits = E(Bu, { optional: true }) ?? []; - injector = E(ce); + appInits = E(Wu, { optional: true }) ?? []; + injector = E(ue); constructor() { } runInitializers() { @@ -5001,10 +5007,10 @@ var Js = (() => { return; let n = []; for (let o of this.appInits) { - let i = nr(this.injector, o); - if (Ks(i)) + let i = ar(this.injector, o); + if (oa(i)) n.push(i); - else if (Vu(i)) { + else if (zu(i)) { let s = new Promise((a, c) => { i.subscribe({ complete: a, error: c }); }); @@ -5027,33 +5033,33 @@ var Js = (() => { } return e12; })(); -var $u = new D(""); -function Uu() { - To(() => { +var Gu = new D(""); +function qu() { + Ao(() => { let e12 = ""; throw new v(600, e12); }); } -function zu(e12) { +function Zu(e12) { return e12.isBoundToModule; } -var _g = 10; -var vn = (() => { +var Ng = 10; +var Dn = (() => { class e12 { _runningTick = false; _destroyed = false; _destroyListeners = []; _views = []; - internalErrorHandler = E(rt); - afterRenderManager = E(du); - zonelessEnabled = E(tn); - rootEffectScheduler = E(gr); + internalErrorHandler = E(st); + afterRenderManager = E(gu); + zonelessEnabled = E(on); + rootEffectScheduler = E(Ir); dirtyFlags = 0; tracingSnapshot = null; allTestViews = /* @__PURE__ */ new Set(); autoDetectTestViews = /* @__PURE__ */ new Set(); includeAllTestViews = false; - afterTick = new ye(); + afterTick = new ve(); get allViews() { return [...(this.includeAllTestViews ? this.allTestViews : this.autoDetectTestViews).keys(), ...this._views]; } @@ -5062,12 +5068,12 @@ var vn = (() => { } componentTypes = []; components = []; - internalPendingTask = E(At); + internalPendingTask = E(kt); get isStable() { - return this.internalPendingTask.hasPendingTasksObservable.pipe(Fo((n) => !n)); + return this.internalPendingTask.hasPendingTasksObservable.pipe(zo((n) => !n)); } constructor() { - E(jt, { optional: true }); + E(Bt, { optional: true }); } whenStable() { let n; @@ -5079,7 +5085,7 @@ var vn = (() => { n.unsubscribe(); }); } - _injector = E(Q); + _injector = E(Y); _rendererFactory = null; get injector() { return this._injector; @@ -5087,19 +5093,19 @@ var vn = (() => { bootstrap(n, r) { return this.bootstrapImpl(n, r); } - bootstrapImpl(n, r, o = ce.NULL) { - return this._injector.get(Y).run(() => { + bootstrapImpl(n, r, o = ue.NULL) { + return this._injector.get(K).run(() => { T(C.BootstrapComponentStart); - let s = n instanceof Yr; - if (!this._injector.get(Js).done) { + let s = n instanceof to; + if (!this._injector.get(ia).done) { let h = ""; throw new v(405, h); } let c; - s ? c = n : c = this._injector.get(Kr).resolveComponentFactory(n), this.componentTypes.push(c.componentType); - let l = zu(c) ? void 0 : this._injector.get(Rr), u = r || c.selector, d = c.create(o, [], u, l), f = d.location.nativeElement, p = d.injector.get(Ys, null); + s ? c = n : c = this._injector.get(no).resolveComponentFactory(n), this.componentTypes.push(c.componentType); + let l = Zu(c) ? void 0 : this._injector.get(Fr), u = r || c.selector, d = c.create(o, [], u, l), f = d.location.nativeElement, p = d.injector.get(ra, null); return p?.registerApplication(f), d.onDestroy(() => { - this.detachView(d.hostView), on(this.components, d), p?.unregisterApplication(f); + this.detachView(d.hostView), cn(this.components, d), p?.unregisterApplication(f); }), this._loadComponent(d), T(C.BootstrapComponentEnd, d), d; }); } @@ -5107,7 +5113,7 @@ var vn = (() => { this.zonelessEnabled || (this.dirtyFlags |= 1), this._tick(); } _tick() { - T(C.ChangeDetectionStart), this.tracingSnapshot !== null ? this.tracingSnapshot.run(Bs.CHANGE_DETECTION, this.tickImpl) : this.tickImpl(); + T(C.ChangeDetectionStart), this.tracingSnapshot !== null ? this.tracingSnapshot.run(Zs.CHANGE_DETECTION, this.tickImpl) : this.tickImpl(); } tickImpl = () => { if (this._runningTick) @@ -5120,9 +5126,9 @@ var vn = (() => { } }; synchronize() { - this._rendererFactory === null && !this._injector.destroyed && (this._rendererFactory = this._injector.get(st, null, { optional: true })); + this._rendererFactory === null && !this._injector.destroyed && (this._rendererFactory = this._injector.get(lt, null, { optional: true })); let n = 0; - for (; this.dirtyFlags !== 0 && n++ < _g; ) { + for (; this.dirtyFlags !== 0 && n++ < Ng; ) { T(C.ChangeDetectionSyncStart); try { this.synchronizeOnce(); @@ -5138,10 +5144,10 @@ var vn = (() => { let r = !!(this.dirtyFlags & 1); this.dirtyFlags &= -8, this.dirtyFlags |= 8; for (let { _lView: o } of this.allViews) { - if (!r && !Xt(o)) + if (!r && !nn(o)) continue; let i = r && !this.zonelessEnabled ? 0 : 1; - Cu(o, i), n = true; + _u(o, i), n = true; } if (this.dirtyFlags &= -5, this.syncDirtyFlagsWithViews(), this.dirtyFlags & 23) return; @@ -5149,7 +5155,7 @@ var vn = (() => { n || (this._rendererFactory?.begin?.(), this._rendererFactory?.end?.()), this.dirtyFlags & 8 && (this.dirtyFlags &= -9, this.afterRenderManager.execute()), this.syncDirtyFlagsWithViews(); } syncDirtyFlagsWithViews() { - if (this.allViews.some(({ _lView: n }) => Xt(n))) { + if (this.allViews.some(({ _lView: n }) => nn(n))) { this.dirtyFlags |= 2; return; } else @@ -5161,7 +5167,7 @@ var vn = (() => { } detachView(n) { let r = n; - on(this._views, r), r.detachFromAppRef(); + cn(this._views, r), r.detachFromAppRef(); } _loadComponent(n) { this.attachView(n.hostView); @@ -5170,7 +5176,7 @@ var vn = (() => { } catch (o) { this.internalErrorHandler(o); } - this.components.push(n), this._injector.get($u, []).forEach((o) => o(n)); + this.components.push(n), this._injector.get(Gu, []).forEach((o) => o(n)); } ngOnDestroy() { if (!this._destroyed) @@ -5181,7 +5187,7 @@ var vn = (() => { } } onDestroy(n) { - return this._destroyListeners.push(n), () => on(this._destroyListeners, n); + return this._destroyListeners.push(n), () => cn(this._destroyListeners, n); } destroy() { if (this._destroyed) @@ -5199,11 +5205,11 @@ var vn = (() => { } return e12; })(); -function on(e12, t) { +function cn(e12, t) { let n = e12.indexOf(t); n > -1 && e12.splice(n, 1); } -var vs = class { +var Ts = class { destroy(t) { } updateValue(t, n) { @@ -5220,66 +5226,66 @@ var vs = class { this.attach(n, this.detach(t)); } }; -function Vi(e12, t, n, r, o) { +function qi(e12, t, n, r, o) { return e12 === n && Object.is(t, r) ? 1 : Object.is(o(e12, t), o(n, r)) ? -1 : 0; } -function Sg(e12, t, n, r) { +function xg(e12, t, n, r) { let o, i, s = 0, a = e12.length - 1, c = void 0; if (Array.isArray(t)) { g(r); let l = t.length - 1; for (g(null); s <= a && s <= l; ) { - let u = e12.at(s), d = t[s], f = Vi(s, u, s, d, n); + let u = e12.at(s), d = t[s], f = qi(s, u, s, d, n); if (f !== 0) { f < 0 && e12.updateValue(s, d), s++; continue; } - let p = e12.at(a), h = t[l], k = Vi(a, p, l, h, n); - if (k !== 0) { - k < 0 && e12.updateValue(a, h), a--, l--; + let p = e12.at(a), h = t[l], L = qi(a, p, l, h, n); + if (L !== 0) { + L < 0 && e12.updateValue(a, h), a--, l--; continue; } - let P = n(s, u), lt = n(a, p), Vt = n(s, d); - if (Object.is(Vt, lt)) { - let po = n(l, h); - Object.is(po, P) ? (e12.swap(s, a), e12.updateValue(a, h), l--, a--) : e12.move(a, s), e12.updateValue(s, d), s++; + let H = n(s, u), ft = n(a, p), Ut = n(s, d); + if (Object.is(Ut, ft)) { + let Io = n(l, h); + Object.is(Io, H) ? (e12.swap(s, a), e12.updateValue(a, h), l--, a--) : e12.move(a, s), e12.updateValue(s, d), s++; continue; } - if (o ??= new kr(), i ??= wl(e12, s, a, n), Es(e12, o, s, Vt)) + if (o ??= new Hr(), i ??= Ml(e12, s, a, n), Ms(e12, o, s, Ut)) e12.updateValue(s, d), s++, a++; - else if (i.has(Vt)) - o.set(P, e12.detach(s)), a--; + else if (i.has(Ut)) + o.set(H, e12.detach(s)), a--; else { - let po = e12.create(s, t[s]); - e12.attach(s, po), s++, a++; + let Io = e12.create(s, t[s]); + e12.attach(s, Io), s++, a++; } } for (; s <= l; ) - Dl(e12, o, n, s, t[s]), s++; + Tl(e12, o, n, s, t[s]), s++; } else if (t != null) { g(r); let l = t[Symbol.iterator](); g(null); let u = l.next(); for (; !u.done && s <= a; ) { - let d = e12.at(s), f = u.value, p = Vi(s, d, s, f, n); + let d = e12.at(s), f = u.value, p = qi(s, d, s, f, n); if (p !== 0) p < 0 && e12.updateValue(s, f), s++, u = l.next(); else { - o ??= new kr(), i ??= wl(e12, s, a, n); + o ??= new Hr(), i ??= Ml(e12, s, a, n); let h = n(s, f); - if (Es(e12, o, s, h)) + if (Ms(e12, o, s, h)) e12.updateValue(s, f), s++, a++, u = l.next(); else if (!i.has(h)) e12.attach(s, e12.create(s, f)), s++, a++, u = l.next(); else { - let k = n(s, d); - o.set(k, e12.detach(s)), a--; + let L = n(s, d); + o.set(L, e12.detach(s)), a--; } } } for (; !u.done; ) - Dl(e12, o, n, e12.length, u.value), u = l.next(); + Tl(e12, o, n, e12.length, u.value), u = l.next(); } for (; s <= a; ) e12.destroy(e12.detach(a--)); @@ -5287,24 +5293,24 @@ function Sg(e12, t, n, r) { e12.destroy(l); }); } -function Es(e12, t, n, r) { +function Ms(e12, t, n, r) { return t !== void 0 && t.has(r) ? (e12.attach(n, t.get(r)), t.delete(r), true) : false; } -function Dl(e12, t, n, r, o) { - if (Es(e12, t, r, n(r, o))) +function Tl(e12, t, n, r, o) { + if (Ms(e12, t, r, n(r, o))) e12.updateValue(r, o); else { let i = e12.create(r, o); e12.attach(r, i); } } -function wl(e12, t, n, r) { +function Ml(e12, t, n, r) { let o = /* @__PURE__ */ new Set(); for (let i = t; i <= n; i++) o.add(r(i, e12.at(i))); return o; } -var kr = class { +var Hr = class { kvMap = /* @__PURE__ */ new Map(); _vMap = void 0; has(t) { @@ -5339,35 +5345,35 @@ var kr = class { } } }; -function Xs(e12, t, n, r, o, i, s, a) { - ct("NgControlFlow"); - let c = M(), l = oe(), u = fe(l.consts, i); - return Or(c, l, e12, t, n, r, o, u, 256, s, a), ea; -} -function ea(e12, t, n, r, o, i, s, a) { - ct("NgControlFlow"); - let c = M(), l = oe(), u = fe(l.consts, i); - return Or(c, l, e12, t, n, r, o, u, 512, s, a), ea; -} -function ta(e12, t) { - ct("NgControlFlow"); - let n = M(), r = en(), o = n[r] !== Se ? n[r] : -1, i = o !== -1 ? Pr(n, F + o) : void 0, s = 0; - if (yn(n, r, e12)) { +function bn(e12, t, n, r, o, i, s, a) { + dt("NgControlFlow"); + let c = M(), l = ie(), u = he(l.consts, i); + return jr(c, l, e12, t, n, r, o, u, 256, s, a), sa; +} +function sa(e12, t, n, r, o, i, s, a) { + dt("NgControlFlow"); + let c = M(), l = ie(), u = he(l.consts, i); + return jr(c, l, e12, t, n, r, o, u, 512, s, a), sa; +} +function Cn(e12, t) { + dt("NgControlFlow"); + let n = M(), r = rn(), o = n[r] !== Re ? n[r] : -1, i = o !== -1 ? Vr(n, B + o) : void 0, s = 0; + if (In(n, r, e12)) { let a = g(null); try { - if (i !== void 0 && Nu(i, s), e12 !== -1) { - let c = F + e12, l = Pr(n, c), u = Cs(n[m], c), d = Au(l, u, n), f = qr(n, u, t, { dehydratedView: d }); - Zr(l, f, s, an(u, d)); + if (i !== void 0 && Ou(i, s), e12 !== -1) { + let c = B + e12, l = Vr(n, c), u = xs(n[m], c), d = Pu(l, u, n), f = Jr(n, u, t, { dehydratedView: d }); + Xr(l, f, s, un(u, d)); } } finally { g(a); } } else if (i !== void 0) { - let a = Su(i, s); - a !== void 0 && (a[x] = t); + let a = Au(i, s); + a !== void 0 && (a[N] = t); } } -var Is = class { +var _s = class { lContainer; $implicit; $index; @@ -5378,10 +5384,10 @@ var Is = class { return this.lContainer.length - S; } }; -function Xr(e12, t) { +function oo(e12, t) { return t; } -var Ds = class { +var Ss = class { hasEmptyBlock; trackByFn; liveCollection; @@ -5389,12 +5395,12 @@ var Ds = class { this.hasEmptyBlock = t, this.trackByFn = n, this.liveCollection = r; } }; -function eo(e12, t, n, r, o, i, s, a, c, l, u, d, f) { - ct("NgControlFlow"); - let p = M(), h = oe(), k = c !== void 0, P = M(), lt = a ? s.bind(P[X][x]) : s, Vt = new Ds(k, lt); - P[F + e12] = Vt, Or(p, h, e12 + 1, t, n, r, o, fe(h.consts, i), 256), k && Or(p, h, e12 + 2, c, l, u, d, fe(h.consts, f), 512); +function io(e12, t, n, r, o, i, s, a, c, l, u, d, f) { + dt("NgControlFlow"); + let p = M(), h = ie(), L = c !== void 0, H = M(), ft = a ? s.bind(H[ee][N]) : s, Ut = new Ss(L, ft); + H[B + e12] = Ut, jr(p, h, e12 + 1, t, n, r, o, he(h.consts, i), 256), L && jr(p, h, e12 + 2, c, l, u, d, he(h.consts, f), 512); } -var ws = class extends vs { +var Ns = class extends Ts { lContainer; hostLView; templateTNode; @@ -5407,24 +5413,24 @@ var ws = class extends vs { return this.lContainer.length - S; } at(t) { - return this.getLView(t)[x].$implicit; + return this.getLView(t)[N].$implicit; } attach(t, n) { - let r = n[wt]; - this.needsIndexUpdate ||= t !== this.length, Zr(this.lContainer, n, t, an(this.templateTNode, r)), Ng(this.lContainer, t); + let r = n[Tt]; + this.needsIndexUpdate ||= t !== this.length, Xr(this.lContainer, n, t, un(this.templateTNode, r)), Rg(this.lContainer, t); } detach(t) { - return this.needsIndexUpdate ||= t !== this.length - 1, xg(this.lContainer, t), Ag(this.lContainer, t); + return this.needsIndexUpdate ||= t !== this.length - 1, Ag(this.lContainer, t), Og(this.lContainer, t); } create(t, n) { - let r = ss(this.lContainer, this.templateTNode.tView.ssrId); - return qr(this.hostLView, this.templateTNode, new Is(this.lContainer, n, t), { dehydratedView: r }); + let r = ps(this.lContainer, this.templateTNode.tView.ssrId); + return Jr(this.hostLView, this.templateTNode, new _s(this.lContainer, n, t), { dehydratedView: r }); } destroy(t) { - Wr(t[m], t); + Yr(t[m], t); } updateValue(t, n) { - this.getLView(t)[x].$implicit = n; + this.getLView(t)[N].$implicit = n; } reset() { this.needsIndexUpdate = false; @@ -5432,310 +5438,316 @@ var ws = class extends vs { updateIndexes() { if (this.needsIndexUpdate) for (let t = 0; t < this.length; t++) - this.getLView(t)[x].$index = t; + this.getLView(t)[N].$index = t; } getLView(t) { - return Rg(this.lContainer, t); + return kg(this.lContainer, t); } }; -function to(e12) { - let t = g(null), n = Fe(); +function so(e12) { + let t = g(null), n = $e(); try { - let r = M(), o = r[m], i = r[n], s = n + 1, a = Pr(r, s); + let r = M(), o = r[m], i = r[n], s = n + 1, a = Vr(r, s); if (i.liveCollection === void 0) { - let l = Cs(o, s); - i.liveCollection = new ws(a, r, l); + let l = xs(o, s); + i.liveCollection = new Ns(a, r, l); } else i.liveCollection.reset(); let c = i.liveCollection; - if (Sg(c, e12, i.trackByFn, t), c.updateIndexes(), i.hasEmptyBlock) { - let l = en(), u = c.length === 0; - if (yn(r, l, u)) { - let d = n + 2, f = Pr(r, d); + if (xg(c, e12, i.trackByFn, t), c.updateIndexes(), i.hasEmptyBlock) { + let l = rn(), u = c.length === 0; + if (In(r, l, u)) { + let d = n + 2, f = Vr(r, d); if (u) { - let p = Cs(o, d), h = Au(f, p, r), k = qr(r, p, void 0, { dehydratedView: h }); - Zr(f, k, 0, an(p, h)); + let p = xs(o, d), h = Pu(f, p, r), L = Jr(r, p, void 0, { dehydratedView: h }); + Xr(f, L, 0, un(p, h)); } else - o.firstUpdatePass && bh(f), Nu(f, 0); + o.firstUpdatePass && Mh(f), Ou(f, 0); } } } finally { g(t); } } -function Pr(e12, t) { +function Vr(e12, t) { return e12[t]; } -function Ng(e12, t) { +function Rg(e12, t) { if (e12.length <= S) return; - let n = S + t, r = e12[n], o = r ? r[ke] : void 0; + let n = S + t, r = e12[n], o = r ? r[He] : void 0; if (r && o && o.detachedLeaveAnimationFns && o.detachedLeaveAnimationFns.length > 0) { - let i = r[De]; - Np(i, o), it.delete(r[we]), o.detachedLeaveAnimationFns = void 0; + let i = r[be]; + Rp(i, o), ct.delete(r[Ce]), o.detachedLeaveAnimationFns = void 0; } } -function xg(e12, t) { +function Ag(e12, t) { if (e12.length <= S) return; - let n = S + t, r = e12[n], o = r ? r[ke] : void 0; + let n = S + t, r = e12[n], o = r ? r[He] : void 0; o && o.leave && o.leave.size > 0 && (o.detachedLeaveAnimationFns = []); } -function Ag(e12, t) { - return ln(e12, t); +function Og(e12, t) { + return fn(e12, t); } -function Rg(e12, t) { - return Su(e12, t); +function kg(e12, t) { + return Au(e12, t); +} +function xs(e12, t) { + return ur(e12, t); } -function Cs(e12, t) { - return ir(e12, t); +function k(e12, t, n, r) { + let o = M(), i = o[m], s = e12 + B, a = i.firstCreatePass ? $h(s, i, 2, t, n, r) : i.data[s]; + return nh(a, o, e12, t, Pg), r != null && Du(o, a), k; } -function j(e12, t, n, r) { - let o = M(), i = o[m], s = e12 + F, a = i.firstCreatePass ? Vh(s, i, 2, t, n, r) : i.data[s]; - return eh(a, o, e12, t, Og), r != null && yu(o, a), j; +function P() { + let e12 = ge(), t = rh(e12); + return _c(t) && Sc(), Tc(), P; } -function B() { - let e12 = pe(), t = th(e12); - return Cc(t) && bc(), Dc(), B; +function ao(e12, t, n, r) { + return k(e12, t, n, r), P(), ao; } -var Og = (e12, t, n, r, o) => (pr(true), ou(t[O], r, jc())); -function me(e12, t, n) { - let r = M(), o = en(); - if (yn(r, o, t)) { - let i = oe(), s = Fc(); - Qp(s, r, e12, t, r[O], n); +var Pg = (e12, t, n, r, o) => (vr(true), cu(t[O], r, $c())); +function co() { + return M(); +} +function ae(e12, t, n) { + let r = M(), o = rn(); + if (In(r, o, t)) { + let i = ie(), s = Bc(); + Kp(s, r, e12, t, r[O], n); } - return me; + return ae; } -var En = "en-US"; -var kg = En; -function Wu(e12) { - typeof e12 == "string" && (kg = e12.toLowerCase().replace(/_/g, "-")); +var wn = "en-US"; +var Lg = wn; +function Qu(e12) { + typeof e12 == "string" && (Lg = e12.toLowerCase().replace(/_/g, "-")); } -function Ve(e12, t, n) { - let r = M(), o = oe(), i = pe(); - return (i.type & 3 || n) && $h(i, o, r, n, r[O], e12, t, Bh(i, r, t)), Ve; +function Ae(e12, t, n) { + let r = M(), o = ie(), i = ge(); + return (i.type & 3 || n) && zh(i, o, r, n, r[O], e12, t, Uh(i, r, t)), Ae; } -function na(e12 = 1) { - return Lc(e12); +function ce(e12 = 1) { + return Vc(e12); } -function no(e12, t, n) { - return pg(e12, t, n), no; +function lo(e12, t, n) { + return gg(e12, t, n), lo; } -function ra(e12) { - let t = M(), n = oe(), r = _i(); - lr(r + 1); - let o = Zs(n, r); - if (e12.dirty && hc(t) === ((o.metadata.flags & 2) === 2)) { +function aa(e12) { + let t = M(), n = ie(), r = ki(); + hr(r + 1); + let o = ta(n, r); + if (e12.dirty && vc(t) === ((o.metadata.flags & 2) === 2)) { if (o.matches === null) e12.reset([]); else { - let i = mg(t, r); - e12.reset(i, jf), e12.notifyOnChanges(); + let i = vg(t, r); + e12.reset(i, Vf), e12.notifyOnChanges(); } return true; } return false; } -function oa() { - return dg(M(), _i()); +function ca() { + return pg(M(), ki()); } -function Er(e12, t) { +function wr(e12, t) { return e12 << 17 | t << 2; } -function at(e12) { +function ut(e12) { return e12 >> 17 & 32767; } -function Pg(e12) { +function Fg(e12) { return (e12 & 2) == 2; } -function Lg(e12, t) { +function jg(e12, t) { return e12 & 131071 | t << 17; } -function bs(e12) { +function Rs(e12) { return e12 | 2; } -function Lt(e12) { +function Ht(e12) { return (e12 & 131068) >> 2; } -function Bi(e12, t) { +function Zi(e12, t) { return e12 & -131069 | t << 2; } -function Fg(e12) { +function Hg(e12) { return (e12 & 1) === 1; } -function Ts(e12) { +function As(e12) { return e12 | 1; } -function jg(e12, t, n, r, o, i) { - let s = i ? t.classBindings : t.styleBindings, a = at(s), c = Lt(s); +function Vg(e12, t, n, r, o, i) { + let s = i ? t.classBindings : t.styleBindings, a = ut(s), c = Ht(s); e12[r] = n; let l = false, u; if (Array.isArray(n)) { let d = n; - u = d[1], (u === null || It(d, u) > 0) && (l = true); + u = d[1], (u === null || Ct(d, u) > 0) && (l = true); } else u = n; if (o) if (c !== 0) { - let f = at(e12[a + 1]); - e12[r + 1] = Er(f, a), f !== 0 && (e12[f + 1] = Bi(e12[f + 1], r)), e12[a + 1] = Lg(e12[a + 1], r); + let f = ut(e12[a + 1]); + e12[r + 1] = wr(f, a), f !== 0 && (e12[f + 1] = Zi(e12[f + 1], r)), e12[a + 1] = jg(e12[a + 1], r); } else - e12[r + 1] = Er(a, 0), a !== 0 && (e12[a + 1] = Bi(e12[a + 1], r)), a = r; + e12[r + 1] = wr(a, 0), a !== 0 && (e12[a + 1] = Zi(e12[a + 1], r)), a = r; else - e12[r + 1] = Er(c, 0), a === 0 ? a = r : e12[c + 1] = Bi(e12[c + 1], r), c = r; - l && (e12[r + 1] = bs(e12[r + 1])), Cl(e12, u, r, true), Cl(e12, u, r, false), Hg(t, u, e12, r, i), s = Er(a, c), i ? t.classBindings = s : t.styleBindings = s; + e12[r + 1] = wr(c, 0), a === 0 ? a = r : e12[c + 1] = Zi(e12[c + 1], r), c = r; + l && (e12[r + 1] = Rs(e12[r + 1])), _l(e12, u, r, true), _l(e12, u, r, false), Bg(t, u, e12, r, i), s = wr(a, c), i ? t.classBindings = s : t.styleBindings = s; } -function Hg(e12, t, n, r, o) { +function Bg(e12, t, n, r, o) { let i = o ? e12.residualClasses : e12.residualStyles; - i != null && typeof t == "string" && It(i, t) >= 0 && (n[r + 1] = Ts(n[r + 1])); + i != null && typeof t == "string" && Ct(i, t) >= 0 && (n[r + 1] = As(n[r + 1])); } -function Cl(e12, t, n, r) { - let o = e12[n + 1], i = t === null, s = r ? at(o) : Lt(o), a = false; +function _l(e12, t, n, r) { + let o = e12[n + 1], i = t === null, s = r ? ut(o) : Ht(o), a = false; for (; s !== 0 && (a === false || i); ) { let c = e12[s], l = e12[s + 1]; - Vg(c, t) && (a = true, e12[s + 1] = r ? Ts(l) : bs(l)), s = r ? at(l) : Lt(l); + $g(c, t) && (a = true, e12[s + 1] = r ? As(l) : Rs(l)), s = r ? ut(l) : Ht(l); } - a && (e12[n + 1] = r ? bs(o) : Ts(o)); + a && (e12[n + 1] = r ? Rs(o) : As(o)); } -function Vg(e12, t) { - return e12 === null || t == null || (Array.isArray(e12) ? e12[1] : e12) === t ? true : Array.isArray(e12) && typeof t == "string" ? It(e12, t) >= 0 : false; +function $g(e12, t) { + return e12 === null || t == null || (Array.isArray(e12) ? e12[1] : e12) === t ? true : Array.isArray(e12) && typeof t == "string" ? Ct(e12, t) >= 0 : false; } -function ro(e12, t) { - return Bg(e12, t, null, true), ro; +function uo(e12, t) { + return Ug(e12, t, null, true), uo; } -function Bg(e12, t, n, r) { - let o = M(), i = oe(), s = Sc(2); - if (i.firstUpdatePass && Ug(i, e12, s, r), t !== Se && yn(o, s, t)) { - let a = i.data[Fe()]; - Zg(i, a, o, o[O], e12, o[s + 1] = Qg(t, n), r, s); +function Ug(e12, t, n, r) { + let o = M(), i = ie(), s = Ac(2); + if (i.firstUpdatePass && Wg(i, e12, s, r), t !== Re && In(o, s, t)) { + let a = i.data[$e()]; + Yg(i, a, o, o[O], e12, o[s + 1] = Kg(t, n), r, s); } } -function $g(e12, t) { +function zg(e12, t) { return t >= e12.expandoStartIndex; } -function Ug(e12, t, n, r) { +function Wg(e12, t, n, r) { let o = e12.data; if (o[n + 1] === null) { - let i = o[Fe()], s = $g(e12, n); - Yg(i, r) && t === null && !s && (t = false), t = zg(o, i, t, r), jg(o, i, t, n, s, r); + let i = o[$e()], s = zg(e12, n); + Jg(i, r) && t === null && !s && (t = false), t = Gg(o, i, t, r), Vg(o, i, t, n, s, r); } } -function zg(e12, t, n, r) { - let o = Rc(e12), i = r ? t.residualClasses : t.residualStyles; +function Gg(e12, t, n, r) { + let o = Lc(e12), i = r ? t.residualClasses : t.residualStyles; if (o === null) - (r ? t.classBindings : t.styleBindings) === 0 && (n = $i(null, e12, t, n, r), n = pn(n, t.attrs, r), i = null); + (r ? t.classBindings : t.styleBindings) === 0 && (n = Qi(null, e12, t, n, r), n = mn(n, t.attrs, r), i = null); else { let s = t.directiveStylingLast; if (s === -1 || e12[s] !== o) - if (n = $i(o, e12, t, n, r), i === null) { - let c = Wg(e12, t, r); - c !== void 0 && Array.isArray(c) && (c = $i(null, e12, t, c[1], r), c = pn(c, t.attrs, r), Gg(e12, t, r, c)); + if (n = Qi(o, e12, t, n, r), i === null) { + let c = qg(e12, t, r); + c !== void 0 && Array.isArray(c) && (c = Qi(null, e12, t, c[1], r), c = mn(c, t.attrs, r), Zg(e12, t, r, c)); } else - i = qg(e12, t, r); + i = Qg(e12, t, r); } return i !== void 0 && (r ? t.residualClasses = i : t.residualStyles = i), n; } -function Wg(e12, t, n) { +function qg(e12, t, n) { let r = n ? t.classBindings : t.styleBindings; - if (Lt(r) !== 0) - return e12[at(r)]; + if (Ht(r) !== 0) + return e12[ut(r)]; } -function Gg(e12, t, n, r) { +function Zg(e12, t, n, r) { let o = n ? t.classBindings : t.styleBindings; - e12[at(o)] = r; + e12[ut(o)] = r; } -function qg(e12, t, n) { +function Qg(e12, t, n) { let r, o = t.directiveEnd; for (let i = 1 + t.directiveStylingLast; i < o; i++) { let s = e12[i].hostAttrs; - r = pn(r, s, n); + r = mn(r, s, n); } - return pn(r, t.attrs, n); + return mn(r, t.attrs, n); } -function $i(e12, t, n, r, o) { +function Qi(e12, t, n, r, o) { let i = null, s = n.directiveEnd, a = n.directiveStylingLast; - for (a === -1 ? a = n.directiveStart : a++; a < s && (i = t[a], r = pn(r, i.hostAttrs, o), i !== e12); ) + for (a === -1 ? a = n.directiveStart : a++; a < s && (i = t[a], r = mn(r, i.hostAttrs, o), i !== e12); ) a++; return e12 !== null && (n.directiveStylingLast = a), r; } -function pn(e12, t, n) { +function mn(e12, t, n) { let r = n ? 1 : 2, o = -1; if (t !== null) for (let i = 0; i < t.length; i++) { let s = t[i]; - typeof s == "number" ? o = s : o === r && (Array.isArray(e12) || (e12 = e12 === void 0 ? [] : ["", e12]), oc(e12, s, n ? true : t[++i])); + typeof s == "number" ? o = s : o === r && (Array.isArray(e12) || (e12 = e12 === void 0 ? [] : ["", e12]), cc(e12, s, n ? true : t[++i])); } return e12 === void 0 ? null : e12; } -function Zg(e12, t, n, r, o, i, s, a) { +function Yg(e12, t, n, r, o, i, s, a) { if (!(t.type & 3)) return; - let c = e12.data, l = c[a + 1], u = Fg(l) ? bl(c, t, n, o, Lt(l), s) : void 0; - if (!Lr(u)) { - Lr(i) || Pg(l) && (i = bl(c, null, n, o, a, s)); - let d = vi(Fe(), n); - zp(r, s, d, o, i); + let c = e12.data, l = c[a + 1], u = Hg(l) ? Sl(c, t, n, o, Ht(l), s) : void 0; + if (!Br(u)) { + Br(i) || Fg(l) && (i = Sl(c, null, n, o, a, s)); + let d = Ti($e(), n); + Gp(r, s, d, o, i); } } -function bl(e12, t, n, r, o, i) { +function Sl(e12, t, n, r, o, i) { let s = t === null, a; for (; o > 0; ) { let c = e12[o], l = Array.isArray(c), u = l ? c[1] : c, d = u === null, f = n[o + 1]; - f === Se && (f = d ? Ne : void 0); - let p = d ? tr(f, r) : u === r ? f : void 0; - if (l && !Lr(p) && (p = tr(c, r)), Lr(p) && (a = p, s)) + f === Re && (f = d ? ke : void 0); + let p = d ? sr(f, r) : u === r ? f : void 0; + if (l && !Br(p) && (p = sr(c, r)), Br(p) && (a = p, s)) return a; let h = e12[o + 1]; - o = s ? at(h) : Lt(h); + o = s ? ut(h) : Ht(h); } if (t !== null) { let c = i ? t.residualClasses : t.residualStyles; - c != null && (a = tr(c, r)); + c != null && (a = sr(c, r)); } return a; } -function Lr(e12) { +function Br(e12) { return e12 !== void 0; } -function Qg(e12, t) { - return e12 == null || e12 === "" || (typeof t == "string" ? e12 = e12 + t : typeof e12 == "object" && (e12 = Qn(Me(e12)))), e12; +function Kg(e12, t) { + return e12 == null || e12 === "" || (typeof t == "string" ? e12 = e12 + t : typeof e12 == "object" && (e12 = er(Ne(e12)))), e12; } -function Yg(e12, t) { +function Jg(e12, t) { return (e12.flags & (t ? 8 : 16)) !== 0; } -function se(e12, t = "") { - let n = M(), r = oe(), o = e12 + F, i = r.firstCreatePass ? Qr(r, o, 1, t, null) : r.data[o], s = Kg(r, n, i, t); - n[o] = s, fr() && Us(r, n, s, i), Nt(i, false); +function W(e12, t = "") { + let n = M(), r = ie(), o = e12 + B, i = r.firstCreatePass ? eo(r, o, 1, t, null) : r.data[o], s = Xg(r, n, i, t); + n[o] = s, yr() && Ys(r, n, s, i), At(i, false); } -var Kg = (e12, t, n, r) => (pr(true), pp(t[O], r)); -function Jg(e12, t, n, r = "") { - return yn(e12, en(), n) ? t + ii(n) + r : Se; +var Xg = (e12, t, n, r) => (vr(true), gp(t[O], r)); +function em(e12, t, n, r = "") { + return In(e12, rn(), n) ? t + fi(n) + r : Re; } -function Be(e12) { - return ia("", e12), Be; +function Oe(e12) { + return la("", e12), Oe; } -function ia(e12, t, n) { - let r = M(), o = Jg(r, e12, t, n); - return o !== Se && Xg(r, Fe(), o), ia; +function la(e12, t, n) { + let r = M(), o = em(r, e12, t, n); + return o !== Re && tm(r, $e(), o), la; } -function Xg(e12, t, n) { - let r = vi(t, e12); - hp(e12[O], r, n); +function tm(e12, t, n) { + let r = Ti(t, e12); + mp(e12[O], r, n); } -var Gu = (() => { +var Yu = (() => { class e12 { - applicationErrorHandler = E(rt); - appRef = E(vn); - taskService = E(At); - ngZone = E(Y); - zonelessEnabled = E(tn); - tracing = E(jt, { optional: true }); + applicationErrorHandler = E(st); + appRef = E(Dn); + taskService = E(kt); + ngZone = E(K); + zonelessEnabled = E(on); + tracing = E(Bt, { optional: true }); zoneIsDefined = typeof Zone < "u" && !!Zone.root.run; schedulerTickApplyArgs = [{ data: { __scheduler_tick__: true } }]; - subscriptions = new H(); - angularZoneId = this.zoneIsDefined ? this.ngZone._inner?.get(qt) : null; - scheduleInRootZone = !this.zonelessEnabled && this.zoneIsDefined && (E(ki, { optional: true }) ?? false); + subscriptions = new $(); + angularZoneId = this.zoneIsDefined ? this.ngZone._inner?.get(Yt) : null; + scheduleInRootZone = !this.zonelessEnabled && this.zoneIsDefined && (E(Bi, { optional: true }) ?? false); cancelScheduledCallback = null; useMicrotaskScheduler = false; runningTick = false; @@ -5795,11 +5807,11 @@ var Gu = (() => { } if (this.appRef.tracingSnapshot = this.tracing?.snapshot(this.appRef.tracingSnapshot) ?? null, !this.shouldScheduleTick()) return; - let r = this.useMicrotaskScheduler ? Uc : xi; + let r = this.useMicrotaskScheduler ? qc : Fi; this.pendingRenderTaskId = this.taskService.add(), this.scheduleInRootZone ? this.cancelScheduledCallback = Zone.root.run(() => r(() => this.tick())) : this.cancelScheduledCallback = this.ngZone.runOutsideAngular(() => r(() => this.tick())); } shouldScheduleTick() { - return !(this.appRef.destroyed || this.pendingRenderTaskId !== null || this.runningTick || this.appRef._runningTick || !this.zonelessEnabled && this.zoneIsDefined && Zone.current.get(qt + this.angularZoneId)); + return !(this.appRef.destroyed || this.pendingRenderTaskId !== null || this.runningTick || this.appRef._runningTick || !this.zonelessEnabled && this.zoneIsDefined && Zone.current.get(Yt + this.angularZoneId)); } tick() { if (this.runningTick || this.appRef.destroyed) @@ -5836,110 +5848,110 @@ var Gu = (() => { } return e12; })(); -function sa() { - return ct("NgZoneless"), Dt([...aa(), []]); +function ua() { + return dt("NgZoneless"), wt([...da(), []]); } -function aa() { - return [{ provide: Ze, useExisting: Gu }, { provide: Y, useClass: Zt }, { provide: tn, useValue: true }]; +function da() { + return [{ provide: Ke, useExisting: Yu }, { provide: K, useClass: Kt }, { provide: on, useValue: true }]; } -function em() { - return typeof $localize < "u" && $localize.locale || En; +function nm() { + return typeof $localize < "u" && $localize.locale || wn; } -var ca = new D("", { factory: () => E(ca, { optional: true, skipSelf: true }) || em() }); -function $e(e12, t) { - return On(e12, t?.equal); +var fa = new D("", { factory: () => E(fa, { optional: true, skipSelf: true }) || nm() }); +function We(e12, t) { + return jn(e12, t?.equal); } -var la = new D(""); -var um = new D(""); -function In(e12) { +var pa = new D(""); +var fm = new D(""); +function Tn(e12) { return !e12.moduleRef; } -function dm(e12) { - let t = In(e12) ? e12.r3Injector : e12.moduleRef.injector, n = t.get(Y); +function pm(e12) { + let t = Tn(e12) ? e12.r3Injector : e12.moduleRef.injector, n = t.get(K); return n.run(() => { - In(e12) ? e12.r3Injector.resolveInjectorInitializers() : e12.moduleRef.resolveInjectorInitializers(); - let r = t.get(rt), o; + Tn(e12) ? e12.r3Injector.resolveInjectorInitializers() : e12.moduleRef.resolveInjectorInitializers(); + let r = t.get(st), o; if (n.runOutsideAngular(() => { o = n.onError.subscribe({ next: r }); - }), In(e12)) { - let i = () => t.destroy(), s = e12.platformInjector.get(la); + }), Tn(e12)) { + let i = () => t.destroy(), s = e12.platformInjector.get(pa); s.add(i), t.onDestroy(() => { o.unsubscribe(), s.delete(i); }); } else { - let i = () => e12.moduleRef.destroy(), s = e12.platformInjector.get(la); + let i = () => e12.moduleRef.destroy(), s = e12.platformInjector.get(pa); s.add(i), e12.moduleRef.onDestroy(() => { - on(e12.allPlatformModules, e12.moduleRef), o.unsubscribe(), s.delete(i); + cn(e12.allPlatformModules, e12.moduleRef), o.unsubscribe(), s.delete(i); }); } - return pm(r, n, () => { - let i = t.get(At), s = i.add(), a = t.get(Js); + return gm(r, n, () => { + let i = t.get(kt), s = i.add(), a = t.get(ia); return a.runInitializers(), a.donePromise.then(() => { - let c = t.get(ca, En); - if (Wu(c || En), !t.get(um, true)) - return In(e12) ? t.get(vn) : (e12.allPlatformModules.push(e12.moduleRef), e12.moduleRef); - if (In(e12)) { - let u = t.get(vn); + let c = t.get(fa, wn); + if (Qu(c || wn), !t.get(fm, true)) + return Tn(e12) ? t.get(Dn) : (e12.allPlatformModules.push(e12.moduleRef), e12.moduleRef); + if (Tn(e12)) { + let u = t.get(Dn); return e12.rootComponent !== void 0 && u.bootstrap(e12.rootComponent), u; } else - return fm?.(e12.moduleRef, e12.allPlatformModules), e12.moduleRef; + return hm?.(e12.moduleRef, e12.allPlatformModules), e12.moduleRef; }).finally(() => { i.remove(s); }); }); }); } -var fm; -function pm(e12, t, n) { +var hm; +function gm(e12, t, n) { try { let r = n(); - return Ks(r) ? r.catch((o) => { + return oa(r) ? r.catch((o) => { throw t.runOutsideAngular(() => e12(o)), o; }) : r; } catch (r) { throw t.runOutsideAngular(() => e12(r)), r; } } -var oo = null; -function hm(e12 = [], t) { - return ce.create({ name: t, providers: [{ provide: Yt, useValue: "platform" }, { provide: la, useValue: /* @__PURE__ */ new Set([() => oo = null]) }, ...e12] }); +var fo = null; +function mm(e12 = [], t) { + return ue.create({ name: t, providers: [{ provide: Xt, useValue: "platform" }, { provide: pa, useValue: /* @__PURE__ */ new Set([() => fo = null]) }, ...e12] }); } -function gm(e12 = []) { - if (oo) - return oo; - let t = hm(e12); - return oo = t, Uu(), mm(t), t; +function ym(e12 = []) { + if (fo) + return fo; + let t = mm(e12); + return fo = t, qu(), vm(t), t; } -function mm(e12) { - let t = e12.get(Hr, null); - nr(e12, () => { +function vm(e12) { + let t = e12.get(zr, null); + ar(e12, () => { t?.forEach((n) => n()); }); } -var ym = 1e4; -var VM = ym - 1e3; -function Zu(e12) { +var Em = 1e4; +var WM = Em - 1e3; +function Ju(e12) { let { rootComponent: t, appProviders: n, platformProviders: r, platformRef: o } = e12; T(C.BootstrapApplicationStart); try { - let i = o?.injector ?? gm(r), s = [aa(), Wc, ...n || []], a = new fn({ providers: s, parent: i, debugName: "", runEnvironmentInitializers: false }); - return dm({ r3Injector: a.injector, platformInjector: i, rootComponent: t }); + let i = o?.injector ?? ym(r), s = [da(), Qc, ...n || []], a = new gn({ providers: s, parent: i, debugName: "", runEnvironmentInitializers: false }); + return pm({ r3Injector: a.injector, platformInjector: i, rootComponent: t }); } catch (i) { return Promise.reject(i); } finally { T(C.BootstrapApplicationEnd); } } -var Qu = null; -function Ht() { - return Qu; +var Xu = null; +function $t() { + return Xu; } -function ua(e12) { - Qu ??= e12; +function ha(e12) { + Xu ??= e12; } -var wn = class { +var _n = class { }; -function da(e12, t) { +function ga(e12, t) { t = encodeURIComponent(t); for (let n of e12.split(";")) { let r = n.indexOf("="), [o, i] = r == -1 ? [n, ""] : [n.slice(0, r), n.slice(r + 1)]; @@ -5948,18 +5960,18 @@ function da(e12, t) { } return null; } -var Cn = class { +var Sn = class { }; -var Yu = "browser"; -var bn = class { +var ed = "browser"; +var Nn = class { _doc; constructor(t) { this._doc = t; } manager; }; -var io = (() => { - class e12 extends bn { +var po = (() => { + class e12 extends Nn { constructor(n) { super(n); } @@ -5973,14 +5985,14 @@ var io = (() => { return n.removeEventListener(r, o, i); } static \u0275fac = function(r) { - return new (r || e12)(w(U)); + return new (r || e12)(b(z)); }; static \u0275prov = _({ token: e12, factory: e12.\u0275fac }); } return e12; })(); -var co = new D(""); -var ga = (() => { +var mo = new D(""); +var Ea = (() => { class e12 { _zone; _plugins; @@ -5989,9 +6001,9 @@ var ga = (() => { this._zone = r, n.forEach((s) => { s.manager = this; }); - let o = n.filter((s) => !(s instanceof io)); + let o = n.filter((s) => !(s instanceof po)); this._plugins = o.slice().reverse(); - let i = n.find((s) => s instanceof io); + let i = n.find((s) => s instanceof po); i && this._plugins.push(i); } addEventListener(n, r, o, i) { @@ -6009,32 +6021,32 @@ var ga = (() => { return this._eventNameToPlugin.set(n, r), r; } static \u0275fac = function(r) { - return new (r || e12)(w(co), w(Y)); + return new (r || e12)(b(mo), b(K)); }; static \u0275prov = _({ token: e12, factory: e12.\u0275fac }); } return e12; })(); -var fa = "ng-app-id"; -function Ku(e12) { +var ma = "ng-app-id"; +function td(e12) { for (let t of e12) t.remove(); } -function Ju(e12, t) { +function nd(e12, t) { let n = t.createElement("style"); return n.textContent = e12, n; } -function vm(e12, t, n, r) { - let o = e12.head?.querySelectorAll(`style[${fa}="${t}"],link[${fa}="${t}"]`); +function Im(e12, t, n, r) { + let o = e12.head?.querySelectorAll(`style[${ma}="${t}"],link[${ma}="${t}"]`); if (o) for (let i of o) - i.removeAttribute(fa), i instanceof HTMLLinkElement ? r.set(i.href.slice(i.href.lastIndexOf("/") + 1), { usage: 0, elements: [i] }) : i.textContent && n.set(i.textContent, { usage: 0, elements: [i] }); + i.removeAttribute(ma), i instanceof HTMLLinkElement ? r.set(i.href.slice(i.href.lastIndexOf("/") + 1), { usage: 0, elements: [i] }) : i.textContent && n.set(i.textContent, { usage: 0, elements: [i] }); } -function ha(e12, t) { +function va(e12, t) { let n = t.createElement("link"); return n.setAttribute("rel", "stylesheet"), n.setAttribute("href", e12), n; } -var ma = (() => { +var Ia = (() => { class e12 { doc; appId; @@ -6043,12 +6055,12 @@ var ma = (() => { external = /* @__PURE__ */ new Map(); hosts = /* @__PURE__ */ new Set(); constructor(n, r, o, i = {}) { - this.doc = n, this.appId = r, this.nonce = o, vm(n, r, this.inline, this.external), this.hosts.add(n.head); + this.doc = n, this.appId = r, this.nonce = o, Im(n, r, this.inline, this.external), this.hosts.add(n.head); } addStyles(n, r) { for (let o of n) - this.addUsage(o, this.inline, Ju); - r?.forEach((o) => this.addUsage(o, this.external, ha)); + this.addUsage(o, this.inline, nd); + r?.forEach((o) => this.addUsage(o, this.external, va)); } removeStyles(n, r) { for (let o of n) @@ -6061,19 +6073,19 @@ var ma = (() => { } removeUsage(n, r) { let o = r.get(n); - o && (o.usage--, o.usage <= 0 && (Ku(o.elements), r.delete(n))); + o && (o.usage--, o.usage <= 0 && (td(o.elements), r.delete(n))); } ngOnDestroy() { for (let [, { elements: n }] of [...this.inline, ...this.external]) - Ku(n); + td(n); this.hosts.clear(); } addHost(n) { this.hosts.add(n); for (let [r, { elements: o }] of this.inline) - o.push(this.addElement(n, Ju(r, this.doc))); + o.push(this.addElement(n, nd(r, this.doc))); for (let [r, { elements: o }] of this.external) - o.push(this.addElement(n, ha(r, this.doc))); + o.push(this.addElement(n, va(r, this.doc))); } removeHost(n) { this.hosts.delete(n); @@ -6082,29 +6094,29 @@ var ma = (() => { return this.nonce && r.setAttribute("nonce", this.nonce), n.appendChild(r); } static \u0275fac = function(r) { - return new (r || e12)(w(U), w(jr), w(Vr, 8), w(gn)); + return new (r || e12)(b(z), b(Ur), b(Wr, 8), b(vn)); }; static \u0275prov = _({ token: e12, factory: e12.\u0275fac }); } return e12; })(); -var pa = { svg: "http://www.w3.org/2000/svg", xhtml: "http://www.w3.org/1999/xhtml", xlink: "http://www.w3.org/1999/xlink", xml: "http://www.w3.org/XML/1998/namespace", xmlns: "http://www.w3.org/2000/xmlns/", math: "http://www.w3.org/1998/Math/MathML" }; -var ya = /%COMP%/g; -var ed = "%COMP%"; -var Em = `_nghost-${ed}`; -var Im = `_ngcontent-${ed}`; -var Dm = true; -var wm = new D("", { factory: () => Dm }); -function Cm(e12) { - return Im.replace(ya, e12); -} -function bm(e12) { - return Em.replace(ya, e12); -} -function td(e12, t) { - return t.map((n) => n.replace(ya, e12)); -} -var va = (() => { +var ya = { svg: "http://www.w3.org/2000/svg", xhtml: "http://www.w3.org/1999/xhtml", xlink: "http://www.w3.org/1999/xlink", xml: "http://www.w3.org/XML/1998/namespace", xmlns: "http://www.w3.org/2000/xmlns/", math: "http://www.w3.org/1998/Math/MathML" }; +var Da = /%COMP%/g; +var od = "%COMP%"; +var Dm = `_nghost-${od}`; +var bm = `_ngcontent-${od}`; +var Cm = true; +var wm = new D("", { factory: () => Cm }); +function Tm(e12) { + return bm.replace(Da, e12); +} +function Mm(e12) { + return Dm.replace(Da, e12); +} +function id(e12, t) { + return t.map((n) => n.replace(Da, e12)); +} +var ba = (() => { class e12 { eventManager; sharedStylesHost; @@ -6117,28 +6129,28 @@ var va = (() => { rendererByCompId = /* @__PURE__ */ new Map(); defaultRenderer; constructor(n, r, o, i, s, a, c = null, l = null) { - this.eventManager = n, this.sharedStylesHost = r, this.appId = o, this.removeStylesOnCompDestroy = i, this.doc = s, this.ngZone = a, this.nonce = c, this.tracingService = l, this.defaultRenderer = new Tn(n, s, a, this.tracingService); + this.eventManager = n, this.sharedStylesHost = r, this.appId = o, this.removeStylesOnCompDestroy = i, this.doc = s, this.ngZone = a, this.nonce = c, this.tracingService = l, this.defaultRenderer = new xn(n, s, a, this.tracingService); } createRenderer(n, r) { if (!n || !r) return this.defaultRenderer; let o = this.getOrCreateRenderer(n, r); - return o instanceof ao ? o.applyToHost(n) : o instanceof Mn && o.applyStyles(), o; + return o instanceof go ? o.applyToHost(n) : o instanceof Rn && o.applyStyles(), o; } getOrCreateRenderer(n, r) { let o = this.rendererByCompId, i = o.get(r.id); if (!i) { let s = this.doc, a = this.ngZone, c = this.eventManager, l = this.sharedStylesHost, u = this.removeStylesOnCompDestroy, d = this.tracingService; switch (r.encapsulation) { - case ie.Emulated: - i = new ao(c, l, r, this.appId, u, s, a, d); + case se.Emulated: + i = new go(c, l, r, this.appId, u, s, a, d); break; - case ie.ShadowDom: - return new so(c, n, r, s, a, this.nonce, d, l); - case ie.ExperimentalIsolatedShadowDom: - return new so(c, n, r, s, a, this.nonce, d); + case se.ShadowDom: + return new ho(c, n, r, s, a, this.nonce, d, l); + case se.ExperimentalIsolatedShadowDom: + return new ho(c, n, r, s, a, this.nonce, d); default: - i = new Mn(c, l, r, u, s, a, d); + i = new Rn(c, l, r, u, s, a, d); break; } o.set(r.id, i); @@ -6152,13 +6164,13 @@ var va = (() => { this.rendererByCompId.delete(n); } static \u0275fac = function(r) { - return new (r || e12)(w(ga), w(ma), w(jr), w(wm), w(U), w(Y), w(Vr), w(jt, 8)); + return new (r || e12)(b(Ea), b(Ia), b(Ur), b(wm), b(z), b(K), b(Wr), b(Bt, 8)); }; static \u0275prov = _({ token: e12, factory: e12.\u0275fac }); } return e12; })(); -var Tn = class { +var xn = class { eventManager; doc; ngZone; @@ -6172,7 +6184,7 @@ var Tn = class { } destroyNode = null; createElement(t, n) { - return n ? this.doc.createElementNS(pa[n] || n, t) : this.doc.createElement(t); + return n ? this.doc.createElementNS(ya[n] || n, t) : this.doc.createElement(t); } createComment(t) { return this.doc.createComment(t); @@ -6181,10 +6193,10 @@ var Tn = class { return this.doc.createTextNode(t); } appendChild(t, n) { - (Xu(t) ? t.content : t).appendChild(n); + (rd(t) ? t.content : t).appendChild(n); } insertBefore(t, n, r) { - t && (Xu(t) ? t.content : t).insertBefore(n, r); + t && (rd(t) ? t.content : t).insertBefore(n, r); } removeChild(t, n) { n.remove(); @@ -6204,14 +6216,14 @@ var Tn = class { setAttribute(t, n, r, o) { if (o) { n = o + ":" + n; - let i = pa[o]; + let i = ya[o]; i ? t.setAttributeNS(i, n, r) : t.setAttribute(n, r); } else t.setAttribute(n, r); } removeAttribute(t, n, r) { if (r) { - let o = pa[r]; + let o = ya[r]; o ? t.removeAttributeNS(o, n) : t.removeAttribute(`${r}:${n}`); } else t.removeAttribute(n); @@ -6223,10 +6235,10 @@ var Tn = class { t.classList.remove(n); } setStyle(t, n, r, o) { - o & (Te.DashCase | Te.Important) ? t.style.setProperty(n, r, o & Te.Important ? "important" : "") : t.style[n] = r; + o & (Se.DashCase | Se.Important) ? t.style.setProperty(n, r, o & Se.Important ? "important" : "") : t.style[n] = r; } removeStyle(t, n, r) { - r & Te.DashCase ? t.style.removeProperty(n) : t.style[n] = ""; + r & Se.DashCase ? t.style.removeProperty(n) : t.style[n] = ""; } setProperty(t, n, r) { t != null && (t[n] = r); @@ -6235,7 +6247,7 @@ var Tn = class { t.nodeValue = n; } listen(t, n, r, o) { - if (typeof t == "string" && (t = Ht().getGlobalEventTarget(this.doc, t), !t)) + if (typeof t == "string" && (t = $t().getGlobalEventTarget(this.doc, t), !t)) throw new v(5102, false); let i = this.decoratePreventDefault(r); return this.tracingService?.wrapEventListener && (i = this.tracingService.wrapEventListener(t, n, i)), this.eventManager.addEventListener(t, n, i, o); @@ -6248,17 +6260,17 @@ var Tn = class { }; } }; -function Xu(e12) { +function rd(e12) { return e12.tagName === "TEMPLATE" && e12.content !== void 0; } -var so = class extends Tn { +var ho = class extends xn { hostEl; sharedStylesHost; shadowRoot; constructor(t, n, r, o, i, s, a, c) { super(t, o, i, a), this.hostEl = n, this.sharedStylesHost = c, this.shadowRoot = n.attachShadow({ mode: "open" }), this.sharedStylesHost && this.sharedStylesHost.addHost(this.shadowRoot); let l = r.styles; - l = td(r.id, l); + l = id(r.id, l); for (let d of l) { let f = document.createElement("style"); s && f.setAttribute("nonce", s), f.textContent = d, this.shadowRoot.appendChild(f); @@ -6266,7 +6278,7 @@ var so = class extends Tn { let u = r.getExternalStyles?.(); if (u) for (let d of u) { - let f = ha(d, o); + let f = va(d, o); s && f.setAttribute("nonce", s), this.shadowRoot.appendChild(f); } } @@ -6289,7 +6301,7 @@ var so = class extends Tn { this.sharedStylesHost && this.sharedStylesHost.removeHost(this.shadowRoot); } }; -var Mn = class extends Tn { +var Rn = class extends xn { sharedStylesHost; removeStylesOnCompDestroy; styles; @@ -6297,21 +6309,21 @@ var Mn = class extends Tn { constructor(t, n, r, o, i, s, a, c) { super(t, i, s, a), this.sharedStylesHost = n, this.removeStylesOnCompDestroy = o; let l = r.styles; - this.styles = c ? td(c, l) : l, this.styleUrls = r.getExternalStyles?.(c); + this.styles = c ? id(c, l) : l, this.styleUrls = r.getExternalStyles?.(c); } applyStyles() { this.sharedStylesHost.addStyles(this.styles, this.styleUrls); } destroy() { - this.removeStylesOnCompDestroy && it.size === 0 && this.sharedStylesHost.removeStyles(this.styles, this.styleUrls); + this.removeStylesOnCompDestroy && ct.size === 0 && this.sharedStylesHost.removeStyles(this.styles, this.styleUrls); } }; -var ao = class extends Mn { +var go = class extends Rn { contentAttr; hostAttr; constructor(t, n, r, o, i, s, a, c) { let l = o + "-" + r.id; - super(t, n, r, i, s, a, c, l), this.contentAttr = Cm(l), this.hostAttr = bm(l); + super(t, n, r, i, s, a, c, l), this.contentAttr = Tm(l), this.hostAttr = Mm(l); } applyToHost(t) { this.applyStyles(), this.setAttribute(t, this.hostAttr, ""); @@ -6321,10 +6333,10 @@ var ao = class extends Mn { return super.setAttribute(r, this.contentAttr, ""), r; } }; -var lo = class e9 extends wn { +var yo = class e9 extends _n { supportsDOMEvents = true; static makeCurrent() { - ua(new e9()); + ha(new e9()); } onAndCancel(t, n, r, o) { return t.addEventListener(n, r, o), () => { @@ -6356,27 +6368,27 @@ var lo = class e9 extends wn { return n === "window" ? window : n === "document" ? t : n === "body" ? t.body : null; } getBaseHref(t) { - let n = Tm(); - return n == null ? null : Mm(n); + let n = _m(); + return n == null ? null : Sm(n); } resetBaseElement() { - _n = null; + An = null; } getUserAgent() { return window.navigator.userAgent; } getCookie(t) { - return da(document.cookie, t); + return ga(document.cookie, t); } }; -var _n = null; -function Tm() { - return _n = _n || document.head.querySelector("base"), _n ? _n.getAttribute("href") : null; +var An = null; +function _m() { + return An = An || document.head.querySelector("base"), An ? An.getAttribute("href") : null; } -function Mm(e12) { +function Sm(e12) { return new URL(e12, document.baseURI).pathname; } -var _m = (() => { +var Nm = (() => { class e12 { build() { return new XMLHttpRequest(); @@ -6388,11 +6400,11 @@ var _m = (() => { } return e12; })(); -var nd = ["alt", "control", "meta", "shift"]; -var Sm = { "\b": "Backspace", " ": "Tab", "\x7F": "Delete", "\x1B": "Escape", Del: "Delete", Esc: "Escape", Left: "ArrowLeft", Right: "ArrowRight", Up: "ArrowUp", Down: "ArrowDown", Menu: "ContextMenu", Scroll: "ScrollLock", Win: "OS" }; -var Nm = { alt: (e12) => e12.altKey, control: (e12) => e12.ctrlKey, meta: (e12) => e12.metaKey, shift: (e12) => e12.shiftKey }; -var rd = (() => { - class e12 extends bn { +var sd = ["alt", "control", "meta", "shift"]; +var xm = { "\b": "Backspace", " ": "Tab", "\x7F": "Delete", "\x1B": "Escape", Del: "Delete", Esc: "Escape", Left: "ArrowLeft", Right: "ArrowRight", Up: "ArrowUp", Down: "ArrowDown", Menu: "ContextMenu", Scroll: "ScrollLock", Win: "OS" }; +var Rm = { alt: (e12) => e12.altKey, control: (e12) => e12.ctrlKey, meta: (e12) => e12.metaKey, shift: (e12) => e12.shiftKey }; +var ad = (() => { + class e12 extends Nn { constructor(n) { super(n); } @@ -6401,14 +6413,14 @@ var rd = (() => { } addEventListener(n, r, o, i) { let s = e12.parseEventName(r), a = e12.eventCallback(s.fullKey, o, this.manager.getZone()); - return this.manager.getZone().runOutsideAngular(() => Ht().onAndCancel(n, s.domEventName, a, i)); + return this.manager.getZone().runOutsideAngular(() => $t().onAndCancel(n, s.domEventName, a, i)); } static parseEventName(n) { let r = n.toLowerCase().split("."), o = r.shift(); if (r.length === 0 || !(o === "keydown" || o === "keyup")) return null; let i = e12._normalizeKey(r.pop()), s = "", a = r.indexOf("code"); - if (a > -1 && (r.splice(a, 1), s = "code."), nd.forEach((l) => { + if (a > -1 && (r.splice(a, 1), s = "code."), sd.forEach((l) => { let u = r.indexOf(l); u > -1 && (r.splice(u, 1), s += l + "."); }), s += i, r.length != 0 || i.length === 0) @@ -6417,10 +6429,10 @@ var rd = (() => { return c.domEventName = o, c.fullKey = s, c; } static matchEventFullKeyCode(n, r) { - let o = Sm[n.key] || n.key, i = ""; - return r.indexOf("code.") > -1 && (o = n.code, i = "code."), o == null || !o ? false : (o = o.toLowerCase(), o === " " ? o = "space" : o === "." && (o = "dot"), nd.forEach((s) => { + let o = xm[n.key] || n.key, i = ""; + return r.indexOf("code.") > -1 && (o = n.code, i = "code."), o == null || !o ? false : (o = o.toLowerCase(), o === " " ? o = "space" : o === "." && (o = "dot"), sd.forEach((s) => { if (s !== o) { - let a = Nm[s]; + let a = Rm[s]; a(n) && (i += s + "."); } }), i += o, i === r); @@ -6434,43 +6446,43 @@ var rd = (() => { return n === "esc" ? "escape" : n; } static \u0275fac = function(r) { - return new (r || e12)(w(U)); + return new (r || e12)(b(z)); }; static \u0275prov = _({ token: e12, factory: e12.\u0275fac }); } return e12; })(); -async function Ea(e12, t) { - return Zu(xm(e12, t)); +async function Ca(e12, t) { + return Ju(Am(e12, t)); } -function xm(e12, t) { - return { platformRef: t?.platformRef, appProviders: [...Pm, ...e12?.providers ?? []], platformProviders: km }; +function Am(e12, t) { + return { platformRef: t?.platformRef, appProviders: [...Fm, ...e12?.providers ?? []], platformProviders: Lm }; } -function Am() { - lo.makeCurrent(); +function Om() { + yo.makeCurrent(); } -function Rm() { - return new Ie(); +function km() { + return new De(); } -function Om() { - return Ns(document), document; +function Pm() { + return Ls(document), document; } -var km = [{ provide: gn, useValue: Yu }, { provide: Hr, useValue: Am, multi: true }, { provide: U, useFactory: Om }]; -var Pm = [{ provide: Yt, useValue: "root" }, { provide: Ie, useFactory: Rm }, { provide: co, useClass: io, multi: true }, { provide: co, useClass: rd, multi: true }, va, ma, ga, { provide: st, useExisting: va }, { provide: Cn, useClass: _m }, []]; -var Ia = (() => { +var Lm = [{ provide: vn, useValue: ed }, { provide: zr, useValue: Om, multi: true }, { provide: z, useFactory: Pm }]; +var Fm = [{ provide: Xt, useValue: "root" }, { provide: De, useFactory: km }, { provide: mo, useClass: po, multi: true }, { provide: mo, useClass: ad, multi: true }, ba, Ia, Ea, { provide: lt, useExisting: ba }, { provide: Sn, useClass: Nm }, []]; +var wa = (() => { class e12 { static \u0275fac = function(r) { return new (r || e12)(); }; static \u0275prov = _({ token: e12, factory: function(r) { let o = null; - return r ? o = new (r || e12)() : o = w(Lm), o; + return r ? o = new (r || e12)() : o = b(jm), o; }, providedIn: "root" }); } return e12; })(); -var Lm = (() => { - class e12 extends Ia { +var jm = (() => { + class e12 extends wa { _doc; constructor(n) { super(), this._doc = n; @@ -6479,55 +6491,55 @@ var Lm = (() => { if (r == null) return null; switch (n) { - case ge.NONE: + case ye.NONE: return r; - case ge.HTML: - return He(r, "HTML") ? Me(r) : Ur(this._doc, String(r)).toString(); - case ge.STYLE: - return He(r, "Style") ? Me(r) : r; - case ge.SCRIPT: - if (He(r, "Script")) - return Me(r); + case ye.HTML: + return ze(r, "HTML") ? Ne(r) : Zr(this._doc, String(r)).toString(); + case ye.STYLE: + return ze(r, "Style") ? Ne(r) : r; + case ye.SCRIPT: + if (ze(r, "Script")) + return Ne(r); throw new v(5200, false); - case ge.URL: - return He(r, "URL") ? Me(r) : $r(String(r)); - case ge.RESOURCE_URL: - if (He(r, "ResourceURL")) - return Me(r); + case ye.URL: + return ze(r, "URL") ? Ne(r) : qr(String(r)); + case ye.RESOURCE_URL: + if (ze(r, "ResourceURL")) + return Ne(r); throw new v(5201, false); default: throw new v(5202, false); } } bypassSecurityTrustHtml(n) { - return As(n); + return js(n); } bypassSecurityTrustStyle(n) { - return Rs(n); + return Hs(n); } bypassSecurityTrustScript(n) { - return Os(n); + return Vs(n); } bypassSecurityTrustUrl(n) { - return ks(n); + return Bs(n); } bypassSecurityTrustResourceUrl(n) { - return Ps(n); + return $s(n); } static \u0275fac = function(r) { - return new (r || e12)(w(U)); + return new (r || e12)(b(z)); }; static \u0275prov = _({ token: e12, factory: e12.\u0275fac, providedIn: "root" }); } return e12; })(); -var uo = class e10 { +var vo = class e10 { constructor(t) { this.model = t; if (t) { this.page.set(t.get("page") ?? 0), this.pageSize.set(t.get("page_size") ?? 10), this.maxColumns.set(t.get("max_columns") ?? 0), this.rowCount.set(t.get("row_count") ?? null), this.tableHtml.set(t.get("table_html") ?? ""), this.sortContext.set(t.get("sort_context") ?? []), this.orderableColumns.set(t.get("orderable_columns") ?? []); let n = t.get("error_message") ?? t.get("_error_message") ?? null; - this.errorMessage.set(n), t.on("change:page", () => { + this.errorMessage.set(n), this.startExecution.set(t.get("start_execution") ?? false), this.isDeferredMode.set(t.get("is_deferred_mode") ?? false), this.dryRunInfo.set(t.get("dry_run_info") ?? ""), t.on("change:page", () => { this.page.set(t.get("page")); }), t.on("change:page_size", () => { this.pageSize.set(t.get("page_size")); @@ -6541,6 +6553,12 @@ var uo = class e10 { this.sortContext.set(t.get("sort_context")); }), t.on("change:orderable_columns", () => { this.orderableColumns.set(t.get("orderable_columns")); + }), t.on("change:start_execution", () => { + this.startExecution.set(t.get("start_execution") ?? false); + }), t.on("change:is_deferred_mode", () => { + this.isDeferredMode.set(t.get("is_deferred_mode") ?? false); + }), t.on("change:dry_run_info", () => { + this.dryRunInfo.set(t.get("dry_run_info") ?? ""); }); let r = () => { let o = t.get("error_message") ?? t.get("_error_message") ?? null; @@ -6549,14 +6567,17 @@ var uo = class e10 { t.on("change:error_message", r), t.on("change:_error_message", r); } } - page = q(0); - pageSize = q(10); - maxColumns = q(0); - rowCount = q(null); - tableHtml = q(""); - sortContext = q([]); - orderableColumns = q([]); - errorMessage = q(null); + page = j(0); + pageSize = j(10); + maxColumns = j(0); + rowCount = j(null); + tableHtml = j(""); + sortContext = j([]); + orderableColumns = j([]); + errorMessage = j(null); + startExecution = j(false); + isDeferredMode = j(false); + dryRunInfo = j(""); setPage(t) { this.page.set(t), this.model && (this.model.set("page", t), this.model.save_changes()); } @@ -6569,33 +6590,87 @@ var uo = class e10 { setSortContext(t) { this.sortContext.set(t), this.model && (this.model.set("sort_context", t), this.model.save_changes()); } + setStartExecution(t) { + this.startExecution.set(t), this.model && (this.model.set("start_execution", t), this.model.save_changes()); + } static \u0275fac = function(n) { - return new (n || e10)(w("ANYWIDGET_MODEL")); + return new (n || e10)(b("ANYWIDGET_MODEL")); }; static \u0275prov = _({ token: e10, factory: e10.\u0275fac, providedIn: "root" }); }; -var Fm = ["tableContainer"]; -function jm(e12, t) { - if (e12 & 1 && (j(0, "div", 2), se(1), B()), e12 & 2) { - let n = na(); - V(), Be(n.errorMessage()); +var Hm = ["tableContainer"]; +var Vm = ["app-root", ""]; +function Bm(e12, t) { + if (e12 & 1 && (k(0, "div", 2), W(1), P()), e12 & 2) { + let n = ce(); + F(), Oe(n.errorMessage()); } } -function Hm(e12, t) { - if (e12 & 1 && (j(0, "option", 13), se(1), B()), e12 & 2) { - let n = t.$implicit; - me("value", n), V(), Be(n === 0 ? "All" : n); +function $m(e12, t) { + e12 & 1 && (ao(0, "span", 7), W(1, " Run Query ")); +} +function Um(e12, t) { + e12 & 1 && W(0, " Run Query "); +} +function zm(e12, t) { + if (e12 & 1) { + let n = co(); + k(0, "div", 3)(1, "div", 4)(2, "p", 5), W(3), P(), k(4, "button", 6), Ae("click", function() { + Te(n); + let o = ce(); + return Me(o.handleRunQuery()); + }), bn(5, $m, 2, 0)(6, Um, 1, 0), P()()(); + } + if (e12 & 2) { + let n = ce(); + F(3), Oe(n.dryRunInfo()), F(), ae("disabled", n.isLoading()), F(), Cn(n.isLoading() ? 5 : 6); } } -function Vm(e12, t) { - if (e12 & 1 && (j(0, "option", 13), se(1), B()), e12 & 2) { +function Wm(e12, t) { + if (e12 & 1 && (k(0, "option", 18), W(1), P()), e12 & 2) { let n = t.$implicit; - me("value", n), V(), Be(n); + ae("value", n), F(), Oe(n === 0 ? "All" : n); } } -var fo = class e11 { - state = E(uo); - sanitizer = E(Ia); +function Gm(e12, t) { + if (e12 & 1 && (k(0, "option", 18), W(1), P()), e12 & 2) { + let n = t.$implicit; + ae("value", n), F(), Oe(n); + } +} +function qm(e12, t) { + if (e12 & 1) { + let n = co(); + k(0, "div", 8, 0), Ae("click", function(o) { + Te(n); + let i = ce(); + return Me(i.handleTableClick(o)); + }), P(), k(2, "footer", 9)(3, "span", 10), W(4), P(), k(5, "div", 11)(6, "button", 12), Ae("click", function() { + Te(n); + let o = ce(); + return Me(o.handlePageChange(-1)); + }), W(7, "<"), P(), k(8, "span", 13), W(9), P(), k(10, "button", 12), Ae("click", function() { + Te(n); + let o = ce(); + return Me(o.handlePageChange(1)); + }), W(11, ">"), P()(), k(12, "div", 14)(13, "div", 15)(14, "label", 16), W(15, "Max columns:"), P(), k(16, "select", 17), Ae("change", function(o) { + Te(n); + let i = ce(); + return Me(i.handleMaxColumnsChange(o)); + }), io(17, Wm, 2, 2, "option", 18, oo), P()(), k(19, "div", 19)(20, "label", 20), W(21, "Page size:"), P(), k(22, "select", 21), Ae("change", function(o) { + Te(n); + let i = ce(); + return Me(i.handlePageSizeChange(o)); + }), io(23, Gm, 2, 2, "option", 18, oo), P()()()(); + } + if (e12 & 2) { + let n = ce(); + ae("innerHTML", n.sanitizedHtml(), Us), F(4), Oe(n.rowCountText()), F(2), ae("disabled", n.prevPageDisabled()), F(3), Oe(n.pageIndicatorText()), F(), ae("disabled", n.nextPageDisabled()), F(6), ae("value", n.maxColumns()), F(), so(n.maxColumnOptions), F(5), ae("value", n.pageSize()), F(), so(n.pageSizeOptions); + } +} +var Eo = class e11 { + state = E(vo); + sanitizer = E(wa); maxColumnOptions = [5, 10, 15, 20, 0]; pageSizeOptions = [10, 25, 50, 100]; errorMessage = this.state.errorMessage; @@ -6603,32 +6678,36 @@ var fo = class e11 { pageSize = this.state.pageSize; page = this.state.page; rowCount = this.state.rowCount; - sanitizedHtml = $e(() => this.sanitizer.bypassSecurityTrustHtml(this.state.tableHtml())); - totalPages = $e(() => { + isDeferredMode = this.state.isDeferredMode; + dryRunInfo = this.state.dryRunInfo; + isLoading = j(false); + sanitizedHtml = We(() => this.sanitizer.bypassSecurityTrustHtml(this.state.tableHtml())); + totalPages = We(() => { let t = this.rowCount(), n = this.pageSize(); return t !== null && n > 0 ? Math.ceil(t / n) : null; }); - pageIndicatorText = $e(() => { + pageIndicatorText = We(() => { let t = this.page(), n = this.rowCount(), r = this.totalPages(), o = (t + 1).toLocaleString(), i = (r ?? 1).toLocaleString(); return `Page ${o} of ${i}`; }); - rowCountText = $e(() => { + rowCountText = We(() => { let t = this.rowCount(); return t === null ? "Total rows unknown" : t === 0 ? "0 total rows" : `${t.toLocaleString()} total rows`; }); - prevPageDisabled = $e(() => this.page() === 0); - nextPageDisabled = $e(() => { + prevPageDisabled = We(() => this.page() === 0); + nextPageDisabled = We(() => { let t = this.page(), n = this.rowCount(), r = this.totalPages(); return n === null ? false : n === 0 ? true : r !== null && t >= r - 1; }); - isDarkMode = q(false); + isDarkMode = j(false); themeObserver = null; tableContainerRef; + isHeightInitialized = false; constructor() { - Pi(() => { + $i(() => { let t = this.state.tableHtml(), n = this.state.sortContext(), r = this.state.orderableColumns(); - setTimeout(() => { - this.applySortIndicators(); + this.isDeferredMode() && (this.isHeightInitialized = false), setTimeout(() => { + this.applySortIndicators(), this.lockInitialHeight(); }, 0); }); } @@ -6638,6 +6717,9 @@ var fo = class e11 { ngOnDestroy() { this.themeObserver?.disconnect(); } + handleRunQuery() { + this.isLoading.set(true), this.state.setStartExecution(true); + } handlePageChange(t) { let n = this.page() + t; this.state.setPage(n); @@ -6661,7 +6743,7 @@ var fo = class e11 { if (!i || !s.includes(i)) return; let a = [...this.state.sortContext()], c = a.findIndex((u) => u.column === i), l = [...a]; - t.shiftKey ? c !== -1 ? l[c].ascending ? l[c] = A(N({}, l[c]), { ascending: false }) : l.splice(c, 1) : l.push({ column: i, ascending: true }) : c !== -1 && l.length === 1 ? l[c].ascending ? l[c] = A(N({}, l[c]), { ascending: false }) : l = [] : l = [{ column: i, ascending: true }], this.state.setSortContext(l); + t.shiftKey ? c !== -1 ? l[c].ascending ? l[c] = R(x({}, l[c]), { ascending: false }) : l.splice(c, 1) : l.push({ column: i, ascending: true }) : c !== -1 && l.length === 1 ? l[c].ascending ? l[c] = R(x({}, l[c]), { ascending: false }) : l = [] : l = [{ column: i, ascending: true }], this.state.setSortContext(l); } getColumnName(t) { let n = t.cloneNode(true); @@ -6689,6 +6771,18 @@ var fo = class e11 { } }); } + lockInitialHeight() { + if (this.isHeightInitialized) + return; + let t = this.tableContainerRef?.nativeElement; + if (!t) + return; + let n = t.querySelector("table"); + if (n) { + let r = n.offsetHeight; + r > 0 && (t.style.height = `${r + 2}px`, this.isHeightInitialized = true); + } + } initThemeDetection() { this.updateTheme(); let t = new MutationObserver(() => this.updateTheme()); @@ -6701,34 +6795,24 @@ var fo = class e11 { static \u0275fac = function(n) { return new (n || e11)(); }; - static \u0275cmp = Qs({ type: e11, selectors: [["app-root"]], viewQuery: function(n, r) { - if (n & 1 && no(Fm, 7), n & 2) { + static \u0275cmp = na({ type: e11, selectors: [["", "app-root", ""]], viewQuery: function(n, r) { + if (n & 1 && lo(Hm, 5), n & 2) { let o; - ra(o = oa()) && (r.tableContainerRef = o.first); - } - }, decls: 27, vars: 10, consts: [["tableContainer", ""], [1, "bigframes-widget"], [1, "bigframes-error-message"], [1, "table-container", 3, "click", "innerHTML"], [1, "footer"], [1, "row-count"], [1, "pagination"], [3, "click", "disabled"], [1, "page-indicator"], [1, "settings"], [1, "max-columns"], ["for", "max-cols-select"], ["id", "max-cols-select", 3, "change", "value"], [3, "value"], [1, "page-size"], ["for", "page-size-select"], ["id", "page-size-select", 3, "change", "value"]], template: function(n, r) { - n & 1 && (j(0, "div", 1), Xs(1, jm, 2, 1, "div", 2), j(2, "div", 3, 0), Ve("click", function(i) { - return r.handleTableClick(i); - }), B(), j(4, "footer", 4)(5, "span", 5), se(6), B(), j(7, "div", 6)(8, "button", 7), Ve("click", function() { - return r.handlePageChange(-1); - }), se(9, "<"), B(), j(10, "span", 8), se(11), B(), j(12, "button", 7), Ve("click", function() { - return r.handlePageChange(1); - }), se(13, ">"), B()(), j(14, "div", 9)(15, "div", 10)(16, "label", 11), se(17, "Max columns:"), B(), j(18, "select", 12), Ve("change", function(i) { - return r.handleMaxColumnsChange(i); - }), eo(19, Hm, 2, 2, "option", 13, Xr), B()(), j(21, "div", 14)(22, "label", 15), se(23, "Page size:"), B(), j(24, "select", 16), Ve("change", function(i) { - return r.handlePageSizeChange(i); - }), eo(25, Vm, 2, 2, "option", 13, Xr), B()()()()()), n & 2 && (ro("bigframes-dark-mode", r.isDarkMode()), V(), ta(r.errorMessage() ? 1 : -1), V(), me("innerHTML", r.sanitizedHtml(), Ls), V(4), Be(r.rowCountText()), V(2), me("disabled", r.prevPageDisabled()), V(3), Be(r.pageIndicatorText()), V(), me("disabled", r.nextPageDisabled()), V(6), me("value", r.maxColumns()), V(), to(r.maxColumnOptions), V(5), me("value", r.pageSize()), V(), to(r.pageSizeOptions)); - }, styles: [".bigframes-widget.bigframes-widget[_ngcontent-%COMP%]{--bf-bg: white;--bf-border-color: #ccc;--bf-error-bg: #fbe;--bf-error-border: red;--bf-error-fg: black;--bf-fg: black;--bf-header-bg: #f5f5f5;--bf-null-fg: gray;--bf-row-even-bg: #f5f5f5;--bf-row-odd-bg: white;background-color:var(--bf-bg);box-sizing:border-box;color:var(--bf-fg);display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;margin:0;padding:0}.bigframes-widget[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{box-sizing:border-box}@media(prefers-color-scheme:dark){.bigframes-widget.bigframes-widget[_ngcontent-%COMP%]{--bf-bg: var(--vscode-editor-background, #202124);--bf-border-color: #444;--bf-error-bg: #511;--bf-error-border: #f88;--bf-error-fg: #fcc;--bf-fg: white;--bf-header-bg: var(--vscode-editor-background, black);--bf-null-fg: #aaa;--bf-row-even-bg: #202124;--bf-row-odd-bg: #383838}}.bigframes-widget.bigframes-dark-mode.bigframes-dark-mode[_ngcontent-%COMP%]{--bf-bg: var(--vscode-editor-background, #202124);--bf-border-color: #444;--bf-error-bg: #511;--bf-error-border: #f88;--bf-error-fg: #fcc;--bf-fg: white;--bf-header-bg: var(--vscode-editor-background, black);--bf-null-fg: #aaa;--bf-row-even-bg: #202124;--bf-row-odd-bg: #383838}.bigframes-widget[_ngcontent-%COMP%] .table-container[_ngcontent-%COMP%]{background-color:var(--bf-bg);margin:0;max-height:620px;overflow:auto;padding:0}.bigframes-widget[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{align-items:center;background-color:var(--bf-bg);color:var(--bf-fg);display:flex;font-size:.8rem;justify-content:space-between;padding:8px}.bigframes-widget[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1}.bigframes-widget[_ngcontent-%COMP%] .pagination[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:row;gap:4px;justify-content:center;padding:4px}.bigframes-widget[_ngcontent-%COMP%] .page-indicator[_ngcontent-%COMP%], .bigframes-widget[_ngcontent-%COMP%] .row-count[_ngcontent-%COMP%]{margin:0 8px}.bigframes-widget[_ngcontent-%COMP%] .settings[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:row;gap:16px;justify-content:end}.bigframes-widget[_ngcontent-%COMP%] .page-size[_ngcontent-%COMP%], .bigframes-widget[_ngcontent-%COMP%] .max-columns[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:row;gap:4px}.bigframes-widget[_ngcontent-%COMP%] .page-size[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .bigframes-widget[_ngcontent-%COMP%] .max-columns[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-right:8px}.bigframes-widget[_ngcontent-%COMP%] table.bigframes-widget-table, .bigframes-widget[_ngcontent-%COMP%] table.dataframe{background-color:var(--bf-bg);border:1px solid var(--bf-border-color);border-collapse:collapse;border-spacing:0;box-shadow:none;color:var(--bf-fg);margin:0;outline:none;text-align:left;width:auto}.bigframes-widget[_ngcontent-%COMP%] tr{border:none}.bigframes-widget[_ngcontent-%COMP%] th{background-color:var(--bf-header-bg);border:1px solid var(--bf-border-color);color:var(--bf-fg);padding:0;position:sticky;text-align:left;top:0;z-index:1}.bigframes-widget[_ngcontent-%COMP%] td{border:1px solid var(--bf-border-color);color:var(--bf-fg);padding:.5em}.bigframes-widget[_ngcontent-%COMP%] table tbody tr:nth-child(odd), .bigframes-widget[_ngcontent-%COMP%] table tbody tr:nth-child(odd) td{background-color:var(--bf-row-odd-bg)}.bigframes-widget[_ngcontent-%COMP%] table tbody tr:nth-child(2n), .bigframes-widget[_ngcontent-%COMP%] table tbody tr:nth-child(2n) td{background-color:var(--bf-row-even-bg)}.bigframes-widget[_ngcontent-%COMP%] .bf-header-content{box-sizing:border-box;height:100%;overflow:auto;padding:.5em;resize:horizontal;width:100%}.bigframes-widget[_ngcontent-%COMP%] th .sort-indicator{padding-left:4px;visibility:hidden}.bigframes-widget[_ngcontent-%COMP%] th:hover .sort-indicator{visibility:visible}.bigframes-widget[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:transparent;border:1px solid currentColor;border-radius:4px;color:inherit;cursor:pointer;display:inline-block;padding:2px 8px;text-align:center;text-decoration:none;-webkit-user-select:none;user-select:none;vertical-align:middle}.bigframes-widget[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{opacity:.65;pointer-events:none}.bigframes-widget[_ngcontent-%COMP%] .bigframes-error-message[_ngcontent-%COMP%]{background-color:var(--bf-error-bg);border:1px solid var(--bf-error-border);border-radius:4px;color:var(--bf-error-fg);font-size:14px;margin-bottom:8px;padding:8px}.bigframes-widget[_ngcontent-%COMP%] .cell-align-right{text-align:right}.bigframes-widget[_ngcontent-%COMP%] .cell-align-left{text-align:left}.bigframes-widget[_ngcontent-%COMP%] .null-value{color:var(--bf-null-fg)}.bigframes-widget[_ngcontent-%COMP%] .debug-info{border-top:1px solid var(--bf-border-color)}"] }); + aa(o = ca()) && (r.tableContainerRef = o.first); + } + }, attrs: Vm, decls: 4, vars: 4, consts: [["tableContainer", ""], [1, "bigframes-widget"], [1, "bigframes-error-message"], [1, "deferred-container"], [1, "deferred-card"], [1, "deferred-estimate"], [1, "run-query-button", 3, "click", "disabled"], [1, "spinner"], [1, "table-container", 3, "click", "innerHTML"], [1, "footer"], [1, "row-count"], [1, "pagination"], [3, "click", "disabled"], [1, "page-indicator"], [1, "settings"], [1, "max-columns"], ["for", "max-cols-select"], ["id", "max-cols-select", 3, "change", "value"], [3, "value"], [1, "page-size"], ["for", "page-size-select"], ["id", "page-size-select", 3, "change", "value"]], template: function(n, r) { + n & 1 && (k(0, "div", 1), bn(1, Bm, 2, 1, "div", 2), bn(2, zm, 7, 3, "div", 3)(3, qm, 25, 7), P()), n & 2 && (uo("bigframes-dark-mode", r.isDarkMode()), F(), Cn(r.errorMessage() ? 1 : -1), F(), Cn(r.isDeferredMode() ? 2 : 3)); + }, styles: [".bigframes-widget.bigframes-widget[_ngcontent-%COMP%]{--bf-bg: white;--bf-border-color: #ccc;--bf-error-bg: #fbe;--bf-error-border: red;--bf-error-fg: black;--bf-fg: black;--bf-header-bg: #f5f5f5;--bf-null-fg: gray;--bf-row-even-bg: #f5f5f5;--bf-row-odd-bg: white;background-color:var(--bf-bg);box-sizing:border-box;color:var(--bf-fg);display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;margin:0;padding:0;width:100%}.bigframes-widget[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{box-sizing:border-box}@media(prefers-color-scheme:dark){.bigframes-widget.bigframes-widget[_ngcontent-%COMP%]{--bf-bg: var(--vscode-editor-background, #202124);--bf-border-color: #444;--bf-error-bg: #511;--bf-error-border: #f88;--bf-error-fg: #fcc;--bf-fg: white;--bf-header-bg: var(--vscode-editor-background, black);--bf-null-fg: #aaa;--bf-row-even-bg: #202124;--bf-row-odd-bg: #383838}}.bigframes-widget.bigframes-dark-mode.bigframes-dark-mode[_ngcontent-%COMP%]{--bf-bg: var(--vscode-editor-background, #202124);--bf-border-color: #444;--bf-error-bg: #511;--bf-error-border: #f88;--bf-error-fg: #fcc;--bf-fg: white;--bf-header-bg: var(--vscode-editor-background, black);--bf-null-fg: #aaa;--bf-row-even-bg: #202124;--bf-row-odd-bg: #383838}.bigframes-widget[_ngcontent-%COMP%] .table-container[_ngcontent-%COMP%]{background-color:var(--bf-bg);margin:0;overflow:auto;padding:0}.bigframes-widget[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{align-items:center;background-color:var(--bf-bg);color:var(--bf-fg);display:flex;font-size:.8rem;justify-content:space-between;padding:8px}.bigframes-widget[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1}.bigframes-widget[_ngcontent-%COMP%] .pagination[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:row;gap:4px;justify-content:center;padding:4px}.bigframes-widget[_ngcontent-%COMP%] .page-indicator[_ngcontent-%COMP%], .bigframes-widget[_ngcontent-%COMP%] .row-count[_ngcontent-%COMP%]{margin:0 8px}.bigframes-widget[_ngcontent-%COMP%] .settings[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:row;gap:16px;justify-content:end}.bigframes-widget[_ngcontent-%COMP%] .page-size[_ngcontent-%COMP%], .bigframes-widget[_ngcontent-%COMP%] .max-columns[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:row;gap:4px}.bigframes-widget[_ngcontent-%COMP%] .page-size[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .bigframes-widget[_ngcontent-%COMP%] .max-columns[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-right:8px}.bigframes-widget[_ngcontent-%COMP%] table.bigframes-widget-table, .bigframes-widget[_ngcontent-%COMP%] table.dataframe{background-color:var(--bf-bg);border:1px solid var(--bf-border-color);border-collapse:collapse;border-spacing:0;box-shadow:none;color:var(--bf-fg);margin:0;outline:none;text-align:left;width:auto}.bigframes-widget[_ngcontent-%COMP%] tr{border:none}.bigframes-widget[_ngcontent-%COMP%] th{background-color:var(--bf-header-bg);border:1px solid var(--bf-border-color);color:var(--bf-fg);padding:0;position:sticky;text-align:left;top:0;z-index:1}.bigframes-widget[_ngcontent-%COMP%] td{border:1px solid var(--bf-border-color);color:var(--bf-fg);padding:.5em}.bigframes-widget[_ngcontent-%COMP%] table tbody tr:nth-child(odd), .bigframes-widget[_ngcontent-%COMP%] table tbody tr:nth-child(odd) td{background-color:var(--bf-row-odd-bg)}.bigframes-widget[_ngcontent-%COMP%] table tbody tr:nth-child(2n), .bigframes-widget[_ngcontent-%COMP%] table tbody tr:nth-child(2n) td{background-color:var(--bf-row-even-bg)}.bigframes-widget[_ngcontent-%COMP%] .bf-header-content{box-sizing:border-box;height:100%;overflow:auto;padding:.5em;resize:horizontal;width:100%}.bigframes-widget[_ngcontent-%COMP%] th .sort-indicator{padding-left:4px;visibility:hidden}.bigframes-widget[_ngcontent-%COMP%] th:hover .sort-indicator{visibility:visible}.bigframes-widget[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:transparent;border:1px solid currentColor;border-radius:4px;color:inherit;cursor:pointer;display:inline-block;padding:2px 8px;text-align:center;text-decoration:none;-webkit-user-select:none;user-select:none;vertical-align:middle}.bigframes-widget[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{opacity:.65;pointer-events:none}.bigframes-widget[_ngcontent-%COMP%] .bigframes-error-message[_ngcontent-%COMP%]{background-color:var(--bf-error-bg);border:1px solid var(--bf-error-border);border-radius:4px;color:var(--bf-error-fg);font-size:14px;margin-bottom:8px;padding:8px}.bigframes-widget[_ngcontent-%COMP%] .cell-align-right{text-align:right}.bigframes-widget[_ngcontent-%COMP%] .cell-align-left{text-align:left}.bigframes-widget[_ngcontent-%COMP%] .null-value{color:var(--bf-null-fg)}.bigframes-widget[_ngcontent-%COMP%] .debug-info{border-top:1px solid var(--bf-border-color)}.bigframes-widget[_ngcontent-%COMP%] .deferred-container[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;min-height:220px;padding:24px;width:100%}.bigframes-widget[_ngcontent-%COMP%] .deferred-card[_ngcontent-%COMP%]{background:linear-gradient(135deg,#fff9,#ffffff4d);border:1px solid rgba(255,255,255,.4);border-radius:16px;box-shadow:0 8px 32px #1f268712;display:flex;flex-direction:column;gap:16px;max-width:500px;padding:32px;text-align:center;transition:all .3s ease-in-out}.bigframes-widget.bigframes-dark-mode[_ngcontent-%COMP%] .deferred-card[_ngcontent-%COMP%]{background:linear-gradient(135deg,#20212499,#2021244d);border:1px solid rgba(255,255,255,.1);box-shadow:0 8px 32px #0000004d}@media(prefers-color-scheme:dark){.bigframes-widget[_ngcontent-%COMP%] .deferred-card[_ngcontent-%COMP%]{background:linear-gradient(135deg,#20212499,#2021244d);border:1px solid rgba(255,255,255,.1);box-shadow:0 8px 32px #0000004d}}.bigframes-widget[_ngcontent-%COMP%] .deferred-title[_ngcontent-%COMP%]{font-size:1.1rem;font-weight:600;margin:0}.bigframes-widget[_ngcontent-%COMP%] .deferred-estimate[_ngcontent-%COMP%]{color:var(--bf-null-fg);font-size:.9rem;margin:0}.bigframes-widget[_ngcontent-%COMP%] .run-query-button[_ngcontent-%COMP%]{align-items:center;background-color:var(--bf-fg);border:1px solid var(--bf-fg);border-radius:8px;color:var(--bf-bg);cursor:pointer;display:inline-flex;font-size:14px;font-weight:600;gap:8px;justify-content:center;padding:10px 20px;transition:transform .2s ease,opacity .2s ease}.bigframes-widget[_ngcontent-%COMP%] .run-query-button[_ngcontent-%COMP%]:hover{opacity:.9;transform:translateY(-1px)}.bigframes-widget[_ngcontent-%COMP%] .run-query-button[_ngcontent-%COMP%]:active{transform:translateY(0)}.bigframes-widget[_ngcontent-%COMP%] .run-query-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.6}.bigframes-widget[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin 1s linear infinite;border:2px solid currentColor;border-radius:50%;border-top-color:transparent;display:inline-block;height:12px;width:12px}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}"] }); }; -function Bm({ model: e12, el: t }) { - let n = document.createElement("app-root"); - t.appendChild(n); - let r = { providers: [Oi(), sa(), { provide: "ANYWIDGET_MODEL", useValue: e12 }] }; - Ea(r).then((o) => { - o.bootstrap(fo, n); +function Zm({ model: e12, el: t }) { + let n = document.createElement("div"); + n.setAttribute("app-root", ""), t.appendChild(n); + let r = { providers: [Vi(), ua(), { provide: "ANYWIDGET_MODEL", useValue: e12 }] }; + Ca(r).then((o) => { + o.bootstrap(Eo, n), n.removeAttribute("app-root"); }).catch((o) => console.error(o)); } -var tS = { render: Bm }; +var sS = { render: Zm }; export { - tS as default + sS as default }; diff --git a/packages/bigframes/bigframes/display/table_widget_angular/README.md b/packages/bigframes/bigframes/display/table_widget_angular/README.md index 80af11fd0954..db09b5b9f56e 100644 --- a/packages/bigframes/bigframes/display/table_widget_angular/README.md +++ b/packages/bigframes/bigframes/display/table_widget_angular/README.md @@ -1,65 +1,48 @@ # TableWidgetAngular -This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 21.2.9. +This project is the Angular-based interactive Table Widget frontend for BigQuery DataFrames (``bigframes``). It is integrated into the Python backend using ``anywidget``. -## Development server +This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 21.2.9. -To start a local development server, run: +## Getting Started -```bash -npm start -# or -npx ng serve -``` +Ensure you have [Node.js](https://nodejs.org/) installed. -Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files. +1. Install dependencies: + ```bash + npm install + ``` -## Code scaffolding +2. Start the local development server: + ```bash + npm run start + ``` + Navigate to `http://localhost:4200/`. The application will automatically reload when you modify the source files under `src/`. -Angular CLI includes powerful code scaffolding tools. To generate a new component, run: +## Development & Code Scaffolding +To generate a new component, directive, or service: ```bash -npx ng generate component component-name +ng generate component component-name ``` For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: - ```bash -npx ng generate --help +ng generate --help ``` -## Building - -To build the project run: - -```bash -npm run build -# or -npx ng build -``` - -This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed. - -## Running unit tests - -To execute unit tests with the [Vitest](https://vitest.dev/) test runner, use the following command: +## Running Tests +To execute unit tests: ```bash npm run test -# or -npx ng test ``` -## Running end-to-end tests - -For end-to-end (e2e) testing, run: +## Packaging for Python +Before testing the widget inside a Jupyter notebook or committing changes, compile the Angular app and bundle it so that the Python backend can load it: ```bash -npx ng e2e +npm run build:widget ``` -Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. - -## Additional Resources - -For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. +This command compiles the project in production mode and then triggers `bundle.js` (via `esbuild`) to bundle the browser artifacts into a single unified ES module file at `../table_widget_angular.js`. diff --git a/packages/bigframes/bigframes/display/table_widget_angular/src/app/app.ts b/packages/bigframes/bigframes/display/table_widget_angular/src/app/app.ts index 343be0074708..c841356f4f1c 100644 --- a/packages/bigframes/bigframes/display/table_widget_angular/src/app/app.ts +++ b/packages/bigframes/bigframes/display/table_widget_angular/src/app/app.ts @@ -19,7 +19,7 @@ import { DomSanitizer } from '@angular/platform-browser'; import { WidgetStateService } from './widget-state.service'; @Component({ - selector: 'app-root', + selector: '[app-root]', standalone: true, imports: [], template: ` @@ -28,41 +28,58 @@ import { WidgetStateService } from './widget-state.service';
{{ errorMessage() }}
} -
-
- - + } `, styles: [` @@ -89,6 +106,7 @@ import { WidgetStateService } from './widget-state.service'; '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', sans-serif; margin: 0; padding: 0; + width: 100%; } .bigframes-widget * { @@ -127,7 +145,6 @@ import { WidgetStateService } from './widget-state.service'; .bigframes-widget .table-container { background-color: var(--bf-bg); margin: 0; - max-height: 620px; overflow: auto; padding: 0; } @@ -292,6 +309,113 @@ import { WidgetStateService } from './widget-state.service'; .bigframes-widget ::ng-deep .debug-info { border-top: 1px solid var(--bf-border-color); } + + .bigframes-widget .deferred-container { + align-items: center; + display: flex; + justify-content: center; + min-height: 220px; + padding: 24px; + width: 100%; + } + + .bigframes-widget .deferred-card { + background: linear-gradient( + 135deg, + rgba(255, 255, 255, 0.6), + rgba(255, 255, 255, 0.3) + ); + border: 1px solid rgba(255, 255, 255, 0.4); + border-radius: 16px; + box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07); + display: flex; + flex-direction: column; + gap: 16px; + max-width: 500px; + padding: 32px; + text-align: center; + transition: all 0.3s ease-in-out; + } + + .bigframes-widget.bigframes-dark-mode .deferred-card { + background: linear-gradient( + 135deg, + rgba(32, 33, 36, 0.6), + rgba(32, 33, 36, 0.3) + ); + border: 1px solid rgba(255, 255, 255, 0.1); + box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); + } + + @media (prefers-color-scheme: dark) { + .bigframes-widget .deferred-card { + background: linear-gradient( + 135deg, + rgba(32, 33, 36, 0.6), + rgba(32, 33, 36, 0.3) + ); + border: 1px solid rgba(255, 255, 255, 0.1); + box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); + } + } + + .bigframes-widget .deferred-title { + font-size: 1.1rem; + font-weight: 600; + margin: 0; + } + + .bigframes-widget .deferred-estimate { + color: var(--bf-null-fg); + font-size: 0.9rem; + margin: 0; + } + + .bigframes-widget .run-query-button { + align-items: center; + background-color: var(--bf-fg); + border: 1px solid var(--bf-fg); + border-radius: 8px; + color: var(--bf-bg); + cursor: pointer; + display: inline-flex; + font-size: 14px; + font-weight: 600; + gap: 8px; + justify-content: center; + padding: 10px 20px; + transition: transform 0.20s ease, opacity 0.20s ease; + } + + .bigframes-widget .run-query-button:hover { + opacity: 0.90; + transform: translateY(-1px); + } + + .bigframes-widget .run-query-button:active { + transform: translateY(0); + } + + .bigframes-widget .run-query-button:disabled { + cursor: not-allowed; + opacity: 0.60; + } + + .bigframes-widget .spinner { + animation: spin 1s linear infinite; + border: 2px solid currentColor; + border-radius: 50%; + border-top-color: transparent; + display: inline-block; + height: 12px; + width: 12px; + } + + @keyframes spin { + to { + transform: rotate(360deg); + } + } `] }) export class App { @@ -307,6 +431,9 @@ export class App { protected readonly pageSize = this.state.pageSize; protected readonly page = this.state.page; protected readonly rowCount = this.state.rowCount; + protected readonly isDeferredMode = this.state.isDeferredMode; + protected readonly dryRunInfo = this.state.dryRunInfo; + protected readonly isLoading = signal(false); // Computed properties for formatting and display states protected readonly sanitizedHtml = computed(() => @@ -357,21 +484,31 @@ export class App { protected readonly isDarkMode = signal(false); private themeObserver: MutationObserver | null = null; - @ViewChild('tableContainer', { static: true }) + @ViewChild('tableContainer') tableContainerRef!: ElementRef; + private isHeightInitialized = false; + constructor() { effect(() => { // Setup dependencies for reactive effect const _html = this.state.tableHtml(); const _sort = this.state.sortContext(); const _orderable = this.state.orderableColumns(); + this.isHeightInitialized = false; // Schedule DOM post-processing once the innerHTML render completes setTimeout(() => { this.applySortIndicators(); + this.lockInitialHeight(); }, 0); }); + + effect(() => { + if (!this.state.startExecution()) { + this.isLoading.set(false); + } + }); } ngOnInit() { @@ -382,6 +519,11 @@ export class App { this.themeObserver?.disconnect(); } + protected handleRunQuery() { + this.isLoading.set(true); + this.state.setStartExecution(true); + } + protected handlePageChange(direction: number) { const nextPage = this.page() + direction; this.state.setPage(nextPage); @@ -504,6 +646,20 @@ export class App { }); } + private lockInitialHeight() { + if (this.isHeightInitialized) return; + const container = this.tableContainerRef?.nativeElement; + if (!container) return; + + const table = container.querySelector('table'); + if (table) { + const tableHeight = (table as HTMLElement).offsetHeight; + if (tableHeight > 0) { + container.style.height = `${tableHeight + 2}px`; + this.isHeightInitialized = true; + } + } + } private initThemeDetection() { this.updateTheme(); diff --git a/packages/bigframes/bigframes/display/table_widget_angular/src/app/widget-state.service.ts b/packages/bigframes/bigframes/display/table_widget_angular/src/app/widget-state.service.ts index 3ab51e1bdf54..f352b741bcf3 100644 --- a/packages/bigframes/bigframes/display/table_widget_angular/src/app/widget-state.service.ts +++ b/packages/bigframes/bigframes/display/table_widget_angular/src/app/widget-state.service.ts @@ -33,6 +33,9 @@ export class WidgetStateService { readonly sortContext = signal([]); readonly orderableColumns = signal([]); readonly errorMessage = signal(null); + readonly startExecution = signal(false); + readonly isDeferredMode = signal(false); + readonly dryRunInfo = signal(''); constructor(@Inject('ANYWIDGET_MODEL') private model: any) { if (model) { @@ -49,6 +52,9 @@ export class WidgetStateService { model.get('_error_message') ?? null; this.errorMessage.set(initialError); + this.startExecution.set(model.get('start_execution') ?? false); + this.isDeferredMode.set(model.get('is_deferred_mode') ?? false); + this.dryRunInfo.set(model.get('dry_run_info') ?? ''); // Register event listeners for anywidget updates model.on('change:page', () => { @@ -72,6 +78,15 @@ export class WidgetStateService { model.on('change:orderable_columns', () => { this.orderableColumns.set(model.get('orderable_columns')); }); + model.on('change:start_execution', () => { + this.startExecution.set(model.get('start_execution') ?? false); + }); + model.on('change:is_deferred_mode', () => { + this.isDeferredMode.set(model.get('is_deferred_mode') ?? false); + }); + model.on('change:dry_run_info', () => { + this.dryRunInfo.set(model.get('dry_run_info') ?? ''); + }); // Robust dual-listen pattern for error messages (with/without underscore) const handleErrorChange = () => { @@ -120,4 +135,12 @@ export class WidgetStateService { this.model.save_changes(); } } + + setStartExecution(startExecution: boolean) { + this.startExecution.set(startExecution); + if (this.model) { + this.model.set('start_execution', startExecution); + this.model.save_changes(); + } + } } diff --git a/packages/bigframes/bigframes/display/table_widget_angular/src/index.html b/packages/bigframes/bigframes/display/table_widget_angular/src/index.html index 1cc521412380..f5dda01b48aa 100644 --- a/packages/bigframes/bigframes/display/table_widget_angular/src/index.html +++ b/packages/bigframes/bigframes/display/table_widget_angular/src/index.html @@ -24,6 +24,6 @@ - +
diff --git a/packages/bigframes/bigframes/display/table_widget_angular/src/main.ts b/packages/bigframes/bigframes/display/table_widget_angular/src/main.ts index 32e4ea202bf2..3d515bb3d346 100644 --- a/packages/bigframes/bigframes/display/table_widget_angular/src/main.ts +++ b/packages/bigframes/bigframes/display/table_widget_angular/src/main.ts @@ -20,7 +20,8 @@ import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZonelessC function render({ model, el }: { model: any, el: HTMLElement }) { // Create a container for the Angular app - const appRoot = document.createElement('app-root'); + const appRoot = document.createElement('div'); + appRoot.setAttribute('app-root', ''); el.appendChild(appRoot); const appConfig: ApplicationConfig = { @@ -34,6 +35,7 @@ function render({ model, el }: { model: any, el: HTMLElement }) { createApplication(appConfig) .then((appRef) => { appRef.bootstrap(App, appRoot); + appRoot.removeAttribute('app-root'); }) .catch((err) => console.error(err)); } diff --git a/packages/bigframes/bigframes/session/deferred.py b/packages/bigframes/bigframes/session/deferred.py new file mode 100644 index 000000000000..75906e2a124b --- /dev/null +++ b/packages/bigframes/bigframes/session/deferred.py @@ -0,0 +1,76 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from __future__ import annotations + +from typing import Any, Callable, Optional, Union + +import pandas as pd + +import bigframes.dataframe +import bigframes.series + + +class DeferredBigQueryDataFrame: + """A proxy object that defers the execution of a BigQuery job until requested.""" + + def __init__( + self, + execution_func: Callable[ + [], + Union[ + bigframes.dataframe.DataFrame, + bigframes.series.Series, + pd.Series, + pd.DataFrame, + ], + ], + ): + self._execution_func = execution_func + self._result: Optional[ + Union[ + bigframes.dataframe.DataFrame, + bigframes.series.Series, + pd.Series, + pd.DataFrame, + ] + ] = None + + @property + def executed(self) -> bool: + return self._result is not None + + def execute( + self, + ) -> Union[ + bigframes.dataframe.DataFrame, + bigframes.series.Series, + pd.Series, + pd.DataFrame, + ]: + """Executes the deferred operation and returns the resulting DataFrame.""" + if self._result is None: + self._result = self._execution_func() + return self._result + + def _repr_mimebundle_(self, include=None, exclude=None): + from bigframes.display.anywidget import TableWidget + + return TableWidget(self)._repr_mimebundle_(include=include, exclude=exclude) # type: ignore + + def __getattr__(self, name: str) -> Any: + raise AttributeError( + f"'{type(self).__name__}' object has no attribute '{name}'. " + "This is a deferred object. Display it to run the query interactively." + ) diff --git a/packages/bigframes/mypy.ini b/packages/bigframes/mypy.ini index 7709eb200a35..e3f44c262ac6 100644 --- a/packages/bigframes/mypy.ini +++ b/packages/bigframes/mypy.ini @@ -44,3 +44,6 @@ ignore_missing_imports = True [mypy-anywidget] ignore_missing_imports = True + +[mypy-bigframes_vendored.*] +ignore_errors = True diff --git a/packages/bigframes/tests/js/table_widget_angular.test.js b/packages/bigframes/tests/js/table_widget_angular.test.js index 62af3cb26dc6..ad4724b5a6d2 100644 --- a/packages/bigframes/tests/js/table_widget_angular.test.js +++ b/packages/bigframes/tests/js/table_widget_angular.test.js @@ -32,7 +32,8 @@ describe('TableWidgetAngular', () => { }); it( - 'should bootstrap multiple widgets independently on their respective elements', + 'should bootstrap multiple widgets independently ' + + 'on their respective elements', async () => { const el1 = document.createElement('div'); document.body.appendChild(el1); @@ -78,13 +79,13 @@ describe('TableWidgetAngular', () => { // Wait for async angular bootstrap to complete await new Promise((resolve) => setTimeout(resolve, 200)); - const appRoot1 = el1.querySelector('app-root'); + const appRoot1 = el1.querySelector('.bigframes-widget'); expect(appRoot1).not.toBeNull(); expect(el1.textContent).toContain('Widget 1 Content'); expect(el1.textContent).toContain('100 total rows'); expect(el1.textContent).toContain('Page 1 of 10'); - const appRoot2 = el2.querySelector('app-root'); + const appRoot2 = el2.querySelector('.bigframes-widget'); expect(appRoot2).not.toBeNull(); expect(el2.textContent).toContain('Widget 2 Content'); expect(el2.textContent).toContain('200 total rows'); @@ -93,4 +94,84 @@ describe('TableWidgetAngular', () => { document.body.removeChild(el1); document.body.removeChild(el2); }); + + it( + 'should render deferred card and trigger execution on click', + async () => { + // Arrange + const el = document.createElement('div'); + document.body.appendChild(el); + + const state = { + is_deferred_mode: true, + dry_run_info: 'Estimated cost: $0.05', + start_execution: false, + table_html: '', + page_size: 10, + page: 0, + row_count: 0, + max_columns: 20, + }; + + const listeners = {}; + const model = { + get: jest.fn((prop) => state[prop]), + set: jest.fn((prop, val) => { + state[prop] = val; + }), + save_changes: jest.fn(), + on: jest.fn((event, callback) => { + listeners[event] = callback; + }), + }; + + // Act + render({ model, el }); + await new Promise((resolve) => setTimeout(resolve, 200)); + + // Assert (Initial state) + const estimate = el.querySelector('.deferred-estimate'); + expect(estimate).not.toBeNull(); + expect(estimate.textContent).toContain('Estimated cost: $0.05'); + + const runButton = el.querySelector('.run-query-button'); + expect(runButton).not.toBeNull(); + expect(runButton.textContent).toContain('Run Query'); + expect(el.querySelector('.table-container')).toBeNull(); + + // Act (Click Run Query) + runButton.click(); + + // Assert (Execution requested) + expect(model.set).toHaveBeenCalledWith('start_execution', true); + expect(model.save_changes).toHaveBeenCalled(); + expect(runButton.disabled).toBe(true); + expect(el.querySelector('.spinner')).not.toBeNull(); + + // Act (Simulate Python load completion) + state.is_deferred_mode = false; + state.table_html = '
Data Loaded
'; + state.row_count = 50; + + if (listeners['change:is_deferred_mode']) { + listeners['change:is_deferred_mode'](); + } + if (listeners['change:table_html']) { + listeners['change:table_html'](); + } + if (listeners['change:row_count']) { + listeners['change:row_count'](); + } + await new Promise((resolve) => setTimeout(resolve, 200)); + + // Assert (Transition to loaded state) + expect(el.querySelector('.deferred-container')).toBeNull(); + const tableContainer = el.querySelector('.table-container'); + expect(tableContainer).not.toBeNull(); + expect(el.textContent).toContain('Data Loaded'); + expect(el.textContent).toContain('50 total rows'); + + // Clean up + document.body.removeChild(el); + }); }); diff --git a/packages/bigframes/tests/unit/display/test_anywidget.py b/packages/bigframes/tests/unit/display/test_anywidget.py index acdbf182b133..2c0daad93451 100644 --- a/packages/bigframes/tests/unit/display/test_anywidget.py +++ b/packages/bigframes/tests/unit/display/test_anywidget.py @@ -206,7 +206,7 @@ def test_json_column_converted_to_string_for_display(): with mock.patch.object(DataFrame, "__getitem__", return_value=mock_series): with mock.patch.object(DataFrame, "assign") as mock_assign: - df._prepare_display_df() + df._process_display_df() mock_assign.assert_called_once() _, kwargs = mock_assign.call_args @@ -236,7 +236,7 @@ def test_struct_column_with_nested_json_converted_to_string_for_display(): with mock.patch.object(DataFrame, "__getitem__", return_value=mock_series): with mock.patch.object(DataFrame, "assign") as mock_assign: - df._prepare_display_df() + df._process_display_df() mock_assign.assert_called_once() _, kwargs = mock_assign.call_args @@ -247,3 +247,216 @@ def test_struct_column_with_nested_json_converted_to_string_for_display(): assert isinstance(call_arg, SqlScalarOp) assert call_arg._output_type == STRING_DTYPE assert call_arg.sql_template == "TO_JSON_STRING({0})" + + +@pytest.fixture +def mock_df_deferred(): + with mock.patch("bigframes.display.anywidget._ANYWIDGET_INSTALLED", True): + df = mock.Mock(spec=bigframes.dataframe.DataFrame) + df.shape = (100, 4) + df.columns = ["A", "B", "C", "D"] + df.dtypes = { + "A": bigframes.dtypes.INT_DTYPE, + "B": bigframes.dtypes.STRING_DTYPE, + "C": bigframes.dtypes.FLOAT_DTYPE, + "D": bigframes.dtypes.BOOL_DTYPE, + } + + df.to_pandas_batches.return_value = iter( + [pd.DataFrame({"A": [1], "B": ["a"], "C": [1.0], "D": [True]})] + ) + + df.sort_values.return_value = df + + df._block = mock.Mock() + df._block.has_index = False + df._process_display_df.return_value = (df, None) + + yield df + + +@pytest.fixture +def mock_deferred_df(): + from bigframes.session.deferred import DeferredBigQueryDataFrame + + with mock.patch("bigframes.display.anywidget._ANYWIDGET_INSTALLED", True): + # We create a mock that subclasses DeferredBigQueryDataFrame so isinstance passes + class MockDeferredBigQueryDataFrame(DeferredBigQueryDataFrame): + def __init__(self): + pass + + df = mock.MagicMock(spec=MockDeferredBigQueryDataFrame) + df.__class__ = DeferredBigQueryDataFrame # type: ignore[assignment] + yield df + + +def test_init_raises_if_anywidget_not_installed(): + with mock.patch("bigframes.display.anywidget._ANYWIDGET_INSTALLED", False): + with pytest.raises(ImportError): + from bigframes.display.anywidget import TableWidget + + TableWidget(mock.Mock()) + + +def test_init_initializes_attributes(mock_df_deferred): + from bigframes.display.anywidget import TableWidget + + with bigframes.option_context("display.render_mode", "anywidget"): + with mock.patch.object(TableWidget, "_initial_load"): + widget = TableWidget(mock_df_deferred) + + assert widget._dataframe is mock_df_deferred + assert widget.page == 0 + assert widget.page_size > 0 + assert widget.orderable_columns == [ + "A", + "B", + "C", + "D", + ] + + +def test_init_calls_initial_load(mock_df_deferred): + from bigframes.display.anywidget import TableWidget + + with mock.patch.object(TableWidget, "_initial_load") as mock_load: + TableWidget(mock_df_deferred) + mock_load.assert_called_once() + + +def test_validate_page_clamping(mock_df_deferred): + from bigframes.display.anywidget import TableWidget + + with mock.patch.object(TableWidget, "_initial_load"): + widget = TableWidget(mock_df_deferred) + widget.row_count = 100 + widget.page_size = 10 + + widget.page = 5 + assert widget.page == 5 + + with pytest.raises(ValueError): + widget.page = -1 + + widget.page = 100 + assert widget.page == 9 + + +def test_validate_page_size(mock_df_deferred): + from bigframes.display.anywidget import TableWidget + + with bigframes.option_context("display.render_mode", "anywidget"): + with mock.patch.object(TableWidget, "_initial_load"): + widget = TableWidget(mock_df_deferred) + + widget.page_size = 50 + assert widget.page_size == 50 + + original_size = widget.page_size + widget.page_size = -5 + assert widget.page_size == original_size + + widget.page_size = 10000 + assert widget.page_size == 1000 + + +def test_page_size_change_resets_page_and_sort(mock_df_deferred): + from bigframes.display.anywidget import TableWidget + + with mock.patch.object(TableWidget, "_initial_load"): + widget = TableWidget(mock_df_deferred) + widget._initial_load_complete = True + widget.page = 5 + widget.sort_context = [{"column": "A", "ascending": True}] + + widget.page_size = 20 + + assert widget.page == 0 + assert widget.sort_context == [] + + +def test_page_size_change_resets_batches(mock_df_deferred): + from bigframes.display.anywidget import TableWidget + + with mock.patch.object(TableWidget, "_initial_load"): + widget = TableWidget(mock_df_deferred) + widget._initial_load_complete = True + + widget.page_size = 50 + + mock_df_deferred.to_pandas_batches.assert_called() + + +def test_sort_change_resets_batches(mock_df_deferred): + from bigframes.display.anywidget import TableWidget + + with bigframes.option_context("display.render_mode", "anywidget"): + with mock.patch.object(TableWidget, "_initial_load"): + widget = TableWidget(mock_df_deferred) + widget._initial_load_complete = True + + mock_df_deferred.to_pandas_batches.reset_mock() + + widget.sort_context = [{"column": "B", "ascending": False}] + + assert mock_df_deferred.to_pandas_batches.call_count >= 1 + + +def test_deferred_mode_initialization(mock_deferred_df): + from bigframes.display.anywidget import TableWidget + + with mock.patch.object(TableWidget, "_initial_load") as mock_load: + widget = TableWidget(mock_deferred_df) + + assert widget.is_deferred_mode is True + mock_load.assert_not_called() + + +def test_deferred_mode_execution(mock_deferred_df, mock_df_deferred): + from bigframes.display.anywidget import TableWidget + + mock_deferred_df.execute.return_value = mock_df_deferred + + with mock.patch.object(TableWidget, "_initial_load") as mock_load: + widget = TableWidget(mock_deferred_df) + + assert widget.is_deferred_mode is True + mock_load.assert_not_called() + + import bigframes + + with bigframes.option_context( + "display.render_mode", bigframes.options.display.render_mode + ): + widget.start_execution = True + + thread = getattr(widget, "_execution_thread", None) + if thread is not None: + thread.join(timeout=5) + + mock_deferred_df.execute.assert_called_once() + mock_load.assert_called_once() + assert widget.is_deferred_mode is False + + +def test_deferred_mode_execution_error(mock_deferred_df): + from bigframes.display.anywidget import TableWidget + + mock_deferred_df.execute.side_effect = RuntimeError("Query Failed") + + with mock.patch.object(TableWidget, "_initial_load"): + widget = TableWidget(mock_deferred_df) + + import bigframes + + with bigframes.option_context( + "display.render_mode", bigframes.options.display.render_mode + ): + widget.start_execution = True + + thread = getattr(widget, "_execution_thread", None) + if thread is not None: + thread.join(timeout=5) + + assert widget.is_deferred_mode is True + assert widget._error_message == "Query Failed" diff --git a/packages/bigframes/tests/unit/display/test_html.py b/packages/bigframes/tests/unit/display/test_html.py index 9386dad8b1ff..a49d64b7690e 100644 --- a/packages/bigframes/tests/unit/display/test_html.py +++ b/packages/bigframes/tests/unit/display/test_html.py @@ -192,7 +192,7 @@ def test_repr_mimebundle_head(): mock_df = Mock() mock_df.columns = ["col1"] - mock_df._prepare_display_df.return_value = mock_df + mock_df._process_display_df.return_value = (mock_df, []) # Mock the call to retrieve_repr_request_results pandas_df = pd.DataFrame({"col1": [1, 2, 3]}) @@ -215,7 +215,7 @@ def test_repr_mimebundle_head(): bundle = bf_html.repr_mimebundle_head(mock_df) assert bundle == {"text/html": "", "text/plain": "text"} - mock_df._prepare_display_df.assert_called_once() + mock_df._process_display_df.assert_called_once() mock_df._block.retrieve_repr_request_results.assert_called_once() mock_create_html.assert_called_once() mock_create_text.assert_called_once() diff --git a/packages/bigframes/tests/unit/display/test_render_mode.py b/packages/bigframes/tests/unit/display/test_render_mode.py index 0cc1e1d80afe..338d6a216345 100644 --- a/packages/bigframes/tests/unit/display/test_render_mode.py +++ b/packages/bigframes/tests/unit/display/test_render_mode.py @@ -51,14 +51,25 @@ def test_repr_mimebundle_selection_logic(): ) mock_deferred.return_value = {"text/plain": "deferred"} - # Test deferred repr_mode + # Test deferred repr_mode when anywidget is available + with bpd.option_context("display.repr_mode", "deferred"): + bundle = bf_html.repr_mimebundle(mock_obj) + assert "application/vnd.jupyter.widget-view+json" in bundle[0] + mock_anywidget.assert_called_once() + mock_deferred.assert_not_called() + + mock_anywidget.reset_mock() + + # Test fallback to static deferred repr when anywidget fails + mock_anywidget.side_effect = Exception("Anywidget failed") with bpd.option_context("display.repr_mode", "deferred"): bundle = bf_html.repr_mimebundle(mock_obj) assert bundle == {"text/plain": "deferred"} mock_deferred.assert_called_once() - mock_head.assert_not_called() + mock_anywidget.side_effect = None mock_deferred.reset_mock() + mock_anywidget.reset_mock() # Test plaintext render_mode with bpd.option_context("display.render_mode", "plaintext"):