├── light.png ├── hacs.json ├── .github └── workflows │ └── hacs-validate.yml ├── LICENSE ├── train-stations ├── README.md └── dist └── silent-bus.js /light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/silentbil/silent-bus/HEAD/light.png -------------------------------------------------------------------------------- /hacs.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Silent bus card", 3 | "filename": "silent-bus.js", 4 | "render_readme": true, 5 | "homeassistant": "0.95.4", 6 | "country": "IL" 7 | } 8 | -------------------------------------------------------------------------------- /.github/workflows/hacs-validate.yml: -------------------------------------------------------------------------------- 1 | name: HACS Action 2 | 3 | on: 4 | workflow_dispatch: 5 | push: 6 | pull_request: 7 | schedule: 8 | - cron: "0 0 * * *" 9 | 10 | jobs: 11 | hacs: 12 | name: HACS Action 13 | runs-on: "ubuntu-latest" 14 | steps: 15 | - name: HACS Action 16 | uses: "hacs/action@main" 17 | with: 18 | category: "plugin" 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 silentbil 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /train-stations: -------------------------------------------------------------------------------- 1 | trainStations = { 2 | 17900: "ת. רכבת שדרות/בגין", 3 | 17902: "דרך בית וגן/החרוב", 4 | 17903: "בית העלמין/שדרות משה סנה", 5 | 17905: "האורגים/התקשורת", 6 | 17906: "האורגים/הבנאים", 7 | 17908: "הבנאים/האורגים", 8 | 17910: "האורגים/התקשורת", 9 | 17106: "שדרות", 10 | 17104: "תל אביב ההגנה", 11 | 17102: "רשל''צ משה דיין", 12 | 17100: "הוד השרון", 13 | 17098: "ראשונים", 14 | 17096: "יבנה מערב", 15 | 17094: "ראש העין צפון", 16 | 17092: "כפר סבא", 17 | 17090: "נתב''ג", 18 | 17088: "להבים רהט", 19 | 17086: "דימונה", 20 | 17084: "באר שבע מרכז", 21 | 17082: "באר שבע צפון", 22 | 17080: "קרית גת", 23 | 17078: "ירושלים מלחה", 24 | 17076: "ירושלים גן חיות", 25 | 17074: "בית שמש", 26 | 17072: "אשקלון", 27 | 17070: "אשדוד עד הלום", 28 | 17068: "יבנה מזרח", 29 | 17066: "באר יעקב", 30 | 17064: "רחובות", 31 | 17062: "לוד גני אביב", 32 | 17060: "רמלה", 33 | 17058: "לוד", 34 | 17056: "כפר חבד", 35 | 17054: "בת ים קוממיות", 36 | 17052: "בת ים אלי כהן - יוספטל", 37 | 17050: "חולון וולפסון", 38 | 17048: "צומת חולון", 39 | 17046: "השלום", 40 | 17044: "סגולה", 41 | 17042: "קרית אריה", 42 | 17040: "בני ברק", 43 | 17038: "תל אביב מרכז", 44 | 17036: "תא אוניברסיטה", 45 | 17034: "הרצליה", 46 | 17032: "בית יהושע", 47 | 17030: "נתניה", 48 | 17028: "חדרה מערב", 49 | 17026: "קיסריה פרדס חנה", 50 | 17024: "בנימינה", 51 | 17022: "עתלית", 52 | 17020: "חוף הכרמל", 53 | 17018: "בת גלים", 54 | 17016: "חיפה מרכז", 55 | 17014: "נהריה", 56 | 17012: "עכו", 57 | 17010: "חוצות מפרץ", 58 | 17008: "מרכזית המפרץ/קו החוף", 59 | 17004: "קרית חיים", 60 | 17002: "מודיעין מרכז", 61 | 17000: "פאתי מודיעין", 62 | 17108: "נתיבות", 63 | 17109: "אופקים", 64 | 17113: "כפר ברוך", 65 | 17112: "עפולה", 66 | 17111: "בית שאן", 67 | 17110: "כפר יהושע", 68 | 17114: "נתניה קריית ספיר", 69 | 17306: "מרכז הכרמל", 70 | 17305: "בני ציון", 71 | 17304: "מסדה", 72 | 17302: "הנביאים", 73 | 17301: "הדר העירייה", 74 | 17300: "עיר תחתית", 75 | 17116: "אחיהוד", 76 | 17115: "כרמיאל", 77 | 17117: "קרית מוצקין", 78 | 17118: "ירושלים/יצחק נבון", 79 | 17122: "רעננה דרום", 80 | 17121: "רעננה מערב", 81 | 17120: "מזכרת בתיה", 82 | 17119: "קרית מלאכי", 83 | 17123: "מרכזית המפרץ", 84 | 17312: "אוניברסיטת חיפה", 85 | 17310: "טכניון מרכז", 86 | 17307: "מרכזית המפרץ", 87 | 17313: "מרכזית המפרץ", 88 | 17314: "טכניון מרכז", 89 | 17315: "אוניברסיטת חיפה", 90 | } 91 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Bus card for home assistant - Israel 2 | show real time bus and train information 3 | 4 | If you like my hard work and want to help with server cost, consider buying me a coffee :)
5 | Buy Me A Coffee 6 | 7 | 8 | ## Demo 9 | 10 | ![silentbuss1](https://user-images.githubusercontent.com/10948399/235174037-5a644b38-eece-475d-b9bf-6b88140e622f.png) 11 | 12 | ![img.png](light.png) 13 | 14 | ![image](https://github.com/silentbil/silent-bus/assets/10948399/8a05ab7c-a5ef-4b18-a735-27b5a07d5032) 15 | 16 | 17 | 18 | ## HACS Installation (Preferred option with updates) 19 | 20 | Open your Home Assistant instance and open a repository inside the Home Assistant Community Store. 21 | 22 | ## HACS manual Installation 23 | - In the HACS Frontend, click the 3 dots in the upper right 24 | - Click 'Add Custom Repository' 25 | - Fill in the repo url https://github.com/silentbil/silent-bus and choose 'Lovelace' category. 26 | - Install the custom card (should now appear in the Frontend) 27 | - HACS should automatically add the following to your resources: 28 | ``` 29 | url: /hacsfiles/silent-bus/silent-bus.js 30 | type: Javascript Module 31 | ``` 32 | 33 | ## Adding the Card to the Dashboard 34 | Add a Manual card to the dashboard and enter the YAML to configure it as desired. 35 | 36 | ### Options - bus 37 | | Name | Description | Default | Required | Values | 38 | | --- | --- | --- | --- | --- | 39 | | `station` | station number | None | Yes | number | 40 | | `busLines` | bus lines | None | Yes | Array of numbers | 41 | 42 | ### Options - train 43 | | Name | Description | Default | Required | Values | 44 | | --- | --- | --- | --- | --- | 45 | | `fromStation` | station number | None | Yes | number | 46 | | `toStation` | station number | None | Yes | number | 47 | | `isTrain` | train card | false | Yes | boolean | 48 | 49 | ## Find your station number - train 50 | ** Important**: Train stations have changed
51 | * Go to: [https://xn--4dbclabp0e.co.il/searchStations](https://github.com/silentbil/silent-bus/blob/main/train-stations) and search for your station 52 | Usually it will start with 17***, For example: "Tel Aviv Hashalom" = 17046 53 | 54 | ## Find your station number - bus 55 | 56 | * Go to: https://xn--4dbclabp0e.co.il/searchStations and search for your station 57 | * Copy your station number 58 | ![image](https://user-images.githubusercontent.com/10948399/235173621-064ea677-024d-4741-ac97-7d94335edee9.png) 59 | 60 | 61 | ## Example - train 62 | 63 | ``` 64 | type: custom:silent-bus 65 | isTrain: true 66 | fromStation: 3600 67 | toStation: 3700 68 | ``` 69 | 70 | ## Examples - bus 71 | 72 | ``` 73 | type: custom:silent-bus 74 | station: 24068 75 | busLines: 76 | - 249 77 | - 40 78 | - 605 79 | ``` 80 | 81 | ## Examples - light train (kala) 82 | 83 | ``` 84 | type: custom:silent-bus 85 | station: 20719 86 | busLines: 87 | - 1 88 | - 3 89 | ``` 90 | -------------------------------------------------------------------------------- /dist/silent-bus.js: -------------------------------------------------------------------------------- 1 | var MyComponent=function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,n={};var r=function(){if(t)return n;t=1;var e=Object.defineProperty,r=Object.defineProperties,i=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,a=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,u=(e,t)=>{for(var n in t||={})s.call(t,n)&&a(e,n,t[n]);if(o)for(var n of o(t))l.call(t,n)&&a(e,n,t[n]);return e},c=(e,t)=>r(e,i(t)),d=null,f=!1,h=1,p=Symbol("SIGNAL");function m(e){let t=d;return d=e,t}var g={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function y(e){if(f)throw new Error("");if(null===d)return;d.consumerOnSignalRead(e);let t=d.nextProducerIndex++;if(D(d),t0}function D(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function N(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function O(e){return void 0!==e.producerNode}var M=function(){throw new Error};function V(){M()}function A(e,t){b()||V(),e.equal(e.value,t)||(e.value=t,function(e){e.version++,h++,w(e)}(e))}var F=c(u({},g),{equal:function(e,t){return Object.is(e,t)},value:void 0});function R(e){return"function"==typeof e}function j(e){let t=e((e=>{Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var L=j((e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map(((e,t)=>`${t+1}) ${e.toString()}`)).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t}));function P(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var H=class e{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(let e of t)e.remove(this);else t.remove(this);let{initialTeardown:n}=this;if(R(n))try{n()}catch(t){e=t instanceof L?t.errors:[t]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let t of r)try{B(t)}catch(t){e=e??[],t instanceof L?e=[...e,...t.errors]:e.push(t)}}if(e)throw new L(e)}}add(t){var n;if(t&&t!==this)if(this.closed)B(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(e){let{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){let{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){let{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&P(t,e)}remove(t){let{_finalizers:n}=this;n&&P(n,t),t instanceof e&&t._removeParent(this)}};H.EMPTY=(()=>{let e=new H;return e.closed=!0,e})();var z=H.EMPTY;function Z(e){return e instanceof H||e&&"closed"in e&&R(e.remove)&&R(e.add)&&R(e.unsubscribe)}function B(e){R(e)?e():e.unsubscribe()}var $={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},U={setTimeout(e,t,...n){let{delegate:r}=U;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=U;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function G(e){U.setTimeout((()=>{let{onUnhandledError:t}=$;if(!t)throw e;t(e)}))}function W(){}var q=Y("C",void 0,void 0);function Y(e,t,n){return{kind:e,value:t,error:n}}function Q(e){e()}var J=class extends H{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Z(e)&&e.add(this)):this.destination=ie}static create(e,t,n){return new te(e,t,n)}next(e){this.isStopped?re(Y("N",e,void 0),this):this._next(e)}error(e){this.isStopped?re(Y("E",void 0,e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?re(q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},K=Function.prototype.bind;function X(e,t){return K.call(e,t)}var ee=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(e){ne(e)}}error(e){let{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(e){ne(e)}else ne(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(e){ne(e)}}},te=class extends J{constructor(e,t,n){let r;if(super(),R(e)||!e)r={next:e??void 0,error:t??void 0,complete:n??void 0};else{let t;this&&$.useDeprecatedNextContext?(t=Object.create(e),t.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&X(e.next,t),error:e.error&&X(e.error,t),complete:e.complete&&X(e.complete,t)}):r=e}this.destination=new ee(r)}};function ne(e){G(e)}function re(e,t){let{onStoppedNotification:n}=$;n&&U.setTimeout((()=>n(e,t)))}var ie={closed:!0,next:W,error:function(e){throw e},complete:W},oe="function"==typeof Symbol&&Symbol.observable||"@@observable";function se(e){return e}var le=(()=>{class e{constructor(e){e&&(this._subscribe=e)}lift(t){let n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){let r=function(e){return e&&e instanceof J||function(e){return e&&R(e.next)&&R(e.error)&&R(e.complete)}(e)&&Z(e)}(e)?e:new te(e,t,n);return Q((()=>{let{operator:e,source:t}=this;r.add(e?e.call(r,t):t?this._subscribe(r):this._trySubscribe(r))})),r}_trySubscribe(e){try{return this._subscribe(e)}catch(t){e.error(t)}}forEach(e,t){return new(t=ae(t))(((t,n)=>{let r=new te({next:t=>{try{e(t)}catch(e){n(e),r.unsubscribe()}},error:n,complete:t});this.subscribe(r)}))}_subscribe(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)}[oe](){return this}pipe(...e){return function(e){return 0===e.length?se:1===e.length?e[0]:function(t){return e.reduce(((e,t)=>t(e)),t)}}(e)(this)}toPromise(e){return new(e=ae(e))(((e,t)=>{let n;this.subscribe((e=>n=e),(e=>t(e)),(()=>e(n)))}))}}return e.create=t=>new e(t),e})();function ae(e){var t;return null!==(t=e??$.Promise)&&void 0!==t?t:Promise}function ue(e){return t=>{if(function(e){return R(e?.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}function ce(e,t,n,r,i){return new de(e,t,n,r,i)}var de=class extends J{constructor(e,t,n,r,i,o){super(e),this.onFinalize=i,this.shouldUnsubscribe=o,this._next=t?function(n){try{t(n)}catch(t){e.error(t)}}:super._next,this._error=r?function(t){try{r(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(t){e.error(t)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}},fe=j((e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"})),he=(()=>{class e extends le{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let t=new pe(this,this);return t.operator=e,t}_throwIfClosed(){if(this.closed)throw new fe}next(e){Q((()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let t of this.currentObservers)t.next(e)}}))}error(e){Q((()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:t}=this;for(;t.length;)t.shift().error(e)}}))}complete(){Q((()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}}))}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:t,isStopped:n,observers:r}=this;return t||n?z:(this.currentObservers=null,r.push(e),new H((()=>{this.currentObservers=null,P(r,e)})))}_checkFinalizedStatuses(e){let{hasError:t,thrownError:n,isStopped:r}=this;t?e.error(n):r&&e.complete()}asObservable(){let e=new le;return e.source=this,e}}return e.create=(e,t)=>new pe(e,t),e})(),pe=class extends he{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)}error(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:z}},me=class extends he{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){let{hasError:e,thrownError:t,_value:n}=this;if(e)throw t;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}},ge={now:()=>(ge.delegate||Date).now(),delegate:void 0},ye=class extends he{constructor(e=1/0,t=1/0,n=ge){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){let{isStopped:t,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:i,_windowTime:o}=this;t||(n.push(e),!r&&n.push(i.now()+o)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,i=r.slice();for(let t=0;te.complete()));function xe(e){return e&&R(e.schedule)}function ke(e){return e[e.length-1]}function Ie(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?t(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(o,s)}l((r=r.apply(e,[])).next())}))}function Ee(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Te(e){return this instanceof Te?(this.v=e,this):new Te(e)}function De(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",(function(e){return function(t){return Promise.resolve(t).then(e,u)}})),r[Symbol.asyncIterator]=function(){return this},r;function s(e,t){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||l(e,t)}))},t&&(r[e]=t(r[e])))}function l(e,t){try{!function(e){e.value instanceof Te?Promise.resolve(e.value.v).then(a,u):c(o[0][2],e)}(i[e](t))}catch(e){c(o[0][3],e)}}function a(e){l("next",e)}function u(e){l("throw",e)}function c(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Ne(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Ee(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}var Oe=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Me(e){return R(e?.then)}function Ve(e){return R(e[oe])}function Ae(e){return Symbol.asyncIterator&&R(e?.[Symbol.asyncIterator])}function Fe(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}var Re="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function je(e){return R(e?.[Re])}function Le(e){return De(this,arguments,(function*(){let t=e.getReader();try{for(;;){let{value:e,done:n}=yield Te(t.read());if(n)return yield Te(void 0);yield yield Te(e)}}finally{t.releaseLock()}}))}function Pe(e){return R(e?.getReader)}function He(e){if(e instanceof le)return e;if(null!=e){if(Ve(e))return function(e){return new le((t=>{let n=e[oe]();if(R(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}(e);if(Oe(e))return function(e){return new le((t=>{for(let n=0;n{e.then((e=>{t.closed||(t.next(e),t.complete())}),(e=>t.error(e))).then(null,G)}))}(e);if(Ae(e))return ze(e);if(je(e))return function(e){return new le((t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()}))}(e);if(Pe(e))return function(e){return ze(Le(e))}(e)}throw Fe(e)}function ze(e){return new le((t=>{(function(e,t){var n,r,i,o;return Ie(this,0,void 0,(function*(){try{for(n=Ne(e);!(r=yield n.next()).done;){let e=r.value;if(t.next(e),t.closed)return}}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()}))})(e,t).catch((e=>t.error(e)))}))}function Ze(e,t,n,r=0,i=!1){let o=t.schedule((function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()}),r);if(e.add(o),!i)return o}function Be(e,t=0){return ue(((n,r)=>{n.subscribe(ce(r,(n=>Ze(r,e,(()=>r.next(n)),t)),(()=>Ze(r,e,(()=>r.complete()),t)),(n=>Ze(r,e,(()=>r.error(n)),t))))}))}function $e(e,t=0){return ue(((n,r)=>{r.add(e.schedule((()=>n.subscribe(r)),t))}))}function Ue(e,t){if(!e)throw new Error("Iterable cannot be null");return new le((n=>{Ze(n,t,(()=>{let r=e[Symbol.asyncIterator]();Ze(n,t,(()=>{r.next().then((e=>{e.done?n.complete():n.next(e.value)}))}),0,!0)}))}))}function Ge(e,t){if(null!=e){if(Ve(e))return function(e,t){return He(e).pipe($e(t),Be(t))}(e,t);if(Oe(e))return function(e,t){return new le((n=>{let r=0;return t.schedule((function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())}))}))}(e,t);if(Me(e))return function(e,t){return He(e).pipe($e(t),Be(t))}(e,t);if(Ae(e))return Ue(e,t);if(je(e))return function(e,t){return new le((n=>{let r;return Ze(n,t,(()=>{r=e[Re](),Ze(n,t,(()=>{let e,t;try{({value:e,done:t}=r.next())}catch(e){return void n.error(e)}t?n.complete():n.next(e)}),0,!0)})),()=>R(r?.return)&&r.return()}))}(e,t);if(Pe(e))return function(e,t){return Ue(Le(e),t)}(e,t)}throw Fe(e)}function We(e,t){return ue(((n,r)=>{let i=0;n.subscribe(ce(r,(n=>{r.next(e.call(t,n,i++))})))}))}function qe(e,t,n=1/0){return R(t)?qe(((n,r)=>We(((e,i)=>t(n,e,r,i)))(He(e(n,r)))),n):("number"==typeof t&&(n=t),ue(((t,r)=>function(e,t,n,r,i,o,s){let l=[],a=0,u=0,c=!1,d=()=>{c&&!l.length&&!a&&t.complete()},f=e=>{a++;let i=!1;He(n(e,u++)).subscribe(ce(t,(e=>{t.next(e)}),(()=>{i=!0}),void 0,(()=>{if(i)try{for(a--;l.length&&af(e))):f(e)}d()}catch(e){t.error(e)}})))};return e.subscribe(ce(t,(e=>a{c=!0,d()}))),()=>{}}(t,r,e,n))))}function Ye(e=0,t,n=Se){let r=-1;return null!=t&&(xe(t)?n=t:r=t),new le((t=>{let i=function(e){return e instanceof Date&&!isNaN(e)}(e)?+e-n.now():e;i<0&&(i=0);let o=0;return n.schedule((function(){t.closed||(t.next(o++),0<=r?this.schedule(void 0,r):t.complete())}),i)}))}function Qe(e=0,t=_e){return e<0&&(e=0),Ye(e,e,t)}function Je(...e){let t=function(e){return xe(ke(e))?e.pop():void 0}(e),n=function(e,t){return"number"==typeof ke(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?He(r[0]):function(e=1/0){return qe(se,e)}(n)(function(e,t){return t?Ge(e,t):He(e)}(r,t)):Ce}function Ke(e,t){return ue(((n,r)=>{let i=0;n.subscribe(ce(r,(n=>e.call(t,n,i++)&&r.next(n))))}))}var Xe=class extends Error{code;constructor(e,t){super(function(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(e,t)),this.code=e}},et=Symbol("InputSignalNode#UNSET"),tt=c(u({},F),{transformFn:void 0,applyValueToInputSignal(e,t){A(e,t)}});function nt(e,t){let n=Object.create(tt);function r(){if(y(n),n.value===et)throw new Xe(-950,!1);return n.value}return n.value=e,n.transformFn=t?.transform,r[p]=n,r}function rt(e){return{toString:e}.toString()}var it="__parameters__";function ot(e,t,n){return rt((()=>{let t=function(...e){};function n(...e){if(this instanceof n)return t.apply(this,e),this;let r=new n(...e);return i.annotation=r,i;function i(e,t,n){let i=e.hasOwnProperty(it)?e[it]:Object.defineProperty(e,it,{value:[]})[it];for(;i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(r),e}}return n.prototype.ngMetadataName=e,n.annotationCls=n,n}))}var st=globalThis;function lt(e){for(let t in e)if(e[t]===lt)return t;throw Error("Could not find renamed property on target object.")}function at(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(at).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(null==t)return""+t;let n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ut(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var ct=lt({__forward_ref__:lt});function dt(e){return e.__forward_ref__=dt,e.toString=function(){return at(this())},e}function ft(e){return function(e){return"function"==typeof e&&e.hasOwnProperty(ct)&&e.__forward_ref__===dt}(e)?e():e}function ht(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function pt(e){return mt(e,yt)||mt(e,wt)}function mt(e,t){return e.hasOwnProperty(t)?e[t]:null}function gt(e){return e&&(e.hasOwnProperty(vt)||e.hasOwnProperty(bt))?e[vt]:null}var yt=lt({"ɵprov":lt}),vt=lt({"ɵinj":lt}),wt=lt({ngInjectableDef:lt}),bt=lt({ngInjectorDef:lt}),_t=class{_desc;ngMetadataName="InjectionToken";"ɵprov";constructor(e,t){this._desc=e,this.ɵprov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ɵprov=ht({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function St(e){return e&&!!e.ɵproviders}var Ct=lt({"ɵcmp":lt}),xt=lt({"ɵdir":lt}),kt=lt({"ɵpipe":lt}),It=lt({"ɵfac":lt}),Et=lt({__NG_ELEMENT_ID__:lt}),Tt=lt({__NG_ENV_ID__:lt});function Dt(e){return"string"==typeof e?e:null==e?"":String(e)}function Nt(e,t){throw new Xe(-201,!1)}var Ot,Mt,Vt=((Mt=Vt||{})[Mt.Default=0]="Default",Mt[Mt.Host=1]="Host",Mt[Mt.Self=2]="Self",Mt[Mt.SkipSelf=4]="SkipSelf",Mt[Mt.Optional=8]="Optional",Mt);function At(){return Ot}function Ft(e){let t=Ot;return Ot=e,t}function Rt(e,t,n){let r=pt(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Vt.Optional?null:void 0!==t?t:void Nt()}var jt,Lt={},Pt="__NG_DI_FLAG__",Ht="ngTempTokenPath",zt=/\n/gm,Zt="__source";function Bt(e){let t=jt;return jt=e,t}function $t(e,t=Vt.Default){if(void 0===jt)throw new Xe(-203,!1);return null===jt?Rt(e,void 0,t):jt.get(e,t&Vt.Optional?null:void 0,t)}function Ut(e,t=Vt.Default){return(At()||$t)(ft(e),t)}function Gt(e,t=Vt.Default){return Ut(e,Wt(t))}function Wt(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function qt(e){let t=[];for(let n=0;n ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):at(r)))}i=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(zt,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[Ht]=null,e}var Kt=Yt(ot("Optional"),8),Xt=Yt(ot("SkipSelf"),4);function en(e,t){return e.hasOwnProperty(It)?e[It]:null}function tn(e,t){e.forEach((e=>Array.isArray(e)?tn(e,t):t(e)))}function nn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function rn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var on={},sn=[],ln=new _t(""),an=new _t("",-1),un=new _t(""),cn=class{get(e,t=Lt){if(t===Lt){let t=new Error(`NullInjectorError: No provider for ${at(e)}!`);throw t.name="NullInjectorError",t}return t}};function dn(e){return e[Ct]||null}function fn(e){return e[xt]||null}function hn(e){return e[kt]||null}function pn(...e){return{"ɵproviders":mn(!0,e),"ɵfromNgModule":!0}}function mn(e,...t){let n,r=[],i=new Set,o=e=>{r.push(e)};return tn(t,(e=>{let t=e;yn(t,o,[],i)&&(n||=[],n.push(t))})),void 0!==n&&gn(n,o),r}function gn(e,t){for(let n=0;n{t(e,r)}))}}function yn(e,t,n,r){if(!(e=ft(e)))return!1;let i=null,o=gt(e),s=!o&&dn(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{let t=e.ngModule;if(o=gt(t),!o)return!1;i=t}let l=r.has(i);if(s){if(l)return!1;if(r.add(i),s.dependencies){let e="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(let i of e)yn(i,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!l){let e;r.add(i);try{tn(o.imports,(i=>{yn(i,t,n,r)&&(e||=[],e.push(i))}))}finally{}void 0!==e&&gn(e,t)}if(!l){let e=en(i)||(()=>new i);t({provide:i,useFactory:e,deps:sn},i),t({provide:un,useValue:i,multi:!0},i),t({provide:ln,useValue:()=>Ut(i),multi:!0},i)}let s=o.providers;if(null!=s&&!l){let n=e;vn(s,(e=>{t(e,n)}))}}}return i!==e&&void 0!==e.providers}function vn(e,t){for(let n of e)St(n)&&(n=n.ɵproviders),Array.isArray(n)?vn(n,t):t(n)}var wn=lt({provide:String,useValue:lt});function bn(e){return null!==e&&"object"==typeof e&&wn in e}function _n(e){return"function"==typeof e}var Sn,Cn=new _t(""),xn={},kn={};function In(){return void 0===Sn&&(Sn=new cn),Sn}var En=class{},Tn=class extends En{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,Mn(e,(e=>this.processProvider(e))),this.records.set(an,On(void 0,this)),r.has("environment")&&this.records.set(En,On(void 0,this));let i=this.records.get(Cn);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(un,sn,Vt.Self))}destroy(){Nn(this),this._destroyed=!0;let e=m(null);try{for(let e of this._ngOnDestroyHooks)e.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let t of e)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),m(e)}}onDestroy(e){return Nn(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){Nn(this);let t=Bt(this),n=Ft(void 0);try{return e()}finally{Bt(t),Ft(n)}}get(e,t=Lt,n=Vt.Default){if(Nn(this),e.hasOwnProperty(Tt))return e[Tt](this);n=Wt(n);let r=Bt(this),i=Ft(void 0);try{if(!(n&Vt.SkipSelf)){let t=this.records.get(e);if(void 0===t){let n=function(e){return"function"==typeof e||"object"==typeof e&&e instanceof _t}(e)&&pt(e);t=n&&this.injectableDefInScope(n)?On(Dn(e),xn):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}let r=n&Vt.Self?In():this.parent;return t=n&Vt.Optional&&t===Lt?null:t,r.get(e,t)}catch(t){if("NullInjectorError"===t.name){if((t[Ht]=t[Ht]||[]).unshift(at(e)),r)throw t;return Jt(t,e,"R3InjectorError",this.source)}throw t}finally{Ft(i),Bt(r)}}resolveInjectorInitializers(){let e=m(null),t=Bt(this),n=Ft(void 0);try{let e=this.get(ln,sn,Vt.Self);for(let t of e)t()}finally{Bt(t),Ft(n),m(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(at(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){let t=_n(e=ft(e))?e:ft(e&&e.provide),n=function(e){if(bn(e))return On(void 0,e.useValue);{let t=function(e){let t;if(_n(e)){let t=ft(e);return en(t)||Dn(t)}if(bn(e))t=()=>ft(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))t=()=>e.useFactory(...qt(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))t=()=>Ut(ft(e.useExisting));else{let n=ft(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return en(n)||Dn(n);t=()=>new n(...qt(e.deps))}return t}(e);return On(t,xn)}}(e);if(!_n(e)&&!0===e.multi){let n=this.records.get(t);n||(n=On(void 0,xn,!0),n.factory=()=>qt(n.multi),this.records.set(t,n)),t=e,n.multi.push(e)}this.records.set(t,n)}hydrate(e,t){let n=m(null);try{return t.value===xn&&(t.value=kn,t.value=t.factory()),"object"==typeof t.value&&t.value&&function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{m(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=ft(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);-1!==t&&this._onDestroyHooks.splice(t,1)}};function Dn(e){let t=pt(e),n=null!==t?t.factory:en(e);if(null!==n)return n;if(e instanceof _t)throw new Xe(204,!1);if(e instanceof Function)return function(e){if(e.length>0)throw new Xe(204,!1);let t=function(e){return e&&(e[yt]||e[wt])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new Xe(204,!1)}function Nn(e){if(e.destroyed)throw new Xe(205,!1)}function On(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Mn(e,t){for(let n of e)Array.isArray(n)?Mn(n,t):n&&St(n)?Mn(n.ɵproviders,t):t(n)}function Vn(e,t){e instanceof Tn&&Nn(e);let n=Bt(e),r=Ft(void 0);try{return t()}finally{Bt(n),Ft(r)}}function An(){return void 0!==At()||null!=jt}var Fn=10,Rn=11,jn=14,Ln=15,Pn=16,Hn=17,zn=18,Zn=21,Bn=23,$n=24,Un=25,Gn=10,Wn=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Wn||{});function qn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Yn(e){return Array.isArray(e)&&!0===e[1]}function Qn(e){return!!(4&e.flags)}function Jn(e){return e.componentOffset>-1}function Kn(e){return!(1&~e.flags)}function Xn(e){return!!e.template}function er(e){return!!(512&e[2])}var tr=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function nr(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}var rr=(()=>{let e=()=>ir;return e.ngInherit=!0,e})();function ir(e){return e.type.prototype.ngOnChanges&&(e.setInput=sr),or}function or(){let e=ar(this),t=e?.current;if(t){let n=e.previous;if(n===on)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function sr(e,t,n,r,i){let o=this.declaredInputs[r],s=ar(e)||function(e,t){return e[lr]=t}(e,{previous:on,current:null}),l=s.current||(s.current={}),a=s.previous,u=a[o];l[o]=new tr(u&&u.currentValue,n,a===on),nr(e,t,i,n)}var lr="__ngSimpleChanges__";function ar(e){return e[lr]||null}function ur(e){for(;Array.isArray(e);)e=e[0];return e}function cr(e,t){return ur(t[e.index])}function dr(e,t){return e.data[t]}function fr(e,t){return e[t]}function hr(e,t){let n=t[e];return qn(n)?n:n[0]}function pr(e){return!(128&~e[2])}function mr(e,t){return null==t?null:e[t]}function gr(e){e[Hn]=0}function yr(e){1024&e[2]||(e[2]|=1024,pr(e)&&br(e))}function vr(e){return!!(9216&e[2]||e[$n]?.dirty)}function wr(e){e[Fn].changeDetectionScheduler?.notify(9),64&e[2]&&(e[2]|=1024),vr(e)&&br(e)}function br(e){e[Fn].changeDetectionScheduler?.notify(0);let t=Sr(e);for(;null!==t&&!(8192&t[2])&&(t[2]|=8192,pr(t));)t=Sr(t)}function _r(e,t){if(!(256&~e[2]))throw new Xe(911,!1);null===e[Zn]&&(e[Zn]=[]),e[Zn].push(t)}function Sr(e){let t=e[3];return Yn(t)?t[3]:t}var Cr={lFrame:Br(null),bindingsEnabled:!0,skipHydrationRootTNode:null},xr=!1;function kr(){return Cr.lFrame.lView}function Ir(){return Cr.lFrame.tView}function Er(){let e=Tr();for(;null!==e&&64===e.type;)e=e.parent;return e}function Tr(){return Cr.lFrame.currentTNode}function Dr(e,t){let n=Cr.lFrame;n.currentTNode=e,n.isParent=t}function Nr(){return Cr.lFrame.isParent}function Or(){Cr.lFrame.isParent=!1}function Mr(){return xr}function Vr(e){let t=xr;return xr=e,t}function Ar(){let e=Cr.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Fr(){return Cr.lFrame.bindingIndex++}function Rr(e,t){let n=Cr.lFrame;n.bindingIndex=n.bindingRootIndex=e,jr(t)}function jr(e){Cr.lFrame.currentDirectiveIndex=e}function Lr(e){Cr.lFrame.currentQueryIndex=e}function Pr(e){let t=e[1];return 2===t.type?t.declTNode:1===t.type?e[5]:null}function Hr(e,t,n){if(n&Vt.SkipSelf){let r=t,i=e;for(;(r=r.parent,null===r&&!(n&Vt.Host))&&(r=Pr(i),!(null===r||(i=i[jn],10&r.type))););if(null===r)return!1;t=r,e=i}let r=Cr.lFrame=Zr();return r.currentTNode=t,r.lView=e,!0}function zr(e){let t=Zr(),n=e[1];Cr.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Zr(){let e=Cr.lFrame,t=null===e?null:e.child;return null===t?Br(e):t}function Br(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function $r(){let e=Cr.lFrame;return Cr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Ur=$r;function Gr(){let e=$r();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Wr(e){return(Cr.lFrame.contextLView=function(e,t){for(;e>0;)t=t[jn],e--;return t}(e,Cr.lFrame.contextLView))[8]}function qr(){return Cr.lFrame.selectedIndex}function Yr(e){Cr.lFrame.selectedIndex=e}function Qr(){Cr.lFrame.currentNamespace="svg"}function Jr(){Cr.lFrame.currentNamespace=null}var Kr=!0;function Xr(){return Kr}function ei(e){Kr=e}function ti(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[a]<0&&(e[Hn]+=65536),(l>14>16&&(3&e[2])===t&&(e[2]+=16384,si(s,o)):si(s,o)}var ai=-1,ui=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n){this.factory=e,this.canSeeViewProviders=t,this.injectImpl=n}};function ci(e,t,n){let r=0;for(;rt){s=o-1;break}}}for(;o>16}(e),r=t;for(;n>0;)r=r[jn],n--;return r}var bi=!0;function _i(e){let t=bi;return bi=e,t}var Si=0,Ci={};function xi(e,t){let n=Ii(e,t);if(-1!==n)return n;let r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,ki(r.data,e),ki(t,null),ki(r.blueprint,null));let i=Ei(e,t),o=e.injectorIndex;if(yi(i)){let e=vi(i),n=wi(i,t),r=n[1].data;for(let i=0;i<8;i++)t[o+i]=n[e+i]|r[e+i]}return t[o+8]=i,o}function ki(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ii(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ei(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=Pi(i),null===r)return ai;if(n++,i=i[jn],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return ai}function Ti(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Et)&&(r=n[Et]),null==r&&(r=n[Et]=Si++);let i=255&r,o=1<>5)]|=o}(e,t,n)}function Di(e,t,n){if(n&Vt.Optional||void 0!==e)return e;Nt()}function Ni(e,t,n,r){if(n&Vt.Optional&&void 0===r&&(r=null),!(n&(Vt.Self|Vt.Host))){let i=e[9],o=Ft(void 0);try{return i?i.get(t,r,n&Vt.Optional):Rt(t,r,n&Vt.Optional)}finally{Ft(o)}}return Di(r,0,n)}function Oi(e,t,n,r=Vt.Default,i){if(null!==e){if(2048&t[2]&&!(r&Vt.Self)){let i=function(e,t,n,r,i){let o=e,s=t;for(;null!==o&&null!==s&&2048&s[2]&&!(512&s[2]);){let e=Mi(o,s,n,r|Vt.Self,Ci);if(e!==Ci)return e;let t=o.parent;if(!t){let e=s[20];if(e){let t=e.get(n,Ci,r);if(t!==Ci)return t}t=Pi(s),s=s[jn]}o=t}return i}(e,t,n,r,Ci);if(i!==Ci)return i}let i=Mi(e,t,n,r,Ci);if(i!==Ci)return i}return Ni(t,n,r,i)}function Mi(e,t,n,r,i){let o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Et)?e[Et]:void 0;return"number"==typeof t?t>=0?255&t:Li:t}(n);if("function"==typeof o){if(!Hr(t,e,r))return r&Vt.Host?Di(i,0,r):Ni(t,n,r,i);try{let e;if(e=o(r),null!=e||r&Vt.Optional)return e;Nt()}finally{Ur()}}else if("number"==typeof o){let i=null,s=Ii(e,t),l=ai,a=r&Vt.Host?t[Ln][5]:null;for((-1===s||r&Vt.SkipSelf)&&(l=-1===s?Ei(e,t):t[s+8],l!==ai&&Ri(r,!1)?(i=t[1],s=vi(l),t=wi(l,t)):s=-1);-1!==s;){let e=t[1];if(Fi(o,s,e.data)){let e=Vi(s,t,n,i,r,a);if(e!==Ci)return e}l=t[s+8],l!==ai&&Ri(r,t[1].data[s+8]===a)&&Fi(o,s,t)?(i=e,s=vi(l),t=wi(l,t)):s=-1}}return i}function Vi(e,t,n,r,i,o){let s=t[1],l=s.data[e+8],a=function(e,t,n,r,i){let o=e.providerIndexes,s=t.data,l=1048575&o,a=e.directiveStart,u=e.directiveEnd,c=o>>20,d=i?l+c:u;for(let e=r?l:l+c;e=a&&t.type===n)return e}if(i){let e=s[a];if(e&&Xn(e)&&e.type===n)return a}return null}(l,s,n,null==r?Jn(l)&&bi:r!=s&&!!(3&l.type),i&Vt.Host&&o===l);return null!==a?Ai(t,s,a,l):Ci}function Ai(e,t,n,r){let i=e[n],o=t.data;if(function(e){return e instanceof ui}(i)){let s=i;s.resolving&&function(e){throw new Xe(-200,e)}(function(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Dt(e)}(o[n]));let l=_i(s.canSeeViewProviders);s.resolving=!0;let a=s.injectImpl?Ft(s.injectImpl):null;Hr(e,r,Vt.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let r=ir(t);(n.preOrderHooks??=[]).push(e,r),(n.preOrderCheckHooks??=[]).push(e,r)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}(n,o[n],t)}finally{null!==a&&Ft(a),_i(l),s.resolving=!1,Ur()}}return i}function Fi(e,t,n){let r=1<>5)]&r)}function Ri(e,t){return!(e&Vt.Self||e&Vt.Host&&t)}var ji=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return Oi(this._tNode,this._lView,e,Wt(n),t)}};function Li(){return new ji(Er(),kr())}function Pi(e){let t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[5]:null}function Hi(e,t=null,n=null,r){let i=function(e,t=null,n=null,r,i=new Set){let o=[n||sn,pn(e)];return r=r||("object"==typeof e?void 0:at(e)),new Tn(o,t||In(),r||null,i)}(e,t,n,r);return i.resolveInjectorInitializers(),i}var zi=class e{static THROW_IF_NOT_FOUND=Lt;static NULL=new cn;static create(e,t){if(Array.isArray(e))return Hi({name:""},t,e,"");{let t=e.name??"";return Hi({name:t},e.parent,e.providers,t)}}static"ɵprov"=ht({token:e,providedIn:"any",factory:()=>Ut(an)});static __NG_ELEMENT_ID__=-1};new _t("").__NG_ELEMENT_ID__=e=>{let t=Er();if(null===t)throw new Xe(204,!1);if(2&t.type)return t.value;if(e&Vt.Optional)return null;throw new Xe(204,!1)};var Zi=!1,Bi=class{static __NG_ELEMENT_ID__=Ui;static __NG_ENV_ID__=e=>e},$i=class extends Bi{_lView;constructor(e){super(),this._lView=e}onDestroy(e){return _r(this._lView,e),()=>function(e,t){if(null===e[Zn])return;let n=e[Zn].indexOf(t);-1!==n&&e[Zn].splice(n,1)}(this._lView,e)}};function Ui(){return new $i(kr())}var Gi=class{},Wi=new _t("",{providedIn:"root",factory:()=>!1}),qi=new _t(""),Yi=new _t(""),Qi=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new me(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static"ɵprov"=ht({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ji=class extends he{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,An()&&(this.destroyRef=Gt(Bi,{optional:!0})??void 0,this.pendingTasks=Gt(Qi,{optional:!0})??void 0)}emit(e){let t=m(null);try{super.next(e)}finally{m(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),o=n;if(e&&"object"==typeof e){let t=e;r=t.next?.bind(t),i=t.error?.bind(t),o=t.complete?.bind(t)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let s=super.subscribe({next:r,error:i,complete:o});return e instanceof H&&e.add(s),s}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout((()=>{e(t),void 0!==n&&this.pendingTasks?.remove(n)}))}}};function Ki(...e){}function Xi(e){let t,n;function r(){e=Ki;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout((()=>{e(),r()})),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame((()=>{e(),r()}))),()=>r()}function eo(e){return queueMicrotask((()=>e())),()=>{e=Ki}}var to="isAngularZone",no=to+"_ID",ro=0,io=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ji(!1);onMicrotaskEmpty=new Ji(!1);onStable=new Ji(!1);onError=new Ji(!1);constructor(e){let{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:i=Zi}=e;if(typeof Zone>"u")throw new Xe(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.callbackScheduled=!1,o.scheduleInRootZone=i,function(e){let t=()=>{!function(e){if(e.isCheckStableRunning||e.callbackScheduled)return;function t(){Xi((()=>{e.callbackScheduled=!1,lo(e),e.isCheckStableRunning=!0,so(e),e.isCheckStableRunning=!1}))}e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run((()=>{t()})):e._outer.run((()=>{t()})),lo(e)}(e)},n=ro++;e._inner=e._inner.fork({name:"angular",properties:{[to]:!0,[no]:n,[no+n]:!0},onInvokeTask:(n,r,i,o,s,l)=>{if(function(e){return fo(e,"__ignore_ng_zone__")}(l))return n.invokeTask(i,o,s,l);try{return ao(e),n.invokeTask(i,o,s,l)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),uo(e)}},onInvoke:(n,r,i,o,s,l,a)=>{try{return ao(e),n.invoke(i,o,s,l,a)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function(e){return fo(e,"__scheduler_tick__")}(l)&&t(),uo(e)}},onHasTask:(t,n,r,i)=>{t.hasTask(r,i),n===r&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,lo(e),so(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,r,i)=>(t.handleError(r,i),e.runOutsideAngular((()=>e.onError.emit(i))),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(to)}static assertInAngularZone(){if(!e.isInAngularZone())throw new Xe(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new Xe(909,!1)}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){let i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,oo,Ki,Ki);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}},oo={};function so(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular((()=>e.onStable.emit(null)))}finally{e.isStable=!0}}}function lo(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function ao(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function uo(e){e._nesting--,so(e)}var co=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ji;onMicrotaskEmpty=new Ji;onStable=new Ji;onError=new Ji;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function fo(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}var ho=class{_console=console;handleError(e){this._console.error("ERROR",e)}},po=new _t("",{providedIn:"root",factory:()=>{let e=Gt(io),t=Gt(ho);return n=>e.runOutsideAngular((()=>t.handleError(n)))}});function mo(e,t){return nt(e,t)}var go=(mo.required=function(e){return nt(et,e)},mo);function yo(){return vo(Er(),kr())}function vo(e,t){return new wo(cr(e,t))}var wo=class{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=yo};function bo(e){return!(128&~e.flags)}var _o=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(_o||{}),So=new Map,Co=0;function xo(e){So.delete(e[19])}var ko,Io="__ngContext__";function Eo(e,t){qn(t)?(e[Io]=t[19],function(e){So.set(e[19],e)}(t)):e[Io]=t}function To(e){return No(e[12])}function Do(e){return No(e[4])}function No(e){for(;null!==e&&!Yn(e);)e=e[4];return e}var Oo=new _t("",{providedIn:"root",factory:()=>Mo}),Mo="ng",Vo=new _t(""),Ao=new _t("",{providedIn:"platform",factory:()=>"unknown"}),Fo=new _t("",{providedIn:"root",factory:()=>function(){if(void 0!==ko)return ko;if(typeof document<"u")return document;throw new Xe(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Ro=!1,jo=new _t("",{providedIn:"root",factory:()=>Ro}),Lo=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Lo||{}),Po=new _t(""),Ho=new Set;function zo(e){Ho.has(e)||(Ho.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Zo=(()=>{class e{impl=null;execute(){this.impl?.execute()}static"ɵprov"=ht({token:e,providedIn:"root",factory:()=>new e})}return e})(),Bo=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Bo||{}),$o=/^>|^->||--!>|)/g,Go=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Go||{}),Wo=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Wo||{});function qo(e,t){return undefined(e,t)}function Yo(e,t,n,r,i){if(null!=r){let o,s=!1;Yn(r)?o=r:qn(r)&&(s=!0,r=r[0]);let l=ur(r);0===e&&null!==n?null==i?ss(t,n,l):os(t,n,l,i||null,!0):1===e&&null!==n?os(t,n,l,i||null,!0):2===e?function(e,t,n){e.removeChild(null,t,n)}(t,l,s):3===e&&t.destroyNode(l),null!=o&&function(e,t,n,r,i){let o=n[7],s=ur(n);o!==s&&Yo(t,e,r,o,i);for(let i=Gn;ie.replace(Uo,"​$1​")))}(t))}function Jo(e,t,n){return e.createElement(t,n)}function Ko(e,t){t[Fn].changeDetectionScheduler?.notify(10),ms(e,t,t[Rn],2,null,null)}function Xo(e,t){let n=e[9],r=t[3];if(qn(r))e[2]|=Wn.HasTransplantedViews;else{let n=r[3][Ln];t[Ln]!==n&&(e[2]|=Wn.HasTransplantedViews)}null===n?e[9]=[t]:n.push(t)}function es(e,t){let n=e[9],r=n.indexOf(t);n.splice(r,1)}function ts(e,t){if(e.length<=Gn)return;let n=Gn+t,r=e[n];if(r){let i=r[Pn];null!==i&&i!==e&&es(i,r),t>0&&(e[n-1][4]=r[4]);let o=rn(e,Gn+t);!function(e,t){Ko(e,t),t[0]=null,t[5]=null}(r[1],r);let s=o[zn];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function ns(e,t){if(!(256&t[2])){let n=t[Rn];n.destroyNode&&ms(e,t,n,3,null,null),function(e){let t=e[12];if(!t)return rs(e[1],e);for(;t;){let n=null;if(qn(t))n=t[12];else{let e=t[Gn];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)qn(t)&&rs(t[1],t),t=t[3];null===t&&(t=e),qn(t)&&rs(t[1],t),n=t&&t[4]}t=n}}(t)}}function rs(e,t){if(256&t[2])return;let n=m(null);try{t[2]&=-129,t[2]|=256,t[$n]&&k(t[$n]),function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let e=0;e=0?r[t]():r[-t].unsubscribe(),e+=2}else{let t=r[n[e+1]];n[e].call(t)}null!==r&&(t[7]=null);let i=t[Zn];if(null!==i){t[Zn]=null;for(let e=0;e-1){let{encapsulation:n}=e.data[r.directiveStart+t];if(n===Bo.None||n===Bo.Emulated)return null}return cr(r,n)}}(e,t.parent,n)}function os(e,t,n,r,i){e.insertBefore(t,n,r,i)}function ss(e,t,n){e.appendChild(t,n)}function ls(e,t,n,r,i){null!==r?os(e,t,n,r,i):ss(e,t,n)}function as(e,t){return e.parentNode(t)}var us=function(e,t,n){return 40&e.type?cr(e,n):null};function cs(e,t,n,r){let i=is(e,r,t),o=t[Rn],s=function(e,t,n){return us(e,t,n)}(r.parent||t[5],r,t);if(null!=i)if(Array.isArray(n))for(let e=0;e-1){let e;for(;++io?"":i[c+1].toLowerCase(),2&r&&u!==e){if(ks(r))return!1;s=!0}}}}else{if(!s&&!ks(r)&&!ks(a))return!1;if(s&&ks(a))continue;s=!1,r=a|1&r}}return ks(r)||s}function ks(e){return!(1&e)}function Is(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let n=!1;for(;i-1)for(n++;n0?'="'+t+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!ks(s)&&(t+=Ts(o,i),i=""),r=s,o=o||!ks(r);n++}return""!==i&&(t+=Ts(o,i)),t}var Ns={};function Os(e=1){Ms(Ir(),kr(),qr()+e)}function Ms(e,t,n,r){if(3&~t[2]){let r=e.preOrderHooks;null!==r&&ri(t,r,0,n)}else{let r=e.preOrderCheckHooks;null!==r&&ni(t,r,n)}Yr(n)}function Vs(e,t=Vt.Default){let n=kr();return null===n?Ut(e,t):Oi(Er(),n,ft(e),t)}function As(e,t,n,r,i,o){let s=m(null);try{let s=null;i&Go.SignalBased&&(s=t[r][p]),null!==s&&void 0!==s.transformFn&&(o=s.transformFn(o)),i&Go.HasDecoratorInputTransform&&(o=e.inputTransforms[r].call(t,o)),null!==e.setInput?e.setInput(t,s,o,n,r):nr(t,s,r,o)}finally{m(s)}}function Fs(e,t,n,r,i,o,s,l,a,u,c){let d=t.blueprint.slice();return d[0]=i,d[2]=1228|r,(null!==u||e&&2048&e[2])&&(d[2]|=2048),gr(d),d[3]=d[jn]=e,d[8]=n,d[Fn]=s||e&&e[Fn],d[Rn]=l||e&&e[Rn],d[9]=a||e&&e[9]||null,d[5]=o,d[19]=Co++,d[6]=c,d[20]=u,d[Ln]=2==t.type?e[Ln]:d,d}function Rs(e,t,n,r,i){let o=e.data[t];if(null===o)o=function(e,t,n,r,i){let o=Tr(),s=Nr(),l=s?o:o&&o.parent,a=e.data[t]=function(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,l=0;return null!==Cr.skipHydrationRootTNode&&(l|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:l,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs: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}}(0,l,n,t,r,i);return null===e.firstChild&&(e.firstChild=a),null!==o&&(s?null==o.child&&null!==a.parent&&(o.child=a):null===o.next&&(o.next=a,a.prev=o)),a}(e,t,n,r,i),Cr.lFrame.inI18n&&(o.flags|=32);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;let e=function(){let e=Cr.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();o.injectorIndex=null===e?-1:e.injectorIndex}return Dr(o,!0),o}function js(e,t,n,r){if(0===n)return-1;let i=t.length;for(let i=0;iUn&&Ms(e,t,Un),n(r,i)}finally{Yr(o)}}function Ps(e,t,n){if(Qn(t)){let r=m(null);try{let r=t.directiveStart,i=t.directiveEnd;for(let t=r;t0;){let n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(i)!=s&&i.push(s),i.push(n,r,o)}}(e,t,r,js(e,n,i.hostVars,Ns),i)}function el(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function tl(e,t,n,r,i,o){let s=o[t];if(null!==s)for(let e=0;e0&&(n[i-1][4]=t),r{br(e.lView)},consumerOnSignalRead(){this.lView[$n]=this}}),_l=c(u({},g),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Sr(e.lView);for(;t&&!Sl(t[1]);)t=Sr(t);t&&yr(t)},consumerOnSignalRead(){this.lView[$n]=this}});function Sl(e){return 2!==e.type}function Cl(e){if(null===e[Bn])return;let t=!0;for(;t;){let n=!1;for(let t of e[Bn])t.dirty&&(n=!0,null===t.zone||Zone.current===t.zone?t.run():t.zone.run((()=>t.run())));t=n&&!!(8192&e[2])}}function xl(e,t=!0,n=0){let r=e[Fn].rendererFactory;r.begin?.();try{!function(e,t){let n=Mr();try{Vr(!0),Dl(e,t);let n=0;for(;vr(e);){if(100===n)throw new Xe(103,!1);n++,Dl(e,1)}}finally{Vr(n)}}(e,n)}catch(n){throw t&&function(e,t){let n=e[9],r=n?n.get(ho,null):null;r&&r.handleError(t)}(e,n),n}finally{r.end?.()}}function kl(e,t,n,r){let i=t[2];if(!(256&~i))return;zr(t);let o=!0,s=null,l=null;Sl(e)?(l=wl(t),s=C(l)):null===d?(o=!1,l=function(e){let t=e[$n]??Object.create(_l);return t.lView=e,t}(t),s=C(l)):t[$n]&&(k(t[$n]),t[$n]=null);try{gr(t),function(e){Cr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Ls(e,t,n,2,r);let o=!(3&~i);if(o){let n=e.preOrderCheckHooks;null!==n&&ni(t,n,null)}else{let n=e.preOrderHooks;null!==n&&ri(t,n,0,null),ii(t,0)}if(function(e){for(let t=To(e);null!==t;t=Do(t)){if(!(t[2]&Wn.HasTransplantedViews))continue;let e=t[9];for(let t=0;te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(l,s),o&&function(e){e.lView[$n]!==e&&(e.lView=null,vl.push(e))}(l)),Gr()}}function Il(e,t){for(let n=To(e);null!==n;n=Do(n))for(let e=Gn;e-1&&(ts(e,n),rn(t,n))}this._attachedToViewContainer=!1}ns(this._lView[1],this._lView)}onDestroy(e){_r(this._lView,e)}markForCheck(){Ol(this._cdRefInjectingView||this._lView,4)}markForRefresh(){yr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){wr(this._lView),this._lView[2]|=128}detectChanges(){this._lView[2]|=1024,xl(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Xe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=er(this._lView),t=this._lView[Pn];null!==t&&!e&&es(t,this._lView),Ko(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Xe(902,!1);this._appRef=e;let t=er(this._lView),n=this._lView[Pn];null!==n&&!t&&Xo(n,this._lView),wr(this._lView)}},Vl=class{static __NG_ELEMENT_ID__=Rl},Al=Vl,Fl=class extends Al{_declarationLView;_declarationTContainer;elementRef;constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,t){return this.createEmbeddedViewImpl(e,t)}createEmbeddedViewImpl(e,t,n){let r=dl(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:t,dehydratedView:n});return new Ml(r)}};function Rl(){return jl(Er(),kr())}function jl(e,t){return 4&e.type?new Fl(t,e,vo(e,t)):null}var Ll=class{},Pl=class{},Hl=class{resolveComponentFactory(e){throw Error(`No component factory found for ${at(e)}.`)}},zl=class{static NULL=new Hl},Zl=class{},Bl=class{destroyNode=null;static __NG_ELEMENT_ID__=()=>function(){let e=kr(),t=hr(Er().index,e);return(qn(t)?t:e)[Rn]}()},$l=(()=>{class e{static"ɵprov"=ht({token:e,providedIn:"root",factory:()=>null})}return e})();function Ul(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(let e=0;e0&&ys(e,n,i.join(" "))}}(a,r,c,n),void 0!==t&&function(e,t,n){let r=e.projection=[];for(let e=0;e0;)this.remove(this.length-1)}get(e){let t=ta(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-Gn}createEmbeddedView(e,t,n){let r,i;"number"==typeof n?r=n:null!=n&&(r=n.index,i=n.injector);let o=(this._lContainer,e.ssrId,null),s=e.createEmbeddedViewImpl(t||{},i,o);return this.insertImpl(s,r,hl(this._hostTNode,o)),s}createComponent(e,t,n,r,i){let o,s=e&&!function(e){return"function"==typeof e}(e);if(s)o=t;else{let e=t||{};o=e.index,n=e.injector,r=e.projectableNodes,i=e.environmentInjector||e.ngModuleRef}let l=s?e:new ql(dn(e)),a=n||this.parentInjector;if(!i&&null==l.ngModule){let e=(s?a:this.parentInjector).get(En,null);e&&(i=e)}dn(l.componentType??{});let u=(this._lContainer,null),c=l.create(a,r,null,i);return this.insertImpl(c.hostView,o,hl(this._hostTNode,u)),c}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,n){let r=e._lView;if(function(e){return Yn(e[3])}(r)){let t=this.indexOf(e);if(-1!==t)this.detach(t);else{let t=r[3],n=new ea(t,t[5],t[3]);n.detach(n.indexOf(e))}}let i=this._adjustIndex(t),o=this._lContainer;return pl(o,r,i,n),e.attachToViewContainerRef(),nn(na(o),i,e),e}move(e,t){return this.insert(e,t)}indexOf(e){let t=ta(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){let t=this._adjustIndex(e,-1),n=ts(this._lContainer,t);n&&(rn(na(this._lContainer),t),ns(n[1],n))}detach(e){let t=this._adjustIndex(e,-1),n=ts(this._lContainer,t);return n&&null!=rn(na(this._lContainer),t)?new Ml(n):null}_adjustIndex(e,t=0){return e??this.length+t}};function ta(e){return e[8]}function na(e){return e[8]||(e[8]=[])}var ra=function(e,t,n,r){if(e[7])return;let i;i=8&n.type?ur(r):function(e,t){let n=e[Rn],r=n.createComment(""),i=cr(t,e);return os(n,as(n,i),r,function(e,t){return e.nextSibling(t)}(n,i),!1),r}(t,n),e[7]=i};function ia(e,t){zo("NgSignals");let n=function(e){let t=Object.create(F);t.value=e;let n=()=>(y(t),t.value);return n[p]=t,n}(e),r=n[p];return n.set=e=>A(r,e),n.update=e=>function(e,t){b()||V(),A(e,t(e.value))}(r,e),n.asReadonly=oa.bind(n),n}function oa(){let e=this[p];if(void 0===e.readonlyFn){let t=()=>this();t[p]=e,e.readonlyFn=t}return e.readonlyFn}var sa=class{},la=class extends sa{injector;componentFactoryResolver=new Gl(this);instance=null;constructor(e){super();let t=new Tn([...e.providers,{provide:sa,useValue:this},{provide:zl,useValue:this.componentFactoryResolver}],e.parent||In(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}},aa=(()=>{class e{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let t=mn(0,e.type),n=t.length>0?function(e,t,n=null){return new la({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}([t],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,n)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static"ɵprov"=ht({token:e,providedIn:"environment",factory:()=>new e(Ut(En))})}return e})();function ua(e){return rt((()=>{let t=pa(e),n=c(u({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===_o.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?e=>e.get(aa).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Bo.Emulated,styles:e.styles||sn,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&zo("NgStandalone"),ma(n);let r=e.dependencies;return n.directiveDefs=ga(r,!1),n.pipeDefs=ga(r,!0),n.id=function(e){let t=0,n="function"==typeof e.consts?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let e of r.join("|"))t=Math.imul(31,t)+e.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n}))}function ca(e){return dn(e)||fn(e)}function da(e){return null!==e}function fa(e,t){if(null==e)return on;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i,o,s=e[r],l=Go.None;Array.isArray(s)?(l=s[0],i=s[1],o=s[2]??i):(i=s,o=s),t?(n[i]=l!==Go.None?[r,l]:r,t[i]=o):n[i]=r}return n}function ha(e){return rt((()=>{let t=pa(e);return ma(t),t}))}function pa(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||on,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||sn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:fa(e.inputs,t),outputs:fa(e.outputs),debugInfo:null}}function ma(e){e.features?.forEach((t=>t(e)))}function ga(e,t){if(!e)return null;let n=t?hn:ca;return()=>("function"==typeof e?e():e).map((e=>n(e))).filter(da)}function ya(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function va(e,t,n){return e[t]=n}function wa(e,t,n){let r=e[t];return!Object.is(r,n)&&(e[t]=n,!0)}function ba(e,t,n,r,i,o,s,l,a,u){let c=n+Un,d=t.firstCreatePass?function(e,t,n,r,i,o,s,l,a){let u=t.consts,c=Rs(t,e,4,s||null,l||null);Ws(t,n,c,mr(u,a)),ti(t,c);let d=c.tView=Bs(2,c,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,t,e,r,i,o,s,l,a):t.data[c];Dr(d,!1);let f=Sa(t,e);Xr()&&cs(t,e,f,d),Eo(f,e);let h=rl(f,e,f,d);return e[c]=h,ol(e,h),Kn(d)&&Hs(t,e,d),null!=a&&zs(e,d,u),d}function _a(e,t,n,r,i,o,s,l){let a=kr(),u=Ir();return ba(a,u,e,t,n,r,i,mr(u.consts,o),s,l),_a}var Sa=function(e,t,n,r){return ei(!0),t[Rn].createComment("")},Ca=new _t("");function xa(e){return!!e&&"function"==typeof e.then}function ka(e){return!!e&&"function"==typeof e.subscribe}var Ia=new _t(""),Ea=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}));appInits=Gt(Ia,{optional:!0})??[];injector=Gt(zi);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let t of this.appInits){let n=Vn(this.injector,t);if(xa(n))e.push(n);else if(ka(n)){let t=new Promise(((e,t)=>{n.subscribe({complete:e,error:t})}));e.push(t)}}let t=()=>{this.done=!0,this.resolve()};Promise.all(e).then((()=>{t()})).catch((e=>{this.reject(e)})),0===e.length&&t(),this.initialized=!0}static"ɵfac"=function(t){return new(t||e)};static"ɵprov"=ht({token:e,factory:e.ɵfac,providedIn:"root"})}return e})(),Ta=(()=>{class e{static"ɵprov"=ht({token:e,providedIn:"root",factory:()=>new Da})}return e})(),Da=class{queuedEffectCount=0;queues=new Map;schedule(e){this.enqueue(e)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,t]of this.queues)null===e?this.flushQueue(t):e.run((()=>this.flushQueue(t)))}flushQueue(e){for(let t of e)e.delete(t),this.queuedEffectCount--,t.run()}},Na=new _t("");function Oa(){!function(e){M=e}((()=>{throw new Xe(600,!1)}))}var Ma=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=Gt(po);afterRenderManager=Gt(Zo);zonelessEnabled=Gt(Wi);rootEffectScheduler=Gt(Ta);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new he;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=Gt(Qi).hasPendingTasks.pipe(We((e=>!e)));constructor(){Gt(Po,{optional:!0})}whenStable(){let e;return new Promise((t=>{e=this.isStable.subscribe({next:e=>{e&&t()}})})).finally((()=>{e.unsubscribe()}))}_injector=Gt(En);get injector(){return this._injector}bootstrap(e,t){let n,r=e instanceof Pl;if(!this._injector.get(Ea).done){throw!r&&function(e){let t=dn(e)||fn(e)||hn(e);null!==t&&t.standalone}(e),new Xe(405,!1)}n=r?e:this._injector.get(zl).resolveComponentFactory(e),this.componentTypes.push(n.componentType);let i=function(e){return e.isBoundToModule}(n)?void 0:this._injector.get(sa),o=t||n.selector,s=n.create(zi.NULL,[],o,i),l=s.location.nativeElement,a=s.injector.get(Ca,null);return a?.registerApplication(l),s.onDestroy((()=>{this.detachView(s.hostView),Va(this.components,s),a?.unregisterApplication(l)})),this._loadComponent(s),s}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(null!==this.tracingSnapshot){let e=this.tracingSnapshot;return this.tracingSnapshot=null,void e.run(Lo.CHANGE_DETECTION,this._tick)}if(this._runningTick)throw new Xe(101,!1);let e=m(null);try{this._runningTick=!0,this.synchronize()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1,m(e),this.afterTick.next()}};synchronize(){let e=null;this._injector.destroyed||(e=this._injector.get(Zl,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let t=0;for(;0!==this.dirtyFlags&&t++<10;)this.synchronizeOnce(e)}synchronizeOnce(e){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),7&this.dirtyFlags){let e=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:t,notifyErrorHandler:n}of this.allViews)Aa(t,n,e,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}else e?.begin?.(),e?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some((({_lView:e})=>vr(e)))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(e){let t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){let t=e;Va(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Na,[]).forEach((t=>t(e)))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach((e=>e())),this._views.slice().forEach((e=>e.destroy()))}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Va(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Xe(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static"ɵfac"=function(t){return new(t||e)};static"ɵprov"=ht({token:e,factory:e.ɵfac,providedIn:"root"})}return e})();function Va(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Aa(e,t,n,r){(n||vr(e))&&xl(e,t,n&&!r?0:1)}function Fa(e,t,n){let r=kr();if(wa(r,Fr(),t)){let i=Ir(),o=function(){let e=Cr.lFrame;return dr(e.tView,e.selectedIndex)}();Gs(i,o,r,e,t,r[Rn],n)}return Fa}function Ra(e,t,n,r,i){let o=i?"class":"style";ll(e,n,t.inputs[o],o,r)}var ja=class{destroy(e){}updateValue(e,t){}swap(e,t){let n=Math.min(e,t),r=Math.max(e,t),i=this.detach(r);if(r-n>1){let e=this.detach(n);this.attach(n,i),this.attach(r,e)}else this.attach(n,i)}move(e,t){this.attach(t,this.detach(e))}};function La(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function Pa(e,t,n,r){return!(void 0===t||!t.has(r))&&(e.attach(n,t.get(r)),t.delete(r),!0)}function Ha(e,t,n,r,i){if(Pa(e,t,r,n(r,i)))e.updateValue(r,i);else{let t=e.create(r,i);e.attach(r,t)}}function za(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var Za=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let t=this.kvMap.get(e);return void 0!==this._vMap&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let n=this.kvMap.get(e);void 0===this._vMap&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,n]of this.kvMap)if(e(n,t),void 0!==this._vMap){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,t)}}};function Ba(e,t){zo("NgControlFlow");let n=kr(),r=Fr(),i=n[r]!==Ns?n[r]:-1,o=-1!==i?Qa(n,Un+i):void 0;if(wa(n,r,e)){let r=m(null);try{if(void 0!==o&&ml(o,0),-1!==e){let r=Un+e,i=Qa(n,r),o=Ja(n[1],r),s=(o.tView.ssrId,null);pl(i,dl(n,o,t,{dehydratedView:s}),0,hl(o,s))}}finally{m(r)}}else if(void 0!==o){let e=fl(o,0);void 0!==e&&(e[8]=t)}}var $a=class{lContainer;$implicit;$index;constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-Gn}};function Ua(e){return e}var Ga=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}};function Wa(e,t,n,r,i,o,s,l,a,u,c,d,f){zo("NgControlFlow");let h=kr(),p=Ir(),m=void 0!==a,g=kr(),y=new Ga(m,s);g[Un+e]=y,ba(h,p,e+1,t,n,r,i,mr(p.consts,o))}var qa=class extends ja{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,t,n){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=n}get length(){return this.lContainer.length-Gn}at(e){return this.getLView(e)[8].$implicit}attach(e,t){let n=t[6];this.needsIndexUpdate||=e!==this.length,pl(this.lContainer,t,e,hl(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,function(e,t){return ts(e,t)}(this.lContainer,e)}create(e,t){let n=(this.lContainer,this.templateTNode.tView.ssrId,null),r=dl(this.hostLView,this.templateTNode,new $a(this.lContainer,t,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){ns(e[1],e),this.operationsCounter?.recordDestroy()}updateValue(e,t){this.getLView(e)[8].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e{e.destroy(t)}))}(l,e,i.trackByFn),l.updateIndexes(),i.hasEmptyBlock){let e=Fr(),i=0===l.length;if(wa(t,e,i)){let e=n+2,o=Qa(t,e);if(i){let n=Ja(r,e),i=(n.tView.ssrId,null);pl(o,dl(t,n,void 0,{dehydratedView:i}),0,hl(n,i))}else ml(o,0)}}}finally{m(t)}}function Qa(e,t){return e[t]}function Ja(e,t){return dr(e,t)}function Ka(e,t,n,r){let i=kr(),o=Ir(),s=Un+e,l=i[Rn],a=o.firstCreatePass?function(e,t,n,r,i,o){let s=t.consts,l=Rs(t,e,2,r,mr(s,i));return Ws(t,n,l,mr(s,o)),null!==l.attrs&&Ul(l,l.attrs,!1),null!==l.mergedAttrs&&Ul(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,o,i,t,n,r):o.data[s],u=tu(o,i,a,l,t);i[s]=u;let c=Kn(a);return Dr(a,!0),vs(l,u,a),!function(e){return!(32&~e.flags)}(a)&&Xr()&&cs(o,i,u,a),0===Cr.lFrame.elementDepthCount&&Eo(u,i),Cr.lFrame.elementDepthCount++,c&&(Hs(o,i,a),Ps(o,a,i)),null!==r&&zs(i,a),Ka}function Xa(){let e=Er();Nr()?Or():(e=e.parent,Dr(e,!1));let t=e;(function(e){return Cr.skipHydrationRootTNode===e})(t)&&(Cr.skipHydrationRootTNode=null),Cr.lFrame.elementDepthCount--;let n=Ir();return n.firstCreatePass&&(ti(n,e),Qn(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return!!(8&e.flags)}(t)&&Ra(n,t,kr(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return!!(16&e.flags)}(t)&&Ra(n,t,kr(),t.stylesWithoutHost,!1),Xa}function eu(e,t,n,r){return Ka(e,t,n,r),Xa(),eu}var tu=(e,t,n,r,i,o)=>(ei(!0),Jo(r,i,Cr.lFrame.currentNamespace));function nu(e,t,n){let r=kr(),i=Ir(),o=e+Un,s=i.firstCreatePass?function(e,t,n,r,i){let o=t.consts,s=mr(o,r),l=Rs(t,e,8,"ng-container",s);return null!==s&&Ul(l,s,!0),Ws(t,n,l,mr(o,i)),null!==t.queries&&t.queries.elementStart(t,l),l}(o,i,r,t,n):i.data[o];Dr(s,!0);let l=ou(i,r);return r[o]=l,Xr()&&cs(i,r,l,s),Eo(l,r),Kn(s)&&(Hs(i,r,s),Ps(i,s,r)),null!=n&&zs(r,s),nu}function ru(){let e=Er(),t=Ir();return Nr()?Or():(e=e.parent,Dr(e,!1)),t.firstCreatePass&&(ti(t,e),Qn(e)&&t.queries.elementEnd(e)),ru}function iu(e,t,n){return nu(e,t,n),ru(),iu}var ou=(e,t,n,r)=>(ei(!0),Qo(t[Rn],"")),su=void 0,lu=["en",[["a","p"],["AM","PM"],su],[["AM","PM"],su,su],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],su,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],su,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",su,"{1} 'at' {0}",su],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],au={};function uu(e){let t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=cu(t);if(n)return n;let r=t.split("-")[0];if(n=cu(r),n)return n;if("en"===r)return lu;throw new Xe(701,!1)}function cu(e){return e in au||(au[e]=st.ng&&st.ng.common&&st.ng.common.locales&&st.ng.common.locales[e]),au[e]}var du=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(du||{}),fu="en-US";function hu(e=1){return Wr(e)}function pu(e){return fr(Cr.lFrame.contextLView,Un+e)}function mu(e,t=""){let n=kr(),r=Ir(),i=e+Un,o=r.firstCreatePass?Rs(r,i,1,t,null):r.data[i],s=gu(r,n,o,t);n[i]=s,Xr()&&cs(r,n,s,o),Dr(o,!1)}var gu=(e,t,n,r,i)=>(ei(!0),function(e,t){return e.createText(t)}(t[Rn],r));function yu(e){return vu("",e,""),yu}function vu(e,t,n){let r=kr(),i=function(e,t,n,r){return wa(e,Fr(),n)?t+Dt(n)+r:Ns}(r,e,t,n);return i!==Ns&&al(r,qr(),i),vu}function wu(e,t,n,r){return function(e,t,n,r,i){let o=t+n;return wa(e,o,i)?va(e,o+1,r(i)):bu(e,o+1)}(kr(),Ar(),e,t,n)}function bu(e,t){let n=e[t];return n===Ns?void 0:n}function _u(e,t,n,r,i,o,s){let l=t+n;return function(e,t,n,r){let i=wa(e,t,n);return wa(e,t+1,r)||i}(e,l,i,o)?va(e,l+2,s?r.call(s,i,o):r(i,o)):bu(e,l+2)}function Su(e,t,n,r){let i=e+Un,o=kr(),s=fr(o,i);return function(e,t){return e[1].data[t].pure}(o,i)?_u(o,Ar(),t,s.transform,n,r,s):s.transform(n,r)}function Cu(e,t){return jl(e,t)}var xu=(()=>{class e{zone=Gt(io);changeDetectionScheduler=Gt(Gi);applicationRef=Gt(Ma);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run((()=>{this.applicationRef.tick()}))}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static"ɵfac"=function(t){return new(t||e)};static"ɵprov"=ht({token:e,factory:e.ɵfac,providedIn:"root"})}return e})();function ku({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new io(c(u({},function(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}()),{scheduleInRootZone:n})),[{provide:io,useFactory:e},{provide:ln,multi:!0,useFactory:()=>{let e=Gt(xu,{optional:!0});return()=>e.initialize()}},{provide:ln,multi:!0,useFactory:()=>{let e=Gt(Iu);return()=>{e.initialize()}}},!0===t?{provide:qi,useValue:!0}:[],{provide:Yi,useValue:n??Zi}]}var Iu=(()=>{class e{subscription=new H;initialized=!1;zone=Gt(io);pendingTasks=Gt(Qi);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular((()=>{this.subscription.add(this.zone.onStable.subscribe((()=>{io.assertNotInAngularZone(),queueMicrotask((()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)}))})))})),this.subscription.add(this.zone.onUnstable.subscribe((()=>{io.assertInAngularZone(),e??=this.pendingTasks.add()})))}ngOnDestroy(){this.subscription.unsubscribe()}static"ɵfac"=function(t){return new(t||e)};static"ɵprov"=ht({token:e,factory:e.ɵfac,providedIn:"root"})}return e})(),Eu=(()=>{class e{appRef=Gt(Ma);taskService=Gt(Qi);ngZone=Gt(io);zonelessEnabled=Gt(Wi);tracing=Gt(Po,{optional:!0});disableScheduling=Gt(qi,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new H;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(no):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(Gt(Yi,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe((()=>{this.runningTick||this.cleanup()}))),this.subscriptions.add(this.ngZone.onUnstable.subscribe((()=>{this.runningTick||this.cleanup()}))),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof co||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&5===e)return;let t=!1;switch(e){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 8:this.appRef.deferredDirtyFlags|=8;break;case 6:case 14:this.appRef.dirtyFlags|=2,t=!0;break;case 13:this.appRef.dirtyFlags|=16,t=!0;break;case 12:t=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(t))return;let n=this.useMicrotaskScheduler?eo:Xi;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run((()=>n((()=>this.tick())))):this.cancelScheduledCallback=this.ngZone.runOutsideAngular((()=>n((()=>this.tick()))))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(no+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run((()=>{this.runningTick=!0,this.appRef._tick()}),void 0,this.schedulerTickApplyArgs)}catch(t){throw this.taskService.remove(e),t}finally{this.cleanup()}this.useMicrotaskScheduler=!0,eo((()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)}))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static"ɵfac"=function(t){return new(t||e)};static"ɵprov"=ht({token:e,factory:e.ɵfac,providedIn:"root"})}return e})(),Tu=new _t("",{providedIn:"root",factory:()=>Gt(Tu,Vt.Optional|Vt.SkipSelf)||typeof $localize<"u"&&$localize.locale||fu}),Du=new _t("");function Nu(e){return!e.moduleRef}function Ou(e){let t=Nu(e)?e.r3Injector:e.moduleRef.injector,n=t.get(io);return n.run((()=>{Nu(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r,i=t.get(ho,null);if(n.runOutsideAngular((()=>{r=n.onError.subscribe({next:e=>{i.handleError(e)}})})),Nu(e)){let n=()=>t.destroy(),i=e.platformInjector.get(Du);i.add(n),t.onDestroy((()=>{r.unsubscribe(),i.delete(n)}))}else{let t=()=>e.moduleRef.destroy(),n=e.platformInjector.get(Du);n.add(t),e.moduleRef.onDestroy((()=>{Va(e.allPlatformModules,e.moduleRef),r.unsubscribe(),n.delete(t)}))}return function(e,t,n){try{let r=n();return xa(r)?r.catch((n=>{throw t.runOutsideAngular((()=>e.handleError(n))),n})):r}catch(n){throw t.runOutsideAngular((()=>e.handleError(n))),n}}(i,n,(()=>{let n=t.get(Ea);return n.runInitializers(),n.donePromise.then((()=>{if(function(e){"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}(t.get(Tu,fu)||fu),Nu(e)){let n=t.get(Ma);return void 0!==e.rootComponent&&n.bootstrap(e.rootComponent),n}return function(e,t){let n=e.injector.get(Ma);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((e=>n.bootstrap(e)));else{if(!e.instance.ngDoBootstrap)throw new Xe(-403,!1);e.instance.ngDoBootstrap(n)}t.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef}))}))}))}var Mu=null;function Vu(e=[]){if(Mu)return Mu;let t=function(e=[],t){return zi.create({name:t,providers:[{provide:Cn,useValue:"platform"},{provide:Du,useValue:new Set([()=>Mu=null])},...e]})}(e);return Mu=t,Oa(),function(e){let t=e.get(Vo,null);Vn(e,(()=>{t?.forEach((e=>e()))}))}(t),t}var Au=class{static __NG_ELEMENT_ID__=Fu};function Fu(e){return function(e,t,n){if(Jn(e)&&!n){let n=hr(e.index,t);return new Ml(n,n)}if(175&e.type){let e=t[Ln];return new Ml(e,t)}return null}(Er(),kr(),!(16&~e))}var Ru=class{constructor(){}supports(e){return e instanceof Map||ya(e)}create(){return new ju}},ju=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||ya(e)))throw new Xe(900,!1)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,((e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{let r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}})),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){let n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){let n=this._records.get(e);this._maybeAddToChanges(n,t);let r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}let n=new Lu(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach((n=>t(e[n],n)))}},Lu=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(e){this.key=e}};function Pu(){return new Hu([new Ru])}var Hu=(()=>{class e{static"ɵprov"=ht({token:e,providedIn:"root",factory:Pu});factories;constructor(e){this.factories=e}static create(t,n){if(n){let e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||Pu()),deps:[[e,new Xt,new Kt]]}}find(e){let t=this.factories.find((t=>t.supports(e)));if(t)return t;throw new Xe(901,!1)}}return e})(),zu=null;function Zu(){return zu}var Bu=class{},$u=new _t(""),Uu=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(Uu||{}),Gu=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(Gu||{}),Wu=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(Wu||{}),qu=5;function Yu(e,t){return ec(uu(e)[du.DateFormat],t)}function Qu(e,t){return ec(uu(e)[du.TimeFormat],t)}function Ju(e,t){return ec(uu(e)[du.DateTimeFormat],t)}function Ku(e,t){return uu(e)[du.NumberSymbols][t]}function Xu(e){if(!e[du.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[du.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ec(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function tc(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var nc=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,rc={},ic=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,oc=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(oc||{}),sc=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(sc||{}),lc=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(lc||{});function ac(e,t,n,r){let i=function(e){if(Cc(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[t,n=1,r=1]=e.split("-").map((e=>+e));return uc(t,n-1,r)}let t,n=parseFloat(e);if(!isNaN(e-n))return new Date(n);if(t=e.match(nc))return function(e){let t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,l=Number(e[5]||0)-r,a=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,s,l,a,u),t}(t)}let t=new Date(e);if(!Cc(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=cc(n,t)||t;let o,s=[];for(;t;){if(o=ic.exec(t),!o){s.push(t);break}{s=s.concat(o.slice(1));let e=s.pop();if(!e)break;t=e}}let l=i.getTimezoneOffset();r&&(l=Sc(r,l),i=function(e,t){let n=-1,r=e.getTimezoneOffset(),i=Sc(t,r);return function(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}(e,n*(i-r))}(i,r));let a="";return s.forEach((e=>{let t=function(e){if(_c[e])return _c[e];let t;switch(e){case"G":case"GG":case"GGG":t=pc(lc.Eras,Gu.Abbreviated);break;case"GGGG":t=pc(lc.Eras,Gu.Wide);break;case"GGGGG":t=pc(lc.Eras,Gu.Narrow);break;case"y":t=hc(sc.FullYear,1,0,!1,!0);break;case"yy":t=hc(sc.FullYear,2,0,!0,!0);break;case"yyy":t=hc(sc.FullYear,3,0,!1,!0);break;case"yyyy":t=hc(sc.FullYear,4,0,!1,!0);break;case"Y":t=bc(1);break;case"YY":t=bc(2,!0);break;case"YYY":t=bc(3);break;case"YYYY":t=bc(4);break;case"M":case"L":t=hc(sc.Month,1,1);break;case"MM":case"LL":t=hc(sc.Month,2,1);break;case"MMM":t=pc(lc.Months,Gu.Abbreviated);break;case"MMMM":t=pc(lc.Months,Gu.Wide);break;case"MMMMM":t=pc(lc.Months,Gu.Narrow);break;case"LLL":t=pc(lc.Months,Gu.Abbreviated,Uu.Standalone);break;case"LLLL":t=pc(lc.Months,Gu.Wide,Uu.Standalone);break;case"LLLLL":t=pc(lc.Months,Gu.Narrow,Uu.Standalone);break;case"w":t=wc(1);break;case"ww":t=wc(2);break;case"W":t=wc(1,!0);break;case"d":t=hc(sc.Date,1);break;case"dd":t=hc(sc.Date,2);break;case"c":case"cc":t=hc(sc.Day,1);break;case"ccc":t=pc(lc.Days,Gu.Abbreviated,Uu.Standalone);break;case"cccc":t=pc(lc.Days,Gu.Wide,Uu.Standalone);break;case"ccccc":t=pc(lc.Days,Gu.Narrow,Uu.Standalone);break;case"cccccc":t=pc(lc.Days,Gu.Short,Uu.Standalone);break;case"E":case"EE":case"EEE":t=pc(lc.Days,Gu.Abbreviated);break;case"EEEE":t=pc(lc.Days,Gu.Wide);break;case"EEEEE":t=pc(lc.Days,Gu.Narrow);break;case"EEEEEE":t=pc(lc.Days,Gu.Short);break;case"a":case"aa":case"aaa":t=pc(lc.DayPeriods,Gu.Abbreviated);break;case"aaaa":t=pc(lc.DayPeriods,Gu.Wide);break;case"aaaaa":t=pc(lc.DayPeriods,Gu.Narrow);break;case"b":case"bb":case"bbb":t=pc(lc.DayPeriods,Gu.Abbreviated,Uu.Standalone,!0);break;case"bbbb":t=pc(lc.DayPeriods,Gu.Wide,Uu.Standalone,!0);break;case"bbbbb":t=pc(lc.DayPeriods,Gu.Narrow,Uu.Standalone,!0);break;case"B":case"BB":case"BBB":t=pc(lc.DayPeriods,Gu.Abbreviated,Uu.Format,!0);break;case"BBBB":t=pc(lc.DayPeriods,Gu.Wide,Uu.Format,!0);break;case"BBBBB":t=pc(lc.DayPeriods,Gu.Narrow,Uu.Format,!0);break;case"h":t=hc(sc.Hours,1,-12);break;case"hh":t=hc(sc.Hours,2,-12);break;case"H":t=hc(sc.Hours,1);break;case"HH":t=hc(sc.Hours,2);break;case"m":t=hc(sc.Minutes,1);break;case"mm":t=hc(sc.Minutes,2);break;case"s":t=hc(sc.Seconds,1);break;case"ss":t=hc(sc.Seconds,2);break;case"S":t=hc(sc.FractionalSeconds,1);break;case"SS":t=hc(sc.FractionalSeconds,2);break;case"SSS":t=hc(sc.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=mc(oc.Short);break;case"ZZZZZ":t=mc(oc.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=mc(oc.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=mc(oc.Long);break;default:return null}return _c[e]=t,t}(e);a+=t?t(i,n,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),a}function uc(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function cc(e,t){let n=function(e){return uu(e)[du.LocaleId]}(e);if(rc[n]??={},rc[n][t])return rc[n][t];let r="";switch(t){case"shortDate":r=Yu(e,Wu.Short);break;case"mediumDate":r=Yu(e,Wu.Medium);break;case"longDate":r=Yu(e,Wu.Long);break;case"fullDate":r=Yu(e,Wu.Full);break;case"shortTime":r=Qu(e,Wu.Short);break;case"mediumTime":r=Qu(e,Wu.Medium);break;case"longTime":r=Qu(e,Wu.Long);break;case"fullTime":r=Qu(e,Wu.Full);break;case"short":let t=cc(e,"shortTime"),n=cc(e,"shortDate");r=dc(Ju(e,Wu.Short),[t,n]);break;case"medium":let i=cc(e,"mediumTime"),o=cc(e,"mediumDate");r=dc(Ju(e,Wu.Medium),[i,o]);break;case"long":let s=cc(e,"longTime"),l=cc(e,"longDate");r=dc(Ju(e,Wu.Long),[s,l]);break;case"full":let a=cc(e,"fullTime"),u=cc(e,"fullDate");r=dc(Ju(e,Wu.Full),[a,u])}return r&&(rc[n][t]=r),r}function dc(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function fc(e,t,n="-",r,i){let o="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,o=n));let s=String(e);for(;s.length0||l>-n)&&(l+=n),e===sc.Hours)0===l&&-12===n&&(l=12);else if(e===sc.FractionalSeconds)return function(e,t){return fc(e,3).substring(0,t)}(l,t);let a=Ku(s,qu);return fc(l,t,a,r,i)}}function pc(e,t,n=Uu.Format,r=!1){return function(i,o){return function(e,t,n,r,i,o){switch(n){case lc.Months:return function(e,t,n){let r=uu(e),i=ec([r[du.MonthsFormat],r[du.MonthsStandalone]],t);return ec(i,n)}(t,i,r)[e.getMonth()];case lc.Days:return function(e,t,n){let r=uu(e),i=ec([r[du.DaysFormat],r[du.DaysStandalone]],t);return ec(i,n)}(t,i,r)[e.getDay()];case lc.DayPeriods:let s=e.getHours(),l=e.getMinutes();if(o){let e=function(e){let t=uu(e);return Xu(t),(t[du.ExtraData][2]||[]).map((e=>"string"==typeof e?tc(e):[tc(e[0]),tc(e[1])]))}(t),n=function(e,t,n){let r=uu(e);Xu(r);let i=ec([r[du.ExtraData][0],r[du.ExtraData][1]],t)||[];return ec(i,n)||[]}(t,i,r),o=e.findIndex((e=>{if(Array.isArray(e)){let[t,n]=e,r=s>=t.hours&&l>=t.minutes,i=s0?Math.floor(i/60):Math.ceil(i/60);switch(e){case oc.Short:return(i>=0?"+":"")+fc(s,2,o)+fc(Math.abs(i%60),2,o);case oc.ShortGMT:return"GMT"+(i>=0?"+":"")+fc(s,1,o);case oc.Long:return"GMT"+(i>=0?"+":"")+fc(s,2,o)+":"+fc(Math.abs(i%60),2,o);case oc.Extended:return 0===r?"Z":(i>=0?"+":"")+fc(s,2,o)+":"+fc(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}var gc=0,yc=4;function vc(e){let t=e.getDay(),n=0===t?-3:yc-t;return uc(e.getFullYear(),e.getMonth(),e.getDate()+n)}function wc(e,t=!1){return function(n,r){let i;if(t){let e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();i=1+Math.floor((t+e)/7)}else{let e=vc(n),t=function(e){let t=uc(e,gc,1).getDay();return uc(e,0,1+(t<=yc?yc:yc+7)-t)}(e.getFullYear()),r=e.getTime()-t.getTime();i=1+Math.round(r/6048e5)}return fc(i,e,Ku(r,qu))}}function bc(e,t=!1){return function(n,r){return fc(vc(n).getFullYear(),e,Ku(r,qu),t)}}var _c={};function Sc(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Cc(e){return e instanceof Date&&!isNaN(e.valueOf())}var xc=class{_viewContainerRef;_templateRef;_created=!1;constructor(e,t){this._viewContainerRef=e,this._templateRef=t}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},kc=(()=>{class e{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){let t=e===this._ngSwitch;return this._lastCasesMatched||=t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(let t of this._defaultViews)t.enforceState(e)}}static"ɵfac"=function(t){return new(t||e)};static"ɵdir"=ha({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),Ic=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new xc(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static"ɵfac"=function(t){return new(t||e)(Vs(Jl),Vs(Vl),Vs(kc,9))};static"ɵdir"=ha({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})(),Ec=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){let[n,r]=e.split("."),i=-1===n.indexOf("-")?void 0:Wo.DashCase;null!=t?this._renderer.setStyle(this._ngEl.nativeElement,n,r?`${t}${r}`:t,i):this._renderer.removeStyle(this._ngEl.nativeElement,n,i)}_applyChanges(e){e.forEachRemovedItem((e=>this._setStyle(e.key,null))),e.forEachAddedItem((e=>this._setStyle(e.key,e.currentValue))),e.forEachChangedItem((e=>this._setStyle(e.key,e.currentValue)))}static"ɵfac"=function(t){return new(t||e)(Vs(wo),Vs(Hu),Vs(Bl))};static"ɵdir"=ha({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),Tc=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let e=this._viewContainerRef;if(this._viewRef&&e.remove(e.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);let t=this._createContextForwardProxy();this._viewRef=e.createEmbeddedView(this.ngTemplateOutlet,t,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,t,n)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,t,n),get:(e,t,n)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,t,n)}})}static"ɵfac"=function(t){return new(t||e)(Vs(Jl))};static"ɵdir"=ha({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[rr]})}return e})(),Dc=new _t(""),Nc=new _t(""),Oc=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(e,t,n){this.locale=e,this.defaultTimezone=t,this.defaultOptions=n}transform(e,t,n,r){if(null==e||""===e||e!=e)return null;try{let i=t??this.defaultOptions?.dateFormat??"mediumDate",o=n??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return ac(e,i,r||this.locale,o)}catch(e){throw e.message,new Xe(2100,!1)}}static"ɵfac"=function(t){return new(t||e)(Vs(Tu,16),Vs(Dc,24),Vs(Nc,24))};static"ɵpipe"=function(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}({name:"date",type:e,pure:!0})}return e})(),Mc=(()=>{class e{static"ɵfac"=function(t){return new(t||e)};static"ɵmod"=function(e){return rt((()=>({type:e.type,bootstrap:e.bootstrap||sn,declarations:e.declarations||sn,imports:e.imports||sn,exports:e.exports||sn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null})))}({type:e});static"ɵinj"=function(e){return{providers:e.providers||[],imports:e.imports||[]}}({})}return e})();function Vc(e){return"server"===e}var Ac=class extends Bu{supportsDOMEvents=!0},Fc=class e extends Ac{static makeCurrent(){!function(e){zu??=e}(new e)}onAndCancel(e,t,n){return e.addEventListener(t,n),()=>{e.removeEventListener(t,n)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.remove()}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){let t=(Rc=Rc||document.querySelector("base"))?Rc.getAttribute("href"):null;return null==t?null:function(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){Rc=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let e=n.indexOf("="),[r,i]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,e)}},Rc=null,jc=(()=>{class e{build(){return new XMLHttpRequest}static"ɵfac"=function(t){return new(t||e)};static"ɵprov"=ht({token:e,factory:e.ɵfac})}return e})(),Lc=new _t(""),Pc=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach((e=>{e.manager=this})),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find((t=>t.supports(e))),!t)throw new Xe(5101,!1);return this._eventNameToPlugin.set(e,t),t}static"ɵfac"=function(t){return new(t||e)(Ut(Lc),Ut(io))};static"ɵprov"=ht({token:e,factory:e.ɵfac})}return e})(),Hc=class{_doc;constructor(e){this._doc=e}manager},zc="ng-app-id";function Zc(e){for(let t of e)t.remove()}function Bc(e,t){let n=t.createElement("style");return n.textContent=e,n}function $c(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Uc=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,t,n,r={}){this.doc=e,this.appId=t,this.nonce=n,this.isServer=Vc(r),function(e,t,n){let r=e.head?.querySelectorAll(`style[${zc}="${t}"]`);if(r)for(let e of r)e.textContent&&(e.removeAttribute(zc),n.set(e.textContent,{usage:0,elements:[e]}))}(e,t,this.inline),this.hosts.add(e.head)}addStyles(e,t){for(let t of e)this.addUsage(t,this.inline,Bc);t?.forEach((e=>this.addUsage(e,this.external,$c)))}removeStyles(e,t){for(let t of e)this.removeUsage(t,this.inline);t?.forEach((e=>this.removeUsage(e,this.external)))}addUsage(e,t,n){let r=t.get(e);r?r.usage++:t.set(e,{usage:1,elements:[...this.hosts].map((t=>this.addElement(t,n(e,this.doc))))})}removeUsage(e,t){let n=t.get(e);n&&(n.usage--,n.usage<=0&&(Zc(n.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Zc(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:n}]of this.inline)n.push(this.addElement(e,Bc(t,this.doc)));for(let[t,{elements:n}]of this.external)n.push(this.addElement(e,$c(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),this.isServer&&t.setAttribute(zc,this.appId),e.appendChild(t)}static"ɵfac"=function(t){return new(t||e)(Ut($u),Ut(Oo),Ut(Fo,8),Ut(Ao))};static"ɵprov"=ht({token:e,factory:e.ɵfac})}return e})(),Gc={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"},Wc=/%COMP%/g,qc="%COMP%",Yc=`_nghost-${qc}`,Qc=`_ngcontent-${qc}`,Jc=new _t("",{providedIn:"root",factory:()=>true});function Kc(e,t){return t.map((t=>t.replace(Wc,e)))}var Xc=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,n,r,i,o,s,l=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.removeStylesOnCompDestroy=r,this.doc=i,this.platformId=o,this.ngZone=s,this.nonce=l,this.platformIsServer=Vc(o),this.defaultRenderer=new ed(e,i,s,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===Bo.ShadowDom&&(t=c(u({},t),{encapsulation:Bo.Emulated}));let n=this.getOrCreateRenderer(e,t);return n instanceof id?n.applyToHost(e):n instanceof rd&&n.applyStyles(),n}getOrCreateRenderer(e,t){let n=this.rendererByCompId,r=n.get(t.id);if(!r){let i=this.doc,o=this.ngZone,s=this.eventManager,l=this.sharedStylesHost,a=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(t.encapsulation){case Bo.Emulated:r=new id(s,l,t,this.appId,a,i,o,u);break;case Bo.ShadowDom:return new nd(s,l,e,t,i,o,this.nonce,u);default:r=new rd(s,l,t,a,i,o,u)}n.set(t.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static"ɵfac"=function(t){return new(t||e)(Ut(Pc),Ut(Uc),Ut(Oo),Ut(Jc),Ut($u),Ut(Ao),Ut(io),Ut(Fo))};static"ɵprov"=ht({token:e,factory:e.ɵfac})}return e})(),ed=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(Gc[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(td(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(td(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n="string"==typeof e?this.doc.querySelector(e):e;if(!n)throw new Xe(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;let i=Gc[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=Gc[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(Wo.DashCase|Wo.Important)?e.style.setProperty(t,n,r&Wo.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Wo.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){null!=e&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n){if("string"==typeof e&&!(e=Zu().getGlobalEventTarget(this.doc,e)))throw new Error(`Unsupported event target ${e} for event ${t}`);return this.eventManager.addEventListener(e,t,this.decoratePreventDefault(n))}decoratePreventDefault(e){return t=>{if("__ngUnwrap__"===t)return e;!1===(this.platformIsServer?this.ngZone.runGuarded((()=>e(t))):e(t))&&t.preventDefault()}}};function td(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}var nd=class extends ed{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,o,s,l){super(e,i,o,l),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let a=Kc(r.id,r.styles);for(let e of a){let t=document.createElement("style");s&&t.setAttribute("nonce",s),t.textContent=e,this.shadowRoot.appendChild(t)}let u=r.getExternalStyles?.();if(u)for(let e of u){let t=$c(e,i);s&&t.setAttribute("nonce",s),this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},rd=class extends ed{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,o,s,l){super(e,i,o,s),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r,this.styles=l?Kc(l,n.styles):n.styles,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},id=class extends rd{contentAttr;hostAttr;constructor(e,t,n,r,i,o,s,l){let a=r+"-"+n.id;super(e,t,n,i,o,s,l,a),this.contentAttr=function(e){return Qc.replace(Wc,e)}(a),this.hostAttr=function(e){return Yc.replace(Wc,e)}(a)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}},od=(()=>{class e extends Hc{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}static"ɵfac"=function(t){return new(t||e)(Ut($u))};static"ɵprov"=ht({token:e,factory:e.ɵfac})}return e})(),sd=["alt","control","meta","shift"],ld={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ad={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},ud=(()=>{class e extends Hc{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){let i=e.parseEventName(n),o=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((()=>Zu().onAndCancel(t,i.domEventName,o)))}static parseEventName(t){let n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;let i=e._normalizeKey(n.pop()),o="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),o="code."),sd.forEach((e=>{let t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")})),o+=i,0!=n.length||0===i.length)return null;let l={};return l.domEventName=r,l.fullKey=o,l}static matchEventFullKeyCode(e,t){let n=ld[e.key]||e.key,r="";return t.indexOf("code.")>-1&&(n=e.code,r="code."),!(null==n||!n)&&(n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),sd.forEach((t=>{if(t!==n){(0,ad[t])(e)&&(r+=t+".")}})),r+=n,r===t)}static eventCallback(t,n,r){return i=>{e.matchEventFullKeyCode(i,t)&&r.runGuarded((()=>n(i)))}}static _normalizeKey(e){return"esc"===e?"escape":e}static"ɵfac"=function(t){return new(t||e)(Ut($u))};static"ɵprov"=ht({token:e,factory:e.ɵfac})}return e})(),cd=[{provide:Ao,useValue:"browser"},{provide:Vo,useValue:function(){Fc.makeCurrent()},multi:!0},{provide:$u,useFactory:function(){return function(e){ko=e}(document),document},deps:[]}],dd=[{provide:Cn,useValue:"root"},{provide:ho,useFactory:function(){return new ho},deps:[]},{provide:Lc,useClass:od,multi:!0,deps:[$u,io,Ao]},{provide:Lc,useClass:ud,multi:!0,deps:[$u]},Xc,Uc,Pc,{provide:Zl,useExisting:Xc},{provide:class{},useClass:jc,deps:[]},[]];function fd(e){let t=(new Date).toISOString().split("T")[0],n="";for(let r=0;r=5&&e<23}function pd(e){e||(function(){if(!An())throw new Xe(-203,!1)}(),e=Gt(Bi));let t=new le((t=>e.onDestroy(t.next.bind(t))));return e=>e.pipe(function(e){return ue(((t,n)=>{He(e).subscribe(ce(n,(()=>n.complete()),W)),!n.closed&&t.subscribe(n)}))}(t))}var md=(e,t)=>t.lineNumber,gd=(e,t)=>t.destination,yd=e=>({"background-color":e});function vd(e,t){if(1&e&&(Ka(0,"div",3)(1,"div",4),mu(2),Xa(),Ka(3,"div",5),mu(4,"N/A"),Xa(),Ka(5,"div",6)(6,"span",7),mu(7,"No trips"),Xa()()()),2&e){let e=hu().$implicit,t=hu();Os(),Fa("ngStyle",wu(2,yd,t.getColorByAgency(void 0))),Os(),yu(e.lineNumber)}}function wd(e,t){1&e&&(Ka(0,"span"),mu(1,", "),Xa())}function bd(e,t){if(1&e&&(Ka(0,"span",7),mu(1),_a(2,wd,2,0,"span"),Xa()),2&e){let e=t.$implicit,n=t.$index,r=t.$count,i=hu(4);Os(),vu("",i.getRealTimeArrivalFromNowText(e.realTimeArrivalFromNow)," "),Os(),Ba(n!==r-1?2:-1)}}function _d(e,t){if(1&e&&(Ka(0,"div",3)(1,"div",4),mu(2),Xa(),Ka(3,"div",5),mu(4),Xa(),Ka(5,"div",8),Qr(),Ka(6,"svg",9)(7,"g"),eu(8,"path",10)(9,"path",11)(10,"path",12),Xa()()(),Jr(),Ka(11,"div",6),Wa(12,bd,3,2,"span",7,Ua),Xa()()),2&e){let e=t.$implicit,n=hu(2).$implicit,r=hu();Os(),Fa("ngStyle",wu(3,yd,r.getColorByAgency(e.agency))),Os(),yu(n.lineNumber),Os(2),yu(e.destination),Os(8),Ya(e.arrivals.slice(0,3))}}function Sd(e,t){if(1&e&&Wa(0,_d,14,5,"div",3,gd),2&e){let e=hu().$implicit;Ya(hu().groupBusInfoByDestination(e.info))}}function Cd(e,t){if(1&e&&_a(0,vd,8,4,"div",3)(1,Sd,2,0),2&e){Ba(t.$implicit.info.length?1:0)}}var xd=class e{destroyRef=Gt(Bi);baseBusUrl="https://silent-be.onrender.com/busv2";isBusLoading=!1;isBusError=!1;businformation=[];businformationGrouped=ia([]);station=go();isLocal=go();busLines=go();stopName=ia("");lastUpdated=ia(new Date);ngOnInit(){this.isLocal()&&(this.baseBusUrl="http://localhost:3002/busv2"),this.fetchDataBus(),this.initTime()}initTime(){Qe(3e4).pipe(Ke((()=>hd())),pd(this.destroyRef)).subscribe((()=>{this.fetchDataBus()}))}fetchBusStationsFromCache(){return localStorage.getItem(this.station())}fetchDataBus(){this.isBusLoading=!0,this.isBusError=!1,this.businformation=[];let e=this.fetchBusStationsFromCache();e&&this.stopName.set(e);let t=this.busLines()?.join(","),n=`${this.baseBusUrl}?station=${this.station()}&lines=${t}`;fetch(n,{headers:{key:fd("natan"),"Content-Type":"application/json"}}).catch((()=>{this.isBusError=!0})).then((e=>e.json())).then((e=>{this.stopName.set(e.stationName),this.businformation=e.businformation,this.businformationGrouped.set([]),this.station&&localStorage.setItem(this.station()?.toString(),e.stationName),this.businformation.forEach((e=>{let t=this.businformationGrouped().find((t=>t.lineNumber===e.lineNumber));t?t.info.push(e):(this.businformationGrouped(),this.businformationGrouped.set([...this.businformationGrouped(),{lineNumber:e.lineNumber,info:[e]}]))})),this.busLines().forEach((e=>{let t=this.businformationGrouped().find((t=>t.lineNumber===e.toString()));if(t)this.saveBusToCache(e.toString(),JSON.stringify(t));else{let t=this.readBusFromCache(e.toString());this.businformationGrouped().push({lineNumber:e.toString(),info:[{destination:t?t?.info?.[0].destination:"N/A",lineNumber:e.toString(),agency:t?t?.info?.[0].agency:void 0,realTimeArrivalFromNow:t?t?.info?.[0].realTimeArrivalFromNow:0}]})}})),this.lastUpdated.set(new Date),this.isBusLoading=!1})).catch((()=>{this.isBusError=!0}))}saveBusToCache(e,t){let n=`${this.station()}-${e}`;localStorage.setItem(n,JSON.stringify(t))}readBusFromCache(e){let t=`${this.station}-${e}`;return JSON.parse(localStorage.getItem(t)||"{}")}groupBusInfoByDestination(e){let t=[],n=new Map;return e.forEach((e=>{let r=e.destination??"N/A",i=n.get(r);i||(i={destination:e.destination??"N/A",agency:e.agency,arrivals:[]},n.set(r,i),t.push(i)),!i.agency&&e.agency&&(i.agency=e.agency),i.arrivals.push(e)})),t}getColorByAgency(e){switch(e){case"3":return"rgb(1, 131, 105)";case"15":return"rgb(247, 143, 30)";case"22":return"red";default:return"blue"}}getRealTimeArrivalFromNowText(e){return e?e>=3600?`${Math.round(e/3600)} hours`:e>=60?`${Math.round(e/60)} min`:`${Math.round(e)} sec`:"No trips"}static"ɵfac"=function(t){return new(t||e)};static"ɵcmp"=ua({type:e,selectors:[["app-bus"]],inputs:{station:[1,"station"],isLocal:[1,"isLocal"],busLines:[1,"busLines"]},decls:9,vars:5,consts:[[1,"bus-main"],[1,"stop-name"],[1,"lines"],[1,"lines__item"],[1,"line-number",3,"ngStyle"],[1,"destDest"],[1,"bus-info"],[1,"bus-info__time"],[1,"signal"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","fill","currentColor","height","10px","width","10px","version","1.1","id","Capa_1","viewBox","0 0 455 455",0,"xml","space","preserve"],["d","M67.5,320C30.28,320,0,350.28,0,387.5S30.28,455,67.5,455s67.5-30.28,67.5-67.5S104.72,320,67.5,320z M67.5,440 C38.552,440,15,416.449,15,387.5S38.552,335,67.5,335s52.5,23.551,52.5,52.5S96.448,440,67.5,440z"],["d","M67.5,160C46.822,160,30,176.822,30,197.5S46.822,235,67.5,235c84.089,0,152.5,68.411,152.5,152.5 c0,20.678,16.822,37.5,37.5,37.5s37.5-16.822,37.5-37.5c0-60.768-23.664-117.898-66.633-160.867 C185.397,183.664,128.268,160,67.5,160z M257.5,410c-12.406,0-22.5-10.093-22.5-22.5C235,295.14,159.859,220,67.5,220 C55.094,220,45,209.907,45,197.5S55.094,175,67.5,175c56.761,0,110.124,22.104,150.26,62.24C257.896,277.375,280,330.739,280,387.5 C280,399.907,269.906,410,257.5,410z"],["d","M424.532,236.656c-19.519-46.148-47.454-87.585-83.028-123.16c-35.576-35.576-77.013-63.511-123.16-83.029 C170.547,10.25,119.796,0,67.5,0C46.822,0,30,16.822,30,37.5S46.822,75,67.5,75C239.813,75,380,215.187,380,387.5 c0,20.678,16.822,37.5,37.5,37.5s37.5-16.822,37.5-37.5C455,335.205,444.749,284.454,424.532,236.656z M417.5,410 c-12.406,0-22.5-10.093-22.5-22.5C395,206.916,248.084,60,67.5,60C55.094,60,45,49.907,45,37.5S55.094,15,67.5,15 c50.277,0,99.063,9.852,145,29.282c44.359,18.762,84.194,45.618,118.396,79.82c34.203,34.202,61.059,74.037,79.821,118.397 c19.43,45.939,29.282,94.724,29.282,145C440,399.907,429.906,410,417.5,410z"]],template:function(e,t){1&e&&(Ka(0,"div",0)(1,"div",1),mu(2),Xa(),Ka(3,"div"),mu(4),function(e,t){let n,r=Ir(),i=e+Un;r.firstCreatePass?(n=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=en(n.type)),s=Ft(Vs);try{let e=_i(!1),t=o();return _i(e),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(r,kr(),i,t),t}finally{Ft(s)}}(5,"date"),Xa(),Ka(6,"div",2),Wa(7,Cd,2,1,null,null,md),Xa()()),2&e&&(Os(2),yu(t.stopName()),Os(2),vu("Last updated: ",Su(5,2,t.lastUpdated(),"HH:mm:ss"),""),Os(3),Ya(t.businformationGrouped()))},dependencies:[Oc,Ec],styles:[".bus-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.stop-name[_ngcontent-%COMP%]{font-size:18px;margin-bottom:5px}.lines[_ngcontent-%COMP%]{width:100%}.lines__item[_ngcontent-%COMP%]{display:flex;border:1px solid black;padding:15px 10px;border-radius:5px;margin-bottom:10px;line-height:20px}.destDest[_ngcontent-%COMP%]{width:200px;margin-inline-start:30px}.line-number[_ngcontent-%COMP%]{width:25px;padding-left:4px;padding-right:4px;text-align:center;color:#fff;border-radius:2px}.signal[_ngcontent-%COMP%]{width:20px;height:20px;color:green}.bus-info__time[_ngcontent-%COMP%]{margin-inline-end:5px}.bus-info[_ngcontent-%COMP%]{min-width:55px}"]})},kd={17900:"ת. רכבת שדרות/בגין",17902:"דרך בית וגן/החרוב",17903:"בית העלמין/שדרות משה סנה",17905:"האורגים/התקשורת",17906:"האורגים/הבנאים",17908:"הבנאים/האורגים",17910:"האורגים/התקשורת",17106:"שדרות",17104:"תל אביב ההגנה",17102:"רשל''צ משה דיין",17100:"הוד השרון",17098:"ראשונים",17096:"יבנה מערב",17094:"ראש העין צפון",17092:"כפר סבא",17090:"נתב''ג",17088:"להבים רהט",17086:"דימונה",17084:"באר שבע מרכז",17082:"באר שבע צפון",17080:"קרית גת",17078:"ירושלים מלחה",17076:"ירושלים גן חיות",17074:"בית שמש",17072:"אשקלון",17070:"אשדוד עד הלום",17068:"יבנה מזרח",17066:"באר יעקב",17064:"רחובות",17062:"לוד גני אביב",17060:"רמלה",17058:"לוד",17056:"כפר חבד",17054:"בת ים קוממיות",17052:"בת ים אלי כהן - יוספטל",17050:"חולון וולפסון",17048:"צומת חולון",17046:"השלום",17044:"סגולה",17042:"קרית אריה",17040:"בני ברק",17038:"תל אביב מרכז",17036:"תא אוניברסיטה",17034:"הרצליה",17032:"בית יהושע",17030:"נתניה",17028:"חדרה מערב",17026:"קיסריה פרדס חנה",17024:"בנימינה",17022:"עתלית",17020:"חוף הכרמל",17018:"בת גלים",17016:"חיפה מרכז",17014:"נהריה",17012:"עכו",17010:"חוצות מפרץ",17008:"מרכזית המפרץ/קו החוף",17004:"קרית חיים",17002:"מודיעין מרכז",17e3:"פאתי מודיעין",17108:"נתיבות",17109:"אופקים",17113:"כפר ברוך",17112:"עפולה",17111:"בית שאן",17110:"כפר יהושע",17114:"נתניה קריית ספיר",17306:"מרכז הכרמל",17305:"בני ציון",17304:"מסדה",17302:"הנביאים",17301:"הדר העירייה",17300:"עיר תחתית",17116:"אחיהוד",17115:"כרמיאל",17117:"קרית מוצקין",17118:"ירושלים/יצחק נבון",17122:"רעננה דרום",17121:"רעננה מערב",17120:"מזכרת בתיה",17119:"קרית מלאכי",17123:"מרכזית המפרץ",17312:"אוניברסיטת חיפה",17310:"טכניון מרכז",17307:"מרכזית המפרץ",17313:"מרכזית המפרץ",17314:"טכניון מרכז",17315:"אוניברסיטת חיפה"};function Id(e,t){if(1&e&&(Ka(0,"div",11),mu(1),Xa(),Ka(2,"div")(3,"span",12),mu(4),Xa()()),2&e){let e,t=hu();Os(),vu(" ",t.getShortTime(null==(e=t.trainData().trains[0])?null:e.arrivalTime)," "),Os(3),yu(t.getNextTrains())}}function Ed(e,t){if(1&e&&mu(0),2&e){let e,t=hu();vu(" ",null==(e=t.getStationName(t.fromStation()))?null:e.error," ")}}function Td(e,t){if(1&e&&mu(0),2&e){let e,t=hu();vu(" ",null==(e=t.getStationName(t.toStation()))?null:e.error," ")}}var Dd=class e{baseTrainUrl="https://silent-be.onrender.com/trains";isTrainLoading=!1;destroyRef=Gt(Bi);fromStation=go();toStation=go();isLocal=go();trainData=ia(void 0);trains;cdr=Gt(Au);ngOnInit(){this.isLocal()&&(this.baseTrainUrl="http://localhost:3002/trains"),this.fetchTrainData(),this.initTime()}initTime(){Qe(3e4).pipe(Ke((()=>hd())),pd(this.destroyRef)).subscribe((()=>{this.fetchTrainData()}))}fetchTrainData(){this.isTrainLoading=!0;let e=`${this.baseTrainUrl}?fromStation=${this.fromStation()}&toStation=${this.toStation()}`;fetch(e,{headers:{key:fd("natan"),"Content-Type":"application/json"}}).then((e=>((e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{l(n.next(e))}catch(e){i(e)}},s=e=>{try{l(n.throw(e))}catch(e){i(e)}},l=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,s);l((n=n.apply(e,t)).next())})))(this,null,(function*(){let t=yield e.json();this.trainData.set(t),this.isTrainLoading=!1,this.cdr.detectChanges()}))))}getStationName(e){let t=kd[e];return t?{name:t,error:null}:{name:null,error:`Error: Station ID ${e} not found, check for the updated train list`}}getStorageKeyTrains(){if(!this.fromStation||!this.toStation)return"";let e=(new Date).toLocaleDateString(void 0);return`${this.fromStation()}-${this.toStation()}-${e}`}getFirstTrain(){return this.trains?.find((e=>{let t=e.departureTime,n=new Date;return new Date(t)>n}))?.trains?.[0]}getShortTime(e){if(!e)return"";let t=e?.split("T")[1],[n,r]=t?.split(":");return`${n}:${r}`}getNextTrains(){let e=this.trainData()?.trains.filter((e=>{let t=e.arrivalTime,n=new Date;return new Date(t)>n}));return e=e?.splice(1,3),e?.map((e=>this.getShortTime(e.arrivalTime))).join(", ")}static"ɵfac"=function(t){return new(t||e)};static"ɵcmp"=ua({type:e,selectors:[["app-train"]],inputs:{fromStation:[1,"fromStation"],toStation:[1,"toStation"],isLocal:[1,"isLocal"]},decls:18,vars:5,consts:[[1,"main-train"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","width","25px","height","25px","viewBox","0 0 15 15","version","1.1"],["id","surface1"],["d","M 13.675781 10.863281 L 2.242188 10.863281 C 1.695312 10.863281 1.054688 9.855469 1.054688 9.203125 C 1.054688 8.074219 1.101562 6.949219 1.101562 5.878906 C 1.25 4.636719 1.648438 3.507812 2.042969 2.382812 C 2.140625 2.144531 2.289062 1.90625 2.539062 1.90625 L 6.648438 1.90625 C 7.042969 2.085938 7.4375 2.261719 7.585938 2.796875 C 8.773438 6.296875 11.152344 7.957031 13.824219 8.550781 L 13.824219 10.683594 C 13.824219 10.742188 13.726562 10.863281 13.675781 10.863281 Z M 13.675781 10.863281 ",2,"stroke","none","fill-rule","evenodd","fill","rgb(0%,0%,0%)","fill-opacity","1"],["d","M 1.84375 4.929688 L 7.042969 4.929688 C 7.191406 4.929688 7.242188 4.574219 7.140625 4.398438 C 6.992188 3.804688 6.746094 2.617188 6.496094 2.617188 L 2.488281 2.617188 C 2.242188 2.617188 1.992188 3.804688 1.746094 4.398438 C 1.695312 4.636719 1.746094 4.929688 1.84375 4.929688 Z M 1.84375 4.929688 ",2,"stroke","none","fill-rule","evenodd","fill","rgb(100%,100%,100%)","fill-opacity","1"],["d","M 2.6875 7.898438 C 2.6875 8.253906 2.488281 8.488281 2.242188 8.488281 C 1.992188 8.488281 1.746094 8.253906 1.746094 7.898438 C 1.746094 7.601562 1.992188 7.363281 2.242188 7.363281 C 2.488281 7.363281 2.6875 7.601562 2.6875 7.898438 Z M 6.648438 7.898438 C 6.648438 8.253906 6.449219 8.488281 6.199219 8.488281 C 5.953125 8.488281 5.707031 8.253906 5.707031 7.898438 C 5.707031 7.601562 5.953125 7.363281 6.199219 7.363281 C 6.449219 7.363281 6.648438 7.601562 6.648438 7.898438 Z M 6.648438 7.898438 ",2,"stroke","none","fill-rule","nonzero","fill","rgb(100%,100%,100%)","fill-opacity","1"],["d","M 8.921875 6.234375 L 8.921875 8.3125 L 8.132812 7.835938 C 8.082031 7.007812 8.03125 6.117188 8.03125 5.226562 C 8.328125 5.523438 8.675781 6 8.921875 6.234375 Z M 10.113281 7.363281 L 10.160156 8.964844 L 9.367188 8.550781 L 9.367188 6.710938 C 9.714844 7.066406 9.863281 7.125 10.113281 7.363281 Z M 10.507812 7.660156 L 10.507812 9.082031 C 10.753906 9.203125 11.003906 9.261719 11.25 9.320312 L 11.25 8.015625 Z M 11.546875 8.195312 L 11.546875 9.4375 C 11.746094 9.5 11.941406 9.558594 12.140625 9.558594 L 12.140625 8.371094 Z M 12.4375 8.488281 L 12.4375 9.617188 C 12.585938 9.675781 12.785156 9.675781 12.933594 9.675781 L 12.933594 8.609375 Z M 13.179688 8.667969 L 13.179688 9.734375 L 13.578125 9.792969 L 13.578125 8.726562 Z M 13.179688 8.667969 ",2,"stroke","none","fill-rule","evenodd","fill","rgb(100%,100%,100%)","fill-opacity","1"],["d","M 1.054688 11.753906 L 2.042969 11.753906 L 2.042969 11.160156 L 3.527344 11.160156 L 3.527344 11.753906 L 5.707031 11.753906 L 5.707031 11.160156 L 13.824219 11.160156 L 13.824219 11.753906 C 11.546875 11.8125 9.21875 11.929688 7.984375 12.582031 L 1.054688 12.582031 Z M 1.054688 11.753906 ",2,"stroke","none","fill-rule","nonzero","fill","rgb(0%,0%,0%)","fill-opacity","1"],[1,"station-name"],[2,"margin","0 10px"],[2,"margin-top","10px"],[1,"first-train"],[2,"font-size","16px"]],template:function(e,t){if(1&e&&(Ka(0,"div",0),Qr(),Ka(1,"svg",1)(2,"g",2),eu(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),Xa()(),Jr(),Ka(8,"div",8)(9,"span"),mu(10),Ka(11,"span",9),mu(12,"לכיוון"),Xa(),mu(13),Xa()(),_a(14,Id,5,2)(15,Ed,1,1),Ka(16,"div",10),_a(17,Td,1,1),Xa()()),2&e){let e,n,r,i;Os(10),vu("",null==(e=t.getStationName(t.fromStation()))?null:e.name," "),Os(3),vu(" ",null==(n=t.getStationName(t.toStation()))?null:n.name,""),Os(),Ba(t.trainData()?14:-1),Os(),Ba(null!=(r=t.getStationName(t.fromStation()))&&r.error?15:-1),Os(2),Ba(null!=(i=t.getStationName(t.toStation()))&&i.error?17:-1)}},styles:[".main-train[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.station-name[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:5px;font-size:18px}.first-train[_ngcontent-%COMP%]{margin:10px;font-size:32px;color:#00f}"]})};function Nd(e,t){1&e&&iu(0)}function Od(e,t){if(1&e&&(nu(0),_a(1,Nd,1,0,"ng-container",4),ru()),2&e){hu();let e=pu(5);Os(),Fa("ngTemplateOutlet",e)}}function Md(e,t){1&e&&iu(0)}function Vd(e,t){if(1&e&&(nu(0),_a(1,Md,1,0,"ng-container",4),ru()),2&e){hu();let e=pu(7);Os(),Fa("ngTemplateOutlet",e)}}function Ad(e,t){if(1&e&&eu(0,"app-bus",5),2&e){let e=hu(2);Fa("station",e.station)("busLines",e.busLines)("isLocal",e.isLocal)}}function Fd(e,t){if(1&e&&_a(0,Ad,1,3,"app-bus",5),2&e){let e=hu();Ba(e.station&&e.shouldShow()?0:-1)}}function Rd(e,t){if(1&e&&eu(0,"app-train",6),2&e){let e=hu(2);Fa("fromStation",e.fromStation)("toStation",e.toStation)("isLocal",e.isLocal)}}function jd(e,t){if(1&e&&_a(0,Rd,1,3,"app-train",6),2&e){let e=hu();Ba(e.fromStation&&e.toStation&&e.shouldShow()?0:-1)}}var Ld,Pd=class e{cdr=Gt(Au);station;busLines;fromStation;toStation;isLocal=!1;isTrain=!1;myConfig=go();shouldShow=ia(!0);constructor(){document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState?this.shouldShow.set(!1):this.shouldShow.set(!0)})),setTimeout((()=>{this.myConfig()&&(this.station=this.myConfig().station,this.busLines=this.myConfig().busLines,this.fromStation=this.myConfig().fromStation,this.toStation=this.myConfig().toStation,this.isLocal=this.myConfig().isLocal,this.isTrain=this.myConfig().isTrain||!1,this.cdr.detectChanges())}),200)}setConfig(e){}static"ɵfac"=function(t){return new(t||e)};static"ɵcmp"=ua({type:e,selectors:[["app-root"]],inputs:{myConfig:[1,"myConfig"]},decls:8,vars:3,consts:[["bus",""],["train",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngTemplateOutlet"],[3,"station","busLines","isLocal"],[3,"fromStation","toStation","isLocal"]],template:function(e,t){1&e&&(Ka(0,"div"),nu(1,2),_a(2,Od,2,1,"ng-container",3)(3,Vd,2,1,"ng-container",3),ru(),Xa(),_a(4,Fd,1,1,"ng-template",null,0,Cu)(6,jd,1,1,"ng-template",null,1,Cu)),2&e&&(Os(),Fa("ngSwitch",t.isTrain),Os(),Fa("ngSwitchCase",!1),Os(),Fa("ngSwitchCase",!0))},dependencies:[Mc,Tc,kc,Ic,xd,Dd],styles:[":host{padding:16px 10px;max-width:800px;background:var(--ha-card-background, var(--card-background-color, #fff));box-shadow:var(--ha-card-box-shadow, none);box-sizing:border-box;border-radius:var(--ha-card-border-radius, 12px);border-width:var(--ha-card-border-width, 1px);border-style:solid;border-color:var(--ha-card-border-color, var(--divider-color, #e0e0e0));color:var(--primary-text-color);display:block;transition:all .3s ease-out 0s;position:relative;font-size:14px}\n"],encapsulation:3})},Hd={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function zd(e,t,n){let r=n;return function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some(((t,n)=>!("*"===t||!function(e,t){if(!Ld){let e=Element.prototype;Ld=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&Ld.call(e,t)}(e,t))&&(r=n,!0))),r}var Zd=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(zl).resolveComponentFactory(e);for(let e of this.componentFactory.inputs)this.inputMap.set(e.propName,e.templateName)}create(e){return new Bd(this.componentFactory,e,this.inputMap)}},Bd=class{componentFactory;injector;inputMap;eventEmitters=new ye(1);events=this.eventEmitters.pipe(function(e,t){return ue(((n,r)=>{let i=null,o=0,s=!1,l=()=>s&&!i&&r.complete();n.subscribe(ce(r,(n=>{i?.unsubscribe();let s=0,a=o++;He(e(n,a)).subscribe(i=ce(r,(e=>r.next(t?t(n,e,a,s++):e)),(()=>{i=null,l()})))}),(()=>{s=!0,l()})))}))}((e=>Je(...e))));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(e,t,n){this.componentFactory=e,this.injector=t,this.inputMap=n,this.ngZone=this.injector.get(io),this.appRef=this.injector.get(Ma),this.cdScheduler=t.get(Gi),this.elementZone=typeof Zone>"u"?null:this.ngZone.run((()=>Zone.current))}connect(e){this.runInZone((()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)}))}disconnect(){this.runInZone((()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Hd.schedule((()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)}),10))}))}getInputValue(e){return this.runInZone((()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e]))}setInputValue(e,t){null!==this.componentRef?this.runInZone((()=>{this.componentRef.setInput(this.inputMap.get(e)??e,t),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})):this.initialInputValues.set(e,t)}initializeComponent(e){let t=zi.create({providers:[],parent:this.injector}),n=function(e,t){let n=e.childNodes,r=t.map((()=>[])),i=-1;t.some(((e,t)=>"*"===e&&(i=t,!0)));for(let e=0,o=n.length;e{let r=e.instance[t];return new le((e=>{let t=r.subscribe((t=>e.next({name:n,value:t})));return()=>t.unsubscribe()}))}));this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},$d=class extends HTMLElement{ngElementEventsSubscription=null};function Ud(e,t){let n=function(e,t){return t.get(zl).resolveComponentFactory(e).inputs}(e,t.injector),r=t.strategyFactory||new Zd(e,t.injector),i=function(e){let t={};return e.forEach((({propName:e,templateName:n,transform:r})=>{t[function(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}(n)]=[e,r]})),t}(n);class o extends $d{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let e=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach((({propName:t,transform:n,isSignal:r})=>{if(!this.hasOwnProperty(t)||r)return;let i=this[t];delete this[t],e.setInputValue(t,i,n)}))}return this._ngElementStrategy}_ngElementStrategy;constructor(e){super(),this.injector=e}attributeChangedCallback(e,t,n,r){let[o,s]=i[e];this.ngElementStrategy.setInputValue(o,n,s)}connectedCallback(){let e=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),e=!0),this.ngElementStrategy.connect(this),e||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe((e=>{let t=new CustomEvent(e.name,{detail:e.value});this.dispatchEvent(t)}))}}return n.forEach((({propName:e,transform:t})=>{Object.defineProperty(o.prototype,e,{get(){return this.ngElementStrategy.getInputValue(e)},set(n){this.ngElementStrategy.setInputValue(e,n,t)},configurable:!0,enumerable:!0})})),o}return function(e){return function(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=Vu(r),o=[ku({}),{provide:Gi,useExisting:Eu},...n||[]];return Ou({r3Injector:new la({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:i,rootComponent:t})}catch(e){return Promise.reject(e)}}(function(e){return{appProviders:[...dd,...e?.providers??[]],platformProviders:cd}}(e))}({providers:[(zo("NgZoneless"),function(e){return{"ɵproviders":e}}([{provide:Gi,useExisting:Eu},{provide:io,useClass:co},{provide:Wi,useValue:!0},{provide:Yi,useValue:!1},[]]))]}).then((e=>{var t=Ud(Pd,{injector:e.injector});window.myelement=t,customElements.define("silent-bus-render",t)})).catch((e=>console.error("Error registering silent-bus-render:",e))),n}();return e(r)}(); 2 | 3 | 4 | class SilentBusWrapper extends HTMLElement { 5 | isCardInit = false; 6 | constructor() { 7 | super(); 8 | } 9 | 10 | set hass(hass) { 11 | const busElement = this.querySelector('#silent-bus-render'); 12 | if (this.isCardInit && busElement) { 13 | return; 14 | } 15 | // Initialize the content if it's not there yet. 16 | this.innerHTML = ` 17 | 18 | `; 19 | 20 | 21 | setTimeout(() => { 22 | const busElement = this.querySelector('#silent-bus-render'); 23 | if (busElement) { 24 | busElement.myConfig = this.config; 25 | this.isCardInit = true; 26 | }}) 27 | 28 | } 29 | 30 | setConfig(config) { 31 | this.config = config; 32 | } 33 | 34 | } 35 | 36 | customElements.define('silent-bus', SilentBusWrapper); 37 | --------------------------------------------------------------------------------