diff --git a/dist/assets/i18n/translations_de.json b/dist/assets/i18n/translations_de.json index b0f5f76..aa5b172 100644 --- a/dist/assets/i18n/translations_de.json +++ b/dist/assets/i18n/translations_de.json @@ -131,9 +131,13 @@ "compensationValuePlaceholder": "Kompensationswert", "customValue": "Eigenen Wert eingeben...", "debug": "Debug-Modus aktivieren (keine Neustarts, HDMI-Ausgang an, erfolgreiche Übertragungen im Protokoll)", - "dummyload": "Dummyload aktivieren (nur nützlich mit einer Powerbank)", + "debugSelect": "Debug-Level auswählen", + "debuglevel": "Debuglevel", + "dummyload": "Zeitdauer des Dummyloads auswählen (nur nützlich mit einer Powerbank)", + "dummyloadTimespan": "Zeitdauer des Dummyloads", "enableCompensation": "Temperaturkompensation bei temperaturbedingten Messabweichungen", "humidity": "Luftfeuchtigkeit", + "i2c_addr": "I2C-Adresse
Nur notwendig, wenn mehr als ein baugleicher Sensor angeschlossen wird.", "interval": "Intervall", "invert": "Vorzeichen umkehren", "ledPin": "Externe LED GPIO", @@ -150,13 +154,16 @@ "selectType": "Auswahl des Sensormodells", "sensor": "Sensor", "sensor_0": "Temperatursensor (DS18b20)", - "sensor_1": "BME680 (Temperatur+Luftfeuchtigkeit+Luftdruck+Qualität)", + "sensor_1": "Temperatur+Luftfeuchtigkeit+Luftdruck+Qualität (BME680)", + "sensor_10": "Luftfeuchtigkeit und Temperatur (AHT10)", "sensor_2": "Gewichtssensor (HX711)", "sensor_3": "Luftfeuchtigkeit und Temperatur (DHT22)", "sensor_4": "Temperatursensor (MAX6675/MAX31855)", - "sensor_5": "BME280 (Temperatur+Luftfeuchtigkeit+Luftdruck)", + "sensor_5": "Temperatur+Luftfeuchtigkeit+Luftdruck (BME280)", "sensor_6": "Voltmeter für die Batterie (PCF8591)", "sensor_7": "CO2, Temperatur, Luftduck (EE895)", + "sensor_8": "Luftfeuchtigkeit und Temperatur (HDC1008)", + "sensor_9": "Luftfeuchtigkeit und Temperatur (SHT31)", "sensors": "Sensoren", "shutdownAfterTransfer": "Nach einmaliger Übertragung Raspberry herunterfahren", "temperature": "Temperatur", diff --git a/dist/assets/i18n/translations_el_GR.json b/dist/assets/i18n/translations_el_GR.json index 420f910..cb14173 100644 --- a/dist/assets/i18n/translations_el_GR.json +++ b/dist/assets/i18n/translations_el_GR.json @@ -127,12 +127,15 @@ "selectType": "Επιλέξτε τύπο αισθητήρα", "sensor": "Αισθητήρας", "sensor_0": "Αισθητήρας θερμοκρασίας (DS18b20)", - "sensor_1": "BME680 (θερμοκρασία + υγρασία + πίεση + ποιότητα)", + "sensor_1": "θερμοκρασία + υγρασία + πίεση + ποιότητα (BME680)", + "sensor_10": "Υγρασία και θερμοκρασία (AHT10)", "sensor_2": "Αισθητήρας βάρους (HX711)", "sensor_3": "Υγρασία και θερμοκρασία (DHT22)", "sensor_4": "Αισθητήρας θερμοκρασίας (MAX6675 / MAX31855)", - "sensor_5": "BME280 (θερμοκρασία + υγρασία + πίεση + ποιότητα)", + "sensor_5": "θερμοκρασία + υγρασία + πίεση + ποιότητα (BME280)", "sensor_6": "Βολτόμετρο για μπαταρία (PCF8591)", + "sensor_8": "Υγρασία και θερμοκρασία (HDC1008)", + "sensor_9": "Υγρασία και θερμοκρασία (SHT31)", "sensors": "Αισθητήρες", "shutdownAfterTransfer": "Κλείστε το Raspberry μετά από μία μεταφορά", "temperature": "Θερμοκρασία", diff --git a/dist/assets/i18n/translations_en.json b/dist/assets/i18n/translations_en.json index 59f7c33..729f37a 100644 --- a/dist/assets/i18n/translations_en.json +++ b/dist/assets/i18n/translations_en.json @@ -131,9 +131,13 @@ "compensationValuePlaceholder": "compensation value", "customValue": "Edit custom value...", "debug": "Enable debug mode (no restarts, HDMI output on, successful transfers in the protocol)", + "debugSelect": "Select Debug-Level", + "debuglevel": "Debuglevel", "dummyload": "Activate dummyload (only use together with a Powerbank)", + "dummyloadTimespan": "time duration of the dummy load", "enableCompensation": "Temperature compensation for temperature-induced measurement drifts", "humidity": "humidity", + "i2c_addr": "I2C-Address
only required if more than one sensor is connected.", "interval": "interval", "invert": "invert weight result", "ledPin": "External LED GPIO", @@ -150,13 +154,16 @@ "selectType": "Select type of sensor", "sensor": "sensor", "sensor_0": "Temperature sensor (DS18b20)", - "sensor_1": "BME680 (temperature+humidity+pressure+quality)", + "sensor_1": "temperature+humidity+pressure+quality (BME680)", + "sensor_10": "Humidity and temperature (AHT10)", "sensor_2": "Weight sensor (HX711)", "sensor_3": "Humidity and temperature (DHT22)", "sensor_4": "Temperature sensor (MAX6675/MAX31855)", - "sensor_5": "BME280 (temperature+humidity+pressure+quality)", + "sensor_5": "temperature+humidity+pressure+quality (BME280)", "sensor_6": "Voltmeter for Battery (PCF8591)", "sensor_7": "CO2, temperature, air pressure (EE895)", + "sensor_8": "Humidity and temperature (HDC1008)", + "sensor_9": "Humidity and temperature (SHT31)", "sensors": "Sensors", "shutdownAfterTransfer": "Shut down Raspberry after single transfer", "temperature": "temperature", diff --git a/dist/index.html b/dist/index.html index d3325ce..c65d024 100644 --- a/dist/index.html +++ b/dist/index.html @@ -16,5 +16,5 @@ - + diff --git a/dist/main-es2015.d6b455cd2dbc20fd4437.js b/dist/main-es2015.292b46ed6a974d3ed3a6.js similarity index 79% rename from dist/main-es2015.d6b455cd2dbc20fd4437.js rename to dist/main-es2015.292b46ed6a974d3ed3a6.js index db03ad7..c624466 100644 --- a/dist/main-es2015.d6b455cd2dbc20fd4437.js +++ b/dist/main-es2015.292b46ed6a974d3ed3a6.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+UwR":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("GkNK")),r(n("DgTa"))},"+WPs":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("RY4u")),r(n("0eyc"))},"/ysC":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("S5Je")),r(n("uBVG"))},0:function(e,t,n){e.exports=n("zUnb")},"0EUg":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("bHdf");function i(){return Object(r.a)(1)}},"0eyc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.creditCard=function(e){if(i.isPresent(r.Validators.required(e)))return null;var t=e.value.replace(/[^0-9]+/g,"");if(!/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/.test(t))return{creditCard:!0};for(var n,s,o,a=0,l=t.length-1;l>=0;l--)n=t.substring(l,l+1),s=parseInt(n,10),a+=o&&(s*=2)>=10?s%10+1:s,o=!o;return Boolean(a%10==0&&t)?null:{creditCard:!0}}},"128B":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("Kqap"),i=n("BFxc"),s=n("xbPD"),o=n("mCNh");function a(e,t){return arguments.length>=2?function(n){return Object(o.a)(Object(r.a)(e,t),Object(i.a)(1),Object(s.a)(t))(n)}:function(t){return Object(o.a)(Object(r.a)((t,n,r)=>e(t,n,r+1)),Object(i.a)(1))(t)}}},"1gPL":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.equal=function(e){return function(t){return i.isPresent(r.Validators.required(t))||e===t.value?null:{equal:!0}}}},"1uah":function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});var r=n("yCtX"),i=n("DH7j"),s=n("7o/Q"),o=n("Lhse"),a=n("zx2A");function l(...e){const t=e[e.length-1];return"function"==typeof t&&e.pop(),Object(r.a)(e,void 0).lift(new u(t))}class u{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new c(e,this.resultSelector))}}class c extends s.a{constructor(e,t,n=Object.create(null)){super(e),this.resultSelector=t,this.iterators=[],this.active=0,this.resultSelector="function"==typeof t?t:void 0}_next(e){const t=this.iterators;Object(i.a)(e)?t.push(new h(e)):t.push("function"==typeof e[o.a]?new d(e[o.a]()):new p(this.destination,this,e))}_complete(){const e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(let n=0;nthis.index}hasCompleted(){return this.array.length===this.index}}class p extends a.b{constructor(e,t,n){super(e),this.parent=t,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[o.a](){return this}next(){const e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(e){this.buffer.push(e),this.parent.checkIterators()}subscribe(){return Object(a.c)(this.observable,new a.a(this))}}},"29s/":function(e,t,n){var r=n("WEpk"),i=n("5T2Y"),s=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("uOPS")?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},"2GTP":function(e,t,n){var r=n("eaoh");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("XNiG"),i=n("9ppp");class s extends r.a{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value}next(e){super.next(this._value=e)}}},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return i});let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},"2faE":function(e,t,n){var r=n("5K7Z"),i=n("eUtF"),s=n("G8Mo"),o=Object.defineProperty;t.f=n("jmDH")?Object.defineProperty:function(e,t,n){if(r(e),t=s(t,!0),r(n),i)try{return o(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"35yN":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("6Axs"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.validate=function(e){return s.dateISO(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","dateISO","","formControlName",""],["","dateISO","","formControl",""],["","dateISO","","ngModel",""]],features:[o.\u0275\u0275ProvidersFeature([a])]}),e}();t.DateISOValidator=l},"3N8a":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("quSY");class i extends r.a{constructor(e,t){super()}schedule(e,t=0){return this}}class s extends i{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}},"3Pt+":function(e,t,n){"use strict";n.r(t),n.d(t,"AbstractControl",function(){return ve}),n.d(t,"AbstractControlDirective",function(){return T}),n.d(t,"AbstractFormGroupDirective",function(){return $e}),n.d(t,"COMPOSITION_BUFFER_MODE",function(){return h}),n.d(t,"CheckboxControlValueAccessor",function(){return c}),n.d(t,"CheckboxRequiredValidator",function(){return Ge}),n.d(t,"ControlContainer",function(){return j}),n.d(t,"DefaultValueAccessor",function(){return p}),n.d(t,"EmailValidator",function(){return Ze}),n.d(t,"FormArray",function(){return _e}),n.d(t,"FormArrayName",function(){return Le}),n.d(t,"FormBuilder",function(){return at}),n.d(t,"FormControl",function(){return ye}),n.d(t,"FormControlDirective",function(){return Me}),n.d(t,"FormControlName",function(){return Ue}),n.d(t,"FormGroup",function(){return be}),n.d(t,"FormGroupDirective",function(){return Ne}),n.d(t,"FormGroupName",function(){return Re}),n.d(t,"FormsModule",function(){return ut}),n.d(t,"MaxLengthValidator",function(){return et}),n.d(t,"MinLengthValidator",function(){return Ye}),n.d(t,"NG_ASYNC_VALIDATORS",function(){return v}),n.d(t,"NG_VALIDATORS",function(){return m}),n.d(t,"NG_VALUE_ACCESSOR",function(){return l}),n.d(t,"NgControl",function(){return P}),n.d(t,"NgControlStatus",function(){return N}),n.d(t,"NgControlStatusGroup",function(){return D}),n.d(t,"NgForm",function(){return xe}),n.d(t,"NgModel",function(){return Te}),n.d(t,"NgModelGroup",function(){return Oe}),n.d(t,"NgSelectOption",function(){return K}),n.d(t,"NumberValueAccessor",function(){return F}),n.d(t,"PatternValidator",function(){return nt}),n.d(t,"RadioControlValueAccessor",function(){return H}),n.d(t,"RangeValueAccessor",function(){return q}),n.d(t,"ReactiveFormsModule",function(){return ct}),n.d(t,"RequiredValidator",function(){return ze}),n.d(t,"SelectControlValueAccessor",function(){return G}),n.d(t,"SelectMultipleControlValueAccessor",function(){return X}),n.d(t,"VERSION",function(){return lt}),n.d(t,"Validators",function(){return b}),n.d(t,"\u0275InternalFormsSharedModule",function(){return ot}),n.d(t,"\u0275NgNoValidate",function(){return je}),n.d(t,"\u0275NgSelectMultipleOption",function(){return Y}),n.d(t,"\u0275angular_packages_forms_forms_a",function(){return rt}),n.d(t,"\u0275angular_packages_forms_forms_b",function(){return it}),n.d(t,"\u0275angular_packages_forms_forms_ba",function(){return We}),n.d(t,"\u0275angular_packages_forms_forms_bb",function(){return Qe}),n.d(t,"\u0275angular_packages_forms_forms_bc",function(){return Xe}),n.d(t,"\u0275angular_packages_forms_forms_bd",function(){return Je}),n.d(t,"\u0275angular_packages_forms_forms_be",function(){return tt}),n.d(t,"\u0275angular_packages_forms_forms_c",function(){return st}),n.d(t,"\u0275angular_packages_forms_forms_d",function(){return ot}),n.d(t,"\u0275angular_packages_forms_forms_e",function(){return u}),n.d(t,"\u0275angular_packages_forms_forms_f",function(){return d}),n.d(t,"\u0275angular_packages_forms_forms_g",function(){return M}),n.d(t,"\u0275angular_packages_forms_forms_h",function(){return A}),n.d(t,"\u0275angular_packages_forms_forms_i",function(){return we}),n.d(t,"\u0275angular_packages_forms_forms_j",function(){return Ie}),n.d(t,"\u0275angular_packages_forms_forms_k",function(){return Ee}),n.d(t,"\u0275angular_packages_forms_forms_l",function(){return R}),n.d(t,"\u0275angular_packages_forms_forms_m",function(){return L}),n.d(t,"\u0275angular_packages_forms_forms_n",function(){return B}),n.d(t,"\u0275angular_packages_forms_forms_o",function(){return U}),n.d(t,"\u0275angular_packages_forms_forms_p",function(){return Ve}),n.d(t,"\u0275angular_packages_forms_forms_q",function(){return Pe}),n.d(t,"\u0275angular_packages_forms_forms_r",function(){return He}),n.d(t,"\u0275angular_packages_forms_forms_s",function(){return Ae}),n.d(t,"\u0275angular_packages_forms_forms_t",function(){return De}),n.d(t,"\u0275angular_packages_forms_forms_u",function(){return Fe}),n.d(t,"\u0275angular_packages_forms_forms_v",function(){return W}),n.d(t,"\u0275angular_packages_forms_forms_w",function(){return Q}),n.d(t,"\u0275angular_packages_forms_forms_x",function(){return Y}),n.d(t,"\u0275angular_packages_forms_forms_y",function(){return je}),n.d(t,"\u0275angular_packages_forms_forms_z",function(){return qe});var r=n("fXoL"),i=n("ofXK"),s=n("cp0P"),o=n("Cfvw"),a=n("lJxs");const l=new r.InjectionToken("NgValueAccessor"),u={provide:l,useExisting:Object(r.forwardRef)(()=>c),multi:!0};let c=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([u])]}),e})();const d={provide:l,useExisting:Object(r.forwardRef)(()=>p),multi:!0},h=new r.InjectionToken("CompositionEventMode");let p=(()=>{class e{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Object(i.s)()?Object(i.s)().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](h,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[r["\u0275\u0275ProvidersFeature"]([d])]}),e})();function f(e){return null==e||0===e.length}function g(e){return null!=e&&"number"==typeof e.length}const m=new r.InjectionToken("NgValidators"),v=new r.InjectionToken("NgAsyncValidators"),y=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class b{static min(e){return t=>{if(f(t.value)||f(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n{if(f(t.value)||f(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return f(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return f(e.value)||y.test(e.value)?null:{email:!0}}static minLength(e){return t=>f(t.value)||!g(t.value)?null:t.value.lengthg(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}static pattern(e){if(!e)return b.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(f(e.value))return null;const r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(_);return 0==t.length?null:function(e){return C(x(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(_);return 0==t.length?null:function(e){const n=x(e,t).map(w);return Object(s.a)(n).pipe(Object(a.a)(C))}}}function _(e){return null!=e}function w(e){const t=Object(r["\u0275isPromise"])(e)?Object(o.a)(e):e;return Object(r["\u0275isObservable"])(t),t}function C(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function x(e,t){return t.map(t=>t(e))}function $(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function S(e){return null!=e?b.compose($(e)):null}function E(e){return null!=e?b.composeAsync($(e)):null}function O(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function I(e){return e._rawValidators}function k(e){return e._rawAsyncValidators}let T=(()=>{class e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=S(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=E(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e}),e})(),j=(()=>{class e extends T{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return V(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const V=r["\u0275\u0275getInheritedFactory"](j);class P extends T{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class M{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}const A={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"};let N=(()=>{class e extends M{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](P,2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),D=(()=>{class e extends M{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](j,2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const R={provide:l,useExisting:Object(r.forwardRef)(()=>F),multi:!0};let F=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([R])]}),e})();const L={provide:l,useExisting:Object(r.forwardRef)(()=>H),multi:!0};let B=(()=>{class e{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),H=(()=>{class e{constructor(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(P),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](B),r["\u0275\u0275directiveInject"](r.Injector))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r["\u0275\u0275ProvidersFeature"]([L])]}),e})();const U={provide:l,useExisting:Object(r.forwardRef)(()=>q),multi:!0};let q=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([U])]}),e})();const W={provide:l,useExisting:Object(r.forwardRef)(()=>G),multi:!0};function z(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let G=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=z(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[r["\u0275\u0275ProvidersFeature"]([W])]}),e})(),K=(()=>{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(z(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](G,9))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const Q={provide:l,useExisting:Object(r.forwardRef)(()=>X),multi:!0};function Z(e,t){return null==e?""+t:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let X=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(Z(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Z(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](X,9))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();function J(e,t){return[...t.path,e]}function ee(e,t){ne(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&ie(e,t)})}(e,t),function(e,t){const n=(e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&ie(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function te(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ne(e,t,n){const r=I(e);null!==t.validator?e.setValidators(O(r,t.validator)):"function"==typeof r&&e.setValidators([r]);const i=k(e);if(null!==t.asyncValidator?e.setAsyncValidators(O(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]),n){const n=()=>e.updateValueAndValidity();te(t._rawValidators,n),te(t._rawAsyncValidators,n)}}function re(e,t,n){if(null!==e){if(null!==t.validator){const n=I(e);Array.isArray(n)&&n.length>0&&e.setValidators(n.filter(e=>e!==t.validator))}if(null!==t.asyncValidator){const n=k(e);Array.isArray(n)&&n.length>0&&e.setAsyncValidators(n.filter(e=>e!==t.asyncValidator))}}if(n){const e=()=>{};te(t._rawValidators,e),te(t._rawAsyncValidators,e)}}function ie(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function se(e,t){ne(e,t,!1)}function oe(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}const ae=[c,q,F,G,X,H];function le(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function ue(e,t){if(!t)return null;Array.isArray(t);let n=void 0,r=void 0,i=void 0;return t.forEach(e=>{var t;e.constructor===p?n=e:(t=e,ae.some(e=>t.constructor===e)?r=e:i=e)}),i||r||n||null}function ce(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function de(e,t,n,i){Object(r.isDevMode)()&&"never"!==i&&((null!==i&&"once"!==i||t._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(t._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function he(e){return(me(e)?e.validators:e)||null}function pe(e){return Array.isArray(e)?S(e):e||null}function fe(e,t){return(me(t)?t.asyncValidators:e)||null}function ge(e){return Array.isArray(e)?E(e):e||null}function me(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class ve{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=pe(this._rawValidators),this._composedAsyncValidatorFn=ge(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=pe(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=ge(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const t=w(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let r=e;return t.forEach(e=>{r=r instanceof be?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof _e&&r.at(e)||null}),r}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new r.EventEmitter,this.statusChanges=new r.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){me(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ye extends ve{constructor(e=null,t,n){super(he(t),fe(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ce(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ce(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class be extends ve{constructor(e,t,n){super(he(t),fe(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof ye?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,r)=>{n=t(n,e,r)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class _e extends ve{constructor(e,t,n){super(he(t),fe(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof ye?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const we={provide:j,useExisting:Object(r.forwardRef)(()=>xe)},Ce=(()=>Promise.resolve(null))();let xe=(()=>{class e extends j{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.EventEmitter,this.form=new be({},S(e),E(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ce.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),ee(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ce.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),ce(this._directives,e)})}addFormGroup(e){Ce.then(()=>{const t=this._findContainer(e.path),n=new be({});se(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ce.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Ce.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,le(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](m,10),r["\u0275\u0275directiveInject"](v,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([we]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),$e=(()=>{class e extends j{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return J(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return e.\u0275fac=function(t){return Se(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const Se=r["\u0275\u0275getInheritedFactory"]($e),Ee={provide:j,useExisting:Object(r.forwardRef)(()=>Oe)};let Oe=(()=>{class e extends $e{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](j,5),r["\u0275\u0275directiveInject"](m,10),r["\u0275\u0275directiveInject"](v,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[r["\u0275\u0275ProvidersFeature"]([Ee]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const Ie={provide:P,useExisting:Object(r.forwardRef)(()=>Te)},ke=(()=>Promise.resolve(null))();let Te=(()=>{class e extends P{constructor(e,t,n,i){super(),this.control=new ye,this._registered=!1,this.update=new r.EventEmitter,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ue(0,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),oe(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?J(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ee(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){ke.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;ke.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](j,9),r["\u0275\u0275directiveInject"](m,10),r["\u0275\u0275directiveInject"](v,10),r["\u0275\u0275directiveInject"](l,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r["\u0275\u0275ProvidersFeature"]([Ie]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e})(),je=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const Ve=new r.InjectionToken("NgModelWithFormControlWarning"),Pe={provide:P,useExisting:Object(r.forwardRef)(()=>Me)};let Me=(()=>{class e extends P{constructor(e,t,n,i){super(),this._ngModelWarningConfig=i,this.update=new r.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=ue(0,n)}set isDisabled(e){}ngOnChanges(t){this._isControlChanged(t)&&(ee(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),oe(t,this.viewModel)&&(de(0,e,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](m,10),r["\u0275\u0275directiveInject"](v,10),r["\u0275\u0275directiveInject"](l,10),r["\u0275\u0275directiveInject"](Ve,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Pe]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e._ngModelWarningSentOnce=!1,e})();const Ae={provide:j,useExisting:Object(r.forwardRef)(()=>Ne)};let Ne=(()=>{class e extends j{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new r.EventEmitter,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return ee(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){ce(this.directives,e)}addFormGroup(e){const t=this.form.get(e.path);se(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormGroup(e){}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){const t=this.form.get(e.path);se(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormArray(e){}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,le(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=this.form.get(e.path);e.control!==t&&(function(e,t){const n=()=>{};t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n),re(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}(e.control||null,e),t&&ee(t,e),e.control=t)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ne(this.form,this,!1),this._oldForm&&re(this._oldForm,this,!1)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](m,10),r["\u0275\u0275directiveInject"](v,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Ae]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e})();const De={provide:j,useExisting:Object(r.forwardRef)(()=>Re)};let Re=(()=>{class e extends $e{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){Be(this._parent)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](j,13),r["\u0275\u0275directiveInject"](m,10),r["\u0275\u0275directiveInject"](v,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[r["\u0275\u0275ProvidersFeature"]([De]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const Fe={provide:j,useExisting:Object(r.forwardRef)(()=>Le)};let Le=(()=>{class e extends j{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return J(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Be(this._parent)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](j,13),r["\u0275\u0275directiveInject"](m,10),r["\u0275\u0275directiveInject"](v,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[r["\u0275\u0275ProvidersFeature"]([Fe]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();function Be(e){return!(e instanceof Re||e instanceof Ne||e instanceof Le)}const He={provide:P,useExisting:Object(r.forwardRef)(()=>Ue)};let Ue=(()=>{class e extends P{constructor(e,t,n,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new r.EventEmitter,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ue(0,i)}set isDisabled(e){}ngOnChanges(t){this._added||this._setUpControl(),oe(t,this.viewModel)&&(de(0,e,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return J(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](j,13),r["\u0275\u0275directiveInject"](m,10),r["\u0275\u0275directiveInject"](v,10),r["\u0275\u0275directiveInject"](l,10),r["\u0275\u0275directiveInject"](Ve,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r["\u0275\u0275ProvidersFeature"]([He]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e._ngModelWarningSentOnce=!1,e})();const qe={provide:m,useExisting:Object(r.forwardRef)(()=>ze),multi:!0},We={provide:m,useExisting:Object(r.forwardRef)(()=>Ge),multi:!0};let ze=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}validate(e){return this.required?b.required(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("required",t.required?"":null)},inputs:{required:"required"},features:[r["\u0275\u0275ProvidersFeature"]([qe])]}),e})(),Ge=(()=>{class e extends ze{validate(e){return this.required?b.requiredTrue(e):null}}return e.\u0275fac=function(t){return Ke(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("required",t.required?"":null)},features:[r["\u0275\u0275ProvidersFeature"]([We]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const Ke=r["\u0275\u0275getInheritedFactory"](Ge),Qe={provide:m,useExisting:Object(r.forwardRef)(()=>Ze),multi:!0};let Ze=(()=>{class e{constructor(){this._enabled=!1}set email(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()}validate(e){return this._enabled?b.email(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[r["\u0275\u0275ProvidersFeature"]([Qe])]}),e})();const Xe={provide:m,useExisting:Object(r.forwardRef)(()=>Ye),multi:!0};let Ye=(()=>{class e{constructor(){this._validator=b.nullValidator}ngOnChanges(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null==this.minlength?null:this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=b.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("minlength",t.minlength?t.minlength:null)},inputs:{minlength:"minlength"},features:[r["\u0275\u0275ProvidersFeature"]([Xe]),r["\u0275\u0275NgOnChangesFeature"]]}),e})();const Je={provide:m,useExisting:Object(r.forwardRef)(()=>et),multi:!0};let et=(()=>{class e{constructor(){this._validator=b.nullValidator}ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null!=this.maxlength?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=b.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[r["\u0275\u0275ProvidersFeature"]([Je]),r["\u0275\u0275NgOnChangesFeature"]]}),e})();const tt={provide:m,useExisting:Object(r.forwardRef)(()=>nt),multi:!0};let nt=(()=>{class e{constructor(){this._validator=b.nullValidator}ngOnChanges(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=b.pattern(this.pattern)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[r["\u0275\u0275ProvidersFeature"]([tt]),r["\u0275\u0275NgOnChangesFeature"]]}),e})();const rt=[je,K,Y,p,F,q,c,G,X,H,N,D,ze,Ye,et,nt,Ge,Ze],it=[Te,Oe,xe],st=[Me,Ne,Ue,Re,Le];let ot=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)}}),e})(),at=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let r=null,i=null,s=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(r=null!=t.validators?t.validators:null,i=null!=t.asyncValidators?t.asyncValidators:null,s=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,i=null!=t.asyncValidator?t.asyncValidator:null)),new be(n,{asyncValidators:i,updateOn:s,validators:r})}control(e,t,n){return new ye(e,t,n)}array(e,t,n){const r=e.map(e=>this._createControl(e));return new _e(r,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof ye||e instanceof be||e instanceof _e?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const lt=new r.Version("11.0.3");let ut=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[B],imports:[ot]}),e})(),ct=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ve,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[at,B],imports:[ot]}),e})()},"48ZK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.range=function(e){return function(t){if(!i.isPresent(e))return null;if(i.isPresent(r.Validators.required(t)))return null;var n=+t.value;return n>=e[0]&&n<=e[1]?null:{actualValue:n,requiredValue:e,range:!0}}}},"4I5i":function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})()},"4XzM":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("89kA")},"4hzb":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("T5KR"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.max(this.max)},e.prototype.ngOnChanges=function(e){for(var t in e)"max"===t&&(this.validator=s.max(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={max:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","max","","formControlName",""],["","max","","formControl",""],["","max","","ngModel",""]],inputs:{max:"max"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.MaxValidator=l},"5+tZ":function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return u});var r=n("lJxs"),i=n("Cfvw"),s=n("zx2A");function o(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?s=>s.pipe(o((n,s)=>Object(i.a)(e(n,s)).pipe(Object(r.a)((e,r)=>t(n,e,s,r))),n)):("number"==typeof t&&(n=t),t=>t.lift(new a(e,n)))}class a{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new l(e,this.project,this.concurrent))}}class l extends s.b{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const u=o},"5K7Z":function(e,t,n){var r=n("93I4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"5T2Y":function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"5vMV":function(e,t,n){var r=n("B+OT"),i=n("NsO/"),s=n("W070")(!1),o=n("VVlx")("IE_PROTO");e.exports=function(e,t){var n,a=i(e),l=0,u=[];for(n in a)n!=o&&r(a,n)&&u.push(n);for(;t.length>l;)r(a,n=t[l++])&&(~s(u,n)||u.push(n));return u}},"6Axs":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("35yN")),r(n("nlsq"))},"6RPL":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.rangeLength=function(e){return function(t){if(!i.isPresent(e))return null;if(i.isPresent(r.Validators.required(t)))return null;var n=t.value;return n.length>=e[0]&&n.length<=e[1]?null:{rangeLength:!0}}}},"7HRe":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("HDdC"),i=n("quSY"),s=n("kJWO"),o=n("jZKg"),a=n("Lhse"),l=n("c2HN"),u=n("I55L");function c(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[s.a]}(e))return function(e,t){return new r.a(n=>{const r=new i.a;return r.add(t.schedule(()=>{const i=e[s.a]();r.add(i.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(Object(l.a)(e))return function(e,t){return new r.a(n=>{const r=new i.a;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(Object(u.a)(e))return Object(o.a)(e,t);if(function(e){return e&&"function"==typeof e[a.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new i.a;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(t.schedule(()=>{s=e[a.a](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=s.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}},"7Hc7":function(e,t,n){"use strict";n.d(t,"b",function(){return h}),n.d(t,"a",function(){return p});let r=1;const i=(()=>Promise.resolve())(),s={};function o(e){return e in s&&(delete s[e],!0)}const a={setImmediate(e){const t=r++;return s[t]=!0,i.then(()=>o(t)&&e()),t},clearImmediate(e){o(e)}};var l=n("3N8a");class u extends l.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=a.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(a.clearImmediate(t),e.scheduled=void 0)}}var c=n("IjjT");class d extends c.a{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,r=-1,i=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++rthis._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}__tryOrSetError(e,t,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return a.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(l.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"7wxJ":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("itXk");function i(e){return t=>t.lift(new r.a(e))}},"89kA":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("ZR4w");r.Observable.prototype.map=i.map},"8IPW":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("IVVY")),r(n("sLFm"))},"8Qeq":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e){for(;e;){const{closed:t,destination:n,isStopped:i}=e;if(t||i)return!1;e=n&&n instanceof r.a?n:null}return!0}},"8f/L":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("yAwA")),r(n("hQsY"))},"93I4":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"9WSl":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.equalTo=function(e){var t=!1;return function(n){return t||(t=!0,e.valueChanges.subscribe(function(){n.updateValueAndValidity()})),e.value===n.value?null:{equalTo:!0}}}},"9ppp":function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})()},"9uV+":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("wdEZ")),r(n("TFLp"))},"9vJG":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.max=function(e){return function(t){if(!i.isPresent(e))return null;if(i.isPresent(r.Validators.required(t)))return null;var n=+t.value;return n<=+e?null:{actualValue:n,requiredValue:+e,max:!0}}}},AqXk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notEqualTo=function(e){var t=!1;return function(n){return t||(t=!0,e.valueChanges.subscribe(function(){n.updateValueAndValidity()})),e.value!==n.value?null:{notEqualTo:!0}}}},"B+OT":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},BFxc:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("7o/Q"),i=n("4I5i"),s=n("EY2u");function o(e){return function(t){return 0===e?Object(s.b)():t.lift(new a(e))}}class a{constructor(e){if(this.total=e,this.total<0)throw new i.a}call(e,t){return t.subscribe(new l(e,this.total))}}class l extends r.a{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;iArray.isArray||(e=>e&&"number"==typeof e.length))()},DgTa:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.number=function(e){return i.isPresent(r.Validators.required(e))||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e.value)?null:{number:!0}}},EQ5u:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return l});var r=n("XNiG"),i=n("HDdC"),s=(n("7o/Q"),n("quSY")),o=n("x+ZX");class a extends i.a{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new s.a,e.add(this.source.subscribe(new u(this.getSubject(),this))),e.closed&&(this._connection=null,e=s.a.EMPTY)),e}refCount(){return Object(o.a)()(this)}}const l=(()=>{const e=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class u extends r.b{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}},EY2u:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return s});var r=n("HDdC");const i=new r.a(e=>e.complete());function s(e){return e?function(e){return new r.a(t=>e.schedule(()=>t.complete()))}(e):i}},"F97/":function(e,t,n){"use strict";function r(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}n.d(t,"a",function(){return r})},FlQf:function(e,t,n){"use strict";var r=n("ccE7")(!0);n("MPFp")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},FpHa:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},FyfS:function(e,t,n){e.exports={default:n("Rp86"),__esModule:!0}},G8Mo:function(e,t,n){var r=n("93I4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},GkNK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("+UwR"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.validate=function(e){return s.number(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","number","","formControlName",""],["","number","","formControl",""],["","number","","ngModel",""]],features:[o.\u0275\u0275ProvidersFeature([a])]}),e}();t.NumberValidator=l},GyhO:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("LRne"),i=n("0EUg");function s(...e){return Object(i.a)()(Object(r.a)(...e))}},HDAp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.json=function(e){if(i.isPresent(r.Validators.required(e)))return null;var t=e.value;try{var n=JSON.parse(t);if(Boolean(n)&&"object"==typeof n)return null}catch(s){}return{json:!0}}},HDdC:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("8Qeq"),i=n("7o/Q"),s=n("2QA8"),o=n("gRHU"),a=n("kJWO"),l=n("mCNh"),u=n("2fFW");let c=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,a=function(e,t,n){if(e){if(e instanceof i.a)return e;if(e[s.a])return e[s.a]()}return e||t||n?new i.a(e,t,n):new i.a(o.a)}(e,t,n);if(a.add(r?r.call(a,this.source):this.source||u.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),u.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(e){try{return this._subscribe(e)}catch(t){u.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),Object(r.a)(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=d(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(i){n(i),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[a.a](){return this}pipe(...e){return 0===e.length?this:Object(l.b)(e)(this)}toPromise(e){return new(e=d(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function d(e){if(e||(e=u.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},Hsns:function(e,t,n){var r=n("93I4"),i=n("5T2Y").document,s=r(i)&&r(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},I55L:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=e=>e&&"number"==typeof e.length&&"function"!=typeof e},IAdc:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("128B");function i(e,t,n){return 0===n?[t]:(e.push(t),e)}function s(){return Object(r.a)(i,[])}},IVVY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("8IPW"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.uuid(this.uuid)},e.prototype.ngOnChanges=function(e){for(var t in e)"uuid"===t&&(this.validator=s.uuid(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={uuid:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","uuid","","formControlName",""],["","uuid","","formControl",""],["","uuid","","ngModel",""]],inputs:{uuid:"uuid"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.UUIDValidator=l},IjjT:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("Y/cZ");class i extends r.a{constructor(e,t=r.a.now){super(e,()=>i.delegate&&i.delegate!==this?i.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return i.delegate&&i.delegate!==this?i.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}},IzEk:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("7o/Q"),i=n("4I5i"),s=n("EY2u");function o(e){return t=>0===e?Object(s.b)():t.lift(new a(e))}class a{constructor(e){if(this.total=e,this.total<0)throw new i.a}call(e,t){return t.subscribe(new l(e,this.total))}}class l extends r.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}},JB68:function(e,t,n){var r=n("Jes0");e.exports=function(e){return Object(r(e))}},JIED:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("YLEk"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.notEqual(this.notEqual)},e.prototype.ngOnChanges=function(e){for(var t in e)"notEqual"===t&&(this.validator=s.notEqual(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={notEqual:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","notEqual","","formControlName",""],["","notEqual","","formControl",""],["","notEqual","","ngModel",""]],inputs:{notEqual:"notEqual"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.NotEqualValidator=l},JIr8:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("zx2A");function i(e){return function(t){const n=new s(e),r=t.lift(n);return n.caught=r}}class s{constructor(e){this.selector=e}call(e,t){return t.subscribe(new o(e,this.selector,this.caught))}}class o extends r.b{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const i=new r.a(this);this.add(i);const s=Object(r.c)(n,i);s!==i&&this.add(s)}}}},JX91:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("GyhO"),i=n("z+Ro");function s(...e){const t=e[e.length-1];return Object(i.a)(t)?(e.pop(),n=>Object(r.a)(e,n,t)):t=>Object(r.a)(e,t)}},Jdkh:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.url=function(e){return i.isPresent(r.Validators.required(e))||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e.value)?null:{url:!0}}},Jes0:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},KUxP:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},Kqap:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new s(e,t,n))}}class s{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new o(e,this.accumulator,this.seed,this.hasSeed))}}class o extends r.a{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}},KqfI:function(e,t,n){"use strict";function r(){}n.d(t,"a",function(){return r})},Kucq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("nKcR"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.minDate(this.minDate)},e.prototype.ngOnChanges=function(e){for(var t in e)"minDate"===t&&(this.validator=s.minDate(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={minDate:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","minDate","","formControlName",""],["","minDate","","formControl",""],["","minDate","","ngModel",""]],inputs:{minDate:"minDate"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.MinDateValidator=l},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("z+Ro"),i=n("yCtX"),s=n("jZKg");function o(...e){let t=e[e.length-1];return Object(r.a)(t)?(e.pop(),Object(s.a)(e,t)):Object(i.a)(e)}},Laqt:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("kcx3"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.validate=function(e){return s.json(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","json","","formControlName",""],["","json","","formControl",""],["","json","","ngModel",""]],features:[o.\u0275\u0275ProvidersFeature([a])]}),e}();t.JSONValidator=l},Lhse:function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return i});const i=r()},LlHk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.email=function(e){return i.isPresent(r.Validators.required(e))||/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e.value)?null:{email:!0}}},M1xp:function(e,t,n){var r=n("a0xu");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},M6P7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t._finally=function(e){return r.finalize(e)(this)}},MPFp:function(e,t,n){"use strict";var r=n("uOPS"),i=n("Y7ZC"),s=n("kTiW"),o=n("NegM"),a=n("SBuE"),l=n("j2DC"),u=n("RfKB"),c=n("U+KD"),d=n("UWiX")("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,f,g,m,v){l(n,t,f);var y,b,_,w=function(e){if(!h&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",x="values"==g,$=!1,S=e.prototype,E=S[d]||S["@@iterator"]||g&&S[g],O=E||w(g),I=g?x?w("entries"):O:void 0,k="Array"==t&&S.entries||E;if(k&&(_=c(k.call(new e)))!==Object.prototype&&_.next&&(u(_,C,!0),r||"function"==typeof _[d]||o(_,d,p)),x&&E&&"values"!==E.name&&($=!0,O=function(){return E.call(this)}),r&&!v||!h&&!$&&S[d]||o(S,d,O),a[t]=O,a[C]=p,g)if(y={values:x?O:w("values"),keys:m?O:w("keys"),entries:I},v)for(b in y)b in S||s(S,b,y[b]);else i(i.P+i.F*(h||$),t,y);return y}},MvwC:function(e,t,n){var r=n("5T2Y").document;e.exports=r&&r.documentElement},"NHP+":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("XNiG"),i=n("quSY");class s extends r.a{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(e){return this.hasError?(e.error(this.thrownError),i.a.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),i.a.EMPTY):super._subscribe(e)}next(e){this.hasCompleted||(this.value=e,this.hasNext=!0)}error(e){this.hasCompleted||super.error(e)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}},NJ4a:function(e,t,n){"use strict";function r(e){setTimeout(()=>{throw e},0)}n.d(t,"a",function(){return r})},NJ9Y:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("sVev"),i=n("pLZG"),s=n("BFxc"),o=n("XDbj"),a=n("xbPD"),l=n("SpAZ");function u(e,t){const n=arguments.length>=2;return u=>u.pipe(e?Object(i.a)((t,n)=>e(t,n,u)):l.a,Object(s.a)(1),n?Object(a.a)(t):Object(o.a)(()=>new r.a))}},NV0k:function(e,t){t.f={}.propertyIsEnumerable},NXyV:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("HDdC"),i=n("Cfvw"),s=n("EY2u");function o(e){return new r.a(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?Object(i.a)(n):Object(s.b)()).subscribe(t)})}},NegM:function(e,t,n){var r=n("2faE"),i=n("rr1i");e.exports=n("jmDH")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"NsO/":function(e,t,n){var r=n("M1xp"),i=n("Jes0");e.exports=function(e){return r(i(e))}},Nv8m:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("DH7j"),i=n("yCtX"),s=n("l7GE"),o=n("ZUHj");function a(...e){if(1===e.length){if(!Object(r.a)(e[0]))return e[0];e=e[0]}return Object(i.a)(e,void 0).lift(new l)}class l{call(e,t){return t.subscribe(new u(e))}}class u extends s.a{constructor(e){super(e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(e){this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(let n=0;ni.lift(new l(e,t,n,r))}class l{constructor(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}call(e,t){return t.subscribe(new u(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class u extends r.a{constructor(e,t,n,r,i){super(e),this.keySelector=t,this.elementSelector=n,this.durationSelector=r,this.subjectSelector=i,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(e){let t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)}_group(e,t){let n=this.groups;n||(n=this.groups=new Map);let r,i=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(s){this.error(s)}else r=e;if(!i){i=this.subjectSelector?this.subjectSelector():new o.a,n.set(t,i);const e=new d(t,i,this);if(this.destination.next(e),this.durationSelector){let e;try{e=this.durationSelector(new d(t,i))}catch(s){return void this.error(s)}this.add(e.subscribe(new c(t,i,this)))}}i.closed||i.next(r)}_error(e){const t=this.groups;t&&(t.forEach((t,n)=>{t.error(e)}),t.clear()),this.destination.error(e)}_complete(){const e=this.groups;e&&(e.forEach((e,t)=>{e.complete()}),e.clear()),this.destination.complete()}removeGroup(e){this.groups.delete(e)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class c extends r.a{constructor(e,t,n){super(t),this.key=e,this.group=t,this.parent=n}_next(e){this.complete()}_unsubscribe(){const{parent:e,key:t}=this;this.key=this.parent=null,e&&e.removeGroup(t)}}class d extends s.a{constructor(e,t,n){super(),this.key=e,this.groupSubject=t,this.refCountSubscription=n}_subscribe(e){const t=new i.a,{refCountSubscription:n,groupSubject:r}=this;return n&&!n.closed&&t.add(new h(n)),t.add(r.subscribe(e)),t}}class h extends i.a{constructor(e){super(),this.parent=e,e.count++}unsubscribe(){const e=this.parent;e.closed||this.closed||(super.unsubscribe(),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())}}},OSYy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.notEqual=function(e){return function(t){return i.isPresent(r.Validators.required(t))||e!==t.value?null:{notEqual:!0}}}},OSZS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.gt=function(e){return function(t){return i.isPresent(e)?i.isPresent(r.Validators.required(t))||+t.value>+e?null:{gt:!0}:null}}},Ojgd:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},P2sY:function(e,t,n){e.exports={default:n("UbbE"),__esModule:!0}},PoRY:function(e,t,n){"use strict";n.r(t),n.d(t,"parse",function(){return ge}),n.d(t,"format",function(){return me}),n.d(t,"getNumberType",function(){return ve}),n.d(t,"get_number_type",function(){return ye}),n.d(t,"isValidNumber",function(){return be}),n.d(t,"is_valid_number",function(){return _e}),n.d(t,"AsYouType",function(){return we}),n.d(t,"as_you_type",function(){return Ce}),n.d(t,"asYouType",function(){return xe}),n.d(t,"parseCustom",function(){return q}),n.d(t,"DIGITS",function(){return H}),n.d(t,"formatCustom",function(){return O}),n.d(t,"isValidNumberCustom",function(){return Y}),n.d(t,"getNumberTypeCustom",function(){return V}),n.d(t,"AsYouTypeCustom",function(){return he}),n.d(t,"asYouTypeCustom",function(){return he}),n.d(t,"DIGIT_PLACEHOLDER",function(){return se}),n.d(t,"getPhoneCode",function(){return $e}),n.d(t,"getPhoneCodeCustom",function(){return Se});var r=n("YHbO"),i=n("QbLZ"),s=n.n(i),o=n("sk9p"),a=n.n(o),l=n("FyfS"),u=n.n(l);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1];"string"==typeof t&&(t="^(?:"+t+")$");var n=e.match(t);return null!==n&&n[0].length===e.length}function d(e){return e[0]}function h(e){return e[1]}function p(e){return e[2]||[]}function f(e){return e[8]}function g(e){return e[0]}function m(e){return e[1]}function v(e){return e[2]||[]}function y(e,t){return e[3]||function(e){return e[4]}(t)}function b(e,t){return e[4]||function(e){return e[7]}(t)}function _(e){return"$1"!==e&&/\d/.test(e.replace("$1",""))}function w(e){return e[5]||m(e)}function C(e,t){return t.countries[t.country_phone_code_to_countries[e][0]]}function x(e){return e[9]}function $(e,t){return x(e)?x(e)[t]:void 0}function S(e){return $(e,1)}var E={formatExtension:function(e,t){return e+" ext. "+t}};function O(e,t,n,r,i){var o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1],n=arguments[2],r=arguments[3],i=arguments[4],o=void 0,a=void 0,l=void 0,u=void 0;if("string"==typeof e)if("string"==typeof n)o={phone:e,country:t},a=n,i?(l=r,u=i):u=r;else{if(o={phone:e},"string"!=typeof t)throw new Error("Format type argument not passed for `format()`");a=t,r?(l=n,u=r):u=n}else o=e,a=t,r?(l=n,u=r):u=n;if(!u)throw new Error("Metadata is required");switch(a){case"International":case"E.164":case"International_plaintext":case"National":case"RFC3966":break;default:throw new Error('Unknown format type argument passed to "format()": "'+a+'"')}return{input:o,format_type:a,options:l=l?s()({},E,l):E,metadata:u}}(e,t,n,r,i),a=o.input,l=o.format_type,u=o.options,c=o.metadata,h=void 0;a.country&&(h=c.countries[a.country]);var p=Q(a.phone,c),f=p.country_phone_code,g=p.number;if(f){if(a.country&&h&&f!==d(h))return a.phone;h=C(f,c)}if(!h)return a.phone;switch(l){case"International":if(!g)return"+"+d(h);var m=T(g,"International",!1,h),v="+"+d(h)+" "+m;return a.ext||0===a.ext?u.formatExtension(v,a.ext):v;case"E.164":case"International_plaintext":return"+"+d(h)+a.phone;case"RFC3966":return"+"+d(h)+a.phone+(a.ext||0===a.ext?";ext="+a.ext:"");case"National":if(!g)return"";var y=T(g,"National",!1,h);return a.ext||0===a.ext?u.formatExtension(y,a.ext):y}}var I=/(\$\d)/;function k(e,t,n,r,i){var s=new RegExp(g(t)),o=y(t,i),a=!o||o&&b(t,i)&&!r;if(!n&&!a)return e.replace(s,m(t).replace(I,o));var l=e.replace(s,n?w(t):m(t));return n?j(l):l}function T(e,t,n,r){var i=function(e,t){var n=!0,r=!1,i=void 0;try{for(var s,o=u()(e);!(n=(s=o.next()).done);n=!0){var a=s.value;if(v(a).length>0){var l=v(a)[v(a).length-1];if(0!==t.search(l))continue}if(c(t,new RegExp(g(a))))return a}}catch(d){r=!0,i=d}finally{try{!n&&o.return&&o.return()}finally{if(r)throw i}}}(p(r),e);return i?k(e,i,"International"===t,n,r):e}function j(e){return e.replace(new RegExp("["+A+"]+","g")," ").trim()}function V(e,t,n){var r=M(e,t,n),i=r.input;if(i&&i.country){var s=i.phone,o=r.metadata.countries[i.country];if(P(s,h(o)))return P(s,function(e){return $(e,3)}(o))?"PREMIUM_RATE":P(s,function(e){return $(e,2)}(o))?"TOLL_FREE":P(s,function(e){return $(e,9)}(o))?"SHARED_COST":P(s,function(e){return $(e,8)}(o))?"VOIP":P(s,function(e){return $(e,4)}(o))?"PERSONAL_NUMBER":P(s,function(e){return $(e,7)}(o))?"PAGER":P(s,function(e){return $(e,6)}(o))?"UAN":P(s,function(e){return $(e,5)}(o))?"VOICEMAIL":P(s,function(e){return $(e,0)}(o))?S(o)?P(s,S(o))?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE":P(s,S(o))?"MOBILE":void 0}}function P(e,t){return c(e,t)}function M(e,t,n){var r=void 0,i=void 0;if("number"==typeof e&&(e=String(e)),"string"==typeof e?"string"==typeof t||void 0===t?(i=n,z(e)&&(r=q(e,t,i))):(i=t,z(e)&&(r=q(e,i))):(e&&e.phone&&z(e.phone)&&(r=e),i=t),!i||!i.countries)throw new Error("Metadata is required");return{input:r,metadata:i}}var A="-\u2010-\u2015\u2212\u30fc\uff0d\uff0f/\uff0e. \xa0\xad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d\\[\\]~\u2053\u223c\uff5e",N=";ext=([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})|[ \xa0\\t,]*(?:e?xt(?:ensi(?:o\u0301?|\xf3))?n?|\uff45?\uff58\uff54\uff4e?|[;,x\uff58#\uff03~\uff5e]|int|anexo|\uff49\uff4e\uff54)[:\\.\uff0e]?[ \xa0\\t,-]*([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})#?|[- ]+([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,5})#",D=new RegExp("(?:"+N+")$","i"),R=new RegExp("^[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{2}$|^[+\uff0b]{0,1}(?:["+A+"]*[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]){3,}["+A+"0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]*(?:"+N+")?$","i"),F=new RegExp("[+\uff0b0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]"),L=new RegExp("[^0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]+$"),B=new RegExp("^[+\uff0b]+"),H={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","\uff10":"0","\uff11":"1","\uff12":"2","\uff13":"3","\uff14":"4","\uff15":"5","\uff16":"6","\uff17":"7","\uff18":"8","\uff19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9"},U={country:{}};function q(e,t,n){var r=function(e,t,n){var r=void 0,i=void 0,o=void 0;if("number"==typeof e&&(e=String(e)),"string"==typeof e&&(r=e),"string"==typeof t?(i={country:{restrict:t}},o=n):n?(i=t,o=n):o=t,!o||!o.countries)throw new Error("Metadata is required");return{text:r,options:i=i?s()({},U,i):U,metadata:o}}(e,t,n),i=r.text,o=r.options,l=r.metadata;if(o.country.default&&!l.countries[o.country.default])throw new Error("Unknown country code: "+o.country.default);if(o.country.restrict&&!l.countries[o.country.restrict])throw new Error("Unknown country code: "+o.country.restrict);var p=void 0,f=void 0;if(i&&0===i.indexOf("tel:")){var g=!0,m=!1,v=void 0;try{for(var y,b=u()(i.split(";"));!(g=(y=b.next()).done);g=!0){var _=y.value.split(":"),w=a()(_,2),x=w[1];switch(w[0]){case"tel":p=x;break;case"ext":f=x;break;case"phone-context":"+"===x[0]&&(p=x+p)}}}catch(P){m=!0,v=P}finally{try{!g&&b.return&&b.return()}finally{if(m)throw v}}}else p=G(i);if(!z(p))return{};var $=function(e){var t=e.search(D);if(t<0)return{};var n=e.slice(0,t);if(!z(n))return{};for(var r=e.match(D),i=1;i0)return{number:n,extension:r[i]};i++}}(p);$.extension&&(p=$.number,f=$.extension);var S=Q(p,l),E=S.country_phone_code,O=S.number;if(!O)return{};var I=void 0,k=void 0,T=!1;if(E){if(T=!0,o.country.restrict&&E!==d(l.countries[o.country.restrict]))return{};k=C(E,l)}else(o.country.restrict||o.country.default)&&(k=l.countries[I=o.country.restrict||o.country.default],O=W(p));if(!k)return{};var j=O;if(T||(j=Z(O,k)),!I){if(!(I=X(E,j,l)))return{};k=l.countries[I]}if(j.length>17)return{};if(!c(j,new RegExp(h(k))))return{};var V={country:I,phone:j};return f&&(V.ext=f),V}function W(e){return function(e,t){var n="",r=!0,i=!1,s=void 0;try{for(var o,a=u()(e);!(r=(o=a.next()).done);r=!0){var l=t[o.value.toUpperCase()];void 0!==l&&(n+=l)}}catch(c){i=!0,s=c}finally{try{!r&&a.return&&a.return()}finally{if(i)throw s}}return n}(e,H)}function z(e){return e.length>=2&&c(e,R)}function G(e){if(!e||e.length>250)return"";var t=e.search(F);return t<0?"":e.slice(t).replace(L,"")}function K(e){if(!e)return"";var t=B.test(e);return e=W(e),t?"+"+e:e}function Q(e,t){if(!(e=K(e)))return{};if("+"!==e[0])return{number:e};if("0"===(e=e.slice(1))[0])return{};for(var n=1;n<=3&&n<=e.length;){var r=e.slice(0,n);if(t.country_phone_code_to_countries[r])return{country_phone_code:r,number:e.slice(n)};n++}return{}}function Z(e,t){var n=function(e){var t=e[5];return t||(t=function(e){return e[3]}(e)),t}(t);if(!e||!n)return e;var r=new RegExp("^(?:"+n+")"),i=r.exec(e);if(!i)return e;var s,o=i[i.length-1],a=function(e){return e[6]}(t);s=a&&o?e.replace(r,a):e.slice(i[0].length);var l=new RegExp(h(t));return c(e,l)&&!c(s,l)?e:s}function X(e,t,n){var r=n.country_phone_code_to_countries[e];if(1===r.length)return r[0];var i=!0,s=!1,o=void 0;try{for(var a,l=u()(r);!(i=(a=l.next()).done);i=!0){var c=a.value,d=n.countries[c];if(f(d)){if(t&&0===t.search(f(d)))return c}else if(V({phone:t,country:c},n))return c}}catch(h){s=!0,o=h}finally{try{!i&&l.return&&l.return()}finally{if(s)throw o}}}function Y(e,t,n){var r=M(e,t,n),i=r.input,s=r.metadata;return!(!i||!i.country||x(s.countries[i.country])&&!V(i,s))}var J=n("iCc5"),ee=n.n(J),te=n("V7oC"),ne=n.n(te),re=new RegExp("9","g"),ie=fe("9",15),se="x",oe=new RegExp(se),ae=new RegExp(se,"g"),le=/\[([^\[\]])*\]/g,ue=/\d(?=[^,}][^,}])/g,ce=new RegExp("^["+A+"]*(\\$\\d["+A+"]*)+$"),de=new RegExp("^[+\uff0b]{0,1}["+A+"0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]*$","i"),he=function(){function e(t,n){if(ee()(this,e),!n||!n.countries)throw new Error("Metadata is required");t&&n.countries[t]&&(this.default_country=t),this.metadata=n,this.reset()}return ne()(e,[{key:"input",value:function(e){var t=G(e);return t||e&&e.indexOf("+")>=0&&(t="+"),c(t,de)?this.process_input(K(t)):this.current_output}},{key:"process_input",value:function(e){if("+"===e[0]&&(this.parsed_input||(this.parsed_input+="+",this.reset_countriness()),e=e.slice(1)),this.parsed_input+=e,this.national_number+=e,this.is_international())if(this.country_phone_code)this.country||this.determine_the_country();else{if(!this.extract_country_phone_code())return this.parsed_input;this.initialize_phone_number_formats_for_this_country_phone_code(),this.reset_format(),this.determine_the_country()}else{var t=this.national_prefix;this.national_number=this.national_prefix+this.national_number,this.extract_national_prefix(),this.national_prefix!==t&&(this.matching_formats=this.available_formats,this.reset_format())}if(!this.should_format())return this.format_as_non_formatted_number();this.match_formats_by_leading_digits();var n=this.format_national_phone_number(e);return n?this.full_phone_number(n):this.parsed_input}},{key:"format_as_non_formatted_number",value:function(){return this.is_international()&&this.country_phone_code?this.national_number?(this.template=se+fe(se,this.country_phone_code.length)+" "+fe(se,this.national_number.length),"+"+this.country_phone_code+" "+this.national_number):"+"+this.country_phone_code:this.parsed_input}},{key:"format_national_phone_number",value:function(e){var t=void 0;return this.chosen_format&&(t=this.format_next_national_number_digits(e)),this.attempt_to_format_complete_phone_number()||(this.choose_another_format()?this.reformat_national_number():t)}},{key:"reset",value:function(){return this.parsed_input="",this.current_output="",this.national_prefix="",this.national_number="",this.reset_countriness(),this.reset_format(),this}},{key:"reset_country",value:function(){this.country=this.default_country&&!this.is_international()?this.default_country:void 0}},{key:"reset_countriness",value:function(){this.reset_country(),this.default_country&&!this.is_international()?(this.country_metadata=this.metadata.countries[this.default_country],this.country_phone_code=d(this.country_metadata),this.initialize_phone_number_formats_for_this_country_phone_code()):(this.country_metadata=void 0,this.country_phone_code=void 0,this.available_formats=[],this.matching_formats=this.available_formats)}},{key:"reset_format",value:function(){this.chosen_format=void 0,this.template=void 0,this.partially_populated_template=void 0,this.last_match_position=-1}},{key:"reformat_national_number",value:function(){return this.format_next_national_number_digits(this.national_number)}},{key:"initialize_phone_number_formats_for_this_country_phone_code",value:function(){this.available_formats=p(this.country_metadata).filter(function(e){return ce.test(w(e))}),this.matching_formats=this.available_formats}},{key:"match_formats_by_leading_digits",value:function(){var e=this.national_number,t=e.length-3;t<0&&(t=0),this.matching_formats=this.matching_formats.filter(function(n){var r=v(n).length;if(0===r)return!0;var i=Math.min(t,r-1),s=v(n)[i];return new RegExp("^("+s+")").test(e)}),this.chosen_format&&-1===this.matching_formats.indexOf(this.chosen_format)&&this.reset_format()}},{key:"should_format",value:function(){return this.national_number>=3}},{key:"attempt_to_format_complete_phone_number",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=u()(this.matching_formats);!(e=(r=i.next()).done);e=!0){var s=r.value;if(new RegExp("^(?:"+g(s)+")$").test(this.national_number)&&this.validate_format(s)){this.reset_format(),this.chosen_format=s;var o=k(this.national_number,s,this.is_international(),this.national_prefix.length>0,this.country_metadata);if(this.create_formatting_template(s))this.reformat_national_number();else{var a=this.full_phone_number(o);this.template=a.replace(/[\d\+]/g,se),this.partially_populated_template=a}return o}}}catch(l){t=!0,n=l}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}}},{key:"full_phone_number",value:function(e){return this.is_international()?"+"+this.country_phone_code+" "+e:e}},{key:"extract_country_phone_code",value:function(){if(this.national_number){var e=Q(this.parsed_input,this.metadata),t=e.country_phone_code,n=e.number;if(t)return this.country_phone_code=t,this.national_number=n,this.country_metadata=C(t,this.metadata)}}},{key:"extract_national_prefix",value:function(){if(this.national_prefix="",this.country_metadata){var e=Z(this.national_number,this.country_metadata);return e!==this.national_number&&(this.national_prefix=this.national_number.slice(0,this.national_number.length-e.length),this.national_number=e),this.national_prefix}}},{key:"choose_another_format",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=u()(this.matching_formats);!(e=(r=i.next()).done);e=!0){var s=r.value;if(this.chosen_format===s)return;if(this.validate_format(s)&&this.create_formatting_template(s))return this.chosen_format=s,this.last_match_position=-1,!0}}catch(o){t=!0,n=o}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}this.reset_country(),this.reset_format()}},{key:"validate_format",value:function(e){var t,n,r;if(this.is_international()||this.national_prefix||!(r=y(t=e,n=this.country_metadata))||!_(r)||b(t,n))return!0}},{key:"create_formatting_template",value:function(e){if(!(g(e).indexOf("|")>=0)){var t=this.get_template_for_phone_number_format_pattern(e);if(t)return this.partially_populated_template=t,this.template=this.is_international()?se+fe(se,this.country_phone_code.length)+" "+t:t.replace(/\d/g,se),this.template}}},{key:"get_template_for_phone_number_format_pattern",value:function(e){var t=y(e,this.country_metadata),n=g(e).replace(le,"\\d").replace(ue,"\\d"),r=ie.match(n)[0];if(!(this.national_number.length>r.length)){var i=this.get_format_format(e,t),s=new RegExp("^"+n+"$"),o=this.national_number.replace(/\d/g,"9");return s.test(o)&&(r=o),r.replace(new RegExp(n),i).replace(re,se)}}},{key:"format_next_national_number_digits",value:function(e){var t=!0,n=!1,r=void 0;try{for(var i,s=u()(e);!(t=(i=s.next()).done);t=!0){var o=i.value;if(-1===this.partially_populated_template.slice(this.last_match_position+1).search(oe))return this.chosen_format=void 0,this.template=void 0,void(this.partially_populated_template=void 0);this.last_match_position=this.partially_populated_template.search(oe),this.partially_populated_template=this.partially_populated_template.replace(oe,o)}}catch(a){n=!0,r=a}finally{try{!t&&s.return&&s.return()}finally{if(n)throw r}}return function(e,t){for(var n=e.slice(0,t),r=pe("(",n)-pe(")",n);r>0&&t1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function ge(){var e=Array.prototype.slice.call(arguments);return e.push(r),q.apply(this,e)}function me(){var e=Array.prototype.slice.call(arguments);return e.push(r),O.apply(this,e)}function ve(){var e=Array.prototype.slice.call(arguments);return e.push(r),V.apply(this,e)}function ye(){return ve.apply(this,arguments)}function be(){var e=Array.prototype.slice.call(arguments);return e.push(r),Y.apply(this,e)}function _e(){return be.apply(this,arguments)}function we(e){he.call(this,e,r)}function Ce(e){he.call(this,e,r)}function xe(e){he.call(this,e,r)}function $e(e){return Se(e,r)}function Se(e,t){if(!t.countries[e])throw new Error('Unknown country: "'+e+'"');return d(t.countries[e])}(we.prototype=Object.create(he.prototype,{})).constructor=we,(Ce.prototype=Object.create(he.prototype,{})).constructor=Ce,(xe.prototype=Object.create(he.prototype,{})).constructor=xe},PqYM:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),i=n("D0XW"),s=n("Y7HM"),o=n("z+Ro");function a(e=0,t,n){let a=-1;return Object(s.a)(t)?a=Number(t)<1?1:Number(t):Object(o.a)(t)&&(n=t),Object(o.a)(n)||(n=i.a),new r.a(t=>{const r=Object(s.a)(e)?e:+e-n.now();return n.schedule(l,r,{index:0,period:a,subscriber:t})})}function l(e){const{index:t,period:n,subscriber:r}=e;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}},QMMT:function(e,t,n){var r=n("a0xu"),i=n("UWiX")("toStringTag"),s="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:s?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},QbLZ:function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n("P2sY"))&&r.__esModule?r:{default:r};t.default=i.default||function(e){for(var t=1;t{if(e&&"function"==typeof e[o.a])return c=e,e=>{const t=c[o.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(a.a)(e))return Object(r.a)(e);if(Object(l.a)(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,i.a),e);if(e&&"function"==typeof e[s.a])return t=e,e=>{const n=t[s.a]();for(;;){let t;try{t=n.next()}catch(r){return e.error(r),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=Object(u.a)(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,c}},SpAZ:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",function(){return r})},SxV6:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("sVev"),i=n("pLZG"),s=n("IzEk"),o=n("xbPD"),a=n("XDbj"),l=n("SpAZ");function u(e,t){const n=arguments.length>=2;return u=>u.pipe(e?Object(i.a)((t,n)=>e(t,n,u)):l.a,Object(s.a)(1),n?Object(o.a)(t):Object(a.a)(()=>new r.a))}},T5KR:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("4hzb")),r(n("9vJG"))},TFLp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("PoRY"),s=n("gvyg");t.phone=function(e){return function(t){return s.isPresent(r.Validators.required(t))||i.isValidNumber(t.value,e)?null:{phone:!0}}}},TwXH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.min=function(e){return function(t){if(!i.isPresent(e))return null;if(i.isPresent(r.Validators.required(t)))return null;var n=+t.value;return n>=+e?null:{actualValue:n,requiredValue:+e,min:!0}}}},"U+KD":function(e,t,n){var r=n("B+OT"),i=n("JB68"),s=n("VVlx")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},UO39:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},UWiX:function(e,t,n){var r=n("29s/")("wks"),i=n("YqAc"),s=n("5T2Y").Symbol,o="function"==typeof s;(e.exports=function(e){return r[e]||(r[e]=o&&s[e]||(o?s:i)("Symbol."+e))}).store=r},UbbE:function(e,t,n){n("o8NH"),e.exports=n("WEpk").Object.assign},V7oC:function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n("SEkw"))&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof a&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof r.a?e[0]:Object(s.a)(t)(Object(o.a)(e,n))}},VVlx:function(e,t,n){var r=n("29s/")("keys"),i=n("YqAc");e.exports=function(e){return r[e]||(r[e]=i(e))}},"W/SZ":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("QgIP")),r(n("Jdkh"))},W070:function(e,t,n){var r=n("NsO/"),i=n("tEej"),s=n("D8kY");e.exports=function(e){return function(t,n,o){var a,l=r(t),u=i(l.length),c=s(o,u);if(e&&n!=n){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},WEpk:function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},WMd4:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a});var r=n("EY2u"),i=n("LRne"),s=n("z6cu"),o=function(e){return e.NEXT="N",e.ERROR="E",e.COMPLETE="C",e}({});let a=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return Object(s.a)(this.error);case"C":return Object(r.b)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})()},WQkh:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("afP1"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.range(this.range)},e.prototype.ngOnChanges=function(e){for(var t in e)"range"===t&&(this.validator=s.range(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={range:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","range","","formControlName",""],["","range","","formControl",""],["","range","","ngModel",""]],inputs:{range:"range"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.RangeValidator=l},XDbj:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("sVev"),i=n("7o/Q");function s(e=l){return t=>t.lift(new o(e))}class o{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new a(e,this.errorFactory))}}class a extends i.a{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function l(){return new r.a}},XNiG:function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return c});var r=n("HDdC"),i=n("7o/Q"),s=n("quSY"),o=n("9ppp"),a=n("Ylt2"),l=n("2QA8");class u extends i.a{constructor(e){super(e),this.destination=e}}let c=(()=>{class e extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new u(this)}lift(e){const t=new d(this,this);return t.operator=e,t}next(e){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;inew d(e,t),e})();class d extends c{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):s.a.EMPTY}}},XQZo:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("Zb1L"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.validate=function(e){return s.digits(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","digits","","formControlName",""],["","digits","","formControl",""],["","digits","","ngModel",""]],features:[o.\u0275\u0275ProvidersFeature([a])]}),e}();t.DigitsValidator=l},XoHu:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",function(){return r})},Xs6s:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("M6P7");r.Observable.prototype.finally=i._finally,r.Observable.prototype._finally=i._finally},"Y/cZ":function(e,t,n){"use strict";n.d(t,"a",function(){return r});let r=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})()},Y6u4:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e})()},Y7HM:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("DH7j");function i(e){return!Object(r.a)(e)&&e-parseFloat(e)+1>=0}},Y7ZC:function(e,t,n){var r=n("5T2Y"),i=n("WEpk"),s=n("2GTP"),o=n("NegM"),a=n("B+OT"),l=function(e,t,n){var u,c,d,h=e&l.F,p=e&l.G,f=e&l.S,g=e&l.P,m=e&l.B,v=e&l.W,y=p?i:i[t]||(i[t]={}),b=y.prototype,_=p?r:f?r[t]:(r[t]||{}).prototype;for(u in p&&(n=t),n)(c=!h&&_&&void 0!==_[u])&&a(y,u)||(d=c?_[u]:n[u],y[u]=p&&"function"!=typeof _[u]?n[u]:m&&c?s(d,r):v&&_[u]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):g&&"function"==typeof d?s(Function.call,d):d,g&&((y.virtual||(y.virtual={}))[u]=d,e&l.R&&b&&!b[u]&&o(b,u,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},YHbO:function(e){e.exports=JSON.parse('{"country_phone_code_to_countries":{"1":["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],"7":["RU","KZ"],"20":["EG"],"27":["ZA"],"30":["GR"],"31":["NL"],"32":["BE"],"33":["FR"],"34":["ES"],"36":["HU"],"39":["IT","VA"],"40":["RO"],"41":["CH"],"43":["AT"],"44":["GB","GG","IM","JE"],"45":["DK"],"46":["SE"],"47":["NO","SJ"],"48":["PL"],"49":["DE"],"51":["PE"],"52":["MX"],"53":["CU"],"54":["AR"],"55":["BR"],"56":["CL"],"57":["CO"],"58":["VE"],"60":["MY"],"61":["AU","CC","CX"],"62":["ID"],"63":["PH"],"64":["NZ"],"65":["SG"],"66":["TH"],"81":["JP"],"82":["KR"],"84":["VN"],"86":["CN"],"90":["TR"],"91":["IN"],"92":["PK"],"93":["AF"],"94":["LK"],"95":["MM"],"98":["IR"],"211":["SS"],"212":["MA","EH"],"213":["DZ"],"216":["TN"],"218":["LY"],"220":["GM"],"221":["SN"],"222":["MR"],"223":["ML"],"224":["GN"],"225":["CI"],"226":["BF"],"227":["NE"],"228":["TG"],"229":["BJ"],"230":["MU"],"231":["LR"],"232":["SL"],"233":["GH"],"234":["NG"],"235":["TD"],"236":["CF"],"237":["CM"],"238":["CV"],"239":["ST"],"240":["GQ"],"241":["GA"],"242":["CG"],"243":["CD"],"244":["AO"],"245":["GW"],"246":["IO"],"247":["AC"],"248":["SC"],"249":["SD"],"250":["RW"],"251":["ET"],"252":["SO"],"253":["DJ"],"254":["KE"],"255":["TZ"],"256":["UG"],"257":["BI"],"258":["MZ"],"260":["ZM"],"261":["MG"],"262":["RE","YT"],"263":["ZW"],"264":["NA"],"265":["MW"],"266":["LS"],"267":["BW"],"268":["SZ"],"269":["KM"],"290":["SH","TA"],"291":["ER"],"297":["AW"],"298":["FO"],"299":["GL"],"350":["GI"],"351":["PT"],"352":["LU"],"353":["IE"],"354":["IS"],"355":["AL"],"356":["MT"],"357":["CY"],"358":["FI","AX"],"359":["BG"],"370":["LT"],"371":["LV"],"372":["EE"],"373":["MD"],"374":["AM"],"375":["BY"],"376":["AD"],"377":["MC"],"378":["SM"],"380":["UA"],"381":["RS"],"382":["ME"],"385":["HR"],"386":["SI"],"387":["BA"],"389":["MK"],"420":["CZ"],"421":["SK"],"423":["LI"],"500":["FK"],"501":["BZ"],"502":["GT"],"503":["SV"],"504":["HN"],"505":["NI"],"506":["CR"],"507":["PA"],"508":["PM"],"509":["HT"],"590":["GP","BL","MF"],"591":["BO"],"592":["GY"],"593":["EC"],"594":["GF"],"595":["PY"],"596":["MQ"],"597":["SR"],"598":["UY"],"599":["CW","BQ"],"670":["TL"],"672":["NF"],"673":["BN"],"674":["NR"],"675":["PG"],"676":["TO"],"677":["SB"],"678":["VU"],"679":["FJ"],"680":["PW"],"681":["WF"],"682":["CK"],"683":["NU"],"685":["WS"],"686":["KI"],"687":["NC"],"688":["TV"],"689":["PF"],"690":["TK"],"691":["FM"],"692":["MH"],"800":["001"],"808":["001"],"850":["KP"],"852":["HK"],"853":["MO"],"855":["KH"],"856":["LA"],"870":["001"],"878":["001"],"880":["BD"],"881":["001"],"882":["001"],"883":["001"],"886":["TW"],"888":["001"],"960":["MV"],"961":["LB"],"962":["JO"],"963":["SY"],"964":["IQ"],"965":["KW"],"966":["SA"],"967":["YE"],"968":["OM"],"970":["PS"],"971":["AE"],"972":["IL"],"973":["BH"],"974":["QA"],"975":["BT"],"976":["MN"],"977":["NP"],"979":["001"],"992":["TJ"],"993":["TM"],"994":["AZ"],"995":["GE"],"996":["KG"],"998":["UZ"]},"countries":{"AC":["247","[46]\\\\d{4}|[01589]\\\\d{5}"],"AD":["376","[16]\\\\d{5,8}|[37-9]\\\\d{5}",[["(\\\\d{3})(\\\\d{3})","$1 $2",["[137-9]|6[0-8]"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["180","180[02]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["690"]]]],"AE":["971","[2-79]\\\\d{7,8}|800\\\\d{2,9}",[["([2-4679])(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2-4679][2-8]"]],["(5\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["5"]],["([479]00)(\\\\d)(\\\\d{5})","$1 $2 $3",["[479]00"],"$1"],["([68]00)(\\\\d{2,9})","$1 $2",["[68]00"],"$1"]],"0","0$1"],"AF":["93","[2-7]\\\\d{8}",[["([2-7]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2-7]"]]],"0","0$1"],"AG":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"268"],"AI":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"264"],"AL":["355","[2-57]\\\\d{7}|6\\\\d{8}|8\\\\d{5,7}|9\\\\d{5}",[["(4)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["4[0-6]"]],["(6\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["6"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2358][2-5]|4[7-9]"]],["(\\\\d{3})(\\\\d{3,5})","$1 $2",["[235][16-9]|[79]|8[016-9]"]]],"0","0$1"],"AM":["374","[1-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{6})","$1 $2",["1|47"]],["(\\\\d{2})(\\\\d{6})","$1 $2",["4[1349]|[5-7]|88|9[1-9]"],"0$1"],["(\\\\d{3})(\\\\d{5})","$1 $2",["[23]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["8|90"],"0 $1"]],"0","(0$1)"],"AO":["244","[29]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3"]]],"AR":["54","11\\\\d{8}|[2368]\\\\d{9}|9\\\\d{10}",[["([68]\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[68]"]],["(9)(11)(\\\\d{4})(\\\\d{4})","$2 15-$3-$4",["911"],null,null,"$1 $2 $3-$4"],["(9)(\\\\d{3})(\\\\d{3})(\\\\d{4})","$2 15-$3-$4",["9(?:2[2-4689]|3[3-8])","9(?:2(?:2[013]|3[067]|49|6[01346]|8|9[147-9])|3(?:36|4[1-358]|5[138]|6|7[069]|8[013578]))","9(?:2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3[4-6]|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45])))","9(?:2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3(?:4|5[014]|6[1-39])|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45])))"],null,null,"$1 $2 $3-$4"],["(9)(\\\\d{4})(\\\\d{2})(\\\\d{4})","$2 15-$3-$4",["9[23]"],null,null,"$1 $2 $3-$4"],["(11)(\\\\d{4})(\\\\d{4})","$1 $2-$3",["11"],null,"true"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2-$3",["2(?:2[013]|3[067]|49|6[01346]|8|9[147-9])|3(?:36|4[1-358]|5[138]|6|7[069]|8[013578])","2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3[4-6]|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45]))","2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3(?:4|5[014]|6[1-39])|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45]))"],null,"true"],["(\\\\d{4})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["[23]"],null,"true"]],"0","0$1","0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))?15)?","9$1"],"AS":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"684"],"AT":["43","[1-9]\\\\d{3,12}",[["(116\\\\d{3})","$1",["116"],"$1"],["(1)(\\\\d{3,12})","$1 $2",["1"]],["(5\\\\d)(\\\\d{3,5})","$1 $2",["5[079]"]],["(5\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["5[079]"]],["(5\\\\d)(\\\\d{4})(\\\\d{4,7})","$1 $2 $3",["5[079]"]],["(\\\\d{3})(\\\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:[28]0|32)|[89]"]],["(\\\\d{4})(\\\\d{3,9})","$1 $2",["2|3(?:1[1-578]|[3-8])|4[2378]|5[2-6]|6(?:[12]|4[1-9]|5[468])|7(?:[24][1-8]|35|[5-79])"]]],"0","0$1"],"AU":["61","1\\\\d{4,9}|[2-578]\\\\d{8}",[["([2378])(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(16)(\\\\d{3,4})","$1 $2",["16"],"0$1"],["(16)(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(1[389]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[389]0","1(?:[38]0|9)0"]],["(180)(2\\\\d{3})","$1 $2",["180","1802"]],["(19\\\\d)(\\\\d{3})","$1 $2",["19[13]"]],["(19\\\\d{2})(\\\\d{4})","$1 $2",["19[679]"]],["(13)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["13[1-9]"]]],"0",null,null,null,null,null,["[237]\\\\d{8}|8(?:51(?:0(?:0[03-9]|[1247]\\\\d|3[2-9]|5[0-8]|6[1-9]|8[0-6])|1(?:1[69]|[23]\\\\d|4[0-4]))|[6-8]\\\\d{4}|9(?:[02-9]\\\\d{3}|1(?:[0-57-9]\\\\d{2}|6[0135-9]\\\\d)))\\\\d{3}","14(?:5\\\\d|71)\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[6-9]|7[02-9]|8[12457-9]|9[017-9])\\\\d{6}","180(?:0\\\\d{3}|2)\\\\d{3}","19(?:0[0126]\\\\d|[679])\\\\d{5}","500\\\\d{6}",null,null,"16\\\\d{3,7}","550\\\\d{6}","13(?:00\\\\d{3}|45[0-4]|\\\\d)\\\\d{3}"]],"AW":["297","[25-9]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"AX":["358","1\\\\d{5,11}|[35]\\\\d{5,9}|2\\\\d{4,9}|4\\\\d{5,10}|6\\\\d{7,9}|7\\\\d{4,9}|8\\\\d{6,9}",[["(\\\\d{3})(\\\\d{3,7})","$1 $2",["(?:[1-3]0|[6-8])0"]],["(75\\\\d{3})","$1",["75[12]"]],["(116\\\\d{3})","$1",["116"],"$1"],["(\\\\d{2})(\\\\d{4,10})","$1 $2",["[14]|2[09]|50|7[135]"]],["(\\\\d)(\\\\d{4,11})","$1 $2",["[25689][1-8]|3"]]],"0",null,null,null,null,null,["18[1-8]\\\\d{3,9}","4\\\\d{5,10}|50\\\\d{4,8}","800\\\\d{4,7}","[67]00\\\\d{5,6}",null,null,"[13]0\\\\d{4,8}|2(?:0(?:[016-8]\\\\d{3,7}|[2-59]\\\\d{2,7})|9\\\\d{4,8})|60(?:[12]\\\\d{5,6}|6\\\\d{7})|7(?:1\\\\d{7}|3\\\\d{8}|5[03-9]\\\\d{2,7})"]],"AZ":["994","[1-9]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["1[28]|2(?:[0-36]|[45]2)|365"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[4-8]"],"0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["9"],"0$1"]],"0","(0$1)"],"BA":["387","[3-9]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2-$3",["[3-5]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6[1-356]|[7-9]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["6[047]"]]],"0","0$1"],"BB":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"246"],"BD":["880","[2-79]\\\\d{5,9}|1\\\\d{9}|8[0-7]\\\\d{4,8}",[["(2)(\\\\d{7,8})","$1-$2",["2"]],["(\\\\d{2})(\\\\d{4,6})","$1-$2",["[3-79]1"]],["(\\\\d{4})(\\\\d{3,6})","$1-$2",["1|3(?:0|[2-58]2)|4(?:0|[25]2|3[23]|[4689][25])|5(?:[02-578]2|6[25])|6(?:[0347-9]2|[26][25])|7[02-9]2|8(?:[023][23]|[4-7]2)|9(?:[02][23]|[458]2|6[016])"]],["(\\\\d{3})(\\\\d{3,7})","$1-$2",["[3-79][2-9]|8"]]],"0","0$1"],"BE":["32","[1-9]\\\\d{7,8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["4[6-9]"]],["(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[23]|4[23]|9[2-4]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[156]|7[018]|8(?:0[1-9]|[1-79])"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["(?:80|9)0"]]],"0","0$1"],"BF":["226","[25-7]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"BG":["359","[23567]\\\\d{5,7}|[489]\\\\d{6,8}",[["(2)(\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["2"]],["(2)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["43[124-7]|70[1-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1 $2 $3",["43[124-7]|70[1-9]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[78]00"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["99[69]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["48|8[7-9]|9[08]"]]],"0","0$1"],"BH":["973","[136-9]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"BI":["257","[267]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"BJ":["229","[2689]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2689]"]]]],"BL":["590","[56]\\\\d{8}",[["([56]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["590|69[01]"]]],"0",null,null,null,null,null,["590(?:2[7-9]|5[12]|87)\\\\d{4}","69(?:0\\\\d{2}|1(?:2[29]|3[0-5]))\\\\d{4}"]],"BM":["1","[4589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"441"],"BN":["673","[2-578]\\\\d{6}",[["([2-578]\\\\d{2})(\\\\d{4})","$1 $2",["[2-578]"]]]],"BO":["591","[23467]\\\\d{7}|8\\\\d{8}",[["([234])(\\\\d{7})","$1 $2",["[2-4]"]],["([67]\\\\d{7})","$1",["[67]"]],["(800)(\\\\d{2})(\\\\d{4})","$1 $2 $3",["800"]]],"0",null,"0(1\\\\d)?"],"BQ":["599","[347]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[13-7]"]],["(9)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["9"]]],null,null,null,null,null,null,["(?:318[023]|41(?:6[023]|70)|7(?:1[578]|50)\\\\d)\\\\d{3}","(?:31(?:8[14-8]|9[14578])|416[145-9]|7(?:0[01]|7[07]|8\\\\d|9[056])\\\\d)\\\\d{3}"]],"BR":["55","[1-46-9]\\\\d{7,10}|5(?:[0-4]\\\\d{7,9}|5(?:[2-8]\\\\d{7}|9\\\\d{7,8}))",[["(\\\\d{4})(\\\\d{4})","$1-$2",["300|40[02]","300|40(?:0|20)"]],["([3589]00)(\\\\d{2,3})(\\\\d{4})","$1 $2 $3",["[3589]00"],"0$1"],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2-$3",["[1-9][1-9]"],"($1)"],["(\\\\d{2})(\\\\d{5})(\\\\d{4})","$1 $2-$3",["[1-9][1-9]9"],"($1)"]],"0",null,"0(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\\\d{10,11}))?","$2"],"BS":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"242"],"BT":["975","[1-8]\\\\d{6,7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["1|77"]],["([2-8])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-68]|7[246]"]]]],"BW":["267","[2-79]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[2-6]"]],["(7\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7"]],["(90)(\\\\d{5})","$1 $2",["90"]]]],"BY":["375","[1-4]\\\\d{8}|8(?:0(?:0\\\\d{3,7}|[13]\\\\d{7})|(?:10|20\\\\d)\\\\d{7})|9\\\\d{9,10}",[["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["17[0-3589]|2[4-9]|[34]","17(?:[02358]|1[0-2]|9[0189])|2[4-9]|[34]"],"8 0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["1(?:5[24]|6[235]|7[467])|2(?:1[246]|2[25]|3[26])","1(?:5[24]|6(?:2|3[04-9]|5[0346-9])|7(?:[46]|7[37-9]))|2(?:1[246]|2[25]|3[26])"],"8 0$1"],["(\\\\d{4})(\\\\d{2})(\\\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["([89]\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8[01]|9"],"8 $1"],["(82\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["82"],"8 $1"],["(800)(\\\\d{3})","$1 $2",["800"],"8 $1"],["(800)(\\\\d{2})(\\\\d{2,4})","$1 $2 $3",["800"],"8 $1"]],"8",null,"8?0?"],"BZ":["501","[2-8]\\\\d{6}|0\\\\d{10}",[["(\\\\d{3})(\\\\d{4})","$1-$2",["[2-8]"]],["(0)(800)(\\\\d{4})(\\\\d{3})","$1-$2-$3-$4",["080","0800"]]]],"CA":["1","[2-9]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,null,["(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|65)|4(?:03|1[68]|3[178]|50)|5(?:06|1[49]|48|79|8[17])|6(?:0[04]|13|22|39|47)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\\\d{6}",null,"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}","900[2-9]\\\\d{6}","5(?:(?:00|22|33|44|66|77|88)[2-9]|21[23])\\\\d{6}"]],"CC":["61","[1458]\\\\d{5,9}",[["([2378])(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(16)(\\\\d{3,4})","$1 $2",["16"],"0$1"],["(16)(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(1[389]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[389]0","1(?:[38]0|9)0"]],["(180)(2\\\\d{3})","$1 $2",["180","1802"]],["(19\\\\d)(\\\\d{3})","$1 $2",["19[13]"]],["(19\\\\d{2})(\\\\d{4})","$1 $2",["19[679]"]],["(13)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["13[1-9]"]]],"0",null,null,null,null,null,["8(?:51(?:0(?:02|31|60)|118)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:08|22|68)|4[29]8|62\\\\d|70[23]|959))\\\\d{3}","14(?:5\\\\d|71)\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[6-9]|7[02-9]|8[12547-9]|9[017-9])\\\\d{6}","180(?:0\\\\d{3}|2)\\\\d{3}","19(?:0[0126]\\\\d|[679])\\\\d{5}","500\\\\d{6}",null,null,null,"550\\\\d{6}","13(?:00\\\\d{2})?\\\\d{4}"]],"CD":["243","[2-6]\\\\d{6}|[18]\\\\d{6,8}|9\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["12"]],["([89]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8[0-2459]|9"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["88"]],["(\\\\d{2})(\\\\d{5})","$1 $2",["[1-6]"]]],"0","0$1"],"CF":["236","[278]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"CG":["242","[028]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["801"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[02]"]],["(\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["800"]]]],"CH":["41","[2-9]\\\\d{8}|860\\\\d{9}",[["([2-9]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-7]|[89]1"]],["([89]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8[047]|90"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["860"]]],"0","0$1"],"CI":["225","[02-8]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"CK":["682","[2-8]\\\\d{4}",[["(\\\\d{2})(\\\\d{3})","$1 $2"]]],"CL":["56","1230\\\\d{7}|[2-46-9]\\\\d{8,10}|5[1-3578]\\\\d{7}",[["(\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2[23]"],"($1)"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[357]|4[1-35]|6[13-57]"],"($1)"],["(9)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["9"]],["(44)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["44"]],["([68]00)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[68]00"],"$1"],["(600)(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["600"],"$1"],["(1230)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["123","1230"],"$1"],["(\\\\d{5})(\\\\d{4})","$1 $2",["219"],"($1)"]],"0","0$1","0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))"],"CM":["237","[2368]\\\\d{7,8}",[["([26])(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["[26]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[23]|88"]]]],"CN":["86","[1-7]\\\\d{6,11}|8[0-357-9]\\\\d{6,9}|9\\\\d{7,10}",[["([48]00)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[48]00"]],["(\\\\d{2})(\\\\d{5,6})","$1 $2",["(?:10|2\\\\d)[19]","(?:10|2\\\\d)(?:10|9[56])","(?:10|2\\\\d)(?:100|9[56])"],"0$1"],["(\\\\d{3})(\\\\d{5,6})","$1 $2",["[3-9]","[3-9]\\\\d\\\\d[19]","[3-9]\\\\d\\\\d(?:10|9[56])"],"0$1"],["(21)(\\\\d{4})(\\\\d{4,6})","$1 $2 $3",["21"],"0$1","true"],["([12]\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["10[1-9]|2[02-9]","10[1-9]|2[02-9]","10(?:[1-79]|8(?:0[1-9]|[1-9]))|2[02-9]"],"0$1","true"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["3(?:1[02-9]|35|49|5|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|[35][2-9]|6[47-9]|7|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[04-9]|4[3-6]|6[2368])|8(?:1[236-8]|2[5-7]|3|5[1-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])"],"0$1","true"],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["3(?:11|7[179])|4(?:[15]1|3[1-35])|5(?:1|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[457]|6[09])|8(?:[57]1|98)"],"0$1","true"],["(\\\\d{4})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["807","8078"],"0$1","true"],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["1(?:[3-57-9]|66)"]],["(10800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["108","1080","10800"]],["(\\\\d{3})(\\\\d{7,8})","$1 $2",["950"]]],"0",null,"(1(?:[129]\\\\d{3}|79\\\\d{2}))|0"],"CO":["57","(?:[13]\\\\d{0,3}|[24-8])\\\\d{7}",[["(\\\\d)(\\\\d{7})","$1 $2",["1(?:[2-7]|8[2-9]|9[0-3])|[24-8]","1(?:[2-7]|8[2-9]|9(?:09|[1-3]))|[24-8]"],"($1)"],["(\\\\d{3})(\\\\d{7})","$1 $2",["3"]],["(1)(\\\\d{3})(\\\\d{7})","$1-$2-$3",["1(?:80|9[04])","1(?:800|9(?:0[01]|4[78]))"],"0$1",null,"$1 $2 $3"]],"0",null,"0([3579]|4(?:44|56))?"],"CR":["506","[24-9]\\\\d{7,9}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[24-7]|8[3-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[89]0"]]],null,null,"(19(?:0[012468]|1[09]|20|66|77|99))"],"CU":["53","[2-57]\\\\d{5,7}",[["(\\\\d)(\\\\d{6,7})","$1 $2",["7"]],["(\\\\d{2})(\\\\d{4,6})","$1 $2",["[2-4]"]],["(\\\\d)(\\\\d{7})","$1 $2",["5"],"0$1"]],"0","(0$1)"],"CV":["238","[259]\\\\d{6}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"CW":["599","[134679]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[13-7]"]],["(9)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["9"]]],null,null,null,null,null,null,["9(?:[48]\\\\d{2}|50\\\\d|7(?:2[0-24]|[34]\\\\d|6[35-7]|77|8[7-9]))\\\\d{4}","9(?:5(?:[12467]\\\\d|3[01])|6(?:[15-9]\\\\d|3[01]))\\\\d{4}",null,null,null,null,null,"955\\\\d{5}",null,"60[0-2]\\\\d{4}"]],"CX":["61","[1458]\\\\d{5,9}",[["([2378])(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(16)(\\\\d{3,4})","$1 $2",["16"],"0$1"],["(16)(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(1[389]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[389]0","1(?:[38]0|9)0"]],["(180)(2\\\\d{3})","$1 $2",["180","1802"]],["(19\\\\d)(\\\\d{3})","$1 $2",["19[13]"]],["(19\\\\d{2})(\\\\d{4})","$1 $2",["19[679]"]],["(13)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["13[1-9]"]]],"0",null,null,null,null,null,["8(?:51(?:0(?:01|30|59)|117)|91(?:00[6-9]|1(?:21|49|78|81)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\\\d|7(?:0[01]|1[0-2])|958))\\\\d{3}","14(?:5\\\\d|71)\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[6-9]|7[02-9]|8[12547-9]|9[017-9])\\\\d{6}","180(?:0\\\\d{3}|2)\\\\d{3}","19(?:0[0126]\\\\d|[679])\\\\d{5}","500\\\\d{6}",null,null,null,"550\\\\d{6}","13(?:00\\\\d{2})?\\\\d{4}"]],"CY":["357","[257-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{6})","$1 $2"]]],"CZ":["420","[2-8]\\\\d{8}|9\\\\d{8,11}",[["([2-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(96\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["96"]],["(9\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["9[36]"]]]],"DE":["49","[1-35-9]\\\\d{3,14}|4(?:[0-8]\\\\d{3,12}|9(?:[0-37]\\\\d|4(?:[1-35-8]|4\\\\d?)|5\\\\d{1,2}|6[1-8]\\\\d?)\\\\d{2,8})",[["(1\\\\d{2})(\\\\d{7,8})","$1 $2",["1[67]"]],["(15\\\\d{3})(\\\\d{6})","$1 $2",["15[0568]"]],["(1\\\\d{3})(\\\\d{7})","$1 $2",["15"]],["(\\\\d{2})(\\\\d{3,11})","$1 $2",["3[02]|40|[68]9"]],["(\\\\d{3})(\\\\d{3,11})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14]|[4-9]1)|3(?:[35-9][15]|4[015])|[4-8][1-9]1|9(?:06|[1-9]1)"]],["(\\\\d{4})(\\\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|[7-9](?:0[1-9]|[1-9])","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|[46][1246]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|3[1357]|4[13578]|6[1246]|7[1356]|9[1346])|5(?:0[14]|2[1-3589]|3[1357]|[49][1246]|6[1-4]|7[1346]|8[13568])|6(?:0[356]|2[1-489]|3[124-6]|4[1347]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|3[1357]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|4[1347]|6[0135-9]|7[1467]|8[136])|9(?:0[12479]|2[1358]|3[1357]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|[7-9](?:0[1-9]|[1-9])"]],["(3\\\\d{4})(\\\\d{1,10})","$1 $2",["3"]],["(800)(\\\\d{7,12})","$1 $2",["800"]],["(\\\\d{3})(\\\\d)(\\\\d{4,10})","$1 $2 $3",["1(?:37|80)|900","1(?:37|80)|900[1359]"]],["(1\\\\d{2})(\\\\d{5,11})","$1 $2",["181"]],["(18\\\\d{3})(\\\\d{6})","$1 $2",["185","1850","18500"]],["(18\\\\d{2})(\\\\d{7})","$1 $2",["18[68]"]],["(18\\\\d)(\\\\d{8})","$1 $2",["18[2-579]"]],["(700)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["700"]],["(138)(\\\\d{4})","$1 $2",["138"]],["(15[013-68])(\\\\d{2})(\\\\d{8})","$1 $2 $3",["15[013-68]"]],["(15[279]\\\\d)(\\\\d{2})(\\\\d{7})","$1 $2 $3",["15[279]"]],["(1[67]\\\\d)(\\\\d{2})(\\\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"]]],"0","0$1"],"DJ":["253","[27]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"DK":["45","[2-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"DM":["1","[57-9]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"767"],"DO":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"8[024]9"],"DZ":["213","(?:[1-4]|[5-9]\\\\d)\\\\d{7}",[["([1-4]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[1-4]"]],["([5-8]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[5-8]"]],["(9\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["9"]]],"0","0$1"],"EC":["593","1\\\\d{9,10}|[2-8]\\\\d{7}|9\\\\d{8}",[["(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2-$3",["[247]|[356][2-8]"],null,null,"$1-$2-$3"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["9"],"0$1"],["(1800)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["180","1800"],"$1"]],"0","(0$1)"],"EE":["372","[3-9]\\\\d{6,7}|800\\\\d{6,7}",[["([3-79]\\\\d{2})(\\\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]"]],["(70)(\\\\d{2})(\\\\d{4})","$1 $2 $3",["70"]],["(8000)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["800","8000"]],["([458]\\\\d{3})(\\\\d{3,4})","$1 $2",["40|5|8(?:00|[1-5])","40|5|8(?:00[1-9]|[1-5])"]]]],"EG":["20","1\\\\d{4,9}|[24-6]\\\\d{8}|3\\\\d{7}|[89]\\\\d{8,9}",[["(\\\\d)(\\\\d{7,8})","$1 $2",["[23]"]],["(\\\\d{2})(\\\\d{6,7})","$1 $2",["1(?:3|5[239])|[4-6]|[89][2-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[0-25]|[89]00"]]],"0","0$1"],"EH":["212","[5-9]\\\\d{8}",[["([5-7]\\\\d{2})(\\\\d{6})","$1-$2",["5(?:2[015-7]|3[0-4])|[67]"]],["([58]\\\\d{3})(\\\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|92)|892","5(?:2(?:[2-48]|9[0-7])|3(?:[5-79]|8[0-7])|924)|892"]],["(5\\\\d{4})(\\\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]"]],["([5]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5(?:4[067]|5[03])"]],["(8[09])(\\\\d{7})","$1-$2",["8(?:0|9[013-9])"]]],"0",null,null,null,null,"528[89]"],"ER":["291","[178]\\\\d{6}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3"]],"0","0$1"],"ES":["34","[5-9]\\\\d{8}",[["([89]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[89]00"]],["([5-9]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[568]|[79][0-8]"]]]],"ET":["251","[1-59]\\\\d{8}",[["([1-59]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1-59]"]]],"0","0$1"],"FI":["358","1\\\\d{4,11}|[2-9]\\\\d{4,10}",[["(\\\\d{3})(\\\\d{3,7})","$1 $2",["(?:[1-3]0|[6-8])0"]],["(75\\\\d{3})","$1",["75[12]"]],["(116\\\\d{3})","$1",["116"],"$1"],["(\\\\d{2})(\\\\d{4,10})","$1 $2",["[14]|2[09]|50|7[135]"]],["(\\\\d)(\\\\d{4,11})","$1 $2",["[25689][1-8]|3"]]],"0","0$1",null,null,null,null,["1(?:[3569][1-8]\\\\d{3,9}|[47]\\\\d{5,10})|2[1-8]\\\\d{3,9}|3(?:[1-8]\\\\d{3,9}|9\\\\d{4,8})|[5689][1-8]\\\\d{3,9}","4(?:[0-8]\\\\d{4,9}|9\\\\d{3,8})|50\\\\d{4,8}","800\\\\d{4,7}","[67]00\\\\d{5,6}",null,null,"[13]0\\\\d{4,8}|2(?:0(?:[016-8]\\\\d{3,7}|[2-59]\\\\d{2,7})|9\\\\d{4,8})|60(?:[12]\\\\d{5,6}|6\\\\d{7})|7(?:1\\\\d{7}|3\\\\d{8}|5[03-9]\\\\d{3,7})"]],"FJ":["679","[2-9]\\\\d{6}|0\\\\d{10}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[2-9]"]],["(\\\\d{4})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["0"]]]],"FK":["500","[2-7]\\\\d{4}"],"FM":["691","[39]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"FO":["298","[2-9]\\\\d{5}",[["(\\\\d{6})","$1"]],null,null,"(10(?:01|[12]0|88))"],"FR":["33","[1-9]\\\\d{8}",[["([1-79])(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["[1-79]"]],["(8\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["8"],"0 $1"]],"0","0$1"],"GA":["241","0?\\\\d{7}",[["(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["0"]]]],"GB":["44","\\\\d{7,10}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0","0$1",null,null,null,null,["2(?:0[01378]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\\\d{7}|1(?:1(?:3[0-48]|[46][0-4]|5[0-26-9]|[78][0-49])|21[0-7]|31[0-8]|[4-69]1\\\\d)\\\\d{6}|1(?:2(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\\\d)|3(?:0\\\\d|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[28][02-57-9]|[37]\\\\d|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|2[024-9]|3[015689]|4[02-9]|5[03-9]|6\\\\d|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0124578])|7(?:0[0246-9]|2\\\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\\\d|8[02-9]|9[02569])|9(?:0[02-589]|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|8\\\\d|9[2-57]))\\\\d{6}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[345])))|3(?:638[2-5]|647[23]|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[123]))|5(?:24(?:3[2-79]|6\\\\d)|276\\\\d|6(?:26[06-9]|686))|6(?:06(?:4\\\\d|7[4-79])|295[567]|35[34]\\\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|955[0-4])|7(?:26(?:6[13-9]|7[0-7])|442\\\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\\\d|37(?:5[2-5]|8[239])|84(?:3[2-58]))|9(?:0(?:0(?:6[1-8]|85)|52\\\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\\\d{3}|176888[2-46-8]\\\\d{2}|16977[23]\\\\d{3}","7(?:[1-3]\\\\d{3}|4(?:[0-46-9]\\\\d{2}|5(?:[0-689]\\\\d|7[0-57-9]))|5(?:0[0-8]|[13-9]\\\\d|2[0-35-9])\\\\d|7(?:0(?:0[01]|[1-9]\\\\d)|[1-7]\\\\d{2}|8[02-9]\\\\d|9[0-689]\\\\d)|8(?:[014-9]\\\\d|[23][0-8])\\\\d|9(?:[024-9]\\\\d{2}|1(?:[02-9]\\\\d|1[028])|3[0-689]\\\\d))\\\\d{5}","80(?:0(?:1111|\\\\d{6,7})|8\\\\d{7})","(?:87[123]|9(?:[01]\\\\d|8[2349]))\\\\d{7}","70\\\\d{8}",null,"(?:3[0347]|55)\\\\d{8}","76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}","56\\\\d{8}","8(?:4(?:5464\\\\d|[2-5]\\\\d{7})|70\\\\d{7})"]],"GD":["1","[4589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"473"],"GE":["995","[34578]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7"],"0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5"]]],"0"],"GF":["594","[56]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]],"0","0$1"],"GG":["44","[135789]\\\\d{6,9}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0",null,null,null,null,null,["1481[25-9]\\\\d{5}","7(?:781\\\\d|839\\\\d|911[17])\\\\d{5}","80(?:0(?:1111|\\\\d{6,7})|8\\\\d{7})","(?:87[123]|9(?:[01]\\\\d|8[0-3]))\\\\d{7}","70\\\\d{8}",null,"(?:3[0347]|55)\\\\d{8}","76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}","56\\\\d{8}","8(?:4(?:5464\\\\d|[2-5]\\\\d{7})|70\\\\d{7})"]],"GH":["233","[235]\\\\d{8}|8\\\\d{7}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[235]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["8"]]],"0","0$1"],"GI":["350","[256]\\\\d{7}",[["(\\\\d{3})(\\\\d{5})","$1 $2",["2"]]]],"GL":["299","[1-689]\\\\d{5}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"GM":["220","[2-9]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"GN":["224","[367]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["3"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[67]"]]]],"GP":["590","[56]\\\\d{8}",[["([56]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["590|69[01]"]]],"0","0$1",null,null,null,null,["590(?:0[1-68]|1[0-2]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\\\d)\\\\d{4}","69(?:0\\\\d{2}|1(?:2[29]|3[0-5]))\\\\d{4}"]],"GQ":["240","[23589]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[235]"]],["(\\\\d{3})(\\\\d{6})","$1 $2",["[89]"]]]],"GR":["30","[26-9]\\\\d{9}",[["([27]\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["21|7"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2[2-9]1|[689]"]],["(2\\\\d{3})(\\\\d{6})","$1 $2",["2[2-9][02-9]"]]]],"GT":["502","[2-7]\\\\d{7}|1[89]\\\\d{9}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[2-7]"]],["(\\\\d{4})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]]]],"GU":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"671"],"GW":["245","(?:4(?:0\\\\d{5}|4\\\\d{7})|9\\\\d{8})",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["44|9[5-7]"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["40"]]]],"GY":["592","[2-46-9]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"HK":["852","[2-7]\\\\d{7}|8[0-3]\\\\d{6,7}|9\\\\d{4,10}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[2-7]|[89](?:0[1-9]|[1-9])"]],["(800)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["800"]],["(900)(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["900"]],["(900)(\\\\d{2,5})","$1 $2",["900"]]]],"HN":["504","[237-9]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1-$2"]]],"HR":["385","[1-7]\\\\d{5,8}|[89]\\\\d{6,8}",[["(1)(\\\\d{4})(\\\\d{3})","$1 $2 $3",["1"]],["([2-5]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[2-5]"]],["(9\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["9"]],["(6[01])(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["6[01]"]],["([67]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[67]"]],["(80[01])(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["80[01]"]],["(80[01])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["80[01]"]]],"0","0$1"],"HT":["509","[2-489]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2 $3"]]],"HU":["36","[1-9]\\\\d{7,8}",[["(1)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[2-9]"]]],"06","($1)"],"ID":["62","(?:[1-79]\\\\d{6,10}|8\\\\d{7,11})",[["(\\\\d{2})(\\\\d{5,8})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\\\d{3})(\\\\d{5,8})","$1 $2",["2[035-9]|[36][02-9]|[4579]"],"(0$1)"],["(8\\\\d{2})(\\\\d{3,4})(\\\\d{3})","$1-$2-$3",["8[1-35-9]"]],["(8\\\\d{2})(\\\\d{4})(\\\\d{4,5})","$1-$2-$3",["8[1-35-9]"]],["(1)(500)(\\\\d{3})","$1 $2 $3",["150","1500"],"$1"],["(177)(\\\\d{6,8})","$1 $2",["177"]],["(800)(\\\\d{5,7})","$1 $2",["800"]],["(804)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["804"]],["(80\\\\d)(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["80[79]"]]],"0","0$1"],"IE":["353","[124-9]\\\\d{6,9}",[["(1)(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["1"]],["(\\\\d{2})(\\\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["40[24]|50[45]"]],["(48)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["48"]],["(818)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["818"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[24-69]|7[14]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["76|8[35-9]"],"0$1"],["(8\\\\d)(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3 $4",["8[35-9]5"],"0$1"],["(700)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["700"],"0$1"],["(\\\\d{4})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1(?:5|8[059])","1(?:5|8[059]0)"],"$1"]],"0","(0$1)"],"IL":["972","1\\\\d{6,11}|[2-589]\\\\d{3}(?:\\\\d{3,6})?|6\\\\d{3}|7\\\\d{6,9}",[["([2-489])(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["([57]\\\\d)(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(153)(\\\\d{1,2})(\\\\d{3})(\\\\d{4})","$1 $2 $3 $4",["153"]],["(1)([7-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(1255)(\\\\d{3})","$1-$2",["125","1255"]],["(1200)(\\\\d{3})(\\\\d{3})","$1-$2-$3",["120","1200"]],["(1212)(\\\\d{2})(\\\\d{2})","$1-$2-$3",["121","1212"]],["(1599)(\\\\d{6})","$1-$2",["159","1599"]],["(151)(\\\\d{1,2})(\\\\d{3})(\\\\d{4})","$1-$2 $3-$4",["151"]],["(\\\\d{4})","*$1",["[2-689]"]]],"0"],"IM":["44","[135789]\\\\d{6,9}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0",null,null,null,null,null,["1624[5-8]\\\\d{5}","7(?:4576|[59]24\\\\d|624[0-4689])\\\\d{5}","808162\\\\d{4}","(?:872299|90[0167]624)\\\\d{4}","70\\\\d{8}",null,"3(?:08162\\\\d|3\\\\d{5}|4(?:40[49]06|5624\\\\d)|7(?:0624\\\\d|2299\\\\d))\\\\d{3}|55\\\\d{8}",null,"56\\\\d{8}","8(?:4(?:40[49]06|5624\\\\d)|70624\\\\d)\\\\d{3}"]],"IN":["91","008\\\\d{9}|1\\\\d{7,12}|[2-9]\\\\d{9,10}",[["(\\\\d{8})","$1",["561","5616","56161"],"$1"],["(\\\\d{5})(\\\\d{5})","$1 $2",["6(?:[09]0|2[03689]|3[05-9])|7(?:[02-8]|19|9[037-9])|8(?:0[015-9]|[1-9])|9","6(?:[09]0|2(?:0[01]|39|60|8[0-2]|9[04])|3(?:0[01]|5[0-2]|60|7[05]|81|9[03-5]))|7(?:[07]|19[0-5]|2(?:[0235-9]|[14][017-9])|3(?:[025-9]|[134][017-9])|4(?:[0-35689]|[47][017-9])|5(?:[02-46-9]|[15][017-9])|6(?:[02-9]|1[0-257-9])|8(?:[0-79]|8[0189])|9(?:[089]|31|7[02-9]))|8(?:0(?:[01589]|6[67]|7[02-9])|1(?:[0-57-9]|6[07-9])|2(?:[014][07-9]|[235-9])|3(?:[03-57-9]|[126][07-9])|[45]|6(?:[02457-9]|[136][07-9])|7(?:[078][07-9]|[1-69])|8(?:[0-25-9]|3[07-9]|4[047-9])|9(?:[02-9]|1[027-9]))|9","6(?:[09]0|2(?:0[01]|39|60|8[0-2]|9[04])|3(?:0[01]|5[0-2]|60|7[05]|81|9[03-5]))|7(?:0|19[0-5]|2(?:[0235-79]|[14][017-9]|8(?:[0-69]|[78][089]))|3(?:[05-8]|1(?:[0189]|7[5-9])|2(?:[0-49][089]|[5-8])|3[017-9]|4(?:[07-9]|11)|9(?:[01689]|[2-5][089]|7[0189]))|4(?:[056]|1(?:[0135-9]|[24][089])|[29](?:[0-7][089]|[89])|3(?:[0-8][089]|9)|[47](?:[089]|11|7[02-8])|8(?:[0-24-7][089]|[389]))|5(?:[0346-9]|[15][017-9]|2(?:[03-9]|[12][089]))|6(?:[0346-9]|1[0-257-9]|2(?:[0-4]|[5-9][089])|5(?:[0-367][089]|[4589]))|7(?:0(?:[02-9]|1[089])|[1-9])|8(?:[0-79]|8(?:0[0189]|11|8[013-9]|9))|9(?:[089]|313|7(?:[02-8]|9[07-9])))|8(?:0(?:[01589]|6[67]|7(?:[02-8]|9[05-9]))|1(?:[02-57-9]|1(?:[0-35-9]|4[0-46-9])|6(?:[089]|7[02-8]))|2(?:0(?:[089]|7[02])|[14](?:[089]|7[02-8])|[235-9])|3(?:[03-57-9]|1(?:[089]|7[02-6])|2(?:[09]|77|8[0-689])|6(?:[089]|7[02-7]))|[45]|6(?:[02457-9]|[136](?:[089]|7[02-8]))|7(?:0[07-9]|[1-69]|[78](?:[089]|7[02-8]))|8(?:[0-25-9]|3(?:[089]|7[02-8])|4(?:[0489]|7[02-68]))|9(?:[02-9]|1(?:[0289]|7[2-6])))|9"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-9]|80[2-46]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[59][14]|[68][1-9]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1|9[15])|6(?:12|[2-4]1|5[17]|6[13]|7[14]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)"]],["(\\\\d{4})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1(?:[23579]|[468][1-9])|[2-8]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})(\\\\d{3})","$1 $2 $3 $4",["008"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["140"],"$1"],["(\\\\d{4})(\\\\d{2})(\\\\d{4})","$1 $2 $3",["160","1600"],"$1"],["(\\\\d{4})(\\\\d{4,5})","$1 $2",["180","1800"],"$1"],["(\\\\d{4})(\\\\d{2,4})(\\\\d{4})","$1 $2 $3",["180","1800"],"$1"],["(\\\\d{4})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["186","1860"],"$1"],["(\\\\d{4})(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["18[06]"],"$1"]],"0","0$1",null,null,true],"IO":["246","3\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"IQ":["964","[1-7]\\\\d{7,9}",[["(1)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]],["([2-6]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[2-6]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"0","0$1"],"IR":["98","[1-8]\\\\d{5,9}|9(?:[0-4]\\\\d{8}|9\\\\d{8})",[["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[1-8]"]],["(\\\\d{2})(\\\\d{4,5})","$1 $2",["[1-8]"]],["(\\\\d{4,5})","$1",["96"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["9"]]],"0","0$1"],"IS":["354","[4-9]\\\\d{6}|38\\\\d{7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[4-9]"]],["(3\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["3"]]]],"IT":["39","[01589]\\\\d{5,10}|3(?:[12457-9]\\\\d{8}|[36]\\\\d{7,9})",[["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[26]|55"]],["(0[26])(\\\\d{4})(\\\\d{5})","$1 $2 $3",["0[26]"]],["(0[26])(\\\\d{4,6})","$1 $2",["0[26]"]],["(0\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[13-57-9][0159]"]],["(\\\\d{3})(\\\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]],["(0\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["0[13-57-9][2-46-8]"]],["(0\\\\d{3})(\\\\d{2,6})","$1 $2",["0[13-57-9][2-46-8]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[13]|8(?:00|4[08]|9[59])","[13]|8(?:00|4[08]|9(?:5[5-9]|9))"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["894","894[5-9]"]],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["3"]]],null,null,null,null,null,null,["0(?:[26]\\\\d{4,9}|(?:1(?:[0159]\\\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|3(?:[0159]\\\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|7(?:[0159]\\\\d|2[12]|3[1-7]|4[2346]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\\\d|2[34578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\\\d{2,7})","3(?:[12457-9]\\\\d{8}|6\\\\d{7,8}|3\\\\d{7,9})","80(?:0\\\\d{6}|3\\\\d{3})","0878\\\\d{5}|1(?:44|6[346])\\\\d{6}|89(?:2\\\\d{3}|4(?:[0-4]\\\\d{2}|[5-9]\\\\d{4})|5(?:[0-4]\\\\d{2}|[5-9]\\\\d{6})|9\\\\d{6})","1(?:78\\\\d|99)\\\\d{6}",null,null,null,"55\\\\d{8}","84(?:[08]\\\\d{6}|[17]\\\\d{3})"]],"JE":["44","[135789]\\\\d{6,9}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0",null,null,null,null,null,["1534[0-24-8]\\\\d{5}","7(?:509\\\\d|7(?:00[378]|97[7-9])|829\\\\d|937\\\\d)\\\\d{5}","80(?:07(?:35|81)|8901)\\\\d{4}","(?:871206|90(?:066[59]|1810|71(?:07|55)))\\\\d{4}","701511\\\\d{4}",null,"3(?:0(?:07(?:35|81)|8901)|3\\\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))\\\\d{4}|55\\\\d{8}","76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}","56\\\\d{8}","8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|70002)\\\\d{4}"]],"JM":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"876"],"JO":["962","[235-9]\\\\d{7,8}",[["(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(7)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["7[457-9]"]],["(\\\\d{2})(\\\\d{7})","$1 $2",["70"]],["(\\\\d{3})(\\\\d{5,6})","$1 $2",["8[0158]|9"]]],"0","0$1"],"JP":["81","[1-9]\\\\d{8,9}|00(?:[36]\\\\d{7,14}|7\\\\d{5,7}|8\\\\d{7})",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1-$2-$3",["(?:12|57|99)0"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["800"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1-$2-$3",["[2579]0|80[1-9]"]],["(\\\\d{4})(\\\\d)(\\\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[78]|96)|477|51[24]|636)|9(?:496|802|9(?:1[23]|69))","1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[78]|96[2457-9])|477|51[24]|636[2-57-9])|9(?:496|802|9(?:1[23]|69))"]],["(\\\\d{3})(\\\\d{2})(\\\\d{4})","$1-$2-$3",["1(?:2[3-6]|3[3-9]|4[2-6]|5[2-8]|[68][2-7]|7[2-689]|9[1-578])|2(?:2[03-689]|3[3-58]|4[0-468]|5[04-8]|6[013-8]|7[06-9]|8[02-57-9]|9[13])|4(?:2[28]|3[689]|6[035-7]|7[05689]|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9[4-9])|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9[014-9])|8(?:2[49]|3[3-8]|4[5-8]|5[2-9]|6[35-9]|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9[3-7])","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:[0468][2-9]|5[78]|7[2-4])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[4-7]|[89][2-8]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9[2-8])|3(?:[3-6][2-9]|7[2-6]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5[4-7]|6[2-9]|8[2-8]|9[236-9])|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3[34]|4[2-69]|[5-7]))","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:[0468][2-9]|5[78]|7[2-4])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[4-7]|[89][2-8]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:20|[3578]|4[04-9]|6[56]))|3(?:[3-6][2-9]|7(?:[2-5]|6[0-59])|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:[0468][2-9]|5[78]|7[2-4])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[4-7]|[89][2-8]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:20|[3578]|4[04-9]|6(?:5[25]|60)))|3(?:[3-6][2-9]|7(?:[2-5]|6[0-59])|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["1|2(?:2[37]|5[5-9]|64|78|8[39]|91)|4(?:2[2689]|64|7[347])|5[2-589]|60|8(?:2[124589]|3[279]|[46-9])|9(?:[235-8]|93)","1|2(?:2[37]|5(?:[57]|[68]0|9[19])|64|78|8[39]|917)|4(?:2(?:20|[68]|9[178])|64|7[347])|5[2-589]|60|8(?:2[124589]|3[279]|[46-9])|9(?:[235-8]|93[34])","1|2(?:2[37]|5(?:[57]|[68]0|9(?:17|99))|64|78|8[39]|917)|4(?:2(?:20|[68]|9[178])|64|7[347])|5[2-589]|60|8(?:2[124589]|3[279]|[46-9])|9(?:[235-8]|93(?:31|4))"]],["(\\\\d{3})(\\\\d{2})(\\\\d{4})","$1-$2-$3",["2(?:[34]7|[56]9|74|9[14-79])|82|993"]],["(\\\\d)(\\\\d{4})(\\\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[2479][1-9]"]]],"0","0$1"],"KE":["254","20\\\\d{6,7}|[4-9]\\\\d{6,9}",[["(\\\\d{2})(\\\\d{5,7})","$1 $2",["[24-6]"]],["(\\\\d{3})(\\\\d{6})","$1 $2",["7"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[89]"]]],"0","0$1","005|0"],"KG":["996","[235-8]\\\\d{8,9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[25-7]|31[25]"]],["(\\\\d{4})(\\\\d{5})","$1 $2",["3(?:1[36]|[2-9])"]],["(\\\\d{3})(\\\\d{3})(\\\\d)(\\\\d{3})","$1 $2 $3 $4",["8"]]],"0","0$1"],"KH":["855","[1-9]\\\\d{7,9}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["1\\\\d[1-9]|[2-9]"],"0$1"],["(1[89]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[89]0","1[89]00"]]],"0"],"KI":["686","[2458]\\\\d{4}|3\\\\d{4,7}|[67]\\\\d{7}",[],null,null,"0"],"KM":["269","[3478]\\\\d{6}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"KN":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"869"],"KP":["850","1\\\\d{9}|[28]\\\\d{7}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]],["(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8"]]],"0","0$1"],"KR":["82","00(?:3\\\\d{8,9}|7\\\\d{9,11})|[1-7]\\\\d{4,9}|8\\\\d{8}",[["(\\\\d{2})(\\\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"]],["(\\\\d{4})(\\\\d{4})","$1-$2",["1(?:5[246-9]|6[046-8]|8[03579])","1(?:5(?:22|44|66|77|88|99)|6(?:[07]0|44|6[16]|88)|8(?:00|33|55|77|99))"],"$1"],["(\\\\d{5})","$1",["1[016-9]1","1[016-9]11","1[016-9]114"]],["(\\\\d)(\\\\d{3,4})(\\\\d{4})","$1-$2-$3",["2[1-9]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["60[2-9]|80"]],["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1-$2-$3",["1[0-25-9]|(?:3[1-3]|[46][1-4]|5[1-5])[1-9]"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1-$2-$3",["[57]0"]]],"0","0$1","0(8[1-46-8]|85\\\\d{2})?"],"KW":["965","[12569]\\\\d{6,7}",[["(\\\\d{4})(\\\\d{3,4})","$1 $2",["[16]|2(?:[0-35-9]|4[0-35-9])|52[25]|9[024-9]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["244|5(?:[015]|6[56])"]]]],"KY":["1","[3589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"345"],"KZ":["7","(?:33\\\\d|7\\\\d{2}|80[089])\\\\d{7}",[["([3489]\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["[3489]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"8",null,null,null,null,null,["33622\\\\d{5}|7(?:1(?:0(?:[23]\\\\d|4[0-3]|59|63)|1(?:[23]\\\\d|4[0-79]|59)|2(?:[23]\\\\d|59)|3(?:2\\\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\\\d|3[013-9]|5[1-9])|5(?:2\\\\d|3[1-9]|4[0-7]|59)|6(?:[234]\\\\d|5[19]|61)|72\\\\d|8(?:[27]\\\\d|3[1-46-9]|4[0-5]))|2(?:1(?:[23]\\\\d|4[46-9]|5[3469])|2(?:2\\\\d|3[0679]|46|5[12679])|3(?:[234]\\\\d|5[139])|4(?:2\\\\d|3[1235-9]|59)|5(?:[23]\\\\d|4[01246-8]|59|61)|6(?:2\\\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\\\d|40|5[279])|8(?:[23]\\\\d|4[0-3]|59)|9(?:2\\\\d|3[124578]|59)))\\\\d{5}","7(?:0[012578]|47|6[02-4]|7[15-8]|85)\\\\d{7}","800\\\\d{7}","809\\\\d{7}","808\\\\d{7}",null,null,null,"751\\\\d{7}"]],"LA":["856","[2-8]\\\\d{7,9}",[["(20)(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["20"]],["([2-8]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"]],["(30)(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["30"]]],"0","0$1"],"LB":["961","[13-9]\\\\d{6,7}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["([7-9]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7(?:[01]|6[013-9]|8[89]|9[1-3])|[89][01]"]]],"0"],"LC":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"758"],"LI":["423","6\\\\d{8}|[23789]\\\\d{6}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["[237-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6[56]"]],["(69)(7\\\\d{2})(\\\\d{4})","$1 $2 $3",["697"]]],"0",null,"0|10(?:01|20|66)"],"LK":["94","[1-9]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[1-689]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"0","0$1"],"LR":["231","2\\\\d{7,8}|[378]\\\\d{8}|4\\\\d{6}|5\\\\d{6,8}",[["(2\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2"]],["([4-5])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[45]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[23578]"]]],"0","0$1"],"LS":["266","[2568]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"LT":["370","[3-9]\\\\d{7}",[["([34]\\\\d)(\\\\d{6})","$1 $2",["37|4(?:1|5[45]|6[2-4])"]],["([3-6]\\\\d{2})(\\\\d{5})","$1 $2",["3[148]|4(?:[24]|6[09])|528|6"]],["([7-9]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[7-9]"],"8 $1"],["(5)(2\\\\d{2})(\\\\d{4})","$1 $2 $3",["52[0-79]"]]],"8","(8-$1)","[08]",null,true],"LU":["352","[24-9]\\\\d{3,10}|3(?:[0-46-9]\\\\d{2,9}|5[013-9]\\\\d{1,8})",[["(\\\\d{2})(\\\\d{3})","$1 $2",["[2-5]|7[1-9]|[89](?:0[2-9]|[1-9])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["[2-5]|7[1-9]|[89](?:0[2-9]|[1-9])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["20"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["20"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,4})","$1 $2 $3 $4",["2(?:[12589]|4[12])|[3-5]|7[1-9]|8(?:0[2-9]|[1-9])|9(?:0[2-46-9]|[1-9])"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["70|80[01]|90[015]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6"]]],null,null,"(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\\\\d)"],"LV":["371","[2689]\\\\d{7}",[["([2689]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2689]"]]]],"LY":["218","[25679]\\\\d{8}",[["([25-79]\\\\d)(\\\\d{7})","$1-$2",["[25-79]"]]],"0","0$1"],"MA":["212","[5-9]\\\\d{8}",[["([5-7]\\\\d{2})(\\\\d{6})","$1-$2",["5(?:2[015-7]|3[0-4])|[67]"]],["([58]\\\\d{3})(\\\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|92)|892","5(?:2(?:[2-48]|9[0-7])|3(?:[5-79]|8[0-7])|924)|892"]],["(5\\\\d{4})(\\\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]"]],["([5]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5(?:4[067]|5[03])"]],["(8[09])(\\\\d{7})","$1-$2",["8(?:0|9[013-9])"]]],"0","0$1",null,null,null,null,["5(?:2(?:[015-79]\\\\d|2[02-9]|3[2-57]|4[2-8]|8[235-7])\\\\d|3(?:[0-48]\\\\d|[57][2-9]|6[2-8]|9[3-9])\\\\d|4[067]\\\\d{2}|5[03]\\\\d{2})\\\\d{4}","(?:6(?:[0-79]\\\\d|8[0-247-9])|7(?:0[067]|6[1267]|7[07]))\\\\d{6}","80\\\\d{7}","89\\\\d{7}",null,null,null,null,"5924[01]\\\\d{4}"]],"MC":["377","[34689]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[39]"],"$1"],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["4"]],["(6)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["6"]],["(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1 $2 $3",["8"],"$1"]],"0","0$1"],"MD":["373","[235-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["22|3"]],["([25-7]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["2[13-9]|[5-7]"]],["([89]\\\\d{2})(\\\\d{5})","$1 $2",["[89]"]]],"0","0$1"],"ME":["382","[2-9]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-57-9]|6[036-9]"]]],"0","0$1"],"MF":["590","[56]\\\\d{8}",[["([56]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["590|69[01]"]]],"0",null,null,null,null,null,["590(?:0[079]|13|2[79]|30|43|5[0-268]|7[79]|87)\\\\d{4}","69(?:0\\\\d{2}|1(?:2[29]|3[0-5]))\\\\d{4}"]],"MG":["261","[23]\\\\d{8}",[["([23]\\\\d)(\\\\d{2})(\\\\d{3})(\\\\d{2})","$1 $2 $3 $4",["[23]"]]],"0","0$1"],"MH":["692","[2-6]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1-$2"]],"1"],"MK":["389","[2-578]\\\\d{7}",[["(2)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"]],["([347]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[347]"]],["([58]\\\\d{2})(\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[58]"]]],"0","0$1"],"ML":["223","[246-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[246-9]"]]]],"MM":["95","[178]\\\\d{5,7}|[24-6]\\\\d{5,8}|9(?:[279]\\\\d{0,2}|5|[34]\\\\d{1,2}|6(?:\\\\d{1,2})?|8(?:\\\\d{2})?)\\\\d{6}",[["(\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["1|2[245]"]],["(2)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["251"]],["(\\\\d)(\\\\d{2})(\\\\d{3})","$1 $2 $3",["16|2"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["432|67|81"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3,4})","$1 $2 $3",["[4-8]"]],["(9)(\\\\d{3})(\\\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"]],["(9)([34]\\\\d{4})(\\\\d{4})","$1 $2 $3",["9(?:3[0-36]|4[0-57-9])"]],["(9)(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["92[56]"]],["(9)(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1 $2 $3 $4",["93"]]],"0","0$1"],"MN":["976","[12]\\\\d{7,9}|[57-9]\\\\d{7}",[["([12]\\\\d)(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[12]1"]],["([12]2\\\\d)(\\\\d{5,6})","$1 $2",["[12]2[1-3]"]],["([12]\\\\d{3})(\\\\d{5})","$1 $2",["[12](?:27|[3-5])","[12](?:27|[3-5]\\\\d)2"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["[57-9]"],"$1"],["([12]\\\\d{4})(\\\\d{4,5})","$1 $2",["[12](?:27|[3-5])","[12](?:27|[3-5]\\\\d)[4-9]"]]],"0","0$1"],"MO":["853","[268]\\\\d{7}",[["([268]\\\\d{3})(\\\\d{4})","$1 $2",["[268]"]]]],"MP":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"670"],"MQ":["596","[56]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]],"0","0$1"],"MR":["222","[2-48]\\\\d{7}",[["([2-48]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],"MS":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"664"],"MT":["356","[2357-9]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"MU":["230","[2-9]\\\\d{6,7}",[["([2-46-9]\\\\d{2})(\\\\d{4})","$1 $2",["[2-46-9]"]],["(5\\\\d{3})(\\\\d{4})","$1 $2",["5"]]]],"MV":["960","[346-8]\\\\d{6,9}|9(?:00\\\\d{7}|\\\\d{6})",[["(\\\\d{3})(\\\\d{4})","$1-$2",["[3467]|9(?:0[1-9]|[1-9])"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[89]00"]]]],"MW":["265","(?:1(?:\\\\d{2})?|[2789]\\\\d{2})\\\\d{6}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1"]],["(2\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[17-9]"]]],"0","0$1"],"MX":["52","[1-9]\\\\d{9,10}",[["([358]\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["33|55|81"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2467]|3[0-2457-9]|5[089]|8[02-9]|9[0-35-9]"]],["(1)([358]\\\\d)(\\\\d{4})(\\\\d{4})","044 $2 $3 $4",["1(?:33|55|81)"],"$1",null,"$1 $2 $3 $4"],["(1)(\\\\d{3})(\\\\d{3})(\\\\d{4})","044 $2 $3 $4",["1(?:[2467]|3[0-2457-9]|5[089]|8[2-9]|9[1-35-9])"],"$1",null,"$1 $2 $3 $4"]],"01","01 $1","0[12]|04[45](\\\\d{10})","1$1",true],"MY":["60","[13-9]\\\\d{7,9}",[["([4-79])(\\\\d{3})(\\\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(3)(\\\\d{4})(\\\\d{4})","$1-$2 $3",["3"],"0$1"],["([18]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1-$2 $3",["1[02-46-9][1-9]|8"],"0$1"],["(1)([36-8]00)(\\\\d{2})(\\\\d{4})","$1-$2-$3-$4",["1[36-8]0","1[36-8]00"]],["(11)(\\\\d{4})(\\\\d{4})","$1-$2 $3",["11"],"0$1"],["(15[49])(\\\\d{3})(\\\\d{4})","$1-$2 $3",["15[49]"],"0$1"]],"0"],"MZ":["258","[28]\\\\d{7,8}",[["([28]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2|8[2-7]"]],["(80\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["80"]]]],"NA":["264","[68]\\\\d{7,8}",[["(8\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8[1-35]"]],["(6\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["6"]],["(88)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["88"]],["(870)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["870"]]],"0","0$1"],"NC":["687","[2-57-9]\\\\d{5}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1.$2.$3",["[2-46-9]|5[0-4]"]]]],"NE":["227","[0289]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["09|[289]"]],["(08)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["08"]]]],"NF":["672","[13]\\\\d{5}",[["(\\\\d{2})(\\\\d{4})","$1 $2",["1"]],["(\\\\d)(\\\\d{5})","$1 $2",["3"]]]],"NG":["234","[1-6]\\\\d{5,8}|9\\\\d{5,9}|[78]\\\\d{5,13}",[["(\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2,3})","$1 $2 $3",["[3-6]|7(?:0[1-9]|[1-79])|8[2-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["70|8[01]|90[235-9]"]],["([78]00)(\\\\d{4})(\\\\d{4,5})","$1 $2 $3",["[78]00"]],["([78]00)(\\\\d{5})(\\\\d{5,6})","$1 $2 $3",["[78]00"]],["(78)(\\\\d{2})(\\\\d{3})","$1 $2 $3",["78"]]],"0","0$1"],"NI":["505","[125-8]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"NL":["31","1\\\\d{4,8}|[2-7]\\\\d{8}|[89]\\\\d{6,9}",[["([1-578]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[035]|2[0346]|3[03568]|4[0356]|5[0358]|7|8[4578]"]],["([1-5]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"]],["(6)(\\\\d{8})","$1 $2",["6[0-57-9]"]],["(66)(\\\\d{7})","$1 $2",["66"]],["(14)(\\\\d{3,4})","$1 $2",["14"],"$1"],["([89]0\\\\d)(\\\\d{4,7})","$1 $2",["[89]0"]]],"0","0$1"],"NO":["47","0\\\\d{4}|[2-9]\\\\d{7}",[["([489]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[489]"]],["([235-7]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[235-7]"]]],null,null,null,null,null,null,["(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\\\d{6}","(?:4[015-8]|5[89]|87|9\\\\d)\\\\d{6}","80[01]\\\\d{5}","82[09]\\\\d{5}","880\\\\d{5}",null,"0\\\\d{4}|81(?:0(?:0[7-9]|1\\\\d)|5\\\\d{2})\\\\d{3}",null,"85[0-5]\\\\d{5}","810(?:0[0-6]|[2-8]\\\\d)\\\\d{3}"]],"NP":["977","[1-8]\\\\d{7}|9(?:[1-69]\\\\d{6,8}|7[2-6]\\\\d{5,7}|8\\\\d{8})",[["(1)(\\\\d{7})","$1-$2",["1[2-6]"]],["(\\\\d{2})(\\\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-69]|7[15-9])"]],["(9\\\\d{2})(\\\\d{7})","$1-$2",["9(?:6[013]|7[245]|8)"],"$1"]],"0","0$1"],"NR":["674","[458]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"NU":["683","[1-5]\\\\d{3}"],"NZ":["64","6[235-9]\\\\d{6}|[2-57-9]\\\\d{7,9}",[["(\\\\d)(\\\\d{3})(\\\\d{4})","$1-$2 $3",["240|[346]|7[2-57-9]|9[1-9]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["21"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,5})","$1 $2 $3",["2(?:1[1-9]|[69]|7[0-35-9])|70|86"]],["(2\\\\d)(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["2[028]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["90"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2(?:10|74)|5|[89]0"]]],"0","0$1"],"OM":["968","(?:5|[279]\\\\d)\\\\d{6}|800\\\\d{5,6}",[["(2\\\\d)(\\\\d{6})","$1 $2",["2"]],["([79]\\\\d{3})(\\\\d{4})","$1 $2",["[79]"]],["([58]00)(\\\\d{4,6})","$1 $2",["[58]00"]]]],"PA":["507","[1-9]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1-$2",["[1-57-9]"]],["(\\\\d{4})(\\\\d{4})","$1-$2",["6"]]]],"PE":["51","[14-9]\\\\d{7,8}",[["(1)(\\\\d{7})","$1 $2",["1"]],["([4-8]\\\\d)(\\\\d{6})","$1 $2",["[4-7]|8[2-4]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["80"]],["(9\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9"],"$1"]],"0","(0$1)"],"PF":["689","4\\\\d{5,7}|8\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["4[09]|8[79]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["44"]]]],"PG":["675","[1-9]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[13-689]|27"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["20|7"]]]],"PH":["63","1\\\\d{10,12}|2\\\\d{5,7}|[3-7]\\\\d{8}|8\\\\d{7,9}|9\\\\d{9}",[["(2)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(2)(\\\\d{5})","$1 $2",["2"],"(0$1)"],["(\\\\d{4})(\\\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|5(?:22|44)|642|8(?:62|8[245])","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\\\d{5})(\\\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["([3-8]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[3-8]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["81|9"],"0$1"],["(1800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["180","1800"]],["(1800)(\\\\d{1,2})(\\\\d{3})(\\\\d{4})","$1 $2 $3 $4",["180","1800"]]],"0"],"PK":["92","1\\\\d{8}|[2-8]\\\\d{5,11}|9(?:[013-9]\\\\d{4,10}|2\\\\d(?:111\\\\d{6}|\\\\d{3,7}))",[["([89]00)(\\\\d{3})(\\\\d{2})","$1 $2 $3",["[89]00"],"0$1"],["(1\\\\d{3})(\\\\d{5})","$1 $2",["1"],"$1"],["(\\\\d{2})(\\\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"]],["(\\\\d{3})(\\\\d{6,7})","$1 $2",["2[349]|45|54|60|72|8[2-5]|9[2-469]","(?:2[349]|45|54|60|72|8[2-5]|9[2-469])\\\\d[2-9]"]],["(58\\\\d{3})(\\\\d{5})","$1 $2",["58[126]"]],["(3\\\\d{2})(\\\\d{7})","$1 $2",["3"],"0$1"],["(\\\\d{2})(111)(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)1","(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)11","(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)111"]],["(\\\\d{3})(111)(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["2[349]|45|54|60|72|8[2-5]|9[2-9]","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\\\d1","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\\\d11","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\\\d111"]]],"0","(0$1)"],"PL":["48","[1-57-9]\\\\d{6,8}|6\\\\d{5,8}",[["(\\\\d{3})(\\\\d{3})","$1 $2",["11[68]|64"]],["(\\\\d{5})","$1",["19"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["64"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["26|39|45|5[0137]|6[0469]|7[02389]|8[08]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[14]|2[0-57-9]|3[2-4]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145]"]]]],"PM":["508","[45]\\\\d{5}",[["([45]\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["[45]"]]],"0","0$1"],"PR":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"787|939"],"PS":["970","1\\\\d{9}|[24589]\\\\d{7,8}",[["([2489])(2\\\\d{2})(\\\\d{4})","$1 $2 $3",["[2489]2"]],["(5[69]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["5[69]"]],["(1[78]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[78]0","1[78]00"],"$1"]],"0","0$1"],"PT":["351","[2-46-9]\\\\d{8}",[["(2\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2[12]"]],["([2-46-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2[3-9]|[346-9]"]]]],"PW":["680","[2-8]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"PY":["595","5[0-5]\\\\d{4,7}|[2-46-9]\\\\d{5,8}",[["(\\\\d{2})(\\\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\\\d{3})(\\\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\\\d{3})(\\\\d{6})","$1 $2",["9[1-9]"],"0$1"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["870","8700"]],["(\\\\d{3})(\\\\d{4,5})","$1 $2",["[2-8][1-9]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-8][1-9]"],"0$1"]],"0"],"QA":["974","[2-8]\\\\d{6,7}",[["([28]\\\\d{2})(\\\\d{4})","$1 $2",["[28]"]],["([3-7]\\\\d{3})(\\\\d{4})","$1 $2",["[3-7]"]]]],"RE":["262","[268]\\\\d{8}",[["([268]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[268]"]]],"0","0$1",null,null,null,"262|69|8"],"RO":["40","[23]\\\\d{5,8}|[7-9]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[23]1"]],["(\\\\d{2})(\\\\d{4})","$1 $2",["[23]1"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[23][3-7]|[7-9]"]],["(2\\\\d{2})(\\\\d{3})","$1 $2",["2[3-6]"]]],"0","0$1"],"RS":["381","[126-9]\\\\d{4,11}|3(?:[0-79]\\\\d{3,10}|8[2-9]\\\\d{2,9})",[["([23]\\\\d{2})(\\\\d{4,9})","$1 $2",["(?:2[389]|39)0"]],["([1-3]\\\\d)(\\\\d{5,10})","$1 $2",["1|2(?:[0-24-7]|[389][1-9])|3(?:[0-8]|9[1-9])"]],["(6\\\\d)(\\\\d{6,8})","$1 $2",["6"]],["([89]\\\\d{2})(\\\\d{3,9})","$1 $2",["[89]"]],["(7[26])(\\\\d{4,9})","$1 $2",["7[26]"]],["(7[08]\\\\d)(\\\\d{4,9})","$1 $2",["7[08]"]]],"0","0$1"],"RU":["7","[347-9]\\\\d{9}",[["([3489]\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["[3489]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"8","8 ($1)",null,null,true,null,["(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15]|6[1-35-79]|7[1-37-9]))\\\\d{7}","9\\\\d{9}","80[04]\\\\d{7}","80[39]\\\\d{7}","808\\\\d{7}"]],"RW":["250","[027-9]\\\\d{7,8}",[["(2\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2"]],["([7-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(0\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["0"]]],"0"],"SA":["966","1\\\\d{7,8}|(?:[2-467]|92)\\\\d{7}|5\\\\d{8}|8\\\\d{9}",[["([1-467])(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1-467]"]],["(1\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[1-467]"]],["(5\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["5"]],["(92\\\\d{2})(\\\\d{5})","$1 $2",["92"],"$1"],["(800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["800"],"$1"],["(811)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["811"]]],"0","0$1"],"SB":["677","[1-9]\\\\d{4,6}",[["(\\\\d{2})(\\\\d{5})","$1 $2",["[7-9]"]]]],"SC":["248","[24689]\\\\d{5,6}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[246]"]]]],"SD":["249","[19]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3"]],"0","0$1"],"SE":["46","[1-35-9]\\\\d{5,11}|4\\\\d{6,8}",[["(8)(\\\\d{2,3})(\\\\d{2,3})(\\\\d{2})","$1-$2 $3 $4",["8"],null,null,"$1 $2 $3 $4"],["([1-69]\\\\d)(\\\\d{2,3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["1[013689]|2[0136]|3[1356]|4[0246]|54|6[03]|90"],null,null,"$1 $2 $3 $4"],["([1-469]\\\\d)(\\\\d{3})(\\\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90"],null,null,"$1 $2 $3"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[0-5]|4[0-3])"],null,null,"$1 $2 $3 $4"],["(\\\\d{3})(\\\\d{2,3})(\\\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[0-5]|4[0-3])"],null,null,"$1 $2 $3"],["(7\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["7"],null,null,"$1 $2 $3 $4"],["(77)(\\\\d{2})(\\\\d{2})","$1-$2$3",["77"],null,null,"$1 $2 $3"],["(20)(\\\\d{2,3})(\\\\d{2})","$1-$2 $3",["20"],null,null,"$1 $2 $3"],["(9[034]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1-$2 $3 $4",["9[034]"],null,null,"$1 $2 $3 $4"],["(9[034]\\\\d)(\\\\d{4})","$1-$2",["9[034]"],null,null,"$1 $2"],["(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4 $5",["25[245]|67[3-6]"],null,null,"$1 $2 $3 $4 $5"]],"0","0$1"],"SG":["65","[36]\\\\d{7}|[17-9]\\\\d{7,10}",[["([3689]\\\\d{3})(\\\\d{4})","$1 $2",["[369]|8[1-9]"]],["(1[89]00)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[89]0","1[89]00"]],["(7000)(\\\\d{4})(\\\\d{3})","$1 $2 $3",["700","7000"]],["(800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["800"]]]],"SH":["290","[256]\\\\d{4}|8\\\\d{3}",[],null,null,null,null,null,null,["2(?:[0-57-9]\\\\d|6[4-9])\\\\d{2}","[56]\\\\d{4}",null,null,null,null,null,null,"262\\\\d{2}"]],"SI":["386","[1-7]\\\\d{6,7}|[89]\\\\d{4,7}",[["(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[12]|[34][24-8]|5[2-8]|7[3-8]"],"(0$1)"],["([3-7]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"]],["([89][09])(\\\\d{3,6})","$1 $2",["[89][09]"]],["([58]\\\\d{2})(\\\\d{5})","$1 $2",["59|8[1-3]"]]],"0","0$1"],"SJ":["47","0\\\\d{4}|[45789]\\\\d{7}",[["([489]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[489]"]],["([235-7]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[235-7]"]]],null,null,null,null,null,null,["79\\\\d{6}","(?:4[015-8]|5[89]|9\\\\d)\\\\d{6}","80[01]\\\\d{5}","82[09]\\\\d{5}","880\\\\d{5}",null,"0\\\\d{4}|81(?:0(?:0[7-9]|1\\\\d)|5\\\\d{2})\\\\d{3}",null,"85[0-5]\\\\d{5}","810(?:0[0-6]|[2-8]\\\\d)\\\\d{3}"]],"SK":["421","(?:[2-68]\\\\d{5,8}|9\\\\d{6,8})",[["(2)(1[67])(\\\\d{3,4})","$1 $2 $3",["21[67]"]],["([3-5]\\\\d)(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["[3-5]"]],["(2)(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1/$2 $3 $4",["2"]],["([3-5]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1/$2 $3 $4",["[3-5]"]],["([689]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[689]"]],["(9090)(\\\\d{3})","$1 $2",["909","9090"]]],"0","0$1"],"SL":["232","[2-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{6})","$1 $2"]],"0","(0$1)"],"SM":["378","[05-7]\\\\d{7,9}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(0549)(\\\\d{6})","$1 $2",["054","0549"],null,null,"($1) $2"],["(\\\\d{6})","0549 $1",["[89]"],null,null,"(0549) $1"]],null,null,"([89]\\\\d{5})","0549$1"],"SN":["221","[3789]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[379]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["8"]]]],"SO":["252","[1-9]\\\\d{5,8}",[["(\\\\d{6})","$1",["[134]"]],["(\\\\d)(\\\\d{6})","$1 $2",["[13-5]|2[0-79]"]],["(\\\\d)(\\\\d{7})","$1 $2",["24|[67]"]],["(\\\\d{2})(\\\\d{4})","$1 $2",["8[125]"]],["(\\\\d{2})(\\\\d{5,7})","$1 $2",["15|28|6[1-35-9]|799|9[2-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["3[59]|4[89]|6[24-6]|79|8[08]|90"]]],"0"],"SR":["597","[2-8]\\\\d{5,6}",[["(\\\\d{3})(\\\\d{3})","$1-$2",["[2-4]|5[2-58]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1-$2-$3",["56"]],["(\\\\d{3})(\\\\d{4})","$1-$2",["[6-8]"]]]],"SS":["211","[19]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",null,"0$1"]],"0"],"ST":["239","[29]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"SV":["503","[267]\\\\d{7}|[89]\\\\d{6}(?:\\\\d{4})?",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[267]"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["[89]"]],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[89]"]]]],"SX":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"721"],"SY":["963","[1-59]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[1-5]"]],["(9\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9"]]],"0","0$1",null,null,true],"SZ":["268","[027]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[027]"]]]],"TA":["290","8\\\\d{3}",[],null,null,null,null,null,null,["8\\\\d{3}"]],"TC":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"649"],"TD":["235","[2679]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"TG":["228","[279]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[279]"]]]],"TH":["66","1\\\\d{8,9}|[2-9]\\\\d{7,8}",[["(2)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"]],["([13-9]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["14|[3-9]"]],["(1[89]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[89]0","1[89]00"],"$1"]],"0","0$1"],"TJ":["992","[3-57-9]\\\\d{8}",[["([349]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[34]7|91[78]"]],["([457-9]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["4[148]|[578]|9(?:[0235-9]|1[59])"]],["(331700)(\\\\d)(\\\\d{2})","$1 $2 $3",["331","3317","33170","331700"]],["(\\\\d{4})(\\\\d)(\\\\d{4})","$1 $2 $3",["3[1-5]","3(?:[1245]|3(?:[02-9]|1[0-589]))"]]],"8",null,null,null,true],"TK":["690","[2-47]\\\\d{3,6}"],"TL":["670","[2-489]\\\\d{6}|7\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[2-489]|70"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["7[3-8]"]]]],"TM":["993","[1-6]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["12"]],["(\\\\d{2})(\\\\d{6})","$1 $2",["6"],"8 $1"],["(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["13|[2-5]"]]],"8","(8 $1)"],"TN":["216","[2-57-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3"]]],"TO":["676","[02-8]\\\\d{4,6}",[["(\\\\d{2})(\\\\d{3})","$1-$2",["[1-6]|7[0-4]|8[05]"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["7[5-9]|8[47-9]"]],["(\\\\d{4})(\\\\d{3})","$1 $2",["0"]]]],"TR":["90","[2-589]\\\\d{9}|444\\\\d{4}",[["(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[23]|4(?:[0-35-9]|4[0-35-9])"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5[02-69]"],"0$1"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["51|[89]"],"0$1"],["(444)(\\\\d{1})(\\\\d{3})","$1 $2 $3",["444"]]],"0",null,null,null,true],"TT":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"868"],"TV":["688","[279]\\\\d{4,6}"],"TW":["886","2\\\\d{6,8}|[3-689]\\\\d{7,8}|7\\\\d{7,9}",[["(20)(\\\\d)(\\\\d{4})","$1 $2 $3",["202"]],["([258]0)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["20[013-9]|50[0-46-9]|80[0-79]"]],["([2-8])(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["[25][2-8]|[346]|[78][1-9]"]],["(9\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9"]],["(70)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["70"]]],"0","0$1"],"TZ":["255","\\\\d{9}",[["([24]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[24]"]],["([67]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[67]"]],["([89]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[89]"]]],"0","0$1"],"UA":["380","[3-9]\\\\d{8}",[["([3-9]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[38]9|4(?:[45][0-5]|87)|5(?:0|[67][37])|6[36-8]|7|9[1-9]","[38]9|4(?:[45][0-5]|87)|5(?:0|6(?:3[14-7]|7)|7[37])|6[36-8]|7|9[1-9]"]],["([3-689]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["(?:3[1-8]|4[136-8])2|5(?:[12457]2|6[24])|6(?:[12][29]|[49]2|5[24])|8[0-8]|90","3(?:[1-46-8]2[013-9]|52)|4(?:[1378]2|62[013-9])|5(?:[12457]2|6[24])|6(?:[12][29]|[49]2|5[24])|8[0-8]|90"]],["([3-6]\\\\d{3})(\\\\d{5})","$1 $2",["3(?:[1-46-8]|5[013-9])|4(?:[137][013-9]|[45][6-9]|6|8[4-6])|5(?:[1245][013-9]|3|6[0135689]|7[4-6])|6(?:[12][13-8]|[49][013-9]|5[0135-9])","3(?:[1-46-8](?:[013-9]|22)|5[013-9])|4(?:[137][013-9]|[45][6-9]|6(?:[013-9]|22)|8[4-6])|5(?:[1245][013-9]|3|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][13-8]|[49][013-9]|5[0135-9])"]]],"0","0$1"],"UG":["256","\\\\d{9}",[["(\\\\d{3})(\\\\d{6})","$1 $2",["20[0-8]|4(?:6[45]|[7-9])|[7-9]","20(?:[013-8]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"]],["(\\\\d{2})(\\\\d{7})","$1 $2",["3|4(?:[1-5]|6[0-36-9])"]],["(2024)(\\\\d{5})","$1 $2",["202","2024"]]],"0","0$1"],"US":["1","[2-9]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,true,null,["(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[026]|8[13])|3(?:0[1-57-9]|1[02-9]|2[0135]|3[0-24679]|4[67]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[0235]|58|6[39]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[013-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[16]|5[017]|6[0-279]|78|8[012])|7(?:0[1-46-8]|1[02-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|28|3[0-258]|4[3578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[014678]|4[0179]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\\\d{6}",null,"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}","900[2-9]\\\\d{6}","5(?:(?:00|22|33|44|66|77|88)[2-9]|21[23])\\\\d{6}"]],"UY":["598","[2489]\\\\d{6,7}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[24]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9[1-9]"],"0$1"],["(\\\\d{3})(\\\\d{4})","$1 $2",["[89]0"],"0$1"]],"0"],"UZ":["998","[679]\\\\d{8}",[["([679]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[679]"]]],"8","8 $1"],"VA":["39","(?:0(?:878\\\\d{5}|6698\\\\d{5})|[1589]\\\\d{5,10}|3(?:[12457-9]\\\\d{8}|[36]\\\\d{7,9}))",[["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[26]|55"]],["(0[26])(\\\\d{4})(\\\\d{5})","$1 $2 $3",["0[26]"]],["(0[26])(\\\\d{4,6})","$1 $2",["0[26]"]],["(0\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[13-57-9][0159]"]],["(\\\\d{3})(\\\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]],["(0\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["0[13-57-9][2-46-8]"]],["(0\\\\d{3})(\\\\d{2,6})","$1 $2",["0[13-57-9][2-46-8]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[13]|8(?:00|4[08]|9[59])","[13]|8(?:00|4[08]|9(?:5[5-9]|9))"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["894","894[5-9]"]],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["3"]]],null,null,null,null,null,null,["06698\\\\d{5}","3(?:[12457-9]\\\\d{8}|6\\\\d{7,8}|3\\\\d{7,9})","80(?:0\\\\d{6}|3\\\\d{3})","0878\\\\d{5}|1(?:44|6[346])\\\\d{6}|89(?:2\\\\d{3}|4(?:[0-4]\\\\d{2}|[5-9]\\\\d{4})|5(?:[0-4]\\\\d{2}|[5-9]\\\\d{6})|9\\\\d{6})","1(?:78\\\\d|99)\\\\d{6}",null,null,null,"55\\\\d{8}","84(?:[08]\\\\d{6}|[17]\\\\d{3})"]],"VC":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"784"],"VE":["58","[24589]\\\\d{9}",[["(\\\\d{3})(\\\\d{7})","$1-$2"]],"0","0$1"],"VG":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"284"],"VI":["1","[3589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"340"],"VN":["84","1\\\\d{6,9}|2\\\\d{9}|6\\\\d{6,7}|7\\\\d{6}|8\\\\d{6,8}|9\\\\d{8}",[["([17]99)(\\\\d{4})","$1 $2",["[17]99"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2[48]"]],["(80)(\\\\d{5})","$1 $2",["80"]],["(69\\\\d)(\\\\d{4,5})","$1 $2",["69"]],["(\\\\d{3})(\\\\d{4})(\\\\d{3})","$1 $2 $3",["2[0-35-79]"]],["([89]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["8(?:8|9[89])|9"]],["(1[2689]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[26]|8[68]|99)"]],["(86[89])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["86[89]"]],["(1[89]00)(\\\\d{4,6})","$1 $2",["1[89]0","1[89]00"],"$1"]],"0","0$1",null,null,true],"VU":["678","[2-57-9]\\\\d{4,6}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[579]"]]]],"WF":["681","[4-8]\\\\d{5}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"WS":["685","[2-8]\\\\d{4,6}",[["(8\\\\d{2})(\\\\d{3,4})","$1 $2",["8"]],["(7\\\\d)(\\\\d{5})","$1 $2",["7"]],["(\\\\d{5})","$1",["[2-6]"]]]],"YE":["967","[1-7]\\\\d{6,8}",[["([1-7])(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7[0137]"]]],"0","0$1"],"YT":["262","[268]\\\\d{8}",[["([268]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[268]"]]],"0",null,null,null,null,"269|63"],"ZA":["27","[1-79]\\\\d{8}|8\\\\d{4,8}",[["(860)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["860"]],["(\\\\d{2})(\\\\d{3,4})","$1 $2",["8[1-4]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2,3})","$1 $2 $3",["8[1-4]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1-79]|8(?:[0-57]|6[1-9])"]]],"0","0$1"],"ZM":["260","[289]\\\\d{8}",[["(\\\\d{2})(\\\\d{4})","$1 $2",null,"$1"],["([1-8])(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[1-8]"],"$1"],["([29]\\\\d)(\\\\d{7})","$1 $2",["[29]"]],["(800)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["800"]]],"0","0$1"],"ZW":["263","2(?:[0-57-9]\\\\d{3,8}|6(?:[14]\\\\d{7}|\\\\d{4}))|[13-69]\\\\d{4,9}|7\\\\d{8}|8[06]\\\\d{5,8}",[["([49])(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["4|9[2-9]"]],["(7\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]],["(86\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["86[24]"]],["([2356]\\\\d{2})(\\\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8|[78])|3(?:[09]8|17|3[78]|7[1569]|8[37])|5[15][78]|6(?:[29]8|37|[68][78]|75)"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|31|[56][14]|7[35]|84)|329"]],["([1-356]\\\\d)(\\\\d{3,5})","$1 $2",["1[3-9]|2[02569]|3[0-69]|5[05689]|6"]],["([235]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[23]9|54"]],["([25]\\\\d{3})(\\\\d{3,5})","$1 $2",["(?:25|54)8","258[23]|5483"]],["(8\\\\d{3})(\\\\d{6})","$1 $2",["86"]],["(80\\\\d)(\\\\d{4})","$1 $2",["80"]]],"0","0$1"],"001":["979","\\\\d{9}",[["(\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3"]]]}}')},YLEk:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("JIED")),r(n("OSYy"))},Ylt2:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("quSY");class i extends r.a{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},YqAc:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},ZF92:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.minDate=function(e){if(!(i.isDate(e)||e instanceof Function))throw Error("minDate value must be or return a formatted date");return function(t){if(i.isPresent(r.Validators.required(t)))return null;var n=new Date(t.value);return i.isDate(n)?(e instanceof Function&&(e=e()),n>=new Date(e)?null:{minDate:!0}):{minDate:!0}}}},ZR4w:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.map=function(e,t){return r.map(e,t)(this)}},ZUHj:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("7o/Q");class i extends r.a{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var s=n("SeVD"),o=n("HDdC");function a(e,t,n,r,a=new i(e,n,r)){if(!a.closed)return t instanceof o.a?t.subscribe(a):Object(s.a)(t)(a)}},Zb1L:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("XQZo")),r(n("b2M7"))},a0xu:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},aP66:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("kU1M");t.timeout=function(e,t){return void 0===t&&(t=r.asyncScheduler),i.timeout(e,t)(this)}},afP1:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("WQkh")),r(n("48ZK"))},b2M7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.digits=function(e){return i.isPresent(r.Validators.required(e))||/^\d+$/.test(e.value)?null:{digits:!0}}},bBy9:function(e,t,n){n("w2d+");for(var r=n("5T2Y"),i=n("NegM"),s=n("SBuE"),o=n("UWiX")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l=u?e?"":void 0:(s=a.charCodeAt(l))<55296||s>56319||l+1===u||(o=a.charCodeAt(l+1))<56320||o>57343?e?a.charAt(l):s:e?a.slice(l,l+2):o-56320+(s-55296<<10)+65536}}},cp0P:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("HDdC"),i=n("DH7j"),s=n("lJxs"),o=n("XoHu"),a=n("Cfvw");function l(...e){if(1===e.length){const t=e[0];if(Object(i.a)(t))return u(t,null);if(Object(o.a)(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return u(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return u(e=1===e.length&&Object(i.a)(e[0])?e[0]:e,null).pipe(Object(s.a)(e=>t(...e)))}return u(e,null)}function u(e,t){return new r.a(n=>{const r=e.length;if(0===r)return void n.complete();const i=new Array(r);let s=0,o=0;for(let l=0;l{c||(c=!0,o++),i[l]=e},error:e=>n.error(e),complete:()=>{s++,s!==r&&c||(o===r&&n.next(t?t.reduce((e,t,n)=>(e[t]=i[n],e),{}):i),n.complete())}}))}})}},crnd:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},eIep:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("lJxs"),i=n("Cfvw"),s=n("zx2A");function o(e,t){return"function"==typeof t?n=>n.pipe(o((n,s)=>Object(i.a)(e(n,s)).pipe(Object(r.a)((e,r)=>t(n,e,s,r))))):t=>t.lift(new a(e))}class a{constructor(e){this.project=e}call(e,t){return t.subscribe(new l(e,this.project))}}class l extends s.b{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new s.a(this),r=this.destination;r.add(n),this.innerSubscription=Object(s.c)(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}},eUtF:function(e,t,n){e.exports=!n("jmDH")&&!n("KUxP")(function(){return 7!=Object.defineProperty(n("Hsns")("div"),"a",{get:function(){return 7}}).a})},eaoh:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},fElF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("aP66");r.Observable.prototype.timeout=i.timeout},fNZA:function(e,t,n){var r=n("QMMT"),i=n("UWiX")("iterator"),s=n("SBuE");e.exports=n("WEpk").getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||s[r(e)]}},fWoD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.lte=function(e){return function(t){return i.isPresent(e)?i.isPresent(r.Validators.required(t))||+t.value<=+e?null:{lte:!0}:null}}},fXoL:function(e,t,n){"use strict";n.r(t),n.d(t,"ANALYZE_FOR_ENTRY_COMPONENTS",function(){return kn}),n.d(t,"APP_BOOTSTRAP_LISTENER",function(){return Dv}),n.d(t,"APP_ID",function(){return jv}),n.d(t,"APP_INITIALIZER",function(){return kv}),n.d(t,"ApplicationInitStatus",function(){return Tv}),n.d(t,"ApplicationModule",function(){return wb}),n.d(t,"ApplicationRef",function(){return Py}),n.d(t,"Attribute",function(){return On}),n.d(t,"COMPILER_OPTIONS",function(){return ry}),n.d(t,"CUSTOM_ELEMENTS_SCHEMA",function(){return Ni}),n.d(t,"ChangeDetectionStrategy",function(){return P}),n.d(t,"ChangeDetectorRef",function(){return lp}),n.d(t,"Compiler",function(){return ny}),n.d(t,"CompilerFactory",function(){return iy}),n.d(t,"Component",function(){return fv}),n.d(t,"ComponentFactory",function(){return $h}),n.d(t,"ComponentFactoryResolver",function(){return Ih}),n.d(t,"ComponentRef",function(){return xh}),n.d(t,"ContentChild",function(){return Vn}),n.d(t,"ContentChildren",function(){return jn}),n.d(t,"DEFAULT_CURRENCY_CODE",function(){return Bv}),n.d(t,"DebugElement",function(){return pb}),n.d(t,"DebugEventListener",function(){return zy}),n.d(t,"DebugNode",function(){return hb}),n.d(t,"DefaultIterableDiffer",function(){return Gh}),n.d(t,"Directive",function(){return pv}),n.d(t,"ElementRef",function(){return Nh}),n.d(t,"EmbeddedViewRef",function(){return Wy}),n.d(t,"ErrorHandler",function(){return Ai}),n.d(t,"EventEmitter",function(){return om}),n.d(t,"Host",function(){return sr}),n.d(t,"HostBinding",function(){return yv}),n.d(t,"HostListener",function(){return bv}),n.d(t,"INJECTOR",function(){return Jo}),n.d(t,"Inject",function(){return tr}),n.d(t,"InjectFlags",function(){return O}),n.d(t,"Injectable",function(){return Pl}),n.d(t,"InjectionToken",function(){return In}),n.d(t,"Injector",function(){return va}),n.d(t,"Input",function(){return mv}),n.d(t,"IterableDiffers",function(){return tp}),n.d(t,"KeyValueDiffers",function(){return np}),n.d(t,"LOCALE_ID",function(){return Lv}),n.d(t,"MissingTranslationStrategy",function(){return qv}),n.d(t,"ModuleWithComponentFactories",function(){return Gv}),n.d(t,"NO_ERRORS_SCHEMA",function(){return Di}),n.d(t,"NgModule",function(){return Ev}),n.d(t,"NgModuleFactory",function(){return wp}),n.d(t,"NgModuleFactoryLoader",function(){return Ay}),n.d(t,"NgModuleRef",function(){return _p}),n.d(t,"NgProbeToken",function(){return Sy}),n.d(t,"NgZone",function(){return ay}),n.d(t,"Optional",function(){return nr}),n.d(t,"Output",function(){return vv}),n.d(t,"PACKAGE_ROOT_URL",function(){return Rv}),n.d(t,"PLATFORM_ID",function(){return Nv}),n.d(t,"PLATFORM_INITIALIZER",function(){return Av}),n.d(t,"Pipe",function(){return gv}),n.d(t,"PlatformRef",function(){return jy}),n.d(t,"Query",function(){return Tn}),n.d(t,"QueryList",function(){return lm}),n.d(t,"ReflectiveInjector",function(){return ru}),n.d(t,"ReflectiveKey",function(){return Ll}),n.d(t,"Renderer2",function(){return Rh}),n.d(t,"RendererFactory2",function(){return Dh}),n.d(t,"RendererStyleFlags2",function(){return Ji}),n.d(t,"ResolvedReflectiveFactory",function(){return Kl}),n.d(t,"Sanitizer",function(){return Hh}),n.d(t,"SecurityContext",function(){return _i}),n.d(t,"Self",function(){return rr}),n.d(t,"SimpleChange",function(){return xe}),n.d(t,"SkipSelf",function(){return ir}),n.d(t,"SystemJsNgModuleLoader",function(){return Hy}),n.d(t,"SystemJsNgModuleLoaderConfig",function(){return Ly}),n.d(t,"TRANSLATIONS",function(){return Hv}),n.d(t,"TRANSLATIONS_FORMAT",function(){return Uv}),n.d(t,"TemplateRef",function(){return gp}),n.d(t,"Testability",function(){return fy}),n.d(t,"TestabilityRegistry",function(){return gy}),n.d(t,"Type",function(){return Dn}),n.d(t,"VERSION",function(){return qh}),n.d(t,"Version",function(){return Uh}),n.d(t,"ViewChild",function(){return Mn}),n.d(t,"ViewChildren",function(){return Pn}),n.d(t,"ViewContainerRef",function(){return $p}),n.d(t,"ViewEncapsulation",function(){return N}),n.d(t,"ViewRef",function(){return qy}),n.d(t,"WrappedValue",function(){return Xa}),n.d(t,"asNativeElements",function(){return Qy}),n.d(t,"assertPlatform",function(){return Iy}),n.d(t,"createPlatform",function(){return Ey}),n.d(t,"createPlatformFactory",function(){return Oy}),n.d(t,"defineInjectable",function(){return y}),n.d(t,"destroyPlatform",function(){return ky}),n.d(t,"enableProdMode",function(){return Kr}),n.d(t,"forwardRef",function(){return p}),n.d(t,"getDebugNode",function(){return lb}),n.d(t,"getModuleFactory",function(){return Ry}),n.d(t,"getPlatform",function(){return Ty}),n.d(t,"inject",function(){return $r}),n.d(t,"isDevMode",function(){return Gr}),n.d(t,"platformCore",function(){return fb}),n.d(t,"resolveForwardRef",function(){return f}),n.d(t,"setTestabilityGetter",function(){return vy}),n.d(t,"\u02750",function(){return er}),n.d(t,"\u0275ALLOW_MULTIPLE_PLATFORMS",function(){return $y}),n.d(t,"\u0275APP_ID_RANDOM_PROVIDER",function(){return Pv}),n.d(t,"\u0275CREATE_ATTRIBUTE_DECORATOR__POST_R3__",function(){return En}),n.d(t,"\u0275ChangeDetectorStatus",function(){return M}),n.d(t,"\u0275CodegenComponentFactoryResolver",function(){return kh}),n.d(t,"\u0275Compiler_compileModuleAndAllComponentsAsync__POST_R3__",function(){return ey}),n.d(t,"\u0275Compiler_compileModuleAndAllComponentsSync__POST_R3__",function(){return Yv}),n.d(t,"\u0275Compiler_compileModuleAsync__POST_R3__",function(){return Zv}),n.d(t,"\u0275Compiler_compileModuleSync__POST_R3__",function(){return Kv}),n.d(t,"\u0275ComponentFactory",function(){return $h}),n.d(t,"\u0275Console",function(){return Fv}),n.d(t,"\u0275DEFAULT_LOCALE_ID",function(){return ud}),n.d(t,"\u0275EMPTY_ARRAY",function(){return $f}),n.d(t,"\u0275EMPTY_MAP",function(){return Sf}),n.d(t,"\u0275INJECTOR_IMPL__POST_R3__",function(){return ga}),n.d(t,"\u0275INJECTOR_SCOPE",function(){return ta}),n.d(t,"\u0275LifecycleHooksFeature",function(){return Da}),n.d(t,"\u0275LocaleDataIndex",function(){return ad}),n.d(t,"\u0275NG_COMP_DEF",function(){return q}),n.d(t,"\u0275NG_DIR_DEF",function(){return W}),n.d(t,"\u0275NG_ELEMENT_ID",function(){return Z}),n.d(t,"\u0275NG_INJ_DEF",function(){return $}),n.d(t,"\u0275NG_MOD_DEF",function(){return G}),n.d(t,"\u0275NG_PIPE_DEF",function(){return z}),n.d(t,"\u0275NG_PROV_DEF",function(){return x}),n.d(t,"\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR",function(){return mg}),n.d(t,"\u0275NO_CHANGE",function(){return Gs}),n.d(t,"\u0275NgModuleFactory",function(){return Ag}),n.d(t,"\u0275NoopNgZone",function(){return py}),n.d(t,"\u0275ReflectionCapabilities",function(){return Xn}),n.d(t,"\u0275Render3ComponentFactory",function(){return Eg}),n.d(t,"\u0275Render3ComponentRef",function(){return Og}),n.d(t,"\u0275Render3NgModuleRef",function(){return Mg}),n.d(t,"\u0275SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__",function(){return op}),n.d(t,"\u0275SWITCH_COMPILE_COMPONENT__POST_R3__",function(){return _v}),n.d(t,"\u0275SWITCH_COMPILE_DIRECTIVE__POST_R3__",function(){return wv}),n.d(t,"\u0275SWITCH_COMPILE_INJECTABLE__POST_R3__",function(){return Ml}),n.d(t,"\u0275SWITCH_COMPILE_NGMODULE__POST_R3__",function(){return Ov}),n.d(t,"\u0275SWITCH_COMPILE_PIPE__POST_R3__",function(){return Cv}),n.d(t,"\u0275SWITCH_ELEMENT_REF_FACTORY__POST_R3__",function(){return Mh}),n.d(t,"\u0275SWITCH_IVY_ENABLED__POST_R3__",function(){return Wv}),n.d(t,"\u0275SWITCH_RENDERER2_FACTORY__POST_R3__",function(){return Fh}),n.d(t,"\u0275SWITCH_TEMPLATE_REF_FACTORY__POST_R3__",function(){return pp}),n.d(t,"\u0275SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__",function(){return Cp}),n.d(t,"\u0275_sanitizeHtml",function(){return yi}),n.d(t,"\u0275_sanitizeUrl",function(){return ei}),n.d(t,"\u0275allowSanitizationBypassAndThrow",function(){return Rr}),n.d(t,"\u0275and",function(){return Cb}),n.d(t,"\u0275angular_packages_core_core_a",function(){return g}),n.d(t,"\u0275angular_packages_core_core_b",function(){return wr}),n.d(t,"\u0275angular_packages_core_core_ba",function(){return Bp}),n.d(t,"\u0275angular_packages_core_core_bb",function(){return Se}),n.d(t,"\u0275angular_packages_core_core_bc",function(){return Sg}),n.d(t,"\u0275angular_packages_core_core_bd",function(){return rn}),n.d(t,"\u0275angular_packages_core_core_be",function(){return Xe}),n.d(t,"\u0275angular_packages_core_core_bf",function(){return lt}),n.d(t,"\u0275angular_packages_core_core_bg",function(){return Ot}),n.d(t,"\u0275angular_packages_core_core_bi",function(){return Gg}),n.d(t,"\u0275angular_packages_core_core_bj",function(){return Kg}),n.d(t,"\u0275angular_packages_core_core_bk",function(){return Qg}),n.d(t,"\u0275angular_packages_core_core_bl",function(){return Zg}),n.d(t,"\u0275angular_packages_core_core_bm",function(){return Xg}),n.d(t,"\u0275angular_packages_core_core_bn",function(){return ki}),n.d(t,"\u0275angular_packages_core_core_bo",function(){return Sn}),n.d(t,"\u0275angular_packages_core_core_bp",function(){return $n}),n.d(t,"\u0275angular_packages_core_core_bq",function(){return l}),n.d(t,"\u0275angular_packages_core_core_br",function(){return ea}),n.d(t,"\u0275angular_packages_core_core_bs",function(){return k}),n.d(t,"\u0275angular_packages_core_core_bu",function(){return Ne}),n.d(t,"\u0275angular_packages_core_core_bw",function(){return rs}),n.d(t,"\u0275angular_packages_core_core_bx",function(){return ah}),n.d(t,"\u0275angular_packages_core_core_by",function(){return Ir}),n.d(t,"\u0275angular_packages_core_core_bz",function(){return Tr}),n.d(t,"\u0275angular_packages_core_core_c",function(){return iu}),n.d(t,"\u0275angular_packages_core_core_ca",function(){return kr}),n.d(t,"\u0275angular_packages_core_core_d",function(){return Wl}),n.d(t,"\u0275angular_packages_core_core_e",function(){return Xl}),n.d(t,"\u0275angular_packages_core_core_f",function(){return Vv}),n.d(t,"\u0275angular_packages_core_core_g",function(){return Bh}),n.d(t,"\u0275angular_packages_core_core_h",function(){return Vh}),n.d(t,"\u0275angular_packages_core_core_i",function(){return Ph}),n.d(t,"\u0275angular_packages_core_core_j",function(){return Ny}),n.d(t,"\u0275angular_packages_core_core_k",function(){return yp}),n.d(t,"\u0275angular_packages_core_core_l",function(){return bp}),n.d(t,"\u0275angular_packages_core_core_m",function(){return Sp}),n.d(t,"\u0275angular_packages_core_core_n",function(){return Gy}),n.d(t,"\u0275angular_packages_core_core_o",function(){return Ky}),n.d(t,"\u0275angular_packages_core_core_p",function(){return ub}),n.d(t,"\u0275angular_packages_core_core_q",function(){return up}),n.d(t,"\u0275angular_packages_core_core_r",function(){return Wh}),n.d(t,"\u0275angular_packages_core_core_s",function(){return Yh}),n.d(t,"\u0275angular_packages_core_core_t",function(){return gb}),n.d(t,"\u0275angular_packages_core_core_u",function(){return mb}),n.d(t,"\u0275angular_packages_core_core_v",function(){return vb}),n.d(t,"\u0275angular_packages_core_core_w",function(){return bb}),n.d(t,"\u0275angular_packages_core_core_x",function(){return _b}),n.d(t,"\u0275angular_packages_core_core_y",function(){return cd}),n.d(t,"\u0275angular_packages_core_core_z",function(){return ug}),n.d(t,"\u0275bypassSanitizationTrustHtml",function(){return Lr}),n.d(t,"\u0275bypassSanitizationTrustResourceUrl",function(){return qr}),n.d(t,"\u0275bypassSanitizationTrustScript",function(){return Hr}),n.d(t,"\u0275bypassSanitizationTrustStyle",function(){return Br}),n.d(t,"\u0275bypassSanitizationTrustUrl",function(){return Ur}),n.d(t,"\u0275ccf",function(){return Rf}),n.d(t,"\u0275clearOverrides",function(){return Z_}),n.d(t,"\u0275clearResolutionOfComponentResourcesQueue",function(){return fr}),n.d(t,"\u0275cmf",function(){return X_}),n.d(t,"\u0275compileComponent",function(){return Zm}),n.d(t,"\u0275compileDirective",function(){return Xm}),n.d(t,"\u0275compileNgModule",function(){return Fm}),n.d(t,"\u0275compileNgModuleDefs",function(){return Lm}),n.d(t,"\u0275compileNgModuleFactory__POST_R3__",function(){return wy}),n.d(t,"\u0275compilePipe",function(){return dv}),n.d(t,"\u0275createInjector",function(){return aa}),n.d(t,"\u0275crt",function(){return Gp}),n.d(t,"\u0275defaultIterableDiffers",function(){return dp}),n.d(t,"\u0275defaultKeyValueDiffers",function(){return hp}),n.d(t,"\u0275detectChanges",function(){return Xo}),n.d(t,"\u0275devModeEqual",function(){return Za}),n.d(t,"\u0275did",function(){return og}),n.d(t,"\u0275eld",function(){return xb}),n.d(t,"\u0275findLocaleData",function(){return nd}),n.d(t,"\u0275flushModuleScopingQueueAsMuchAsPossible",function(){return Dm}),n.d(t,"\u0275getComponentViewDefinitionFactory",function(){return Ff}),n.d(t,"\u0275getDebugNodeR2",function(){return cb}),n.d(t,"\u0275getDebugNode__POST_R3__",function(){return ab}),n.d(t,"\u0275getDirectives",function(){return xa}),n.d(t,"\u0275getHostElement",function(){return Sa}),n.d(t,"\u0275getInjectableDef",function(){return _}),n.d(t,"\u0275getLContext",function(){return Li}),n.d(t,"\u0275getLocaleCurrencyCode",function(){return rd}),n.d(t,"\u0275getLocalePluralCase",function(){return id}),n.d(t,"\u0275getModuleFactory__POST_R3__",function(){return Dy}),n.d(t,"\u0275getSanitizationBypassType",function(){return Fr}),n.d(t,"\u0275global",function(){return B}),n.d(t,"\u0275initServicesIfNeeded",function(){return d_}),n.d(t,"\u0275inlineInterpolate",function(){return Cf}),n.d(t,"\u0275interpolate",function(){return wf}),n.d(t,"\u0275isBoundToModule__POST_R3__",function(){return xy}),n.d(t,"\u0275isDefaultChangeDetectionStrategy",function(){return A}),n.d(t,"\u0275isListLikeIterable",function(){return Ya}),n.d(t,"\u0275isObservable",function(){return vu}),n.d(t,"\u0275isPromise",function(){return mu}),n.d(t,"\u0275ivyEnabled",function(){return zv}),n.d(t,"\u0275makeDecorator",function(){return Cn}),n.d(t,"\u0275markDirty",function(){return Yo}),n.d(t,"\u0275mod",function(){return jf}),n.d(t,"\u0275mpd",function(){return Tf}),n.d(t,"\u0275ncd",function(){return Pb}),n.d(t,"\u0275noSideEffects",function(){return V}),n.d(t,"\u0275nov",function(){return Zf}),n.d(t,"\u0275overrideComponentView",function(){return Q_}),n.d(t,"\u0275overrideProvider",function(){return K_}),n.d(t,"\u0275pad",function(){return Nb}),n.d(t,"\u0275patchComponentDefWithScope",function(){return Wm}),n.d(t,"\u0275pid",function(){return ag}),n.d(t,"\u0275pod",function(){return Db}),n.d(t,"\u0275ppd",function(){return Ab}),n.d(t,"\u0275prd",function(){return lg}),n.d(t,"\u0275publishDefaultGlobalUtils",function(){return ja}),n.d(t,"\u0275publishGlobalUtil",function(){return Va}),n.d(t,"\u0275qud",function(){return Ib}),n.d(t,"\u0275registerLocaleData",function(){return td}),n.d(t,"\u0275registerModuleFactory",function(){return Tg}),n.d(t,"\u0275registerNgModuleType",function(){return Vg}),n.d(t,"\u0275renderComponent",function(){return Pa}),n.d(t,"\u0275resetCompiledComponents",function(){return Um}),n.d(t,"\u0275resetJitOptions",function(){return Pm}),n.d(t,"\u0275resolveComponentResources",function(){return cr}),n.d(t,"\u0275setClassMetadata",function(){return Ig}),n.d(t,"\u0275setCurrentInjector",function(){return _r}),n.d(t,"\u0275setDocument",function(){return Te}),n.d(t,"\u0275setLocaleId",function(){return gd}),n.d(t,"\u0275store",function(){return El}),n.d(t,"\u0275stringify",function(){return c}),n.d(t,"\u0275ted",function(){return Fb}),n.d(t,"\u0275transitiveScopesFor",function(){return zm}),n.d(t,"\u0275unregisterLocaleData",function(){return od}),n.d(t,"\u0275unv",function(){return zp}),n.d(t,"\u0275unwrapSafeValue",function(){return Dr}),n.d(t,"\u0275vid",function(){return Hb}),n.d(t,"\u0275whenRendered",function(){return Ra}),n.d(t,"\u0275\u0275CopyDefinitionFeature",function(){return Ga}),n.d(t,"\u0275\u0275InheritDefinitionFeature",function(){return La}),n.d(t,"\u0275\u0275NgOnChangesFeature",function(){return $e}),n.d(t,"\u0275\u0275ProvidersFeature",function(){return Ch}),n.d(t,"\u0275\u0275advance",function(){return Ks}),n.d(t,"\u0275\u0275attribute",function(){return ol}),n.d(t,"\u0275\u0275attributeInterpolate1",function(){return ml}),n.d(t,"\u0275\u0275attributeInterpolate2",function(){return vl}),n.d(t,"\u0275\u0275attributeInterpolate3",function(){return yl}),n.d(t,"\u0275\u0275attributeInterpolate4",function(){return bl}),n.d(t,"\u0275\u0275attributeInterpolate5",function(){return _l}),n.d(t,"\u0275\u0275attributeInterpolate6",function(){return wl}),n.d(t,"\u0275\u0275attributeInterpolate7",function(){return Cl}),n.d(t,"\u0275\u0275attributeInterpolate8",function(){return xl}),n.d(t,"\u0275\u0275attributeInterpolateV",function(){return $l}),n.d(t,"\u0275\u0275classMap",function(){return Ju}),n.d(t,"\u0275\u0275classMapInterpolate1",function(){return xc}),n.d(t,"\u0275\u0275classMapInterpolate2",function(){return $c}),n.d(t,"\u0275\u0275classMapInterpolate3",function(){return Sc}),n.d(t,"\u0275\u0275classMapInterpolate4",function(){return Ec}),n.d(t,"\u0275\u0275classMapInterpolate5",function(){return Oc}),n.d(t,"\u0275\u0275classMapInterpolate6",function(){return Ic}),n.d(t,"\u0275\u0275classMapInterpolate7",function(){return kc}),n.d(t,"\u0275\u0275classMapInterpolate8",function(){return Tc}),n.d(t,"\u0275\u0275classMapInterpolateV",function(){return jc}),n.d(t,"\u0275\u0275classProp",function(){return Zu}),n.d(t,"\u0275\u0275contentQuery",function(){return Cm}),n.d(t,"\u0275\u0275defineComponent",function(){return Y}),n.d(t,"\u0275\u0275defineDirective",function(){return oe}),n.d(t,"\u0275\u0275defineInjectable",function(){return v}),n.d(t,"\u0275\u0275defineInjector",function(){return b}),n.d(t,"\u0275\u0275defineNgModule",function(){return re}),n.d(t,"\u0275\u0275definePipe",function(){return ae}),n.d(t,"\u0275\u0275directiveInject",function(){return su}),n.d(t,"\u0275\u0275disableBindings",function(){return Ze}),n.d(t,"\u0275\u0275element",function(){return du}),n.d(t,"\u0275\u0275elementContainer",function(){return fu}),n.d(t,"\u0275\u0275elementContainerEnd",function(){return pu}),n.d(t,"\u0275\u0275elementContainerStart",function(){return hu}),n.d(t,"\u0275\u0275elementEnd",function(){return cu}),n.d(t,"\u0275\u0275elementStart",function(){return uu}),n.d(t,"\u0275\u0275enableBindings",function(){return Qe}),n.d(t,"\u0275\u0275getCurrentView",function(){return gu}),n.d(t,"\u0275\u0275getFactoryOf",function(){return mn}),n.d(t,"\u0275\u0275getInheritedFactory",function(){return vn}),n.d(t,"\u0275\u0275hostProperty",function(){return Zc}),n.d(t,"\u0275\u0275i18n",function(){return ch}),n.d(t,"\u0275\u0275i18nApply",function(){return ph}),n.d(t,"\u0275\u0275i18nAttributes",function(){return dh}),n.d(t,"\u0275\u0275i18nEnd",function(){return uh}),n.d(t,"\u0275\u0275i18nExp",function(){return hh}),n.d(t,"\u0275\u0275i18nPostprocess",function(){return fh}),n.d(t,"\u0275\u0275i18nStart",function(){return lh}),n.d(t,"\u0275\u0275inject",function(){return Cr}),n.d(t,"\u0275\u0275injectAttribute",function(){return yn}),n.d(t,"\u0275\u0275injectPipeChangeDetectorRef",function(){return Tm}),n.d(t,"\u0275\u0275invalidFactory",function(){return ou}),n.d(t,"\u0275\u0275invalidFactoryDep",function(){return xr}),n.d(t,"\u0275\u0275listener",function(){return yu}),n.d(t,"\u0275\u0275loadQuery",function(){return Sm}),n.d(t,"\u0275\u0275namespaceHTML",function(){return Pt}),n.d(t,"\u0275\u0275namespaceMathML",function(){return Vt}),n.d(t,"\u0275\u0275namespaceSVG",function(){return jt}),n.d(t,"\u0275\u0275nextContext",function(){return xu}),n.d(t,"\u0275\u0275pipe",function(){return Yg}),n.d(t,"\u0275\u0275pipeBind1",function(){return Jg}),n.d(t,"\u0275\u0275pipeBind2",function(){return em}),n.d(t,"\u0275\u0275pipeBind3",function(){return tm}),n.d(t,"\u0275\u0275pipeBind4",function(){return nm}),n.d(t,"\u0275\u0275pipeBindV",function(){return rm}),n.d(t,"\u0275\u0275projection",function(){return Eu}),n.d(t,"\u0275\u0275projectionDef",function(){return Su}),n.d(t,"\u0275\u0275property",function(){return au}),n.d(t,"\u0275\u0275propertyInterpolate",function(){return Ou}),n.d(t,"\u0275\u0275propertyInterpolate1",function(){return Iu}),n.d(t,"\u0275\u0275propertyInterpolate2",function(){return ku}),n.d(t,"\u0275\u0275propertyInterpolate3",function(){return Tu}),n.d(t,"\u0275\u0275propertyInterpolate4",function(){return ju}),n.d(t,"\u0275\u0275propertyInterpolate5",function(){return Vu}),n.d(t,"\u0275\u0275propertyInterpolate6",function(){return Pu}),n.d(t,"\u0275\u0275propertyInterpolate7",function(){return Mu}),n.d(t,"\u0275\u0275propertyInterpolate8",function(){return Au}),n.d(t,"\u0275\u0275propertyInterpolateV",function(){return Nu}),n.d(t,"\u0275\u0275pureFunction0",function(){return Ng}),n.d(t,"\u0275\u0275pureFunction1",function(){return Dg}),n.d(t,"\u0275\u0275pureFunction2",function(){return Rg}),n.d(t,"\u0275\u0275pureFunction3",function(){return Fg}),n.d(t,"\u0275\u0275pureFunction4",function(){return Lg}),n.d(t,"\u0275\u0275pureFunction5",function(){return Bg}),n.d(t,"\u0275\u0275pureFunction6",function(){return Hg}),n.d(t,"\u0275\u0275pureFunction7",function(){return Ug}),n.d(t,"\u0275\u0275pureFunction8",function(){return qg}),n.d(t,"\u0275\u0275pureFunctionV",function(){return Wg}),n.d(t,"\u0275\u0275queryRefresh",function(){return ym}),n.d(t,"\u0275\u0275reference",function(){return Ol}),n.d(t,"\u0275\u0275resolveBody",function(){return Xi}),n.d(t,"\u0275\u0275resolveDocument",function(){return Zi}),n.d(t,"\u0275\u0275resolveWindow",function(){return Qi}),n.d(t,"\u0275\u0275restoreView",function(){return Je}),n.d(t,"\u0275\u0275sanitizeHtml",function(){return wi}),n.d(t,"\u0275\u0275sanitizeResourceUrl",function(){return $i}),n.d(t,"\u0275\u0275sanitizeScript",function(){return Si}),n.d(t,"\u0275\u0275sanitizeStyle",function(){return Ci}),n.d(t,"\u0275\u0275sanitizeUrl",function(){return xi}),n.d(t,"\u0275\u0275sanitizeUrlOrResourceUrl",function(){return Ti}),n.d(t,"\u0275\u0275setComponentScope",function(){return J}),n.d(t,"\u0275\u0275setNgModuleScope",function(){return ie}),n.d(t,"\u0275\u0275staticContentQuery",function(){return xm}),n.d(t,"\u0275\u0275staticViewQuery",function(){return bm}),n.d(t,"\u0275\u0275styleMap",function(){return Xu}),n.d(t,"\u0275\u0275styleMapInterpolate1",function(){return Vc}),n.d(t,"\u0275\u0275styleMapInterpolate2",function(){return Pc}),n.d(t,"\u0275\u0275styleMapInterpolate3",function(){return Mc}),n.d(t,"\u0275\u0275styleMapInterpolate4",function(){return Ac}),n.d(t,"\u0275\u0275styleMapInterpolate5",function(){return Nc}),n.d(t,"\u0275\u0275styleMapInterpolate6",function(){return Dc}),n.d(t,"\u0275\u0275styleMapInterpolate7",function(){return Rc}),n.d(t,"\u0275\u0275styleMapInterpolate8",function(){return Fc}),n.d(t,"\u0275\u0275styleMapInterpolateV",function(){return Lc}),n.d(t,"\u0275\u0275styleProp",function(){return Qu}),n.d(t,"\u0275\u0275stylePropInterpolate1",function(){return Bc}),n.d(t,"\u0275\u0275stylePropInterpolate2",function(){return Hc}),n.d(t,"\u0275\u0275stylePropInterpolate3",function(){return Uc}),n.d(t,"\u0275\u0275stylePropInterpolate4",function(){return qc}),n.d(t,"\u0275\u0275stylePropInterpolate5",function(){return Wc}),n.d(t,"\u0275\u0275stylePropInterpolate6",function(){return zc}),n.d(t,"\u0275\u0275stylePropInterpolate7",function(){return Gc}),n.d(t,"\u0275\u0275stylePropInterpolate8",function(){return Kc}),n.d(t,"\u0275\u0275stylePropInterpolateV",function(){return Qc}),n.d(t,"\u0275\u0275syntheticHostListener",function(){return bu}),n.d(t,"\u0275\u0275syntheticHostProperty",function(){return Xc}),n.d(t,"\u0275\u0275template",function(){return Sl}),n.d(t,"\u0275\u0275templateRefExtractor",function(){return km}),n.d(t,"\u0275\u0275text",function(){return hc}),n.d(t,"\u0275\u0275textInterpolate",function(){return pc}),n.d(t,"\u0275\u0275textInterpolate1",function(){return fc}),n.d(t,"\u0275\u0275textInterpolate2",function(){return gc}),n.d(t,"\u0275\u0275textInterpolate3",function(){return mc}),n.d(t,"\u0275\u0275textInterpolate4",function(){return vc}),n.d(t,"\u0275\u0275textInterpolate5",function(){return yc}),n.d(t,"\u0275\u0275textInterpolate6",function(){return bc}),n.d(t,"\u0275\u0275textInterpolate7",function(){return _c}),n.d(t,"\u0275\u0275textInterpolate8",function(){return wc}),n.d(t,"\u0275\u0275textInterpolateV",function(){return Cc}),n.d(t,"\u0275\u0275trustConstantHtml",function(){return Ei}),n.d(t,"\u0275\u0275trustConstantResourceUrl",function(){return Ii}),n.d(t,"\u0275\u0275trustConstantScript",function(){return Oi}),n.d(t,"\u0275\u0275viewQuery",function(){return _m});var r=n("XNiG"),i=n("quSY"),s=n("HDdC"),o=n("VRyK"),a=n("w1tV");function l(e){for(let t in e)if(e[t]===l)return t;throw Error("Could not find renamed property on target object.")}function u(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function c(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(c).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function d(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const h=l({__forward_ref__:l});function p(e){return e.__forward_ref__=p,e.toString=function(){return c(this())},e}function f(e){return g(e)?e():e}function g(e){return"function"==typeof e&&e.hasOwnProperty(h)&&e.__forward_ref__===p}function m(e,t,n,r){throw new Error("ASSERTION ERROR: "+e+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function v(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const y=v;function b(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function _(e){return w(e,x)||w(e,S)}function w(e,t){return e.hasOwnProperty(t)?e[t]:null}function C(e){return e&&(e.hasOwnProperty($)||e.hasOwnProperty(E))?e[$]:null}const x=l({\u0275prov:l}),$=l({\u0275inj:l}),S=l({ngInjectableDef:l}),E=l({ngInjectorDef:l});var O=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});let I;function k(){return I}function T(e){const t=I;return I=e,t}function j(e,t,n){const r=_(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&O.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${c(e)}]`)}function V(e){return{toString:e}.toString()}var P=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),M=function(e){return e[e.CheckOnce=0]="CheckOnce",e[e.Checked=1]="Checked",e[e.CheckAlways=2]="CheckAlways",e[e.Detached=3]="Detached",e[e.Errored=4]="Errored",e[e.Destroyed=5]="Destroyed",e}({});function A(e){return null==e||e===P.Default}var N=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const D="undefined"!=typeof globalThis&&globalThis,R="undefined"!=typeof window&&window,F="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,L="undefined"!=typeof global&&global,B=D||L||R||F,H={},U=[],q=l({\u0275cmp:l}),W=l({\u0275dir:l}),z=l({\u0275pipe:l}),G=l({\u0275mod:l}),K=l({\u0275loc:l}),Q=l({\u0275fac:l}),Z=l({__NG_ELEMENT_ID__:l});let X=0;function Y(e){return V(()=>{const t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===P.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||U,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||N.Emulated,id:"c",styles:e.styles||U,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,s=e.pipes;return n.id+=X++,n.inputs=se(e.inputs,t),n.outputs=se(e.outputs),i&&i.forEach(e=>e(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(ee):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(te):null,n})}function J(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map(ee),r.pipeDefs=()=>n.map(te)}function ee(e){return le(e)||ue(e)}function te(e){return ce(e)}const ne={};function re(e){const t={type:e.type,bootstrap:e.bootstrap||U,declarations:e.declarations||U,imports:e.imports||U,exports:e.exports||U,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&V(()=>{ne[e.id]=e.type}),t}function ie(e,t){return V(()=>{const n=de(e,!0);n.declarations=t.declarations||U,n.imports=t.imports||U,n.exports=t.exports||U})}function se(e,t){if(null==e)return H;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,t&&(t[i]=s)}return n}const oe=Y;function ae(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function le(e){return e[q]||null}function ue(e){return e[W]||null}function ce(e){return e[z]||null}function de(e,t){const n=e[G]||null;if(!n&&!0===t)throw new Error(`Type ${c(e)} does not have '\u0275mod' property.`);return n}function he(e){return Array.isArray(e)&&"object"==typeof e[1]}function pe(e){return Array.isArray(e)&&!0===e[1]}function fe(e){return 0!=(8&e.flags)}function ge(e){return 2==(2&e.flags)}function me(e){return 1==(1&e.flags)}function ve(e){return null!==e.template}function ye(e,t){return e.hasOwnProperty(Q)?e[Q]:null}class be extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function _e(e){return"string"==typeof e?e:null==e?"":String(e)}function we(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():_e(e)}function Ce(e,t){const n=t?" in "+t:"";throw new be("201",`No provider for ${we(e)} found${n}`)}class xe{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function $e(){return Se}function Se(e){return e.type.prototype.ngOnChanges&&(e.setInput=Oe),Ee}function Ee(){const e=Ie(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===H)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Oe(e,t,n,r){const i=Ie(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:H,current:null}),s=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],l=o[a];s[a]=new xe(l&&l.currentValue,t,o===H),e[r]=t}function Ie(e){return e.__ngSimpleChanges__||null}$e.ngInherit=!0;let ke=void 0;function Te(e){ke=e}function je(){return void 0!==ke?ke:"undefined"!=typeof document?document:void 0}function Ve(e){return!!e.listen}const Pe={createRenderer:(e,t)=>je()};function Me(e){for(;Array.isArray(e);)e=e[0];return e}function Ae(e,t){return Me(t[e])}function Ne(e,t){return Me(t[e.index])}function De(e,t){return e.data[t]}function Re(e,t){return e[t]}function Fe(e,t){const n=t[e];return he(n)?n:n[0]}function Le(e){return e.__ngContext__||null}function Be(e){const t=Le(e);return t?Array.isArray(t)?t:t.lView:null}function He(e){return 4==(4&e[2])}function Ue(e){return 128==(128&e[2])}function qe(e,t){return null==t?null:e[t]}function We(e){e[18]=0}function ze(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const Ge={lFrame:xt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ke(){return Ge.bindingsEnabled}function Qe(){Ge.bindingsEnabled=!0}function Ze(){Ge.bindingsEnabled=!1}function Xe(){return Ge.lFrame.lView}function Ye(){return Ge.lFrame.tView}function Je(e){Ge.lFrame.contextLView=e}function et(){let e=tt();for(;null!==e&&64===e.type;)e=e.parent;return e}function tt(){return Ge.lFrame.currentTNode}function nt(){const e=Ge.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function rt(e,t){const n=Ge.lFrame;n.currentTNode=e,n.isParent=t}function it(){return Ge.lFrame.isParent}function st(){Ge.lFrame.isParent=!1}function ot(){return Ge.isInCheckNoChangesMode}function at(e){Ge.isInCheckNoChangesMode=e}function lt(){const e=Ge.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ut(){return Ge.lFrame.bindingIndex}function ct(e){return Ge.lFrame.bindingIndex=e}function dt(){return Ge.lFrame.bindingIndex++}function ht(e){const t=Ge.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function pt(e){Ge.lFrame.inI18n=e}function ft(e,t){const n=Ge.lFrame;n.bindingIndex=n.bindingRootIndex=e,gt(t)}function gt(e){Ge.lFrame.currentDirectiveIndex=e}function mt(e){const t=Ge.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function vt(){return Ge.lFrame.currentQueryIndex}function yt(e){Ge.lFrame.currentQueryIndex=e}function bt(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function _t(e,t,n){if(n&O.SkipSelf){let r=t,i=e;for(;r=r.parent,!(null!==r||n&O.Host||(r=bt(i),null===r)||(i=i[15],10&r.type)););if(null===r)return!1;t=r,e=i}const r=Ge.lFrame=Ct();return r.currentTNode=t,r.lView=e,!0}function wt(e){const t=Ct(),n=e[1];Ge.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ct(){const e=Ge.lFrame,t=null===e?null:e.child;return null===t?xt(e):t}function xt(e){const 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 $t(){const e=Ge.lFrame;return Ge.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const St=$t;function Et(){const e=$t();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 Ot(e){return(Ge.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Ge.lFrame.contextLView))[8]}function It(){return Ge.lFrame.selectedIndex}function kt(e){Ge.lFrame.selectedIndex=e}function Tt(){const e=Ge.lFrame;return De(e.tView,e.selectedIndex)}function jt(){Ge.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Vt(){Ge.lFrame.currentNamespace="http://www.w3.org/1998/MathML/"}function Pt(){Ge.lFrame.currentNamespace=null}function Mt(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[o]<0&&(e[18]+=65536),(s>11>16&&(3&e[2])===t&&(e[2]+=2048,s.call(o)):s.call(o)}class Lt{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function Bt(e,t,n){const r=Ve(e);let i=0;for(;it){o=s-1;break}}}for(;s>16,r=t;for(;n>0;)r=r[15],n--;return r}let Qt=!0;function Zt(e){const t=Qt;return Qt=e,t}let Xt=0;function Yt(e,t){const n=en(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Jt(r.data,e),Jt(t,null),Jt(r.blueprint,null));const i=tn(e,t),s=e.injectorIndex;if(zt(i)){const e=Gt(i),n=Kt(i,t),r=n[1].data;for(let i=0;i<8;i++)t[s+i]=n[e+i]|r[e+i]}return t[s+8]=i,s}function Jt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function en(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function tn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const e=i[1],t=e.type;if(r=2===t?e.declTNode:1===t?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function nn(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Z)&&(r=n[Z]),null==r&&(r=n[Z]=Xt++);const i=255&r,s=1<=0?255&t:un:t}(n);if("function"==typeof s){if(!_t(t,e,r))return r&O.Host?sn(i,n,r):on(t,n,r,i);try{const e=s();if(null!=e||r&O.Optional)return e;Ce(n)}finally{St()}}else if("number"==typeof s){let i=null,o=en(e,t),a=-1,l=r&O.Host?t[16][6]:null;for((-1===o||r&O.SkipSelf)&&(a=-1===o?tn(e,t):t[o+8],-1!==a&&fn(r,!1)?(i=t[1],o=Gt(a),t=Kt(a,t)):o=-1);-1!==o;){const e=t[1];if(pn(s,o,e.data)){const e=cn(o,t,n,i,r,l);if(e!==ln)return e}a=t[o+8],-1!==a&&fn(r,t[1].data[o+8]===l)&&pn(s,o,t)?(i=e,o=Gt(a),t=Kt(a,t)):o=-1}}}return on(t,n,r,i)}const ln={};function un(){return new gn(et(),Xe())}function cn(e,t,n,r,i,s){const o=t[1],a=o.data[e+8],l=dn(a,o,n,null==r?ge(a)&&Qt:r!=o&&0!=(3&a.type),i&O.Host&&s===a);return null!==l?hn(t,o,l,a):ln}function dn(e,t,n,r,i){const s=e.providerIndexes,o=t.data,a=1048575&s,l=e.directiveStart,u=s>>20,c=i?a+u:e.directiveEnd;for(let d=r?a:a+u;d=l&&e.type===n)return d}if(i){const e=o[l];if(e&&ve(e)&&e.type===n)return l}return null}function hn(e,t,n,r){let i=e[n];const s=t.data;if(i instanceof Lt){const o=i;o.resolving&&function(e,t){throw new be("200","Circular dependency in DI detected for "+e)}(we(s[n]));const a=Zt(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?T(o.injectImpl):null;_t(e,r,O.Default);try{i=e[n]=o.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const r=Se(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==l&&T(l),Zt(a),o.resolving=!1,St()}}return i}function pn(e,t,n){const r=64&e,i=32&e;let s;return s=128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t],!!(s&1<{const e=mn(f(t));return e?e():null};let n=ye(t);if(null===n){const e=C(t);n=e&&e.factory}return n||null}function vn(e){return V(()=>{const t=e.prototype.constructor,n=t[Q]||mn(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const e=i[Q]||mn(i);if(e&&e!==n)return e;i=Object.getPrototypeOf(i)}return e=>new e})}function yn(e){return rn(et(),e)}const bn="__annotations__",_n="__parameters__",wn="__prop__metadata__";function Cn(e,t,n,r,i){return V(()=>{const s=xn(t);function o(...e){if(this instanceof o)return s.call(this,...e),this;const t=new o(...e);return function(n){return i&&i(n,...e),(n.hasOwnProperty(bn)?n[bn]:Object.defineProperty(n,bn,{value:[]})[bn]).push(t),r&&r(n),n}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function xn(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}function $n(e,t,n){return V(()=>{const r=xn(t);function i(...e){if(this instanceof i)return r.apply(this,e),this;const t=new i(...e);return n.annotation=t,n;function n(e,n,r){const i=e.hasOwnProperty(_n)?e[_n]:Object.defineProperty(e,_n,{value:[]})[_n];for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(t),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function Sn(e,t,n,r){return V(()=>{const i=xn(t);function s(...e){if(this instanceof s)return i.apply(this,e),this;const t=new s(...e);return function(n,i){const s=n.constructor,o=s.hasOwnProperty(wn)?s[wn]:Object.defineProperty(s,wn,{value:{}})[wn];o[i]=o.hasOwnProperty(i)&&o[i]||[],o[i].unshift(t),r&&r(n,i,...e)}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function En(){return $n("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>yn(e)}))}const On=En();class In{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=v({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const kn=new In("AnalyzeForEntryComponents");class Tn{}const jn=Sn("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1},t),Tn),Vn=Sn("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),Tn),Pn=Sn("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0},t),Tn),Mn=Sn("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),Tn);var An=function(e){return e[e.Token=0]="Token",e[e.Attribute=1]="Attribute",e[e.ChangeDetectorRef=2]="ChangeDetectorRef",e[e.Invalid=3]="Invalid",e}({});function Nn(){const e=B.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}const Dn=Function;function Rn(e){return"function"==typeof e}function Fn(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(e)?Ln(e,t):t(e))}function Bn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Hn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Un(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:(r=~r,function(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Wn(e,t){const n=zn(e,t);if(n>=0)return e[1|n]}function zn(e,t){return function(e,t,n){let r=0,i=e.length>>1;for(;i!==r;){const n=r+(i-r>>1),s=e[n<<1];if(t===s)return n<<1;s>t?i=n:r=n+1}return~(i<<1)}(e,t)}const Gn=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|[^()]+\(arguments\))\)/,Kn=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Qn=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Zn=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class Xn{constructor(e){this._reflect=e||B.Reflect}isReflectionEnabled(){return!0}factory(e){return(...t)=>new e(...t)}_zipTypesAndAnnotations(e,t){let n;n=Un(void 0===e?t.length:e.length);for(let r=0;re&&e.type),n=e.map(e=>e&&Yn(e.decorators));return this._zipTypesAndAnnotations(t,n)}const i=e.hasOwnProperty(_n)&&e[_n],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return s||i?this._zipTypesAndAnnotations(s,i):Un(e.length)}parameters(e){if(!Rn(e))return[];const t=Jn(e);let n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]}_ownAnnotations(e,t){if(e.annotations&&e.annotations!==t.annotations){let t=e.annotations;return"function"==typeof t&&t.annotations&&(t=t.annotations),t}return e.decorators&&e.decorators!==t.decorators?Yn(e.decorators):e.hasOwnProperty(bn)?e[bn]:null}annotations(e){if(!Rn(e))return[];const t=Jn(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)}_ownPropMetadata(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){let t=e.propMetadata;return"function"==typeof t&&t.propMetadata&&(t=t.propMetadata),t}if(e.propDecorators&&e.propDecorators!==t.propDecorators){const t=e.propDecorators,n={};return Object.keys(t).forEach(e=>{n[e]=Yn(t[e])}),n}return e.hasOwnProperty(wn)?e[wn]:null}propMetadata(e){if(!Rn(e))return{};const t=Jn(e),n={};if(t!==Object){const e=this.propMetadata(t);Object.keys(e).forEach(t=>{n[t]=e[t]})}const r=this._ownPropMetadata(e,t);return r&&Object.keys(r).forEach(e=>{const t=[];n.hasOwnProperty(e)&&t.push(...n[e]),t.push(...r[e]),n[e]=t}),n}ownPropMetadata(e){return Rn(e)&&this._ownPropMetadata(e,Jn(e))||{}}hasLifecycleHook(e,t){return e instanceof Dn&&t in e.prototype}guards(e){return{}}getter(e){return new Function("o","return o."+e+";")}setter(e){return new Function("o","v","return o."+e+" = v;")}method(e){return new Function("o","args",`if (!o.${e}) throw new Error('"${e}" is undefined');\n return o.${e}.apply(o, args);`)}importUri(e){return"object"==typeof e&&e.filePath?e.filePath:"./"+c(e)}resourceUri(e){return"./"+c(e)}resolveIdentifier(e,t,n,r){return r}resolveEnum(e,t){return e[t]}}function Yn(e){return e?e.map(e=>new(0,e.type.annotationCls)(...e.args?e.args:[])):[]}function Jn(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const er=e=>({token:e}),tr=$n("Inject",er),nr=$n("Optional"),rr=$n("Self"),ir=$n("SkipSelf"),sr=$n("Host");let or=null;function ar(){return or=or||new Xn}function lr(e){return ur(ar().parameters(e))}function ur(e){const t=Nn();return e.map(e=>function(e,t){const n={token:null,host:!1,optional:!1,resolved:e.R3ResolvedDependencyType.Token,self:!1,skipSelf:!1};function r(t){n.resolved=e.R3ResolvedDependencyType.Token,n.token=t}if(Array.isArray(t)&&t.length>0)for(let i=0;i{const i=[];e.templateUrl&&i.push(r(e.templateUrl).then(t=>{e.template=t}));const s=e.styleUrls,o=e.styles||(e.styles=[]),a=e.styles.length;s&&s.forEach((t,n)=>{o.push(""),i.push(r(t).then(r=>{o[a+n]=r,s.splice(s.indexOf(t),1),0==s.length&&(e.styleUrls=void 0)}))});const l=Promise.all(i).then(()=>function(e){hr.delete(e)}(n));t.push(l)}),fr(),Promise.all(t).then(()=>{})}let dr=new Map;const hr=new Set;function pr(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function fr(){const e=dr;return dr=new Map,e}function gr(e){return"string"==typeof e?e:e.text()}const mr={},vr=/\n/gm,yr=l({provide:String,useValue:l});let br=void 0;function _r(e){const t=br;return br=e,t}function wr(e,t=O.Default){if(void 0===br)throw new Error("inject() must be called from an injection context");return null===br?j(e,void 0,t):br.get(e,t&O.Optional?null:void 0,t)}function Cr(e,t=O.Default){return(k()||wr)(f(e),t)}function xr(e){throw new Error("invalid")}const $r=Cr;function Sr(e){const t=[];for(let n=0;ne,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Er}function Ir(e){var t;return(null===(t=Or())||void 0===t?void 0:t.createHTML(e))||e}function kr(e){var t;return(null===(t=Or())||void 0===t?void 0:t.createScript(e))||e}function Tr(e){var t;return(null===(t=Or())||void 0===t?void 0:t.createScriptURL(e))||e}class jr{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}class Vr extends jr{getTypeName(){return"HTML"}}class Pr extends jr{getTypeName(){return"Style"}}class Mr extends jr{getTypeName(){return"Script"}}class Ar extends jr{getTypeName(){return"URL"}}class Nr extends jr{getTypeName(){return"ResourceURL"}}function Dr(e){return e instanceof jr?e.changingThisBreaksApplicationSecurity:e}function Rr(e,t){const n=Fr(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Fr(e){return e instanceof jr&&e.getTypeName()||null}function Lr(e){return new Vr(e)}function Br(e){return new Pr(e)}function Hr(e){return new Mr(e)}function Ur(e){return new Ar(e)}function qr(e){return new Nr(e)}let Wr=!0,zr=!1;function Gr(){return zr=!0,Wr}function Kr(){if(zr)throw new Error("Cannot enable prod mode after platform setup.");Wr=!1}function Qr(e){return function(){try{return!!(new window.DOMParser).parseFromString(Ir(""),"text/html")}catch(e){return!1}}()?new Zr:new Xr(e)}class Zr{getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(Ir(e),"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}}class Xr{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Ir(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=Ir(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0ei(e.trim())).join(", ")}function ni(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function ri(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const ii=ni("area,br,col,hr,img,wbr"),si=ni("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),oi=ni("rp,rt"),ai=ri(oi,si),li=ri(ii,ri(si,ni("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ri(oi,ni("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ai),ui=ni("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ci=ni("srcset"),di=ri(ui,ci,ni("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ni("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),hi=ni("script,style,template");class pi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!li.hasOwnProperty(t))return this.sanitizedSomething=!0,!hi.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let r=0;r"),!0}endElement(e){const t=e.nodeName.toLowerCase();li.hasOwnProperty(t)&&!ii.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(mi(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}const fi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gi=/([^\#-~ |!])/g;function mi(e){return e.replace(/&/g,"&").replace(fi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(gi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let vi;function yi(e,t){let n=null;try{vi=vi||Qr(e);let r=t?String(t):"";n=vi.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=vi.getInertBodyElement(r)}while(r!==s);const o=new pi,a=o.sanitizeChildren(bi(n)||n);return Gr()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see https://g.co/ng/security#xss"),a}finally{if(n){const e=bi(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function bi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var _i=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function wi(e){const t=ji();return t?t.sanitize(_i.HTML,e)||"":Rr(e,"HTML")?Dr(e):yi(je(),_e(e))}function Ci(e){const t=ji();return t?t.sanitize(_i.STYLE,e)||"":Rr(e,"Style")?Dr(e):_e(e)}function xi(e){const t=ji();return t?t.sanitize(_i.URL,e)||"":Rr(e,"URL")?Dr(e):ei(_e(e))}function $i(e){const t=ji();if(t)return t.sanitize(_i.RESOURCE_URL,e)||"";if(Rr(e,"ResourceURL"))return Dr(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Si(e){const t=ji();if(t)return t.sanitize(_i.SCRIPT,e)||"";if(Rr(e,"Script"))return Dr(e);throw new Error("unsafe value used in a script context")}function Ei(e){return Ir(e)}function Oi(e){return kr(e)}function Ii(e){return Tr(e)}function ki(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?$i:xi}function Ti(e,t,n){return ki(t,n)(e)}function ji(){const e=Xe();return e&&e[12]}function Vi(e){return e.ngDebugContext}function Pi(e){return e.ngOriginalError}function Mi(e,...t){e.error(...t)}class Ai{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||Mi}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Vi(e)?Vi(e):this._findContext(Pi(e)):null}_findOriginalError(e){let t=Pi(e);for(;t&&Pi(t);)t=Pi(t);return t}}const Ni={name:"custom-elements"},Di={name:"no-errors-schema"},Ri=/([A-Z])/g;function Fi(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function Li(e){let t=Le(e);if(t){if(Array.isArray(t)){const r=t;let i,s=void 0,o=void 0;if((n=e)&&n.constructor&&n.constructor.\u0275cmp){if(i=zi(r,e),-1==i)throw new Error("The provided component was not found in the application");s=e}else if(function(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(i=function(e,t){let n=e[1].firstChild;for(;n;){const r=n.directiveEnd;for(let i=n.directiveStart;i=0){const e=Me(r[i]),n=Bi(r,i,e);Ui(e,n),t=n;break}}}}var n;return t||null}function Bi(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Hi(e){let t,n=Le(e);if(Array.isArray(n)){const r=zi(n,e);t=Fe(r,n);const i=Bi(n,r,t[0]);i.component=e,Ui(e,i),Ui(i.native,i)}else t=Fe(n.nodeIndex,n.lView);return t}function Ui(e,t){e.__ngContext__=t}function qi(e,t){const n=e[1];for(let r=20;r("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B))();function Qi(e){return{name:"window",target:e.ownerDocument.defaultView}}function Zi(e){return{name:"document",target:e.ownerDocument}}function Xi(e){return{name:"body",target:e.ownerDocument.body}}function Yi(e){return e instanceof Function?e():e}var Ji=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let es;function ts(e,t){return es(e,t)}function ns(e){const t=e[3];return pe(t)?t[3]:t}function rs(e){return function(e){let t=he(e)?e:Be(e);for(;t&&!(512&t[2]);)t=ns(t);return t}(e)[8]}function is(e){return os(e[13])}function ss(e){return os(e[4])}function os(e){for(;null!==e&&!pe(e);)e=e[4];return e}function as(e,t,n,r,i){if(null!=r){let s,o=!1;pe(r)?s=r:he(r)&&(o=!0,r=r[0]);const a=Me(r);0===e&&null!==n?null==i?bs(t,n,a):ys(t,n,a,i||null,!0):1===e&&null!==n?ys(t,n,a,i||null,!0):2===e?Ts(t,a,o):3===e&&t.destroyNode(a),null!=s&&function(e,t,n,r,i){const s=n[7];s!==Me(n)&&as(t,e,r,s,i);for(let o=10;o0&&(e[n-1][4]=r[4]);const o=Hn(e,10+t);Vs(r[1],i=r,i[11],2,null,null),i[0]=null,i[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}var i;return r}function fs(e,t){if(!(256&t[2])){const n=t[11];Ve(n)&&n.destroyNode&&Vs(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return gs(e[1],e);for(;t;){let n=null;if(he(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)he(t)&&gs(t[1],t),t=t[3];null===t&&(t=e),he(t)&&gs(t[1],t),n=t&&t[4]}t=n}}(t)}}function gs(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?e[a]():e[-a].unsubscribe(),r+=2}else n[r].call(e[n[r+1]]);t[7]=null}}(e,t),1===t[1].type&&Ve(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&pe(t[3])){n!==t[3]&&hs(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function ms(e,t,n){return vs(e,t.parent,n)}function vs(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const t=e.data[r.directiveStart].encapsulation;if(t===N.None||t===N.Emulated)return null}return Ne(r,n)}function ys(e,t,n,r,i){Ve(e)?e.insertBefore(t,n,r,i):t.insertBefore(n,r,i)}function bs(e,t,n){Ve(e)?e.appendChild(t,n):t.appendChild(n)}function _s(e,t,n,r,i){null!==r?ys(e,t,n,r,i):bs(e,t,n)}function ws(e,t){return Ve(e)?e.parentNode(t):t.parentNode}function Cs(e,t,n){return Ss(e,t,n)}function xs(e,t,n){return 40&e.type?Ne(e,n):null}let $s,Ss=xs;function Es(e,t){Ss=e,$s=t}function Os(e,t,n,r){const i=ms(e,r,t),s=t[11],o=Cs(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(let a=0;as?"":i[c+1].toLowerCase();const t=8&r?e:null;if(t&&-1!==Ns(t,u,0)||2&r&&u!==e){if(Bs(r))return!1;o=!0}}}}else{if(!o&&!Bs(r)&&!Bs(l))return!1;if(o&&Bs(l))continue;o=!1,r=l|1&r}}return Bs(r)||o}function Bs(e){return 0==(1&e)}function Hs(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+="."+o:4&r&&(i+=" "+o);else""===i||Bs(o)||(t+=Ws(s,i),i=""),r=o,s=s||!Bs(r);n++}return""!==i&&(t+=Ws(s,i)),t}const Gs={};function Ks(e){Qs(Ye(),Xe(),It()+e,ot())}function Qs(e,t,n,r){if(!r)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&At(t,r,n)}else{const r=e.preOrderHooks;null!==r&&Nt(t,r,0,n)}kt(n)}function Zs(e,t){return e<<17|t<<2}function Xs(e){return e>>17&32767}function Ys(e){return 2|e}function Js(e){return(131068&e)>>2}function eo(e,t){return-131069&e|t<<2}function to(e){return 1|e}const no=(()=>Promise.resolve(null))();function ro(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r20&&Qs(e,t,20,ot()),n(r,i)}finally{kt(s)}}function po(e,t,n){if(fe(t)){const r=t.directiveEnd;for(let i=t.directiveStart;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=s&&n.push(s),n.push(r,i,o)}}function $o(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function So(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Eo(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&No(n)}}function No(e){for(let n=is(e);null!==n;n=ss(n))for(let e=10;e0&&No(t)}const t=e[1].components;if(null!==t)for(let n=0;n0&&No(r)}}function Do(e,t){const n=Fe(t,e),r=n[1];!function(e,t){for(let n=t.length;nt=e),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Lo(e)),2&e.flags){e.flags&=-3;const t=e.playerHandler;t&&t.flushPlayers()}e.clean=no,t(null)})}}(Fo(Hi(e))[8])}const Jo=new In("INJECTOR",-1);class ea{get(e,t=mr){if(t===mr){const t=new Error(`NullInjectorError: No provider for ${c(e)}!`);throw t.name="NullInjectorError",t}return t}}const ta=new In("Set Injector scope."),na={},ra={},ia=[];let sa=void 0;function oa(){return void 0===sa&&(sa=new ea),sa}function aa(e,t=null,n=null,r){const i=la(e,t,n,r);return i._resolveInjectorDefTypes(),i}function la(e,t=null,n=null,r){return new ua(e,n,t||oa(),r)}class ua{constructor(e,t,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];t&&Ln(t,n=>this.processProvider(n,e,t)),Ln([e],e=>this.processInjectorType(e,[],i)),this.records.set(Jo,ha(void 0,this));const s=this.records.get(ta);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof e?null:c(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=mr,n=O.Default){this.assertNotDestroyed();const r=_r(this);try{if(!(n&O.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(i=e)||"object"==typeof i&&i instanceof In)&&_(e);t=n&&this.injectableDefInScope(n)?ha(ca(e),na):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&O.Self?oa():this.parent).get(e,t=n&O.Optional&&t===mr?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(c(e)),r)throw s;return function(e,t,n,r){const i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=c(t);if(Array.isArray(t))i=t.map(c).join(" -> ");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):c(r)))}i=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(vr,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(s,e,"R3InjectorError",this.source)}throw s}finally{_r(r)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(c(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=f(e)))return!1;let r=C(e);const i=null==r&&e.ngModule||void 0,s=void 0===i?e:i,o=-1!==n.indexOf(s);if(void 0!==i&&(r=C(i)),null==r)return!1;if(null!=r.imports&&!o){let e;n.push(s);try{Ln(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{}if(void 0!==e)for(let t=0;tthis.processProvider(e,n,r||ia))}}this.injectorDefTypes.add(s),this.records.set(s,ha(r.factory,na));const a=r.providers;if(null!=a&&!o){const t=e;Ln(a,e=>this.processProvider(e,t,a))}return void 0!==i&&void 0!==e.providers}processProvider(e,t,n){let r=fa(e=f(e))?e:f(e&&e.provide);const i=function(e,t,n){return pa(e)?ha(void 0,e.useValue):ha(da(e),na)}(e);if(fa(e)||!0!==e.multi)this.records.get(r);else{let t=this.records.get(r);t||(t=ha(void 0,na,!0),t.factory=()=>Sr(t.multi),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,i)}hydrate(e,t){var n;return t.value===na&&(t.value=ra,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function ca(e){const t=_(e),n=null!==t?t.factory:ye(e);if(null!==n)return n;const r=C(e);if(null!==r)return r.factory;if(e instanceof In)throw new Error(`Token ${c(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=Un(t,"?");throw new Error(`Can't resolve all parameters for ${c(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[x]||e[S]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function da(e,t,n){let r=void 0;if(fa(e)){const t=f(e);return ye(t)||ca(t)}if(pa(e))r=()=>f(e.useValue);else if((i=e)&&i.useFactory)r=()=>e.useFactory(...Sr(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>Cr(f(e.useExisting));else{const t=f(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return ye(t)||ca(t);r=()=>new t(...Sr(e.deps))}var i;return r}function ha(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function pa(e){return null!==e&&"object"==typeof e&&yr in e}function fa(e){return"function"==typeof e}function ga(e,t,n){return aa({name:n},t,e,n)}const ma=ga;let va=(()=>{class e{static create(e,t){return Array.isArray(e)?ma(e,t,""):ma(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=mr,e.NULL=new ea,e.\u0275prov=v({token:e,providedIn:"any",factory:()=>Cr(Jo)}),e.__NG_ELEMENT_ID__=-1,e})();function ya(e){Ia(e);const t=$a(e,!1);return null===t?null:(void 0===t.component&&(t.component=function(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function ba(e){Ia(e);const t=$a(e,!1);return null===t?null:t.lView[8]}function _a(e){const t=$a(e,!1);if(null===t)return null;let n,r=t.lView;for(;2===r[1].type&&(n=ns(r));)r=n;return 512&r[2]?null:r[8]}function wa(e){return[...rs(e).components]}function Ca(e){const t=$a(e,!1);return null===t?va.NULL:new gn(t.lView[1].data[t.nodeIndex],t.lView)}function xa(e){const t=$a(e);return void 0===t.directives&&(t.directives=Gi(t.nodeIndex,t.lView,!1)),null===t.directives?[]:[...t.directives]}function $a(e,t=!0){const n=Li(e);if(!n&&t)throw new Error("Invalid ng target");return n}function Sa(e){return Li(e).native}function Ea(e){Ia(e);const t=$a(e,!1);if(null===t)return[];const n=t.lView,r=n[7],i=n[1].cleanup,s=[];if(i&&r)for(let o=0;o=0?"dom":"output",p="boolean"==typeof d&&d;e==u&&s.push({element:e,name:l,callback:c,useCapture:p,type:h})}}return s.sort(Oa),s}function Oa(e,t){return e.name==t.name?0:e.nameXo(e))}let Ta=!1;function ja(){Ta||(Ta=!0,Va("getComponent",ya),Va("getContext",ba),Va("getListeners",Ea),Va("getOwningComponent",_a),Va("getHostElement",Sa),Va("getInjector",Ca),Va("getRootComponents",wa),Va("getDirectives",xa),Va("applyChanges",ka))}function Va(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=B;if(n){let r=n.ng;r||(r=n.ng={}),r[e]=t}}}function Pa(e,t={}){const n=t.rendererFactory||Pe,r=t.sanitizer||null,i=le(e);i.type!=e&&(i.type=e);const s=i.selectors[0][0],o=yo(n.createRenderer(null,null),t.host||s,i.encapsulation),a=i.onPush?576:528,l=Na(t.scheduler,t.playerHandler),u=n.createRenderer(o,i),c=vo(0,null,null,1,0,null,null,null,null,null),d=io(null,c,l,a,null,null,n,u,null,t.injector||null);let h;wt(d);try{n.begin&&n.begin(),h=Aa(Ma(o,i,d,n,u,r),i,d,l,t.hostFeatures||null),lo(c,d,null),uo(c,d,null,null)}finally{Et(),n.end&&n.end()}return h}function Ma(e,t,n,r,i,s){const o=n[1];n[20]=e;const a=so(o,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(Zo(a,l,!0),null!==e&&(Bt(i,e,l),null!==a.classes&&As(i,e,a.classes),null!==a.styles&&Ms(i,e,a.styles)));const u=r.createRenderer(e,t),c=io(n,mo(t),null,t.onPush?64:16,n[20],a,r,u,s||null,null);return o.firstCreatePass&&(nn(Yt(a,n),o,t.type),So(o,a),Oo(a,n.length,1)),Ro(n,c),n[20]=c}function Aa(e,t,n,r,i){const s=n[1],o=function(e,t,n){const r=et();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Io(e,r,t,ao(e,t,1,null),n));const i=hn(t,e,r.directiveStart,r);Ui(i,t);const s=Ne(r,t);return s&&Ui(s,t),i}(s,n,t);if(r.components.push(o),e[8]=o,i&&i.forEach(e=>e(o,t)),t.contentQueries){const e=et();t.contentQueries(1,o,e.directiveStart)}const a=et();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(kt(a.index),xo(n[1],a,0,a.directiveStart,a.directiveEnd,t),$o(t,o)),o}function Na(e,t){return{components:[],scheduler:e||Ki,clean:qo,playerHandler:t||null,flags:0}}function Da(e,t){Mt(Be(e)[1],et())}function Ra(e){return rs(e).clean}function Fa(e){return Object.getPrototypeOf(e.prototype).constructor}function La(e){let t=Fa(e.type),n=!0;const r=[e];for(;t;){let i=void 0;if(ve(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);const t=e;t.inputs=Ba(e.inputs),t.declaredInputs=Ba(e.declaredInputs),t.outputs=Ba(e.outputs);const n=i.hostBindings;n&&qa(e,n);const s=i.viewQuery,o=i.contentQueries;if(s&&Ha(e,s),o&&Ua(e,o),u(e.inputs,i.inputs),u(e.declaredInputs,i.declaredInputs),u(e.outputs,i.outputs),ve(i)&&i.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(i.data.animation)}}const t=i.features;if(t)for(let r=0;r=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=qt(i.hostAttrs,n=qt(n,i.hostAttrs))}}(r)}function Ba(e){return e===H?{}:e===U?[]:e}function Ha(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function Ua(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,i)=>{t(e,r,i),n(e,r,i)}:t}function qa(e,t){const n=e.hostBindings;e.hostBindings=n?(e,r)=>{t(e,r),n(e,r)}:t}const Wa=["providersResolver"],za=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function Ga(e){let t=Fa(e.type),n=void 0;n=ve(e)?t.\u0275cmp:t.\u0275dir;const r=e;for(const i of Wa)r[i]=n[i];if(ve(n))for(const i of za)r[i]=n[i]}let Ka=null;function Qa(){if(!Ka){const e=B.Symbol;if(e&&e.iterator)Ka=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Ol(e){return Re(Ge.lFrame.contextLView,20+e)}const Il={\u0275\u0275defineInjectable:v,\u0275\u0275defineInjector:b,\u0275\u0275inject:Cr,\u0275\u0275getFactoryOf:function e(t){const n=t;if(g(t))return()=>{const t=e(f(n));return t?t():null};const r=_(n)||C(n);return r&&void 0!==r.factory?r.factory:null},\u0275\u0275invalidFactoryDep:xr},kl=l({provide:String,useValue:l});function Tl(e){return void 0!==e.useClass}function jl(e){return void 0!==e.useFactory}function Vl(e,t){const n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn,userDeps:void 0};return(Tl(n)||jl(n))&&void 0!==n.deps&&(r.userDeps=ur(n.deps)),Tl(n)?r.useClass=f(n.useClass):function(e){return kl in e}(n)?r.useValue=f(n.useValue):jl(n)?r.useFactory=n.useFactory:function(e){return void 0!==e.useExisting}(n)&&(r.useExisting=f(n.useExisting)),r}const Pl=Cn("Injectable",void 0,void 0,void 0,(e,t)=>Al(e,t)),Ml=function(e,t){let n=null,r=null;e.hasOwnProperty(x)||Object.defineProperty(e,x,{get:()=>(null===n&&(n=Nn().compileInjectable(Il,`ng:///${e.name}/\u0275prov.js`,Vl(e,t))),n)}),e.hasOwnProperty(Q)||Object.defineProperty(e,Q,{get:()=>{if(null===r){const n=Vl(e,t),i=Nn();r=i.compileFactory(Il,`ng:///${e.name}/\u0275fac.js`,{name:n.name,type:n.type,typeArgumentCount:n.typeArgumentCount,deps:lr(e),injectFn:"inject",target:i.R3FactoryTarget.Injectable})}return r},configurable:!0})},Al=Ml;function Nl(e){return e.length>1?" ("+function(e){const t=[];for(let n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(e=>c(e.token)).join(" -> ")+")":""}function Dl(e,t,n,r){const i=[t],s=n(i),o=r?function(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,r=Error(n);return r.ngOriginalError=t,r}(s,r):Error(s);return o.addKey=Rl,o.keys=i,o.injectors=[e],o.constructResolvingMessage=n,o.ngOriginalError=r,o}function Rl(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Fl(e,t){const n=[];for(let r=0,i=t.length;re,n=[Wl.fromKey(Ll.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(e,t){if(t){const n=t.map(e=>[e]);return t.map(t=>eu(e,t,n))}return Jl(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=zl);return new Kl(t,n)}function Zl(e){return new Gl(Ll.get(e.provide),[Ql(e)],e.multi||!1)}function Xl(e){const t=function(e,t){for(let n=0;n{if(e instanceof Dn)t.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)t.push(e);else{if(!Array.isArray(e))throw Error("Invalid provider - only instances of Provider and Type are allowed, got: "+e);Yl(e,t)}}),t}function Jl(e){const t=ql.parameters(e);if(!t)return[];if(t.some(e=>null==e))throw Fl(e,t);return t.map(n=>eu(e,n,t))}function eu(e,t,n){let r=null,i=!1;if(!Array.isArray(t))return tu(t instanceof tr?t.token:t,i,null);let s=null;for(let o=0;o{class e{constructor(e,t){this._constructionCounter=0,this._providers=e,this.parent=t||null;const n=e.length;this.keyIds=[],this.objs=[];for(let r=0;r=this._providers.length)throw function(e){return Error(`Index ${e} is out-of-bounds.`)}(e);return this._providers[e]}_new(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw Dl(this,e.key,function(e){return"Cannot instantiate cyclic dependency!"+Nl(e)});return this._instantiateProvider(e)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(e){if(e.multiProvider){const t=[];for(let n=0;nthis._getByReflectiveDependency(e))}catch(o){throw o.addKey&&o.addKey(this,e.key),o}try{i=n(...r)}catch(o){throw Dl(this,e.key,function(e){const t=c(e[0].token);return`${s.message}: Error during instantiation of ${t}!${Nl(e)}.`},s=o)}var s;return i}_getByReflectiveDependency(e){return this._getByKey(e.key,e.visibility,e.optional?null:mr)}_getByKey(t,n,r){return t===e.INJECTOR_KEY?this:n instanceof rr?this._getByKeySelf(t,r):this._getByKeyDefault(t,r,n)}_getObjByKeyId(e){for(let t=0;ta(Me(e[r.index])).target:r.index;if(Ve(n)){let o=null;if(!a&&l&&(o=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let s=0;sn?e[n]:null}"string"==typeof e&&(s+=2)}return null}(e,t,i,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,d=!1;else{s=Cu(r,t,s,!1);const e=n.listen(p.name||f,i,s);c.push(s,e),u&&u.push(i,m,g,g+1)}}else s=Cu(r,t,s,!0),f.addEventListener(i,s,o),c.push(s),u&&u.push(i,m,g,o)}else s=Cu(r,t,s,!1);const h=r.outputs;let p;if(d&&null!==h&&(p=h[i])){const e=p.length;if(e)for(let n=0;n=0}const Lu={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bu(e){return e.substring(Lu.key,Lu.keyEnd)}function Hu(e){return e.substring(Lu.value,Lu.valueEnd)}function Uu(e,t){const n=Lu.textEnd;return n===t?-1:(t=Lu.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Lu.key=t,n),zu(e,t,n))}function qu(e,t){const n=Lu.textEnd;let r=Lu.key=zu(e,t,n);return n===r?-1:(r=Lu.keyEnd=function(e,t,n){let r;for(;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=Gu(e,r,n),r=Lu.value=zu(e,r,n),r=Lu.valueEnd=function(e,t,n){let r=-1,i=-1,s=-1,o=t,a=o;for(;o32&&(a=o),s=i,i=r,r=-33&l}return a}(e,r,n),Gu(e,r,n))}function Wu(e){Lu.key=0,Lu.keyEnd=0,Lu.value=0,Lu.valueEnd=0,Lu.textEnd=e.length}function zu(e,t,n){for(;t=0;n=qu(t,n))ac(e,Bu(t),Hu(t))}function Ju(e){nc(qn,ec,e,!0)}function ec(e,t){for(let n=function(e){return Wu(e),Uu(e,zu(e,0,Lu.textEnd))}(t);n>=0;n=Uu(t,n))qn(e,Bu(t),!0)}function tc(e,t,n,r){const i=Xe(),s=Ye(),o=ht(2);s.firstUpdatePass&&ic(s,e,o,r),t!==Gs&&nl(i,o,t)&&lc(s,s.data[It()],i,i[11],e,i[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=c(Dr(e)))),e}(t,n),r,o)}function nc(e,t,n,r){const i=Ye(),s=ht(2);i.firstUpdatePass&&ic(i,null,s,r);const o=Xe();if(n!==Gs&&nl(o,s,n)){const a=i.data[It()];if(dc(a,r)&&!rc(i,s)){let e=r?a.classesWithoutHost:a.stylesWithoutHost;null!==e&&(n=d(e,n||"")),lu(i,a,o,n,r)}else!function(e,t,n,r,i,s,o,a){i===Gs&&(i=Du);let l=0,u=0,c=0=e.expandoStartIndex}function ic(e,t,n,r){const i=e.data;if(null===i[n+1]){const s=i[It()],o=rc(e,n);dc(s,r)&&null===t&&!o&&(t=!1),t=function(e,t,n,r){const i=mt(e);let s=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=oc(n=sc(null,e,t,n,r),t.attrs,r),s=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==i)if(n=sc(i,e,t,n,r),null===s){let n=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Js(r))return e[Xs(r)]}(e,t,r);void 0!==n&&Array.isArray(n)&&(n=sc(null,e,t,n[1],r),n=oc(n,t.attrs,r),function(e,t,n,r){e[Xs(n?t.classBindings:t.styleBindings)]=r}(e,t,r,n))}else s=function(e,t,n){let r=void 0;const i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(c=!0)}else u=n;if(i)if(0!==l){const t=Xs(e[a+1]);e[r+1]=Zs(t,a),0!==t&&(e[t+1]=eo(e[t+1],r)),e[a+1]=131071&e[a+1]|r<<17}else e[r+1]=Zs(a,0),0!==a&&(e[a+1]=eo(e[a+1],r)),a=r;else e[r+1]=Zs(l,0),0===a?a=r:e[l+1]=eo(e[l+1],r),l=r;c&&(e[r+1]=Ys(e[r+1])),Ru(e,u,r,!0),Ru(e,u,r,!1),function(e,t,n,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&zn(s,t)>=0&&(n[r+1]=to(n[r+1]))}(t,u,e,r,s),o=Zs(a,l),s?t.classBindings=o:t.styleBindings=o}(i,s,t,n,o,r)}}function sc(e,t,n,r,i){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const t=e[i],s=Array.isArray(t),l=s?t[1]:t,u=null===l;let c=n[i+1];c===Gs&&(c=u?Du:void 0);let d=u?Wn(c,r):l===r?c:void 0;if(s&&!cc(d)&&(d=Wn(t,r)),cc(d)&&(a=d,o))return a;const h=e[i+1];i=o?Xs(h):Js(h)}if(null!==t){let e=s?t.residualClasses:t.residualStyles;null!=e&&(a=Wn(e,r))}return a}function cc(e){return void 0!==e}function dc(e,t){return 0!=(e.flags&(t?16:32))}function hc(e,t=""){const n=Xe(),r=Ye(),i=e+20,s=r.firstCreatePass?so(r,i,1,t,null):r.data[i],o=n[i]=ls(n[11],t);Os(r,n,o,s),rt(s,!1)}function pc(e){return fc("",e,""),pc}function fc(e,t,n){const r=Xe(),i=ll(r,e,t,n);return i!==Gs&&Qo(r,It(),i),fc}function gc(e,t,n,r,i){const s=Xe(),o=ul(s,e,t,n,r,i);return o!==Gs&&Qo(s,It(),o),gc}function mc(e,t,n,r,i,s,o){const a=Xe(),l=cl(a,e,t,n,r,i,s,o);return l!==Gs&&Qo(a,It(),l),mc}function vc(e,t,n,r,i,s,o,a,l){const u=Xe(),c=dl(u,e,t,n,r,i,s,o,a,l);return c!==Gs&&Qo(u,It(),c),vc}function yc(e,t,n,r,i,s,o,a,l,u,c){const d=Xe(),h=hl(d,e,t,n,r,i,s,o,a,l,u,c);return h!==Gs&&Qo(d,It(),h),yc}function bc(e,t,n,r,i,s,o,a,l,u,c,d,h){const p=Xe(),f=pl(p,e,t,n,r,i,s,o,a,l,u,c,d,h);return f!==Gs&&Qo(p,It(),f),bc}function _c(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f){const g=Xe(),m=fl(g,e,t,n,r,i,s,o,a,l,u,c,d,h,p,f);return m!==Gs&&Qo(g,It(),m),_c}function wc(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m){const v=Xe(),y=gl(v,e,t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m);return y!==Gs&&Qo(v,It(),y),wc}function Cc(e){const t=Xe(),n=al(t,e);return n!==Gs&&Qo(t,It(),n),Cc}function xc(e,t,n){nc(qn,ec,ll(Xe(),e,t,n),!0)}function $c(e,t,n,r,i){nc(qn,ec,ul(Xe(),e,t,n,r,i),!0)}function Sc(e,t,n,r,i,s,o){nc(qn,ec,cl(Xe(),e,t,n,r,i,s,o),!0)}function Ec(e,t,n,r,i,s,o,a,l){nc(qn,ec,dl(Xe(),e,t,n,r,i,s,o,a,l),!0)}function Oc(e,t,n,r,i,s,o,a,l,u,c){nc(qn,ec,hl(Xe(),e,t,n,r,i,s,o,a,l,u,c),!0)}function Ic(e,t,n,r,i,s,o,a,l,u,c,d,h){nc(qn,ec,pl(Xe(),e,t,n,r,i,s,o,a,l,u,c,d,h),!0)}function kc(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f){nc(qn,ec,fl(Xe(),e,t,n,r,i,s,o,a,l,u,c,d,h,p,f),!0)}function Tc(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m){nc(qn,ec,gl(Xe(),e,t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m),!0)}function jc(e){nc(qn,ec,al(Xe(),e),!0)}function Vc(e,t,n){Xu(ll(Xe(),e,t,n))}function Pc(e,t,n,r,i){Xu(ul(Xe(),e,t,n,r,i))}function Mc(e,t,n,r,i,s,o){Xu(cl(Xe(),e,t,n,r,i,s,o))}function Ac(e,t,n,r,i,s,o,a,l){Xu(dl(Xe(),e,t,n,r,i,s,o,a,l))}function Nc(e,t,n,r,i,s,o,a,l,u,c){Xu(hl(Xe(),e,t,n,r,i,s,o,a,l,u,c))}function Dc(e,t,n,r,i,s,o,a,l,u,c,d,h){Xu(pl(Xe(),e,t,n,r,i,s,o,a,l,u,c,d,h))}function Rc(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f){Xu(fl(Xe(),e,t,n,r,i,s,o,a,l,u,c,d,h,p,f))}function Fc(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m){Xu(gl(Xe(),e,t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m))}function Lc(e){Xu(al(Xe(),e))}function Bc(e,t,n,r,i){return tc(e,ll(Xe(),t,n,r),i,!1),Bc}function Hc(e,t,n,r,i,s,o){return tc(e,ul(Xe(),t,n,r,i,s),o,!1),Hc}function Uc(e,t,n,r,i,s,o,a,l){return tc(e,cl(Xe(),t,n,r,i,s,o,a),l,!1),Uc}function qc(e,t,n,r,i,s,o,a,l,u,c){return tc(e,dl(Xe(),t,n,r,i,s,o,a,l,u),c,!1),qc}function Wc(e,t,n,r,i,s,o,a,l,u,c,d,h){return tc(e,hl(Xe(),t,n,r,i,s,o,a,l,u,c,d),h,!1),Wc}function zc(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f){return tc(e,pl(Xe(),t,n,r,i,s,o,a,l,u,c,d,h,p),f,!1),zc}function Gc(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m){return tc(e,fl(Xe(),t,n,r,i,s,o,a,l,u,c,d,h,p,f,g),m,!1),Gc}function Kc(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m,v,y){return tc(e,gl(Xe(),t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m,v),y,!1),Kc}function Qc(e,t,n){return tc(e,al(Xe(),t),n,!1),Qc}function Zc(e,t,n){const r=Xe();return nl(r,dt(),t)&&wo(Ye(),Tt(),r,e,t,r[11],n,!0),Zc}function Xc(e,t,n){const r=Xe();if(nl(r,dt(),t)){const i=Ye(),s=Tt();wo(i,s,r,e,t,zo(mt(i.data),s,r),n,!0)}return Xc}const Yc=void 0;var Jc=["en",[["a","p"],["AM","PM"],Yc],[["AM","PM"],Yc,Yc],[["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"]],Yc,[["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"]],Yc,[["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}",Yc,"{1} 'at' {0}",Yc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##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}];let ed={};function td(e,t,n){"string"!=typeof t&&(n=t,t=e[ad.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),ed[t]=e,n&&(ed[t][ad.ExtraData]=n)}function nd(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=sd(t);if(n)return n;const r=t.split("-")[0];if(n=sd(r),n)return n;if("en"===r)return Jc;throw new Error(`Missing locale data for the locale "${e}".`)}function rd(e){return nd(e)[ad.CurrencyCode]||null}function id(e){return nd(e)[ad.PluralCase]}function sd(e){return e in ed||(ed[e]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[e]),ed[e]}function od(){ed={}}var ad=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}({});const ld=["zero","one","two","few","many"],ud="en-US",cd="USD",dd={marker:"element"},hd={marker:"ICU"};var pd=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}({});let fd=ud;function gd(e){var t;null==(t=e)&&m("Expected localeId to be defined",t,null,"!="),"string"==typeof e&&(fd=e.toLowerCase().replace(/_/g,"-"))}function md(e,t,n){const r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?xs(e,0,n):Me(n[i])}function vd(e,t,n,r,i){const s=t.insertBeforeIndex;if(Array.isArray(s)){let o=r,a=null;if(3&t.type||(a=o,o=i),null!==o&&0==(2&t.flags))for(let t=1;t1)for(let n=e.length-2;n>=0;n--){const r=e[n];bd(r)||_d(r,t)&&null===wd(r)&&Cd(r,t.index)}}function bd(e){return!(64&e.type)}function _d(e,t){return bd(t)||e.index>t.index}function wd(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function Cd(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(Es(md,vd),e.insertBeforeIndex=t)}function xd(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function $d(e,t,n){const r=oo(e,n,64,null,null);return yd(t,r),r}function Sd(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}let Ed=0,Od=0;function Id(e,t,n,r){const i=n[11];let s,o=null;for(let a=0;a>>17;let c,d;if(null===o&&(o=u,s=ws(i,r)),u===o?(c=r,d=s):(c=null,d=Me(n[u])),null!==d){const t=(131070&l)>>>1;ys(i,d,n[t],c,!1);const r=xd(e,t);if(null!==r&&"object"==typeof r){const t=Sd(r,n);null!==t&&Id(e,r.create[t],n,n[r.anchorIdx])}}break;case 1:const h=t[++a],p=t[++a];jo(i,Ae(l>>>1,n),null,null,h,p,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}else switch(l){case hd:const e=t[++a],r=t[++a];null===n[r]&&Ui(n[r]=cs(i,e),n);break;case dd:const s=t[++a],o=t[++a];null===n[o]&&Ui(n[o]=ds(i,s,null),n)}}}function kd(e,t,n,r,i){for(let s=0;s>>2;switch(3&s){case 1:const s=n[++o],l=n[++o],u=e.data[a];"string"==typeof u?jo(t[11],t[a],null,u,s,i,l):wo(e,u,t,s,i,t[11],l,!1);break;case 0:const c=t[a];null!==c&&us(t[11],c,i);break;case 2:jd(e,xd(e,a),t,i);break;case 3:Td(e,xd(e,a),r,t)}}}}else{const i=n[s+1];if(i>0&&3==(3&i)){const n=xd(e,i>>>2);t[n.currentCaseLViewIndex]<0&&Td(e,n,r,t)}}s+=a}}function Td(e,t,n,r){let i=r[t.currentCaseLViewIndex];if(null!==i){let s=Ed;i<0&&(i=r[t.currentCaseLViewIndex]=~i,s=-1),kd(e,r,t.update[i],n,s)}}function jd(e,t,n,r){const i=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,t){const n=id(t)(parseInt(e,10)),r=ld[n];return void 0!==r?r:"other"}(t,fd);n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(Sd(t,n)!==i&&(Vd(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const r=n[t.anchorIdx];r&&Id(e,t.create[i],n,r)}}function Vd(e,t,n){let r=Sd(t,n);if(null!==r){const i=t.remove[r];for(let t=0;t0){const e=Ae(r,n);null!==e&&Ts(n[11],e)}else Vd(e,xd(e,~r),n)}}}const Pd=/\ufffd(\d+):?\d*\ufffd/gi,Md=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Ad=/\ufffd(\d+)\ufffd/,Nd=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Dd=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Rd=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Fd=/\uE500/g;function Ld(e,t,n,r,i,s,o){const a=ao(e,r,1,null);let l=a<0?t[o]:(e.push(r,n),i(t[1].data[~o],t),s())}return 0===e.length?null:(n=e.pop(),r=e.pop(),s())}return function(n,r){for(t=r;e.length;)e.pop();return i(n.value,r),s}}())),i.push(l,null===s?"":s);const c=oo(e,a,o?32:1,null===s?"":s,null);yd(n,c);const d=c.index;return rt(c,!1),null!==u&&t!==u&&function(e,t){let n=e.insertBeforeIndex;var r;null===n?(Es(md,vd),n=e.insertBeforeIndex=[null,t]):("Expecting array here",(r=Array.isArray(n))!=!0&&m("Expecting array here",r,true,"=="),n.push(t))}(u,d),c}function Bd(e,t,n,r,i,s,o){const a=o.match(Pd),l=Ld(e,t,n,s,r,a?null:o,!1);a&&Hd(i,o,l.index)}function Hd(e,t,n,r,i=null){const s=e.length,o=s+1;e.push(null,null);const a=s+2,l=t.split(Pd);let u=0;for(let c=0;cn.length&&n.push(i)}return{type:r,mainBinding:i,cases:t,values:n}}function Gd(e){if(!e)return[];let t=0;const n=[],r=[],i=/[{}]/g;let s;for(i.lastIndex=0;s=i.exec(e);){const i=s.index;if("}"==s[0]){if(n.pop(),0==n.length){const n=e.substring(t,i);Nd.test(n)?r.push(zd(n)):r.push(n),t=i+1}}else{if(0==n.length){const n=e.substring(t,i);r.push(n),t=i+1}n.push("{")}}const o=e.substring(t);return r.push(o),r}function Kd(e,t,n,r,i,s,o,a){const l=[],u=[],c=[];t.cases.push(s),t.create.push(l),t.remove.push(u),t.update.push(c);const d=Qr(je()).getInertBodyElement(o),h=bi(d)||d;return h?Qd(e,t,n,r,l,u,c,h,i,a,0):0}function Qd(e,t,n,r,i,s,o,a,l,u,c){let d=0,h=a.firstChild;for(;h;){const a=ao(e,n,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:const p=h,f=p.tagName.toLowerCase();if(li.hasOwnProperty(f)){Yd(i,dd,f,l,a),e.data[a]=f;const g=p.attributes;for(let e=0;e{const s=r||i,o=e[s]||[];if(o.length||(s.split("|").forEach(e=>{const t=e.match(oh),n=t?parseInt(t[1],10):0,r=sh.test(e);o.push([n,r,e])}),e[s]=o),!o.length)throw new Error("i18n postprocess: unmatched placeholder - "+s);const a=t[t.length-1];let l=0;for(let e=0;et.hasOwnProperty(r)?`${n}${t[r]}${o}`:e),n=n.replace(rh,(e,n)=>t.hasOwnProperty(n)?t[n]:e),n=n.replace(ih,(e,n)=>{if(t.hasOwnProperty(n)){const r=t[n];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${e} with key: ${n}`);return r.shift()}return e}),n):n}function lh(e,t,n=-1){const r=Ye(),i=Xe(),s=20+e,o=qe(r.consts,t),a=nt();r.firstCreatePass&&function(e,t,n,r,i,s){const o=nt(),a=[],l=[],u=[[]],c=(d=i=function(e,t){if(function(e){return-1===e}(t))return qd(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return qd(e.substring(n,r))}}(i,s),d.replace(Fd," ")).split(Rd);var d;for(let h=0;h>>pd.SHIFT;let d=e[c];null===d&&(d=e[c]=l?i.createComment(a):ls(i,a)),u&&null!==n&&ys(i,n,d,r,!1)}}(i,l.create,u,a&&8&a.type?i[a.index]:null),pt(!0)}function uh(){pt(!1)}function ch(e,t,n){lh(e,t,n),uh()}function dh(e,t){const n=Ye();!function(e,t,n){const r=et().index,i=[];if(e.firstCreatePass&&null===e.data[t]){for(let e=0;e0){const r=e.data[n];kd(e,t,Array.isArray(r)?r:r.update,ut()-Od-1,Ed)}Ed=0,Od=0}(Ye(),Xe(),e+20)}function fh(e,t={}){return ah(e,t)}function gh(e,t,n,r,i){if(e=f(e),Array.isArray(e))for(let s=0;s>20;if(fa(e)||!e.multi){const r=new Lt(l,i,su),p=yh(a,t,i?c:c+h,d);-1===p?(nn(Yt(u,o),s,a),mh(s,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),n.push(r),o.push(r)):(n[p]=r,o[p]=r)}else{const p=yh(a,t,c+h,d),f=yh(a,t,c,c+h),g=p>=0&&n[p],m=f>=0&&n[f];if(i&&!m||!i&&!g){nn(Yt(u,o),s,a);const c=function(e,t,n,r,i){const s=new Lt(e,n,su);return s.multi=[],s.index=t,s.componentProviders=0,vh(s,i,r&&!n),s}(i?_h:bh,n.length,i,r,l);!i&&m&&(n[f].providerFactory=c),mh(s,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),n.push(c),o.push(c)}else mh(s,e,p>-1?p:f,vh(n[i?f:p],l,!i&&r));!i&&r&&m&&n[f].componentProviders++}}}function mh(e,t,n,r){const i=fa(t);if(i||t.useClass){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const o=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const e=o.indexOf(n);-1===e?o.push(n,[r,s]):o[e+1].push(r,s)}else o.push(n,s)}}}function vh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function yh(e,t,n,r){for(let i=n;i{n.providersResolver=(n,r)=>function(e,t,n){const r=Ye();if(r.firstCreatePass){const i=ve(e);gh(n,r.data,r.blueprint,i,!0),gh(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}class xh{}class $h{}function Sh(e){const t=Error(`No component factory found for ${c(e)}. Did you add it to @NgModule.entryComponents?`);return t[Eh]=e,t}const Eh="ngComponent";class Oh{resolveComponentFactory(e){throw Sh(e)}}let Ih=(()=>{class e{}return e.NULL=new Oh,e})();class kh{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=Ah,e})();class Dh{}let Rh=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Lh(),e})();const Fh=Bh,Lh=Fh;function Bh(){const e=Xe(),t=Fe(et().index,e);return function(e){return e[11]}(he(t)?t:e)}let Hh=(()=>{class e{}return e.\u0275prov=v({token:e,providedIn:"root",factory:()=>null}),e})();class Uh{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const qh=new Uh("11.0.3");class Wh{constructor(){}supports(e){return Ya(e)}create(e){return new Gh(e)}}const zh=(e,t)=>t;class Gh{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||zh}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){const s=!n||t&&t.currentIndex{r=this._trackByFn(t,e),null!==i&&Object.is(i.trackById,r)?(s&&(i=this._verifyReinsertion(i,e,r,t)),Object.is(i.item,e)||this._addIdentityChange(i,e)):(i=this._mismatch(i,e,r,t),s=!0),i=i._next,t++}),this.length=t;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new Kh(t,n),i,r),e}_verifyReinsertion(e,t,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Zh),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Zh),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Kh{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Qh{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class Zh{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Qh,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Xh(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const 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){const 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)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new ep(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))}}class ep{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let tp=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ir,new nr]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=v({token:e,providedIn:"root",factory:()=>new e([new Wh])}),e})(),np=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ir,new nr]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=v({token:e,providedIn:"root",factory:()=>new e([new Yh])}),e})();function rp(e,t,n,r,i=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&r.push(Me(s)),pe(s))for(let e=10;e-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}fs(this._lView[1],this._lView)}onDestroy(e){bo(this._lView[1],this._lView,null,e)}markForCheck(){Fo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Bo(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){at(!0);try{Bo(e,t,n)}finally{at(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,Vs(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class sp extends ip{constructor(e){super(e),this._view=e}detectChanges(){Ho(this._view)}checkNoChanges(){!function(e){at(!0);try{Ho(e)}finally{at(!1)}}(this._view)}get context(){return null}}const op=up,ap=op;let lp=(()=>{class e{}return e.__NG_ELEMENT_ID__=ap,e.__ChangeDetectorRef__=!0,e})();function up(e=!1){return function(e,t,n){if(!n&&ge(e)){const n=Fe(e.index,t);return new ip(n,n)}return 47&e.type?new ip(t[16],t):null}(et(),Xe(),e)}const cp=[new Yh],dp=new tp([new Wh]),hp=new np(cp),pp=yp,fp=pp;let gp=(()=>{class e{}return e.__NG_ELEMENT_ID__=fp,e})();const mp=gp,vp=class extends mp{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=io(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),lo(t,n,e),new ip(n)}};function yp(){return bp(et(),Xe())}function bp(e,t){return 4&e.type?new vp(t,e,Ph(e,t)):null}class _p{}class wp{}const Cp=Sp,xp=Cp;let $p=(()=>{class e{}return e.__NG_ELEMENT_ID__=xp,e})();function Sp(){return Tp(et(),Xe())}const Ep=$p,Op=class extends Ep{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Ph(this._hostTNode,this._hostLView)}get injector(){return new gn(this._hostTNode,this._hostLView)}get parentInjector(){const e=tn(this._hostTNode,this._hostLView);if(zt(e)){const t=Kt(e,this._hostLView),n=Gt(e);return new gn(t[1].data[n+8],t)}return new gn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Ip(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,i){const s=n||this.parentInjector;if(!i&&null==e.ngModule&&s){const e=s.get(_p,null);e&&(i=e)}const o=e.create(s,r,void 0,i);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,r=n[1];if(pe(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],r=new Op(t,t[6],t[3]);r.detach(r.indexOf(e))}}const i=this._adjustIndex(t),s=this._lContainer;!function(e,t,n,r){const i=10+r,s=n.length;r>0&&(n[i-1][4]=t),r{},qp=new Map;function Wp(e){let t=qp.get(e);return t||(t=c(e)+"_"+qp.size,qp.set(e,t)),t}function zp(e,t,n,r){if(Xa.isWrapped(r)){r=Xa.unwrap(r);const i=e.def.nodes[t].bindingIndex+n,s=Xa.unwrap(e.oldValues[i]);e.oldValues[i]=new Xa(s)}return r}function Gp(e){return{id:"$$undefined",styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let Kp=0;function Qp(e,t,n,r){return!(!(2&e.state)&&Object.is(e.oldValues[t.bindingIndex+n],r))}function Zp(e,t,n,r){return!!Qp(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function Xp(e,t,n,r){const i=e.oldValues[t.bindingIndex+n];if(1&e.state||!Za(i,r)){const s=t.bindings[n].name;throw jp(Hp.createDebugContext(e,t.nodeIndex),`${s}: ${i}`,`${s}: ${r}`,0!=(1&e.state))}}function Yp(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Jp(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function ef(e,t,n,r){try{return Yp(33554432&e.def.nodes[t].flags?Dp(e,t).componentView:e),Hp.handleEvent(e,t,n,r)}catch(i){e.root.errorHandler.handleError(i)}}function tf(e){return e.parent?Dp(e.parent,e.parentNodeDef.nodeIndex):null}function nf(e){return e.parent?e.parentNodeDef.parent:null}function rf(e,t){switch(201347067&t.flags){case 1:return Dp(e,t.nodeIndex).renderElement;case 2:return Np(e,t.nodeIndex).renderText}}function sf(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function of(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function af(e){return 1<{"number"==typeof e?(t[e]=i,n|=af(e)):r[e]=i}),{matchedQueries:t,references:r,matchedQueryIds:n}}function uf(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,"__source",{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Wp(n)}})}function cf(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&(r.element.componentRendererType.encapsulation===N.ShadowDom||1===r.element.componentRendererType.encapsulation)?Dp(e,n.renderParent.nodeIndex).renderElement:void 0:t}const df=new WeakMap;function hf(e){let t=df.get(e);return t||(t=e(()=>Up),t.factory=e,df.set(e,t)),t}function pf(e,t,n,r,i){3===t&&(n=e.renderer.parentNode(rf(e,e.def.lastRenderRootNode))),ff(e,t,0,e.def.nodes.length-1,n,r,i)}function ff(e,t,n,r,i,s,o){for(let a=n;a<=r;a++){const n=e.def.nodes[a];11&n.flags&&mf(e,n,t,i,s,o),a+=n.childCount}}function gf(e,t,n,r,i,s){let o=e;for(;o&&!sf(o);)o=o.parent;const a=o.parent,l=nf(o),u=l.nodeIndex+l.childCount;for(let c=l.nodeIndex+1;c<=u;c++){const e=a.def.nodes[c];e.ngContentIndex===t&&mf(a,e,n,r,i,s),c+=e.childCount}if(!a.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t-1}(e,n))}(e,o)){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:o.factory,deps:[],index:n,token:t.token},e._providers[n]=Ef,e._providers[n]=Pf(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{_r(r)}}function Pf(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(Vf(e,n[0]));case 2:return new t(Vf(e,n[0]),Vf(e,n[1]));case 3:return new t(Vf(e,n[0]),Vf(e,n[1]),Vf(e,n[2]));default:const i=[];for(let t=0;t=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,Hn(n,t),Hp.dirtyParentQueries(r),Nf(r),r}function Af(e,t,n){const r=t?rf(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),s=n.renderer.nextSibling(r);pf(n,2,i,s,void 0)}function Nf(e){pf(e,3,null,null,void 0)}const Df={};function Rf(e,t,n,r,i,s){return new Lf(e,t,n,r,i,s)}function Ff(e){return e.viewDefFactory}class Lf extends $h{constructor(e,t,n,r,i,s){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=i,this.ngContentSelectors=s,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const i=hf(this.viewDefFactory),s=i.nodes[0].element.componentProvider.nodeIndex,o=Hp.createRootView(e,t||[],n,i,r,Df),a=Rp(o,s).instance;return n&&o.renderer.setAttribute(Dp(o,0).renderElement,"ng-version",qh.full),new Bf(o,new Wf(o),a)}}class Bf extends xh{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new Nh(Dp(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Qf(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Hf(e,t,n){return new Uf(e,t,n)}class Uf{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new Nh(this._data.renderElement)}get injector(){return new Qf(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=nf(e),e=e.parent;return e?new Qf(e,t):new Qf(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Mf(this._data,e);Hp.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Wf(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,i){const s=n||this.parentInjector;i||e instanceof Th||(i=s.get(_p));const o=e.create(s,r,void 0,i);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let i=t.viewContainer._embeddedViews;null==n&&(n=i.length),r.viewContainerParent=e,Bn(i,n,r),function(e,t){const n=tf(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,r),Hp.dirtyParentQueries(r),Af(t,n>0?i[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,n){const r=e.viewContainer._embeddedViews,i=r[t];Hn(r,t),null==n&&(n=r.length),Bn(r,n,i),Hp.dirtyParentQueries(i),Nf(i),Af(e,n>0?r[n-1]:null,i)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Mf(this._data,e);t&&Hp.destroyView(t)}detach(e){const t=Mf(this._data,e);return t?new Wf(t):null}}function qf(e){return new Wf(e)}class Wf{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return pf(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){Yp(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{Hp.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){Hp.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Hp.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Nf(this._view),Hp.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function zf(e,t){return new Gf(e,t)}class Gf extends gp{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Wf(Hp.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new Nh(Dp(this._parentView,this._def.nodeIndex).renderElement)}}function Kf(e,t){return new Qf(e,t)}class Qf{constructor(e,t){this.view=e,this.elDef=t}get(e,t=va.THROW_IF_NOT_FOUND){return Hp.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Wp(e)},t)}}function Zf(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=Dp(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return Np(e,n.nodeIndex).renderText;if(20240&n.flags)return Rp(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function Xf(e,t,n,r){return new Yf(e,t,n,r)}class Yf{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=Un(t.providers.length);for(let r=0;re())}onDestroy(e){this._destroyListeners.push(e)}}const Jf=Wp(Rh),eg=Wp(Nh),tg=Wp($p),ng=Wp(gp),rg=Wp(lp),ig=Wp(va),sg=Wp(Jo);function og(e,t,n,r,i,s,o,a){const l=[];if(o)for(let c in o){const[e,t]=o[c];l[e]={flags:8,name:c,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const u=[];if(a)for(let c in a)u.push({type:1,propName:c,target:null,eventName:a[c]});return ug(e,t|=16384,n,r,i,i,s,l,u)}function ag(e,t,n){return ug(-1,e|=16,null,0,t,t,n)}function lg(e,t,n,r,i){return ug(-1,e,t,0,n,r,i)}function ug(e,t,n,r,i,s,o,a,l){const{matchedQueries:u,references:d,matchedQueryIds:h}=lf(n);l||(l=[]),a||(a=[]),s=f(s);const p=uf(o,c(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:h,references:d,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:_f(a),outputs:l,element:null,provider:{token:i,value:s,deps:p},text:null,query:null,ngContent:null}}function cg(e,t){return fg(e,t)}function dg(e,t){let n=e;for(;n.parent&&!sf(n);)n=n.parent;return gg(n.parent,nf(n),!0,t.provider.value,t.provider.deps)}function hg(e,t){const n=gg(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;ref(e,t,n,r)}function fg(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return gg(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){const s=i.length;switch(s){case 0:return r();case 1:return r(vg(e,t,n,i[0]));case 2:return r(vg(e,t,n,i[0]),vg(e,t,n,i[1]));case 3:return r(vg(e,t,n,i[0]),vg(e,t,n,i[1]),vg(e,t,n,i[2]));default:const o=[];for(let r=0;rKi});class Eg extends $h{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(zs).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return $g(this.componentDef.inputs)}get outputs(){return $g(this.componentDef.outputs)}create(e,t,n,r){const i=(r=r||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const s=e.get(n,mg,i);return s!==mg||r===mg?s:t.get(n,r,i)}}}(e,r.injector):e,s=i.get(Dh,Pe),o=i.get(Hh,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=n?yo(a,n,this.componentDef.encapsulation):ds(s.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),c=this.componentDef.onPush?576:528,d=Na(),h=vo(0,null,null,1,0,null,null,null,null,null),p=io(null,h,d,c,null,null,s,a,o,i);let f,g;wt(p);try{const e=Ma(u,this.componentDef,p,s,a);if(u)if(n)Bt(a,u,["ng-version",qh.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let r=1,i=2;for(;r0&&As(a,u,t.join(" "))}if(g=De(h,20),void 0!==t){const e=g.projection=[];for(let n=0;ne()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}function Ig(e,t,n,r){return V(()=>{const i=e;null!==t&&(i.hasOwnProperty("decorators")&&void 0!==i.decorators?i.decorators.push(...t):i.decorators=t),null!==n&&(i.ctorParameters=n),null!==r&&(i.propDecorators=i.hasOwnProperty("propDecorators")&&void 0!==i.propDecorators?Object.assign(Object.assign({},i.propDecorators),r):r)})}const kg=new Map;function Tg(e,t){const n=kg.get(e);jg(e,n&&n.moduleType,t.moduleType),kg.set(e,t)}function jg(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${c(t)} vs ${c(t.name)}`)}function Vg(e){const t=new Set;!function e(n){const r=de(n,!0),i=r.id;null!==i&&(jg(i,kg.get(i),n),kg.set(i,n));const s=Yi(r.imports);for(const o of s)t.has(o)||(t.add(o),e(o))}(e)}function Pg(e){return kg.get(e)||ne[e]}class Mg extends _p{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new xg(this);const n=de(e),r=e[K]||null;r&&gd(r),this._bootstrapComponents=Yi(n.bootstrap),this._r3Injector=la(e,t,[{provide:_p,useValue:this},{provide:Ih,useValue:this.componentFactoryResolver}],c(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=va.THROW_IF_NOT_FOUND,n=O.Default){return e===va||e===_p||e===Jo?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Ag extends wp{constructor(e){super(),this.moduleType=e,null!==de(e)&&Vg(e)}create(e){return new Mg(this.moduleType,e)}}function Ng(e,t,n){const r=lt()+e,i=Xe();return i[r]===Gs?el(i,r,n?t.call(n):t()):tl(i,r)}function Dg(e,t,n,r){return Gg(Xe(),lt(),e,t,n,r)}function Rg(e,t,n,r,i){return Kg(Xe(),lt(),e,t,n,r,i)}function Fg(e,t,n,r,i,s){return Qg(Xe(),lt(),e,t,n,r,i,s)}function Lg(e,t,n,r,i,s,o){return Zg(Xe(),lt(),e,t,n,r,i,s,o)}function Bg(e,t,n,r,i,s,o,a){const l=lt()+e,u=Xe(),c=sl(u,l,n,r,i,s);return nl(u,l+4,o)||c?el(u,l+5,a?t.call(a,n,r,i,s,o):t(n,r,i,s,o)):tl(u,l+5)}function Hg(e,t,n,r,i,s,o,a,l){const u=lt()+e,c=Xe(),d=sl(c,u,n,r,i,s);return rl(c,u+4,o,a)||d?el(c,u+6,l?t.call(l,n,r,i,s,o,a):t(n,r,i,s,o,a)):tl(c,u+6)}function Ug(e,t,n,r,i,s,o,a,l,u){const c=lt()+e,d=Xe();let h=sl(d,c,n,r,i,s);return il(d,c+4,o,a,l)||h?el(d,c+7,u?t.call(u,n,r,i,s,o,a,l):t(n,r,i,s,o,a,l)):tl(d,c+7)}function qg(e,t,n,r,i,s,o,a,l,u,c){const d=lt()+e,h=Xe(),p=sl(h,d,n,r,i,s);return sl(h,d+4,o,a,l,u)||p?el(h,d+8,c?t.call(c,n,r,i,s,o,a,l,u):t(n,r,i,s,o,a,l,u)):tl(h,d+8)}function Wg(e,t,n,r){return Xg(Xe(),lt(),e,t,n,r)}function zg(e,t){const n=e[t];return n===Gs?void 0:n}function Gg(e,t,n,r,i,s){const o=t+n;return nl(e,o,i)?el(e,o+1,s?r.call(s,i):r(i)):zg(e,o+1)}function Kg(e,t,n,r,i,s,o){const a=t+n;return rl(e,a,i,s)?el(e,a+2,o?r.call(o,i,s):r(i,s)):zg(e,a+2)}function Qg(e,t,n,r,i,s,o,a){const l=t+n;return il(e,l,i,s,o)?el(e,l+3,a?r.call(a,i,s,o):r(i,s,o)):zg(e,l+3)}function Zg(e,t,n,r,i,s,o,a,l){const u=t+n;return sl(e,u,i,s,o,a)?el(e,u+4,l?r.call(l,i,s,o,a):r(i,s,o,a)):zg(e,u+4)}function Xg(e,t,n,r,i,s){let o=t+n,a=!1;for(let l=0;l=0;n--){const r=t[n];if(e===r.name)return r}throw new be("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const s=r.factory||(r.factory=ye(r.type)),o=T(su);try{const e=Zt(!1),t=s();return Zt(e),El(n,Xe(),i,t),t}finally{T(o)}}function Jg(e,t,n){const r=e+20,i=Xe(),s=Re(i,r);return sm(i,im(i,r)?Gg(i,lt(),t,s.transform,n,s):s.transform(n))}function em(e,t,n,r){const i=e+20,s=Xe(),o=Re(s,i);return sm(s,im(s,i)?Kg(s,lt(),t,o.transform,n,r,o):o.transform(n,r))}function tm(e,t,n,r,i){const s=e+20,o=Xe(),a=Re(o,s);return sm(o,im(o,s)?Qg(o,lt(),t,a.transform,n,r,i,a):a.transform(n,r,i))}function nm(e,t,n,r,i,s){const o=e+20,a=Xe(),l=Re(a,o);return sm(a,im(a,o)?Zg(a,lt(),t,l.transform,n,r,i,s,l):l.transform(n,r,i,s))}function rm(e,t,n){const r=e+20,i=Xe(),s=Re(i,r);return sm(i,im(i,r)?Xg(i,lt(),t,s.transform,n,s):s.transform.apply(s,n))}function im(e,t){return e[1].data[t].pure}function sm(e,t){return Xa.isWrapped(t)&&(t=Xa.unwrap(t),e[ut()]=Gs),t}const om=class extends r.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,o=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(r,s,o);return e instanceof i.a&&e.add(a),a}};function am(){return this._results[Qa()]()}class lm{constructor(){this.dirty=!0,this._results=[],this.changes=new om,this.length=0;const e=Qa(),t=lm.prototype;t[e]||(t[e]=am)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=Fn(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class um{constructor(e){this.queryList=e,this.matches=null}clone(){return new um(this.queryList)}setDirty(){this.queryList.setDirty()}}class cm{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let e=0;e0)r.push(o[e/2]);else{const i=s[e+1],o=t[-n];for(let e=10;e({\u0275\u0275attribute:ol,\u0275\u0275attributeInterpolate1:ml,\u0275\u0275attributeInterpolate2:vl,\u0275\u0275attributeInterpolate3:yl,\u0275\u0275attributeInterpolate4:bl,\u0275\u0275attributeInterpolate5:_l,\u0275\u0275attributeInterpolate6:wl,\u0275\u0275attributeInterpolate7:Cl,\u0275\u0275attributeInterpolate8:xl,\u0275\u0275attributeInterpolateV:$l,\u0275\u0275defineComponent:Y,\u0275\u0275defineDirective:oe,\u0275\u0275defineInjectable:v,\u0275\u0275defineInjector:b,\u0275\u0275defineNgModule:re,\u0275\u0275definePipe:ae,\u0275\u0275directiveInject:su,\u0275\u0275getFactoryOf:mn,\u0275\u0275getInheritedFactory:vn,\u0275\u0275inject:Cr,\u0275\u0275injectAttribute:yn,\u0275\u0275invalidFactory:ou,\u0275\u0275invalidFactoryDep:xr,\u0275\u0275injectPipeChangeDetectorRef:Tm,\u0275\u0275templateRefExtractor:km,\u0275\u0275NgOnChangesFeature:$e,\u0275\u0275ProvidersFeature:Ch,\u0275\u0275CopyDefinitionFeature:Ga,\u0275\u0275InheritDefinitionFeature:La,\u0275\u0275nextContext:xu,\u0275\u0275namespaceHTML:Pt,\u0275\u0275namespaceMathML:Vt,\u0275\u0275namespaceSVG:jt,\u0275\u0275enableBindings:Qe,\u0275\u0275disableBindings:Ze,\u0275\u0275elementStart:uu,\u0275\u0275elementEnd:cu,\u0275\u0275element:du,\u0275\u0275elementContainerStart:hu,\u0275\u0275elementContainerEnd:pu,\u0275\u0275elementContainer:fu,\u0275\u0275pureFunction0:Ng,\u0275\u0275pureFunction1:Dg,\u0275\u0275pureFunction2:Rg,\u0275\u0275pureFunction3:Fg,\u0275\u0275pureFunction4:Lg,\u0275\u0275pureFunction5:Bg,\u0275\u0275pureFunction6:Hg,\u0275\u0275pureFunction7:Ug,\u0275\u0275pureFunction8:qg,\u0275\u0275pureFunctionV:Wg,\u0275\u0275getCurrentView:gu,\u0275\u0275restoreView:Je,\u0275\u0275listener:yu,\u0275\u0275projection:Eu,\u0275\u0275syntheticHostProperty:Xc,\u0275\u0275syntheticHostListener:bu,\u0275\u0275pipeBind1:Jg,\u0275\u0275pipeBind2:em,\u0275\u0275pipeBind3:tm,\u0275\u0275pipeBind4:nm,\u0275\u0275pipeBindV:rm,\u0275\u0275projectionDef:Su,\u0275\u0275hostProperty:Zc,\u0275\u0275property:au,\u0275\u0275propertyInterpolate:Ou,\u0275\u0275propertyInterpolate1:Iu,\u0275\u0275propertyInterpolate2:ku,\u0275\u0275propertyInterpolate3:Tu,\u0275\u0275propertyInterpolate4:ju,\u0275\u0275propertyInterpolate5:Vu,\u0275\u0275propertyInterpolate6:Pu,\u0275\u0275propertyInterpolate7:Mu,\u0275\u0275propertyInterpolate8:Au,\u0275\u0275propertyInterpolateV:Nu,\u0275\u0275pipe:Yg,\u0275\u0275queryRefresh:ym,\u0275\u0275viewQuery:_m,\u0275\u0275staticViewQuery:bm,\u0275\u0275staticContentQuery:xm,\u0275\u0275loadQuery:Sm,\u0275\u0275contentQuery:Cm,\u0275\u0275reference:Ol,\u0275\u0275classMap:Ju,\u0275\u0275classMapInterpolate1:xc,\u0275\u0275classMapInterpolate2:$c,\u0275\u0275classMapInterpolate3:Sc,\u0275\u0275classMapInterpolate4:Ec,\u0275\u0275classMapInterpolate5:Oc,\u0275\u0275classMapInterpolate6:Ic,\u0275\u0275classMapInterpolate7:kc,\u0275\u0275classMapInterpolate8:Tc,\u0275\u0275classMapInterpolateV:jc,\u0275\u0275styleMap:Xu,\u0275\u0275styleMapInterpolate1:Vc,\u0275\u0275styleMapInterpolate2:Pc,\u0275\u0275styleMapInterpolate3:Mc,\u0275\u0275styleMapInterpolate4:Ac,\u0275\u0275styleMapInterpolate5:Nc,\u0275\u0275styleMapInterpolate6:Dc,\u0275\u0275styleMapInterpolate7:Rc,\u0275\u0275styleMapInterpolate8:Fc,\u0275\u0275styleMapInterpolateV:Lc,\u0275\u0275styleProp:Qu,\u0275\u0275stylePropInterpolate1:Bc,\u0275\u0275stylePropInterpolate2:Hc,\u0275\u0275stylePropInterpolate3:Uc,\u0275\u0275stylePropInterpolate4:qc,\u0275\u0275stylePropInterpolate5:Wc,\u0275\u0275stylePropInterpolate6:zc,\u0275\u0275stylePropInterpolate7:Gc,\u0275\u0275stylePropInterpolate8:Kc,\u0275\u0275stylePropInterpolateV:Qc,\u0275\u0275classProp:Zu,\u0275\u0275advance:Ks,\u0275\u0275template:Sl,\u0275\u0275text:hc,\u0275\u0275textInterpolate:pc,\u0275\u0275textInterpolate1:fc,\u0275\u0275textInterpolate2:gc,\u0275\u0275textInterpolate3:mc,\u0275\u0275textInterpolate4:vc,\u0275\u0275textInterpolate5:yc,\u0275\u0275textInterpolate6:bc,\u0275\u0275textInterpolate7:_c,\u0275\u0275textInterpolate8:wc,\u0275\u0275textInterpolateV:Cc,\u0275\u0275i18n:ch,\u0275\u0275i18nAttributes:dh,\u0275\u0275i18nExp:hh,\u0275\u0275i18nStart:lh,\u0275\u0275i18nEnd:uh,\u0275\u0275i18nApply:ph,\u0275\u0275i18nPostprocess:fh,\u0275\u0275resolveWindow:Qi,\u0275\u0275resolveDocument:Zi,\u0275\u0275resolveBody:Xi,\u0275\u0275setComponentScope:J,\u0275\u0275setNgModuleScope:ie,\u0275\u0275sanitizeHtml:wi,\u0275\u0275sanitizeStyle:Ci,\u0275\u0275sanitizeResourceUrl:$i,\u0275\u0275sanitizeScript:Si,\u0275\u0275sanitizeUrl:xi,\u0275\u0275sanitizeUrlOrResourceUrl:Ti,\u0275\u0275trustConstantHtml:Ei,\u0275\u0275trustConstantScript:Oi,\u0275\u0275trustConstantResourceUrl:Ii}))();let Vm=null;function Pm(){Vm=null}const Mm=[],Am=[];let Nm=!1;function Dm(){if(!Nm){Nm=!0;try{for(let e=Am.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=Am[e];n.declarations&&n.declarations.every(Rm)&&(Am.splice(e,1),qm(t,n))}}finally{Nm=!1}}}function Rm(e){return Array.isArray(e)?e.every(Rm):!!f(e)}function Fm(e,t={}){Lm(e,t),function(e,t){Am.push({moduleType:e,ngModule:t})}(e,t)}function Lm(e,t,n=!1){const r=Fn(t.declarations||Mm);let i=null;Object.defineProperty(e,G,{configurable:!0,get:()=>(null===i&&(i=Nn().compileNgModule(jm,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:Fn(t.bootstrap||Mm).map(f),declarations:r.map(f),imports:Fn(t.imports||Mm).map(f).map(Gm),exports:Fn(t.exports||Mm).map(f).map(Gm),schemas:t.schemas?Fn(t.schemas):null,id:t.id||null}),i.schemas||(i.schemas=[])),i)});let s=null;Object.defineProperty(e,$,{get:()=>{if(null===s){const n={name:e.name,type:e,deps:lr(e),providers:t.providers||Mm,imports:[(t.imports||Mm).map(f),(t.exports||Mm).map(f)]};s=Nn().compileInjector(jm,`ng:///${e.name}/\u0275inj.js`,n)}return s},configurable:!1})}let Bm=new Map,Hm=new Map;function Um(){Bm=new Map,Hm=new Map,Am.length=0}function qm(e,t){const n=Fn(t.declarations||Mm),r=zm(e);n.forEach(t=>{t.hasOwnProperty(q)?Wm(le(t),r):t.hasOwnProperty(W)||t.hasOwnProperty(z)||(t.ngSelectorScope=e)})}function Wm(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(e=>e.hasOwnProperty(q)?le(e):ue(e)).filter(e=>!!e),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(e=>ce(e)),e.schemas=t.schemas,e.tView=null}function zm(e){if(!Km(e))throw new Error(e.name+" does not have a module def (\u0275mod property)");const t=de(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Yi(t.imports).forEach(e=>{const t=e;if(!Km(t))throw new Error(`Importing ${t.name} which does not have a \u0275mod property`);const r=zm(t);r.exported.directives.forEach(e=>n.compilation.directives.add(e)),r.exported.pipes.forEach(e=>n.compilation.pipes.add(e))}),Yi(t.declarations).forEach(e=>{ce(e)?n.compilation.pipes.add(e):n.compilation.directives.add(e)}),Yi(t.exports).forEach(e=>{const t=e;if(Km(t)){const e=zm(t);e.exported.directives.forEach(e=>{n.compilation.directives.add(e),n.exported.directives.add(e)}),e.exported.pipes.forEach(e=>{n.compilation.pipes.add(e),n.exported.pipes.add(e)})}else ce(t)?n.exported.pipes.add(t):n.exported.directives.add(t)}),t.transitiveCompileScopes=n,n}function Gm(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function Km(e){return!!de(e)}let Qm=0;function Zm(e,t){let n=null;!function(e,t){pr(t)&&(dr.set(e,t),hr.add(e))}(e,t),Jm(e,t),Object.defineProperty(e,q,{get:()=>{if(null===n){const r=Nn();if(pr(t)){const n=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&n.push(" - templateUrl: "+t.templateUrl),t.styleUrls&&t.styleUrls.length&&n.push(" - styleUrls: "+JSON.stringify(t.styleUrls)),n.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(n.join("\n"))}const i=Vm;let s=t.preserveWhitespaces;void 0===s&&(s=null!==i&&void 0!==i.preserveWhitespaces&&i.preserveWhitespaces);let o=t.encapsulation;void 0===o&&(o=null!==i&&void 0!==i.defaultEncapsulation?i.defaultEncapsulation:N.Emulated);const a=t.templateUrl||`ng:///${e.name}/template.html`,l=Object.assign(Object.assign({},tv(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,a),template:t.template||"",preserveWhitespaces:s,styles:t.styles||U,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:o,interpolation:t.interpolation,viewProviders:t.viewProviders||null});Qm++;try{l.usesInheritance&&nv(e),n=r.compileComponent(jm,a,l)}finally{Qm--}if(0===Qm&&Dm(),void 0!==e.ngSelectorScope){const t=zm(e.ngSelectorScope);Wm(n,t)}}return n},configurable:!1})}function Xm(e,t){let n=null;Jm(e,t||{}),Object.defineProperty(e,W,{get:()=>{if(null===n){const r=Ym(e,t||{});n=Nn().compileDirective(jm,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function Ym(e,t){const n=e&&e.name,r=`ng:///${n}/\u0275dir.js`,i=Nn(),s=tv(e,t);return s.typeSourceSpan=i.createParseSourceSpan("Directive",n,r),s.usesInheritance&&nv(e),{metadata:s,sourceMapUrl:r}}function Jm(e,t){let n=null;Object.defineProperty(e,Q,{get:()=>{if(null===n){const r=Ym(e,t),i=Nn();n=i.compileFactory(jm,`ng:///${e.name}/\u0275fac.js`,Object.assign(Object.assign({},r.metadata),{injectFn:"directiveInject",target:i.R3FactoryTarget.Directive}))}return n},configurable:!1})}function ev(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function tv(e,t){const n=ar(),r=n.ownPropMetadata(e);return{name:e.name,type:e,typeArgumentCount:0,selector:void 0!==t.selector?t.selector:null,deps:lr(e),host:t.host||H,propMetadata:r,inputs:t.inputs||U,outputs:t.outputs||U,queries:iv(e,r,sv),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!ev(e),exportAs:(i=t.exportAs,void 0===i?null:lv(i)),providers:t.providers||null,viewQueries:iv(e,r,ov)};var i}function nv(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)ue(n)||le(n)||!cv(n)||Xm(n,null),n=Object.getPrototypeOf(n)}function rv(e,t){return{propertyName:e,predicate:(n=t.selector,"string"==typeof n?lv(n):f(n)),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static};var n}function iv(e,t,n){const r=[];for(const i in t)if(t.hasOwnProperty(i)){const s=t[i];s.forEach(t=>{if(n(t)){if(!t.selector)throw new Error(`Can't construct a query for the property "${i}" of "${we(e)}" since the query selector wasn't defined.`);if(s.some(av))throw new Error("Cannot combine @Input decorators with query decorators");r.push(rv(i,t))}})}return r}function sv(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function ov(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function av(e){return"Input"===e.ngMetadataName}function lv(e){return e.split(",").map(e=>e.trim())}const uv=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function cv(e){const t=ar();if(uv.some(n=>t.hasLifecycleHook(e,n)))return!0;const n=t.propMetadata(e);for(const r in n){const e=n[r];for(let t=0;t{if(null===r){const n=hv(e,t),i=Nn();r=i.compileFactory(jm,`ng:///${n.name}/\u0275fac.js`,Object.assign(Object.assign({},n),{injectFn:"directiveInject",target:i.R3FactoryTarget.Pipe}))}return r},configurable:!1}),Object.defineProperty(e,z,{get:()=>{if(null===n){const r=hv(e,t);n=Nn().compilePipe(jm,`ng:///${r.name}/\u0275pipe.js`,r)}return n},configurable:!1})}function hv(e,t){return{type:e,typeArgumentCount:0,name:e.name,deps:lr(e),pipeName:t.name,pure:void 0===t.pure||t.pure}}const pv=Cn("Directive",(e={})=>e,void 0,void 0,(e,t)=>$v(e,t)),fv=Cn("Component",(e={})=>Object.assign({changeDetection:P.Default},e),pv,void 0,(e,t)=>xv(e,t)),gv=Cn("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>Sv(e,t)),mv=Sn("Input",e=>({bindingPropertyName:e})),vv=Sn("Output",e=>({bindingPropertyName:e})),yv=Sn("HostBinding",e=>({hostPropertyName:e})),bv=Sn("HostListener",(e,t)=>({eventName:e,args:t})),_v=Zm,wv=Xm,Cv=dv,xv=_v,$v=wv,Sv=Cv,Ev=Cn("NgModule",e=>e,void 0,void 0,(e,t)=>Iv(e,t)),Ov=Fm,Iv=Ov,kv=new In("Application Initializer");let Tv=(()=>{class e{constructor(e){this.appInits=e,this.resolve=jh,this.reject=jh,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(Cr(kv,8))},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();const jv=new In("AppId");function Vv(){return`${Mv()}${Mv()}${Mv()}`}const Pv={provide:jv,useFactory:Vv,deps:[]};function Mv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Av=new In("Platform Initializer"),Nv=new In("Platform ID"),Dv=new In("appBootstrapListener"),Rv=new In("Application Packages Root URL");let Fv=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();const Lv=new In("LocaleId"),Bv=new In("DefaultCurrencyCode"),Hv=new In("Translations"),Uv=new In("TranslationsFormat");var qv=function(e){return e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore",e}({});const Wv=!0,zv=Wv;class Gv{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Kv=function(e){return new Ag(e)},Qv=Kv,Zv=function(e){return Promise.resolve(Kv(e))},Xv=Zv,Yv=function(e){const t=Kv(e),n=Yi(de(e).declarations).reduce((e,t)=>{const n=le(t);return n&&e.push(new Eg(n)),e},[]);return new Gv(t,n)},Jv=Yv,ey=function(e){return Promise.resolve(Yv(e))},ty=ey;let ny=(()=>{class e{constructor(){this.compileModuleSync=Qv,this.compileModuleAsync=Xv,this.compileModuleAndAllComponentsSync=Jv,this.compileModuleAndAllComponentsAsync=ty}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();const ry=new In("compilerOptions");class iy{}const sy=(()=>Promise.resolve(0))();function oy(e){"undefined"==typeof Zone?sy.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ay{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new om(!1),this.onMicrotaskEmpty=new om(!1),this.onStable=new om(!1),this.onError=new om(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=t,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=B.requestAnimationFrame,t=B.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(B,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,cy(e),uy(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),cy(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,r,i,s,o,a)=>{try{return dy(e),n.invokeTask(i,s,o,a)}finally{t&&"eventTask"===s.type&&t(),hy(e)}},onInvoke:(t,n,r,i,s,o,a)=>{try{return dy(e),t.invoke(r,i,s,o,a)}finally{hy(e)}},onHasTask:(t,n,r,i)=>{t.hasTask(r,i),n===r&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,cy(e),uy(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,r,i)=>(t.handleError(r,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ay.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ay.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+r,e,ly,jh,jh);try{return i.runTask(s,t,n)}finally{i.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const ly={};function uy(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 cy(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function dy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function hy(e){e._nesting--,uy(e)}class py{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new om,this.onMicrotaskEmpty=new om,this.onStable=new om,this.onError=new om}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)}}let fy=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ay.assertNotInAngularZone(),oy(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())oy(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(Cr(ay))},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})(),gy=(()=>{class e{constructor(){this._applications=new Map,by.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return by.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();class my{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function vy(e){by=e}let yy,by=new my,_y=wy;function wy(e,t,n){const r=new Ag(n);return Promise.resolve(r)}let Cy=xy;function xy(e){return e.isBoundToModule}const $y=new In("AllowMultipleToken");class Sy{constructor(e,t){this.name=e,this.token=t}}function Ey(e){if(yy&&!yy.destroyed&&!yy.injector.get($y,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");yy=e.get(jy);const t=e.get(Av,null);return t&&t.forEach(e=>e()),yy}function Oy(e,t,n=[]){const r="Platform: "+t,i=new In(r);return(t=[])=>{let s=Ty();if(!s||s.injector.get($y,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{const e=n.concat(t).concat({provide:i,useValue:!0},{provide:ta,useValue:"platform"});Ey(va.create({providers:e,name:r}))}return Iy(i)}}function Iy(e){const t=Ty();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function ky(){yy&&!yy.destroyed&&yy.destroy()}function Ty(){return yy&&!yy.destroyed?yy:null}let jy=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new py:("zone.js"===e?void 0:e)||new ay({enableLongStackTrace:Gr(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),r=[{provide:ay,useValue:n}];return n.run(()=>{const t=va.create({providers:r,parent:this.injector,name:e.moduleType.name}),i=e.create(t),s=i.injector.get(Ai,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>My(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{s.handleError(e)}})),function(e,t,n){try{const r=n();return mu(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,n,()=>{const e=i.injector.get(Tv);return e.runInitializers(),e.donePromise.then(()=>(zv&&gd(i.injector.get(Lv,ud)||ud),this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,t=[]){const n=Vy({},t);return _y(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Py);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${c(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(Cr(va))},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();function Vy(e,t){return Array.isArray(t)?t.reduce(Vy,e):Object.assign(Object.assign({},e),t)}let Py=(()=>{class e{constructor(e,t,n,r,i,l){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Gr(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const u=new s.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),c=new s.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{ay.assertNotInAngularZone(),oy(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ay.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(u,c.pipe(Object(a.a)()))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof $h?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=Cy(n)?void 0:this._injector.get(_p),i=n.create(va.NULL,[],t||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const s=i.injector.get(fy,null);return s&&i.injector.get(gy).registerApplication(i.location.nativeElement,s),this._loadComponent(i),Gr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;My(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Dv,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),My(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(Cr(ay),Cr(Fv),Cr(va),Cr(Ai),Cr(Ih),Cr(Tv))},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();function My(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ay{}function Ny(e){const t=Pg(e);if(!t)throw Fy(e);return t}function Dy(e){const t=Pg(e);if(!t)throw Fy(e);return new Ag(t)}const Ry=Dy;function Fy(e){return new Error(`No module with ID ${e} loaded`)}class Ly{}const By={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Hy=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||By}load(e){return!zv&&this._compiler instanceof ny?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n("crnd")(t).then(e=>e[r]).then(e=>Uy(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n("crnd")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+i]).then(e=>Uy(e,t,r))}}return e.\u0275fac=function(t){return new(t||e)(Cr(ny),Cr(Ly,8))},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();function Uy(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class qy extends lp{}class Wy extends qy{}class zy{constructor(e,t){this.name=e,this.callback=t}}class Gy{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Ky&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Ky extends Gy{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return Zy(this,e,t),t}queryAllNodes(e){const t=[];return Xy(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof Ky)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}function Qy(e){return e.map(e=>e.nativeElement)}function Zy(e,t,n){e.childNodes.forEach(e=>{e instanceof Ky&&(t(e)&&n.push(e),Zy(e,t,n))})}function Xy(e,t,n){e instanceof Ky&&e.childNodes.forEach(e=>{t(e)&&n.push(e),e instanceof Ky&&Xy(e,t,n)})}class Yy{constructor(e){this.nativeNode=e}get parent(){const e=this.nativeNode.parentNode;return e?new Jy(e):null}get injector(){return Ca(this.nativeNode)}get componentInstance(){const e=this.nativeNode;return e&&(ya(e)||_a(e))}get context(){return ya(this.nativeNode)||ba(this.nativeNode)}get listeners(){return Ea(this.nativeNode).filter(e=>"dom"===e.type)}get references(){return function(e){const t=$a(e,!1);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){const n=e[1].data[t];if(n&&n.localNames){const t={};let r=n.index+1;for(let i=0;i1){let r=o[1];for(let e=1;ee[t]=!0),e}get childNodes(){const e=this.nativeNode.childNodes,t=[];for(let n=0;n{if(i.name===e){const e=i.callback;e.call(n,t),r.push(e)}}),"function"==typeof n.eventListeners&&n.eventListeners(e).forEach(e=>{if(-1!==e.toString().indexOf("__ngUnwrap__")){const i=e("__ngUnwrap__");return-1===r.indexOf(i)&&i.call(n,t)}})}}function eb(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function tb(e,t,n,r){const i=$a(e.nativeNode,!1);null!==i?nb(i.lView[1].data[i.nodeIndex],i.lView,t,n,r,e.nativeNode):sb(e.nativeNode,t,n,r)}function nb(e,t,n,r,i,s){const o=function(e,t){const n=null===e?-1:e.index;return-1!==n?Me(t[n]):null}(e,t);if(11&e.type){if(ib(o,n,r,i,s),ge(e)){const o=Fe(e.index,t);o&&o[1].firstChild&&nb(o[1].firstChild,o,n,r,i,s)}else e.child&&nb(e.child,t,n,r,i,s),o&&sb(o,n,r,i);const a=t[e.index];pe(a)&&rb(a,n,r,i,s)}else if(4&e.type){const o=t[e.index];ib(o[7],n,r,i,s),rb(o,n,r,i,s)}else if(16&e.type){const o=t[16],a=o[6].projection[e.projection];if(Array.isArray(a))for(let e of a)ib(e,n,r,i,s);else if(a){const e=o[3];nb(e[1].data[a.index],e,n,r,i,s)}}else e.child&&nb(e.child,t,n,r,i,s);if(s!==o){const o=4&e.flags?e.projectionNext:e.next;o&&nb(o,t,n,r,i,s)}}function rb(e,t,n,r,i){for(let s=10;s{for(;t.length;)t.pop()()}),function(e){t.push(e)}}let wb=(()=>{class e{constructor(e){}}return e.\u0275mod=re({type:e}),e.\u0275inj=b({factory:function(t){return new(t||e)(Cr(Py))},providers:bb}),e})();function Cb(e,t,n,r,i,s){e|=1;const{matchedQueries:o,references:a,matchedQueryIds:l}=lf(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:l,references:a,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:s?hf(s):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Up},provider:null,text:null,query:null,ngContent:null}}function xb(e,t,n,r,i,s,o=[],a,l,u,c,d){u||(u=Up);const{matchedQueries:h,references:p,matchedQueryIds:f}=lf(n);let g=null,m=null;s&&([g,m]=bf(s)),a=a||[];const v=[];for(let _=0;_{const[n,r]=bf(e);return[n,r,t]});return d=function(e){if(e&&"$$undefined"===e.id){const t=null!=e.encapsulation&&e.encapsulation!==N.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+Kp++:"$$empty"}return e&&"$$empty"===e.id&&(e=null),e||null}(d),c&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:f,references:p,ngContentIndex:r,childCount:i,bindings:v,bindingFlags:_f(v),outputs:y,element:{ns:g,name:m,attrs:b,template:null,componentProvider:null,componentView:c||null,componentRendererType:d,publicProviders:null,allProviders:null,handleEvent:u||Up},provider:null,text:null,query:null,ngContent:null}}function $b(e,t,n){const r=n.element,i=e.root.selectorOrNode,s=e.renderer;let o;if(e.parent||!i){o=r.name?s.createElement(r.name,r.ns):s.createComment("");const i=cf(e,t,n);i&&s.appendChild(i,o)}else o=s.selectRootElement(i,!!r.componentRendererType&&r.componentRendererType.encapsulation===N.ShadowDom);if(r.attrs)for(let a=0;aef(e,t,n,r)}function Ob(e,t,n,r){if(!Zp(e,t,n,r))return!1;const i=t.bindings[n],s=Dp(e,t.nodeIndex),o=s.renderElement,a=i.name;switch(15&i.flags){case 1:!function(e,t,n,r,i,s){const o=t.securityContext;let a=o?e.root.sanitizer.sanitize(o,s):s;a=null!=a?a.toString():null;const l=e.renderer;null!=s?l.setAttribute(n,i,a,r):l.removeAttribute(n,i,r)}(e,i,o,i.ns,a,r);break;case 2:!function(e,t,n,r){const i=e.renderer;r?i.addClass(t,n):i.removeClass(t,n)}(e,o,a,r);break;case 4:!function(e,t,n,r,i){let s=e.root.sanitizer.sanitize(_i.STYLE,i);if(null!=s){s=s.toString();const e=t.suffix;null!=e&&(s+=e)}else s=null;const o=e.renderer;null!=s?o.setStyle(n,r,s):o.removeStyle(n,r)}(e,i,o,a,r);break;case 8:!function(e,t,n,r,i){const s=t.securityContext;let o=s?e.root.sanitizer.sanitize(s,i):i;e.renderer.setProperty(n,r,o)}(33554432&t.flags&&32&i.flags?s.componentView:e,i,o,a,r)}return!0}function Ib(e,t,n){let r=[];for(let i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:af(t),bindings:r},ngContent:null}}function kb(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&of(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let i=0;i<=r;i++){const r=e.def.nodes[i];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&Lp(e,i).setDirty(),!(1&r.flags&&i+r.childCount0)u=e,Ub(e)||(c=e);else for(;u&&f===u.nodeIndex+u.childCount;){const e=u.parent;e&&(e.childFlags|=u.childFlags,e.childMatchedQueries|=u.childMatchedQueries),u=e,c=u&&Ub(u)?u.renderParent:u}}return{factory:null,nodeFlags:o,rootNodeFlags:a,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||Up,updateRenderer:r||Up,handleEvent:(e,n,r,i)=>t[n].element.handleEvent(e,r,i),bindingCount:i,outputCount:s,lastRenderRootNode:p}}function Ub(e){return 0!=(1&e.flags)&&null===e.element.name}function qb(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function Wb(e,t,n,r){const i=Kb(e.root,e.renderer,e,t,n);return Qb(i,e.component,r),Zb(i),i}function zb(e,t,n){const r=Kb(e,e.renderer,null,null,t);return Qb(r,n,n),Zb(r),r}function Gb(e,t,n,r){const i=t.element.componentRendererType;let s;return s=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,Kb(e.root,s,e,t.element.componentProvider,n)}function Kb(e,t,n,r,i){const s=new Array(i.nodes.length),o=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:s,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:o,initIndex:-1}}function Qb(e,t,n){e.component=t,e.context=n}function Zb(e){let t;sf(e)&&(t=Dp(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let i=0;i0&&Ob(e,t,0,n)&&(p=!0),h>1&&Ob(e,t,1,r)&&(p=!0),h>2&&Ob(e,t,2,i)&&(p=!0),h>3&&Ob(e,t,3,s)&&(p=!0),h>4&&Ob(e,t,4,o)&&(p=!0),h>5&&Ob(e,t,5,a)&&(p=!0),h>6&&Ob(e,t,6,l)&&(p=!0),h>7&&Ob(e,t,7,u)&&(p=!0),h>8&&Ob(e,t,8,c)&&(p=!0),h>9&&Ob(e,t,9,d)&&(p=!0),p}(e,t,n,r,i,s,o,a,l,u,c,d);case 2:return function(e,t,n,r,i,s,o,a,l,u,c,d){let h=!1;const p=t.bindings,f=p.length;if(f>0&&Zp(e,t,0,n)&&(h=!0),f>1&&Zp(e,t,1,r)&&(h=!0),f>2&&Zp(e,t,2,i)&&(h=!0),f>3&&Zp(e,t,3,s)&&(h=!0),f>4&&Zp(e,t,4,o)&&(h=!0),f>5&&Zp(e,t,5,a)&&(h=!0),f>6&&Zp(e,t,6,l)&&(h=!0),f>7&&Zp(e,t,7,u)&&(h=!0),f>8&&Zp(e,t,8,c)&&(h=!0),f>9&&Zp(e,t,9,d)&&(h=!0),h){let h=t.text.prefix;f>0&&(h+=Bb(n,p[0])),f>1&&(h+=Bb(r,p[1])),f>2&&(h+=Bb(i,p[2])),f>3&&(h+=Bb(s,p[3])),f>4&&(h+=Bb(o,p[4])),f>5&&(h+=Bb(a,p[5])),f>6&&(h+=Bb(l,p[6])),f>7&&(h+=Bb(u,p[7])),f>8&&(h+=Bb(c,p[8])),f>9&&(h+=Bb(d,p[9]));const g=Np(e,t.nodeIndex).renderText;e.renderer.setValue(g,h)}return h}(e,t,n,r,i,s,o,a,l,u,c,d);case 16384:return function(e,t,n,r,i,s,o,a,l,u,c,d){const h=Rp(e,t.nodeIndex),p=h.instance;let f=!1,g=void 0;const m=t.bindings.length;return m>0&&Qp(e,t,0,n)&&(f=!0,g=bg(e,h,t,0,n,g)),m>1&&Qp(e,t,1,r)&&(f=!0,g=bg(e,h,t,1,r,g)),m>2&&Qp(e,t,2,i)&&(f=!0,g=bg(e,h,t,2,i,g)),m>3&&Qp(e,t,3,s)&&(f=!0,g=bg(e,h,t,3,s,g)),m>4&&Qp(e,t,4,o)&&(f=!0,g=bg(e,h,t,4,o,g)),m>5&&Qp(e,t,5,a)&&(f=!0,g=bg(e,h,t,5,a,g)),m>6&&Qp(e,t,6,l)&&(f=!0,g=bg(e,h,t,6,l,g)),m>7&&Qp(e,t,7,u)&&(f=!0,g=bg(e,h,t,7,u,g)),m>8&&Qp(e,t,8,c)&&(f=!0,g=bg(e,h,t,8,c,g)),m>9&&Qp(e,t,9,d)&&(f=!0,g=bg(e,h,t,9,d,g)),g&&p.ngOnChanges(g),65536&t.flags&&Ap(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),f}(e,t,n,r,i,s,o,a,l,u,c,d);case 32:case 64:case 128:return function(e,t,n,r,i,s,o,a,l,u,c,d){const h=t.bindings;let p=!1;const f=h.length;if(f>0&&Zp(e,t,0,n)&&(p=!0),f>1&&Zp(e,t,1,r)&&(p=!0),f>2&&Zp(e,t,2,i)&&(p=!0),f>3&&Zp(e,t,3,s)&&(p=!0),f>4&&Zp(e,t,4,o)&&(p=!0),f>5&&Zp(e,t,5,a)&&(p=!0),f>6&&Zp(e,t,6,l)&&(p=!0),f>7&&Zp(e,t,7,u)&&(p=!0),f>8&&Zp(e,t,8,c)&&(p=!0),f>9&&Zp(e,t,9,d)&&(p=!0),p){const p=Fp(e,t.nodeIndex);let g;switch(201347067&t.flags){case 32:g=[],f>0&&g.push(n),f>1&&g.push(r),f>2&&g.push(i),f>3&&g.push(s),f>4&&g.push(o),f>5&&g.push(a),f>6&&g.push(l),f>7&&g.push(u),f>8&&g.push(c),f>9&&g.push(d);break;case 64:g={},f>0&&(g[h[0].name]=n),f>1&&(g[h[1].name]=r),f>2&&(g[h[2].name]=i),f>3&&(g[h[3].name]=s),f>4&&(g[h[4].name]=o),f>5&&(g[h[5].name]=a),f>6&&(g[h[6].name]=l),f>7&&(g[h[7].name]=u),f>8&&(g[h[8].name]=c),f>9&&(g[h[9].name]=d);break;case 128:const e=n;switch(f){case 1:g=e.transform(n);break;case 2:g=e.transform(r);break;case 3:g=e.transform(r,i);break;case 4:g=e.transform(r,i,s);break;case 5:g=e.transform(r,i,s,o);break;case 6:g=e.transform(r,i,s,o,a);break;case 7:g=e.transform(r,i,s,o,a,l);break;case 8:g=e.transform(r,i,s,o,a,l,u);break;case 9:g=e.transform(r,i,s,o,a,l,u,c);break;case 10:g=e.transform(r,i,s,o,a,l,u,c,d)}}p.value=g}return p}(e,t,n,r,i,s,o,a,l,u,c,d);default:throw"unreachable"}}(e,t,r,i,s,o,a,l,u,c,d,h):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let i=0;i0&&Xp(e,t,0,n),h>1&&Xp(e,t,1,r),h>2&&Xp(e,t,2,i),h>3&&Xp(e,t,3,s),h>4&&Xp(e,t,4,o),h>5&&Xp(e,t,5,a),h>6&&Xp(e,t,6,l),h>7&&Xp(e,t,7,u),h>8&&Xp(e,t,8,c),h>9&&Xp(e,t,9,d)}(e,t,r,i,s,o,a,l,u,c,d,h):function(e,t,n){for(let r=0;rnew H_(e,t),handleEvent:A_,updateDirectives:N_,updateRenderer:D_}:{setCurrentNode:()=>{},createRootView:h_,createEmbeddedView:Wb,createComponentView:Gb,createNgModuleRef:Xf,overrideProvider:Up,overrideComponentView:Up,clearOverrides:Up,checkAndUpdateView:Yb,checkNoChangesView:Xb,destroyView:r_,createDebugContext:(e,t)=>new H_(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?S_:E_,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?S_:E_,e)};Hp.setCurrentNode=e.setCurrentNode,Hp.createRootView=e.createRootView,Hp.createEmbeddedView=e.createEmbeddedView,Hp.createComponentView=e.createComponentView,Hp.createNgModuleRef=e.createNgModuleRef,Hp.overrideProvider=e.overrideProvider,Hp.overrideComponentView=e.overrideComponentView,Hp.clearOverrides=e.clearOverrides,Hp.checkAndUpdateView=e.checkAndUpdateView,Hp.checkNoChangesView=e.checkNoChangesView,Hp.destroyView=e.destroyView,Hp.resolveDep=vg,Hp.createDebugContext=e.createDebugContext,Hp.handleEvent=e.handleEvent,Hp.updateDirectives=e.updateDirectives,Hp.updateRenderer=e.updateRenderer,Hp.dirtyParentQueries=kb}function h_(e,t,n,r,i,s){const o=i.injector.get(Dh);return zb(f_(e,i,o,t,n),r,s)}function p_(e,t,n,r,i,s){const o=i.injector.get(Dh),a=f_(e,i,new z_(o),t,n),l=$_(r);return q_(T_.create,zb,null,[a,l,s])}function f_(e,t,n,r,i){const s=t.injector.get(Hh),o=t.injector.get(Ai),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:i,sanitizer:s,rendererFactory:n,renderer:a,errorHandler:o}}function g_(e,t,n,r){const i=$_(n);return q_(T_.create,Wb,null,[e,t,i,r])}function m_(e,t,n,r){return n=__.get(t.element.componentProvider.provider.token)||$_(n),q_(T_.create,Gb,null,[e,t,n,r])}function v_(e,t,n,r){return Xf(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===y_.size||(e.providers.forEach(e=>{const r=y_.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{b_.forEach((r,i)=>{_(i).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})})),{hasOverrides:t,hasDeprecatedOverrides:n}}(e);return t?(function(e){for(let t=0;t0){let t=new Set(e.modules);b_.forEach((r,i)=>{if(t.has(_(i).providedIn)){let t={token:i,flags:r.flags|(n?4096:0),deps:uf(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Wp(i)]=t}})}}(e=e.factory(()=>Up)),e):e}(r))}const y_=new Map,b_=new Map,__=new Map;function w_(e){let t;y_.set(e.token,e),"function"==typeof e.token&&(t=_(e.token))&&"function"==typeof t.providedIn&&b_.set(e.token,e)}function C_(e,t){const n=hf(Ff(t)),r=hf(n.nodes[0].element.componentView);__.set(e,r)}function x_(){y_.clear(),b_.clear(),__.clear()}function $_(e){if(0===y_.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;rUp);for(let r=0;r"-"+e[1].toLowerCase()))]=Fi(o))}const r=t.parent,o=Dp(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(o,t,r):e.renderer.removeAttribute(o,t)}else e.renderer.setValue(o,"bindings="+JSON.stringify(n,null,2))}}var i}function F_(e,t,n,r){t_(e,t,n,...r)}function L_(e,t){for(let n=t;n(s++,s===i?e.error.bind(e,...t):Up)),sl;)r.f(e,n=o[l++],t[n]);return e}},g3Qq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("fElF")},gRHU:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("2fFW"),i=n("NJ4a");const s={closed:!0,next(e){},error(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete(){}}},gvyg:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPresent=function(e){return null!=e},t.isDate=function(e){return!/Invalid|NaN/.test(new Date(e).toString())}},hDam:function(e,t){e.exports=function(){}},hGZq:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("uY1Z")),r(n("fWoD"))},hQsY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.base64=function(e){return i.isPresent(r.Validators.required(e))||/^(?:[A-Z0-9+\/]{4})*(?:[A-Z0-9+\/]{2}==|[A-Z0-9+\/]{3}=|[A-Z0-9+\/]{4})$/i.test(e.value)?null:{base64:!0}}},"haF/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("jhFA"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.equal(this.equal)},e.prototype.ngOnChanges=function(e){for(var t in e)"equal"===t&&(this.validator=s.equal(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={equal:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","equal","","formControlName",""],["","equal","","formControl",""],["","equal","","ngModel",""]],inputs:{equal:"equal"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.EqualValidator=l},hen0:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("fjK8")),r(n("y9jv"))},iCc5:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},itXk:function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return c});var r=n("z+Ro"),i=n("DH7j"),s=n("l7GE"),o=n("ZUHj"),a=n("yCtX");const l={};function u(...e){let t=void 0,n=void 0;return Object(r.a)(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(i.a)(e[0])&&(e=e[0]),Object(a.a)(e,n).lift(new c(t))}class c{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new d(e,this.resultSelector))}}class d extends s.a{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(l),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n{const r=new i.a;let s=0;return r.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},jhFA:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("haF/")),r(n("1gPL"))},jmDH:function(e,t,n){e.exports=!n("KUxP")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},jn5B:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("fXoL");var r=n("8f/L"),i=n("+WPs"),s=n("hen0"),o=n("6Axs"),a=n("Zb1L"),l=n("rPcQ"),u=n("jhFA"),c=n("O0EG"),d=n("qmJw"),h=n("/ysC"),p=n("kcx3"),f=n("or8y"),g=n("hGZq"),m=n("T5KR"),v=n("oRo7"),y=n("cN+o"),b=n("nKcR"),_=n("YLEk"),w=n("R4Bc"),C=n("+UwR"),x=n("9uV+"),$=n("afP1"),S=n("r7id"),E=n("W/SZ"),O=n("8IPW");t.CustomValidators={base64:r.base64,creditCard:i.creditCard,date:s.date,dateISO:o.dateISO,digits:a.digits,email:l.email,equal:u.equal,equalTo:c.equalTo,gt:d.gt,gte:h.gte,json:p.json,lt:f.lt,lte:g.lte,max:m.max,maxDate:v.maxDate,min:y.min,minDate:b.minDate,notEqual:_.notEqual,notEqualTo:w.notEqualTo,number:C.number,phone:x.phone,range:$.range,rangeLength:S.rangeLength,url:E.url,uuid:O.uuid};var I=n("fXoL"),k=n("yAwA"),T=n("RY4u"),j=n("fjK8"),V=n("35yN"),P=n("XQZo"),M=n("olS2"),A=n("haF/"),N=n("k7/t"),D=n("wCLq"),R=n("S5Je"),F=n("Laqt"),L=n("NwFL"),B=n("uY1Z"),H=n("4hzb"),U=n("D5k+"),q=n("Cjah"),W=n("Kucq"),z=n("JIED"),G=n("qLGE"),K=n("GkNK"),Q=n("wdEZ"),Z=n("WQkh"),X=n("wXh8"),Y=n("QgIP"),J=n("IVVY");t.CustomFormsModule=function(){function e(){}return e.\u0275mod=I.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=I.\u0275\u0275defineInjector({factory:function(t){return new(t||e)}}),e}(),t.Base64Validator=k.Base64Validator,t.CreditCardValidator=T.CreditCardValidator,t.DateValidator=j.DateValidator,t.DateISOValidator=V.DateISOValidator,t.DigitsValidator=P.DigitsValidator,t.EmailValidator=M.EmailValidator,t.EqualValidator=A.EqualValidator,t.EqualToValidator=N.EqualToValidator,t.GreaterThanValidator=D.GreaterThanValidator,t.GreaterThanEqualValidator=R.GreaterThanEqualValidator,t.JSONValidator=F.JSONValidator,t.LessThanValidator=L.LessThanValidator,t.LessThanEqualValidator=B.LessThanEqualValidator,t.MaxValidator=H.MaxValidator,t.MaxDateValidator=U.MaxDateValidator,t.MinValidator=q.MinValidator,t.MinDateValidator=W.MinDateValidator,t.NotEqualValidator=z.NotEqualValidator,t.NotEqualToValidator=G.NotEqualToValidator,t.NumberValidator=K.NumberValidator,t.PhoneValidator=Q.PhoneValidator,t.RangeValidator=Z.RangeValidator,t.RangeLengthValidator=X.RangeLengthValidator,t.UrlValidator=Y.UrlValidator,t.UUIDValidator=J.UUIDValidator},jtHE:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("XNiG"),i=n("qgXg"),s=n("quSY"),o=n("pxpQ"),a=n("9ppp"),l=n("Ylt2");class u extends r.a{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new c(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,i=n.length;let u;if(this.closed)throw new a.a;if(this.isStopped||this.hasError?u=s.a.EMPTY:(this.observers.push(e),u=new l.a(this,e)),r&&e.add(e=new o.a(e,r)),t)for(let s=0;st&&(s=Math.max(s,i-t)),s>0&&r.splice(0,s),r}}class c{constructor(e,t){this.time=e,this.value=t}}},"k/8l":function(e,t,n){e.exports={default:n("VKFn"),__esModule:!0}},"k7/t":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("O0EG"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.equalTo(this.equalTo)},e.prototype.validate=function(e){return this.validator(e)},e.propDecorators={equalTo:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","equalTo","","formControlName",""],["","equalTo","","formControl",""],["","equalTo","","ngModel",""]],inputs:{equalTo:"equalTo"},features:[o.\u0275\u0275ProvidersFeature([a])]}),e}();t.EqualToValidator=l},kJWO:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kTiW:function(e,t,n){e.exports=n("NegM")},kU1M:function(e,t,n){"use strict";n.r(t),n.d(t,"audit",function(){return i}),n.d(t,"auditTime",function(){return u}),n.d(t,"buffer",function(){return c}),n.d(t,"bufferCount",function(){return f}),n.d(t,"bufferTime",function(){return b}),n.d(t,"bufferToggle",function(){return k}),n.d(t,"bufferWhen",function(){return V}),n.d(t,"catchError",function(){return A.a}),n.d(t,"combineAll",function(){return N.a}),n.d(t,"combineLatest",function(){return L}),n.d(t,"concat",function(){return H}),n.d(t,"concatAll",function(){return U.a}),n.d(t,"concatMap",function(){return q.a}),n.d(t,"concatMapTo",function(){return W}),n.d(t,"count",function(){return z}),n.d(t,"debounce",function(){return Q}),n.d(t,"debounceTime",function(){return Y}),n.d(t,"defaultIfEmpty",function(){return ne.a}),n.d(t,"delay",function(){return se}),n.d(t,"delayWhen",function(){return ce}),n.d(t,"dematerialize",function(){return ge}),n.d(t,"distinct",function(){return ye}),n.d(t,"distinctUntilChanged",function(){return we}),n.d(t,"distinctUntilKeyChanged",function(){return $e}),n.d(t,"elementAt",function(){return ke}),n.d(t,"endWith",function(){return je}),n.d(t,"every",function(){return Ve}),n.d(t,"exhaust",function(){return Ae}),n.d(t,"exhaustMap",function(){return Fe}),n.d(t,"expand",function(){return He}),n.d(t,"filter",function(){return Ee.a}),n.d(t,"finalize",function(){return We.a}),n.d(t,"find",function(){return ze}),n.d(t,"findIndex",function(){return Qe}),n.d(t,"first",function(){return Ze.a}),n.d(t,"groupBy",function(){return Xe.b}),n.d(t,"ignoreElements",function(){return Ye}),n.d(t,"isEmpty",function(){return tt}),n.d(t,"last",function(){return it.a}),n.d(t,"map",function(){return Re.a}),n.d(t,"mapTo",function(){return st}),n.d(t,"materialize",function(){return lt}),n.d(t,"max",function(){return ht}),n.d(t,"merge",function(){return ft}),n.d(t,"mergeAll",function(){return gt.a}),n.d(t,"mergeMap",function(){return mt.b}),n.d(t,"flatMap",function(){return mt.a}),n.d(t,"mergeMapTo",function(){return vt}),n.d(t,"mergeScan",function(){return yt}),n.d(t,"min",function(){return wt}),n.d(t,"multicast",function(){return Ct.a}),n.d(t,"observeOn",function(){return xt.b}),n.d(t,"onErrorResumeNext",function(){return $t}),n.d(t,"pairwise",function(){return Ot}),n.d(t,"partition",function(){return jt}),n.d(t,"pluck",function(){return Vt}),n.d(t,"publish",function(){return Mt}),n.d(t,"publishBehavior",function(){return Nt}),n.d(t,"publishLast",function(){return Rt}),n.d(t,"publishReplay",function(){return Lt}),n.d(t,"race",function(){return Ht}),n.d(t,"reduce",function(){return dt.a}),n.d(t,"repeat",function(){return qt}),n.d(t,"repeatWhen",function(){return Gt}),n.d(t,"retry",function(){return Zt}),n.d(t,"retryWhen",function(){return Jt}),n.d(t,"refCount",function(){return nn.a}),n.d(t,"sample",function(){return rn}),n.d(t,"sampleTime",function(){return an}),n.d(t,"scan",function(){return dn.a}),n.d(t,"sequenceEqual",function(){return hn}),n.d(t,"share",function(){return mn.a}),n.d(t,"shareReplay",function(){return vn}),n.d(t,"single",function(){return bn}),n.d(t,"skip",function(){return Cn}),n.d(t,"skipLast",function(){return Sn}),n.d(t,"skipUntil",function(){return In}),n.d(t,"skipWhile",function(){return jn}),n.d(t,"startWith",function(){return Mn.a}),n.d(t,"subscribeOn",function(){return Rn}),n.d(t,"switchAll",function(){return Hn}),n.d(t,"switchMap",function(){return Ln.a}),n.d(t,"switchMapTo",function(){return Un}),n.d(t,"take",function(){return Ie.a}),n.d(t,"takeLast",function(){return qn.a}),n.d(t,"takeUntil",function(){return Wn}),n.d(t,"takeWhile",function(){return Kn}),n.d(t,"tap",function(){return Xn.a}),n.d(t,"throttle",function(){return Jn}),n.d(t,"throttleTime",function(){return nr}),n.d(t,"throwIfEmpty",function(){return Oe.a}),n.d(t,"timeInterval",function(){return ar}),n.d(t,"timeout",function(){return fr}),n.d(t,"timeoutWith",function(){return cr}),n.d(t,"timestamp",function(){return gr}),n.d(t,"toArray",function(){return vr.a}),n.d(t,"window",function(){return yr}),n.d(t,"windowCount",function(){return wr}),n.d(t,"windowTime",function(){return $r}),n.d(t,"windowToggle",function(){return jr}),n.d(t,"windowWhen",function(){return Mr}),n.d(t,"withLatestFrom",function(){return Dr}),n.d(t,"zip",function(){return Br}),n.d(t,"zipAll",function(){return Hr});var r=n("zx2A");function i(e){return function(t){return t.lift(new s(e))}}class s{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new o(e,this.durationSelector))}}class o extends r.b{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:t}=this;n=t(e)}catch(t){return this.destination.error(t)}const i=Object(r.c)(n,new r.a(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n("D0XW"),l=n("PqYM");function u(e,t=a.a){return i(()=>Object(l.a)(e,t))}function c(e){return function(t){return t.lift(new d(e))}}class d{constructor(e){this.closingNotifier=e}call(e,t){return t.subscribe(new h(e,this.closingNotifier))}}class h extends r.b{constructor(e,t){super(e),this.buffer=[],this.add(Object(r.c)(t,new r.a(this)))}_next(e){this.buffer.push(e)}notifyNext(){const e=this.buffer;this.buffer=[],this.destination.next(e)}}var p=n("7o/Q");function f(e,t=null){return function(n){return n.lift(new g(e,t))}}class g{constructor(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?v:m}call(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))}}class m extends p.a{constructor(e,t){super(e),this.bufferSize=t,this.buffer=[]}_next(e){const t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])}_complete(){const e=this.buffer;e.length>0&&this.destination.next(e),super._complete()}}class v extends p.a{constructor(e,t,n){super(e),this.bufferSize=t,this.startBufferEvery=n,this.buffers=[],this.count=0}_next(e){const{bufferSize:t,startBufferEvery:n,buffers:r,count:i}=this;this.count++,i%n==0&&r.push([]);for(let s=r.length;s--;){const n=r[s];n.push(e),n.length===t&&(r.splice(s,1),this.destination.next(n))}}_complete(){const{buffers:e,destination:t}=this;for(;e.length>0;){let n=e.shift();n.length>0&&t.next(n)}super._complete()}}var y=n("z+Ro");function b(e){let t=arguments.length,n=a.a;Object(y.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);let r=null;t>=2&&(r=arguments[1]);let i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new _(e,r,i,n))}}class _{constructor(e,t,n,r){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=r}call(e,t){return t.subscribe(new C(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class w{constructor(){this.buffer=[]}}class C extends p.a{constructor(e,t,n,r,i){super(e),this.bufferTimeSpan=t,this.bufferCreationInterval=n,this.maxBufferSize=r,this.scheduler=i,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==n||n<0,this.timespanOnly)this.add(s.closeAction=i.schedule(x,t,{subscriber:this,context:s,bufferTimeSpan:t}));else{const e={bufferTimeSpan:t,bufferCreationInterval:n,subscriber:this,scheduler:i};this.add(s.closeAction=i.schedule(S,t,{subscriber:this,context:s})),this.add(i.schedule($,n,e))}}_next(e){const t=this.contexts,n=t.length;let r;for(let i=0;i0;){const n=e.shift();t.next(n.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(e){this.closeContext(e);const t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();const t=this.bufferTimeSpan;this.add(e.closeAction=this.scheduler.schedule(x,t,{subscriber:this,context:e,bufferTimeSpan:t}))}}openContext(){const e=new w;return this.contexts.push(e),e}closeContext(e){this.destination.next(e.buffer);const t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)}}function x(e){const t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function $(e){const{bufferCreationInterval:t,bufferTimeSpan:n,subscriber:r,scheduler:i}=e,s=r.openContext();r.closed||(r.add(s.closeAction=i.schedule(S,n,{subscriber:r,context:s})),this.schedule(e,t))}function S(e){const{subscriber:t,context:n}=e;t.closeContext(n)}var E=n("quSY"),O=n("ZUHj"),I=n("l7GE");function k(e,t){return function(n){return n.lift(new T(e,t))}}class T{constructor(e,t){this.openings=e,this.closingSelector=t}call(e,t){return t.subscribe(new j(e,this.openings,this.closingSelector))}}class j extends I.a{constructor(e,t,n){super(e),this.closingSelector=n,this.contexts=[],this.add(Object(O.a)(this,t))}_next(e){const t=this.contexts,n=t.length;for(let r=0;r0;){const e=t.shift();e.subscription.unsubscribe(),e.buffer=null,e.subscription=null}this.contexts=null,super._error(e)}_complete(){const e=this.contexts;for(;e.length>0;){const t=e.shift();this.destination.next(t.buffer),t.subscription.unsubscribe(),t.buffer=null,t.subscription=null}this.contexts=null,super._complete()}notifyNext(e,t){e?this.closeBuffer(e):this.openBuffer(t)}notifyComplete(e){this.closeBuffer(e.context)}openBuffer(e){try{const t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(t){this._error(t)}}closeBuffer(e){const t=this.contexts;if(t&&e){const{buffer:n,subscription:r}=e;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(r),r.unsubscribe()}}trySubscribe(e){const t=this.contexts,n=new E.a,r={buffer:[],subscription:n};t.push(r);const i=Object(O.a)(this,e,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))}}function V(e){return function(t){return t.lift(new P(e))}}class P{constructor(e){this.closingSelector=e}call(e,t){return t.subscribe(new M(e,this.closingSelector))}}class M extends r.b{constructor(e,t){super(e),this.closingSelector=t,this.subscribing=!1,this.openBuffer()}_next(e){this.buffer.push(e)}_complete(){const e=this.buffer;e&&this.destination.next(e),super._complete()}_unsubscribe(){this.buffer=void 0,this.subscribing=!1}notifyNext(){this.openBuffer()}notifyComplete(){this.subscribing?this.complete():this.openBuffer()}openBuffer(){let e,{closingSubscription:t}=this;t&&(this.remove(t),t.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{const{closingSelector:t}=this;e=t()}catch(n){return this.error(n)}t=new E.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(r.c)(e,new r.a(this))),this.subscribing=!1}}var A=n("JIr8"),N=n("7wxJ"),D=n("DH7j"),R=n("itXk"),F=n("Cfvw");function L(...e){let t=null;return"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(D.a)(e[0])&&(e=e[0].slice()),n=>n.lift.call(Object(F.a)([n,...e]),new R.a(t))}var B=n("GyhO");function H(...e){return t=>t.lift.call(Object(B.a)(t,...e))}var U=n("0EUg"),q=n("bOdf");function W(e,t){return Object(q.a)(()=>e,t)}function z(e){return t=>t.lift(new G(e,t))}class G{constructor(e,t){this.predicate=e,this.source=t}call(e,t){return t.subscribe(new K(e,this.predicate,this.source))}}class K extends p.a{constructor(e,t,n){super(e),this.predicate=t,this.source=n,this.count=0,this.index=0}_next(e){this.predicate?this._tryPredicate(e):this.count++}_tryPredicate(e){let t;try{t=this.predicate(e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function Q(e){return t=>t.lift(new Z(e))}class Z{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new X(e,this.durationSelector))}}class X extends r.b{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){try{const t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(t){this.destination.error(t)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(e,t){let n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),n=Object(r.c)(t,new r.a(this)),n&&!n.closed&&this.add(this.durationSubscription=n)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const e=this.value,t=this.durationSubscription;t&&(this.durationSubscription=void 0,t.unsubscribe(),this.remove(t)),this.value=void 0,this.hasValue=!1,super._next(e)}}}function Y(e,t=a.a){return n=>n.lift(new J(e,t))}class J{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new ee(e,this.dueTime,this.scheduler))}}class ee extends p.a{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(te,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function te(e){e.debouncedNext()}var ne=n("xbPD");function re(e){return e instanceof Date&&!isNaN(+e)}var ie=n("WMd4");function se(e,t=a.a){const n=re(e)?+e-t.now():Math.abs(e);return e=>e.lift(new oe(n,t))}class oe{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new ae(e,this.delay,this.scheduler))}}class ae extends p.a{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,r=e.scheduler,i=e.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){const t=Math.max(0,n[0].time-r.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(ae.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new le(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(ie.a.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(ie.a.createComplete()),this.unsubscribe()}}class le{constructor(e,t){this.time=e,this.notification=t}}var ue=n("HDdC");function ce(e,t){return t?n=>new pe(n,t).lift(new de(e)):t=>t.lift(new de(e))}class de{constructor(e){this.delayDurationSelector=e}call(e,t){return t.subscribe(new he(e,this.delayDurationSelector))}}class he extends I.a{constructor(e,t){super(e),this.delayDurationSelector=t,this.completed=!1,this.delayNotifierSubscriptions=[],this.index=0}notifyNext(e,t,n,r,i){this.destination.next(e),this.removeSubscription(i),this.tryComplete()}notifyError(e,t){this._error(e)}notifyComplete(e){const t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()}_next(e){const t=this.index++;try{const n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(n){this.destination.error(n)}}_complete(){this.completed=!0,this.tryComplete(),this.unsubscribe()}removeSubscription(e){e.unsubscribe();const t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue}tryDelay(e,t){const n=Object(O.a)(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))}tryComplete(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}class pe extends ue.a{constructor(e,t){super(),this.source=e,this.subscriptionDelay=t}_subscribe(e){this.subscriptionDelay.subscribe(new fe(e,this.source))}}class fe extends p.a{constructor(e,t){super(),this.parent=e,this.source=t,this.sourceSubscribed=!1}_next(e){this.subscribeToSource()}_error(e){this.unsubscribe(),this.parent.error(e)}_complete(){this.unsubscribe(),this.subscribeToSource()}subscribeToSource(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}function ge(){return function(e){return e.lift(new me)}}class me{call(e,t){return t.subscribe(new ve(e))}}class ve extends p.a{constructor(e){super(e)}_next(e){e.observe(this.destination)}}function ye(e,t){return n=>n.lift(new be(e,t))}class be{constructor(e,t){this.keySelector=e,this.flushes=t}call(e,t){return t.subscribe(new _e(e,this.keySelector,this.flushes))}}class _e extends r.b{constructor(e,t,n){super(e),this.keySelector=t,this.values=new Set,n&&this.add(Object(r.c)(n,new r.a(this)))}notifyNext(){this.values.clear()}notifyError(e){this._error(e)}_next(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)}_useKeySelector(e){let t;const{destination:n}=this;try{t=this.keySelector(e)}catch(r){return void n.error(r)}this._finalizeNext(t,e)}_finalizeNext(e,t){const{values:n}=this;n.has(e)||(n.add(e),this.destination.next(t))}}function we(e,t){return n=>n.lift(new Ce(e,t))}class Ce{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new xe(e,this.compare,this.keySelector))}}class xe extends p.a{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}function $e(e,t){return we((n,r)=>t?t(n[e],r[e]):n[e]===r[e])}var Se=n("4I5i"),Ee=n("pLZG"),Oe=n("XDbj"),Ie=n("IzEk");function ke(e,t){if(e<0)throw new Se.a;const n=arguments.length>=2;return r=>r.pipe(Object(Ee.a)((t,n)=>n===e),Object(Ie.a)(1),n?Object(ne.a)(t):Object(Oe.a)(()=>new Se.a))}var Te=n("LRne");function je(...e){return t=>Object(B.a)(t,Object(Te.a)(...e))}function Ve(e,t){return n=>n.lift(new Pe(e,t,n))}class Pe{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new Me(e,this.predicate,this.thisArg,this.source))}}class Me extends p.a{constructor(e,t,n,r){super(e),this.predicate=t,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Ae(){return e=>e.lift(new Ne)}class Ne{call(e,t){return t.subscribe(new De(e))}}class De extends r.b{constructor(e){super(e),this.hasCompleted=!1,this.hasSubscription=!1}_next(e){this.hasSubscription||(this.hasSubscription=!0,this.add(Object(r.c)(e,new r.a(this))))}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var Re=n("lJxs");function Fe(e,t){return t?n=>n.pipe(Fe((n,r)=>Object(F.a)(e(n,r)).pipe(Object(Re.a)((e,i)=>t(n,e,r,i))))):t=>t.lift(new Le(e))}class Le{constructor(e){this.project=e}call(e,t){return t.subscribe(new Be(e,this.project))}}class Be extends r.b{constructor(e,t){super(e),this.project=t,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(e){this.hasSubscription||this.tryNext(e)}tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.hasSubscription=!0,this._innerSub(t)}_innerSub(e){const t=new r.a(this),n=this.destination;n.add(t);const i=Object(r.c)(e,t);i!==t&&n.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}function He(e,t=Number.POSITIVE_INFINITY,n){return t=(t||0)<1?Number.POSITIVE_INFINITY:t,r=>r.lift(new Ue(e,t,n))}class Ue{constructor(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}call(e,t){return t.subscribe(new qe(e,this.project,this.concurrent,this.scheduler))}}class qe extends r.b{constructor(e,t,n,r){super(e),this.project=t,this.concurrent=n,this.scheduler=r,this.index=0,this.active=0,this.hasCompleted=!1,n0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}var We=n("nYR2");function ze(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return n=>n.lift(new Ge(e,n,!1,t))}class Ge{constructor(e,t,n,r){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=r}call(e,t){return t.subscribe(new Ke(e,this.predicate,this.source,this.yieldIndex,this.thisArg))}}class Ke extends p.a{constructor(e,t,n,r,i){super(e),this.predicate=t,this.source=n,this.yieldIndex=r,this.thisArg=i,this.index=0}notifyComplete(e){const t=this.destination;t.next(e),t.complete(),this.unsubscribe()}_next(e){const{predicate:t,thisArg:n}=this,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(i){this.destination.error(i)}}_complete(){this.notifyComplete(this.yieldIndex?-1:void 0)}}function Qe(e,t){return n=>n.lift(new Ge(e,n,!0,t))}var Ze=n("SxV6"),Xe=n("OQgR");function Ye(){return function(e){return e.lift(new Je)}}class Je{call(e,t){return t.subscribe(new et(e))}}class et extends p.a{_next(e){}}function tt(){return e=>e.lift(new nt)}class nt{call(e,t){return t.subscribe(new rt(e))}}class rt extends p.a{constructor(e){super(e)}notifyComplete(e){const t=this.destination;t.next(e),t.complete()}_next(e){this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var it=n("NJ9Y");function st(e){return t=>t.lift(new ot(e))}class ot{constructor(e){this.value=e}call(e,t){return t.subscribe(new at(e,this.value))}}class at extends p.a{constructor(e,t){super(e),this.value=t}_next(e){this.destination.next(this.value)}}function lt(){return function(e){return e.lift(new ut)}}class ut{call(e,t){return t.subscribe(new ct(e))}}class ct extends p.a{constructor(e){super(e)}_next(e){this.destination.next(ie.a.createNext(e))}_error(e){const t=this.destination;t.next(ie.a.createError(e)),t.complete()}_complete(){const e=this.destination;e.next(ie.a.createComplete()),e.complete()}}var dt=n("128B");function ht(e){const t="function"==typeof e?(t,n)=>e(t,n)>0?t:n:(e,t)=>e>t?e:t;return Object(dt.a)(t)}var pt=n("VRyK");function ft(...e){return t=>t.lift.call(Object(pt.a)(t,...e))}var gt=n("bHdf"),mt=n("5+tZ");function vt(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?Object(mt.b)(()=>e,t,n):("number"==typeof t&&(n=t),Object(mt.b)(()=>e,n))}function yt(e,t,n=Number.POSITIVE_INFINITY){return r=>r.lift(new bt(e,t,n))}class bt{constructor(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}call(e,t){return t.subscribe(new _t(e,this.accumulator,this.seed,this.concurrent))}}class _t extends r.b{constructor(e,t,n,r){super(e),this.accumulator=t,this.acc=n,this.concurrent=r,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){if(this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}function wt(e){const t="function"==typeof e?(t,n)=>e(t,n)<0?t:n:(e,t)=>et.lift(new St(e))}class St{constructor(e){this.nextSources=e}call(e,t){return t.subscribe(new Et(e,this.nextSources))}}class Et extends r.b{constructor(e,t){super(e),this.destination=e,this.nextSources=t}notifyError(){this.subscribeToNextSource()}notifyComplete(){this.subscribeToNextSource()}_error(e){this.subscribeToNextSource(),this.unsubscribe()}_complete(){this.subscribeToNextSource(),this.unsubscribe()}subscribeToNextSource(){const e=this.nextSources.shift();if(e){const t=new r.a(this),n=this.destination;n.add(t);const i=Object(r.c)(e,t);i!==t&&n.add(i)}else this.destination.complete()}}function Ot(){return e=>e.lift(new It)}class It{call(e,t){return t.subscribe(new kt(e))}}class kt extends p.a{constructor(e){super(e),this.hasPrev=!1}_next(e){let t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)}}var Tt=n("F97/");function jt(e,t){return n=>[Object(Ee.a)(e,t)(n),Object(Ee.a)(Object(Tt.a)(e,t))(n)]}function Vt(...e){const t=e.length;if(0===t)throw new Error("list of properties cannot be empty.");return n=>Object(Re.a)(function(e,t){return n=>{let r=n;for(let i=0;inew Pt.a,e):Object(Ct.a)(new Pt.a)}var At=n("2Vo4");function Nt(e){return t=>Object(Ct.a)(new At.a(e))(t)}var Dt=n("NHP+");function Rt(){return e=>Object(Ct.a)(new Dt.a)(e)}var Ft=n("jtHE");function Lt(e,t,n,r){n&&"function"!=typeof n&&(r=n);const i="function"==typeof n?n:void 0,s=new Ft.a(e,t,r);return e=>Object(Ct.a)(()=>s,i)(e)}var Bt=n("Nv8m");function Ht(...e){return function(t){return 1===e.length&&Object(D.a)(e[0])&&(e=e[0]),t.lift.call(Object(Bt.a)(t,...e))}}var Ut=n("EY2u");function qt(e=-1){return t=>0===e?Object(Ut.b)():t.lift(new Wt(e<0?-1:e-1,t))}class Wt{constructor(e,t){this.count=e,this.source=t}call(e,t){return t.subscribe(new zt(e,this.count,this.source))}}class zt extends p.a{constructor(e,t,n){super(e),this.count=t,this.source=n}complete(){if(!this.isStopped){const{source:e,count:t}=this;if(0===t)return super.complete();t>-1&&(this.count=t-1),e.subscribe(this._unsubscribeAndRecycle())}}}function Gt(e){return t=>t.lift(new Kt(e))}class Kt{constructor(e){this.notifier=e}call(e,t){return t.subscribe(new Qt(e,this.notifier,t))}}class Qt extends r.b{constructor(e,t,n){super(e),this.notifier=t,this.source=n,this.sourceIsBeingSubscribedTo=!0}notifyNext(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}_unsubscribe(){const{notifications:e,retriesSubscription:t}=this;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}_unsubscribeAndRecycle(){const{_unsubscribe:e}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=e,this}subscribeToRetries(){let e;this.notifications=new Pt.a;try{const{notifier:t}=this;e=t(this.notifications)}catch(t){return super.complete()}this.retries=e,this.retriesSubscription=Object(r.c)(e,new r.a(this))}}function Zt(e=-1){return t=>t.lift(new Xt(e,t))}class Xt{constructor(e,t){this.count=e,this.source=t}call(e,t){return t.subscribe(new Yt(e,this.count,this.source))}}class Yt extends p.a{constructor(e,t,n){super(e),this.count=t,this.source=n}error(e){if(!this.isStopped){const{source:t,count:n}=this;if(0===n)return super.error(e);n>-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}}}function Jt(e){return t=>t.lift(new en(e,t))}class en{constructor(e,t){this.notifier=e,this.source=t}call(e,t){return t.subscribe(new tn(e,this.notifier,this.source))}}class tn extends r.b{constructor(e,t,n){super(e),this.notifier=t,this.source=n}error(e){if(!this.isStopped){let n=this.errors,i=this.retries,s=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{n=new Pt.a;try{const{notifier:e}=this;i=e(n)}catch(t){return super.error(t)}s=Object(r.c)(i,new r.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=s,n.next(e)}}_unsubscribe(){const{errors:e,retriesSubscription:t}=this;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:e}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)}}var nn=n("x+ZX");function rn(e){return t=>t.lift(new sn(e))}class sn{constructor(e){this.notifier=e}call(e,t){const n=new on(e),i=t.subscribe(n);return i.add(Object(r.c)(this.notifier,new r.a(n))),i}}class on extends r.b{constructor(){super(...arguments),this.hasValue=!1}_next(e){this.value=e,this.hasValue=!0}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}function an(e,t=a.a){return n=>n.lift(new ln(e,t))}class ln{constructor(e,t){this.period=e,this.scheduler=t}call(e,t){return t.subscribe(new un(e,this.period,this.scheduler))}}class un extends p.a{constructor(e,t,n){super(e),this.period=t,this.scheduler=n,this.hasValue=!1,this.add(n.schedule(cn,t,{subscriber:this,period:t}))}_next(e){this.lastValue=e,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function cn(e){let{subscriber:t,period:n}=e;t.notifyNext(),this.schedule(e,n)}var dn=n("Kqap");function hn(e,t){return n=>n.lift(new pn(e,t))}class pn{constructor(e,t){this.compareTo=e,this.comparator=t}call(e,t){return t.subscribe(new fn(e,this.compareTo,this.comparator))}}class fn extends p.a{constructor(e,t,n){super(e),this.compareTo=t,this.comparator=n,this._a=[],this._b=[],this._oneComplete=!1,this.destination.add(t.subscribe(new gn(e,this)))}_next(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())}_complete(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}checkValues(){const{_a:e,_b:t,comparator:n}=this;for(;e.length>0&&t.length>0;){let i=e.shift(),s=t.shift(),o=!1;try{o=n?n(i,s):i===s}catch(r){this.destination.error(r)}o||this.emit(!1)}}emit(e){const{destination:t}=this;t.next(e),t.complete()}nextB(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())}completeB(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}class gn extends p.a{constructor(e,t){super(e),this.parent=t}_next(e){this.parent.nextB(e)}_error(e){this.parent.error(e),this.unsubscribe()}_complete(){this.parent.completeB(),this.unsubscribe()}}var mn=n("w1tV");function vn(e,t,n){let r;return r=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},e=>e.lift(function({bufferSize:e=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let i,s,o=0,a=!1,l=!1;return function(u){let c;o++,!i||a?(a=!1,i=new Ft.a(e,t,r),c=i.subscribe(this),s=u.subscribe({next(e){i.next(e)},error(e){a=!0,i.error(e)},complete(){l=!0,s=void 0,i.complete()}})):c=i.subscribe(this),this.add(()=>{o--,c.unsubscribe(),s&&!l&&n&&0===o&&(s.unsubscribe(),s=void 0,i=void 0)})}}(r))}var yn=n("sVev");function bn(e){return t=>t.lift(new _n(e,t))}class _n{constructor(e,t){this.predicate=e,this.source=t}call(e,t){return t.subscribe(new wn(e,this.predicate,this.source))}}class wn extends p.a{constructor(e,t,n){super(e),this.predicate=t,this.source=n,this.seenValue=!1,this.index=0}applySingleValue(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)}_next(e){const t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)}tryNext(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(n){this.destination.error(n)}}_complete(){const e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new yn.a)}}function Cn(e){return t=>t.lift(new xn(e))}class xn{constructor(e){this.total=e}call(e,t){return t.subscribe(new $n(e,this.total))}}class $n extends p.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}function Sn(e){return t=>t.lift(new En(e))}class En{constructor(e){if(this._skipCount=e,this._skipCount<0)throw new Se.a}call(e,t){return t.subscribe(0===this._skipCount?new p.a(e):new On(e,this._skipCount))}}class On extends p.a{constructor(e,t){super(e),this._skipCount=t,this._count=0,this._ring=new Array(t)}_next(e){const t=this._skipCount,n=this._count++;if(nt.lift(new kn(e))}class kn{constructor(e){this.notifier=e}call(e,t){return t.subscribe(new Tn(e,this.notifier))}}class Tn extends r.b{constructor(e,t){super(e),this.hasValue=!1;const n=new r.a(this);this.add(n),this.innerSubscription=n;const i=Object(r.c)(t,n);i!==n&&(this.add(i),this.innerSubscription=i)}_next(e){this.hasValue&&super._next(e)}notifyNext(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}notifyComplete(){}}function jn(e){return t=>t.lift(new Vn(e))}class Vn{constructor(e){this.predicate=e}call(e,t){return t.subscribe(new Pn(e,this.predicate))}}class Pn extends p.a{constructor(e,t){super(e),this.predicate=t,this.skipping=!0,this.index=0}_next(e){const t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)}tryCallPredicate(e){try{const t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(t){this.destination.error(t)}}}var Mn=n("JX91"),An=n("7Hc7"),Nn=n("Y7HM");class Dn extends ue.a{constructor(e,t=0,n=An.a){super(),this.source=e,this.delayTime=t,this.scheduler=n,(!Object(Nn.a)(t)||t<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=An.a)}static create(e,t=0,n=An.a){return new Dn(e,t,n)}static dispatch(e){const{source:t,subscriber:n}=e;return this.add(t.subscribe(n))}_subscribe(e){return this.scheduler.schedule(Dn.dispatch,this.delayTime,{source:this.source,subscriber:e})}}function Rn(e,t=0){return function(n){return n.lift(new Fn(e,t))}}class Fn{constructor(e,t){this.scheduler=e,this.delay=t}call(e,t){return new Dn(t,this.delay,this.scheduler).subscribe(e)}}var Ln=n("eIep"),Bn=n("SpAZ");function Hn(){return Object(Ln.a)(Bn.a)}function Un(e,t){return t?Object(Ln.a)(()=>e,t):Object(Ln.a)(()=>e)}var qn=n("BFxc");function Wn(e){return t=>t.lift(new zn(e))}class zn{constructor(e){this.notifier=e}call(e,t){const n=new Gn(e),i=Object(r.c)(this.notifier,new r.a(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}class Gn extends r.b{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Kn(e,t=!1){return n=>n.lift(new Qn(e,t))}class Qn{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new Zn(e,this.predicate,this.inclusive))}}class Zn extends p.a{constructor(e,t,n){super(e),this.predicate=t,this.inclusive=n,this.index=0}_next(e){const t=this.destination;let n;try{n=this.predicate(e,this.index++)}catch(r){return void t.error(r)}this.nextOrComplete(e,n)}nextOrComplete(e,t){const n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}var Xn=n("vkgz");const Yn={leading:!0,trailing:!1};function Jn(e,t=Yn){return n=>n.lift(new er(e,!!t.leading,!!t.trailing))}class er{constructor(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}call(e,t){return t.subscribe(new tr(e,this.durationSelector,this.leading,this.trailing))}}class tr extends r.b{constructor(e,t,n,r){super(e),this.destination=e,this.durationSelector=t,this._leading=n,this._trailing=r,this._hasValue=!1}_next(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))}send(){const{_hasValue:e,_sendValue:t}=this;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=void 0}throttle(e){const t=this.tryDurationSelector(e);t&&this.add(this._throttled=Object(r.c)(t,new r.a(this)))}tryDurationSelector(e){try{return this.durationSelector(e)}catch(t){return this.destination.error(t),null}}throttlingDone(){const{_throttled:e,_trailing:t}=this;e&&e.unsubscribe(),this._throttled=void 0,t&&this.send()}notifyNext(){this.throttlingDone()}notifyComplete(){this.throttlingDone()}}function nr(e,t=a.a,n=Yn){return r=>r.lift(new rr(e,t,n.leading,n.trailing))}class rr{constructor(e,t,n,r){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=r}call(e,t){return t.subscribe(new ir(e,this.duration,this.scheduler,this.leading,this.trailing))}}class ir extends p.a{constructor(e,t,n,r,i){super(e),this.duration=t,this.scheduler=n,this.leading=r,this.trailing=i,this._hasTrailingValue=!1,this._trailingValue=null}_next(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(sr,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}function sr(e){const{subscriber:t}=e;t.clearThrottle()}var or=n("NXyV");function ar(e=a.a){return t=>Object(or.a)(()=>t.pipe(Object(dn.a)(({current:t},n)=>({value:n,current:e.now(),last:t}),{current:e.now(),value:void 0,last:void 0}),Object(Re.a)(({current:e,last:t,value:n})=>new lr(n,e-t))))}class lr{constructor(e,t){this.value=e,this.interval=t}}var ur=n("Y6u4");function cr(e,t,n=a.a){return r=>{let i=re(e),s=i?+e-n.now():Math.abs(e);return r.lift(new dr(s,i,t,n))}}class dr{constructor(e,t,n,r){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=r}call(e,t){return t.subscribe(new hr(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class hr extends r.b{constructor(e,t,n,r,i){super(e),this.absoluteTimeout=t,this.waitFor=n,this.withObservable=r,this.scheduler=i,this.scheduleTimeout()}static dispatchTimeout(e){const{withObservable:t}=e;e._unsubscribeAndRecycle(),e.add(Object(r.c)(t,new r.a(e)))}scheduleTimeout(){const{action:e}=this;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(hr.dispatchTimeout,this.waitFor,this))}_next(e){this.absoluteTimeout||this.scheduleTimeout(),super._next(e)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var pr=n("z6cu");function fr(e,t=a.a){return cr(e,Object(pr.a)(new ur.a),t)}function gr(e=a.a){return Object(Re.a)(t=>new mr(t,e.now()))}class mr{constructor(e,t){this.value=e,this.timestamp=t}}var vr=n("IAdc");function yr(e){return function(t){return t.lift(new br(e))}}class br{constructor(e){this.windowBoundaries=e}call(e,t){const n=new _r(e),i=t.subscribe(n);return i.closed||n.add(Object(r.c)(this.windowBoundaries,new r.a(n))),i}}class _r extends r.b{constructor(e){super(e),this.window=new Pt.a,e.next(this.window)}notifyNext(){this.openWindow()}notifyError(e){this._error(e)}notifyComplete(){this._complete()}_next(e){this.window.next(e)}_error(e){this.window.error(e),this.destination.error(e)}_complete(){this.window.complete(),this.destination.complete()}_unsubscribe(){this.window=null}openWindow(){const e=this.window;e&&e.complete();const t=this.destination,n=this.window=new Pt.a;t.next(n)}}function wr(e,t=0){return function(n){return n.lift(new Cr(e,t))}}class Cr{constructor(e,t){this.windowSize=e,this.startWindowEvery=t}call(e,t){return t.subscribe(new xr(e,this.windowSize,this.startWindowEvery))}}class xr extends p.a{constructor(e,t,n){super(e),this.destination=e,this.windowSize=t,this.startWindowEvery=n,this.windows=[new Pt.a],this.count=0,e.next(this.windows[0])}_next(e){const t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,s=i.length;for(let a=0;a=0&&o%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){const e=new Pt.a;i.push(e),n.next(e)}}_error(e){const t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)}_complete(){const e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()}_unsubscribe(){this.count=0,this.windows=null}}function $r(e){let t=a.a,n=null,r=Number.POSITIVE_INFINITY;return Object(y.a)(arguments[3])&&(t=arguments[3]),Object(y.a)(arguments[2])?t=arguments[2]:Object(Nn.a)(arguments[2])&&(r=Number(arguments[2])),Object(y.a)(arguments[1])?t=arguments[1]:Object(Nn.a)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new Sr(e,n,r,t))}}class Sr{constructor(e,t,n,r){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=r}call(e,t){return t.subscribe(new Or(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}class Er extends Pt.a{constructor(){super(...arguments),this._numberOfNextedValues=0}next(e){this._numberOfNextedValues++,super.next(e)}get numberOfNextedValues(){return this._numberOfNextedValues}}class Or extends p.a{constructor(e,t,n,r,i){super(e),this.destination=e,this.windowTimeSpan=t,this.windowCreationInterval=n,this.maxWindowSize=r,this.scheduler=i,this.windows=[];const s=this.openWindow();if(null!==n&&n>=0){const e={windowTimeSpan:t,windowCreationInterval:n,subscriber:this,scheduler:i};this.add(i.schedule(Tr,t,{subscriber:this,window:s,context:null})),this.add(i.schedule(kr,n,e))}else this.add(i.schedule(Ir,t,{subscriber:this,window:s,windowTimeSpan:t}))}_next(e){const t=this.windows,n=t.length;for(let r=0;r=this.maxWindowSize&&this.closeWindow(n))}}_error(e){const t=this.windows;for(;t.length>0;)t.shift().error(e);this.destination.error(e)}_complete(){const e=this.windows;for(;e.length>0;){const t=e.shift();t.closed||t.complete()}this.destination.complete()}openWindow(){const e=new Er;return this.windows.push(e),this.destination.next(e),e}closeWindow(e){e.complete();const t=this.windows;t.splice(t.indexOf(e),1)}}function Ir(e){const{subscriber:t,windowTimeSpan:n,window:r}=e;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function kr(e){const{windowTimeSpan:t,subscriber:n,scheduler:r,windowCreationInterval:i}=e,s=n.openWindow();let o={action:this,subscription:null};o.subscription=r.schedule(Tr,t,{subscriber:n,window:s,context:o}),this.add(o.subscription),this.schedule(e,i)}function Tr(e){const{subscriber:t,window:n,context:r}=e;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}function jr(e,t){return n=>n.lift(new Vr(e,t))}class Vr{constructor(e,t){this.openings=e,this.closingSelector=t}call(e,t){return t.subscribe(new Pr(e,this.openings,this.closingSelector))}}class Pr extends I.a{constructor(e,t,n){super(e),this.openings=t,this.closingSelector=n,this.contexts=[],this.add(this.openSubscription=Object(O.a)(this,t,t))}_next(e){const{contexts:t}=this;if(t){const n=t.length;for(let r=0;r{let n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new Rr(e,n))}}class Rr{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new Fr(e,this.observables,this.project))}}class Fr extends I.a{constructor(e,t,n){super(e),this.observables=t,this.project=n,this.toRespond=[];const r=t.length;this.values=new Array(r);for(let i=0;i0){const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}var Lr=n("1uah");function Br(...e){return function(t){return t.lift.call(Object(Lr.b)(t,...e))}}function Hr(e){return t=>t.lift(new Lr.a(e))}},kcx3:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("Laqt")),r(n("HDAp"))},kiQV:function(e){e.exports=JSON.parse('{"name":"rpi-webinterface","version":"0.0.0","author":"Javan Rasokat","license":"CC BY-NC-SA 3.0","scripts":{"ng":"ng","start":"ng serve","build":"ng build --prod","test":"ng test","lint":"ng lint","e2e":"ng e2e"},"private":true,"dependencies":{"@angular/animations":"^11.0.3","@angular/common":"^11.0.3","@angular/compiler":"^11.0.3","@angular/core":"^11.0.3","@angular/forms":"^11.0.3","@angular/http":"^7.2.16","@angular/platform-browser":"^11.0.3","@angular/platform-browser-dynamic":"^11.0.3","@angular/router":"^11.0.3","@ngx-translate/core":"^11.0.1","@ngx-translate/http-loader":"^4.0.0","core-js":"^2.6.11","ng5-validation":"^1.0.0","rxjs":"^6.6.3","rxjs-compat":"^6.6.2","tslib":"^2.0.0","zone.js":"~0.10.2"},"devDependencies":{"@angular-devkit/build-angular":"~0.1100.3","@angular/cli":"^11.0.3","@angular/compiler-cli":"^11.0.3","@angular/language-service":"^11.0.3","@types/jasmine":"~3.6.0","@types/jasminewd2":"^2.0.8","@types/node":"^12.11.1","codelyzer":"^6.0.0","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","karma":"~5.0.0","karma-chrome-launcher":"~3.1.0","karma-cli":"~2.0.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0","protractor":"~7.0.0","ts-node":"~8.0.3","tslint":"~6.1.0","typescript":"~4.0.5"}}')},kwZ1:function(e,t,n){"use strict";var r=n("jmDH"),i=n("w6GO"),s=n("mqlF"),o=n("NV0k"),a=n("JB68"),l=n("M1xp"),u=Object.assign;e.exports=!u||n("KUxP")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=a(e),u=arguments.length,c=1,d=s.f,h=o.f;u>c;)for(var p,f=l(arguments[c++]),g=d?i(f).concat(d(f)):i(f),m=g.length,v=0;m>v;)p=g[v++],r&&!h.call(f,p)||(n[p]=f[p]);return n}:u},l7GE:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");class i extends r.a{notifyNext(e,t,n,r,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}},lJxs:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(e,t))}}class s{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.project,this.thisArg))}}class o extends r.a{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},ldVq:function(e,t,n){var r=n("QMMT"),i=n("UWiX")("iterator"),s=n("SBuE");e.exports=n("WEpk").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||s.hasOwnProperty(r(t))}},mCNh:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return s});var r=n("SpAZ");function i(...e){return s(e)}function s(e){return 0===e.length?r.a:1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}}},mqlF:function(e,t){t.f=Object.getOwnPropertySymbols},n6bG:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",function(){return r})},nKcR:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("Kucq")),r(n("ZF92"))},nYR2:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("7o/Q"),i=n("quSY");function s(e){return t=>t.lift(new o(e))}class o{constructor(e){this.callback=e}call(e,t){return t.subscribe(new a(e,this.callback))}}class a extends r.a{constructor(e,t){super(e),this.add(new i.a(t))}}},ngJS:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=e=>t=>{for(let n=0,r=e.length;ndocument.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[s[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=r(e),n=new a,a.prototype=null,n[o]=e):n=l(),void 0===t?n:i(n,t)}},ofXK:function(e,t,n){"use strict";n.d(t,"a",function(){return _}),n.d(t,"b",function(){return z}),n.d(t,"c",function(){return l}),n.d(t,"d",function(){return W}),n.d(t,"e",function(){return C}),n.d(t,"f",function(){return q}),n.d(t,"g",function(){return d}),n.d(t,"h",function(){return x}),n.d(t,"i",function(){return y}),n.d(t,"j",function(){return N}),n.d(t,"k",function(){return R}),n.d(t,"l",function(){return L}),n.d(t,"m",function(){return U}),n.d(t,"n",function(){return w}),n.d(t,"o",function(){return u}),n.d(t,"p",function(){return K}),n.d(t,"q",function(){return a}),n.d(t,"r",function(){return G}),n.d(t,"s",function(){return s}),n.d(t,"t",function(){return A}),n.d(t,"u",function(){return o});var r=n("fXoL");let i=null;function s(){return i}function o(e){i||(i=e)}class a{}const l=new r.InjectionToken("DocumentToken");let u=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:c,token:e,providedIn:"platform"}),e})();function c(){return Object(r["\u0275\u0275inject"])(h)}const d=new r.InjectionToken("Location Initialized");let h=(()=>{class e extends u{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=s().getLocation(),this._history=s().getHistory()}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){p()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){p()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](l))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:f,token:e,providedIn:"platform"}),e})();function p(){return!!window.history.pushState}function f(){return new h(Object(r["\u0275\u0275inject"])(l))}function g(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function v(e){return e&&"?"!==e[0]?"?"+e:e}let y=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:b,token:e,providedIn:"root"}),e})();function b(e){const t=Object(r["\u0275\u0275inject"])(l).location;return new w(Object(r["\u0275\u0275inject"])(u),t&&t.origin||"")}const _=new r.InjectionToken("appBaseHref");let w=(()=>{class e extends y{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return g(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+v(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const i=this.prepareExternalUrl(n+v(r));this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){const i=this.prepareExternalUrl(n+v(r));this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](u),r["\u0275\u0275inject"](_,8))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),C=(()=>{class e extends y{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=g(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let i=this.prepareExternalUrl(n+v(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){let i=this.prepareExternalUrl(n+v(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](u),r["\u0275\u0275inject"](_,8))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),x=(()=>{class e{constructor(e,t){this._subject=new r.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=m(S(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+v(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,S(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+v(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+v(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](y),r["\u0275\u0275inject"](u))},e.normalizeQueryParams=v,e.joinWithSlash=g,e.stripTrailingSlash=m,e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:$,token:e,providedIn:"root"}),e})();function $(){return new x(Object(r["\u0275\u0275inject"])(y),Object(r["\u0275\u0275inject"])(u))}function S(e){return e.replace(/\/index.html$/,"")}var E=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),O=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),I=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function k(e,t){const n=Object(r["\u0275findLocaleData"])(e),i=n[r["\u0275LocaleDataIndex"].NumberSymbols][t];if(void 0===i){if(t===I.CurrencyDecimal)return n[r["\u0275LocaleDataIndex"].NumberSymbols][I.Decimal];if(t===I.CurrencyGroup)return n[r["\u0275LocaleDataIndex"].NumberSymbols][I.Group]}return i}const T=r["\u0275getLocalePluralCase"],j=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function V(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}class P{}let M=(()=>{class e extends P{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(T(t||this.locale)(e)){case O.Zero:return"zero";case O.One:return"one";case O.Two:return"two";case O.Few:return"few";case O.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](r.LOCALE_ID))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();function A(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const 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}let N=(()=>{class e{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r["\u0275isListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r["\u0275stringify"])(e.item));this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.IterableDiffers),r["\u0275\u0275directiveInject"](r.KeyValueDiffers),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class D{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let R=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Object(r.isDevMode)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new D(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new F(e,n);t.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const s=new F(e,i);t.push(s)}});for(let n=0;n{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.TemplateRef),r["\u0275\u0275directiveInject"](r.IterableDiffers))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class F{constructor(e,t){this.record=e,this.view=t}}let L=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new B,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){H("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){H("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.TemplateRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class B{constructor(){this.$implicit=null,this.ngIf=null}}function H(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(r["\u0275stringify"])(t)}'.`)}let U=(()=>{class e{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,r]=e.split(".");null!=(t=null!=t&&r?`${t}${r}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_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))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.KeyValueDiffers),r["\u0275\u0275directiveInject"](r.Renderer2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),q=(()=>{class e{transform(e){return JSON.stringify(e,null,2)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r["\u0275\u0275definePipe"]({name:"json",type:e,pure:!1}),e})(),W=(()=>{class e{constructor(e){this._locale=e}transform(t,n,i){if(!function(e){return!(null==e||""===e||e!=e)}(t))return null;i=i||this._locale;try{return function(e,t,n){return function(e,t,n,r,i,s,o=!1){let a="",l=!1;if(isFinite(e)){let u=function(e){let t,n,r,i,s,o=Math.abs(e)+"",a=0;for((n=o.indexOf("."))>-1&&(o=o.replace(".","")),(r=o.search(/e/i))>0?(n<0&&(n=r),n+=+o.slice(r+1),o=o.substring(0,r)):n<0&&(n=o.length),r=0;"0"===o.charAt(r);r++);if(r===(s=o.length))t=[0],n=1;else{for(s--;"0"===o.charAt(s);)s--;for(n-=r,t=[],i=0;r<=s;r++,i++)t[i]=Number(o.charAt(r))}return n>22&&(t=t.splice(0,21),a=n-1,n=1),{digits:t,exponent:a,integerLen:n}}(e);o&&(u=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(u));let c=t.minInt,d=t.minFrac,h=t.maxFrac;if(s){const e=s.match(j);if(null===e)throw new Error(s+" is not a valid digit info");const t=e[1],n=e[3],r=e[5];null!=t&&(c=V(t)),null!=n&&(d=V(n)),null!=r?h=V(r):null!=n&&d>h&&(h=d)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,i=r.length-e.integerLen;const s=Math.min(Math.max(t,i),n);let o=s+e.integerLen,a=r[o];if(o>0){r.splice(Math.max(e.integerLen,o));for(let e=o;e=5)if(o-1<0){for(let t=0;t>o;t--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[o-1]++;for(;i=u?r.pop():l=!1),t>=10?1:0},0);c&&(r.unshift(c),e.integerLen++)}(u,d,h);let p=u.digits,f=u.integerLen;const g=u.exponent;let m=[];for(l=p.every(e=>!e);f0?m=p.splice(f,p.length):(m=p,p=[0]);const v=[];for(p.length>=t.lgSize&&v.unshift(p.splice(-t.lgSize,p.length).join(""));p.length>t.gSize;)v.unshift(p.splice(-t.gSize,p.length).join(""));p.length&&v.unshift(p.join("")),a=v.join(k(n,r)),m.length&&(a+=k(n,i)+m.join("")),g&&(a+=k(n,I.Exponential)+"+"+g)}else a=k(n,I.Infinity);return a=e<0&&!l?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}(e,function(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),i=r[0],s=r[1],o=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let c=0;c{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[{provide:P,useClass:M}]}),e})();const G="browser";let K=(()=>{class e{}return e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({token:e,providedIn:"root",factory:()=>new Q(Object(r["\u0275\u0275inject"])(l),window,Object(r["\u0275\u0275inject"])(r.ErrorHandler))}),e})();class Q{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportsScrolling()){const t=this.document.getElementById(e)||this.document.getElementsByName(e)[0];t&&this.scrollToElement(t)}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=Z(this.window.history)||Z(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function Z(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}},olS2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("rPcQ"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.validate=function(e){return s.email(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],features:[o.\u0275\u0275ProvidersFeature([a])]}),e}();t.EmailValidator=l},or8y:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("NwFL")),r(n("x9wY"))},pLZG:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e,t){return function(n){return n.lift(new s(e,t))}}class s{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.predicate,this.thisArg))}}class o extends r.a{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}},pjAE:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})()},pxpQ:function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return a});var r=n("7o/Q"),i=n("WMd4");function s(e,t=0){return function(n){return n.lift(new o(e,t))}}class o{constructor(e,t=0){this.scheduler=e,this.delay=t}call(e,t){return t.subscribe(new a(e,this.scheduler,this.delay))}}class a extends r.a{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(a.dispatch,this.delay,new l(e,this.destination)))}_next(e){this.scheduleMessage(i.a.createNext(e))}_error(e){this.scheduleMessage(i.a.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(i.a.createComplete()),this.unsubscribe()}}class l{constructor(e,t){this.notification=e,this.destination=t}}},qCKp:function(e,t,n){"use strict";n.r(t),n.d(t,"Observable",function(){return r.a}),n.d(t,"ConnectableObservable",function(){return i.a}),n.d(t,"GroupedObservable",function(){return s.a}),n.d(t,"observable",function(){return o.a}),n.d(t,"Subject",function(){return a.a}),n.d(t,"BehaviorSubject",function(){return l.a}),n.d(t,"ReplaySubject",function(){return u.a}),n.d(t,"AsyncSubject",function(){return c.a}),n.d(t,"asap",function(){return d.a}),n.d(t,"asapScheduler",function(){return d.b}),n.d(t,"async",function(){return h.a}),n.d(t,"asyncScheduler",function(){return h.b}),n.d(t,"queue",function(){return p.a}),n.d(t,"queueScheduler",function(){return p.b}),n.d(t,"animationFrame",function(){return b}),n.d(t,"animationFrameScheduler",function(){return y}),n.d(t,"VirtualTimeScheduler",function(){return _}),n.d(t,"VirtualAction",function(){return w}),n.d(t,"Scheduler",function(){return C.a}),n.d(t,"Subscription",function(){return x.a}),n.d(t,"Subscriber",function(){return $.a}),n.d(t,"Notification",function(){return S.a}),n.d(t,"NotificationKind",function(){return S.b}),n.d(t,"pipe",function(){return E.a}),n.d(t,"noop",function(){return O.a}),n.d(t,"identity",function(){return I.a}),n.d(t,"isObservable",function(){return k}),n.d(t,"ArgumentOutOfRangeError",function(){return T.a}),n.d(t,"EmptyError",function(){return j.a}),n.d(t,"ObjectUnsubscribedError",function(){return V.a}),n.d(t,"UnsubscriptionError",function(){return P.a}),n.d(t,"TimeoutError",function(){return M.a}),n.d(t,"bindCallback",function(){return F}),n.d(t,"bindNodeCallback",function(){return H}),n.d(t,"combineLatest",function(){return z.b}),n.d(t,"concat",function(){return G.a}),n.d(t,"defer",function(){return K.a}),n.d(t,"empty",function(){return Q.b}),n.d(t,"forkJoin",function(){return Z.a}),n.d(t,"from",function(){return X.a}),n.d(t,"fromEvent",function(){return J}),n.d(t,"fromEventPattern",function(){return te}),n.d(t,"generate",function(){return ne}),n.d(t,"iif",function(){return ie}),n.d(t,"interval",function(){return oe}),n.d(t,"merge",function(){return le.a}),n.d(t,"never",function(){return ce}),n.d(t,"of",function(){return de.a}),n.d(t,"onErrorResumeNext",function(){return he}),n.d(t,"pairs",function(){return pe}),n.d(t,"partition",function(){return ye}),n.d(t,"race",function(){return be.a}),n.d(t,"range",function(){return _e}),n.d(t,"throwError",function(){return Ce.a}),n.d(t,"timer",function(){return xe.a}),n.d(t,"using",function(){return $e}),n.d(t,"zip",function(){return Se.b}),n.d(t,"scheduled",function(){return Ee.a}),n.d(t,"EMPTY",function(){return Q.a}),n.d(t,"NEVER",function(){return ue}),n.d(t,"config",function(){return Oe.a});var r=n("HDdC"),i=n("EQ5u"),s=n("OQgR"),o=n("kJWO"),a=n("XNiG"),l=n("2Vo4"),u=n("jtHE"),c=n("NHP+"),d=n("7Hc7"),h=n("D0XW"),p=n("qgXg"),f=n("3N8a");class g extends f.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}var m=n("IjjT");class v extends m.a{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,r=-1,i=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++r{class e extends m.a{constructor(e=w,t=Number.POSITIVE_INFINITY){super(e,()=>this.frame),this.maxFrames=t,this.frame=0,this.index=-1}flush(){const{actions:e,maxFrames:t}=this;let n,r;for(;(r=e[0])&&r.delay<=t&&(e.shift(),this.frame=r.delay,!(n=r.execute(r.state,r.delay))););if(n){for(;r=e.shift();)r.unsubscribe();throw n}}}return e.frameTimeFactor=10,e})();class w extends f.a{constructor(e,t,n=(e.index+=1)){super(e,t),this.scheduler=e,this.work=t,this.index=n,this.active=!0,this.index=e.index=n}schedule(e,t=0){if(!this.id)return super.schedule(e,t);this.active=!1;const n=new w(this.scheduler,this.work);return this.add(n),n.schedule(e,t)}requestAsyncId(e,t,n=0){this.delay=e.frame+n;const{actions:r}=e;return r.push(this),r.sort(w.sortActions),!0}recycleAsyncId(e,t,n=0){}_execute(e,t){if(!0===this.active)return super._execute(e,t)}static sortActions(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1}}var C=n("Y/cZ"),x=n("quSY"),$=n("7o/Q"),S=n("WMd4"),E=n("mCNh"),O=n("KqfI"),I=n("SpAZ");function k(e){return!!e&&(e instanceof r.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var T=n("4I5i"),j=n("sVev"),V=n("9ppp"),P=n("pjAE"),M=n("Y6u4"),A=n("lJxs"),N=n("8Qeq"),D=n("DH7j"),R=n("z+Ro");function F(e,t,n){if(t){if(!Object(R.a)(t))return(...r)=>F(e,n)(...r).pipe(Object(A.a)(e=>Object(D.a)(e)?t(...e):t(e)));n=t}return function(...t){const i=this;let s;const o={context:i,subject:s,callbackFunc:e,scheduler:n};return new r.a(r=>{if(n)return n.schedule(L,0,{args:t,subscriber:r,params:o});if(!s){s=new c.a;const n=(...e)=>{s.next(e.length<=1?e[0]:e),s.complete()};try{e.apply(i,[...t,n])}catch(a){Object(N.a)(s)?s.error(a):console.warn(a)}}return s.subscribe(r)})}}function L(e){const{args:t,subscriber:n,params:r}=e,{callbackFunc:i,context:s,scheduler:o}=r;let{subject:a}=r;if(!a){a=r.subject=new c.a;const e=(...e)=>{this.add(o.schedule(B,0,{value:e.length<=1?e[0]:e,subject:a}))};try{i.apply(s,[...t,e])}catch(l){a.error(l)}}this.add(a.subscribe(n))}function B(e){const{value:t,subject:n}=e;n.next(t),n.complete()}function H(e,t,n){if(t){if(!Object(R.a)(t))return(...r)=>H(e,n)(...r).pipe(Object(A.a)(e=>Object(D.a)(e)?t(...e):t(e)));n=t}return function(...t){const i={subject:void 0,args:t,callbackFunc:e,scheduler:n,context:this};return new r.a(r=>{const{context:s}=i;let{subject:o}=i;if(n)return n.schedule(U,0,{params:i,subscriber:r,context:s});if(!o){o=i.subject=new c.a;const n=(...e)=>{const t=e.shift();t?o.error(t):(o.next(e.length<=1?e[0]:e),o.complete())};try{e.apply(s,[...t,n])}catch(a){Object(N.a)(o)?o.error(a):console.warn(a)}}return o.subscribe(r)})}}function U(e){const{params:t,subscriber:n,context:r}=e,{callbackFunc:i,args:s,scheduler:o}=t;let a=t.subject;if(!a){a=t.subject=new c.a;const e=(...e)=>{const t=e.shift();this.add(t?o.schedule(W,0,{err:t,subject:a}):o.schedule(q,0,{value:e.length<=1?e[0]:e,subject:a}))};try{i.apply(r,[...s,e])}catch(l){this.add(o.schedule(W,0,{err:l,subject:a}))}}this.add(a.subscribe(n))}function q(e){const{value:t,subject:n}=e;n.next(t),n.complete()}function W(e){const{err:t,subject:n}=e;n.error(t)}var z=n("itXk"),G=n("GyhO"),K=n("NXyV"),Q=n("EY2u"),Z=n("cp0P"),X=n("Cfvw"),Y=n("n6bG");function J(e,t,n,i){return Object(Y.a)(n)&&(i=n,n=void 0),i?J(e,t,n).pipe(Object(A.a)(e=>Object(D.a)(e)?i(...e):i(e))):new r.a(r=>{ee(e,t,function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},r,n)})}function ee(e,t,n,r,i){let s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const r=e;e.addEventListener(t,n,i),s=()=>r.removeEventListener(t,n,i)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const r=e;e.on(t,n),s=()=>r.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const r=e;e.addListener(t,n),s=()=>r.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,o=e.length;sObject(D.a)(e)?n(...e):n(e))):new r.a(n=>{const r=(...e)=>n.next(1===e.length?e[0]:e);let i;try{i=e(r)}catch(s){return void n.error(s)}if(Object(Y.a)(t))return()=>t(r,i)})}function ne(e,t,n,i,s){let o,a;return 1==arguments.length?(a=e.initialState,t=e.condition,n=e.iterate,o=e.resultSelector||I.a,s=e.scheduler):void 0===i||Object(R.a)(i)?(a=e,o=I.a,s=i):(a=e,o=i),new r.a(e=>{let r=a;if(s)return s.schedule(re,0,{subscriber:e,iterate:n,condition:t,resultSelector:o,state:r});for(;;){if(t){let n;try{n=t(r)}catch(i){return void e.error(i)}if(!n){e.complete();break}}let s;try{s=o(r)}catch(i){return void e.error(i)}if(e.next(s),e.closed)break;try{r=n(r)}catch(i){return void e.error(i)}}})}function re(e){const{subscriber:t,condition:n}=e;if(t.closed)return;if(e.needIterate)try{e.state=e.iterate(e.state)}catch(i){return void t.error(i)}else e.needIterate=!0;if(n){let r;try{r=n(e.state)}catch(i){return void t.error(i)}if(!r)return void t.complete();if(t.closed)return}let r;try{r=e.resultSelector(e.state)}catch(i){return void t.error(i)}return t.closed||(t.next(r),t.closed)?void 0:this.schedule(e)}function ie(e,t=Q.a,n=Q.a){return Object(K.a)(()=>e()?t:n)}var se=n("Y7HM");function oe(e=0,t=h.a){return(!Object(se.a)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=h.a),new r.a(n=>(n.add(t.schedule(ae,e,{subscriber:n,counter:0,period:e})),n))}function ae(e){const{subscriber:t,counter:n,period:r}=e;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}var le=n("VRyK");const ue=new r.a(O.a);function ce(){return ue}var de=n("LRne");function he(...e){if(0===e.length)return Q.a;const[t,...n]=e;return 1===e.length&&Object(D.a)(t)?he(...t):new r.a(e=>{const r=()=>e.add(he(...n).subscribe(e));return Object(X.a)(t).subscribe({next(t){e.next(t)},error:r,complete:r})})}function pe(e,t){return new r.a(t?n=>{const r=Object.keys(e),i=new x.a;return i.add(t.schedule(fe,0,{keys:r,index:0,subscriber:n,subscription:i,obj:e})),i}:t=>{const n=Object.keys(e);for(let r=0;r{void 0===t&&(t=e,e=0);let i=0,s=e;if(n)return n.schedule(we,0,{index:i,count:t,start:e,subscriber:r});for(;;){if(i++>=t){r.complete();break}if(r.next(s++),r.closed)break}})}function we(e){const{start:t,index:n,count:r,subscriber:i}=e;n>=r?i.complete():(i.next(t),i.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}var Ce=n("z6cu"),xe=n("PqYM");function $e(e,t){return new r.a(n=>{let r,i;try{r=e()}catch(o){return void n.error(o)}try{i=t(r)}catch(o){return void n.error(o)}const s=(i?Object(X.a)(i):Q.a).subscribe(n);return()=>{s.unsubscribe(),r&&r.unsubscribe()}})}var Se=n("1uah"),Ee=n("7HRe"),Oe=n("2fFW")},qLGE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("R4Bc"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.notEqualTo(this.notEqualTo)},e.prototype.validate=function(e){return this.validator(e)},e.propDecorators={notEqualTo:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","notEqualTo","","formControlName",""],["","notEqualTo","","formControl",""],["","notEqualTo","","ngModel",""]],inputs:{notEqualTo:"notEqualTo"},features:[o.\u0275\u0275ProvidersFeature([a])]}),e}();t.NotEqualToValidator=l},qgXg:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return l});var r=n("3N8a");class i extends r.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}var s=n("IjjT");class o extends s.a{}const a=new o(i),l=a},qmJw:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("wCLq")),r(n("OSZS"))},quSY:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("DH7j"),i=n("XoHu"),s=n("n6bG"),o=n("pjAE");let a=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:u,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;ee.concat(t instanceof o.a?t.errors:t),[])}},r7id:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("wXh8")),r(n("6RPL"))},rPcQ:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("olS2")),r(n("LlHk"))},rr1i:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},sLFm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg"),s={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};t.uuid=function(e){return function(t){if(i.isPresent(r.Validators.required(t)))return null;var n=t.value;return new RegExp(s[e]||s.all).test(n)?null:{uuid:!0}}}},sVev:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})()},sk9p:function(e,t,n){"use strict";t.__esModule=!0;var r=s(n("k/8l")),i=s(n("FyfS"));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,r.default)(Object(e)))return function(e,t){var n=[],r=!0,s=!1,o=void 0;try{for(var a,l=(0,i.default)(e);!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){s=!0,o=u}finally{try{!r&&l.return&&l.return()}finally{if(s)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},tEej:function(e,t,n){var r=n("Ojgd"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},uBVG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.gte=function(e){return function(t){return i.isPresent(e)?i.isPresent(r.Validators.required(t))||+t.value>=+e?null:{gte:!0}:null}}},uOPS:function(e,t){e.exports=!0},uY1Z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("hGZq"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.lte(this.lte)},e.prototype.ngOnChanges=function(e){for(var t in e)"lte"===t&&(this.validator=s.lte(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={lte:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","lte","","formControlName",""],["","lte","","formControl",""],["","lte","","ngModel",""]],inputs:{lte:"lte"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.LessThanEqualValidator=l},vkgz:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("7o/Q"),i=n("KqfI"),s=n("n6bG");function o(e,t,n){return function(r){return r.lift(new a(e,t,n))}}class a{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))}}class l extends r.a{constructor(e,t,n,r){super(e),this._tapNext=i.a,this._tapError=i.a,this._tapComplete=i.a,this._tapError=n||i.a,this._tapComplete=r||i.a,Object(s.a)(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||i.a,this._tapError=t.error||i.a,this._tapComplete=t.complete||i.a)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}},w1tV:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("oB13"),i=n("x+ZX"),s=n("XNiG");function o(){return new s.a}function a(){return e=>Object(i.a)()(Object(r.a)(o)(e))}},"w2d+":function(e,t,n){"use strict";var r=n("hDam"),i=n("UO39"),s=n("SBuE"),o=n("NsO/");e.exports=n("MPFp")(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),s.Arguments=s.Array,r("keys"),r("values"),r("entries")},w6GO:function(e,t,n){var r=n("5vMV"),i=n("FpHa");e.exports=Object.keys||function(e){return r(e,i)}},wCLq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("qmJw"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.gt(this.gt)},e.prototype.ngOnChanges=function(e){for(var t in e)"gt"===t&&(this.validator=s.gt(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={gt:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","gt","","formControlName",""],["","gt","","formControl",""],["","gt","","ngModel",""]],inputs:{gt:"gt"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.GreaterThanValidator=l},wXh8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("r7id"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.rangeLength(this.rangeLength)},e.prototype.ngOnChanges=function(e){for(var t in e)"rangeLength"===t&&(this.validator=s.rangeLength(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={rangeLength:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","rangeLength","","formControlName",""],["","rangeLength","","formControl",""],["","rangeLength","","ngModel",""]],inputs:{rangeLength:"rangeLength"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.RangeLengthValidator=l},wdEZ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("9uV+"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.phone(this.phone)},e.prototype.ngOnChanges=function(e){for(var t in e)"phone"===t&&(this.validator=s.phone(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={phone:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","phone","","formControlName",""],["","phone","","formControl",""],["","phone","","ngModel",""]],inputs:{phone:"phone"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.PhoneValidator=l},"x+ZX":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(){return function(e){return e.lift(new s(e))}}class s{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new o(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class o extends r.a{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}},x9wY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.lt=function(e){return function(t){return i.isPresent(e)?i.isPresent(r.Validators.required(t))||+t.value<+e?null:{lt:!0}:null}}},xbPD:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e=null){return t=>t.lift(new s(e))}class s{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new o(e,this.defaultValue))}}class o extends r.a{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},y9jv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.date=function(e){return i.isPresent(r.Validators.required(e))||i.isDate(e.value)?null:{date:!0}}},yAwA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("8f/L"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.validate=function(e){return s.base64(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","base64","","formControlName",""],["","base64","","formControl",""],["","base64","","ngModel",""]],features:[o.\u0275\u0275ProvidersFeature([a])]}),e}();t.Base64Validator=l},yCtX:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("HDdC"),i=n("ngJS"),s=n("jZKg");function o(e,t){return t?Object(s.a)(e,t):new r.a(Object(i.a)(e))}},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return r})},z6cu:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("HDdC");function i(e,t){return new r.a(t?n=>t.schedule(s,0,{error:e,subscriber:n}):t=>t.error(e))}function s({error:e,subscriber:t}){t.error(e)}},zUnb:function(e,t,n){"use strict";n.r(t);var r=n("fXoL"),i=n("ofXK");class s extends i.q{constructor(){super()}supportsDOMEvents(){return!0}}class o extends s{static makeCurrent(){Object(i.u)(new o)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}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}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=l||(l=document.querySelector("base"),l)?l.getAttribute("href"):null;return null==t?null:(n=t,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Object(i.t)(document.cookie,e)}}let a,l=null;const u=new r.InjectionToken("TRANSITION_ID"),c=[{provide:r.APP_INITIALIZER,useFactory:function(e,t,n){return()=>{n.get(r.ApplicationInitStatus).donePromise.then(()=>{const n=Object(i.s)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[u,i.c,r.Injector],multi:!0}];class d{static init(){Object(r.setTestabilityGetter)(new d)}addToWindow(e){r["\u0275global"].getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},r["\u0275global"].getAllAngularTestabilities=()=>e.getAllTestabilities(),r["\u0275global"].getAllAngularRootElements=()=>e.getAllRootElements(),r["\u0275global"].frameworkStabilizers||(r["\u0275global"].frameworkStabilizers=[]),r["\u0275global"].frameworkStabilizers.push(e=>{const t=r["\u0275global"].getAllAngularTestabilities();let n=t.length,i=!1;const s=function(t){i=i||t,n--,0==n&&e(i)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?Object(i.s)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const h=new r.InjectionToken("EventManagerPlugins");let p=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),m=(()=>{class e extends g{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Object(i.s)().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](i.c))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const v={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/"},y=/%COMP%/g;function b(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let w=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new C(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case r.ViewEncapsulation.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new x(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case r.ViewEncapsulation.ShadowDom:return new $(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=b(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](p),r["\u0275\u0275inject"](m),r["\u0275\u0275inject"](r.APP_ID))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();class C{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(v[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);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;const i=v[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=v[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,i){i&(r.RendererStyleFlags2.DashCase|r.RendererStyleFlags2.Important)?e.style.setProperty(t,n,i&r.RendererStyleFlags2.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&r.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,_(n)):this.eventManager.addEventListener(e,t,_(n))}}class x extends C{constructor(e,t,n,r){super(e),this.component=n;const i=b(r+"-"+n.id,n.styles,[]);t.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(y,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(y,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class $ extends C{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=b(r.id,r.styles,[]);for(let s=0;s{class e extends f{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)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](i.c))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const E=["alt","control","meta","shift"],O={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},I={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},k={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let T=(()=>{class e extends f{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const s=e.parseEventName(n),o=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(i.s)().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=e._normalizeKey(n.pop());let s="";if(E.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),s+=e+".")}),s+=i,0!=n.length||0===i.length)return null;const o={};return o.domEventName=r,o.fullKey=s,o}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&I.hasOwnProperty(t)&&(t=I[t]))}return O[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),E.forEach(r=>{r!=n&&(0,k[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(t,n,r){return i=>{e.getEventFullKey(i)===t&&r.runGuarded(()=>n(i))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](i.c))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const j=[{provide:r.PLATFORM_ID,useValue:i.r},{provide:r.PLATFORM_INITIALIZER,useValue:function(){o.makeCurrent(),d.init()},multi:!0},{provide:i.c,useFactory:function(){return Object(r["\u0275setDocument"])(document),document},deps:[]}],V=Object(r.createPlatformFactory)(r.platformCore,"browser",j),P=[[],{provide:r["\u0275INJECTOR_SCOPE"],useValue:"root"},{provide:r.ErrorHandler,useFactory:function(){return new r.ErrorHandler},deps:[]},{provide:h,useClass:S,multi:!0,deps:[i.c,r.NgZone,r.PLATFORM_ID]},{provide:h,useClass:T,multi:!0,deps:[i.c]},[],{provide:w,useClass:w,deps:[p,m,r.APP_ID]},{provide:r.RendererFactory2,useExisting:w},{provide:g,useExisting:m},{provide:m,useClass:m,deps:[i.c]},{provide:r.Testability,useClass:r.Testability,deps:[r.NgZone]},{provide:p,useClass:p,deps:[h,r.NgZone]},[]];let M=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:r.APP_ID,useValue:t.appId},{provide:u,useExisting:r.APP_ID},c]}}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)(r["\u0275\u0275inject"](e,12))},providers:P,imports:[i.b,r.ApplicationModule]}),e})();"undefined"!=typeof window&&window;var A=n("LRne"),N=n("HDdC"),D=n("bOdf"),R=n("pLZG"),F=n("lJxs");class L{}class B{}class H{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),r=n.toLowerCase(),i=e.slice(t+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(i):this.headers.set(r,[i])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof H?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new H;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof H?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const i=e.value;if(i){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===i.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class U{encodeKey(e){return q(e)}encodeValue(e){return q(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function q(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class W{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new U,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.split("&").forEach(e=>{const r=e.indexOf("="),[i,s]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],o=n.get(i)||[];o.push(s),n.set(i,o)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new W({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat([e]),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function z(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function G(e){return"undefined"!=typeof Blob&&e instanceof Blob}function K(e){return"undefined"!=typeof FormData&&e instanceof FormData}class Q{constructor(e,t,n,r){let i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new H),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":nt.set(n,e.setHeaders[n]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new Q(t,n,i,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:s})}}var Z=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({});class X{constructor(e,t=200,n="OK"){this.headers=e.headers||new H,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class Y extends X{constructor(e={}){super(e),this.type=Z.ResponseHeader}clone(e={}){return new Y({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class J extends X{constructor(e={}){super(e),this.type=Z.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new J({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class ee extends X{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function te(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let ne=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof Q)r=e;else{let i=void 0;i=n.headers instanceof H?n.headers:new H(n.headers);let s=void 0;n.params&&(s=n.params instanceof W?n.params:new W({fromObject:n.params})),r=new Q(e,t,void 0!==n.body?n.body:null,{headers:i,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=Object(A.a)(r).pipe(Object(D.a)(e=>this.handler.handle(e)));if(e instanceof Q||"events"===n.observe)return i;const s=i.pipe(Object(R.a)(e=>e instanceof J));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(Object(F.a)(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return s.pipe(Object(F.a)(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return s.pipe(Object(F.a)(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return s.pipe(Object(F.a)(e=>e.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new W).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,te(n,t))}post(e,t,n={}){return this.request("POST",e,te(n,t))}put(e,t,n={}){return this.request("PUT",e,te(n,t))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](L))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();class re{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const ie=new r.InjectionToken("HTTP_INTERCEPTORS");let se=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const oe=/^\)\]\}',?\n/;class ae{}let le=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),ue=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new N.a(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const r=e.serializeBody();let i=null;const s=()=>{if(null!==i)return i;const t=1223===n.status?204:n.status,r=n.statusText||"OK",s=new H(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return i=new Y({headers:s,status:t,statusText:r,url:o}),i},o=()=>{let{headers:r,status:i,statusText:o,url:a}=s(),l=null;204!==i&&(l=void 0===n.response?n.responseText:n.response),0===i&&(i=l?200:0);let u=i>=200&&i<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(oe,"");try{l=""!==l?JSON.parse(l):null}catch(c){l=e,u&&(u=!1,l={error:c,text:l})}}u?(t.next(new J({body:l,headers:r,status:i,statusText:o,url:a||void 0})),t.complete()):t.error(new ee({error:l,headers:r,status:i,statusText:o,url:a||void 0}))},a=e=>{const{url:r}=s(),i=new ee({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});t.error(i)};let l=!1;const u=r=>{l||(t.next(s()),l=!0);let i={type:Z.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===e.responseType&&n.responseText&&(i.partialText=n.responseText),t.next(i)},c=e=>{let n={type:Z.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),e.reportProgress&&(n.addEventListener("progress",u),null!==r&&n.upload&&n.upload.addEventListener("progress",c)),n.send(r),t.next({type:Z.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),e.reportProgress&&(n.removeEventListener("progress",u),null!==r&&n.upload&&n.upload.removeEventListener("progress",c)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](ae))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const ce=new r.InjectionToken("XSRF_COOKIE_NAME"),de=new r.InjectionToken("XSRF_HEADER_NAME");class he{}let pe=(()=>{class e{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(i.t)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](i.c),r["\u0275\u0275inject"](r.PLATFORM_ID),r["\u0275\u0275inject"](ce))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),fe=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](he),r["\u0275\u0275inject"](de))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),ge=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(ie,[]);this.chain=e.reduceRight((e,t)=>new re(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](B),r["\u0275\u0275inject"](r.Injector))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),me=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:fe,useClass:se}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:ce,useValue:t.cookieName}:[],t.headerName?{provide:de,useValue:t.headerName}:[]]}}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[fe,{provide:ie,useExisting:fe,multi:!0},{provide:he,useClass:pe},{provide:ce,useValue:"XSRF-TOKEN"},{provide:de,useValue:"X-XSRF-TOKEN"}]}),e})(),ve=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[ne,{provide:L,useClass:ge},ue,{provide:B,useExisting:ue},le,{provide:ae,useExisting:le}],imports:[[me.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();var ye=n("3Pt+"),be=n("Cfvw"),_e=n("2Vo4"),we=n("itXk"),Ce=n("sVev"),xe=n("NXyV"),$e=n("EY2u"),Se=n("XNiG"),Ee=n("0EUg"),Oe=n("NJ9Y"),Ie=n("eIep"),ke=n("IzEk"),Te=n("JX91"),je=n("Kqap"),Ve=n("JIr8"),Pe=n("SxV6"),Me=n("7wxJ"),Ae=n("5+tZ"),Ne=n("vkgz"),De=n("BFxc"),Re=n("nYR2"),Fe=n("bHdf");class Le{constructor(e,t){this.id=e,this.url=t}}class Be extends Le{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class He extends Le{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ue extends Le{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class qe extends Le{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class We extends Le{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ze extends Le{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ge extends Le{constructor(e,t,n,r,i){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ke extends Le{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qe extends Le{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ze{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Xe{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ye{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Je{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class et{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tt{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nt{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class rt{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function it(e){return new rt(e)}function st(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function ot(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.lengthr[t]===e)}return e===t}function ut(e){return Array.prototype.concat.apply([],e)}function ct(e){return e.length>0?e[e.length-1]:null}function dt(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function ht(e){return Object(r["\u0275isObservable"])(e)?e:Object(r["\u0275isPromise"])(e)?Object(be.a)(Promise.resolve(e)):Object(A.a)(e)}function pt(e,t,n){return n?function(e,t){return at(e,t)}(e.queryParams,t.queryParams)&&ft(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>lt(e[n],t[n]))}(e.queryParams,t.queryParams)&>(e.root,t.root)}function ft(e,t){if(!_t(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children){if(!e.children[n])return!1;if(!ft(e.children[n],t.children[n]))return!1}return!0}function gt(e,t){return mt(e,t,t.segments)}function mt(e,t,n){if(e.segments.length>n.length)return!!_t(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!_t(e.segments,n))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!gt(e.children[n],t.children[n]))return!1}return!0}{const r=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!_t(e.segments,r)&&!!e.children.primary&&mt(e.children.primary,t,i)}}class vt{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=it(this.queryParams)),this._queryParamMap}toString(){return $t.serialize(this)}}class yt{constructor(e,t){this.segments=e,this.children=t,this.parent=null,dt(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return St(this)}}class bt{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=it(this.parameters)),this._parameterMap}toString(){return Vt(this)}}function _t(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function wt(e,t){let n=[];return dt(e.children,(e,r)=>{"primary"===r&&(n=n.concat(t(e,r)))}),dt(e.children,(e,r)=>{"primary"!==r&&(n=n.concat(t(e,r)))}),n}class Ct{}class xt{parse(e){const t=new Dt(e);return new vt(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){return`${"/"+Et(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${It(t)}=${It(e)}`).join("&"):`${It(t)}=${It(n)}`});return t.length?"?"+t.join("&"):""}(e.queryParams)}${"string"==typeof e.fragment?"#"+encodeURI(e.fragment):""}`}}const $t=new xt;function St(e){return e.segments.map(e=>Vt(e)).join("/")}function Et(e,t){if(!e.hasChildren())return St(e);if(t){const t=e.children.primary?Et(e.children.primary,!1):"",n=[];return dt(e.children,(e,t)=>{"primary"!==t&&n.push(`${t}:${Et(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=wt(e,(t,n)=>"primary"===n?[Et(e.children.primary,!1)]:[`${n}:${Et(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${St(e)}/${t[0]}`:`${St(e)}/(${t.join("//")})`}}function Ot(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function It(e){return Ot(e).replace(/%3B/gi,";")}function kt(e){return Ot(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Tt(e){return decodeURIComponent(e)}function jt(e){return Tt(e.replace(/\+/g,"%20"))}function Vt(e){return`${kt(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${kt(e)}=${kt(t[e])}`).join("")}`;var t}const Pt=/^[^\/()?;=#]+/;function Mt(e){const t=e.match(Pt);return t?t[0]:""}const At=/^[^=?&#]+/,Nt=/^[^?&#]+/;class Dt{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new yt([],{}):new yt([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new yt(e,t)),n}parseSegment(){const e=Mt(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new bt(Tt(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Mt(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Mt(this.remaining);e&&(n=e,this.capture(n))}e[Tt(t)]=Tt(n)}parseQueryParam(e){const t=function(e){const t=e.match(At);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(Nt);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const r=jt(t),i=jt(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(t=[t],e[r]=t),t.push(i)}else e[r]=i}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Mt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i="primary");const s=this.parseChildren();t[i]=1===Object.keys(s).length?s.primary:new yt([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class Rt{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Ft(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Ft(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Lt(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Lt(e,this._root).map(e=>e.value)}}function Ft(e,t){if(e===t.value)return t;for(const n of t.children){const t=Ft(e,n);if(t)return t}return null}function Lt(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Lt(e,n);if(r.length)return r.unshift(t),r}return[]}class Bt{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Ht(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Ut extends Rt{constructor(e,t){super(e),this.snapshot=t,Qt(this,e)}toString(){return this.snapshot.toString()}}function qt(e,t){const n=function(e,t){const n=new Gt([],{},{},"",{},"primary",t,null,e.root,-1,{});return new Kt("",new Bt(n,[]))}(e,t),r=new _e.a([new bt("",{})]),i=new _e.a({}),s=new _e.a({}),o=new _e.a({}),a=new _e.a(""),l=new Wt(r,i,o,a,s,"primary",t,n.root);return l.snapshot=n.root,new Ut(new Bt(l,[]),n)}class Wt{constructor(e,t,n,r,i,s,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(F.a)(e=>it(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(F.a)(e=>it(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function zt(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Gt{constructor(e,t,n,r,i,s,o,a,l,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=it(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=it(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Kt extends Rt{constructor(e,t){super(t),this.url=e,Qt(this,t)}toString(){return Zt(this._root)}}function Qt(e,t){t.value._routerState=e,t.children.forEach(t=>Qt(e,t))}function Zt(e){const t=e.children.length>0?` { ${e.children.map(Zt).join(", ")} } `:"";return`${e.value}${t}`}function Xt(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,at(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),at(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;nat(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||Yt(e.parent,t.parent))}function Jt(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const i=function(e,t,n){return t.children.map(t=>{for(const r of n.children)if(e.shouldReuseRoute(t.value,r.value.snapshot))return Jt(e,t,r);return Jt(e,t)})}(e,t,n);return new Bt(r,i)}{const n=e.retrieve(t.value);if(n){const e=n.route;return en(t,e),e}{const n=new Wt(new _e.a((r=t.value).url),new _e.a(r.params),new _e.a(r.queryParams),new _e.a(r.fragment),new _e.a(r.data),r.outlet,r.component,r),i=t.children.map(t=>Jt(e,t));return new Bt(n,i)}}var r}function en(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(let n=0;n{s[t]=Array.isArray(e)?e.map(e=>""+e):""+e}),new vt(n.root===e?t:sn(n.root,e,t),s,i)}function sn(e,t,n){const r={};return dt(e.children,(e,i)=>{r[i]=e===t?n:sn(e,t,n)}),new yt(e.segments,r)}class on{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&tn(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(nn);if(r&&r!==ct(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class an{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function ln(e,t,n){if(e||(e=new yt([],{})),0===e.segments.length&&e.hasChildren())return un(e,t,n);const r=function(e,t,n){let r=0,i=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return s;const t=e.segments[i],o=n[r];if(nn(o))break;const a=""+o,l=r0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!pn(a,l,t))return s;r+=2}else{if(!pn(a,{},t))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(i[r]=ln(e.children[r],t,n))}),dt(e.children,(e,t)=>{void 0===r[t]&&(i[t]=e)}),new yt(e.segments,i)}}function cn(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=cn(new yt([],{}),0,e))}),t}function hn(e){const t={};return dt(e,(e,n)=>t[n]=""+e),t}function pn(e,t,n){return e==n.path&&at(t,n.parameters)}class fn{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),Xt(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=Ht(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),dt(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(e,t,i.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const r=Ht(e),i=e.value.component?n.children:t;dt(r,(e,t)=>this.deactivateRouteAndItsChildren(e,i)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const r=Ht(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new tt(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Je(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(Xt(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,i.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),gn(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),i=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=i,t.outlet&&t.outlet.activateWith(r,i),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function gn(e){Xt(e.value),e.children.forEach(gn)}class mn{constructor(e,t){this.routes=e,this.module=t}}function vn(e){return"function"==typeof e}function yn(e){return e instanceof vt}const bn=Symbol("INITIAL_VALUE");function _n(){return Object(Ie.a)(e=>Object(we.b)(...e.map(e=>e.pipe(Object(ke.a)(1),Object(Te.a)(bn)))).pipe(Object(je.a)((e,t)=>{let n=!1;return t.reduce((e,r,i)=>{if(e!==bn)return e;if(r===bn&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||yn(r))return r}return e},e)},bn),Object(R.a)(e=>e!==bn),Object(F.a)(e=>yn(e)?e:!0===e),Object(ke.a)(1)))}let wn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&r["\u0275\u0275element"](0,"router-outlet")},directives:function(){return[pr]},encapsulation:2}),e})();function Cn(e,t=""){for(let n=0;nt.error(new On(e)))}function Tn(e){return new N.a(t=>t.error(new In(e)))}function jn(e){return new N.a(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Vn{constructor(e,t,n,i,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(r.NgModuleRef)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(F.a)(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(Ve.a)(e=>{if(e instanceof In)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof On)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(Object(F.a)(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(Object(Ve.a)(e=>{if(e instanceof On)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new yt([],{primary:e}):e;return new vt(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(F.a)(e=>new yt([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return Object(A.a)({});const n=[],r=[],i={};return dt(e,(e,s)=>{const o=t(s,e).pipe(Object(F.a)(e=>i[s]=e));"primary"===s?n.push(o):r.push(o)}),A.a.apply(null,n.concat(r)).pipe(Object(Ee.a)(),Object(Oe.a)(),Object(F.a)(()=>i))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,i,s){const o=function(e){return e.reduce((e,t)=>{const n=En(t);return e.has(n)?e.get(n).push(t):e.set(n,[t]),e},new Map)}(n);o.has(i)||o.set(i,[]);const a=n=>Object(be.a)(n).pipe(Object(D.a)(o=>this.expandSegmentAgainstRoute(e,t,n,o,r,i,s).pipe(Object(Ve.a)(e=>{if(e instanceof On)return Object(A.a)(null);throw e}))),Object(Pe.a)(e=>null!==e),Object(Ve.a)(e=>{if(e instanceof Ce.a||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,i))return Object(A.a)(new yt([],{}));throw new On(t)}throw e})),l=Array.from(o.entries()).map(([e,t])=>{const n=a(t);return e===i?n:n.pipe(Object(F.a)(()=>null),Object(Ve.a)(()=>Object(A.a)(null)))});return Object(be.a)(l).pipe(Object(Me.a)(),Object(Pe.a)(),Object(F.a)(e=>e.find(e=>null!==e)))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,i,s,o){return En(r)!==s&&""!==r.path?kn(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s):kn(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Tn(i):this.lineralizeSegments(n,i).pipe(Object(Ae.b)(n=>{const i=new yt(n,{});return this.expandSegment(e,i,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:u}=Pn(t,r,i);if(!o)return kn(t);const c=this.applyRedirectCommands(a,r.redirectTo,u);return r.redirectTo.startsWith("/")?Tn(c):this.lineralizeSegments(r,c).pipe(Object(Ae.b)(r=>this.expandSegment(e,t,n,r.concat(i.slice(l)),s,!1)))}matchSegmentAgainstRoute(e,t,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(F.a)(e=>(n._loadedConfig=e,new yt(r,{})))):Object(A.a)(new yt(r,{}));const{matched:i,consumedSegments:s,lastChild:o}=Pn(t,n,r);if(!i)return kn(t);const a=r.slice(o);return this.getChildConfig(e,n,r).pipe(Object(Ae.b)(e=>{const n=e.module,r=e.routes,{segmentGroup:i,slicedSegments:o}=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some(n=>An(e,t,n)&&"primary"!==En(n))}(e,n,r)?{segmentGroup:Mn(new yt(t,function(e,t){const n={};n.primary=t;for(const r of e)""===r.path&&"primary"!==En(r)&&(n[En(r)]=new yt([],{}));return n}(r,new yt(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(n=>An(e,t,n))}(e,n,r)?{segmentGroup:Mn(new yt(e.segments,function(e,t,n,r){const i={};for(const s of n)An(e,t,s)&&!r[En(s)]&&(i[En(s)]=new yt([],{}));return Object.assign(Object.assign({},r),i)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,s,a,r);return 0===o.length&&i.hasChildren()?this.expandChildren(n,r,i).pipe(Object(F.a)(e=>new yt(s,e))):0===r.length&&0===o.length?Object(A.a)(new yt(s,{})):this.expandSegment(n,i,r,o,"primary",!0).pipe(Object(F.a)(e=>new yt(s.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Object(A.a)(new mn(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(A.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(Ae.b)(n=>n?this.configLoader.load(e.injector,t).pipe(Object(F.a)(e=>(t._loadedConfig=e,e))):function(e){return new N.a(t=>t.error(st(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):Object(A.a)(new mn([],e))}runCanLoadGuards(e,t,n){const r=t.canLoad;if(!r||0===r.length)return Object(A.a)(!0);const i=r.map(r=>{const i=e.get(r);let s;if(function(e){return e&&vn(e.canLoad)}(i))s=i.canLoad(t,n);else{if(!vn(i))throw new Error("Invalid CanLoad guard");s=i(t,n)}return ht(s)});return Object(A.a)(i).pipe(_n(),Object(Ne.a)(e=>{if(!yn(e))return;const t=st(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),Object(F.a)(e=>!0===e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(A.a)(n);if(r.numberOfChildren>1||!r.children.primary)return jn(e.redirectTo);r=r.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const i=this.createSegmentGroup(e,t.root,n,r);return new vt(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return dt(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const i=this.createSegments(e,t.segments,n,r);let s={};return dt(t.children,(t,i)=>{s[i]=this.createSegmentGroup(e,t,n,r)}),new yt(i,s)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function Pn(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(t.matcher||ot)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Mn(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new yt(e.segments.concat(t.segments),t.children)}return e}function An(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}class Nn{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Dn{constructor(e,t){this.component=e,this.route=t}}function Rn(e,t,n){const r=e._root;return Ln(r,t?t._root:null,n,[r.value])}function Fn(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Ln(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=Ht(t);return e.children.forEach(e=>{!function(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,o=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!_t(e.url,t.url);case"pathParamsOrQueryParamsChange":return!_t(e.url,t.url)||!at(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yt(e,t)||!at(e.queryParams,t.queryParams);case"paramsChange":default:return!Yt(e,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Nn(r)):(s.data=o.data,s._resolvedData=o._resolvedData),Ln(e,t,s.component?a?a.children:null:n,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Dn(a.outlet.component,o))}else o&&Bn(t,a,i),i.canActivateChecks.push(new Nn(r)),Ln(e,null,s.component?a?a.children:null:n,r,i)}(e,s[e.value.outlet],n,r.concat([e.value]),i),delete s[e.value.outlet]}),dt(s,(e,t)=>Bn(e,n.getContext(t),i)),i}function Bn(e,t,n){const r=Ht(e),i=e.value;dt(r,(e,r)=>{Bn(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Dn(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function Hn(e,t){return null!==e&&t&&t(new et(e)),Object(A.a)(!0)}function Un(e,t){return null!==e&&t&&t(new Ye(e)),Object(A.a)(!0)}function qn(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Object(A.a)(!0);const i=r.map(r=>Object(xe.a)(()=>{const i=Fn(r,t,n);let s;if(function(e){return e&&vn(e.canActivate)}(i))s=ht(i.canActivate(t,e));else{if(!vn(i))throw new Error("Invalid CanActivate guard");s=ht(i(t,e))}return s.pipe(Object(Pe.a)())}));return Object(A.a)(i).pipe(_n())}function Wn(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>Object(xe.a)(()=>{const i=t.guards.map(i=>{const s=Fn(i,t.node,n);let o;if(function(e){return e&&vn(e.canActivateChild)}(s))o=ht(s.canActivateChild(r,e));else{if(!vn(s))throw new Error("Invalid CanActivateChild guard");o=ht(s(r,e))}return o.pipe(Object(Pe.a)())});return Object(A.a)(i).pipe(_n())}));return Object(A.a)(i).pipe(_n())}class zn{}class Gn{constructor(e,t,n,r,i,s){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){try{const e=Zn(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new Gt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Bt(n,t),i=new Kt(this.url,r);return this.inheritParamsAndData(i._root),Object(A.a)(i)}catch(e){return new N.a(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=zt(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=wt(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};e.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),r=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value})}(n),n.sort((e,t)=>"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,r){for(const s of e)try{return this.processSegmentAgainstRoute(s,t,n,r)}catch(i){if(!(i instanceof zn))throw i}if(this.noLeftoversInUrl(t,n,r))return[];throw new zn}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new zn;if((e.outlet||"primary")!==r)throw new zn;let i,s=[],o=[];if("**"===e.path){const s=n.length>0?ct(n).parameters:{};i=new Gt(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Yn(e),r,e.component,e,Kn(t),Qn(t)+n.length,Jn(e))}else{const a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new zn;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||ot)(n,e,t);if(!r)throw new zn;const i={};dt(r.posParams,(e,t)=>{i[t]=e.path});const s=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(t,e,n);s=a.consumedSegments,o=n.slice(a.lastChild),i=new Gt(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Yn(e),r,e.component,e,Kn(t),Qn(t)+s.length,Jn(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:u}=Zn(t,s,o,a,this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const e=this.processChildren(a,l);return[new Bt(i,e)]}if(0===a.length&&0===u.length)return[new Bt(i,[])];const c=this.processSegment(a,l,u,"primary");return[new Bt(i,c)]}}function Kn(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Qn(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Zn(e,t,n,r,i){if(n.length>0&&function(e,t,n){return n.some(n=>Xn(e,t,n)&&"primary"!==En(n))}(e,n,r)){const i=new yt(t,function(e,t,n,r){const i={};i.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const s of n)if(""===s.path&&"primary"!==En(s)){const n=new yt([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,i[En(s)]=n}return i}(e,t,r,new yt(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>Xn(e,t,n))}(e,n,r)){const s=new yt(e.segments,function(e,t,n,r,i,s){const o={};for(const a of r)if(Xn(e,n,a)&&!i[En(a)]){const n=new yt([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===s?e.segments.length:t.length,o[En(a)]=n}return Object.assign(Object.assign({},i),o)}(e,t,n,r,e.children,i));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const s=new yt(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Xn(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Yn(e){return e.data||{}}function Jn(e){return e.resolve||{}}function er(e){return function(t){return t.pipe(Object(Ie.a)(t=>{const n=e(t);return n?Object(be.a)(n).pipe(Object(F.a)(()=>t)):Object(be.a)([t])}))}}class tr extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const nr=new r.InjectionToken("ROUTES");class rr{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(F.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new mn(ut(r.injector.get(nr)).map(Sn),r)}))}loadModuleFactory(e){return"string"==typeof e?Object(be.a)(this.loader.load(e)):ht(e()).pipe(Object(Ae.b)(e=>e instanceof r.NgModuleFactory?Object(A.a)(e):Object(be.a)(this.compiler.compileModuleAsync(e))))}}class ir{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new sr,this.attachRef=null}}class sr{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new ir,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class or{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function ar(e){throw e}function lr(e,t,n){return t.parse("/")}function ur(e,t){return Object(A.a)(null)}let cr=(()=>{class e{constructor(e,t,n,i,s,o,a,l){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Se.a,this.errorHandler=ar,this.malformedUriErrorHandler=lr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ur,afterPreactivation:ur},this.urlHandlingStrategy=new or,this.routeReuseStrategy=new tr,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(r.NgModuleRef),this.console=s.get(r["\u0275Console"]);const u=s.get(r.NgZone);this.isNgZoneEnabled=u instanceof r.NgZone,this.resetConfig(l),this.currentUrlTree=new vt(new yt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new rr(o,a,e=>this.triggerEvent(new Ze(e)),e=>this.triggerEvent(new Xe(e))),this.routerState=qt(this.currentUrlTree,this.rootComponentType),this.transitions=new _e.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(Object(R.a)(e=>0!==e.id),Object(F.a)(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Object(Ie.a)(e=>{let n=!1,r=!1;return Object(A.a)(e).pipe(Object(Ne.a)(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(Ie.a)(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(A.a)(e).pipe(Object(Ie.a)(e=>{const n=this.transitions.getValue();return t.next(new Be(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?$e.a:[e]}),Object(Ie.a)(e=>Promise.resolve(e)),(r=this.ngModule.injector,i=this.configLoader,s=this.urlSerializer,o=this.config,function(e){return e.pipe(Object(Ie.a)(e=>function(e,t,n,r,i){return new Vn(e,t,n,r,i).apply()}(r,i,s,e.extractedUrl,o).pipe(Object(F.a)(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t})))))}),Object(Ne.a)(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,i){return function(s){return s.pipe(Object(Ae.b)(s=>function(e,t,n,r,i="emptyOnly",s="legacy"){return new Gn(e,t,n,r,i,s).recognize()}(e,t,s.urlAfterRedirects,n(s.urlAfterRedirects),r,i).pipe(Object(F.a)(e=>Object.assign(Object.assign({},s),{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(Ne.a)(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Object(Ne.a)(e=>{const n=new We(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var r,i,s,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:s,extras:o}=e,a=new Be(n,this.serializeUrl(r),i,s);t.next(a);const l=qt(r,this.rootComponentType).snapshot;return Object(A.a)(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),$e.a}),er(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),Object(Ne.a)(e=>{const t=new ze(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(F.a)(e=>Object.assign(Object.assign({},e),{guards:Rn(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(Object(Ae.b)(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?Object(A.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return Object(be.a)(e).pipe(Object(Ae.b)(e=>function(e,t,n,r,i){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!s||0===s.length)return Object(A.a)(!0);const o=s.map(s=>{const o=Fn(s,t,i);let a;if(function(e){return e&&vn(e.canDeactivate)}(o))a=ht(o.canDeactivate(e,t,n,r));else{if(!vn(o))throw new Error("Invalid CanDeactivate guard");a=ht(o(e,t,n,r))}return a.pipe(Object(Pe.a)())});return Object(A.a)(o).pipe(_n())}(e.component,e.route,n,t,r)),Object(Pe.a)(e=>!0!==e,!0))}(o,r,i,e).pipe(Object(Ae.b)(n=>n&&"boolean"==typeof n?function(e,t,n,r){return Object(be.a)(t).pipe(Object(D.a)(t=>Object(be.a)([Un(t.route.parent,r),Hn(t.route,r),Wn(e,t.path,n),qn(e,t.route,n)]).pipe(Object(Ee.a)(),Object(Pe.a)(e=>!0!==e,!0))),Object(Pe.a)(e=>!0!==e,!0))}(r,s,e,t):Object(A.a)(n)),Object(F.a)(e=>Object.assign(Object.assign({},n),{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),Object(Ne.a)(e=>{if(yn(e.guardsResult)){const t=st(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),Object(Ne.a)(e=>{const t=new Ge(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Object(R.a)(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Ue(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),er(e=>{if(e.guards.canActivateChecks.length)return Object(A.a)(e).pipe(Object(Ne.a)(e=>{const t=new Ke(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(Ie.a)(e=>{let n=!1;return Object(A.a)(e).pipe((r=this.paramsInheritanceStrategy,i=this.ngModule.injector,function(e){return e.pipe(Object(Ae.b)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return Object(A.a)(e);let s=0;return Object(be.a)(n).pipe(Object(D.a)(e=>function(e,t,n,r){return function(e,t,n,r){const i=Object.keys(e);if(0===i.length)return Object(A.a)({});const s={};return Object(be.a)(i).pipe(Object(Ae.b)(i=>function(e,t,n,r){const i=Fn(e,t,r);return ht(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe(Object(Ne.a)(e=>{s[i]=e}))),Object(De.a)(1),Object(Ae.b)(()=>Object.keys(s).length===i.length?Object(A.a)(s):$e.a))}(e._resolve,e,t,r).pipe(Object(F.a)(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),zt(e,n).resolve),null)))}(e.route,t,r,i)),Object(Ne.a)(()=>s++),Object(De.a)(1),Object(Ae.b)(t=>s===n.length?Object(A.a)(e):$e.a))}))}),Object(Ne.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new Ue(e.id,this.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");t.next(n),e.resolve(!1)}}}));var r,i}),Object(Ne.a)(e=>{const t=new Qe(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),er(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),Object(F.a)(e=>{const t=function(e,t,n){const r=Jt(e,t._root,n?n._root:void 0);return new Ut(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),Object(Ne.a)(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(i=this.rootContexts,s=this.routeReuseStrategy,o=e=>this.triggerEvent(e),Object(F.a)(e=>(new fn(s,e.targetRouterState,e.currentRouterState,o).activate(i),e))),Object(Ne.a)({next(){n=!0},complete(){n=!0}}),Object(Re.a)(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new Ue(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),Object(Ve.a)(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=yn(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const i=new Ue(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(i),r?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new qe(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}var i;return $e.a}));var i,s,o}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,t)&&setTimeout(()=>{const{source:e,state:n,urlTree:r}=t,i={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,0!==Object.keys(e).length&&(i.state=e)}this.scheduleNavigation(r,e,n,i)},0),this.lastLocationChangeInfo=t}))}extractLocationChangeInfoFromEvent(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,t){if(!e)return!0;const n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Cn(e),this.config=e.map(Sn),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:i,queryParamsHandling:s,preserveFragment:o}=t,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:i;let u=null;switch(s){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}return null!==u&&(u=this.removeEmptyProps(u)),function(e,t,n,r,i){if(0===n.length)return rn(t.root,t.root,t,r,i);const s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new on(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return dt(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new on(n,t,r)}(n);if(s.toRoot())return rn(t.root,new yt([],{}),t,r,i);const o=function(e,t,n){if(e.isAbsolute)return new an(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new an(e,e===t.root,0)}const r=tn(e.commands[0])?0:1;return function(e,t,n){let r=e,i=t,s=n;for(;s>i;){if(s-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new an(r,!1,i-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(s,t,e),a=o.processChildren?un(o.segmentGroup,o.index,s.commands):ln(o.segmentGroup,o.index,s.commands);return rn(o.segmentGroup,a,t,r,i)}(a,this.currentUrlTree,e,u,l)}navigateByUrl(e,t={skipLocationChange:!1}){const n=yn(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new He(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r,i){const s=this.getTransition(),o="imperative"!==t&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===e.toString();if(o&&a)return Promise.resolve(!0);let l,u,c;i?(l=i.resolve,u=i.reject,c=i.promise):c=new Promise((e,t)=>{l=e,u=t});const d=++this.navigationId;return this.setTransition({id:d,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:l,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const i=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(i)||t?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](r.Type),r["\u0275\u0275inject"](Ct),r["\u0275\u0275inject"](sr),r["\u0275\u0275inject"](i.h),r["\u0275\u0275inject"](r.Injector),r["\u0275\u0275inject"](r.NgModuleFactoryLoader),r["\u0275\u0275inject"](r.Compiler),r["\u0275\u0275inject"](void 0))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),dr=(()=>{class e{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new Se.a,this.subscription=e.events.subscribe(e=>{e instanceof He&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,r,i){if(0!==e||t||n||r||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:hr(this.skipLocationChange),replaceUrl:hr(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:hr(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](cr),r["\u0275\u0275directiveInject"](Wt),r["\u0275\u0275directiveInject"](i.i))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(r["\u0275\u0275hostProperty"]("href",t.href,r["\u0275\u0275sanitizeUrl"]),r["\u0275\u0275attribute"]("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r["\u0275\u0275NgOnChangesFeature"]]}),e})();function hr(e){return""===e||!!e}let pr=(()=>{class e{constructor(e,t,n,i,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.EventEmitter,this.deactivateEvents=new r.EventEmitter,this.name=i||"primary",e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new fr(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](sr),r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.ComponentFactoryResolver),r["\u0275\u0275injectAttribute"]("name"),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class fr{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Wt?this.route:e===sr?this.childContexts:this.parent.get(e,t)}}class gr{}class mr{preload(e,t){return Object(A.a)(null)}}let vr=(()=>{class e{constructor(e,t,n,r,i){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=new rr(t,n,t=>e.triggerEvent(new Ze(t)),t=>e.triggerEvent(new Xe(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(R.a)(e=>e instanceof He),Object(D.a)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(r.NgModuleRef);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return Object(be.a)(n).pipe(Object(Fe.a)(),Object(F.a)(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(Object(Ae.b)(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](cr),r["\u0275\u0275inject"](r.NgModuleFactoryLoader),r["\u0275\u0275inject"](r.Compiler),r["\u0275\u0275inject"](r.Injector),r["\u0275\u0275inject"](gr))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),yr=(()=>{class e{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Be?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof He&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof nt&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new nt(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](cr),r["\u0275\u0275inject"](i.p),r["\u0275\u0275inject"](void 0))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const br=new r.InjectionToken("ROUTER_CONFIGURATION"),_r=new r.InjectionToken("ROUTER_FORROOT_GUARD"),wr=[i.h,{provide:Ct,useClass:xt},{provide:cr,useFactory:function(e,t,n,r,s,o,a,l={},u,c){const d=new cr(null,e,t,n,r,s,o,ut(a));if(u&&(d.urlHandlingStrategy=u),c&&(d.routeReuseStrategy=c),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(l,d),l.enableTracing){const e=Object(i.s)();d.events.subscribe(t=>{e.logGroup("Router Event: "+t.constructor.name),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return d},deps:[Ct,sr,i.h,r.Injector,r.NgModuleFactoryLoader,r.Compiler,nr,br,[class{},new r.Optional],[class{},new r.Optional]]},sr,{provide:Wt,useFactory:function(e){return e.routerState.root},deps:[cr]},{provide:r.NgModuleFactoryLoader,useClass:r.SystemJsNgModuleLoader},vr,mr,class{preload(e,t){return t().pipe(Object(Ve.a)(()=>Object(A.a)(null)))}},{provide:br,useValue:{enableTracing:!1}}];function Cr(){return new r.NgProbeToken("Router",cr)}let xr=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[wr,Or(t),{provide:_r,useFactory:Er,deps:[[cr,new r.Optional,new r.SkipSelf]]},{provide:br,useValue:n||{}},{provide:i.i,useFactory:Sr,deps:[i.o,[new r.Inject(i.a),new r.Optional],br]},{provide:yr,useFactory:$r,deps:[cr,i.p,br]},{provide:gr,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:mr},{provide:r.NgProbeToken,multi:!0,useFactory:Cr},[Ir,{provide:r.APP_INITIALIZER,multi:!0,useFactory:kr,deps:[Ir]},{provide:jr,useFactory:Tr,deps:[Ir]},{provide:r.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:jr}]]}}static forChild(t){return{ngModule:e,providers:[Or(t)]}}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)(r["\u0275\u0275inject"](_r,8),r["\u0275\u0275inject"](cr,8))}}),e})();function $r(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new yr(e,t,n)}function Sr(e,t,n={}){return n.useHash?new i.e(e,t):new i.n(e,t)}function Er(e){return"guarded"}function Or(e){return[{provide:r.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:e},{provide:nr,multi:!0,useValue:e}]}let Ir=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new Se.a}appInitializer(){return this.injector.get(i.g,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(cr),r=this.injector.get(br);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Object(A.a)(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(br),n=this.injector.get(vr),i=this.injector.get(yr),s=this.injector.get(cr),o=this.injector.get(r.ApplicationRef);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||s.initialNavigation(),n.setUpPreloading(),i.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](r.Injector))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();function kr(e){return e.appInitializer.bind(e)}function Tr(e){return e.bootstrapListener.bind(e)}const jr=new r.InjectionToken("Router Initializer");var Vr=n("jn5B"),Pr=n("VRyK"),Mr=n("GyhO"),Ar=n("w1tV"),Nr=n("IAdc");class Dr{}let Rr=(()=>{class e extends Dr{getTranslation(e){return Object(A.a)({})}}return e.\u0275fac=function(t){return Fr(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const Fr=r["\u0275\u0275getInheritedFactory"](Rr);class Lr{}let Br=(()=>{class e{handle(e){return e.key}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();class Hr{}let Ur=(()=>{class e extends Hr{compile(e,t){return e}compileTranslations(e,t){return e}}return e.\u0275fac=function(t){return qr(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const qr=r["\u0275\u0275getInheritedFactory"](Ur);function Wr(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;let n,r,i,s=typeof e;if(s==typeof t&&"object"==s){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(r in i=Object.create(null),e){if(!Wr(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&void 0!==t[r])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(r=0;r{Gr(t[r])?r in e?n[r]=Kr(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Object.assign(n,{[r]:t[r]})}),n}class Qr{}let Zr=(()=>{class e extends Qr{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let n;return n="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,n}getValue(e,t){let n=t.split(".");t="";do{t+=n.shift(),!zr(e)||!zr(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(e,n)=>{let r=this.getValue(t,n);return zr(r)?r:e}):e}}return e.\u0275fac=function(t){return Xr(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const Xr=r["\u0275\u0275getInheritedFactory"](Zr);class Yr{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new r.EventEmitter,this.onLangChange=new r.EventEmitter,this.onDefaultLangChange=new r.EventEmitter}}const Jr=new r.InjectionToken("USE_STORE"),ei=new r.InjectionToken("USE_DEFAULT_LANG");let ti=(()=>{class e{constructor(e,t,n,i,s,o=!0,a=!1){this.store=e,this.currentLoader=t,this.compiler=n,this.parser=i,this.missingTranslationHandler=s,this.useDefaultLang=o,this.isolate=a,this.pending=!1,this._onTranslationChange=new r.EventEmitter,this._onLangChange=new r.EventEmitter,this._onDefaultLangChange=new r.EventEmitter,this._langs=[],this._translations={},this._translationRequests={}}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);void 0!==t?(this.defaultLang||(this.defaultLang=e),t.pipe(Object(ke.a)(1)).subscribe(t=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Object(A.a)(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe(Object(ke.a)(1)).subscribe(t=>{this.changeLang(e)}),t):(this.changeLang(e),Object(A.a)(this.translations[e]))}retrieveTranslations(e){let t;return void 0===this.translations[e]&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Object(Ar.a)());return this.loadingTranslations=t.pipe(Object(ke.a)(1),Object(F.a)(t=>this.compiler.compileTranslations(t,e)),Object(Ar.a)()),this.loadingTranslations.subscribe(t=>{this.translations[e]=t,this.updateLangs(),this.pending=!1},e=>{this.pending=!1}),t}setTranslation(e,t,n=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=n&&this.translations[e]?Kr(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(e=>{-1===this.langs.indexOf(e)&&this.langs.push(e)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,n){let r;if(t instanceof Array){let r={},i=!1;for(let s of t)r[s]=this.getParsedResult(e,s,n),"function"==typeof r[s].subscribe&&(i=!0);if(i){let e;for(let n of t){let t="function"==typeof r[n].subscribe?r[n]:Object(A.a)(r[n]);e=void 0===e?t:Object(Pr.a)(e,t)}return e.pipe(Object(Nr.a)(),Object(F.a)(e=>{let n={};return e.forEach((e,r)=>{n[t[r]]=e}),n}))}return r}if(e&&(r=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===r&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===r){let e={key:t,translateService:this};void 0!==n&&(e.interpolateParams=n),r=this.missingTranslationHandler.handle(e)}return void 0!==r?r:t}get(e,t){if(!zr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return N.a.create(n=>{let r=e=>{n.next(e),n.complete()},i=e=>{n.error(e)};this.loadingTranslations.subscribe(n=>{"function"==typeof(n=this.getParsedResult(n,e,t)).subscribe?n.subscribe(r,i):r(n)},i)});{let n=this.getParsedResult(this.translations[this.currentLang],e,t);return"function"==typeof n.subscribe?n:Object(A.a)(n)}}stream(e,t){if(!zr(e)||!e.length)throw new Error('Parameter "key" required');return Object(Mr.a)(this.get(e,t),this.onLangChange.pipe(Object(Ie.a)(n=>{const r=this.getParsedResult(n.translations,e,t);return"function"==typeof r.subscribe?r:Object(A.a)(r)})))}instant(e,t){if(!zr(e)||!e.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],e,t);if(void 0!==n.subscribe){if(e instanceof Array){let t={};return e.forEach((n,r)=>{t[e[r]]=e[r]}),t}return e}return n}set(e,t,n=this.currentLang){this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang||this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](Yr),r["\u0275\u0275inject"](Dr),r["\u0275\u0275inject"](Hr),r["\u0275\u0275inject"](Qr),r["\u0275\u0275inject"](Lr),r["\u0275\u0275inject"](ei),r["\u0275\u0275inject"](Jr))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),ni=(()=>{class e{constructor(e,t,n){this.translateService=e,this.element=t,this._ref=n,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(e=>{e.lang===this.translateService.currentLang&&this.checkNodes(!0,e.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(e=>{this.checkNodes(!0,e.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(e=>{this.checkNodes(!0)}))}set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){Wr(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,t){let n=this.element.nativeElement.childNodes;n.length||(this.setContent(this.element.nativeElement,this.key),n=this.element.nativeElement.childNodes);for(let r=0;r{n!==e&&(t.lastKey=e),t.originalContent||(t.originalContent=this.getContent(t)),t.currentValue=zr(n)?n:t.originalContent||e,this.setContent(t,this.key?t.currentValue:t.originalContent.replace(e,t.currentValue)),this._ref.markForCheck()};if(zr(n)){let t=this.translateService.getParsedResult(n,e,this.currentParams);"function"==typeof t.subscribe?t.subscribe(r):r(t)}else this.translateService.get(e,this.currentParams).subscribe(r)}}getContent(e){return zr(e.textContent)?e.textContent:e.data}setContent(e,t){zr(e.textContent)?e.textContent=t:e.data=t}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ti),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),e})(),ri=(()=>{class e{constructor(e,t){this.translate=e,this._ref=t,this.value=""}updateValue(e,t,n){let r=t=>{this.value=void 0!==t?t:e,this.lastKey=e,this._ref.markForCheck()};if(n){let i=this.translate.getParsedResult(n,e,t);"function"==typeof i.subscribe?i.subscribe(r):r(i)}this.translate.get(e,t).subscribe(r)}transform(e,...t){if(!e||0===e.length)return e;if(Wr(e,this.lastKey)&&Wr(t,this.lastParams))return this.value;let n;if(zr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let e=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(e)}catch(r){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+t[0])}}else"object"!=typeof t[0]||Array.isArray(t[0])||(n=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(t=>{this.lastKey&&t.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,n,t.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(t=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n,t.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ti),r["\u0275\u0275injectPipeChangeDetectorRef"]())},e.\u0275pipe=r["\u0275\u0275definePipe"]({name:"translate",type:e,pure:!1}),e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),ii=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[t.loader||{provide:Dr,useClass:Rr},t.compiler||{provide:Hr,useClass:Ur},t.parser||{provide:Qr,useClass:Zr},t.missingTranslationHandler||{provide:Lr,useClass:Br},Yr,{provide:Jr,useValue:t.isolate},{provide:ei,useValue:t.useDefaultLang},ti]}}static forChild(t={}){return{ngModule:e,providers:[t.loader||{provide:Dr,useClass:Rr},t.compiler||{provide:Hr,useClass:Ur},t.parser||{provide:Qr,useClass:Zr},t.missingTranslationHandler||{provide:Lr,useClass:Br},{provide:Jr,useValue:t.isolate},{provide:ei,useValue:t.useDefaultLang},ti]}}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)}}),e})();class si{constructor(e,t="/assets/i18n/",n=".json"){this.http=e,this.prefix=t,this.suffix=n}getTranslation(e){return this.http.get(`${this.prefix}${e}${this.suffix}`)}}let oi=(()=>{class e{constructor(e){e.setDefaultLang("en"),console.log("Browser language is: "+e.getBrowserLang()),e.use(e.getBrowserLang())}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ti))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-navbar"]],decls:3,vars:1,consts:[[1,"navbar","navbar-dark","bg-dark"],["href","",1,"navbar-brand",3,"translate"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"nav",0),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"HoneyPi"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","brand"))},directives:[ni],styles:[""]}),e})();const{version:ai}=n("kiQV");let li=(()=>{class e{constructor(e){this.translate=e,this.appVersion=ai}ngOnInit(){}useLanguage(e){this.translate.use(e)}get currentYear(){return(new Date).getFullYear()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ti))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-footer"]],decls:16,vars:1,consts:[[1,"footer"],[1,"container"],[1,"text-muted"],["href","https://www.honey-pi.de","target","_blank"],[1,"float-right","text-muted",2,"padding-left","10px"],["routerLink","",3,"click"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"footer",0),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275elementStart"](2,"span",2),r["\u0275\u0275text"](3,"\xa9 "),r["\u0275\u0275elementStart"](4,"a",3),r["\u0275\u0275text"](5,"HoneyPi.de"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](6),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"span",4),r["\u0275\u0275elementStart"](8,"a",5),r["\u0275\u0275listener"]("click",function(){return t.useLanguage("de")}),r["\u0275\u0275text"](9,"Deutsch"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](10," | "),r["\u0275\u0275elementStart"](11,"a",5),r["\u0275\u0275listener"]("click",function(){return t.useLanguage("en")}),r["\u0275\u0275text"](12,"English"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](13," | "),r["\u0275\u0275elementStart"](14,"a",5),r["\u0275\u0275listener"]("click",function(){return t.useLanguage("el_GR")}),r["\u0275\u0275text"](15,"Greek"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](6),r["\u0275\u0275textInterpolate1"](" 2018-",t.currentYear,""))},directives:[dr],styles:[""]}),e})(),ui=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-root"]],decls:3,vars:0,template:function(e,t){1&e&&(r["\u0275\u0275element"](0,"app-navbar"),r["\u0275\u0275element"](1,"router-outlet"),r["\u0275\u0275element"](2,"app-footer"))},directives:[oi,pr,li],styles:['.ng-invalid:not(form){border-left:5px solid #a94442}@-webkit-keyframes spinner{to{transform:rotate(1turn)}}@keyframes spinner{to{transform:rotate(1turn)}} .spinner:before{content:"";box-sizing:border-box;position:absolute;top:50%;left:50%;width:50px;height:50px;margin-top:-10px;margin-left:-10px;border-radius:50%;border:6px solid #f7f7f7;border-top-color:#ffc107;-webkit-animation:spinner .8s linear infinite;animation:spinner .8s linear infinite}']}),e})();n("4XzM");let ci=(()=>{class e{constructor(e){this.http=e}getSettings(){const e="t="+(new Date).getTime();return this.http.get("./backend/settings.php?getSettings&"+e,{responseType:"json"})}setSettings(e){return this.http.post("./backend/settings.php?setSettings",JSON.stringify(e)).map(e=>e)}getTemperatureSensors(){const e="t="+(new Date).getTime();return this.http.get("./backend/ds18b20.php?"+e).map(e=>{if(e)return e})}getLog(){const e="t="+(new Date).getTime();return this.http.get("./backend/log.php?"+e,{responseType:"text"})}deleteLog(){const e="t="+(new Date).getTime();return this.http.get("./backend/log.php?delete&"+e,{responseType:"text"})}deleteCsv(e){const t="t="+(new Date).getTime();return this.http.get("./backend/offlinecsv.php?delete&channelId="+e+"&"+t,{responseType:"text"})}update(e="update",t=!1,n=""){const r="t="+(new Date).getTime();return this.http.get("./backend/update.php?mode="+e+"&stable="+(t?0:1)+n+"&"+r,{responseType:"json"})}getMeasurement(){const e="t="+(new Date).getTime();return this.http.get("./backend/measurement.php?"+e).map(e=>{if(e)return e})}checkInternet(){const e="t="+(new Date).getTime();return this.http.get("./backend/check_internet.php?"+e).map(e=>{if(e)return e})}checkDiag(){const e="t="+(new Date).getTime();return this.http.get("./backend/check_diag.php?"+e,{responseType:"text"}).map(e=>e)}checkThingSpeakChannel(e){return this.http.post("./backend/check_thingspeak.php",e).map(e=>{if(e)return e})}getWeight(e){return this.http.post("./backend/weight.php",e,{responseType:"text"}).map(e=>e)}boot(e){const t="t="+(new Date).getTime();return this.http.get("./backend/boot.php?"+e+"&"+t)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](ne))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class di{constructor(){this.router=new hi,this.honeypi=new hi,this.modem=new pi}}class hi{}class pi{}class fi{constructor(){this.enabled=!1,this.version=2,this.dummyload=!1,this.voltagecheck_enabled=!1,this.low=new gi,this.normal=new gi}}class gi{constructor(){this.enabled=!1,this.schedule=""}}class mi{constructor(){this.ts_channels=[],this.ts_channels.push(new vi),this.sensors=[],this.internet=new di,this.wittyPi=new fi}}class vi{constructor(){this.ts_write_key="",this.ts_channel_id=void 0}}function yi(e,t){1&e&&r["\u0275\u0275element"](0,"br")}n("g3Qq");const bi=function(){return{field:"Write-API-Key"}};function _i(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",29),r["\u0275\u0275elementStart"](1,"a",30),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](3),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](4,1,"error.spaces",r["\u0275\u0275pureFunction0"](4,bi))," "))}const wi=function(){return{field:"Channel-ID"}};function Ci(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.required",r["\u0275\u0275pureFunction0"](4,wi))," "))}function xi(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.length",r["\u0275\u0275pureFunction0"](4,wi))," "))}function $i(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",31),r["\u0275\u0275template"](1,Ci,3,5,"div",10),r["\u0275\u0275template"](2,xi,3,5,"div",10),r["\u0275\u0275elementEnd"]()),2&e){r["\u0275\u0275nextContext"]();const e=r["\u0275\u0275reference"](20);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",(null==e?null:e.errors.min)||(null==e?null:e.errors.max))}}function Si(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.required",r["\u0275\u0275pureFunction0"](4,bi))," "))}function Ei(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.length",r["\u0275\u0275pureFunction0"](4,bi))," "))}function Oi(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",31),r["\u0275\u0275template"](1,Si,3,5,"div",10),r["\u0275\u0275template"](2,Ei,3,5,"div",10),r["\u0275\u0275elementEnd"]()),2&e){r["\u0275\u0275nextContext"]();const e=r["\u0275\u0275reference"](29);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",(null==e?null:e.errors.minlength)||(null==e?null:e.errors.maxlength))}}function Ii(e,t){1&e&&r["\u0275\u0275element"](0,"br")}const ki=function(e){return{"my-bg-ts":e}};function Ti(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",8),r["\u0275\u0275elementStart"](1,"div",9),r["\u0275\u0275template"](2,yi,1,0,"br",10),r["\u0275\u0275elementStart"](3,"div",11),r["\u0275\u0275elementStart"](4,"button",12),r["\u0275\u0275listener"]("click",function(){r["\u0275\u0275restoreView"](e);const n=t.index;return r["\u0275\u0275nextContext"]().removeChannel(n)}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275text"](6,"\u232b"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"h5",13),r["\u0275\u0275text"](8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"div",0),r["\u0275\u0275elementStart"](10,"label",14),r["\u0275\u0275text"](11,"Channel-Name "),r["\u0275\u0275elementStart"](12,"i"),r["\u0275\u0275text"](13,"(optional)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](14,"input",15,16),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.$implicit.name=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"div",0),r["\u0275\u0275elementStart"](17,"label",17),r["\u0275\u0275text"](18,"ThingSpeak Channel-ID"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"input",18,19),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.$implicit.ts_channel_id=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"div",0),r["\u0275\u0275elementStart"](22,"label",20),r["\u0275\u0275text"](23,"ThingSpeak "),r["\u0275\u0275elementStart"](24,"strong"),r["\u0275\u0275text"](25,"Write"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](26,"-API-Key"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](27,"div",21),r["\u0275\u0275elementStart"](28,"input",22,23),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.$implicit.ts_write_key=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](30,"span",24),r["\u0275\u0275elementStart"](31,"button",25,26),r["\u0275\u0275listener"]("click",function(){r["\u0275\u0275restoreView"](e);const n=t.$implicit,i=r["\u0275\u0275reference"](32);return r["\u0275\u0275nextContext"]().checkThingSpeakChannel(n.ts_channel_id,n.ts_write_key,i)}),r["\u0275\u0275pipe"](33,"translate"),r["\u0275\u0275text"](34,"\u2713"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](35,_i,5,5,"div",27),r["\u0275\u0275template"](36,$i,3,2,"div",28),r["\u0275\u0275template"](37,Oi,3,2,"div",28),r["\u0275\u0275template"](38,Ii,1,0,"br",10),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=t.$implicit,n=t.index,i=t.last,s=t.first,o=r["\u0275\u0275reference"](20),a=r["\u0275\u0275reference"](29),l=r["\u0275\u0275reference"](32),u=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275classProp"]("spinner",l.disabled),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](23,ki,n%2!=0)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!s),r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("title",r["\u0275\u0275pipeBind1"](5,19,"settings.thingspeak.removeChannel")),r["\u0275\u0275property"]("disabled",u.isRemovingDisabled),r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate1"]("ThingSpeak Channel #",n+1,""),r["\u0275\u0275advance"](6),r["\u0275\u0275property"]("ngModel",e.name),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("ngModel",e.ts_channel_id)("min",0)("max",9999999),r["\u0275\u0275advance"](9),r["\u0275\u0275property"]("ngModel",e.ts_write_key),r["\u0275\u0275advance"](3),r["\u0275\u0275classProp"]("disabled",!e.ts_channel_id||!e.ts_write_key),r["\u0275\u0275propertyInterpolate"]("title",r["\u0275\u0275pipeBind1"](33,21,"settings.thingspeak.checkConnection")),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==a?null:a.value)&&-1!==(null==a||null==a.value?null:a.value.indexOf(" "))),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",o.invalid&&(o.dirty||o.touched)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",a.invalid&&(a.dirty||a.touched)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!i)}}let ji=(()=>{class e{constructor(e,t){this.appService=e,this.translate=t,this.thingspeakUrlPattern="^(?:(?:(?:[a-zA-z\\-]+)\\:\\/{1,3})?(?:[a-zA-Z0-9])(?:[a-zA-Z0-9-\\.]){1,61}[a-zA-Z0-9](?:\\.[a-zA-Z]{2,})+|\\[(?:(?:(?:[a-fA-F0-9]){1,4})(?::(?:[a-fA-F0-9]){1,4}){7}|::1|::)\\]|(?:(?:[0-9]{1,3})(?:\\.[0-9]{1,3}){3}))(?:\\:[0-9]{1,5})?$",this.settingsChange=new r.EventEmitter}set settings(e){this.settingsChange.emit(e),this._settings=e}get settings(){return this._settings}ngOnInit(){}addChannel(){this.settings.ts_channels.push({ts_channel_id:void 0,ts_write_key:""})}removeChannel(e){this.settings.ts_channels.splice(e,1)}get isAddingDisabled(){return this.settings.ts_channels.length>=10}get isRemovingDisabled(){return this.settings.ts_channels.length<=1}checkThingSpeakChannel(e,t,n){this.translate.get("settings.thingspeak.confirmCheck").subscribe(r=>{window.confirm(r)&&(n.setAttribute("disabled","disabled"),this.appService.checkThingSpeakChannel({ts_channel_id:e,ts_write_key:t}).timeout(15e3).finally(()=>{n.removeAttribute("disabled")}).subscribe(e=>{n.classList.remove("btn-danger","btn-warning"),n.classList.add("btn-success")},e=>{console.log(e),n.classList.remove("btn-success","btn-warning"),n.classList.add("btn-danger")}))})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci),r["\u0275\u0275directiveInject"](ti))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-thingspeak"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:12,vars:7,consts:[[1,"form-group"],["for","ts_server_url"],["type","text","id","ts_server_url","name","ts_server_url","placeholder","http://api.thingspeak.com",1,"form-control",3,"ngModel","pattern","ngModelChange"],["ts_server_url","ngModel"],["class","rounded row",4,"ngFor","ngForOf"],[1,"row"],[1,"col-12"],["type","button",1,"btn","btn-primary","btn-sm","float-left","shadow-sm",3,"disabled","click"],[1,"rounded","row"],[1,"col-12",3,"ngClass"],[4,"ngIf"],["role","group",1,"btn-group","btn-group-sm","float-right"],["type","button",1,"btn","btn-danger","btn-sm",2,"margin-bottom","10px",3,"disabled","title","click"],[1,"h5"],["for","ts_name"],["type","text","id","ts_name","name","ts_name","placeholder","Name",1,"form-control",3,"ngModel","ngModelChange"],["ts_name","ngModel"],["for","ts_channel_id"],["type","number","id","ts_channel_id","name","ts_channel_id","placeholder","Channel-ID","required","",1,"form-control",3,"ngModel","min","max","ngModelChange"],["ts_channel_id","ngModel"],["for","ts_write_key"],[1,"input-group"],["type","text","id","ts_write_key","name","ts_write_key","placeholder","Write-API-Key","required","","minlength","16","maxlength","16",1,"form-control",3,"ngModel","ngModelChange"],["ts_write_key","ngModel"],[1,"input-group-btn"],["type","button",1,"btn","btn-warning",3,"title","click"],["checkElement",""],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-danger",4,"ngIf"],["role","alert",1,"alert","alert-warning"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[1,"alert","alert-danger"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"label",1),r["\u0275\u0275text"](2,"ThingSpeak Server-URL"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"input",2,3),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.ts_server_url=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](5,Ti,39,25,"div",4),r["\u0275\u0275elementStart"](6,"div",5),r["\u0275\u0275elementStart"](7,"div",6),r["\u0275\u0275element"](8,"br"),r["\u0275\u0275elementStart"](9,"button",7),r["\u0275\u0275listener"]("click",function(){return t.addChannel()}),r["\u0275\u0275text"](10),r["\u0275\u0275pipe"](11,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngModel",t.settings.ts_server_url)("pattern",t.thingspeakUrlPattern),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngForOf",t.settings.ts_channels),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("disabled",t.isAddingDisabled),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"]("+ ",r["\u0275\u0275pipeBind1"](11,5,"settings.thingspeak.addChannel"),""))},directives:[ye.DefaultValueAccessor,ye.NgControlStatus,ye.NgModel,ye.PatternValidator,i.k,i.j,i.l,ye.NumberValueAccessor,ye.RequiredValidator,Vr.MinValidator,Vr.MaxValidator,ye.MinLengthValidator,ye.MaxLengthValidator],pipes:[ri],styles:[".my-bg-ts[_ngcontent-%COMP%]{background-color:#e9ecef}"]}),e})();const Vi=function(e){return{field:e}};function Pi(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",36),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](3),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](4,1,"error.spaces",r["\u0275\u0275pureFunction1"](6,Vi,r["\u0275\u0275pipeBind1"](5,4,"settings.internet.ssid")))," "))}function Mi(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",36),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](3),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](4,1,"error.spaces",r["\u0275\u0275pureFunction1"](6,Vi,r["\u0275\u0275pipeBind1"](5,4,"settings.internet.password")))," "))}function Ai(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.required",r["\u0275\u0275pureFunction1"](6,Vi,r["\u0275\u0275pipeBind1"](3,4,"settings.internet.ssid")))," "))}function Ni(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.length",r["\u0275\u0275pureFunction1"](6,Vi,r["\u0275\u0275pipeBind1"](3,4,"settings.internet.ssid")))," "))}function Di(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",37),r["\u0275\u0275template"](1,Ai,4,8,"div",8),r["\u0275\u0275template"](2,Ni,4,8,"div",8),r["\u0275\u0275elementEnd"]()),2&e){r["\u0275\u0275nextContext"]();const e=r["\u0275\u0275reference"](4);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.maxlength)}}function Ri(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.required",r["\u0275\u0275pureFunction1"](6,Vi,r["\u0275\u0275pipeBind1"](3,4,"settings.internet.password")))," "))}function Fi(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.length",r["\u0275\u0275pureFunction1"](6,Vi,r["\u0275\u0275pipeBind1"](3,4,"settings.internet.password")))," "))}function Li(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.specialchar",r["\u0275\u0275pureFunction1"](6,Vi,r["\u0275\u0275pipeBind1"](3,4,"settings.internet.password")))," "))}function Bi(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",37),r["\u0275\u0275template"](1,Ri,4,8,"div",8),r["\u0275\u0275template"](2,Fi,4,8,"div",8),r["\u0275\u0275template"](3,Li,4,8,"div",8),r["\u0275\u0275elementEnd"]()),2&e){r["\u0275\u0275nextContext"]();const e=r["\u0275\u0275reference"](9);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",(null==e?null:e.errors.minlength)||(null==e?null:e.errors.maxlength)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.pattern)}}const Hi=function(e){return{value:e}};function Ui(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",13),r["\u0275\u0275elementStart"](1,"div",22),r["\u0275\u0275element"](2,"label",23),r["\u0275\u0275elementStart"](3,"input",24,25),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().wifi.router.ssid=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",26),r["\u0275\u0275element"](7,"label",27),r["\u0275\u0275elementStart"](8,"input",28,29),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().wifi.router.password=t}),r["\u0275\u0275pipe"](10,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](11,"div",22),r["\u0275\u0275element"](12,"label",30),r["\u0275\u0275elementStart"](13,"select",31),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().wifi.router.wpa_type=t}),r["\u0275\u0275element"](14,"option",32),r["\u0275\u0275pipe"](15,"translate"),r["\u0275\u0275pipe"](16,"translate"),r["\u0275\u0275elementStart"](17,"option",33),r["\u0275\u0275text"](18,"WPA2 (default)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"option",33),r["\u0275\u0275text"](20,"No Password"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](21,Pi,6,8,"div",34),r["\u0275\u0275template"](22,Mi,6,8,"div",34),r["\u0275\u0275template"](23,Di,3,2,"div",35),r["\u0275\u0275template"](24,Bi,4,3,"div",35),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275reference"](4),t=r["\u0275\u0275reference"](9),n=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.internet.ssid"),r["\u0275\u0275advance"](1),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](5,21,"settings.internet.ssid")),r["\u0275\u0275property"]("ngModel",n.wifi.router.ssid)("maxlength",32),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("hidden",2===n.wifi.router.wpa_type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.internet.password"),r["\u0275\u0275advance"](1),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](10,23,"settings.internet.password")),r["\u0275\u0275property"]("ngModel",n.wifi.router.password)("minlength",8)("maxlength",63)("pattern",n.disallowedChars),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("translate","settings.internet.wpa_type"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",n.wifi.router.wpa_type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](15,25,"buttons.select",r["\u0275\u0275pureFunction1"](30,Hi,r["\u0275\u0275pipeBind1"](16,28,"settings.internet.wpa_type")))),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngValue",0),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",2),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",(null==e?null:e.value)&&-1!==(null==e||null==e.value?null:e.value.indexOf(" "))),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",(null==t?null:t.value)&&-1!==(null==t||null==t.value?null:t.value.indexOf(" "))),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.invalid&&(e.dirty||e.touched)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.invalid&&(t.dirty||t.touched))}}function qi(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",40),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",41),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"settings.internet.testSuccess"),r["\u0275\u0275sanitizeHtml"]))}function Wi(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",42),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",41),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"settings.internet.testError"),r["\u0275\u0275sanitizeHtml"]))}function zi(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"pre",43),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"json"),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](2,1,e.checkInternetResponse.content))}}function Gi(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275template"](1,qi,5,3,"div",38),r["\u0275\u0275template"](2,Wi,5,3,"div",39),r["\u0275\u0275template"](3,zi,3,3,"pre",21),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.checkInternetResponse.connected),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!e.checkInternetResponse.connected),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!e.checkInternetResponse.connected&&e.checkInternetResponse.content)}}function Ki(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275elementStart"](1,"div",13),r["\u0275\u0275elementStart"](2,"div",14),r["\u0275\u0275elementStart"](3,"label",44),r["\u0275\u0275text"](4),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"input",45),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().wifi.modem.apn=t}),r["\u0275\u0275pipe"](7,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"div",14),r["\u0275\u0275elementStart"](9,"label",46),r["\u0275\u0275text"](10,">"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](11,"select",47),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().wifi.modem.ttyUSB=t}),r["\u0275\u0275element"](12,"option",32),r["\u0275\u0275pipe"](13,"translate"),r["\u0275\u0275pipe"](14,"translate"),r["\u0275\u0275elementStart"](15,"option",33),r["\u0275\u0275text"](16,"ttyUSB0 (default)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"option",33),r["\u0275\u0275text"](18,"ttyUSB1"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"option",33),r["\u0275\u0275text"](20,"ttyUSB2"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](5,10,"settings.internet.apn")),r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](7,12,"settings.internet.apn")),r["\u0275\u0275property"]("ngModel",e.wifi.modem.apn),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.internet.ttyUSB"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",e.wifi.modem.ttyUSB),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](13,14,"buttons.select",r["\u0275\u0275pureFunction1"](19,Hi,r["\u0275\u0275pipeBind1"](14,17,"settings.internet.ttyUSB")))),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngValue",0),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",1),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",2)}}function Qi(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"pre",43),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.checkSurfstickResponse)}}let Zi=(()=>{class e{constructor(e){this.appService=e,this.isLoading=!1,this.isLoadingAP=!1,this.disallowedChars="[^/]+",this.wifiChange=new r.EventEmitter}set wifi(e){this.wifiChange.emit(e),this._wifi=e}get wifi(){return this._wifi}ngOnInit(){}checkInternet(){this.isLoading=!0,this.checkInternetResponse=null,this.appService.checkInternet().timeout(15e3).finally(()=>this.isLoading=!1).subscribe(e=>{this.checkInternetResponse=e},e=>{console.log(e),this.checkInternetResponse=e.name&&"TimeoutError"===e.name?{connected:!1,content:"Timeout after 15 Seconds."}:e.name&&"HttpErrorResponse"===e.name?{connected:!1,content:null}:{connected:!1,content:e}})}checkDiag(){this.isLoadingAP=!0,this.checkSurfstickResponse=null,this.appService.checkDiag().timeout(15e3).finally(()=>this.isLoadingAP=!1).subscribe(e=>{this.checkSurfstickResponse=e},e=>{console.error(e),this.checkSurfstickResponse=JSON.stringify(e)})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-internet"]],inputs:{wifi:"wifi"},outputs:{wifiChange:"wifiChange"},decls:46,vars:40,consts:[["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[1,"h5",3,"translate"],[1,"form-check"],["type","checkbox","id","enabledWifi",1,"form-check-input",3,"ngModel","ngModelChange"],["for","enabledWifi",1,"form-check-label",3,"translate"],["class","row",4,"ngIf"],["type","button","role","button",1,"btn","btn-warning","btn-sm",3,"disabled","translate","click"],[4,"ngIf"],["data-toggle","collapse","href","#collapseAP","role","button","aria-expanded","false","aria-controls","collapseAP",1,"text-danger",3,"translate"],["id","collapseAP",1,"collapse"],[1,"card","card-body"],[3,"translate"],[1,"row"],[1,"form-group","col-12","col-sm-6"],["for","honeypiWifissid"],["type","text","id","honeypiWifissid","name","honeypiWifissid",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","honeypiWifipassword"],["type","text","id","honeypiWifipassword","name","honeypiWifipassword",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["type","checkbox","id","enabledModem",1,"form-check-input",3,"ngModel","ngModelChange"],["for","enabledModem",1,"form-check-label",3,"translate"],["class","pre-scrollable",4,"ngIf"],[1,"form-group","col-12","col-sm-4"],["for","ssid",3,"translate"],["type","text","id","ssid","name","ssid","required","",1,"form-control",3,"ngModel","placeholder","maxlength","ngModelChange"],["router_ssid","ngModel"],[1,"form-group","col-12","col-sm-4",3,"hidden"],["for","password",3,"translate"],["type","text","id","password","name","password","required","",1,"form-control",3,"ngModel","placeholder","minlength","maxlength","pattern","ngModelChange"],["router_password","ngModel"],["for","wpa_type",3,"translate"],["id","wpa_type","name","wpa_type","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue","translate"],[3,"ngValue"],["class","alert alert-warning col-12","role","alert",4,"ngIf"],["class","alert alert-danger col-12","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-warning","col-12"],["role","alert",1,"alert","alert-danger","col-12"],["class","alert alert-success","role","alert",4,"ngIf"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-success"],[3,"innerHTML"],["role","alert",1,"alert","alert-danger"],[1,"pre-scrollable"],["for","honeypiModemApn"],["type","text","id","honeypiModemApn","name","honeypiModemApn","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","ttyUSB",3,"translate"],["id","ttyUSB","name","ttyUSB","required","",1,"custom-select",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](3),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](5,"h5",2),r["\u0275\u0275elementStart"](6,"div",3),r["\u0275\u0275elementStart"](7,"input",4),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.wifi.router.enabled=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](8,"label",5),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](9,Ui,25,32,"div",6),r["\u0275\u0275element"](10,"hr"),r["\u0275\u0275element"](11,"h5",2),r["\u0275\u0275elementStart"](12,"p"),r["\u0275\u0275elementStart"](13,"button",7),r["\u0275\u0275listener"]("click",function(){return t.checkInternet()}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](14,Gi,4,3,"div",8),r["\u0275\u0275element"](15,"hr"),r["\u0275\u0275elementStart"](16,"p"),r["\u0275\u0275element"](17,"a",9),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](18,"div",10),r["\u0275\u0275elementStart"](19,"div",11),r["\u0275\u0275element"](20,"h5",2),r["\u0275\u0275element"](21,"p",12),r["\u0275\u0275elementStart"](22,"div",13),r["\u0275\u0275elementStart"](23,"div",14),r["\u0275\u0275elementStart"](24,"label",15),r["\u0275\u0275text"](25),r["\u0275\u0275pipe"](26,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](27,"input",16),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.wifi.honeypi.ssid=e}),r["\u0275\u0275pipe"](28,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](29,"div",14),r["\u0275\u0275elementStart"](30,"label",17),r["\u0275\u0275text"](31),r["\u0275\u0275pipe"](32,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](33,"input",18),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.wifi.honeypi.password=e}),r["\u0275\u0275pipe"](34,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](35,"hr"),r["\u0275\u0275element"](36,"h5",2),r["\u0275\u0275elementStart"](37,"div",3),r["\u0275\u0275elementStart"](38,"input",19),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.wifi.modem.enabled=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](39,"label",20),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](40,Ki,21,21,"div",8),r["\u0275\u0275element"](41,"hr"),r["\u0275\u0275element"](42,"h5",2),r["\u0275\u0275elementStart"](43,"p"),r["\u0275\u0275elementStart"](44,"button",7),r["\u0275\u0275listener"]("click",function(){return t.checkDiag()}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](45,Qi,2,1,"pre",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](4,30,"alerts.afterSave"),"\n"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.internet.wifi"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",t.wifi.router.enabled),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.internet.connectWifi"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.wifi.router.enabled),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.internet.isMobileConnected"),r["\u0275\u0275advance"](2),r["\u0275\u0275classProp"]("spinner",t.isLoading),r["\u0275\u0275property"]("disabled",t.isLoading)("translate","settings.internet.testConnection"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.checkInternetResponse),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.internet.collapseAP"),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.internet.honeypiAP"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.internet.honeypiAPtext"),r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](26,32,"settings.internet.ssid")),r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](28,34,"settings.internet.ssid")),r["\u0275\u0275property"]("ngModel",t.wifi.honeypi.ssid),r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](32,36,"settings.internet.password")),r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](34,38,"settings.internet.password")),r["\u0275\u0275property"]("ngModel",t.wifi.honeypi.password),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.internet.honeypiModem"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",t.wifi.modem.enabled),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.internet.connectModem"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.wifi.modem.enabled),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.internet.isSurfstickConnected"),r["\u0275\u0275advance"](2),r["\u0275\u0275classProp"]("spinner",t.isLoadingAP),r["\u0275\u0275property"]("disabled",t.isLoadingAP)("translate","settings.internet.testDiag"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.checkSurfstickResponse))},directives:[ni,ye.CheckboxControlValueAccessor,ye.NgControlStatus,ye.NgModel,i.l,ye.DefaultValueAccessor,ye.RequiredValidator,ye.MaxLengthValidator,ye.MinLengthValidator,ye.PatternValidator,ye.SelectControlValueAccessor,ye.NgSelectOption,ye["\u0275angular_packages_forms_forms_x"]],pipes:[ri,i.f],styles:[""]}),e})();class Xi{constructor(e=0){this.offset=0,this.reference_unit=1}}const Yi=function(){return{value:"GPIO"}};let Ji=(()=>{class e{constructor(){this.label="GPIO",this.field_id="w1gpio",this.fieldChanged=new r.EventEmitter,this.required=!1}onChange(e){this.fieldChanged.emit(this.field)}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["settings-gpio-field"]],inputs:{label:"label",field_id:"field_id",field:"field",required:"required",disabled_pins:"disabled_pins"},outputs:{fieldChanged:"fieldChanged"},decls:57,vars:62,consts:[[3,"for"],[1,"custom-select",3,"ngModel","id","name","required","ngModelChange"],[3,"ngValue","translate"],["disabled","",3,"value"],[3,"value","disabled"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"label",0),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](2,"select",1),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.field=e})("ngModelChange",function(e){return t.onChange(e)}),r["\u0275\u0275element"](3,"option",2),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementStart"](5,"option",3),r["\u0275\u0275text"](6,"GPIO2 (reserved I2C SDI/SDA)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"option",3),r["\u0275\u0275text"](8,"GPIO3 (reserved I2C SCL/SCK)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"option",4),r["\u0275\u0275text"](10,"GPIO4 (reserved WittyPi)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](11,"option",4),r["\u0275\u0275text"](12,"GPIO5 (Default: HX711_1 DT)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"option",4),r["\u0275\u0275text"](14,"GPIO6 (Default: HX711_1 SCK)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](15,"option",4),r["\u0275\u0275text"](16,"GPIO7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"option",4),r["\u0275\u0275text"](18,"GPIO8"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"option",4),r["\u0275\u0275text"](20,"GPIO9 (Default: DHT22 / DS18b20 3.3V source)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"option",4),r["\u0275\u0275text"](22,"GPIO10"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](23,"option",4),r["\u0275\u0275text"](24,"GPIO11 (Default: DS18b20 1-Wire)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](25,"option",4),r["\u0275\u0275text"](26,"GPIO12 (Default: HX711_2 DT)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](27,"option",4),r["\u0275\u0275text"](28,"GPIO13 (Default: HX711_2 SCK)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](29,"option",4),r["\u0275\u0275text"](30,"GPIO14 (reserved UART TX)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](31,"option",4),r["\u0275\u0275text"](32,"GPIO15 (reserved UART RX)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](33,"option",4),r["\u0275\u0275text"](34,"GPIO16 (Default: Button)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](35,"option",4),r["\u0275\u0275text"](36,"GPIO17 (reserved WittyPi)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](37,"option",4),r["\u0275\u0275text"](38,"GPIO18 (Default: MAX CLK)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](39,"option",4),r["\u0275\u0275text"](40,"GPIO19 (Default: MAX MISO)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](41,"option",4),r["\u0275\u0275text"](42,"GPIO20"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](43,"option",4),r["\u0275\u0275text"](44,"GPIO21 (Default: LED)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](45,"option",4),r["\u0275\u0275text"](46,"GPIO22 (Default: HX711_3 SCK)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](47,"option",4),r["\u0275\u0275text"](48,"GPIO23 (Default: HX711_4 DT)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](49,"option",4),r["\u0275\u0275text"](50,"GPIO24 (Default: HX711_4 SCK)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](51,"option",4),r["\u0275\u0275text"](52,"GPIO25 (Default: HX711_5 DT)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](53,"option",4),r["\u0275\u0275text"](54,"GPIO26 (Default: HX711_5 SCK / MAX CS)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](55,"option",4),r["\u0275\u0275text"](56,"GPIO27 (Default: HX711_3 DT / MAX CS2)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275propertyInterpolate"]("for",t.field_id),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](t.label),r["\u0275\u0275advance"](1),r["\u0275\u0275propertyInterpolate"]("id",t.field_id),r["\u0275\u0275propertyInterpolate"]("name",t.field_id),r["\u0275\u0275property"]("ngModel",t.field)("required",t.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](4,58,"buttons.select",r["\u0275\u0275pureFunction0"](61,Yi))),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",2),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",3),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",4)("disabled",t.disabled_pins.includes(4)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",5)("disabled",t.disabled_pins.includes(5)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",6)("disabled",t.disabled_pins.includes(6)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",7)("disabled",t.disabled_pins.includes(7)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",8)("disabled",t.disabled_pins.includes(8)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",9)("disabled",t.disabled_pins.includes(9)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",10)("disabled",t.disabled_pins.includes(10)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",11)("disabled",t.disabled_pins.includes(11)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",12)("disabled",t.disabled_pins.includes(12)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",13)("disabled",t.disabled_pins.includes(13)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",14)("disabled",t.disabled_pins.includes(14)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",15)("disabled",t.disabled_pins.includes(15)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",16)("disabled",t.disabled_pins.includes(16)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",17)("disabled",t.disabled_pins.includes(17)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",18)("disabled",t.disabled_pins.includes(18)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",19)("disabled",t.disabled_pins.includes(19)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",20)("disabled",t.disabled_pins.includes(20)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",21)("disabled",t.disabled_pins.includes(21)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",22)("disabled",t.disabled_pins.includes(22)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",23)("disabled",t.disabled_pins.includes(23)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",24)("disabled",t.disabled_pins.includes(24)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",25)("disabled",t.disabled_pins.includes(25)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",26)("disabled",t.disabled_pins.includes(26)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",27)("disabled",t.disabled_pins.includes(27)))},directives:[ye.SelectControlValueAccessor,ye.NgControlStatus,ye.NgModel,ye.RequiredValidator,ye.NgSelectOption,ye["\u0275angular_packages_forms_forms_x"],ni],pipes:[ri],styles:[".line[_ngcontent-%COMP%]{text-decoration:line-through}"]}),e})();function es(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"option",6),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit,n=r["\u0275\u0275nextContext"]().index;r["\u0275\u0275propertyInterpolate1"]("value","field",e+8*n,""),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate3"]("",r["\u0275\u0275pipeBind1"](2,4,"settings.thingspeak.field")," ",e," - Channel #",n+1,"")}}const ts=function(){return[1,2,3,4,5,6,7,8]};function ns(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"optgroup",4),r["\u0275\u0275template"](1,es,3,6,"option",5),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275propertyInterpolate2"]("label","ThingSpeak Channel #",t.index+1," ",t.$implicit.name,""),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",r["\u0275\u0275pureFunction0"](3,ts)))}const rs=function(e){return{value:e}};let is=(()=>{class e{constructor(){this.ts_field_id="ts_field",this.ts_fieldChanged=new r.EventEmitter,this.required=!1}onChange(e){this.ts_fieldChanged.emit(this.ts_field),console.log("Selected Field: "+this.ts_field)}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["settings-ts-field"]],inputs:{label:"label",ts_field_id:"ts_field_id",ts_field:"ts_field",required:"required",channels:"channels"},outputs:{ts_fieldChanged:"ts_fieldChanged"},decls:7,vars:16,consts:[[3,"for"],[1,"custom-select",3,"ngModel","id","name","required","ngModelChange"],[3,"ngValue","translate"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"label",0),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](2,"select",1),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.ts_field=e})("ngModelChange",function(e){return t.onChange(e)}),r["\u0275\u0275element"](3,"option",2),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275template"](6,ns,2,4,"optgroup",3),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275propertyInterpolate"]("for",t.ts_field_id),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](t.label),r["\u0275\u0275advance"](1),r["\u0275\u0275propertyInterpolate"]("id",t.ts_field_id),r["\u0275\u0275propertyInterpolate"]("name",t.ts_field_id),r["\u0275\u0275property"]("ngModel",t.ts_field)("required",t.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](4,9,"buttons.select",r["\u0275\u0275pureFunction1"](14,rs,r["\u0275\u0275pipeBind1"](5,12,"settings.thingspeak.field")))),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngForOf",t.channels))},directives:[ye.SelectControlValueAccessor,ye.NgControlStatus,ye.NgModel,ye.RequiredValidator,ye.NgSelectOption,ye["\u0275angular_packages_forms_forms_x"],ni,i.k],pipes:[ri],styles:[""]}),e})();function ss(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275element"](1,"div",14),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementStart"](3,"button",15),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().next_step()}),r["\u0275\u0275text"](4),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](2,2,"settings.sensors.calibration.step0"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate1"](" \u2b46 ",r["\u0275\u0275pipeBind1"](5,4,"settings.sensors.calibration.btnNext")," "))}function os(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275element"](1,"div",14),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementStart"](3,"button",16),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().next_step()}),r["\u0275\u0275text"](4),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](2,3,"settings.sensors.calibration.step1"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("disabled",e.isLoading),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" \u2b46 ",r["\u0275\u0275pipeBind1"](5,5,"settings.sensors.calibration.btnNext")," ")}}function as(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275element"](1,"div",14),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementStart"](3,"p"),r["\u0275\u0275elementStart"](4,"input",17),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().calibration_weight=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"button",16),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().next_step()}),r["\u0275\u0275text"](7),r["\u0275\u0275pipe"](8,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](2,7,"settings.sensors.calibration.step2"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](5,9,"settings.sensors.calibration.weightPlaceholder")),r["\u0275\u0275property"]("min",0)("max",3e5)("ngModel",e.calibration_weight),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("disabled",e.isLoading),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" \u2b46 ",r["\u0275\u0275pipeBind1"](8,11,"settings.sensors.calibration.btnNext")," ")}}function ls(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275element"](1,"div",14),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementStart"](3,"button",15),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().next_step()}),r["\u0275\u0275text"](4),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](2,2,"settings.sensors.calibration.step3"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate1"](" \u2b46 ",r["\u0275\u0275pipeBind1"](5,4,"settings.sensors.calibration.btnFinish")," "))}function us(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275element"](1,"br"),r["\u0275\u0275text"](2,"Output: "),r["\u0275\u0275elementStart"](3,"pre",18),r["\u0275\u0275text"](4),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate"](e.result)}}function cs(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"button",11),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().step_back()}),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("disabled",e.isLoading),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"]("\u2b45 ",r["\u0275\u0275pipeBind1"](2,2,"settings.sensors.calibration.btnBack"),"")}}let ds=(()=>{class e{constructor(e){this.appService=e,this.isLoading=!1,this.step=0,this.calibration_weight=5e3,this.weight1=0,this.weight2=0,this.offset=0,this.reference_unit=1,this.calibrationChange=new r.EventEmitter,this.closeModal=new r.EventEmitter}ngOnInit(){}round(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}step_back(){this.step--,this.step<=0&&(this.step=0),this.result=null}next_step(){this.result=null,this.step<=0?this.step++:1===this.step||2===this.step?this.measure_weight():this.step>=3&&(this.finish_calibration(),this.step++),this.step>3&&(this.step=0)}measure_weight(){this.isLoading=!0,this.result=null,this.appService.getWeight(this.sensor).timeout(12e4).finally(()=>{this.isLoading=!1,this.step++}).subscribe(e=>{this.result=e;let t=parseFloat(e);t=isNaN(t)?0:t,1===this.step?(this.weight1=t,this.offset=this.round(this.weight1,0)):2===this.step&&(this.weight2=t,this.reference_unit=this.round((this.weight2-this.offset)/this.calibration_weight,4)),this.reference_unit||(this.reference_unit=1),this.reference_unit<0&&(this.reference_unit=-1*this.reference_unit),this.offset||(this.offset=0),console.log("weight:"+t+" calibration_weight:"+this.calibration_weight+" offset:"+this.offset+" reference_unit:"+this.reference_unit)},e=>{console.error(e)})}finish_calibration(){this.calibrationChange.emit({offset:this.offset,reference_unit:this.reference_unit}),this.close_modal()}close_modal(){this.step=0,this.closeModal.emit(!1)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["sensors-weight-calibration"]],inputs:{sensor:"sensor"},outputs:{calibrationChange:"calibrationChange",closeModal:"closeModal"},decls:24,vars:15,consts:[["tabindex","0","role","dialog",1,"modal","fade","show",2,"display","block"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[4,"ngIf"],[1,"modal-footer"],["type","button","class","btn btn-sm btn-primary",3,"disabled","click",4,"ngIf"],["type","button",1,"btn","btn-sm","btn-primary",3,"disabled","click"],["type","button","data-dismiss","modal",1,"btn","btn-sm","btn-secondary",3,"click"],[1,"modal-backdrop","fade","show"],[3,"innerHTML"],[1,"btn","btn-primary",3,"click"],[1,"btn","btn-primary",3,"disabled","click"],["type","number","step","1","required","",1,"form-control",2,"max-width","200px",3,"min","max","ngModel","placeholder","ngModelChange"],[1,"pre-scrollable"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275elementStart"](2,"div",2),r["\u0275\u0275elementStart"](3,"div",3),r["\u0275\u0275elementStart"](4,"h5",4),r["\u0275\u0275text"](5),r["\u0275\u0275pipe"](6,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"button",5),r["\u0275\u0275listener"]("click",function(){return t.close_modal()}),r["\u0275\u0275elementStart"](8,"span",6),r["\u0275\u0275text"](9,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",7),r["\u0275\u0275template"](11,ss,6,6,"div",8),r["\u0275\u0275template"](12,os,6,7,"div",8),r["\u0275\u0275template"](13,as,9,13,"div",8),r["\u0275\u0275template"](14,ls,6,6,"div",8),r["\u0275\u0275template"](15,us,5,1,"ng-container",8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"div",9),r["\u0275\u0275template"](17,cs,3,4,"button",10),r["\u0275\u0275elementStart"](18,"button",11),r["\u0275\u0275listener"]("click",function(){return t.next_step()}),r["\u0275\u0275text"](19),r["\u0275\u0275pipe"](20,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"button",12),r["\u0275\u0275listener"]("click",function(){return t.close_modal()}),r["\u0275\u0275text"](22,"Close"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](23,"div",13)),2&e&&(r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](6,11,"settings.sensors.calibration.title")),r["\u0275\u0275advance"](5),r["\u0275\u0275classProp"]("spinner",t.isLoading),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",0===t.step),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",1===t.step),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",2===t.step),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",3===t.step),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.result),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",t.step>0),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("disabled",t.isLoading),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"]("",r["\u0275\u0275pipeBind1"](20,13,"settings.sensors.calibration.btnNext")," \u2b46"))},directives:[i.l,ye.NumberValueAccessor,ye.DefaultValueAccessor,ye.RequiredValidator,Vr.MinValidator,Vr.MaxValidator,ye.NgControlStatus,ye.NgModel],pipes:[ri],styles:[""]}),e})();function hs(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"option",34),r["\u0275\u0275text"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=t.$implicit;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",e),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e)}}const ps=function(e,t,n){return[e,t,n]};function fs(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"settings-gpio-field",17),r["\u0275\u0275listener"]("fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).$implicit.pin=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2).$implicit,t=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("label","3.3V GPIO")("field_id","ds18b20_3Vpin")("field",e.pin)("required",!1)("disabled_pins",r["\u0275\u0275pureFunction3"](5,ps,t.settings.w1gpio,t.settings.led_pin,t.settings.button_pin))}}function gs(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",35),r["\u0275\u0275elementStart"](1,"a",6),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",7),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.deviceId"),r["\u0275\u0275sanitizeHtml"]))}function ms(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",36),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275element"](3,"br"),r["\u0275\u0275text"](4),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementStart"](6,"a",37),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](3).getTemperatureSensors()}),r["\u0275\u0275text"](7),r["\u0275\u0275pipe"](8,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](9),r["\u0275\u0275pipe"](10,"translate"),r["\u0275\u0275elementEnd"]()}2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](2,4,"alerts.noTempSensorFound"),""),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](5,6,"settings.sensors.checkWires")," "),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](8,8,"buttons.refresh")),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](10,10,"settings.sensors.checkWiresSuffix")," "))}const vs=function(e){return{"my-bg":e}},ys=function(){return{value:"Device-ID"}},bs=function(e,t){return[e,t]};function _s(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",18),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",11),r["\u0275\u0275elementStart"](3,"div",23),r["\u0275\u0275elementStart"](4,"label",24),r["\u0275\u0275text"](5,"Sensor Device-ID"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"select",25),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.device_id=t}),r["\u0275\u0275element"](7,"option",20),r["\u0275\u0275pipe"](8,"translate"),r["\u0275\u0275template"](9,hs,3,2,"ng-container",2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",23),r["\u0275\u0275elementStart"](11,"settings-ts-field",26),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field=t}),r["\u0275\u0275pipe"](12,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"div",11),r["\u0275\u0275elementStart"](14,"div",23),r["\u0275\u0275elementStart"](15,"settings-gpio-field",17),r["\u0275\u0275listener"]("fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).settings.w1gpio=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"div",23),r["\u0275\u0275elementStart"](17,"label",27),r["\u0275\u0275text"](18),r["\u0275\u0275pipe"](19,"translate"),r["\u0275\u0275pipe"](20,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"input",28),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.offset=t}),r["\u0275\u0275pipe"](22,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](23,"div",11),r["\u0275\u0275elementStart"](24,"div",23),r["\u0275\u0275elementStart"](25,"div",13),r["\u0275\u0275elementStart"](26,"input",29),r["\u0275\u0275listener"]("change",function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]().$implicit,i=r["\u0275\u0275nextContext"]();return n.pin=i.changeCheck(t)}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](27,"label",30),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](28,fs,2,9,"ng-container",31),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](29,"div",11),r["\u0275\u0275elementStart"](30,"div",12),r["\u0275\u0275template"](31,gs,5,3,"div",32),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](32,"div",11),r["\u0275\u0275elementStart"](33,"div",12),r["\u0275\u0275template"](34,ms,11,12,"div",33),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](),t=e.index,n=e.$implicit,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](33,vs,t%2==0)),r["\u0275\u0275advance"](6),r["\u0275\u0275property"]("ngModel",n.device_id),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](8,22,"buttons.select",r["\u0275\u0275pureFunction0"](35,ys))),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngForOf",i.temperatureSensors),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](12,25,"settings.thingspeak.field"))("ts_field",n.ts_field)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","1-WIRE GPIO")("field_id","w1gpio")("field",i.settings.w1gpio)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction2"](36,bs,i.settings.led_pin,i.settings.button_pin)),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate2"]("",r["\u0275\u0275pipeBind1"](19,27,"settings.sensors.temperature")," ",r["\u0275\u0275pipeBind1"](20,29,"settings.sensors.offset")," [\xb0C]"),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](22,31,"settings.sensors.offset")),r["\u0275\u0275property"]("ngModel",n.offset),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("checked",i.isChecked(n)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.sensors.use3V"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",i.isChecked(n)),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",i.temperatureSensorWasFiltered&&0==i.temperatureSensors.length),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",0==i.temperatureSensors.length)}}function ws(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",18),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",11),r["\u0275\u0275elementStart"](3,"div",23),r["\u0275\u0275elementStart"](4,"settings-ts-field",38),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",23),r["\u0275\u0275elementStart"](7,"settings-ts-field",38),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_humidity=t}),r["\u0275\u0275pipe"](8,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"div",11),r["\u0275\u0275elementStart"](10,"div",23),r["\u0275\u0275elementStart"](11,"settings-ts-field",38),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_air_pressure=t}),r["\u0275\u0275pipe"](12,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"div",23),r["\u0275\u0275elementStart"](14,"settings-ts-field",38),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_air_quality=t}),r["\u0275\u0275pipe"](15,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"div",11),r["\u0275\u0275elementStart"](17,"div",23),r["\u0275\u0275elementStart"](18,"label",39),r["\u0275\u0275text"](19),r["\u0275\u0275pipe"](20,"translate"),r["\u0275\u0275pipe"](21,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](22,"input",40),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.offset=t}),r["\u0275\u0275pipe"](23,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](),t=e.index,n=e.$implicit,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](35,vs,t%2==0)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](5,21,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",n.ts_field_temperature)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](8,23,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",n.ts_field_humidity)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](12,25,"settings.sensors.pressure"))("ts_field_id","ts_field_air_pressure")("ts_field",n.ts_field_air_pressure)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](15,27,"settings.sensors.quality"))("ts_field_id","ts_field_air_quality")("ts_field",n.ts_field_air_quality)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate2"]("",r["\u0275\u0275pipeBind1"](20,29,"settings.sensors.temperature")," ",r["\u0275\u0275pipeBind1"](21,31,"settings.sensors.offset")," [\xb0C]"),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](23,33,"settings.sensors.offset")),r["\u0275\u0275property"]("ngModel",n.offset)}}function Cs(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"sensors-weight-calibration",60),r["\u0275\u0275listener"]("closeModal",function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"](2).index;return r["\u0275\u0275nextContext"]().showCalibration[n]=t})("calibrationChange",function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"](2).$implicit;return n.offset=t.offset,n.reference_unit=t.reference_unit}),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2).$implicit;r["\u0275\u0275property"]("sensor",e)}}const xs=function(e){return{field:e}};function $s(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.required",r["\u0275\u0275pureFunction1"](6,xs,r["\u0275\u0275pipeBind1"](3,4,"settings.sensors.scale")))," "))}function Ss(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.length",r["\u0275\u0275pureFunction1"](6,xs,r["\u0275\u0275pipeBind1"](3,4,"settings.sensors.scale")))," "))}function Es(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",61),r["\u0275\u0275template"](1,$s,4,8,"div",31),r["\u0275\u0275template"](2,Ss,4,8,"div",31),r["\u0275\u0275elementEnd"]()),2&e){r["\u0275\u0275nextContext"]();const e=r["\u0275\u0275reference"](40);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",(null==e?null:e.errors.min)||(null==e?null:e.errors.max))}}function Os(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",10),r["\u0275\u0275elementStart"](1,"div",11),r["\u0275\u0275elementStart"](2,"div",23),r["\u0275\u0275element"](3,"label",62),r["\u0275\u0275elementStart"](4,"input",63),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).$implicit.compensation_value=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",23),r["\u0275\u0275element"](7,"label",64),r["\u0275\u0275elementStart"](8,"input",65),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).$implicit.compensation_temp=t}),r["\u0275\u0275pipe"](9,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",11),r["\u0275\u0275elementStart"](11,"div",66),r["\u0275\u0275elementStart"](12,"settings-ts-field",67),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).$implicit.ts_field_temperature=t}),r["\u0275\u0275pipe"](13,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2).$implicit,t=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.sensors.compensationValue"),r["\u0275\u0275advance"](1),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](5,11,"settings.sensors.compensationValuePlaceholder")),r["\u0275\u0275property"]("ngModel",e.compensation_value),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.sensors.compensationTemp"),r["\u0275\u0275advance"](1),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](9,13,"settings.sensors.compensationTempPlaceholder")),r["\u0275\u0275property"]("ngModel",e.compensation_temp),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label",r["\u0275\u0275pipeBind1"](13,15,"settings.sensors.compensationSelectTemp"))("ts_field_id","ts_field_temperature")("ts_field",e.ts_field_temperature)("channels",t.settings.ts_channels)("required",!0)}}const Is=function(){return{value:"Channel"}};function ks(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",18),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",11),r["\u0275\u0275elementStart"](3,"div",23),r["\u0275\u0275elementStart"](4,"settings-gpio-field",17),r["\u0275\u0275listener"]("fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.pin_dt=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"div",23),r["\u0275\u0275elementStart"](6,"settings-gpio-field",17),r["\u0275\u0275listener"]("fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.pin_sck=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"div",11),r["\u0275\u0275elementStart"](8,"div",23),r["\u0275\u0275elementStart"](9,"label",41),r["\u0275\u0275text"](10,"HX711 Channel"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](11,"select",42),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.channel=t}),r["\u0275\u0275element"](12,"option",20),r["\u0275\u0275pipe"](13,"translate"),r["\u0275\u0275elementStart"](14,"option",34),r["\u0275\u0275text"](15,"Channel A"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"option",34),r["\u0275\u0275text"](17,"Channel B"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](18,"div",23),r["\u0275\u0275elementStart"](19,"settings-ts-field",26),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field=t}),r["\u0275\u0275pipe"](20,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"div",11),r["\u0275\u0275elementStart"](22,"div",43),r["\u0275\u0275elementStart"](23,"button",44),r["\u0275\u0275listener"]("click",function(){r["\u0275\u0275restoreView"](e);const t=r["\u0275\u0275nextContext"]().index;return r["\u0275\u0275nextContext"]().showCalibration[t]=!0}),r["\u0275\u0275text"](24),r["\u0275\u0275pipe"](25,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](26,Cs,1,1,"sensors-weight-calibration",45),r["\u0275\u0275elementStart"](27,"div",23),r["\u0275\u0275elementStart"](28,"label",46),r["\u0275\u0275text"](29),r["\u0275\u0275pipe"](30,"translate"),r["\u0275\u0275pipe"](31,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](32,"input",47),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.offset=t}),r["\u0275\u0275pipe"](33,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](34,"div",23),r["\u0275\u0275elementStart"](35,"label",48),r["\u0275\u0275text"](36),r["\u0275\u0275pipe"](37,"translate"),r["\u0275\u0275pipe"](38,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](39,"input",49,50),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.reference_unit=t}),r["\u0275\u0275pipe"](41,"number"),r["\u0275\u0275pipe"](42,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](43,Es,3,2,"div",51),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](44,"div",11),r["\u0275\u0275elementStart"](45,"div",52),r["\u0275\u0275element"](46,"div",53),r["\u0275\u0275pipe"](47,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](48,"div",52),r["\u0275\u0275element"](49,"div",53),r["\u0275\u0275pipe"](50,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](51,"div",11),r["\u0275\u0275elementStart"](52,"div",12),r["\u0275\u0275elementStart"](53,"div",13),r["\u0275\u0275elementStart"](54,"input",54),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.invert=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](55,"label",55),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](56,"div",11),r["\u0275\u0275elementStart"](57,"div",12),r["\u0275\u0275elementStart"](58,"div",56),r["\u0275\u0275elementStart"](59,"input",57),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.compensation=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](60,"label",58),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](61,"div",12),r["\u0275\u0275template"](62,Os,14,17,"div",59),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275reference"](40),t=r["\u0275\u0275nextContext"](),n=t.index,i=t.$implicit,s=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](66,vs,n%2==0)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","GPIO DT")("field_id","pin_dt")("field",i.pin_dt)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction3"](68,ps,s.settings.led_pin,s.settings.button_pin,s.settings.w1gpio)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("label","GPIO SCK")("field_id","pin_sck")("field",i.pin_sck)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction3"](72,ps,s.settings.led_pin,s.settings.button_pin,s.settings.w1gpio)),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("ngModel",i.channel),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](13,40,"buttons.select",r["\u0275\u0275pureFunction0"](76,Is))),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue","A"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue","B"),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](20,43,"settings.thingspeak.field"))("ts_field",i.ts_field)("channels",s.settings.ts_channels),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("disabled",!(i.pin_dt&&i.pin_sck&&i.channel)),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](25,45,"settings.sensors.calibration.guidedTour")," "),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",!0===s.showCalibration[n]),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate2"]("",r["\u0275\u0275pipeBind1"](30,47,"settings.sensors.weightcell")," ",r["\u0275\u0275pipeBind1"](31,49,"settings.sensors.offset"),""),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](33,51,"settings.sensors.offset")),r["\u0275\u0275property"]("ngModel",i.offset),r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate2"]("",r["\u0275\u0275pipeBind1"](37,53,"settings.sensors.weightcell")," ",r["\u0275\u0275pipeBind1"](38,55,"settings.sensors.scale"),""),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](42,60,"settings.sensors.scale")),r["\u0275\u0275property"]("ngModel",r["\u0275\u0275pipeBind2"](41,57,i.reference_unit,"1.0-4"))("min",1e-4)("max",999.9999),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",e.invalid&&(e.dirty||e.touched)),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](47,62,"alerts.hx711.offset"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](50,64,"alerts.hx711.scale"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("ngModel",i.invert),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.sensors.invert"),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngModel",i.compensation),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.sensors.enableCompensation"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",i.compensation)}}const Ts=function(){return{value:"DHT"}};function js(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",18),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",11),r["\u0275\u0275elementStart"](3,"div",23),r["\u0275\u0275elementStart"](4,"settings-ts-field",38),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",23),r["\u0275\u0275elementStart"](7,"settings-ts-field",38),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_humidity=t}),r["\u0275\u0275pipe"](8,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"div",11),r["\u0275\u0275elementStart"](10,"div",23),r["\u0275\u0275elementStart"](11,"settings-gpio-field",17),r["\u0275\u0275listener"]("fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.pin=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](12,"div",23),r["\u0275\u0275element"](13,"label",68),r["\u0275\u0275elementStart"](14,"select",69),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.dht_type=t}),r["\u0275\u0275element"](15,"option",20),r["\u0275\u0275pipe"](16,"translate"),r["\u0275\u0275elementStart"](17,"option",34),r["\u0275\u0275text"](18,"DHT11"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"option",34),r["\u0275\u0275text"](20,"DHT22"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"option",34),r["\u0275\u0275text"](22,"AM2302"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](23,"div",11),r["\u0275\u0275elementStart"](24,"div",23),r["\u0275\u0275elementStart"](25,"label",70),r["\u0275\u0275text"](26),r["\u0275\u0275pipe"](27,"translate"),r["\u0275\u0275pipe"](28,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](29,"input",71),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.offset=t}),r["\u0275\u0275pipe"](30,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](),t=e.index,n=e.$implicit,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](38,vs,t%2==0)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](5,25,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",n.ts_field_temperature)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](8,27,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",n.ts_field_humidity)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","GPIO")("field_id","pin")("field",n.pin)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction3"](40,ps,i.settings.led_pin,i.settings.button_pin,i.settings.w1gpio)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.sensors.selectType"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",n.dht_type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](16,29,"buttons.select",r["\u0275\u0275pureFunction0"](44,Ts))),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",11),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",22),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",2302),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate2"]("",r["\u0275\u0275pipeBind1"](27,32,"settings.sensors.temperature")," ",r["\u0275\u0275pipeBind1"](28,34,"settings.sensors.offset")," [\xb0C]"),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](30,36,"settings.sensors.offset")),r["\u0275\u0275property"]("ngModel",n.offset)}}const Vs=function(){return{value:"MAX"}};function Ps(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",18),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",11),r["\u0275\u0275elementStart"](3,"div",23),r["\u0275\u0275elementStart"](4,"settings-gpio-field",17),r["\u0275\u0275listener"]("fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.pin_cs=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"div",23),r["\u0275\u0275elementStart"](6,"settings-gpio-field",17),r["\u0275\u0275listener"]("fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.pin_clock=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"div",11),r["\u0275\u0275elementStart"](8,"div",23),r["\u0275\u0275elementStart"](9,"settings-gpio-field",17),r["\u0275\u0275listener"]("fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.pin=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",23),r["\u0275\u0275element"](11,"label",68),r["\u0275\u0275elementStart"](12,"select",72),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.max_type=t}),r["\u0275\u0275element"](13,"option",20),r["\u0275\u0275pipe"](14,"translate"),r["\u0275\u0275elementStart"](15,"option",34),r["\u0275\u0275text"](16,"MAX6675"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"option",34),r["\u0275\u0275text"](18,"MAX31855"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"div",11),r["\u0275\u0275elementStart"](20,"div",23),r["\u0275\u0275elementStart"](21,"label",73),r["\u0275\u0275text"](22),r["\u0275\u0275pipe"](23,"translate"),r["\u0275\u0275pipe"](24,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](25,"input",74),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.offset=t}),r["\u0275\u0275pipe"](26,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](27,"div",23),r["\u0275\u0275elementStart"](28,"settings-ts-field",38),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field=t}),r["\u0275\u0275pipe"](29,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](),t=e.index,n=e.$implicit,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](41,vs,t%2==0)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","Chip-Select (CS)-GPIO")("field_id","pin_cs")("field",n.pin_cs)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction3"](43,ps,i.settings.led_pin,i.settings.button_pin,i.settings.w1gpio)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("label","Clock (CLK)-GPIO")("field_id","pin_clock")("field",n.pin_clock)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction3"](47,ps,i.settings.led_pin,i.settings.button_pin,i.settings.w1gpio)),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","Daten (MISO)-GPIO")("field_id","pin_miso")("field",n.pin)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction3"](51,ps,i.settings.led_pin,i.settings.button_pin,i.settings.w1gpio)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.sensors.selectType"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",n.max_type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](14,30,"buttons.select",r["\u0275\u0275pureFunction0"](55,Vs))),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",6675),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",31855),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate2"]("",r["\u0275\u0275pipeBind1"](23,33,"settings.sensors.temperature")," ",r["\u0275\u0275pipeBind1"](24,35,"settings.sensors.offset")," [\xb0C]"),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](26,37,"settings.sensors.offset")),r["\u0275\u0275property"]("ngModel",n.offset),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](29,39,"settings.thingspeak.field"))("ts_field_id","ts_field")("ts_field",n.ts_field)("channels",i.settings.ts_channels)}}function Ms(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",18),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",11),r["\u0275\u0275elementStart"](3,"div",23),r["\u0275\u0275elementStart"](4,"settings-ts-field",38),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",23),r["\u0275\u0275elementStart"](7,"settings-ts-field",38),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_humidity=t}),r["\u0275\u0275pipe"](8,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"div",11),r["\u0275\u0275elementStart"](10,"div",23),r["\u0275\u0275elementStart"](11,"settings-ts-field",38),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_air_pressure=t}),r["\u0275\u0275pipe"](12,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"div",11),r["\u0275\u0275elementStart"](14,"div",23),r["\u0275\u0275elementStart"](15,"label",75),r["\u0275\u0275text"](16),r["\u0275\u0275pipe"](17,"translate"),r["\u0275\u0275pipe"](18,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"input",76),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.offset=t}),r["\u0275\u0275pipe"](20,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](),t=e.index,n=e.$implicit,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](29,vs,t%2==0)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](5,17,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",n.ts_field_temperature)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](8,19,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",n.ts_field_humidity)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](12,21,"settings.sensors.pressure"))("ts_field_id","ts_field_air_pressure")("ts_field",n.ts_field_air_pressure)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate2"]("",r["\u0275\u0275pipeBind1"](17,23,"settings.sensors.temperature")," ",r["\u0275\u0275pipeBind1"](18,25,"settings.sensors.offset")," [\xb0C]"),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](20,27,"settings.sensors.offset")),r["\u0275\u0275property"]("ngModel",n.offset)}}const As=function(){return{value:"VCC"}};function Ns(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"select",81),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).$implicit.I2CVoltage=t}),r["\u0275\u0275element"](2,"option",79),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementStart"](4,"option",34),r["\u0275\u0275text"](5,"Max. 16.5V 3.3V\xd7(30k\u2126\xf77.5k\u2126+1) (default)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"option",34),r["\u0275\u0275text"](7,"Max. 25V 5V\xd7(30k\u2126\xf77.5k\u2126+1)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"option",34),r["\u0275\u0275text"](9,"Max. 29.7V 3.3V\xd7(40k\u2126\xf75k\u2126+1)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"option",82),r["\u0275\u0275elementStart"](11,"em"),r["\u0275\u0275text"](12),r["\u0275\u0275pipe"](13,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2).$implicit;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",e.I2CVoltage),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](3,8,"buttons.select",r["\u0275\u0275pureFunction0"](13,As))),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",16.5),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",25),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",29.7),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",null),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](13,11,"settings.sensors.customValue"))}}function Ds(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"div",83),r["\u0275\u0275elementStart"](2,"input",84),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).$implicit.I2CVoltage=t}),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"div",85),r["\u0275\u0275elementStart"](5,"button",86),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).$implicit.I2CVoltage=void 0}),r["\u0275\u0275text"](6,"X"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2).$implicit;r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](3,2,"settings.sensors.selectI2CVoltage_c")),r["\u0275\u0275property"]("ngModel",e.I2CVoltage)}}const Rs=function(){return{value:"PIN"}},Fs=function(){return[void 0,16.5,25,29.7]};function Ls(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",18),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",11),r["\u0275\u0275elementStart"](3,"div",23),r["\u0275\u0275elementStart"](4,"settings-ts-field",38),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",23),r["\u0275\u0275element"](7,"label",77),r["\u0275\u0275elementStart"](8,"select",78),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.pin=t}),r["\u0275\u0275element"](9,"option",79),r["\u0275\u0275pipe"](10,"translate"),r["\u0275\u0275elementStart"](11,"option",34),r["\u0275\u0275text"](12,"AIN0"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"option",34),r["\u0275\u0275text"](14,"AIN1"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](15,"option",34),r["\u0275\u0275text"](16,"AIN2 (default)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"option",34),r["\u0275\u0275text"](18,"AIN3"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"div",11),r["\u0275\u0275elementStart"](20,"div",23),r["\u0275\u0275element"](21,"label",80),r["\u0275\u0275template"](22,Ns,14,14,"ng-container",31),r["\u0275\u0275template"](23,Ds,7,4,"ng-container",31),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](),t=e.index,n=e.$implicit,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](21,vs,t%2==0)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](5,16,"settings.thingspeak.field"))("ts_field_id","ts_field")("ts_field",n.ts_field)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.sensors.selectPin"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",n.pin),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](10,18,"buttons.select",r["\u0275\u0275pureFunction0"](23,Rs))),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",0),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",1),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",2),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",3),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("translate","settings.sensors.selectI2CVoltage"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",r["\u0275\u0275pureFunction0"](24,Fs).includes(n.I2CVoltage)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!r["\u0275\u0275pureFunction0"](25,Fs).includes(n.I2CVoltage))}}function Bs(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",18),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",11),r["\u0275\u0275elementStart"](3,"div",23),r["\u0275\u0275elementStart"](4,"settings-ts-field",38),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",11),r["\u0275\u0275elementStart"](7,"div",23),r["\u0275\u0275elementStart"](8,"settings-ts-field",38),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=t}),r["\u0275\u0275pipe"](9,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",23),r["\u0275\u0275elementStart"](11,"settings-ts-field",38),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_air_pressure=t}),r["\u0275\u0275pipe"](12,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](),t=e.index,n=e.$implicit,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](19,vs,t%2==0)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](5,13,"settings.sensors.co2"))("ts_field_id","ts_field_temperature")("ts_field",n.ts_field)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](9,15,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",n.ts_field_temperature)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](12,17,"settings.sensors.pressure"))("ts_field_id","ts_field_air_pressure")("ts_field",n.ts_field_air_pressure)("channels",i.settings.ts_channels)}}const Hs=function(e){return{value:e}};function Us(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"tr",18),r["\u0275\u0275elementStart"](2,"td"),r["\u0275\u0275elementStart"](3,"select",19),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.$implicit.type=e}),r["\u0275\u0275element"](4,"option",20),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275pipe"](6,"translate"),r["\u0275\u0275elementStart"](7,"option",20),r["\u0275\u0275text"](8,"Temperatursensor (DS18b20)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"option",20),r["\u0275\u0275text"](10,"BME680 (Temperatur+Luftfeuchtigkeit+Luftdruck+Qualit\xe4t)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](11,"option",20),r["\u0275\u0275text"](12,"BME280 (Temperatur+Luftfeuchtigkeit+Luftdruck)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"option",20),r["\u0275\u0275text"](14,"Gewichtssensor (A/D: HX711)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](15,"option",20),r["\u0275\u0275text"](16,"Luftfeuchtigkeit und Temperatur (DHT)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"option",20),r["\u0275\u0275text"](18,"Temperatursensor (MAX6675/MAX31855)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"option",20),r["\u0275\u0275text"](20,"Voltmeter (A/D: PCF8591)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"option",20),r["\u0275\u0275text"](22,"CO2, Temp, Luftdruck (EE895)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](23,"td"),r["\u0275\u0275elementStart"](24,"button",21),r["\u0275\u0275listener"]("click",function(){r["\u0275\u0275restoreView"](e);const n=t.index;return r["\u0275\u0275nextContext"]().removeSensor(n)}),r["\u0275\u0275pipe"](25,"translate"),r["\u0275\u0275text"](26," \u232b "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](27,_s,35,39,"tr",22),r["\u0275\u0275template"](28,ws,24,37,"tr",22),r["\u0275\u0275template"](29,ks,63,77,"tr",22),r["\u0275\u0275template"](30,js,31,45,"tr",22),r["\u0275\u0275template"](31,Ps,30,56,"tr",22),r["\u0275\u0275template"](32,Ms,21,31,"tr",22),r["\u0275\u0275template"](33,Ls,24,26,"tr",22),r["\u0275\u0275template"](34,Bs,13,21,"tr",22),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=t.$implicit,n=t.index;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](36,vs,n%2==0)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](5,29,"buttons.select",r["\u0275\u0275pureFunction1"](38,Hs,r["\u0275\u0275pipeBind1"](6,32,"settings.sensors.sensor")))),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngValue",0)("translate","settings.sensors.sensor_0"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",1)("translate","settings.sensors.sensor_1"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",5)("translate","settings.sensors.sensor_5"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",2)("translate","settings.sensors.sensor_2"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",3)("translate","settings.sensors.sensor_3"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",4)("translate","settings.sensors.sensor_4"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",6)("translate","settings.sensors.sensor_6"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",7)("translate","settings.sensors.sensor_7"),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("title",r["\u0275\u0275pipeBind1"](25,34,"buttons.remove")),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",0==e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",1==e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",2==e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",3==e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",4==e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",5==e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",6==e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",7==e.type)}}let qs=(()=>{class e{constructor(e){this.appService=e,this.temperatureSensors=[],this.temperatureSensorWasFiltered=!1,this.showCalibration=[],this.settingsChange=new r.EventEmitter}set settings(e){this.settingsChange.emit(e),this._settings=e}get settings(){return this._settings}ngOnInit(){this.getTemperatureSensors()}addSensor(){this.settings.sensors.push(new Xi)}removeSensor(e){this.settings.sensors.splice(e,1)}filterTemperatureSensors(e){const t=e.filter(function(e,t,n){return-1===e.indexOf("00000000")});return this.temperatureSensorWasFiltered=e.length!==t.length,t}getTemperatureSensors(){this.appService.getTemperatureSensors().subscribe(e=>{e&&(console.log("unfiltered",e),this.temperatureSensors=this.filterTemperatureSensors(e),console.log("filtered",this.temperatureSensors))},e=>{console.error(e)})}isChecked(e){return e.pin>0}changeCheck(e){return e.target.checked?9:0}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-sensors"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:38,vars:40,consts:[[1,"table","table-bordered","table-sm",2,"position","relative","overflow-x","hidden","overflow-y","auto"],["id","sensors"],[4,"ngFor","ngForOf"],["colspan","2"],[1,"btn","btn-primary",3,"title","click"],["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["data-toggle","collapse","href","#collapseSensor","role","button","aria-expanded","false","aria-controls","collapseSensor",1,"text-danger"],["id","collapseSensor",1,"collapse"],[1,"card","card-body"],[1,"row"],[1,"col-12"],[1,"form-group","form-check"],["type","checkbox","name","debug","id","debug",1,"form-check-input",3,"ngModel","ngModelChange"],["for","debug",1,"form-check-label",3,"innerHTML"],[1,"form-group"],[3,"label","field_id","field","required","disabled_pins","fieldChanged"],[3,"ngClass"],["name","sensor-type","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue","translate"],[1,"btn","btn-danger","float-right",3,"title","click"],[3,"ngClass",4,"ngIf"],[1,"form-group","col-12","col-sm-6"],["for","device_id"],["id","device_id","name","device_id","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"label","ts_field","channels","ts_fieldChanged"],["for","offset_ds18b20"],["type","number","step","0.1","id","offset_ds18b20","name","offset_ds18b20",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["type","checkbox","id","use_3V","name","use_3V",1,"form-check-input",3,"checked","change"],["for","use_3V",1,"form-check-label",3,"translate"],[4,"ngIf"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-info",4,"ngIf"],[3,"ngValue"],["role","alert",1,"alert","alert-warning"],[1,"alert","alert-info"],[3,"routerLink","click"],[3,"label","ts_field_id","ts_field","channels","ts_fieldChanged"],["for","offset_bme680"],["type","number","step","0.1","id","offset_bme680","name","offset_bme680",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","channel"],["name","channel","id","channel","required","",1,"custom-select",3,"ngModel","ngModelChange"],[1,"form-group","col-12"],[1,"btn","btn-sm","btn-outline-primary",2,"width","100%",3,"disabled","click"],["style","z-index:9999;position:absolute",3,"sensor","closeModal","calibrationChange",4,"ngIf"],["for","offset"],["type","number","step","1","id","offset","name","offset","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","reference_unit"],["type","number","step","0.0001","id","reference_unit","name","reference_unit","required","",1,"form-control",3,"ngModel","placeholder","min","max","ngModelChange"],["ref_unit","ngModel"],["class","alert alert-danger col-12","role","alert","style","margin-top:5px",4,"ngIf"],[1,"col-12","col-md-6"],[1,"alert","alert-info",3,"innerHTML"],["type","checkbox","name","invert","id","invert",1,"form-check-input",3,"ngModel","ngModelChange"],["for","invert",1,"form-check-label",3,"translate"],[1,"form-check"],["type","checkbox","id","compensation",1,"form-check-input",3,"ngModel","ngModelChange"],["for","compensation",1,"form-check-label",3,"translate"],["class","card card-body",4,"ngIf"],[2,"z-index","9999","position","absolute",3,"sensor","closeModal","calibrationChange"],["role","alert",1,"alert","alert-danger","col-12",2,"margin-top","5px"],["for","compensation_value",3,"translate"],["type","number","step","0.01","id","compensation_value","name","compensation_value","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","compensation_temp",3,"translate"],["type","number","step","0.01","id","compensation_temp","name","compensation_temp","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],[1,"col-12","col-sm-6"],[3,"label","ts_field_id","ts_field","channels","required","ts_fieldChanged"],["for","dht_type",3,"translate"],["id","dht_type","name","dht_type","required","",1,"custom-select",3,"ngModel","ngModelChange"],["for","offset_dht"],["type","number","step","0.1","id","offset_dht","name","offset_dht",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["id","max_type","name","max_type","required","",1,"custom-select",3,"ngModel","ngModelChange"],["for","offset_max"],["type","number","step","0.1","id","offset_max","name","offset",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","offset_bme280"],["type","number","step","0.1","id","offset_bme280","name","offset_bme280",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","pcf8591_pin",3,"translate"],["id","pcf8591_pin","name","pcf8591_pin","required","",1,"custom-select",3,"ngModel","ngModelChange"],["disabled","",3,"ngValue","translate"],["for","ic2_voltage",3,"translate"],["id","ic2_voltage","name","ic2_voltage","required","",1,"custom-select",3,"ngModel","ngModelChange"],[2,"font-style","italic",3,"ngValue"],[1,"input-group","mb-3"],["type","number","step","0.01","id","ic2_voltage_c","name","ic2_voltage_c",1,"form-control",3,"ngModel","placeholder","ngModelChange"],[1,"input-group-append"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"table",0),r["\u0275\u0275elementStart"](1,"tbody",1),r["\u0275\u0275template"](2,Us,35,40,"ng-container",2),r["\u0275\u0275elementStart"](3,"tr"),r["\u0275\u0275elementStart"](4,"td",3),r["\u0275\u0275elementStart"](5,"button",4),r["\u0275\u0275listener"]("click",function(){return t.addSensor()}),r["\u0275\u0275pipe"](6,"translate"),r["\u0275\u0275text"](7),r["\u0275\u0275pipe"](8,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"div",5),r["\u0275\u0275elementStart"](10,"a",6),r["\u0275\u0275text"](11,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](12,"span",7),r["\u0275\u0275pipe"](13,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](14,"p"),r["\u0275\u0275elementStart"](15,"a",8),r["\u0275\u0275text"](16),r["\u0275\u0275pipe"](17,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](18,"div",9),r["\u0275\u0275elementStart"](19,"div",10),r["\u0275\u0275elementStart"](20,"div",11),r["\u0275\u0275elementStart"](21,"div",12),r["\u0275\u0275elementStart"](22,"div",13),r["\u0275\u0275elementStart"](23,"input",14),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.debug=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](24,"label",15),r["\u0275\u0275pipe"](25,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](26,"hr"),r["\u0275\u0275elementStart"](27,"div",16),r["\u0275\u0275elementStart"](28,"settings-gpio-field",17),r["\u0275\u0275listener"]("fieldChanged",function(e){return t.settings.led_pin=e}),r["\u0275\u0275pipe"](29,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](30,"div",16),r["\u0275\u0275elementStart"](31,"settings-gpio-field",17),r["\u0275\u0275listener"]("fieldChanged",function(e){return t.settings.button_pin=e}),r["\u0275\u0275pipe"](32,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](33,"div",5),r["\u0275\u0275elementStart"](34,"a",6),r["\u0275\u0275text"](35,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](36),r["\u0275\u0275pipe"](37,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngForOf",t.settings.sensors),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("title",r["\u0275\u0275pipeBind1"](6,18,"buttons.add")),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate1"](" + ",r["\u0275\u0275pipeBind1"](8,20,"settings.sensors.addSensor")," "),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](13,22,"alerts.gpio"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](17,24,"settings.sensors.advancedSettings")," "),r["\u0275\u0275advance"](7),r["\u0275\u0275property"]("ngModel",t.settings.debug),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](25,26,"settings.sensors.debug"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label",r["\u0275\u0275pipeBind1"](29,28,"settings.sensors.ledPin"))("field_id","led_pin")("field",t.settings.led_pin)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction2"](34,bs,t.settings.button_pin,t.settings.w1gpio)),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label",r["\u0275\u0275pipeBind1"](32,30,"settings.sensors.buttonPin"))("field_id","button_pin")("field",t.settings.button_pin)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction2"](37,bs,t.settings.led_pin,t.settings.w1gpio)),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](37,32,"alerts.afterSave")," "))},directives:[i.k,ye.CheckboxControlValueAccessor,ye.NgControlStatus,ye.NgModel,Ji,i.j,ye.SelectControlValueAccessor,ye.RequiredValidator,ye.NgSelectOption,ye["\u0275angular_packages_forms_forms_x"],ni,i.l,is,ye.NumberValueAccessor,ye.DefaultValueAccessor,dr,Vr.MinValidator,Vr.MaxValidator,ds],pipes:[ri,i.d],styles:[""]}),e})();function Ws(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"pre",8),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.debugInfo)}}function zs(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"li",12),r["\u0275\u0275elementStart"](1,"strong"),r["\u0275\u0275text"](2),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](4),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](),t=e.$implicit,n=e.index,i=r["\u0275\u0275nextContext"](3);r["\u0275\u0275propertyInterpolate1"]("id","abc_",t,""),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate2"]("",r["\u0275\u0275pipeBind1"](3,4,"settings.thingspeak.field")," ",n+1,""),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate1"](": ",i.thingSpeakFields["field"+(n+1)]," ")}}function Gs(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275template"](1,zs,5,6,"li",11),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=t.index,n=r["\u0275\u0275nextContext"](3);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",n.thingSpeakFields["field"+(e+1)]||0===n.thingSpeakFields["field"+(e+1)])}}function Ks(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"ul",9),r["\u0275\u0275template"](1,Gs,2,1,"ng-container",10),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",e.numbers)}}function Qs(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275template"](1,Ws,2,1,"pre",6),r["\u0275\u0275template"](2,Ks,2,1,"ul",7),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.debugInfo),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.thingSpeakFields)}}n("Xs6s");const Zs=function(e){return{tab:e}};function Xs(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",13),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",2),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind2"](4,1,"settings.measurement.noData",r["\u0275\u0275pureFunction1"](6,Zs,r["\u0275\u0275pipeBind1"](5,4,"settings.sensors.title"))),r["\u0275\u0275sanitizeHtml"]))}function Ys(e,t){1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"div",14),r["\u0275\u0275elementStart"](2,"div",15),r["\u0275\u0275elementStart"](3,"div",15),r["\u0275\u0275elementStart"](4,"div",15),r["\u0275\u0275element"](5,"div",15),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]())}let Js=(()=>{class e{constructor(e){this.appService=e,this.isLoading=!1,this.noData=!1,this.numbers=Array(80).fill(0).map((e,t)=>t)}ngOnInit(){}getMeasurement(){this.measurement=null,this.isLoading=!0,this.appService.getMeasurement().finally(()=>this.isLoading=!1).subscribe(e=>{console.log(e),e?(this.measurement=e,this.noData=!1):this.noData=!0},e=>{console.error(e)})}get debugInfo(){return this.measurement&&this.measurement.includes("{")?this.measurement.split("{")[0]:null}get thingSpeakFields(){if(this.measurement&&this.measurement.includes("{")){let e=this.measurement.split("{");return e="{"+e[e.length-1],JSON.parse(e)}return null}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-measurement"]],decls:11,vars:13,consts:[["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],[4,"ngIf"],["class","alert alert-warning","role","alert",4,"ngIf"],["type","button","role","button",1,"btn","btn-primary","btn-sm",3,"disabled","translate","click"],["class","pre-scrollable",4,"ngIf"],["class","list-group",4,"ngIf"],[1,"pre-scrollable"],[1,"list-group"],[4,"ngFor","ngForOf"],["class","list-group-item",3,"id",4,"ngIf"],[1,"list-group-item",3,"id"],["role","alert",1,"alert","alert-warning"],["id","circle"],[1,"loader"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",2),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](6,Qs,3,2,"ng-container",3),r["\u0275\u0275template"](7,Xs,6,8,"div",4),r["\u0275\u0275template"](8,Ys,6,0,"ng-container",3),r["\u0275\u0275element"](9,"br"),r["\u0275\u0275elementStart"](10,"button",5),r["\u0275\u0275listener"]("click",function(){return t.getMeasurement()}),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind2"](4,6,"settings.measurement.info",r["\u0275\u0275pureFunction1"](11,Zs,r["\u0275\u0275pipeBind1"](5,9,"settings.sensors.title"))),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",t.measurement),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.noData&&!t.measurement),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.isLoading),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("disabled",t.isLoading)("translate","settings.measurement.get"))},directives:[i.l,ni,i.k],pipes:[ri],styles:["#circle[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:150px;height:150px}.loader[_ngcontent-%COMP%]{width:calc(100% - 0px);height:calc(100% - 0px);border:8px solid #f7f7f7;border-top-color:#ffc107;border-radius:50%;-webkit-animation:rotate 5s linear infinite;animation:rotate 5s linear infinite}@-webkit-keyframes rotate{to{transform:rotate(1turn)}}@keyframes rotate{to{transform:rotate(1turn)}}"]}),e})();const eo=function(e){return{tab:e}};function to(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",17),r["\u0275\u0275elementStart"](1,"a",3),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",4),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind2"](4,1,"settings.offline.noData",r["\u0275\u0275pureFunction1"](6,eo,r["\u0275\u0275pipeBind1"](5,4,"settings.thingspeak.title"))),r["\u0275\u0275sanitizeHtml"]))}function no(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"div",19),r["\u0275\u0275elementStart"](2,"div",20),r["\u0275\u0275elementStart"](3,"a",21),r["\u0275\u0275text"](4),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"button",22),r["\u0275\u0275listener"]("click",function(){r["\u0275\u0275restoreView"](e);const t=r["\u0275\u0275nextContext"]().$implicit;return r["\u0275\u0275nextContext"]().deleteCsv(t.ts_channel_id)}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]().$implicit,t=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate2"]("href","",t.apiURL,"offlinecsv.php?channelId=",e.ts_channel_id,"",r["\u0275\u0275sanitizeUrl"]),r["\u0275\u0275propertyInterpolate1"]("download","HoneyPi-",e.ts_channel_id,"-export.csv"),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate3"](" ",r["\u0275\u0275pipeBind1"](5,7,"settings.offline.exportButton")," #",e.ts_channel_id," ",e.name," "),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.offline.delete")}}function ro(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275template"](1,no,7,9,"div",18),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=t.$implicit;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.ts_channel_id)}}let io=(()=>{class e{constructor(e){this.appService=e,this.settingsChange=new r.EventEmitter}set settings(e){this.settingsChange.emit(e),this._settings=e}get settings(){return this._settings}ngOnInit(){this.apiURL="./backend/"}deleteCsv(e){this.appService.deleteCsv(e).subscribe(e=>{},e=>{console.error(e)})}get isThingSpeakDefined(){return 0===this.settings.ts_channels.filter(e=>e.ts_channel_id>0).length}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-offline"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:23,vars:22,consts:[[1,"row"],[1,"col-12"],["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],[1,"form-check"],["type","radio","name","offline","id","offline0",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline0",1,"form-check-label",3,"translate"],["type","radio","name","offline","id","offline1",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline1",1,"form-check-label",3,"translate"],["type","radio","name","offline","id","offline2",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline2",1,"form-check-label",3,"translate"],["type","radio","name","offline","id","offline3",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline3",1,"form-check-label",3,"translate"],[1,"h5",3,"translate"],["class","alert alert-warning","role","alert",4,"ngIf"],[4,"ngFor","ngForOf"],["role","alert",1,"alert","alert-warning"],["class","row",4,"ngIf"],[1,"col-12",2,"padding-bottom","15px"],["role","group",1,"btn-group","btn-group-sm"],["target","_blank",1,"btn","btn-primary","btn-sm",3,"href","download"],["type","button","role","button",1,"btn","btn-danger","btn-sm",3,"translate","click"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275elementStart"](2,"div",2),r["\u0275\u0275elementStart"](3,"a",3),r["\u0275\u0275text"](4,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](5,"span",4),r["\u0275\u0275pipe"](6,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"div",5),r["\u0275\u0275elementStart"](8,"input",6),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.offline=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](9,"label",7),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",5),r["\u0275\u0275elementStart"](11,"input",8),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.offline=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](12,"label",9),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"div",5),r["\u0275\u0275elementStart"](14,"input",10),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.offline=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](15,"label",11),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"div",5),r["\u0275\u0275elementStart"](17,"input",12),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.offline=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](18,"label",13),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](19,"hr"),r["\u0275\u0275element"](20,"h5",14),r["\u0275\u0275template"](21,to,6,8,"div",15),r["\u0275\u0275template"](22,ro,2,1,"ng-container",16)),2&e&&(r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](6,20,"settings.offline.infoExport"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("value",0)("ngModel",t.settings.offline)("checked",0==t.settings.offline||null==t.settings.offline),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.offline.radio0"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",1)("ngModel",t.settings.offline)("checked",1==t.settings.offline),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.offline.radio1"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",2)("ngModel",t.settings.offline)("checked",2==t.settings.offline),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.offline.radio2"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",3)("ngModel",t.settings.offline)("checked",3==t.settings.offline),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.offline.radio3"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.offline.export"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.isThingSpeakDefined),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",t.settings.ts_channels))},directives:[ye.RadioControlValueAccessor,ye.DefaultValueAccessor,ye.NgControlStatus,ye.NgModel,ni,i.l,i.k],pipes:[ri],styles:[""]}),e})();function so(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"pre",5),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.log)}}function oo(e,t){1&e&&r["\u0275\u0275element"](0,"div",6),2&e&&r["\u0275\u0275property"]("translate","settings.log.nofile")}function ao(e,t){1&e&&r["\u0275\u0275element"](0,"div",6),2&e&&r["\u0275\u0275property"]("translate","settings.log.empty")}let lo=(()=>{class e{constructor(e){this.appService=e,this.log=null}ngOnInit(){this.getLog()}getLog(){this.log=null,this.appService.getLog().subscribe(e=>{this.log=e},e=>{console.error(e)})}deleteLog(){this.appService.deleteLog().subscribe(e=>{this.log=e},e=>{console.error(e)})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-log"]],decls:6,vars:5,consts:[["class","pre-scrollable",4,"ngIf"],["class","alert alert-info",3,"translate",4,"ngIf"],["role","group",1,"btn-group","btn-group-sm"],["type","button","role","button",1,"btn","btn-primary","btn-sm",3,"translate","click"],["type","button","role","button",1,"btn","btn-danger","btn-sm",3,"translate","click"],[1,"pre-scrollable"],[1,"alert","alert-info",3,"translate"]],template:function(e,t){1&e&&(r["\u0275\u0275template"](0,so,2,1,"pre",0),r["\u0275\u0275template"](1,oo,1,1,"div",1),r["\u0275\u0275template"](2,ao,1,1,"div",1),r["\u0275\u0275elementStart"](3,"div",2),r["\u0275\u0275elementStart"](4,"button",3),r["\u0275\u0275listener"]("click",function(){return t.getLog()}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"button",4),r["\u0275\u0275listener"]("click",function(){return t.deleteLog()}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275property"]("ngIf",t.log&&"NOFILE"!==t.log),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf","NOFILE"===t.log),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",""==t.log),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.log.get"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.log.delete"))},directives:[i.l,ni],styles:[""]}),e})();function uo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",23),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",2),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.updateAP"),r["\u0275\u0275sanitizeHtml"]))}function co(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",24),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",2),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.updateNotAP"),r["\u0275\u0275sanitizeHtml"]))}function ho(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"pre",25),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"json"),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"]("Error-Code: ",r["\u0275\u0275pipeBind1"](2,1,e.log),"")}}function po(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275text"](1),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate2"]("rpi-scripts ",e.versionInfo.result.scripts.tag_name,"\nChangelog:\n",e.versionInfo.result.scripts.body,"")}}function fo(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275text"](1),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate2"]("\nrpi-webinterface ",e.versionInfo.result.webinterface.tag_name,"\nChangelog:\n",e.versionInfo.result.webinterface.body,"")}}function go(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"pre",25),r["\u0275\u0275text"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"br"),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](3);r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate"](e.versionInfo.result.currentVersion)}}function mo(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",26),r["\u0275\u0275elementStart"](1,"b"),r["\u0275\u0275text"](2,"Derzeit installierte Version:"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](3,go,4,1,"ng-container",22),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",e.versionInfo.result.currentVersion)}}function vo(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",8),r["\u0275\u0275elementStart"](1,"div",26),r["\u0275\u0275elementStart"](2,"b"),r["\u0275\u0275text"](3,"Vef\xfcgbare Versionen:"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](4,"br"),r["\u0275\u0275elementStart"](5,"pre",25),r["\u0275\u0275template"](6,po,2,2,"ng-container",22),r["\u0275\u0275text"](7,"\n"),r["\u0275\u0275template"](8,fo,2,2,"ng-container",22),r["\u0275\u0275text"](9,"\n"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](10,mo,4,1,"div",27),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](6),r["\u0275\u0275property"]("ngIf",e.versionInfo.result.scripts),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",e.versionInfo.result.webinterface),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",e.versionInfo.result.currentVersion)}}function yo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"button",28),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().update("update")}),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("disabled",e.isLoading)("translate","settings.update.update")}}function bo(e,t){1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"div",29),r["\u0275\u0275elementStart"](2,"div",30),r["\u0275\u0275elementStart"](3,"div",30),r["\u0275\u0275elementStart"](4,"div",30),r["\u0275\u0275element"](5,"div",30),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]())}let _o=(()=>{class e{constructor(e){this.appService=e,this.log=null,this.isLoading=!1,this.versionInfo=null,this.usePreVersion=!1}ngOnInit(){this.apiURL="./backend/"}get isAccessPoint(){return"192.168.4.1"===window.location.hostname}update(e){this.log=null,this.isLoading=!0,this.appService.checkInternet().timeout(15e3).subscribe(t=>{!0===t.connected?this.appService.update(e,this.usePreVersion).finally(()=>this.isLoading=!1).subscribe(e=>{console.log(e),this.log=e,window.confirm("Erfolgreich aktualisiert. Die Seite muss aktualisiert werden. Jetzt neuladen?")&&location.reload(!0)},e=>{console.error(e)}):(this.isLoading=!1,alert("No internet connection. Try again with internet connection."))},e=>{console.log(e),this.isLoading=!1,alert("No internet connection. Try again with internet connection.")})}getVersionInfo(){this.versionInfo=null,this.log=null,this.isLoading=!0,this.appService.checkInternet().timeout(15e3).subscribe(e=>{!0===e.connected?this.appService.update("versionInfo",this.usePreVersion).finally(()=>this.isLoading=!1).subscribe(e=>{try{if(this.versionInfo=e,this.log=null,this.versionInfo.error)throw new Error("Exception occured: "+this.versionInfo.error)}catch(t){console.error(t),this.log=t,this.versionInfo=null}},e=>{this.versionInfo=null,console.error(e),this.log=e,e.name&&"TimeoutError"===e.name?this.log="TimeoutError.":e.name&&"HttpErrorResponse"===e.name&&(this.log="HttpErrorResponse.")}):(this.isLoading=!1,alert("No internet connection. Try again with internet connection."))},e=>{console.log(e),this.isLoading=!1,alert("No internet connection. Try again with internet connection.")})}onFileChanged(e){const t=e.target.files[0];if(console.log(t),t){const e=new FileReader;e.readAsText(t,"UTF-8"),e.onload=e=>{const t=JSON.parse(e.target.result);t&&window.confirm("Soll die Datei jetzt importiert werden?")&&this.appService.setSettings(t).subscribe(e=>{e&&(console.log(e),window.confirm("Erfolgreich gespeichert. Die Seite muss aktualisiert werden. Jetzt neuladen?")&&location.reload(!0))})},e.onerror=e=>{window.alert("Error reading file.")}}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-update"]],decls:28,vars:18,consts:[["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-success","role","alert",4,"ngIf"],[1,"h5",3,"translate"],["class","pre-scrollable",4,"ngIf"],["class","row",4,"ngIf"],[1,"row"],[1,"col-12"],[1,"form-group","form-check"],["type","checkbox","name","usePreVersion","id","usePreVersion",1,"form-check-input",3,"ngModel","ngModelChange"],["for","usePreVersion",1,"form-check-label",3,"translate"],["type","button","role","button",1,"btn","btn-primary","btn-sm","mr-1","mt-1",3,"disabled","translate","click"],["class","btn btn-warning btn-sm mt-1","type","button","role","button",3,"disabled","translate","click",4,"ngIf"],[1,"form-group"],["for","settingsFile",3,"translate"],["type","file","id","settingsFile","name","settingsFile","accept","application/json,.json",1,"form-control-file",3,"change"],["fileInput",""],["role","group",1,"btn-group","btn-group-sm"],["href","./backend/settings.json","target","_blank","download","settings-backup.json",1,"btn","btn-primary","btn-sm",3,"translate"],["type","button","role","button",1,"btn","btn-warning","btn-sm",3,"translate","click"],[4,"ngIf"],["role","alert",1,"alert","alert-warning"],["role","alert",1,"alert","alert-success"],[1,"pre-scrollable"],[1,"col-12","col-sm-6"],["class","col-12 col-sm-6",4,"ngIf"],["type","button","role","button",1,"btn","btn-warning","btn-sm","mt-1",3,"disabled","translate","click"],["id","circle"],[1,"loader"]],template:function(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",2),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](5,uo,5,3,"div",3),r["\u0275\u0275template"](6,co,5,3,"div",4),r["\u0275\u0275element"](7,"h5",5),r["\u0275\u0275template"](8,ho,3,3,"pre",6),r["\u0275\u0275template"](9,vo,11,3,"div",7),r["\u0275\u0275elementStart"](10,"div",8),r["\u0275\u0275elementStart"](11,"div",9),r["\u0275\u0275elementStart"](12,"div",10),r["\u0275\u0275elementStart"](13,"input",11),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.usePreVersion=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](14,"label",12),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](15,"p"),r["\u0275\u0275elementStart"](16,"button",13),r["\u0275\u0275listener"]("click",function(){return t.getVersionInfo()}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](17,yo,1,2,"button",14),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](18,"hr"),r["\u0275\u0275element"](19,"h5",5),r["\u0275\u0275elementStart"](20,"div",15),r["\u0275\u0275element"](21,"label",16),r["\u0275\u0275elementStart"](22,"input",17,18),r["\u0275\u0275listener"]("change",function(e){return t.onFileChanged(e)}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](24,"div",19),r["\u0275\u0275element"](25,"a",20),r["\u0275\u0275elementStart"](26,"button",21),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275reference"](23).click()}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](27,bo,6,0,"ng-container",22)}2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,16,"alerts.updateInfo"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",t.isAccessPoint),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!t.isAccessPoint),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.update.title"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.log),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.versionInfo),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngModel",t.usePreVersion),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.update.usePreVersion"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("disabled",t.isLoading)("translate","settings.update.preupdate"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.versionInfo),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.update.export"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.log.importSettings"),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("translate","settings.log.export"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.log.import"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.isLoading))},directives:[i.l,ni,ye.CheckboxControlValueAccessor,ye.NgControlStatus,ye.NgModel],pipes:[ri,i.f],styles:["#circle[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:150px;height:150px}.loader[_ngcontent-%COMP%]{width:calc(100% - 0px);height:calc(100% - 0px);border:8px solid #f7f7f7;border-top-color:#ffc107;border-radius:50%;-webkit-animation:rotate 5s linear infinite;animation:rotate 5s linear infinite}@-webkit-keyframes rotate{to{transform:rotate(1turn)}}@keyframes rotate{to{transform:rotate(1turn)}}"]}),e})();function wo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",11),r["\u0275\u0275elementStart"](1,"input",12),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().settings.wittyPi.normal.shutdownAfterTransfer=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](2,"label",13),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",e.settings.wittyPi.normal.shutdownAfterTransfer),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](3,2,"settings.sensors.shutdownAfterTransfer"),r["\u0275\u0275sanitizeHtml"])}}function Co(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",14),r["\u0275\u0275elementStart"](1,"a",15),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",16),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.shutdownAfterTransfer"),r["\u0275\u0275sanitizeHtml"]))}function xo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"button",27),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).installWittyPi(2)}),r["\u0275\u0275text"](1,"WittyPi 2 installieren"),r["\u0275\u0275elementEnd"]()}}function $o(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"button",27),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).installWittyPi(3)}),r["\u0275\u0275text"](1,"WittyPi 3 installieren"),r["\u0275\u0275elementEnd"]()}}function So(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"option",4),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;r["\u0275\u0275property"]("ngValue",e.script),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.name)}}function Eo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",35),r["\u0275\u0275elementStart"](1,"a",15),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",16),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"error.wittypinotwait"),r["\u0275\u0275sanitizeHtml"]))}function Oo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",35),r["\u0275\u0275elementStart"](1,"a",15),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",16),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"error.wittypiwait"),r["\u0275\u0275sanitizeHtml"]))}function Io(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"div",19),r["\u0275\u0275elementStart"](2,"div",28),r["\u0275\u0275elementStart"](3,"select",29),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).selectedExampleNormal=t})("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).settings.wittyPi.normal.schedule=t}),r["\u0275\u0275element"](4,"option",30),r["\u0275\u0275template"](5,So,2,2,"option",31),r["\u0275\u0275element"](6,"option",32),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"div",0),r["\u0275\u0275elementStart"](8,"textarea",33),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).settings.wittyPi.normal.schedule=t}),r["\u0275\u0275pipe"](9,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](10,Eo,5,3,"div",34),r["\u0275\u0275template"](11,Oo,5,3,"div",34),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngModel",e.selectedExampleNormal),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("value",null)("translate","settings.wittypi.loadexample"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",e.exampleScriptsNormal),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("value","")("translate","settings.wittypi.empty"),r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](9,10,"settings.wittypi.script")),r["\u0275\u0275property"]("ngModel",e.settings.wittyPi.normal.schedule),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",e.showWarningForMissingWait(e.settings.wittyPi.normal)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.showWarningForWait(e.settings.wittyPi.normal))}}const ko=function(e){return{field:e}};function To(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.required",r["\u0275\u0275pureFunction1"](6,ko,r["\u0275\u0275pipeBind1"](3,4,"settings.wittypi.voltageLow")))," "))}function jo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.length",r["\u0275\u0275pureFunction1"](6,ko,r["\u0275\u0275pipeBind1"](3,4,"settings.wittypi.voltageLow")))," "))}function Vo(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",51),r["\u0275\u0275template"](1,To,4,8,"div",10),r["\u0275\u0275template"](2,jo,4,8,"div",10),r["\u0275\u0275elementEnd"]()),2&e){r["\u0275\u0275nextContext"]();const e=r["\u0275\u0275reference"](8);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",(null==e?null:e.errors.min)||(null==e?null:e.errors.max))}}function Po(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.required",r["\u0275\u0275pureFunction1"](6,ko,r["\u0275\u0275pipeBind1"](3,4,"settings.wittypi.voltageNormal")))," "))}function Mo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.length",r["\u0275\u0275pureFunction1"](6,ko,r["\u0275\u0275pipeBind1"](3,4,"settings.wittypi.voltageNormal")))," "))}function Ao(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",51),r["\u0275\u0275template"](1,Po,4,8,"div",10),r["\u0275\u0275template"](2,Mo,4,8,"div",10),r["\u0275\u0275elementEnd"]()),2&e){r["\u0275\u0275nextContext"]();const e=r["\u0275\u0275reference"](15);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",(null==e?null:e.errors.min)||(null==e?null:e.errors.max))}}function No(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"option",4),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;r["\u0275\u0275property"]("ngValue",e.script),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.name)}}function Do(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",35),r["\u0275\u0275elementStart"](1,"a",15),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",16),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"error.wittypinotwait"),r["\u0275\u0275sanitizeHtml"]))}function Ro(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",35),r["\u0275\u0275elementStart"](1,"a",15),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",16),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"error.wittypiwait"),r["\u0275\u0275sanitizeHtml"]))}function Fo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"div",19),r["\u0275\u0275elementStart"](2,"div",28),r["\u0275\u0275elementStart"](3,"select",29),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](3).selectedExampleLow=t})("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](3).settings.wittyPi.low.schedule=t}),r["\u0275\u0275element"](4,"option",30),r["\u0275\u0275template"](5,No,2,2,"option",31),r["\u0275\u0275element"](6,"option",32),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"div",0),r["\u0275\u0275elementStart"](8,"textarea",52),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](3).settings.wittyPi.low.schedule=t}),r["\u0275\u0275pipe"](9,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](10,Do,5,3,"div",34),r["\u0275\u0275template"](11,Ro,5,3,"div",34),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](3);r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngModel",e.selectedExampleLow),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("value",null)("translate","settings.wittypi.loadexample"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",e.exampleScriptsLow),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("value","")("translate","settings.wittypi.empty"),r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](9,10,"settings.wittypi.script")),r["\u0275\u0275property"]("ngModel",e.settings.wittyPi.low.schedule),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",e.showWarningForMissingWait(e.settings.wittyPi.low)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.showWarningForWait(e.settings.wittyPi.low))}}function Lo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",11),r["\u0275\u0275elementStart"](1,"input",53),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](3).settings.wittyPi.low.shutdownAfterTransfer=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](2,"label",54),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](3);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",e.settings.wittyPi.low.shutdownAfterTransfer),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](3,2,"settings.sensors.shutdownAfterTransfer"),r["\u0275\u0275sanitizeHtml"])}}function Bo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",14),r["\u0275\u0275elementStart"](1,"a",15),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",16),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.shutdownAfterTransfer"),r["\u0275\u0275sanitizeHtml"]))}const Ho=function(e){return{value:e}};function Uo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",36),r["\u0275\u0275elementStart"](1,"div",37),r["\u0275\u0275elementStart"](2,"div",38),r["\u0275\u0275elementStart"](3,"div",39),r["\u0275\u0275elementStart"](4,"label",40),r["\u0275\u0275text"](5),r["\u0275\u0275pipe"](6,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"input",41,42),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).settings.wittyPi.low.voltage=t}),r["\u0275\u0275pipe"](9,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",39),r["\u0275\u0275elementStart"](11,"label",43),r["\u0275\u0275text"](12),r["\u0275\u0275pipe"](13,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](14,"input",44,45),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).settings.wittyPi.normal.voltage=t}),r["\u0275\u0275pipe"](16,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](17,Vo,3,2,"div",46),r["\u0275\u0275template"](18,Ao,3,2,"div",46),r["\u0275\u0275elementStart"](19,"div",7),r["\u0275\u0275elementStart"](20,"input",47),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).settings.wittyPi.low.enabled=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](21,"label",48),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](22,Fo,12,12,"ng-container",10),r["\u0275\u0275element"](23,"hr"),r["\u0275\u0275elementStart"](24,"div",0),r["\u0275\u0275elementStart"](25,"label",49),r["\u0275\u0275text"](26,">"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](27,"select",50),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).settings.wittyPi.low.interval=t}),r["\u0275\u0275element"](28,"option",3),r["\u0275\u0275pipe"](29,"translate"),r["\u0275\u0275pipe"](30,"translate"),r["\u0275\u0275elementStart"](31,"option",4),r["\u0275\u0275text"](32,"1min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](33,"option",4),r["\u0275\u0275text"](34,"5min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](35,"option",4),r["\u0275\u0275text"](36,"10min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](37,"option",4),r["\u0275\u0275text"](38,"15min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](39,"option",4),r["\u0275\u0275text"](40,"30min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](41,"option",4),r["\u0275\u0275text"](42,"60min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](43,"option",4),r["\u0275\u0275text"](44,"2h"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](45,"option",4),r["\u0275\u0275text"](46,"3h"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](47,"option",4),r["\u0275\u0275text"](48,"4h"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](49,"option",4),r["\u0275\u0275text"](50),r["\u0275\u0275pipe"](51,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](52,"option",4),r["\u0275\u0275text"](53),r["\u0275\u0275pipe"](54,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](55,Lo,4,4,"div",5),r["\u0275\u0275template"](56,Bo,5,3,"div",6),r["\u0275\u0275elementStart"](57,"div",14),r["\u0275\u0275elementStart"](58,"a",15),r["\u0275\u0275text"](59,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](60),r["\u0275\u0275pipe"](61,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275reference"](8),t=r["\u0275\u0275reference"](15),n=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate1"]("",r["\u0275\u0275pipeBind1"](6,35,"settings.wittypi.voltageLow")," [V]"),r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](9,37,"settings.wittypi.voltage")),r["\u0275\u0275property"]("min",0)("max",n.settings.wittyPi.normal.voltage)("ngModel",n.settings.wittyPi.low.voltage),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate1"]("",r["\u0275\u0275pipeBind1"](13,39,"settings.wittypi.voltageNormal")," [V]"),r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](16,41,"settings.wittypi.voltage")),r["\u0275\u0275property"]("min",n.settings.wittyPi.low.voltage)("max",100)("ngModel",n.settings.wittyPi.normal.voltage),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",e.invalid&&(e.dirty||e.touched)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.invalid&&(t.dirty||t.touched)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",n.settings.wittyPi.low.enabled),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.wittypi.enableLowMode"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",n.settings.wittyPi.low.enabled),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.wittypi.voltageLowInterval"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",n.settings.wittyPi.low.interval),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](29,43,"buttons.select",r["\u0275\u0275pureFunction1"](54,Ho,r["\u0275\u0275pipeBind1"](30,46,"settings.sensors.interval")))),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngValue",60),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",300),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",600),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",900),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",1800),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",3600),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",7200),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",10800),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",14400),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",1),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](51,48,"settings.sensors.measurementOnce")),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",0),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](54,50,"settings.sensors.measurementNone")),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",1===n.settings.wittyPi.low.interval),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",1===n.settings.wittyPi.low.interval&&!0===n.settings.wittyPi.low.shutdownAfterTransfer),r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](61,52,"alerts.afterSaveOrManualStart")," ")}}function qo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",11),r["\u0275\u0275elementStart"](1,"input",55),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).settings.wittyPi.dummyload=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](2,"label",56),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",e.settings.wittyPi.dummyload),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](3,2,"settings.sensors.dummyload"),r["\u0275\u0275sanitizeHtml"])}}function Wo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",14),r["\u0275\u0275elementStart"](1,"a",15),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",16),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.dummyload"),r["\u0275\u0275sanitizeHtml"]))}function zo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275elementStart"](1,"div",14),r["\u0275\u0275elementStart"](2,"a",15),r["\u0275\u0275text"](3,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](4,"span",16),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",0),r["\u0275\u0275elementStart"](7,"label",17),r["\u0275\u0275text"](8,">"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"select",18),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().settings.wittyPi.version=t}),r["\u0275\u0275element"](10,"option",3),r["\u0275\u0275pipe"](11,"translate"),r["\u0275\u0275pipe"](12,"translate"),r["\u0275\u0275elementStart"](13,"option",4),r["\u0275\u0275text"](14,"WittyPi Version 2"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](15,"option",4),r["\u0275\u0275text"](16,"WittyPi Version 3"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"div",19),r["\u0275\u0275elementStart"](18,"div",20),r["\u0275\u0275template"](19,xo,2,0,"button",21),r["\u0275\u0275template"](20,$o,2,0,"button",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"div",7),r["\u0275\u0275elementStart"](22,"input",22),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().settings.wittyPi.normal.enabled=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](23,"label",23),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](24,Io,12,12,"ng-container",10),r["\u0275\u0275elementStart"](25,"div",7),r["\u0275\u0275elementStart"](26,"input",24),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().settings.wittyPi.voltagecheck_enabled=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](27,"label",25),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](28,Uo,62,56,"div",26),r["\u0275\u0275template"](29,qo,4,4,"div",5),r["\u0275\u0275template"](30,Wo,5,3,"div",6),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](5,19,"alerts.wittypi"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.wittypi.version"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",e.settings.wittyPi.version),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](11,21,"buttons.select",r["\u0275\u0275pureFunction1"](26,Ho,r["\u0275\u0275pipeBind1"](12,24,"settings.sensors.version")))),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngValue",2),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",3),r["\u0275\u0275advance"](2),r["\u0275\u0275classProp"]("spinner",e.isLoading),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",2===e.settings.wittyPi.version),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",3===e.settings.wittyPi.version),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",e.settings.wittyPi.normal.enabled),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.wittypi.enableNormalMode"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.settings.wittyPi.normal.enabled),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",e.settings.wittyPi.voltagecheck_enabled),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.wittypi.enableVoltageCheck"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.settings.wittyPi.voltagecheck_enabled),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",3===e.settings.wittyPi.version),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",3===e.settings.wittyPi.version)}}let Go=(()=>{class e{constructor(e,t){this.appService=e,this.translate=t,this.exampleScriptsNormal=[{name:"Anschalten alle 30Minuten",script:"BEGIN 2015-08-01 08:00:00\nEND 2025-07-31 18:00:00\nON M5 WAIT\nOFF M25"},{name:"Anschalten alle 15min",script:"BEGIN 2015-08-01 00:00:00 \nEND 2025-07-31 23:59:59 \nON M5 WAIT\nOFF M10"},{name:"7-19Uhr alle 30min, 19-7h st\xfcndliches Anschalten",script:"BEGIN 2015-08-01 07:00:00\nEND 2025-07-31 23:59:59\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\n"}],this.exampleScriptsLow=[{name:"T\xe4glich um 6 Uhr anschalten",script:"BEGIN 2020-03-01 06:00:00\nEND 2025-12-31 00:00:00\nON M5 WAIT\nOFF H23 M55"},{name:"Alle 8h anschalten",script:"BEGIN 2020-03-01 06:00:00\nEND 2025-12-31 00:00:00\nON M5 WAIT\nOFF H7 M55\nON M5 WAIT\nOFF H7 M55\nON M5 WAIT\nOFF H7 M55"}],this.selectedExampleNormal=null,this.selectedExampleLow=null,this.settingsChange=new r.EventEmitter}set settings(e){this.settingsChange.emit(e),this._settings=e}get settings(){return this._settings}ngOnInit(){}installWittyPi(e){this.isLoading=!0,this.translate.get("settings.confirm.installWittyPi").subscribe(t=>{window.confirm(t)?this.appService.checkInternet().timeout(15e3).subscribe(t=>{!0===t.connected?this.appService.update("installWittyPi",!1,"&version="+e).finally(()=>this.isLoading=!1).subscribe(e=>{console.log(e),alert("Erfolgreich. Der Raspberry muss jetzt von dir neugestartet werden.")},e=>{console.error(e),alert("Error while installing WittyPi. Try again.")}):(this.isLoading=!1,alert("No internet connection. Try again with internet connection."))},e=>{console.log(e),this.isLoading=!1,alert("No internet connection. Try again with internet connection.")}):this.isLoading=!1})}showWarningForMissingWait(e){return 1===e.interval&&!0===e.shutdownAfterTransfer&&-1===e.schedule.indexOf("WAIT")}showWarningForWait(e){return(!0!==e.shutdownAfterTransfer||1!==e.interval)&&-1!==e.schedule.indexOf("WAIT")}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci),r["\u0275\u0275directiveInject"](ti))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-wittypi"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:37,vars:33,consts:[[1,"form-group"],["for","interval",3,"translate"],["id","interval","name","interval","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue","translate"],[3,"ngValue"],["class","form-group form-check",4,"ngIf"],["class","alert alert-info","role","alert",4,"ngIf"],[1,"form-check"],["type","checkbox","id","wittyPi",1,"form-check-input",3,"ngModel","ngModelChange"],["for","wittyPi",1,"form-check-label",3,"translate"],[4,"ngIf"],[1,"form-group","form-check"],["type","checkbox","name","shutdownAfterTransfer","id","shutdownAfterTransfer",1,"form-check-input",3,"ngModel","ngModelChange"],["for","shutdownAfterTransfer",1,"form-check-label",3,"innerHTML"],["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["for","version",3,"translate"],["id","version","name","version","required","",1,"custom-select",3,"ngModel","ngModelChange"],[1,"clearfix"],["role","group",1,"btn-group","btn-group-sm","float-right"],["class","btn btn-outline-warning btn-sm","type","button","role","button",3,"click",4,"ngIf"],["type","checkbox","id","normal_enabled",1,"form-check-input",3,"ngModel","ngModelChange"],["for","normal_enabled",1,"form-check-label",3,"translate"],["type","checkbox","id","wittyPi_voltage",1,"form-check-input",3,"ngModel","ngModelChange"],["for","wittyPi_voltage",1,"form-check-label",3,"translate"],["class","collapse show","id","collapseVolltageCheck",4,"ngIf"],["type","button","role","button",1,"btn","btn-outline-warning","btn-sm",3,"click"],[1,"form-group","float-right"],[1,"form-control",2,"max-width","250px",3,"ngModel","ngModelChange"],["disabled","",2,"display","none",3,"value","translate"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"value","translate"],["id","normal_schedule","rows","5","name","normal_schedule",1,"form-control","pre-scrollable",3,"placeholder","ngModel","ngModelChange"],["class","alert alert-warning","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-warning"],["id","collapseVolltageCheck",1,"collapse","show"],[1,"card","card-body"],[1,"row"],[1,"form-group","col-12","col-sm-6"],["for","low_voltage"],["type","number","step","0.1","id","low_voltage","name","low_voltage","required","",1,"form-control",3,"min","max","ngModel","placeholder","ngModelChange"],["lowVoltage","ngModel"],["for","normal_voltage"],["type","number","step","0.1","id","normal_voltage","name","normal_voltage","required","",1,"form-control",3,"min","max","ngModel","placeholder","ngModelChange"],["normalVoltage","ngModel"],["class","alert alert-danger",4,"ngIf"],["type","checkbox","id","low_enabled",1,"form-check-input",3,"ngModel","ngModelChange"],["for","low_enabled",1,"form-check-label",3,"translate"],["for","low_interval",3,"translate"],["id","low_interval","name","low_interval","required","",1,"custom-select",3,"ngModel","ngModelChange"],[1,"alert","alert-danger"],["id","low_schedule","rows","5","name","low_schedule",1,"form-control","pre-scrollable",3,"placeholder","ngModel","ngModelChange"],["type","checkbox","name","low_shutdownAfterTransfer","id","low_shutdownAfterTransfer",1,"form-check-input",3,"ngModel","ngModelChange"],["for","low_shutdownAfterTransfer",1,"form-check-label",3,"innerHTML"],["type","checkbox","name","dummyload","id","dummyload",1,"form-check-input",3,"ngModel","ngModelChange"],["for","dummyload",1,"form-check-label",3,"innerHTML"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"label",1),r["\u0275\u0275text"](2,">"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"select",2),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.wittyPi.normal.interval=e}),r["\u0275\u0275element"](4,"option",3),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275pipe"](6,"translate"),r["\u0275\u0275elementStart"](7,"option",4),r["\u0275\u0275text"](8,"1min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"option",4),r["\u0275\u0275text"](10,"5min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](11,"option",4),r["\u0275\u0275text"](12,"10min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"option",4),r["\u0275\u0275text"](14,"15min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](15,"option",4),r["\u0275\u0275text"](16,"30min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"option",4),r["\u0275\u0275text"](18,"60min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"option",4),r["\u0275\u0275text"](20,"2h"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"option",4),r["\u0275\u0275text"](22,"3h"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](23,"option",4),r["\u0275\u0275text"](24,"4h"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](25,"option",4),r["\u0275\u0275text"](26),r["\u0275\u0275pipe"](27,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](28,"option",4),r["\u0275\u0275text"](29),r["\u0275\u0275pipe"](30,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](31,wo,4,4,"div",5),r["\u0275\u0275template"](32,Co,5,3,"div",6),r["\u0275\u0275elementStart"](33,"div",7),r["\u0275\u0275elementStart"](34,"input",8),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.wittyPi.enabled=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](35,"label",9),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](36,zo,31,28,"div",10)),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.sensors.measurementInterval"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",t.settings.wittyPi.normal.interval),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](5,22,"buttons.select",r["\u0275\u0275pureFunction1"](31,Ho,r["\u0275\u0275pipeBind1"](6,25,"settings.sensors.interval")))),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngValue",60),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",300),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",600),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",900),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",1800),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",3600),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",7200),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",10800),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",14400),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",1),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](27,27,"settings.sensors.measurementOnce")),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",0),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](30,29,"settings.sensors.measurementNone")),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",1===t.settings.wittyPi.normal.interval),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",1===t.settings.wittyPi.normal.interval&&!0===t.settings.wittyPi.normal.shutdownAfterTransfer),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",t.settings.wittyPi.enabled),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.wittypi.enableWitty"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.settings.wittyPi.enabled))},directives:[ni,ye.SelectControlValueAccessor,ye.RequiredValidator,ye.NgControlStatus,ye.NgModel,ye.NgSelectOption,ye["\u0275angular_packages_forms_forms_x"],i.l,ye.CheckboxControlValueAccessor,i.k,ye.DefaultValueAccessor,ye.NumberValueAccessor,Vr.MinValidator,Vr.MaxValidator],pipes:[ri],styles:[""]}),e})();function Ko(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",42),r["\u0275\u0275elementStart"](1,"a",43),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",44),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.notAP"),r["\u0275\u0275sanitizeHtml"]))}function Qo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",45),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementStart"](3,"div",46),r["\u0275\u0275elementStart"](4,"button",6),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().saveSettings()}),r["\u0275\u0275text"](5,"Speichern"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"button",47),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().undoChanges()}),r["\u0275\u0275text"](7,"\xc4nderungen verwerfen"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](8,"div",8),r["\u0275\u0275elementEnd"]()}2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](2,3,"alerts.changedSettings")," "),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","buttons.save"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","buttons.undo"))}function Zo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",48),r["\u0275\u0275elementStart"](1,"a",43),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",44),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.saved"),r["\u0275\u0275sanitizeHtml"]))}function Xo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",49),r["\u0275\u0275elementStart"](1,"a",43),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",44),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.errorSaving"),r["\u0275\u0275sanitizeHtml"]))}function Yo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",14),r["\u0275\u0275elementStart"](1,"div",50),r["\u0275\u0275elementStart"](2,"h5",16),r["\u0275\u0275elementStart"](3,"button",51),r["\u0275\u0275text"](4),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",52),r["\u0275\u0275elementStart"](7,"div",19),r["\u0275\u0275elementStart"](8,"app-wittypi",20),r["\u0275\u0275listener"]("settingsChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().settings=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](5,2,"settings.wittypi.title")," "),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("settings",e.settings)}}function Jo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"p"),r["\u0275\u0275element"](1,"img",62),r["\u0275\u0275elementEnd"]())}function ea(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"p"),r["\u0275\u0275element"](1,"img",63),r["\u0275\u0275elementEnd"]())}function ta(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275element"](1,"p",44),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275template"](3,Jo,2,0,"p",41),r["\u0275\u0275template"](4,ea,2,0,"p",41),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](2,3,"settings.connectionerror.stayconnectedAP"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf","Android"===e.getMobileOperatingSystem()),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf","iOS"===e.getMobileOperatingSystem())}}function na(e,t){1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275element"](1,"p",44),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementContainerEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](2,1,"settings.connectionerror.stayconnectedNotAP"),r["\u0275\u0275sanitizeHtml"]))}function ra(e,t){1&e&&r["\u0275\u0275element"](0,"div",64)}const ia=function(){return{display:"block"}};function sa(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"div",53),r["\u0275\u0275elementStart"](2,"div",54),r["\u0275\u0275elementStart"](3,"div",55),r["\u0275\u0275elementStart"](4,"div",56),r["\u0275\u0275elementStart"](5,"h5",57),r["\u0275\u0275text"](6,"Verbindung fehlgeschlagen"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"div",58),r["\u0275\u0275elementStart"](8,"div",44),r["\u0275\u0275pipe"](9,"translate"),r["\u0275\u0275text"](10," Die Bienenstockwaage ist gerade nicht erreichbar. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](11,ta,5,5,"ng-container",41),r["\u0275\u0275template"](12,na,3,3,"ng-container",41),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"div",59),r["\u0275\u0275elementStart"](14,"button",60),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().getSettings()}),r["\u0275\u0275text"](15,"Erneut versuchen"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](16,ra,1,0,"div",61),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngStyle",!e.isConnected&&r["\u0275\u0275pureFunction0"](12,ia)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("translate","settings.connectionerror.title"),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](9,10,"settings.connectionerror.body"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",e.isAccessPoint),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!e.isAccessPoint),r["\u0275\u0275advance"](2),r["\u0275\u0275classProp"]("spinner",e.isLoading),r["\u0275\u0275property"]("disabled",e.isLoading)("translate","buttons.tryagain"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",!e.isConnected)}}const oa=function(e){return{container:e}};function aa(e){return new si(e,"./assets/i18n/translations_",".json")}const la=[{path:"",component:(()=>{class e{constructor(e,t){this.appService=e,this.translate=t,this.settings=new mi,this.settingsSaved=!1,this.settingsError=!1,this.isConnected=!0,this.isLoading=!1,this.enableWittyPi=!0,this.modalEnabled=!0}get isAccessPoint(){return"192.168.4.1"===window.location.hostname}processSettings(t){this.settings=e.validateSettings(t),this.saveSettingsBackup(this.settings)}static validateSettings(e){return e.ts_channels||(e.ts_channels=[],e.ts_channels.push(new vi)),e.internet||(e.internet=new di),e.sensors||(e.sensors=[]),e}static deepCopy(e){return JSON.parse(JSON.stringify(e))}saveSettingsBackup(t){this.settingsBackup=e.deepCopy(t),console.log(this.settingsBackup)}get isSettingsChanged(){return JSON.stringify(this.settings)!==JSON.stringify(this.settingsBackup)}undoChanges(){this.settings=e.deepCopy(this.settingsBackup)}getMobileOperatingSystem(){const e=navigator.userAgent||navigator.vendor||window.opera;return/windows phone/i.test(e)?"Windows Phone":/android/i.test(e)?"Android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"iOS":"unknown"}ngOnInit(){this.getSettings(),this.innerWidth=window.innerWidth}hideAlertsTimer(){this.n&&clearTimeout(this.n),this.n=window.setTimeout(()=>{this.settingsSaved=!1,this.settingsError=!1},4e3)}getSettings(){this.isLoading=!0,this.appService.getSettings().timeout(3e3).finally(()=>this.isLoading=!1).subscribe(e=>{e&&(this.processSettings(e),this.isConnected=!0)},e=>{console.error(e,e.name),!e.name||"TimeoutError"!==e.name&&"HttpErrorResponse"!==e.name||(this.isConnected=!1)})}saveSettings(){this.appService.setSettings(this.settings).timeout(5e3).subscribe(e=>{console.log(e),e&&this.processSettings(e),this.settingsSaved=!0,this.settingsError=!1,this.hideAlertsTimer(),this.isAccessPoint||this.translate.get("settings.confirm.savedAP").subscribe(e=>{window.confirm(e)&&this.boot("reboot")})},e=>{console.error(e),!e.name||"TimeoutError"!==e.name&&"HttpErrorResponse"!==e.name||(this.isConnected=!1),this.settingsError=!0,this.hideAlertsTimer()})}askForReboot(){this.translate.get("settings.confirm.reboot").subscribe(e=>{window.confirm(e)&&this.boot("reboot")})}askForShutdown(){this.translate.get("settings.confirm.shutdown").subscribe(e=>{window.confirm(e)&&this.boot("shutdown")})}boot(e="reboot"){this.isConnected=!1,this.appService.boot(e).timeout(3e3).subscribe(e=>{console.log(e)},e=>{console.error(e,e.name),!e.name||"TimeoutError"!==e.name&&"HttpErrorResponse"!==e.name||(console.log("Boot: Connection timeout."),this.isConnected=!1)},()=>{window.location.reload(!0)})}onResize(e){this.innerWidth=window.innerWidth}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci),r["\u0275\u0275directiveInject"](ti))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-settings"]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("resize",function(e){return t.onResize(e)},!1,r["\u0275\u0275resolveWindow"])},decls:83,vars:38,consts:[["role","main",3,"ngClass"],[1,"jumbotron"],[1,"float-right"],["role","group","aria-label","Controls",1,"btn-group","btn-group-sm"],["type","button",1,"btn","btn-sm","btn-secondary",3,"translate","click"],["type","button",1,"btn","btn-sm","btn-warning",3,"translate","click"],["type","button",1,"btn","btn-sm","btn-primary",3,"translate","click"],[1,"h1",3,"translate"],[1,"clearfix"],["class","alert alert-warning","role","alert","style","margin-top:5px",4,"ngIf"],["class","alert alert-info","role","alert",4,"ngIf"],["class","alert alert-success myAlert-top","role","alert",4,"ngIf"],["class","alert alert-danger myAlert-top","role","alert",4,"ngIf"],["id","accordion"],[1,"card"],["id","headingOne",1,"card-header"],[1,"mb-0"],["data-toggle","collapse","data-target","#collapseOne","aria-expanded","true","aria-controls","collapseOne",1,"btn","btn-link","collapsed"],["id","collapseOne","aria-labelledby","headingOne","data-parent","#accordion",1,"collapse"],[1,"card-body"],[3,"settings","settingsChange"],["id","headingTwo",1,"card-header"],["data-toggle","collapse","data-target","#collapseTwo","aria-expanded","false","aria-controls","collapseTwo",1,"btn","btn-link","collapsed"],["id","collapseTwo","aria-labelledby","headingTwo","data-parent","#accordion",1,"collapse"],[3,"wifi","wifiChange"],["id","headingThree",1,"card-header"],["data-toggle","collapse","data-target","#collapseThree","aria-expanded","false","aria-controls","collapseThree",1,"btn","btn-link","collapsed"],["id","collapseThree","aria-labelledby","headingThree","data-parent","#accordion",1,"collapse"],["id","headingFour",1,"card-header"],["data-toggle","collapse","data-target","#collapseFour","aria-expanded","false","aria-controls","collapseFour",1,"btn","btn-link","collapsed"],["id","collapseFour","aria-labelledby","headingFour","data-parent","#accordion",1,"collapse"],["id","headingEight",1,"card-header"],["data-toggle","collapse","data-target","#collapseEight","aria-expanded","false","aria-controls","collapseEight",1,"btn","btn-link","collapsed"],["id","collapseEight","aria-labelledby","headingEight","data-parent","#accordion",1,"collapse"],["id","headingFive",1,"card-header"],["data-toggle","collapse","data-target","#collapseFive","aria-expanded","false","aria-controls","collapseFive",1,"btn","btn-link","collapsed"],["id","collapseFive","aria-labelledby","headingFive","data-parent","#accordion",1,"collapse"],["id","headingSeven",1,"card-header"],["data-toggle","collapse","data-target","#collapseSeven","aria-expanded","false","aria-controls","collapseSeven",1,"btn","btn-link","collapsed"],["id","collapseSeven","aria-labelledby","headingSeven","data-parent","#accordion",1,"collapse"],["class","card",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-warning",2,"margin-top","5px"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["role","alert",1,"alert","alert-info"],["role","group","aria-label","Controls",1,"btn-group","btn-group-sm","float-right"],["type","button",1,"btn","btn-sm","btn-info",3,"translate","click"],["role","alert",1,"alert","alert-success","myAlert-top"],["role","alert",1,"alert","alert-danger","myAlert-top"],["id","headingSix",1,"card-header"],["data-toggle","collapse","data-target","#collapseSix","aria-expanded","false","aria-controls","collapseSix",1,"btn","btn-link","collapsed"],["id","collapseSix","aria-labelledby","headingSix","data-parent","#accordion",1,"collapse"],["tabindex","0","role","dialog",1,"modal","fade","show",3,"ngStyle"],["role","document",1,"modal-dialog",2,"overflow-y","initial"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"translate"],[1,"modal-body",2,"max-height","250px","overflow-y","auto"],[1,"modal-footer"],["type","button",1,"btn","btn-primary",3,"disabled","translate","click"],["class","modal-backdrop fade show",4,"ngIf"],["src","assets/images/screenshot-stayconnected-Android.png","alt","Screenshot",1,"rounded","img-fluid"],["src","assets/images/screenshot-stayconnected-iOS.jpeg","alt","Screenshot",1,"rounded","img-fluid"],[1,"modal-backdrop","fade","show"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"main",0),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275elementStart"](2,"div",2),r["\u0275\u0275elementStart"](3,"div",3),r["\u0275\u0275elementStart"](4,"button",4),r["\u0275\u0275listener"]("click",function(){return t.askForReboot()}),r["\u0275\u0275text"](5,"Neustarten"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"button",5),r["\u0275\u0275listener"]("click",function(){return t.askForShutdown()}),r["\u0275\u0275text"](7,"Ausschalten"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"button",6),r["\u0275\u0275listener"]("click",function(){return t.saveSettings()}),r["\u0275\u0275text"](9,"Speichern"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"h1",7),r["\u0275\u0275text"](11,"Wartungsmodus"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](12,"div",8),r["\u0275\u0275template"](13,Ko,5,3,"div",9),r["\u0275\u0275template"](14,Qo,9,5,"div",10),r["\u0275\u0275template"](15,Zo,5,3,"div",11),r["\u0275\u0275template"](16,Xo,5,3,"div",12),r["\u0275\u0275elementStart"](17,"div",13),r["\u0275\u0275elementStart"](18,"div",14),r["\u0275\u0275elementStart"](19,"div",15),r["\u0275\u0275elementStart"](20,"h5",16),r["\u0275\u0275elementStart"](21,"button",17),r["\u0275\u0275text"](22),r["\u0275\u0275pipe"](23,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](24,"div",18),r["\u0275\u0275elementStart"](25,"div",19),r["\u0275\u0275elementStart"](26,"app-thingspeak",20),r["\u0275\u0275listener"]("settingsChange",function(e){return t.settings=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](27,"div",14),r["\u0275\u0275elementStart"](28,"div",21),r["\u0275\u0275elementStart"](29,"h5",16),r["\u0275\u0275elementStart"](30,"button",22),r["\u0275\u0275text"](31),r["\u0275\u0275pipe"](32,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](33,"div",23),r["\u0275\u0275elementStart"](34,"div",19),r["\u0275\u0275elementStart"](35,"app-internet",24),r["\u0275\u0275listener"]("wifiChange",function(e){return t.settings.internet=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](36,"div",14),r["\u0275\u0275elementStart"](37,"div",25),r["\u0275\u0275elementStart"](38,"h5",16),r["\u0275\u0275elementStart"](39,"button",26),r["\u0275\u0275text"](40),r["\u0275\u0275pipe"](41,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](42,"div",27),r["\u0275\u0275elementStart"](43,"div",19),r["\u0275\u0275elementStart"](44,"app-sensors",20),r["\u0275\u0275listener"]("settingsChange",function(e){return t.settings=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](45,"div",14),r["\u0275\u0275elementStart"](46,"div",28),r["\u0275\u0275elementStart"](47,"h5",16),r["\u0275\u0275elementStart"](48,"button",29),r["\u0275\u0275text"](49),r["\u0275\u0275pipe"](50,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](51,"div",30),r["\u0275\u0275elementStart"](52,"div",19),r["\u0275\u0275element"](53,"app-measurement"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](54,"div",14),r["\u0275\u0275elementStart"](55,"div",31),r["\u0275\u0275elementStart"](56,"h5",16),r["\u0275\u0275elementStart"](57,"button",32),r["\u0275\u0275text"](58),r["\u0275\u0275pipe"](59,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](60,"div",33),r["\u0275\u0275elementStart"](61,"div",19),r["\u0275\u0275elementStart"](62,"app-offline",20),r["\u0275\u0275listener"]("settingsChange",function(e){return t.settings=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](63,"div",14),r["\u0275\u0275elementStart"](64,"div",34),r["\u0275\u0275elementStart"](65,"h5",16),r["\u0275\u0275elementStart"](66,"button",35),r["\u0275\u0275text"](67),r["\u0275\u0275pipe"](68,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](69,"div",36),r["\u0275\u0275elementStart"](70,"div",19),r["\u0275\u0275element"](71,"app-log"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](72,"div",14),r["\u0275\u0275elementStart"](73,"div",37),r["\u0275\u0275elementStart"](74,"h5",16),r["\u0275\u0275elementStart"](75,"button",38),r["\u0275\u0275text"](76),r["\u0275\u0275pipe"](77,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](78,"div",39),r["\u0275\u0275elementStart"](79,"div",19),r["\u0275\u0275element"](80,"app-update"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](81,Yo,9,4,"div",40),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](82,sa,17,13,"ng-container",41)),2&e&&(r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](36,oa,t.innerWidth>600)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("translate","buttons.reboot"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","buttons.shutdown"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","buttons.save"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","title"),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",!t.isAccessPoint),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.isSettingsChanged),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.settingsSaved),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.settingsError),r["\u0275\u0275advance"](6),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](23,22,"settings.thingspeak.title")," "),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("settings",t.settings),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](32,24,"settings.internet.title")," "),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("wifi",t.settings.internet),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](41,26,"settings.sensors.title")," "),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("settings",t.settings),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](50,28,"settings.measurement.title")," "),r["\u0275\u0275advance"](9),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](59,30,"settings.offline.title")," "),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("settings",t.settings),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](68,32,"settings.log.title")," "),r["\u0275\u0275advance"](9),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](77,34,"settings.update.title")," "),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("ngIf",t.enableWittyPi),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.modalEnabled))},directives:[i.j,ni,i.l,ji,Zi,qs,Js,io,lo,_o,Go,i.m],pipes:[ri],styles:[".myAlert-top[_ngcontent-%COMP%]{top:5px}.myAlert-bottom[_ngcontent-%COMP%], .myAlert-top[_ngcontent-%COMP%]{position:fixed;left:2%;width:96%;z-index:99}.myAlert-bottom[_ngcontent-%COMP%]{bottom:5px}"]}),e})()},{path:"**",redirectTo:"/"}];let ua=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e,bootstrap:[ui]}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[ve],imports:[[M,ve,ye.FormsModule,ye.ReactiveFormsModule,Vr.CustomFormsModule,ii.forRoot({loader:{provide:Dr,useFactory:aa,deps:[ne]}}),xr.forRoot(la,{relativeLinkResolution:"legacy"})]]}),e})();Object(r.enableProdMode)(),V().bootstrapModule(ua).catch(e=>console.log(e))},zx2A:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return l});var r=n("7o/Q"),i=n("HDdC"),s=n("SeVD");class o extends r.a{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends r.a{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function l(e,t){if(!t.closed)return e instanceof i.a?e.subscribe(t):Object(s.a)(e)(t)}}},[[0,0]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+UwR":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("GkNK")),r(n("DgTa"))},"+WPs":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("RY4u")),r(n("0eyc"))},"/ysC":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("S5Je")),r(n("uBVG"))},0:function(e,t,n){e.exports=n("zUnb")},"0EUg":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("bHdf");function i(){return Object(r.a)(1)}},"0eyc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.creditCard=function(e){if(i.isPresent(r.Validators.required(e)))return null;var t=e.value.replace(/[^0-9]+/g,"");if(!/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/.test(t))return{creditCard:!0};for(var n,s,o,a=0,l=t.length-1;l>=0;l--)n=t.substring(l,l+1),s=parseInt(n,10),a+=o&&(s*=2)>=10?s%10+1:s,o=!o;return Boolean(a%10==0&&t)?null:{creditCard:!0}}},"128B":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("Kqap"),i=n("BFxc"),s=n("xbPD"),o=n("mCNh");function a(e,t){return arguments.length>=2?function(n){return Object(o.a)(Object(r.a)(e,t),Object(i.a)(1),Object(s.a)(t))(n)}:function(t){return Object(o.a)(Object(r.a)((t,n,r)=>e(t,n,r+1)),Object(i.a)(1))(t)}}},"1gPL":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.equal=function(e){return function(t){return i.isPresent(r.Validators.required(t))||e===t.value?null:{equal:!0}}}},"1uah":function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});var r=n("yCtX"),i=n("DH7j"),s=n("7o/Q"),o=n("Lhse"),a=n("zx2A");function l(...e){const t=e[e.length-1];return"function"==typeof t&&e.pop(),Object(r.a)(e,void 0).lift(new u(t))}class u{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new c(e,this.resultSelector))}}class c extends s.a{constructor(e,t,n=Object.create(null)){super(e),this.resultSelector=t,this.iterators=[],this.active=0,this.resultSelector="function"==typeof t?t:void 0}_next(e){const t=this.iterators;Object(i.a)(e)?t.push(new h(e)):t.push("function"==typeof e[o.a]?new d(e[o.a]()):new p(this.destination,this,e))}_complete(){const e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(let n=0;nthis.index}hasCompleted(){return this.array.length===this.index}}class p extends a.b{constructor(e,t,n){super(e),this.parent=t,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[o.a](){return this}next(){const e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(e){this.buffer.push(e),this.parent.checkIterators()}subscribe(){return Object(a.c)(this.observable,new a.a(this))}}},"29s/":function(e,t,n){var r=n("WEpk"),i=n("5T2Y"),s=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("uOPS")?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},"2GTP":function(e,t,n){var r=n("eaoh");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("XNiG"),i=n("9ppp");class s extends r.a{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value}next(e){super.next(this._value=e)}}},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return i});let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},"2faE":function(e,t,n){var r=n("5K7Z"),i=n("eUtF"),s=n("G8Mo"),o=Object.defineProperty;t.f=n("jmDH")?Object.defineProperty:function(e,t,n){if(r(e),t=s(t,!0),r(n),i)try{return o(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"35yN":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("6Axs"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.validate=function(e){return s.dateISO(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","dateISO","","formControlName",""],["","dateISO","","formControl",""],["","dateISO","","ngModel",""]],features:[o.\u0275\u0275ProvidersFeature([a])]}),e}();t.DateISOValidator=l},"3N8a":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("quSY");class i extends r.a{constructor(e,t){super()}schedule(e,t=0){return this}}class s extends i{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}},"3Pt+":function(e,t,n){"use strict";n.r(t),n.d(t,"AbstractControl",function(){return ve}),n.d(t,"AbstractControlDirective",function(){return T}),n.d(t,"AbstractFormGroupDirective",function(){return $e}),n.d(t,"COMPOSITION_BUFFER_MODE",function(){return h}),n.d(t,"CheckboxControlValueAccessor",function(){return c}),n.d(t,"CheckboxRequiredValidator",function(){return Ge}),n.d(t,"ControlContainer",function(){return j}),n.d(t,"DefaultValueAccessor",function(){return p}),n.d(t,"EmailValidator",function(){return Ze}),n.d(t,"FormArray",function(){return _e}),n.d(t,"FormArrayName",function(){return Le}),n.d(t,"FormBuilder",function(){return at}),n.d(t,"FormControl",function(){return ye}),n.d(t,"FormControlDirective",function(){return Me}),n.d(t,"FormControlName",function(){return Ue}),n.d(t,"FormGroup",function(){return be}),n.d(t,"FormGroupDirective",function(){return Ne}),n.d(t,"FormGroupName",function(){return Re}),n.d(t,"FormsModule",function(){return ut}),n.d(t,"MaxLengthValidator",function(){return et}),n.d(t,"MinLengthValidator",function(){return Ye}),n.d(t,"NG_ASYNC_VALIDATORS",function(){return v}),n.d(t,"NG_VALIDATORS",function(){return m}),n.d(t,"NG_VALUE_ACCESSOR",function(){return l}),n.d(t,"NgControl",function(){return P}),n.d(t,"NgControlStatus",function(){return N}),n.d(t,"NgControlStatusGroup",function(){return D}),n.d(t,"NgForm",function(){return Ce}),n.d(t,"NgModel",function(){return Te}),n.d(t,"NgModelGroup",function(){return Oe}),n.d(t,"NgSelectOption",function(){return K}),n.d(t,"NumberValueAccessor",function(){return F}),n.d(t,"PatternValidator",function(){return nt}),n.d(t,"RadioControlValueAccessor",function(){return H}),n.d(t,"RangeValueAccessor",function(){return q}),n.d(t,"ReactiveFormsModule",function(){return ct}),n.d(t,"RequiredValidator",function(){return ze}),n.d(t,"SelectControlValueAccessor",function(){return G}),n.d(t,"SelectMultipleControlValueAccessor",function(){return X}),n.d(t,"VERSION",function(){return lt}),n.d(t,"Validators",function(){return b}),n.d(t,"\u0275InternalFormsSharedModule",function(){return ot}),n.d(t,"\u0275NgNoValidate",function(){return je}),n.d(t,"\u0275NgSelectMultipleOption",function(){return Y}),n.d(t,"\u0275angular_packages_forms_forms_a",function(){return rt}),n.d(t,"\u0275angular_packages_forms_forms_b",function(){return it}),n.d(t,"\u0275angular_packages_forms_forms_ba",function(){return We}),n.d(t,"\u0275angular_packages_forms_forms_bb",function(){return Qe}),n.d(t,"\u0275angular_packages_forms_forms_bc",function(){return Xe}),n.d(t,"\u0275angular_packages_forms_forms_bd",function(){return Je}),n.d(t,"\u0275angular_packages_forms_forms_be",function(){return tt}),n.d(t,"\u0275angular_packages_forms_forms_c",function(){return st}),n.d(t,"\u0275angular_packages_forms_forms_d",function(){return ot}),n.d(t,"\u0275angular_packages_forms_forms_e",function(){return u}),n.d(t,"\u0275angular_packages_forms_forms_f",function(){return d}),n.d(t,"\u0275angular_packages_forms_forms_g",function(){return M}),n.d(t,"\u0275angular_packages_forms_forms_h",function(){return A}),n.d(t,"\u0275angular_packages_forms_forms_i",function(){return we}),n.d(t,"\u0275angular_packages_forms_forms_j",function(){return Ie}),n.d(t,"\u0275angular_packages_forms_forms_k",function(){return Ee}),n.d(t,"\u0275angular_packages_forms_forms_l",function(){return R}),n.d(t,"\u0275angular_packages_forms_forms_m",function(){return L}),n.d(t,"\u0275angular_packages_forms_forms_n",function(){return B}),n.d(t,"\u0275angular_packages_forms_forms_o",function(){return U}),n.d(t,"\u0275angular_packages_forms_forms_p",function(){return Ve}),n.d(t,"\u0275angular_packages_forms_forms_q",function(){return Pe}),n.d(t,"\u0275angular_packages_forms_forms_r",function(){return He}),n.d(t,"\u0275angular_packages_forms_forms_s",function(){return Ae}),n.d(t,"\u0275angular_packages_forms_forms_t",function(){return De}),n.d(t,"\u0275angular_packages_forms_forms_u",function(){return Fe}),n.d(t,"\u0275angular_packages_forms_forms_v",function(){return W}),n.d(t,"\u0275angular_packages_forms_forms_w",function(){return Q}),n.d(t,"\u0275angular_packages_forms_forms_x",function(){return Y}),n.d(t,"\u0275angular_packages_forms_forms_y",function(){return je}),n.d(t,"\u0275angular_packages_forms_forms_z",function(){return qe});var r=n("fXoL"),i=n("ofXK"),s=n("cp0P"),o=n("Cfvw"),a=n("lJxs");const l=new r.InjectionToken("NgValueAccessor"),u={provide:l,useExisting:Object(r.forwardRef)(()=>c),multi:!0};let c=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([u])]}),e})();const d={provide:l,useExisting:Object(r.forwardRef)(()=>p),multi:!0},h=new r.InjectionToken("CompositionEventMode");let p=(()=>{class e{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Object(i.s)()?Object(i.s)().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](h,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[r["\u0275\u0275ProvidersFeature"]([d])]}),e})();function f(e){return null==e||0===e.length}function g(e){return null!=e&&"number"==typeof e.length}const m=new r.InjectionToken("NgValidators"),v=new r.InjectionToken("NgAsyncValidators"),y=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class b{static min(e){return t=>{if(f(t.value)||f(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n{if(f(t.value)||f(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return f(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return f(e.value)||y.test(e.value)?null:{email:!0}}static minLength(e){return t=>f(t.value)||!g(t.value)?null:t.value.lengthg(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}static pattern(e){if(!e)return b.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(f(e.value))return null;const r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(_);return 0==t.length?null:function(e){return x(C(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(_);return 0==t.length?null:function(e){const n=C(e,t).map(w);return Object(s.a)(n).pipe(Object(a.a)(x))}}}function _(e){return null!=e}function w(e){const t=Object(r["\u0275isPromise"])(e)?Object(o.a)(e):e;return Object(r["\u0275isObservable"])(t),t}function x(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function C(e,t){return t.map(t=>t(e))}function $(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function S(e){return null!=e?b.compose($(e)):null}function E(e){return null!=e?b.composeAsync($(e)):null}function O(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function I(e){return e._rawValidators}function k(e){return e._rawAsyncValidators}let T=(()=>{class e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=S(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=E(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e}),e})(),j=(()=>{class e extends T{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return V(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const V=r["\u0275\u0275getInheritedFactory"](j);class P extends T{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class M{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}const A={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"};let N=(()=>{class e extends M{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](P,2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),D=(()=>{class e extends M{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](j,2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const R={provide:l,useExisting:Object(r.forwardRef)(()=>F),multi:!0};let F=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([R])]}),e})();const L={provide:l,useExisting:Object(r.forwardRef)(()=>H),multi:!0};let B=(()=>{class e{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),H=(()=>{class e{constructor(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(P),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](B),r["\u0275\u0275directiveInject"](r.Injector))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r["\u0275\u0275ProvidersFeature"]([L])]}),e})();const U={provide:l,useExisting:Object(r.forwardRef)(()=>q),multi:!0};let q=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([U])]}),e})();const W={provide:l,useExisting:Object(r.forwardRef)(()=>G),multi:!0};function z(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let G=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=z(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[r["\u0275\u0275ProvidersFeature"]([W])]}),e})(),K=(()=>{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(z(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](G,9))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const Q={provide:l,useExisting:Object(r.forwardRef)(()=>X),multi:!0};function Z(e,t){return null==e?""+t:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let X=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(Z(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Z(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](X,9))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();function J(e,t){return[...t.path,e]}function ee(e,t){ne(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&ie(e,t)})}(e,t),function(e,t){const n=(e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&ie(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function te(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ne(e,t,n){const r=I(e);null!==t.validator?e.setValidators(O(r,t.validator)):"function"==typeof r&&e.setValidators([r]);const i=k(e);if(null!==t.asyncValidator?e.setAsyncValidators(O(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]),n){const n=()=>e.updateValueAndValidity();te(t._rawValidators,n),te(t._rawAsyncValidators,n)}}function re(e,t,n){if(null!==e){if(null!==t.validator){const n=I(e);Array.isArray(n)&&n.length>0&&e.setValidators(n.filter(e=>e!==t.validator))}if(null!==t.asyncValidator){const n=k(e);Array.isArray(n)&&n.length>0&&e.setAsyncValidators(n.filter(e=>e!==t.asyncValidator))}}if(n){const e=()=>{};te(t._rawValidators,e),te(t._rawAsyncValidators,e)}}function ie(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function se(e,t){ne(e,t,!1)}function oe(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}const ae=[c,q,F,G,X,H];function le(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function ue(e,t){if(!t)return null;Array.isArray(t);let n=void 0,r=void 0,i=void 0;return t.forEach(e=>{var t;e.constructor===p?n=e:(t=e,ae.some(e=>t.constructor===e)?r=e:i=e)}),i||r||n||null}function ce(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function de(e,t,n,i){Object(r.isDevMode)()&&"never"!==i&&((null!==i&&"once"!==i||t._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(t._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function he(e){return(me(e)?e.validators:e)||null}function pe(e){return Array.isArray(e)?S(e):e||null}function fe(e,t){return(me(t)?t.asyncValidators:e)||null}function ge(e){return Array.isArray(e)?E(e):e||null}function me(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class ve{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=pe(this._rawValidators),this._composedAsyncValidatorFn=ge(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=pe(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=ge(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const t=w(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let r=e;return t.forEach(e=>{r=r instanceof be?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof _e&&r.at(e)||null}),r}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new r.EventEmitter,this.statusChanges=new r.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){me(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ye extends ve{constructor(e=null,t,n){super(he(t),fe(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ce(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ce(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class be extends ve{constructor(e,t,n){super(he(t),fe(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof ye?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,r)=>{n=t(n,e,r)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class _e extends ve{constructor(e,t,n){super(he(t),fe(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof ye?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const we={provide:j,useExisting:Object(r.forwardRef)(()=>Ce)},xe=(()=>Promise.resolve(null))();let Ce=(()=>{class e extends j{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.EventEmitter,this.form=new be({},S(e),E(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){xe.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),ee(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){xe.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),ce(this._directives,e)})}addFormGroup(e){xe.then(()=>{const t=this._findContainer(e.path),n=new be({});se(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){xe.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){xe.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,le(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](m,10),r["\u0275\u0275directiveInject"](v,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([we]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),$e=(()=>{class e extends j{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return J(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return e.\u0275fac=function(t){return Se(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const Se=r["\u0275\u0275getInheritedFactory"]($e),Ee={provide:j,useExisting:Object(r.forwardRef)(()=>Oe)};let Oe=(()=>{class e extends $e{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](j,5),r["\u0275\u0275directiveInject"](m,10),r["\u0275\u0275directiveInject"](v,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[r["\u0275\u0275ProvidersFeature"]([Ee]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const Ie={provide:P,useExisting:Object(r.forwardRef)(()=>Te)},ke=(()=>Promise.resolve(null))();let Te=(()=>{class e extends P{constructor(e,t,n,i){super(),this.control=new ye,this._registered=!1,this.update=new r.EventEmitter,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ue(0,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),oe(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?J(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ee(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){ke.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;ke.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](j,9),r["\u0275\u0275directiveInject"](m,10),r["\u0275\u0275directiveInject"](v,10),r["\u0275\u0275directiveInject"](l,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r["\u0275\u0275ProvidersFeature"]([Ie]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e})(),je=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const Ve=new r.InjectionToken("NgModelWithFormControlWarning"),Pe={provide:P,useExisting:Object(r.forwardRef)(()=>Me)};let Me=(()=>{class e extends P{constructor(e,t,n,i){super(),this._ngModelWarningConfig=i,this.update=new r.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=ue(0,n)}set isDisabled(e){}ngOnChanges(t){this._isControlChanged(t)&&(ee(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),oe(t,this.viewModel)&&(de(0,e,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](m,10),r["\u0275\u0275directiveInject"](v,10),r["\u0275\u0275directiveInject"](l,10),r["\u0275\u0275directiveInject"](Ve,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Pe]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e._ngModelWarningSentOnce=!1,e})();const Ae={provide:j,useExisting:Object(r.forwardRef)(()=>Ne)};let Ne=(()=>{class e extends j{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new r.EventEmitter,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return ee(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){ce(this.directives,e)}addFormGroup(e){const t=this.form.get(e.path);se(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormGroup(e){}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){const t=this.form.get(e.path);se(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormArray(e){}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,le(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=this.form.get(e.path);e.control!==t&&(function(e,t){const n=()=>{};t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n),re(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}(e.control||null,e),t&&ee(t,e),e.control=t)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ne(this.form,this,!1),this._oldForm&&re(this._oldForm,this,!1)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](m,10),r["\u0275\u0275directiveInject"](v,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Ae]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e})();const De={provide:j,useExisting:Object(r.forwardRef)(()=>Re)};let Re=(()=>{class e extends $e{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){Be(this._parent)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](j,13),r["\u0275\u0275directiveInject"](m,10),r["\u0275\u0275directiveInject"](v,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[r["\u0275\u0275ProvidersFeature"]([De]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const Fe={provide:j,useExisting:Object(r.forwardRef)(()=>Le)};let Le=(()=>{class e extends j{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return J(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Be(this._parent)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](j,13),r["\u0275\u0275directiveInject"](m,10),r["\u0275\u0275directiveInject"](v,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[r["\u0275\u0275ProvidersFeature"]([Fe]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();function Be(e){return!(e instanceof Re||e instanceof Ne||e instanceof Le)}const He={provide:P,useExisting:Object(r.forwardRef)(()=>Ue)};let Ue=(()=>{class e extends P{constructor(e,t,n,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new r.EventEmitter,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ue(0,i)}set isDisabled(e){}ngOnChanges(t){this._added||this._setUpControl(),oe(t,this.viewModel)&&(de(0,e,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return J(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](j,13),r["\u0275\u0275directiveInject"](m,10),r["\u0275\u0275directiveInject"](v,10),r["\u0275\u0275directiveInject"](l,10),r["\u0275\u0275directiveInject"](Ve,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r["\u0275\u0275ProvidersFeature"]([He]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e._ngModelWarningSentOnce=!1,e})();const qe={provide:m,useExisting:Object(r.forwardRef)(()=>ze),multi:!0},We={provide:m,useExisting:Object(r.forwardRef)(()=>Ge),multi:!0};let ze=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}validate(e){return this.required?b.required(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("required",t.required?"":null)},inputs:{required:"required"},features:[r["\u0275\u0275ProvidersFeature"]([qe])]}),e})(),Ge=(()=>{class e extends ze{validate(e){return this.required?b.requiredTrue(e):null}}return e.\u0275fac=function(t){return Ke(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("required",t.required?"":null)},features:[r["\u0275\u0275ProvidersFeature"]([We]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const Ke=r["\u0275\u0275getInheritedFactory"](Ge),Qe={provide:m,useExisting:Object(r.forwardRef)(()=>Ze),multi:!0};let Ze=(()=>{class e{constructor(){this._enabled=!1}set email(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()}validate(e){return this._enabled?b.email(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[r["\u0275\u0275ProvidersFeature"]([Qe])]}),e})();const Xe={provide:m,useExisting:Object(r.forwardRef)(()=>Ye),multi:!0};let Ye=(()=>{class e{constructor(){this._validator=b.nullValidator}ngOnChanges(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null==this.minlength?null:this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=b.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("minlength",t.minlength?t.minlength:null)},inputs:{minlength:"minlength"},features:[r["\u0275\u0275ProvidersFeature"]([Xe]),r["\u0275\u0275NgOnChangesFeature"]]}),e})();const Je={provide:m,useExisting:Object(r.forwardRef)(()=>et),multi:!0};let et=(()=>{class e{constructor(){this._validator=b.nullValidator}ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null!=this.maxlength?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=b.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[r["\u0275\u0275ProvidersFeature"]([Je]),r["\u0275\u0275NgOnChangesFeature"]]}),e})();const tt={provide:m,useExisting:Object(r.forwardRef)(()=>nt),multi:!0};let nt=(()=>{class e{constructor(){this._validator=b.nullValidator}ngOnChanges(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=b.pattern(this.pattern)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[r["\u0275\u0275ProvidersFeature"]([tt]),r["\u0275\u0275NgOnChangesFeature"]]}),e})();const rt=[je,K,Y,p,F,q,c,G,X,H,N,D,ze,Ye,et,nt,Ge,Ze],it=[Te,Oe,Ce],st=[Me,Ne,Ue,Re,Le];let ot=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)}}),e})(),at=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let r=null,i=null,s=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(r=null!=t.validators?t.validators:null,i=null!=t.asyncValidators?t.asyncValidators:null,s=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,i=null!=t.asyncValidator?t.asyncValidator:null)),new be(n,{asyncValidators:i,updateOn:s,validators:r})}control(e,t,n){return new ye(e,t,n)}array(e,t,n){const r=e.map(e=>this._createControl(e));return new _e(r,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof ye||e instanceof be||e instanceof _e?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const lt=new r.Version("11.0.3");let ut=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[B],imports:[ot]}),e})(),ct=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ve,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[at,B],imports:[ot]}),e})()},"48ZK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.range=function(e){return function(t){if(!i.isPresent(e))return null;if(i.isPresent(r.Validators.required(t)))return null;var n=+t.value;return n>=e[0]&&n<=e[1]?null:{actualValue:n,requiredValue:e,range:!0}}}},"4I5i":function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})()},"4XzM":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("89kA")},"4hzb":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("T5KR"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.max(this.max)},e.prototype.ngOnChanges=function(e){for(var t in e)"max"===t&&(this.validator=s.max(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={max:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","max","","formControlName",""],["","max","","formControl",""],["","max","","ngModel",""]],inputs:{max:"max"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.MaxValidator=l},"5+tZ":function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return u});var r=n("lJxs"),i=n("Cfvw"),s=n("zx2A");function o(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?s=>s.pipe(o((n,s)=>Object(i.a)(e(n,s)).pipe(Object(r.a)((e,r)=>t(n,e,s,r))),n)):("number"==typeof t&&(n=t),t=>t.lift(new a(e,n)))}class a{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new l(e,this.project,this.concurrent))}}class l extends s.b{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const u=o},"5K7Z":function(e,t,n){var r=n("93I4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"5T2Y":function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"5vMV":function(e,t,n){var r=n("B+OT"),i=n("NsO/"),s=n("W070")(!1),o=n("VVlx")("IE_PROTO");e.exports=function(e,t){var n,a=i(e),l=0,u=[];for(n in a)n!=o&&r(a,n)&&u.push(n);for(;t.length>l;)r(a,n=t[l++])&&(~s(u,n)||u.push(n));return u}},"6Axs":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("35yN")),r(n("nlsq"))},"6RPL":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.rangeLength=function(e){return function(t){if(!i.isPresent(e))return null;if(i.isPresent(r.Validators.required(t)))return null;var n=t.value;return n.length>=e[0]&&n.length<=e[1]?null:{rangeLength:!0}}}},"7HRe":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("HDdC"),i=n("quSY"),s=n("kJWO"),o=n("jZKg"),a=n("Lhse"),l=n("c2HN"),u=n("I55L");function c(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[s.a]}(e))return function(e,t){return new r.a(n=>{const r=new i.a;return r.add(t.schedule(()=>{const i=e[s.a]();r.add(i.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(Object(l.a)(e))return function(e,t){return new r.a(n=>{const r=new i.a;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(Object(u.a)(e))return Object(o.a)(e,t);if(function(e){return e&&"function"==typeof e[a.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new i.a;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(t.schedule(()=>{s=e[a.a](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=s.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}},"7Hc7":function(e,t,n){"use strict";n.d(t,"b",function(){return h}),n.d(t,"a",function(){return p});let r=1;const i=(()=>Promise.resolve())(),s={};function o(e){return e in s&&(delete s[e],!0)}const a={setImmediate(e){const t=r++;return s[t]=!0,i.then(()=>o(t)&&e()),t},clearImmediate(e){o(e)}};var l=n("3N8a");class u extends l.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=a.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(a.clearImmediate(t),e.scheduled=void 0)}}var c=n("IjjT");class d extends c.a{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,r=-1,i=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++rthis._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}__tryOrSetError(e,t,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return a.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(l.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"7wxJ":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("itXk");function i(e){return t=>t.lift(new r.a(e))}},"89kA":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("ZR4w");r.Observable.prototype.map=i.map},"8IPW":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("IVVY")),r(n("sLFm"))},"8Qeq":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e){for(;e;){const{closed:t,destination:n,isStopped:i}=e;if(t||i)return!1;e=n&&n instanceof r.a?n:null}return!0}},"8f/L":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("yAwA")),r(n("hQsY"))},"93I4":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"9WSl":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.equalTo=function(e){var t=!1;return function(n){return t||(t=!0,e.valueChanges.subscribe(function(){n.updateValueAndValidity()})),e.value===n.value?null:{equalTo:!0}}}},"9ppp":function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})()},"9uV+":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("wdEZ")),r(n("TFLp"))},"9vJG":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.max=function(e){return function(t){if(!i.isPresent(e))return null;if(i.isPresent(r.Validators.required(t)))return null;var n=+t.value;return n<=+e?null:{actualValue:n,requiredValue:+e,max:!0}}}},AqXk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notEqualTo=function(e){var t=!1;return function(n){return t||(t=!0,e.valueChanges.subscribe(function(){n.updateValueAndValidity()})),e.value!==n.value?null:{notEqualTo:!0}}}},"B+OT":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},BFxc:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("7o/Q"),i=n("4I5i"),s=n("EY2u");function o(e){return function(t){return 0===e?Object(s.b)():t.lift(new a(e))}}class a{constructor(e){if(this.total=e,this.total<0)throw new i.a}call(e,t){return t.subscribe(new l(e,this.total))}}class l extends r.a{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;iArray.isArray||(e=>e&&"number"==typeof e.length))()},DgTa:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.number=function(e){return i.isPresent(r.Validators.required(e))||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e.value)?null:{number:!0}}},EQ5u:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return l});var r=n("XNiG"),i=n("HDdC"),s=(n("7o/Q"),n("quSY")),o=n("x+ZX");class a extends i.a{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new s.a,e.add(this.source.subscribe(new u(this.getSubject(),this))),e.closed&&(this._connection=null,e=s.a.EMPTY)),e}refCount(){return Object(o.a)()(this)}}const l=(()=>{const e=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class u extends r.b{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}},EY2u:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return s});var r=n("HDdC");const i=new r.a(e=>e.complete());function s(e){return e?function(e){return new r.a(t=>e.schedule(()=>t.complete()))}(e):i}},"F97/":function(e,t,n){"use strict";function r(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}n.d(t,"a",function(){return r})},FlQf:function(e,t,n){"use strict";var r=n("ccE7")(!0);n("MPFp")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},FpHa:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},FyfS:function(e,t,n){e.exports={default:n("Rp86"),__esModule:!0}},G8Mo:function(e,t,n){var r=n("93I4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},GkNK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("+UwR"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.validate=function(e){return s.number(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","number","","formControlName",""],["","number","","formControl",""],["","number","","ngModel",""]],features:[o.\u0275\u0275ProvidersFeature([a])]}),e}();t.NumberValidator=l},GyhO:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("LRne"),i=n("0EUg");function s(...e){return Object(i.a)()(Object(r.a)(...e))}},HDAp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.json=function(e){if(i.isPresent(r.Validators.required(e)))return null;var t=e.value;try{var n=JSON.parse(t);if(Boolean(n)&&"object"==typeof n)return null}catch(s){}return{json:!0}}},HDdC:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("8Qeq"),i=n("7o/Q"),s=n("2QA8"),o=n("gRHU"),a=n("kJWO"),l=n("mCNh"),u=n("2fFW");let c=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,a=function(e,t,n){if(e){if(e instanceof i.a)return e;if(e[s.a])return e[s.a]()}return e||t||n?new i.a(e,t,n):new i.a(o.a)}(e,t,n);if(a.add(r?r.call(a,this.source):this.source||u.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),u.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(e){try{return this._subscribe(e)}catch(t){u.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),Object(r.a)(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=d(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(i){n(i),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[a.a](){return this}pipe(...e){return 0===e.length?this:Object(l.b)(e)(this)}toPromise(e){return new(e=d(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function d(e){if(e||(e=u.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},Hsns:function(e,t,n){var r=n("93I4"),i=n("5T2Y").document,s=r(i)&&r(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},I55L:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=e=>e&&"number"==typeof e.length&&"function"!=typeof e},IAdc:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("128B");function i(e,t,n){return 0===n?[t]:(e.push(t),e)}function s(){return Object(r.a)(i,[])}},IVVY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("8IPW"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.uuid(this.uuid)},e.prototype.ngOnChanges=function(e){for(var t in e)"uuid"===t&&(this.validator=s.uuid(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={uuid:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","uuid","","formControlName",""],["","uuid","","formControl",""],["","uuid","","ngModel",""]],inputs:{uuid:"uuid"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.UUIDValidator=l},IjjT:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("Y/cZ");class i extends r.a{constructor(e,t=r.a.now){super(e,()=>i.delegate&&i.delegate!==this?i.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return i.delegate&&i.delegate!==this?i.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}},IzEk:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("7o/Q"),i=n("4I5i"),s=n("EY2u");function o(e){return t=>0===e?Object(s.b)():t.lift(new a(e))}class a{constructor(e){if(this.total=e,this.total<0)throw new i.a}call(e,t){return t.subscribe(new l(e,this.total))}}class l extends r.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}},JB68:function(e,t,n){var r=n("Jes0");e.exports=function(e){return Object(r(e))}},JIED:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("YLEk"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.notEqual(this.notEqual)},e.prototype.ngOnChanges=function(e){for(var t in e)"notEqual"===t&&(this.validator=s.notEqual(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={notEqual:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","notEqual","","formControlName",""],["","notEqual","","formControl",""],["","notEqual","","ngModel",""]],inputs:{notEqual:"notEqual"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.NotEqualValidator=l},JIr8:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("zx2A");function i(e){return function(t){const n=new s(e),r=t.lift(n);return n.caught=r}}class s{constructor(e){this.selector=e}call(e,t){return t.subscribe(new o(e,this.selector,this.caught))}}class o extends r.b{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const i=new r.a(this);this.add(i);const s=Object(r.c)(n,i);s!==i&&this.add(s)}}}},JX91:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("GyhO"),i=n("z+Ro");function s(...e){const t=e[e.length-1];return Object(i.a)(t)?(e.pop(),n=>Object(r.a)(e,n,t)):t=>Object(r.a)(e,t)}},Jdkh:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.url=function(e){return i.isPresent(r.Validators.required(e))||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e.value)?null:{url:!0}}},Jes0:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},KUxP:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},Kqap:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new s(e,t,n))}}class s{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new o(e,this.accumulator,this.seed,this.hasSeed))}}class o extends r.a{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}},KqfI:function(e,t,n){"use strict";function r(){}n.d(t,"a",function(){return r})},Kucq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("nKcR"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.minDate(this.minDate)},e.prototype.ngOnChanges=function(e){for(var t in e)"minDate"===t&&(this.validator=s.minDate(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={minDate:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","minDate","","formControlName",""],["","minDate","","formControl",""],["","minDate","","ngModel",""]],inputs:{minDate:"minDate"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.MinDateValidator=l},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("z+Ro"),i=n("yCtX"),s=n("jZKg");function o(...e){let t=e[e.length-1];return Object(r.a)(t)?(e.pop(),Object(s.a)(e,t)):Object(i.a)(e)}},Laqt:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("kcx3"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.validate=function(e){return s.json(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","json","","formControlName",""],["","json","","formControl",""],["","json","","ngModel",""]],features:[o.\u0275\u0275ProvidersFeature([a])]}),e}();t.JSONValidator=l},Lhse:function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return i});const i=r()},LlHk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.email=function(e){return i.isPresent(r.Validators.required(e))||/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e.value)?null:{email:!0}}},M1xp:function(e,t,n){var r=n("a0xu");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},M6P7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t._finally=function(e){return r.finalize(e)(this)}},MPFp:function(e,t,n){"use strict";var r=n("uOPS"),i=n("Y7ZC"),s=n("kTiW"),o=n("NegM"),a=n("SBuE"),l=n("j2DC"),u=n("RfKB"),c=n("U+KD"),d=n("UWiX")("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,f,g,m,v){l(n,t,f);var y,b,_,w=function(e){if(!h&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",C="values"==g,$=!1,S=e.prototype,E=S[d]||S["@@iterator"]||g&&S[g],O=E||w(g),I=g?C?w("entries"):O:void 0,k="Array"==t&&S.entries||E;if(k&&(_=c(k.call(new e)))!==Object.prototype&&_.next&&(u(_,x,!0),r||"function"==typeof _[d]||o(_,d,p)),C&&E&&"values"!==E.name&&($=!0,O=function(){return E.call(this)}),r&&!v||!h&&!$&&S[d]||o(S,d,O),a[t]=O,a[x]=p,g)if(y={values:C?O:w("values"),keys:m?O:w("keys"),entries:I},v)for(b in y)b in S||s(S,b,y[b]);else i(i.P+i.F*(h||$),t,y);return y}},MvwC:function(e,t,n){var r=n("5T2Y").document;e.exports=r&&r.documentElement},"NHP+":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("XNiG"),i=n("quSY");class s extends r.a{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(e){return this.hasError?(e.error(this.thrownError),i.a.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),i.a.EMPTY):super._subscribe(e)}next(e){this.hasCompleted||(this.value=e,this.hasNext=!0)}error(e){this.hasCompleted||super.error(e)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}},NJ4a:function(e,t,n){"use strict";function r(e){setTimeout(()=>{throw e},0)}n.d(t,"a",function(){return r})},NJ9Y:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("sVev"),i=n("pLZG"),s=n("BFxc"),o=n("XDbj"),a=n("xbPD"),l=n("SpAZ");function u(e,t){const n=arguments.length>=2;return u=>u.pipe(e?Object(i.a)((t,n)=>e(t,n,u)):l.a,Object(s.a)(1),n?Object(a.a)(t):Object(o.a)(()=>new r.a))}},NV0k:function(e,t){t.f={}.propertyIsEnumerable},NXyV:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("HDdC"),i=n("Cfvw"),s=n("EY2u");function o(e){return new r.a(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?Object(i.a)(n):Object(s.b)()).subscribe(t)})}},NegM:function(e,t,n){var r=n("2faE"),i=n("rr1i");e.exports=n("jmDH")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"NsO/":function(e,t,n){var r=n("M1xp"),i=n("Jes0");e.exports=function(e){return r(i(e))}},Nv8m:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("DH7j"),i=n("yCtX"),s=n("l7GE"),o=n("ZUHj");function a(...e){if(1===e.length){if(!Object(r.a)(e[0]))return e[0];e=e[0]}return Object(i.a)(e,void 0).lift(new l)}class l{call(e,t){return t.subscribe(new u(e))}}class u extends s.a{constructor(e){super(e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(e){this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(let n=0;ni.lift(new l(e,t,n,r))}class l{constructor(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}call(e,t){return t.subscribe(new u(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class u extends r.a{constructor(e,t,n,r,i){super(e),this.keySelector=t,this.elementSelector=n,this.durationSelector=r,this.subjectSelector=i,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(e){let t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)}_group(e,t){let n=this.groups;n||(n=this.groups=new Map);let r,i=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(s){this.error(s)}else r=e;if(!i){i=this.subjectSelector?this.subjectSelector():new o.a,n.set(t,i);const e=new d(t,i,this);if(this.destination.next(e),this.durationSelector){let e;try{e=this.durationSelector(new d(t,i))}catch(s){return void this.error(s)}this.add(e.subscribe(new c(t,i,this)))}}i.closed||i.next(r)}_error(e){const t=this.groups;t&&(t.forEach((t,n)=>{t.error(e)}),t.clear()),this.destination.error(e)}_complete(){const e=this.groups;e&&(e.forEach((e,t)=>{e.complete()}),e.clear()),this.destination.complete()}removeGroup(e){this.groups.delete(e)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class c extends r.a{constructor(e,t,n){super(t),this.key=e,this.group=t,this.parent=n}_next(e){this.complete()}_unsubscribe(){const{parent:e,key:t}=this;this.key=this.parent=null,e&&e.removeGroup(t)}}class d extends s.a{constructor(e,t,n){super(),this.key=e,this.groupSubject=t,this.refCountSubscription=n}_subscribe(e){const t=new i.a,{refCountSubscription:n,groupSubject:r}=this;return n&&!n.closed&&t.add(new h(n)),t.add(r.subscribe(e)),t}}class h extends i.a{constructor(e){super(),this.parent=e,e.count++}unsubscribe(){const e=this.parent;e.closed||this.closed||(super.unsubscribe(),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())}}},OSYy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.notEqual=function(e){return function(t){return i.isPresent(r.Validators.required(t))||e!==t.value?null:{notEqual:!0}}}},OSZS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.gt=function(e){return function(t){return i.isPresent(e)?i.isPresent(r.Validators.required(t))||+t.value>+e?null:{gt:!0}:null}}},Ojgd:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},P2sY:function(e,t,n){e.exports={default:n("UbbE"),__esModule:!0}},PoRY:function(e,t,n){"use strict";n.r(t),n.d(t,"parse",function(){return ge}),n.d(t,"format",function(){return me}),n.d(t,"getNumberType",function(){return ve}),n.d(t,"get_number_type",function(){return ye}),n.d(t,"isValidNumber",function(){return be}),n.d(t,"is_valid_number",function(){return _e}),n.d(t,"AsYouType",function(){return we}),n.d(t,"as_you_type",function(){return xe}),n.d(t,"asYouType",function(){return Ce}),n.d(t,"parseCustom",function(){return q}),n.d(t,"DIGITS",function(){return H}),n.d(t,"formatCustom",function(){return O}),n.d(t,"isValidNumberCustom",function(){return Y}),n.d(t,"getNumberTypeCustom",function(){return V}),n.d(t,"AsYouTypeCustom",function(){return he}),n.d(t,"asYouTypeCustom",function(){return he}),n.d(t,"DIGIT_PLACEHOLDER",function(){return se}),n.d(t,"getPhoneCode",function(){return $e}),n.d(t,"getPhoneCodeCustom",function(){return Se});var r=n("YHbO"),i=n("QbLZ"),s=n.n(i),o=n("sk9p"),a=n.n(o),l=n("FyfS"),u=n.n(l);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1];"string"==typeof t&&(t="^(?:"+t+")$");var n=e.match(t);return null!==n&&n[0].length===e.length}function d(e){return e[0]}function h(e){return e[1]}function p(e){return e[2]||[]}function f(e){return e[8]}function g(e){return e[0]}function m(e){return e[1]}function v(e){return e[2]||[]}function y(e,t){return e[3]||function(e){return e[4]}(t)}function b(e,t){return e[4]||function(e){return e[7]}(t)}function _(e){return"$1"!==e&&/\d/.test(e.replace("$1",""))}function w(e){return e[5]||m(e)}function x(e,t){return t.countries[t.country_phone_code_to_countries[e][0]]}function C(e){return e[9]}function $(e,t){return C(e)?C(e)[t]:void 0}function S(e){return $(e,1)}var E={formatExtension:function(e,t){return e+" ext. "+t}};function O(e,t,n,r,i){var o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1],n=arguments[2],r=arguments[3],i=arguments[4],o=void 0,a=void 0,l=void 0,u=void 0;if("string"==typeof e)if("string"==typeof n)o={phone:e,country:t},a=n,i?(l=r,u=i):u=r;else{if(o={phone:e},"string"!=typeof t)throw new Error("Format type argument not passed for `format()`");a=t,r?(l=n,u=r):u=n}else o=e,a=t,r?(l=n,u=r):u=n;if(!u)throw new Error("Metadata is required");switch(a){case"International":case"E.164":case"International_plaintext":case"National":case"RFC3966":break;default:throw new Error('Unknown format type argument passed to "format()": "'+a+'"')}return{input:o,format_type:a,options:l=l?s()({},E,l):E,metadata:u}}(e,t,n,r,i),a=o.input,l=o.format_type,u=o.options,c=o.metadata,h=void 0;a.country&&(h=c.countries[a.country]);var p=Q(a.phone,c),f=p.country_phone_code,g=p.number;if(f){if(a.country&&h&&f!==d(h))return a.phone;h=x(f,c)}if(!h)return a.phone;switch(l){case"International":if(!g)return"+"+d(h);var m=T(g,"International",!1,h),v="+"+d(h)+" "+m;return a.ext||0===a.ext?u.formatExtension(v,a.ext):v;case"E.164":case"International_plaintext":return"+"+d(h)+a.phone;case"RFC3966":return"+"+d(h)+a.phone+(a.ext||0===a.ext?";ext="+a.ext:"");case"National":if(!g)return"";var y=T(g,"National",!1,h);return a.ext||0===a.ext?u.formatExtension(y,a.ext):y}}var I=/(\$\d)/;function k(e,t,n,r,i){var s=new RegExp(g(t)),o=y(t,i),a=!o||o&&b(t,i)&&!r;if(!n&&!a)return e.replace(s,m(t).replace(I,o));var l=e.replace(s,n?w(t):m(t));return n?j(l):l}function T(e,t,n,r){var i=function(e,t){var n=!0,r=!1,i=void 0;try{for(var s,o=u()(e);!(n=(s=o.next()).done);n=!0){var a=s.value;if(v(a).length>0){var l=v(a)[v(a).length-1];if(0!==t.search(l))continue}if(c(t,new RegExp(g(a))))return a}}catch(d){r=!0,i=d}finally{try{!n&&o.return&&o.return()}finally{if(r)throw i}}}(p(r),e);return i?k(e,i,"International"===t,n,r):e}function j(e){return e.replace(new RegExp("["+A+"]+","g")," ").trim()}function V(e,t,n){var r=M(e,t,n),i=r.input;if(i&&i.country){var s=i.phone,o=r.metadata.countries[i.country];if(P(s,h(o)))return P(s,function(e){return $(e,3)}(o))?"PREMIUM_RATE":P(s,function(e){return $(e,2)}(o))?"TOLL_FREE":P(s,function(e){return $(e,9)}(o))?"SHARED_COST":P(s,function(e){return $(e,8)}(o))?"VOIP":P(s,function(e){return $(e,4)}(o))?"PERSONAL_NUMBER":P(s,function(e){return $(e,7)}(o))?"PAGER":P(s,function(e){return $(e,6)}(o))?"UAN":P(s,function(e){return $(e,5)}(o))?"VOICEMAIL":P(s,function(e){return $(e,0)}(o))?S(o)?P(s,S(o))?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE":P(s,S(o))?"MOBILE":void 0}}function P(e,t){return c(e,t)}function M(e,t,n){var r=void 0,i=void 0;if("number"==typeof e&&(e=String(e)),"string"==typeof e?"string"==typeof t||void 0===t?(i=n,z(e)&&(r=q(e,t,i))):(i=t,z(e)&&(r=q(e,i))):(e&&e.phone&&z(e.phone)&&(r=e),i=t),!i||!i.countries)throw new Error("Metadata is required");return{input:r,metadata:i}}var A="-\u2010-\u2015\u2212\u30fc\uff0d\uff0f/\uff0e. \xa0\xad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d\\[\\]~\u2053\u223c\uff5e",N=";ext=([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})|[ \xa0\\t,]*(?:e?xt(?:ensi(?:o\u0301?|\xf3))?n?|\uff45?\uff58\uff54\uff4e?|[;,x\uff58#\uff03~\uff5e]|int|anexo|\uff49\uff4e\uff54)[:\\.\uff0e]?[ \xa0\\t,-]*([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})#?|[- ]+([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,5})#",D=new RegExp("(?:"+N+")$","i"),R=new RegExp("^[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{2}$|^[+\uff0b]{0,1}(?:["+A+"]*[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]){3,}["+A+"0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]*(?:"+N+")?$","i"),F=new RegExp("[+\uff0b0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]"),L=new RegExp("[^0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]+$"),B=new RegExp("^[+\uff0b]+"),H={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","\uff10":"0","\uff11":"1","\uff12":"2","\uff13":"3","\uff14":"4","\uff15":"5","\uff16":"6","\uff17":"7","\uff18":"8","\uff19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9"},U={country:{}};function q(e,t,n){var r=function(e,t,n){var r=void 0,i=void 0,o=void 0;if("number"==typeof e&&(e=String(e)),"string"==typeof e&&(r=e),"string"==typeof t?(i={country:{restrict:t}},o=n):n?(i=t,o=n):o=t,!o||!o.countries)throw new Error("Metadata is required");return{text:r,options:i=i?s()({},U,i):U,metadata:o}}(e,t,n),i=r.text,o=r.options,l=r.metadata;if(o.country.default&&!l.countries[o.country.default])throw new Error("Unknown country code: "+o.country.default);if(o.country.restrict&&!l.countries[o.country.restrict])throw new Error("Unknown country code: "+o.country.restrict);var p=void 0,f=void 0;if(i&&0===i.indexOf("tel:")){var g=!0,m=!1,v=void 0;try{for(var y,b=u()(i.split(";"));!(g=(y=b.next()).done);g=!0){var _=y.value.split(":"),w=a()(_,2),C=w[1];switch(w[0]){case"tel":p=C;break;case"ext":f=C;break;case"phone-context":"+"===C[0]&&(p=C+p)}}}catch(P){m=!0,v=P}finally{try{!g&&b.return&&b.return()}finally{if(m)throw v}}}else p=G(i);if(!z(p))return{};var $=function(e){var t=e.search(D);if(t<0)return{};var n=e.slice(0,t);if(!z(n))return{};for(var r=e.match(D),i=1;i0)return{number:n,extension:r[i]};i++}}(p);$.extension&&(p=$.number,f=$.extension);var S=Q(p,l),E=S.country_phone_code,O=S.number;if(!O)return{};var I=void 0,k=void 0,T=!1;if(E){if(T=!0,o.country.restrict&&E!==d(l.countries[o.country.restrict]))return{};k=x(E,l)}else(o.country.restrict||o.country.default)&&(k=l.countries[I=o.country.restrict||o.country.default],O=W(p));if(!k)return{};var j=O;if(T||(j=Z(O,k)),!I){if(!(I=X(E,j,l)))return{};k=l.countries[I]}if(j.length>17)return{};if(!c(j,new RegExp(h(k))))return{};var V={country:I,phone:j};return f&&(V.ext=f),V}function W(e){return function(e,t){var n="",r=!0,i=!1,s=void 0;try{for(var o,a=u()(e);!(r=(o=a.next()).done);r=!0){var l=t[o.value.toUpperCase()];void 0!==l&&(n+=l)}}catch(c){i=!0,s=c}finally{try{!r&&a.return&&a.return()}finally{if(i)throw s}}return n}(e,H)}function z(e){return e.length>=2&&c(e,R)}function G(e){if(!e||e.length>250)return"";var t=e.search(F);return t<0?"":e.slice(t).replace(L,"")}function K(e){if(!e)return"";var t=B.test(e);return e=W(e),t?"+"+e:e}function Q(e,t){if(!(e=K(e)))return{};if("+"!==e[0])return{number:e};if("0"===(e=e.slice(1))[0])return{};for(var n=1;n<=3&&n<=e.length;){var r=e.slice(0,n);if(t.country_phone_code_to_countries[r])return{country_phone_code:r,number:e.slice(n)};n++}return{}}function Z(e,t){var n=function(e){var t=e[5];return t||(t=function(e){return e[3]}(e)),t}(t);if(!e||!n)return e;var r=new RegExp("^(?:"+n+")"),i=r.exec(e);if(!i)return e;var s,o=i[i.length-1],a=function(e){return e[6]}(t);s=a&&o?e.replace(r,a):e.slice(i[0].length);var l=new RegExp(h(t));return c(e,l)&&!c(s,l)?e:s}function X(e,t,n){var r=n.country_phone_code_to_countries[e];if(1===r.length)return r[0];var i=!0,s=!1,o=void 0;try{for(var a,l=u()(r);!(i=(a=l.next()).done);i=!0){var c=a.value,d=n.countries[c];if(f(d)){if(t&&0===t.search(f(d)))return c}else if(V({phone:t,country:c},n))return c}}catch(h){s=!0,o=h}finally{try{!i&&l.return&&l.return()}finally{if(s)throw o}}}function Y(e,t,n){var r=M(e,t,n),i=r.input,s=r.metadata;return!(!i||!i.country||C(s.countries[i.country])&&!V(i,s))}var J=n("iCc5"),ee=n.n(J),te=n("V7oC"),ne=n.n(te),re=new RegExp("9","g"),ie=fe("9",15),se="x",oe=new RegExp(se),ae=new RegExp(se,"g"),le=/\[([^\[\]])*\]/g,ue=/\d(?=[^,}][^,}])/g,ce=new RegExp("^["+A+"]*(\\$\\d["+A+"]*)+$"),de=new RegExp("^[+\uff0b]{0,1}["+A+"0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]*$","i"),he=function(){function e(t,n){if(ee()(this,e),!n||!n.countries)throw new Error("Metadata is required");t&&n.countries[t]&&(this.default_country=t),this.metadata=n,this.reset()}return ne()(e,[{key:"input",value:function(e){var t=G(e);return t||e&&e.indexOf("+")>=0&&(t="+"),c(t,de)?this.process_input(K(t)):this.current_output}},{key:"process_input",value:function(e){if("+"===e[0]&&(this.parsed_input||(this.parsed_input+="+",this.reset_countriness()),e=e.slice(1)),this.parsed_input+=e,this.national_number+=e,this.is_international())if(this.country_phone_code)this.country||this.determine_the_country();else{if(!this.extract_country_phone_code())return this.parsed_input;this.initialize_phone_number_formats_for_this_country_phone_code(),this.reset_format(),this.determine_the_country()}else{var t=this.national_prefix;this.national_number=this.national_prefix+this.national_number,this.extract_national_prefix(),this.national_prefix!==t&&(this.matching_formats=this.available_formats,this.reset_format())}if(!this.should_format())return this.format_as_non_formatted_number();this.match_formats_by_leading_digits();var n=this.format_national_phone_number(e);return n?this.full_phone_number(n):this.parsed_input}},{key:"format_as_non_formatted_number",value:function(){return this.is_international()&&this.country_phone_code?this.national_number?(this.template=se+fe(se,this.country_phone_code.length)+" "+fe(se,this.national_number.length),"+"+this.country_phone_code+" "+this.national_number):"+"+this.country_phone_code:this.parsed_input}},{key:"format_national_phone_number",value:function(e){var t=void 0;return this.chosen_format&&(t=this.format_next_national_number_digits(e)),this.attempt_to_format_complete_phone_number()||(this.choose_another_format()?this.reformat_national_number():t)}},{key:"reset",value:function(){return this.parsed_input="",this.current_output="",this.national_prefix="",this.national_number="",this.reset_countriness(),this.reset_format(),this}},{key:"reset_country",value:function(){this.country=this.default_country&&!this.is_international()?this.default_country:void 0}},{key:"reset_countriness",value:function(){this.reset_country(),this.default_country&&!this.is_international()?(this.country_metadata=this.metadata.countries[this.default_country],this.country_phone_code=d(this.country_metadata),this.initialize_phone_number_formats_for_this_country_phone_code()):(this.country_metadata=void 0,this.country_phone_code=void 0,this.available_formats=[],this.matching_formats=this.available_formats)}},{key:"reset_format",value:function(){this.chosen_format=void 0,this.template=void 0,this.partially_populated_template=void 0,this.last_match_position=-1}},{key:"reformat_national_number",value:function(){return this.format_next_national_number_digits(this.national_number)}},{key:"initialize_phone_number_formats_for_this_country_phone_code",value:function(){this.available_formats=p(this.country_metadata).filter(function(e){return ce.test(w(e))}),this.matching_formats=this.available_formats}},{key:"match_formats_by_leading_digits",value:function(){var e=this.national_number,t=e.length-3;t<0&&(t=0),this.matching_formats=this.matching_formats.filter(function(n){var r=v(n).length;if(0===r)return!0;var i=Math.min(t,r-1),s=v(n)[i];return new RegExp("^("+s+")").test(e)}),this.chosen_format&&-1===this.matching_formats.indexOf(this.chosen_format)&&this.reset_format()}},{key:"should_format",value:function(){return this.national_number>=3}},{key:"attempt_to_format_complete_phone_number",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=u()(this.matching_formats);!(e=(r=i.next()).done);e=!0){var s=r.value;if(new RegExp("^(?:"+g(s)+")$").test(this.national_number)&&this.validate_format(s)){this.reset_format(),this.chosen_format=s;var o=k(this.national_number,s,this.is_international(),this.national_prefix.length>0,this.country_metadata);if(this.create_formatting_template(s))this.reformat_national_number();else{var a=this.full_phone_number(o);this.template=a.replace(/[\d\+]/g,se),this.partially_populated_template=a}return o}}}catch(l){t=!0,n=l}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}}},{key:"full_phone_number",value:function(e){return this.is_international()?"+"+this.country_phone_code+" "+e:e}},{key:"extract_country_phone_code",value:function(){if(this.national_number){var e=Q(this.parsed_input,this.metadata),t=e.country_phone_code,n=e.number;if(t)return this.country_phone_code=t,this.national_number=n,this.country_metadata=x(t,this.metadata)}}},{key:"extract_national_prefix",value:function(){if(this.national_prefix="",this.country_metadata){var e=Z(this.national_number,this.country_metadata);return e!==this.national_number&&(this.national_prefix=this.national_number.slice(0,this.national_number.length-e.length),this.national_number=e),this.national_prefix}}},{key:"choose_another_format",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=u()(this.matching_formats);!(e=(r=i.next()).done);e=!0){var s=r.value;if(this.chosen_format===s)return;if(this.validate_format(s)&&this.create_formatting_template(s))return this.chosen_format=s,this.last_match_position=-1,!0}}catch(o){t=!0,n=o}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}this.reset_country(),this.reset_format()}},{key:"validate_format",value:function(e){var t,n,r;if(this.is_international()||this.national_prefix||!(r=y(t=e,n=this.country_metadata))||!_(r)||b(t,n))return!0}},{key:"create_formatting_template",value:function(e){if(!(g(e).indexOf("|")>=0)){var t=this.get_template_for_phone_number_format_pattern(e);if(t)return this.partially_populated_template=t,this.template=this.is_international()?se+fe(se,this.country_phone_code.length)+" "+t:t.replace(/\d/g,se),this.template}}},{key:"get_template_for_phone_number_format_pattern",value:function(e){var t=y(e,this.country_metadata),n=g(e).replace(le,"\\d").replace(ue,"\\d"),r=ie.match(n)[0];if(!(this.national_number.length>r.length)){var i=this.get_format_format(e,t),s=new RegExp("^"+n+"$"),o=this.national_number.replace(/\d/g,"9");return s.test(o)&&(r=o),r.replace(new RegExp(n),i).replace(re,se)}}},{key:"format_next_national_number_digits",value:function(e){var t=!0,n=!1,r=void 0;try{for(var i,s=u()(e);!(t=(i=s.next()).done);t=!0){var o=i.value;if(-1===this.partially_populated_template.slice(this.last_match_position+1).search(oe))return this.chosen_format=void 0,this.template=void 0,void(this.partially_populated_template=void 0);this.last_match_position=this.partially_populated_template.search(oe),this.partially_populated_template=this.partially_populated_template.replace(oe,o)}}catch(a){n=!0,r=a}finally{try{!t&&s.return&&s.return()}finally{if(n)throw r}}return function(e,t){for(var n=e.slice(0,t),r=pe("(",n)-pe(")",n);r>0&&t1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function ge(){var e=Array.prototype.slice.call(arguments);return e.push(r),q.apply(this,e)}function me(){var e=Array.prototype.slice.call(arguments);return e.push(r),O.apply(this,e)}function ve(){var e=Array.prototype.slice.call(arguments);return e.push(r),V.apply(this,e)}function ye(){return ve.apply(this,arguments)}function be(){var e=Array.prototype.slice.call(arguments);return e.push(r),Y.apply(this,e)}function _e(){return be.apply(this,arguments)}function we(e){he.call(this,e,r)}function xe(e){he.call(this,e,r)}function Ce(e){he.call(this,e,r)}function $e(e){return Se(e,r)}function Se(e,t){if(!t.countries[e])throw new Error('Unknown country: "'+e+'"');return d(t.countries[e])}(we.prototype=Object.create(he.prototype,{})).constructor=we,(xe.prototype=Object.create(he.prototype,{})).constructor=xe,(Ce.prototype=Object.create(he.prototype,{})).constructor=Ce},PqYM:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),i=n("D0XW"),s=n("Y7HM"),o=n("z+Ro");function a(e=0,t,n){let a=-1;return Object(s.a)(t)?a=Number(t)<1?1:Number(t):Object(o.a)(t)&&(n=t),Object(o.a)(n)||(n=i.a),new r.a(t=>{const r=Object(s.a)(e)?e:+e-n.now();return n.schedule(l,r,{index:0,period:a,subscriber:t})})}function l(e){const{index:t,period:n,subscriber:r}=e;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}},QMMT:function(e,t,n){var r=n("a0xu"),i=n("UWiX")("toStringTag"),s="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:s?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},QbLZ:function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n("P2sY"))&&r.__esModule?r:{default:r};t.default=i.default||function(e){for(var t=1;t{if(e&&"function"==typeof e[o.a])return c=e,e=>{const t=c[o.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(a.a)(e))return Object(r.a)(e);if(Object(l.a)(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,i.a),e);if(e&&"function"==typeof e[s.a])return t=e,e=>{const n=t[s.a]();for(;;){let t;try{t=n.next()}catch(r){return e.error(r),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=Object(u.a)(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,c}},SpAZ:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",function(){return r})},SxV6:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("sVev"),i=n("pLZG"),s=n("IzEk"),o=n("xbPD"),a=n("XDbj"),l=n("SpAZ");function u(e,t){const n=arguments.length>=2;return u=>u.pipe(e?Object(i.a)((t,n)=>e(t,n,u)):l.a,Object(s.a)(1),n?Object(o.a)(t):Object(a.a)(()=>new r.a))}},T5KR:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("4hzb")),r(n("9vJG"))},TFLp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("PoRY"),s=n("gvyg");t.phone=function(e){return function(t){return s.isPresent(r.Validators.required(t))||i.isValidNumber(t.value,e)?null:{phone:!0}}}},TwXH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.min=function(e){return function(t){if(!i.isPresent(e))return null;if(i.isPresent(r.Validators.required(t)))return null;var n=+t.value;return n>=+e?null:{actualValue:n,requiredValue:+e,min:!0}}}},"U+KD":function(e,t,n){var r=n("B+OT"),i=n("JB68"),s=n("VVlx")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},UO39:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},UWiX:function(e,t,n){var r=n("29s/")("wks"),i=n("YqAc"),s=n("5T2Y").Symbol,o="function"==typeof s;(e.exports=function(e){return r[e]||(r[e]=o&&s[e]||(o?s:i)("Symbol."+e))}).store=r},UbbE:function(e,t,n){n("o8NH"),e.exports=n("WEpk").Object.assign},V7oC:function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n("SEkw"))&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof a&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof r.a?e[0]:Object(s.a)(t)(Object(o.a)(e,n))}},VVlx:function(e,t,n){var r=n("29s/")("keys"),i=n("YqAc");e.exports=function(e){return r[e]||(r[e]=i(e))}},"W/SZ":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("QgIP")),r(n("Jdkh"))},W070:function(e,t,n){var r=n("NsO/"),i=n("tEej"),s=n("D8kY");e.exports=function(e){return function(t,n,o){var a,l=r(t),u=i(l.length),c=s(o,u);if(e&&n!=n){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},WEpk:function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},WMd4:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a});var r=n("EY2u"),i=n("LRne"),s=n("z6cu"),o=function(e){return e.NEXT="N",e.ERROR="E",e.COMPLETE="C",e}({});let a=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return Object(s.a)(this.error);case"C":return Object(r.b)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})()},WQkh:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("afP1"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.range(this.range)},e.prototype.ngOnChanges=function(e){for(var t in e)"range"===t&&(this.validator=s.range(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={range:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","range","","formControlName",""],["","range","","formControl",""],["","range","","ngModel",""]],inputs:{range:"range"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.RangeValidator=l},XDbj:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("sVev"),i=n("7o/Q");function s(e=l){return t=>t.lift(new o(e))}class o{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new a(e,this.errorFactory))}}class a extends i.a{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function l(){return new r.a}},XNiG:function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return c});var r=n("HDdC"),i=n("7o/Q"),s=n("quSY"),o=n("9ppp"),a=n("Ylt2"),l=n("2QA8");class u extends i.a{constructor(e){super(e),this.destination=e}}let c=(()=>{class e extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new u(this)}lift(e){const t=new d(this,this);return t.operator=e,t}next(e){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;inew d(e,t),e})();class d extends c{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):s.a.EMPTY}}},XQZo:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("Zb1L"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.validate=function(e){return s.digits(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","digits","","formControlName",""],["","digits","","formControl",""],["","digits","","ngModel",""]],features:[o.\u0275\u0275ProvidersFeature([a])]}),e}();t.DigitsValidator=l},XoHu:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",function(){return r})},Xs6s:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("M6P7");r.Observable.prototype.finally=i._finally,r.Observable.prototype._finally=i._finally},"Y/cZ":function(e,t,n){"use strict";n.d(t,"a",function(){return r});let r=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})()},Y6u4:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e})()},Y7HM:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("DH7j");function i(e){return!Object(r.a)(e)&&e-parseFloat(e)+1>=0}},Y7ZC:function(e,t,n){var r=n("5T2Y"),i=n("WEpk"),s=n("2GTP"),o=n("NegM"),a=n("B+OT"),l=function(e,t,n){var u,c,d,h=e&l.F,p=e&l.G,f=e&l.S,g=e&l.P,m=e&l.B,v=e&l.W,y=p?i:i[t]||(i[t]={}),b=y.prototype,_=p?r:f?r[t]:(r[t]||{}).prototype;for(u in p&&(n=t),n)(c=!h&&_&&void 0!==_[u])&&a(y,u)||(d=c?_[u]:n[u],y[u]=p&&"function"!=typeof _[u]?n[u]:m&&c?s(d,r):v&&_[u]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):g&&"function"==typeof d?s(Function.call,d):d,g&&((y.virtual||(y.virtual={}))[u]=d,e&l.R&&b&&!b[u]&&o(b,u,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},YHbO:function(e){e.exports=JSON.parse('{"country_phone_code_to_countries":{"1":["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],"7":["RU","KZ"],"20":["EG"],"27":["ZA"],"30":["GR"],"31":["NL"],"32":["BE"],"33":["FR"],"34":["ES"],"36":["HU"],"39":["IT","VA"],"40":["RO"],"41":["CH"],"43":["AT"],"44":["GB","GG","IM","JE"],"45":["DK"],"46":["SE"],"47":["NO","SJ"],"48":["PL"],"49":["DE"],"51":["PE"],"52":["MX"],"53":["CU"],"54":["AR"],"55":["BR"],"56":["CL"],"57":["CO"],"58":["VE"],"60":["MY"],"61":["AU","CC","CX"],"62":["ID"],"63":["PH"],"64":["NZ"],"65":["SG"],"66":["TH"],"81":["JP"],"82":["KR"],"84":["VN"],"86":["CN"],"90":["TR"],"91":["IN"],"92":["PK"],"93":["AF"],"94":["LK"],"95":["MM"],"98":["IR"],"211":["SS"],"212":["MA","EH"],"213":["DZ"],"216":["TN"],"218":["LY"],"220":["GM"],"221":["SN"],"222":["MR"],"223":["ML"],"224":["GN"],"225":["CI"],"226":["BF"],"227":["NE"],"228":["TG"],"229":["BJ"],"230":["MU"],"231":["LR"],"232":["SL"],"233":["GH"],"234":["NG"],"235":["TD"],"236":["CF"],"237":["CM"],"238":["CV"],"239":["ST"],"240":["GQ"],"241":["GA"],"242":["CG"],"243":["CD"],"244":["AO"],"245":["GW"],"246":["IO"],"247":["AC"],"248":["SC"],"249":["SD"],"250":["RW"],"251":["ET"],"252":["SO"],"253":["DJ"],"254":["KE"],"255":["TZ"],"256":["UG"],"257":["BI"],"258":["MZ"],"260":["ZM"],"261":["MG"],"262":["RE","YT"],"263":["ZW"],"264":["NA"],"265":["MW"],"266":["LS"],"267":["BW"],"268":["SZ"],"269":["KM"],"290":["SH","TA"],"291":["ER"],"297":["AW"],"298":["FO"],"299":["GL"],"350":["GI"],"351":["PT"],"352":["LU"],"353":["IE"],"354":["IS"],"355":["AL"],"356":["MT"],"357":["CY"],"358":["FI","AX"],"359":["BG"],"370":["LT"],"371":["LV"],"372":["EE"],"373":["MD"],"374":["AM"],"375":["BY"],"376":["AD"],"377":["MC"],"378":["SM"],"380":["UA"],"381":["RS"],"382":["ME"],"385":["HR"],"386":["SI"],"387":["BA"],"389":["MK"],"420":["CZ"],"421":["SK"],"423":["LI"],"500":["FK"],"501":["BZ"],"502":["GT"],"503":["SV"],"504":["HN"],"505":["NI"],"506":["CR"],"507":["PA"],"508":["PM"],"509":["HT"],"590":["GP","BL","MF"],"591":["BO"],"592":["GY"],"593":["EC"],"594":["GF"],"595":["PY"],"596":["MQ"],"597":["SR"],"598":["UY"],"599":["CW","BQ"],"670":["TL"],"672":["NF"],"673":["BN"],"674":["NR"],"675":["PG"],"676":["TO"],"677":["SB"],"678":["VU"],"679":["FJ"],"680":["PW"],"681":["WF"],"682":["CK"],"683":["NU"],"685":["WS"],"686":["KI"],"687":["NC"],"688":["TV"],"689":["PF"],"690":["TK"],"691":["FM"],"692":["MH"],"800":["001"],"808":["001"],"850":["KP"],"852":["HK"],"853":["MO"],"855":["KH"],"856":["LA"],"870":["001"],"878":["001"],"880":["BD"],"881":["001"],"882":["001"],"883":["001"],"886":["TW"],"888":["001"],"960":["MV"],"961":["LB"],"962":["JO"],"963":["SY"],"964":["IQ"],"965":["KW"],"966":["SA"],"967":["YE"],"968":["OM"],"970":["PS"],"971":["AE"],"972":["IL"],"973":["BH"],"974":["QA"],"975":["BT"],"976":["MN"],"977":["NP"],"979":["001"],"992":["TJ"],"993":["TM"],"994":["AZ"],"995":["GE"],"996":["KG"],"998":["UZ"]},"countries":{"AC":["247","[46]\\\\d{4}|[01589]\\\\d{5}"],"AD":["376","[16]\\\\d{5,8}|[37-9]\\\\d{5}",[["(\\\\d{3})(\\\\d{3})","$1 $2",["[137-9]|6[0-8]"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["180","180[02]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["690"]]]],"AE":["971","[2-79]\\\\d{7,8}|800\\\\d{2,9}",[["([2-4679])(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2-4679][2-8]"]],["(5\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["5"]],["([479]00)(\\\\d)(\\\\d{5})","$1 $2 $3",["[479]00"],"$1"],["([68]00)(\\\\d{2,9})","$1 $2",["[68]00"],"$1"]],"0","0$1"],"AF":["93","[2-7]\\\\d{8}",[["([2-7]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2-7]"]]],"0","0$1"],"AG":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"268"],"AI":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"264"],"AL":["355","[2-57]\\\\d{7}|6\\\\d{8}|8\\\\d{5,7}|9\\\\d{5}",[["(4)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["4[0-6]"]],["(6\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["6"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2358][2-5]|4[7-9]"]],["(\\\\d{3})(\\\\d{3,5})","$1 $2",["[235][16-9]|[79]|8[016-9]"]]],"0","0$1"],"AM":["374","[1-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{6})","$1 $2",["1|47"]],["(\\\\d{2})(\\\\d{6})","$1 $2",["4[1349]|[5-7]|88|9[1-9]"],"0$1"],["(\\\\d{3})(\\\\d{5})","$1 $2",["[23]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["8|90"],"0 $1"]],"0","(0$1)"],"AO":["244","[29]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3"]]],"AR":["54","11\\\\d{8}|[2368]\\\\d{9}|9\\\\d{10}",[["([68]\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[68]"]],["(9)(11)(\\\\d{4})(\\\\d{4})","$2 15-$3-$4",["911"],null,null,"$1 $2 $3-$4"],["(9)(\\\\d{3})(\\\\d{3})(\\\\d{4})","$2 15-$3-$4",["9(?:2[2-4689]|3[3-8])","9(?:2(?:2[013]|3[067]|49|6[01346]|8|9[147-9])|3(?:36|4[1-358]|5[138]|6|7[069]|8[013578]))","9(?:2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3[4-6]|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45])))","9(?:2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3(?:4|5[014]|6[1-39])|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45])))"],null,null,"$1 $2 $3-$4"],["(9)(\\\\d{4})(\\\\d{2})(\\\\d{4})","$2 15-$3-$4",["9[23]"],null,null,"$1 $2 $3-$4"],["(11)(\\\\d{4})(\\\\d{4})","$1 $2-$3",["11"],null,"true"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2-$3",["2(?:2[013]|3[067]|49|6[01346]|8|9[147-9])|3(?:36|4[1-358]|5[138]|6|7[069]|8[013578])","2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3[4-6]|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45]))","2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3(?:4|5[014]|6[1-39])|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45]))"],null,"true"],["(\\\\d{4})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["[23]"],null,"true"]],"0","0$1","0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))?15)?","9$1"],"AS":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"684"],"AT":["43","[1-9]\\\\d{3,12}",[["(116\\\\d{3})","$1",["116"],"$1"],["(1)(\\\\d{3,12})","$1 $2",["1"]],["(5\\\\d)(\\\\d{3,5})","$1 $2",["5[079]"]],["(5\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["5[079]"]],["(5\\\\d)(\\\\d{4})(\\\\d{4,7})","$1 $2 $3",["5[079]"]],["(\\\\d{3})(\\\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:[28]0|32)|[89]"]],["(\\\\d{4})(\\\\d{3,9})","$1 $2",["2|3(?:1[1-578]|[3-8])|4[2378]|5[2-6]|6(?:[12]|4[1-9]|5[468])|7(?:[24][1-8]|35|[5-79])"]]],"0","0$1"],"AU":["61","1\\\\d{4,9}|[2-578]\\\\d{8}",[["([2378])(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(16)(\\\\d{3,4})","$1 $2",["16"],"0$1"],["(16)(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(1[389]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[389]0","1(?:[38]0|9)0"]],["(180)(2\\\\d{3})","$1 $2",["180","1802"]],["(19\\\\d)(\\\\d{3})","$1 $2",["19[13]"]],["(19\\\\d{2})(\\\\d{4})","$1 $2",["19[679]"]],["(13)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["13[1-9]"]]],"0",null,null,null,null,null,["[237]\\\\d{8}|8(?:51(?:0(?:0[03-9]|[1247]\\\\d|3[2-9]|5[0-8]|6[1-9]|8[0-6])|1(?:1[69]|[23]\\\\d|4[0-4]))|[6-8]\\\\d{4}|9(?:[02-9]\\\\d{3}|1(?:[0-57-9]\\\\d{2}|6[0135-9]\\\\d)))\\\\d{3}","14(?:5\\\\d|71)\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[6-9]|7[02-9]|8[12457-9]|9[017-9])\\\\d{6}","180(?:0\\\\d{3}|2)\\\\d{3}","19(?:0[0126]\\\\d|[679])\\\\d{5}","500\\\\d{6}",null,null,"16\\\\d{3,7}","550\\\\d{6}","13(?:00\\\\d{3}|45[0-4]|\\\\d)\\\\d{3}"]],"AW":["297","[25-9]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"AX":["358","1\\\\d{5,11}|[35]\\\\d{5,9}|2\\\\d{4,9}|4\\\\d{5,10}|6\\\\d{7,9}|7\\\\d{4,9}|8\\\\d{6,9}",[["(\\\\d{3})(\\\\d{3,7})","$1 $2",["(?:[1-3]0|[6-8])0"]],["(75\\\\d{3})","$1",["75[12]"]],["(116\\\\d{3})","$1",["116"],"$1"],["(\\\\d{2})(\\\\d{4,10})","$1 $2",["[14]|2[09]|50|7[135]"]],["(\\\\d)(\\\\d{4,11})","$1 $2",["[25689][1-8]|3"]]],"0",null,null,null,null,null,["18[1-8]\\\\d{3,9}","4\\\\d{5,10}|50\\\\d{4,8}","800\\\\d{4,7}","[67]00\\\\d{5,6}",null,null,"[13]0\\\\d{4,8}|2(?:0(?:[016-8]\\\\d{3,7}|[2-59]\\\\d{2,7})|9\\\\d{4,8})|60(?:[12]\\\\d{5,6}|6\\\\d{7})|7(?:1\\\\d{7}|3\\\\d{8}|5[03-9]\\\\d{2,7})"]],"AZ":["994","[1-9]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["1[28]|2(?:[0-36]|[45]2)|365"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[4-8]"],"0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["9"],"0$1"]],"0","(0$1)"],"BA":["387","[3-9]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2-$3",["[3-5]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6[1-356]|[7-9]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["6[047]"]]],"0","0$1"],"BB":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"246"],"BD":["880","[2-79]\\\\d{5,9}|1\\\\d{9}|8[0-7]\\\\d{4,8}",[["(2)(\\\\d{7,8})","$1-$2",["2"]],["(\\\\d{2})(\\\\d{4,6})","$1-$2",["[3-79]1"]],["(\\\\d{4})(\\\\d{3,6})","$1-$2",["1|3(?:0|[2-58]2)|4(?:0|[25]2|3[23]|[4689][25])|5(?:[02-578]2|6[25])|6(?:[0347-9]2|[26][25])|7[02-9]2|8(?:[023][23]|[4-7]2)|9(?:[02][23]|[458]2|6[016])"]],["(\\\\d{3})(\\\\d{3,7})","$1-$2",["[3-79][2-9]|8"]]],"0","0$1"],"BE":["32","[1-9]\\\\d{7,8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["4[6-9]"]],["(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[23]|4[23]|9[2-4]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[156]|7[018]|8(?:0[1-9]|[1-79])"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["(?:80|9)0"]]],"0","0$1"],"BF":["226","[25-7]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"BG":["359","[23567]\\\\d{5,7}|[489]\\\\d{6,8}",[["(2)(\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["2"]],["(2)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["43[124-7]|70[1-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1 $2 $3",["43[124-7]|70[1-9]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[78]00"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["99[69]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["48|8[7-9]|9[08]"]]],"0","0$1"],"BH":["973","[136-9]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"BI":["257","[267]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"BJ":["229","[2689]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2689]"]]]],"BL":["590","[56]\\\\d{8}",[["([56]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["590|69[01]"]]],"0",null,null,null,null,null,["590(?:2[7-9]|5[12]|87)\\\\d{4}","69(?:0\\\\d{2}|1(?:2[29]|3[0-5]))\\\\d{4}"]],"BM":["1","[4589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"441"],"BN":["673","[2-578]\\\\d{6}",[["([2-578]\\\\d{2})(\\\\d{4})","$1 $2",["[2-578]"]]]],"BO":["591","[23467]\\\\d{7}|8\\\\d{8}",[["([234])(\\\\d{7})","$1 $2",["[2-4]"]],["([67]\\\\d{7})","$1",["[67]"]],["(800)(\\\\d{2})(\\\\d{4})","$1 $2 $3",["800"]]],"0",null,"0(1\\\\d)?"],"BQ":["599","[347]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[13-7]"]],["(9)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["9"]]],null,null,null,null,null,null,["(?:318[023]|41(?:6[023]|70)|7(?:1[578]|50)\\\\d)\\\\d{3}","(?:31(?:8[14-8]|9[14578])|416[145-9]|7(?:0[01]|7[07]|8\\\\d|9[056])\\\\d)\\\\d{3}"]],"BR":["55","[1-46-9]\\\\d{7,10}|5(?:[0-4]\\\\d{7,9}|5(?:[2-8]\\\\d{7}|9\\\\d{7,8}))",[["(\\\\d{4})(\\\\d{4})","$1-$2",["300|40[02]","300|40(?:0|20)"]],["([3589]00)(\\\\d{2,3})(\\\\d{4})","$1 $2 $3",["[3589]00"],"0$1"],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2-$3",["[1-9][1-9]"],"($1)"],["(\\\\d{2})(\\\\d{5})(\\\\d{4})","$1 $2-$3",["[1-9][1-9]9"],"($1)"]],"0",null,"0(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\\\d{10,11}))?","$2"],"BS":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"242"],"BT":["975","[1-8]\\\\d{6,7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["1|77"]],["([2-8])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-68]|7[246]"]]]],"BW":["267","[2-79]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[2-6]"]],["(7\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7"]],["(90)(\\\\d{5})","$1 $2",["90"]]]],"BY":["375","[1-4]\\\\d{8}|8(?:0(?:0\\\\d{3,7}|[13]\\\\d{7})|(?:10|20\\\\d)\\\\d{7})|9\\\\d{9,10}",[["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["17[0-3589]|2[4-9]|[34]","17(?:[02358]|1[0-2]|9[0189])|2[4-9]|[34]"],"8 0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["1(?:5[24]|6[235]|7[467])|2(?:1[246]|2[25]|3[26])","1(?:5[24]|6(?:2|3[04-9]|5[0346-9])|7(?:[46]|7[37-9]))|2(?:1[246]|2[25]|3[26])"],"8 0$1"],["(\\\\d{4})(\\\\d{2})(\\\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["([89]\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8[01]|9"],"8 $1"],["(82\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["82"],"8 $1"],["(800)(\\\\d{3})","$1 $2",["800"],"8 $1"],["(800)(\\\\d{2})(\\\\d{2,4})","$1 $2 $3",["800"],"8 $1"]],"8",null,"8?0?"],"BZ":["501","[2-8]\\\\d{6}|0\\\\d{10}",[["(\\\\d{3})(\\\\d{4})","$1-$2",["[2-8]"]],["(0)(800)(\\\\d{4})(\\\\d{3})","$1-$2-$3-$4",["080","0800"]]]],"CA":["1","[2-9]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,null,["(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|65)|4(?:03|1[68]|3[178]|50)|5(?:06|1[49]|48|79|8[17])|6(?:0[04]|13|22|39|47)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\\\d{6}",null,"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}","900[2-9]\\\\d{6}","5(?:(?:00|22|33|44|66|77|88)[2-9]|21[23])\\\\d{6}"]],"CC":["61","[1458]\\\\d{5,9}",[["([2378])(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(16)(\\\\d{3,4})","$1 $2",["16"],"0$1"],["(16)(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(1[389]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[389]0","1(?:[38]0|9)0"]],["(180)(2\\\\d{3})","$1 $2",["180","1802"]],["(19\\\\d)(\\\\d{3})","$1 $2",["19[13]"]],["(19\\\\d{2})(\\\\d{4})","$1 $2",["19[679]"]],["(13)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["13[1-9]"]]],"0",null,null,null,null,null,["8(?:51(?:0(?:02|31|60)|118)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:08|22|68)|4[29]8|62\\\\d|70[23]|959))\\\\d{3}","14(?:5\\\\d|71)\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[6-9]|7[02-9]|8[12547-9]|9[017-9])\\\\d{6}","180(?:0\\\\d{3}|2)\\\\d{3}","19(?:0[0126]\\\\d|[679])\\\\d{5}","500\\\\d{6}",null,null,null,"550\\\\d{6}","13(?:00\\\\d{2})?\\\\d{4}"]],"CD":["243","[2-6]\\\\d{6}|[18]\\\\d{6,8}|9\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["12"]],["([89]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8[0-2459]|9"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["88"]],["(\\\\d{2})(\\\\d{5})","$1 $2",["[1-6]"]]],"0","0$1"],"CF":["236","[278]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"CG":["242","[028]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["801"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[02]"]],["(\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["800"]]]],"CH":["41","[2-9]\\\\d{8}|860\\\\d{9}",[["([2-9]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-7]|[89]1"]],["([89]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8[047]|90"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["860"]]],"0","0$1"],"CI":["225","[02-8]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"CK":["682","[2-8]\\\\d{4}",[["(\\\\d{2})(\\\\d{3})","$1 $2"]]],"CL":["56","1230\\\\d{7}|[2-46-9]\\\\d{8,10}|5[1-3578]\\\\d{7}",[["(\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2[23]"],"($1)"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[357]|4[1-35]|6[13-57]"],"($1)"],["(9)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["9"]],["(44)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["44"]],["([68]00)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[68]00"],"$1"],["(600)(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["600"],"$1"],["(1230)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["123","1230"],"$1"],["(\\\\d{5})(\\\\d{4})","$1 $2",["219"],"($1)"]],"0","0$1","0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))"],"CM":["237","[2368]\\\\d{7,8}",[["([26])(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["[26]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[23]|88"]]]],"CN":["86","[1-7]\\\\d{6,11}|8[0-357-9]\\\\d{6,9}|9\\\\d{7,10}",[["([48]00)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[48]00"]],["(\\\\d{2})(\\\\d{5,6})","$1 $2",["(?:10|2\\\\d)[19]","(?:10|2\\\\d)(?:10|9[56])","(?:10|2\\\\d)(?:100|9[56])"],"0$1"],["(\\\\d{3})(\\\\d{5,6})","$1 $2",["[3-9]","[3-9]\\\\d\\\\d[19]","[3-9]\\\\d\\\\d(?:10|9[56])"],"0$1"],["(21)(\\\\d{4})(\\\\d{4,6})","$1 $2 $3",["21"],"0$1","true"],["([12]\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["10[1-9]|2[02-9]","10[1-9]|2[02-9]","10(?:[1-79]|8(?:0[1-9]|[1-9]))|2[02-9]"],"0$1","true"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["3(?:1[02-9]|35|49|5|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|[35][2-9]|6[47-9]|7|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[04-9]|4[3-6]|6[2368])|8(?:1[236-8]|2[5-7]|3|5[1-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])"],"0$1","true"],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["3(?:11|7[179])|4(?:[15]1|3[1-35])|5(?:1|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[457]|6[09])|8(?:[57]1|98)"],"0$1","true"],["(\\\\d{4})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["807","8078"],"0$1","true"],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["1(?:[3-57-9]|66)"]],["(10800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["108","1080","10800"]],["(\\\\d{3})(\\\\d{7,8})","$1 $2",["950"]]],"0",null,"(1(?:[129]\\\\d{3}|79\\\\d{2}))|0"],"CO":["57","(?:[13]\\\\d{0,3}|[24-8])\\\\d{7}",[["(\\\\d)(\\\\d{7})","$1 $2",["1(?:[2-7]|8[2-9]|9[0-3])|[24-8]","1(?:[2-7]|8[2-9]|9(?:09|[1-3]))|[24-8]"],"($1)"],["(\\\\d{3})(\\\\d{7})","$1 $2",["3"]],["(1)(\\\\d{3})(\\\\d{7})","$1-$2-$3",["1(?:80|9[04])","1(?:800|9(?:0[01]|4[78]))"],"0$1",null,"$1 $2 $3"]],"0",null,"0([3579]|4(?:44|56))?"],"CR":["506","[24-9]\\\\d{7,9}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[24-7]|8[3-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[89]0"]]],null,null,"(19(?:0[012468]|1[09]|20|66|77|99))"],"CU":["53","[2-57]\\\\d{5,7}",[["(\\\\d)(\\\\d{6,7})","$1 $2",["7"]],["(\\\\d{2})(\\\\d{4,6})","$1 $2",["[2-4]"]],["(\\\\d)(\\\\d{7})","$1 $2",["5"],"0$1"]],"0","(0$1)"],"CV":["238","[259]\\\\d{6}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"CW":["599","[134679]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[13-7]"]],["(9)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["9"]]],null,null,null,null,null,null,["9(?:[48]\\\\d{2}|50\\\\d|7(?:2[0-24]|[34]\\\\d|6[35-7]|77|8[7-9]))\\\\d{4}","9(?:5(?:[12467]\\\\d|3[01])|6(?:[15-9]\\\\d|3[01]))\\\\d{4}",null,null,null,null,null,"955\\\\d{5}",null,"60[0-2]\\\\d{4}"]],"CX":["61","[1458]\\\\d{5,9}",[["([2378])(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(16)(\\\\d{3,4})","$1 $2",["16"],"0$1"],["(16)(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(1[389]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[389]0","1(?:[38]0|9)0"]],["(180)(2\\\\d{3})","$1 $2",["180","1802"]],["(19\\\\d)(\\\\d{3})","$1 $2",["19[13]"]],["(19\\\\d{2})(\\\\d{4})","$1 $2",["19[679]"]],["(13)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["13[1-9]"]]],"0",null,null,null,null,null,["8(?:51(?:0(?:01|30|59)|117)|91(?:00[6-9]|1(?:21|49|78|81)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\\\d|7(?:0[01]|1[0-2])|958))\\\\d{3}","14(?:5\\\\d|71)\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[6-9]|7[02-9]|8[12547-9]|9[017-9])\\\\d{6}","180(?:0\\\\d{3}|2)\\\\d{3}","19(?:0[0126]\\\\d|[679])\\\\d{5}","500\\\\d{6}",null,null,null,"550\\\\d{6}","13(?:00\\\\d{2})?\\\\d{4}"]],"CY":["357","[257-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{6})","$1 $2"]]],"CZ":["420","[2-8]\\\\d{8}|9\\\\d{8,11}",[["([2-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(96\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["96"]],["(9\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["9[36]"]]]],"DE":["49","[1-35-9]\\\\d{3,14}|4(?:[0-8]\\\\d{3,12}|9(?:[0-37]\\\\d|4(?:[1-35-8]|4\\\\d?)|5\\\\d{1,2}|6[1-8]\\\\d?)\\\\d{2,8})",[["(1\\\\d{2})(\\\\d{7,8})","$1 $2",["1[67]"]],["(15\\\\d{3})(\\\\d{6})","$1 $2",["15[0568]"]],["(1\\\\d{3})(\\\\d{7})","$1 $2",["15"]],["(\\\\d{2})(\\\\d{3,11})","$1 $2",["3[02]|40|[68]9"]],["(\\\\d{3})(\\\\d{3,11})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14]|[4-9]1)|3(?:[35-9][15]|4[015])|[4-8][1-9]1|9(?:06|[1-9]1)"]],["(\\\\d{4})(\\\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|[7-9](?:0[1-9]|[1-9])","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|[46][1246]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|3[1357]|4[13578]|6[1246]|7[1356]|9[1346])|5(?:0[14]|2[1-3589]|3[1357]|[49][1246]|6[1-4]|7[1346]|8[13568])|6(?:0[356]|2[1-489]|3[124-6]|4[1347]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|3[1357]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|4[1347]|6[0135-9]|7[1467]|8[136])|9(?:0[12479]|2[1358]|3[1357]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|[7-9](?:0[1-9]|[1-9])"]],["(3\\\\d{4})(\\\\d{1,10})","$1 $2",["3"]],["(800)(\\\\d{7,12})","$1 $2",["800"]],["(\\\\d{3})(\\\\d)(\\\\d{4,10})","$1 $2 $3",["1(?:37|80)|900","1(?:37|80)|900[1359]"]],["(1\\\\d{2})(\\\\d{5,11})","$1 $2",["181"]],["(18\\\\d{3})(\\\\d{6})","$1 $2",["185","1850","18500"]],["(18\\\\d{2})(\\\\d{7})","$1 $2",["18[68]"]],["(18\\\\d)(\\\\d{8})","$1 $2",["18[2-579]"]],["(700)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["700"]],["(138)(\\\\d{4})","$1 $2",["138"]],["(15[013-68])(\\\\d{2})(\\\\d{8})","$1 $2 $3",["15[013-68]"]],["(15[279]\\\\d)(\\\\d{2})(\\\\d{7})","$1 $2 $3",["15[279]"]],["(1[67]\\\\d)(\\\\d{2})(\\\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"]]],"0","0$1"],"DJ":["253","[27]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"DK":["45","[2-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"DM":["1","[57-9]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"767"],"DO":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"8[024]9"],"DZ":["213","(?:[1-4]|[5-9]\\\\d)\\\\d{7}",[["([1-4]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[1-4]"]],["([5-8]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[5-8]"]],["(9\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["9"]]],"0","0$1"],"EC":["593","1\\\\d{9,10}|[2-8]\\\\d{7}|9\\\\d{8}",[["(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2-$3",["[247]|[356][2-8]"],null,null,"$1-$2-$3"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["9"],"0$1"],["(1800)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["180","1800"],"$1"]],"0","(0$1)"],"EE":["372","[3-9]\\\\d{6,7}|800\\\\d{6,7}",[["([3-79]\\\\d{2})(\\\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]"]],["(70)(\\\\d{2})(\\\\d{4})","$1 $2 $3",["70"]],["(8000)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["800","8000"]],["([458]\\\\d{3})(\\\\d{3,4})","$1 $2",["40|5|8(?:00|[1-5])","40|5|8(?:00[1-9]|[1-5])"]]]],"EG":["20","1\\\\d{4,9}|[24-6]\\\\d{8}|3\\\\d{7}|[89]\\\\d{8,9}",[["(\\\\d)(\\\\d{7,8})","$1 $2",["[23]"]],["(\\\\d{2})(\\\\d{6,7})","$1 $2",["1(?:3|5[239])|[4-6]|[89][2-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[0-25]|[89]00"]]],"0","0$1"],"EH":["212","[5-9]\\\\d{8}",[["([5-7]\\\\d{2})(\\\\d{6})","$1-$2",["5(?:2[015-7]|3[0-4])|[67]"]],["([58]\\\\d{3})(\\\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|92)|892","5(?:2(?:[2-48]|9[0-7])|3(?:[5-79]|8[0-7])|924)|892"]],["(5\\\\d{4})(\\\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]"]],["([5]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5(?:4[067]|5[03])"]],["(8[09])(\\\\d{7})","$1-$2",["8(?:0|9[013-9])"]]],"0",null,null,null,null,"528[89]"],"ER":["291","[178]\\\\d{6}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3"]],"0","0$1"],"ES":["34","[5-9]\\\\d{8}",[["([89]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[89]00"]],["([5-9]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[568]|[79][0-8]"]]]],"ET":["251","[1-59]\\\\d{8}",[["([1-59]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1-59]"]]],"0","0$1"],"FI":["358","1\\\\d{4,11}|[2-9]\\\\d{4,10}",[["(\\\\d{3})(\\\\d{3,7})","$1 $2",["(?:[1-3]0|[6-8])0"]],["(75\\\\d{3})","$1",["75[12]"]],["(116\\\\d{3})","$1",["116"],"$1"],["(\\\\d{2})(\\\\d{4,10})","$1 $2",["[14]|2[09]|50|7[135]"]],["(\\\\d)(\\\\d{4,11})","$1 $2",["[25689][1-8]|3"]]],"0","0$1",null,null,null,null,["1(?:[3569][1-8]\\\\d{3,9}|[47]\\\\d{5,10})|2[1-8]\\\\d{3,9}|3(?:[1-8]\\\\d{3,9}|9\\\\d{4,8})|[5689][1-8]\\\\d{3,9}","4(?:[0-8]\\\\d{4,9}|9\\\\d{3,8})|50\\\\d{4,8}","800\\\\d{4,7}","[67]00\\\\d{5,6}",null,null,"[13]0\\\\d{4,8}|2(?:0(?:[016-8]\\\\d{3,7}|[2-59]\\\\d{2,7})|9\\\\d{4,8})|60(?:[12]\\\\d{5,6}|6\\\\d{7})|7(?:1\\\\d{7}|3\\\\d{8}|5[03-9]\\\\d{3,7})"]],"FJ":["679","[2-9]\\\\d{6}|0\\\\d{10}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[2-9]"]],["(\\\\d{4})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["0"]]]],"FK":["500","[2-7]\\\\d{4}"],"FM":["691","[39]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"FO":["298","[2-9]\\\\d{5}",[["(\\\\d{6})","$1"]],null,null,"(10(?:01|[12]0|88))"],"FR":["33","[1-9]\\\\d{8}",[["([1-79])(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["[1-79]"]],["(8\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["8"],"0 $1"]],"0","0$1"],"GA":["241","0?\\\\d{7}",[["(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["0"]]]],"GB":["44","\\\\d{7,10}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0","0$1",null,null,null,null,["2(?:0[01378]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\\\d{7}|1(?:1(?:3[0-48]|[46][0-4]|5[0-26-9]|[78][0-49])|21[0-7]|31[0-8]|[4-69]1\\\\d)\\\\d{6}|1(?:2(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\\\d)|3(?:0\\\\d|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[28][02-57-9]|[37]\\\\d|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|2[024-9]|3[015689]|4[02-9]|5[03-9]|6\\\\d|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0124578])|7(?:0[0246-9]|2\\\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\\\d|8[02-9]|9[02569])|9(?:0[02-589]|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|8\\\\d|9[2-57]))\\\\d{6}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[345])))|3(?:638[2-5]|647[23]|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[123]))|5(?:24(?:3[2-79]|6\\\\d)|276\\\\d|6(?:26[06-9]|686))|6(?:06(?:4\\\\d|7[4-79])|295[567]|35[34]\\\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|955[0-4])|7(?:26(?:6[13-9]|7[0-7])|442\\\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\\\d|37(?:5[2-5]|8[239])|84(?:3[2-58]))|9(?:0(?:0(?:6[1-8]|85)|52\\\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\\\d{3}|176888[2-46-8]\\\\d{2}|16977[23]\\\\d{3}","7(?:[1-3]\\\\d{3}|4(?:[0-46-9]\\\\d{2}|5(?:[0-689]\\\\d|7[0-57-9]))|5(?:0[0-8]|[13-9]\\\\d|2[0-35-9])\\\\d|7(?:0(?:0[01]|[1-9]\\\\d)|[1-7]\\\\d{2}|8[02-9]\\\\d|9[0-689]\\\\d)|8(?:[014-9]\\\\d|[23][0-8])\\\\d|9(?:[024-9]\\\\d{2}|1(?:[02-9]\\\\d|1[028])|3[0-689]\\\\d))\\\\d{5}","80(?:0(?:1111|\\\\d{6,7})|8\\\\d{7})","(?:87[123]|9(?:[01]\\\\d|8[2349]))\\\\d{7}","70\\\\d{8}",null,"(?:3[0347]|55)\\\\d{8}","76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}","56\\\\d{8}","8(?:4(?:5464\\\\d|[2-5]\\\\d{7})|70\\\\d{7})"]],"GD":["1","[4589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"473"],"GE":["995","[34578]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7"],"0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5"]]],"0"],"GF":["594","[56]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]],"0","0$1"],"GG":["44","[135789]\\\\d{6,9}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0",null,null,null,null,null,["1481[25-9]\\\\d{5}","7(?:781\\\\d|839\\\\d|911[17])\\\\d{5}","80(?:0(?:1111|\\\\d{6,7})|8\\\\d{7})","(?:87[123]|9(?:[01]\\\\d|8[0-3]))\\\\d{7}","70\\\\d{8}",null,"(?:3[0347]|55)\\\\d{8}","76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}","56\\\\d{8}","8(?:4(?:5464\\\\d|[2-5]\\\\d{7})|70\\\\d{7})"]],"GH":["233","[235]\\\\d{8}|8\\\\d{7}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[235]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["8"]]],"0","0$1"],"GI":["350","[256]\\\\d{7}",[["(\\\\d{3})(\\\\d{5})","$1 $2",["2"]]]],"GL":["299","[1-689]\\\\d{5}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"GM":["220","[2-9]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"GN":["224","[367]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["3"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[67]"]]]],"GP":["590","[56]\\\\d{8}",[["([56]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["590|69[01]"]]],"0","0$1",null,null,null,null,["590(?:0[1-68]|1[0-2]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\\\d)\\\\d{4}","69(?:0\\\\d{2}|1(?:2[29]|3[0-5]))\\\\d{4}"]],"GQ":["240","[23589]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[235]"]],["(\\\\d{3})(\\\\d{6})","$1 $2",["[89]"]]]],"GR":["30","[26-9]\\\\d{9}",[["([27]\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["21|7"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2[2-9]1|[689]"]],["(2\\\\d{3})(\\\\d{6})","$1 $2",["2[2-9][02-9]"]]]],"GT":["502","[2-7]\\\\d{7}|1[89]\\\\d{9}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[2-7]"]],["(\\\\d{4})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]]]],"GU":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"671"],"GW":["245","(?:4(?:0\\\\d{5}|4\\\\d{7})|9\\\\d{8})",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["44|9[5-7]"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["40"]]]],"GY":["592","[2-46-9]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"HK":["852","[2-7]\\\\d{7}|8[0-3]\\\\d{6,7}|9\\\\d{4,10}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[2-7]|[89](?:0[1-9]|[1-9])"]],["(800)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["800"]],["(900)(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["900"]],["(900)(\\\\d{2,5})","$1 $2",["900"]]]],"HN":["504","[237-9]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1-$2"]]],"HR":["385","[1-7]\\\\d{5,8}|[89]\\\\d{6,8}",[["(1)(\\\\d{4})(\\\\d{3})","$1 $2 $3",["1"]],["([2-5]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[2-5]"]],["(9\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["9"]],["(6[01])(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["6[01]"]],["([67]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[67]"]],["(80[01])(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["80[01]"]],["(80[01])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["80[01]"]]],"0","0$1"],"HT":["509","[2-489]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2 $3"]]],"HU":["36","[1-9]\\\\d{7,8}",[["(1)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[2-9]"]]],"06","($1)"],"ID":["62","(?:[1-79]\\\\d{6,10}|8\\\\d{7,11})",[["(\\\\d{2})(\\\\d{5,8})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\\\d{3})(\\\\d{5,8})","$1 $2",["2[035-9]|[36][02-9]|[4579]"],"(0$1)"],["(8\\\\d{2})(\\\\d{3,4})(\\\\d{3})","$1-$2-$3",["8[1-35-9]"]],["(8\\\\d{2})(\\\\d{4})(\\\\d{4,5})","$1-$2-$3",["8[1-35-9]"]],["(1)(500)(\\\\d{3})","$1 $2 $3",["150","1500"],"$1"],["(177)(\\\\d{6,8})","$1 $2",["177"]],["(800)(\\\\d{5,7})","$1 $2",["800"]],["(804)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["804"]],["(80\\\\d)(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["80[79]"]]],"0","0$1"],"IE":["353","[124-9]\\\\d{6,9}",[["(1)(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["1"]],["(\\\\d{2})(\\\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["40[24]|50[45]"]],["(48)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["48"]],["(818)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["818"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[24-69]|7[14]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["76|8[35-9]"],"0$1"],["(8\\\\d)(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3 $4",["8[35-9]5"],"0$1"],["(700)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["700"],"0$1"],["(\\\\d{4})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1(?:5|8[059])","1(?:5|8[059]0)"],"$1"]],"0","(0$1)"],"IL":["972","1\\\\d{6,11}|[2-589]\\\\d{3}(?:\\\\d{3,6})?|6\\\\d{3}|7\\\\d{6,9}",[["([2-489])(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["([57]\\\\d)(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(153)(\\\\d{1,2})(\\\\d{3})(\\\\d{4})","$1 $2 $3 $4",["153"]],["(1)([7-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(1255)(\\\\d{3})","$1-$2",["125","1255"]],["(1200)(\\\\d{3})(\\\\d{3})","$1-$2-$3",["120","1200"]],["(1212)(\\\\d{2})(\\\\d{2})","$1-$2-$3",["121","1212"]],["(1599)(\\\\d{6})","$1-$2",["159","1599"]],["(151)(\\\\d{1,2})(\\\\d{3})(\\\\d{4})","$1-$2 $3-$4",["151"]],["(\\\\d{4})","*$1",["[2-689]"]]],"0"],"IM":["44","[135789]\\\\d{6,9}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0",null,null,null,null,null,["1624[5-8]\\\\d{5}","7(?:4576|[59]24\\\\d|624[0-4689])\\\\d{5}","808162\\\\d{4}","(?:872299|90[0167]624)\\\\d{4}","70\\\\d{8}",null,"3(?:08162\\\\d|3\\\\d{5}|4(?:40[49]06|5624\\\\d)|7(?:0624\\\\d|2299\\\\d))\\\\d{3}|55\\\\d{8}",null,"56\\\\d{8}","8(?:4(?:40[49]06|5624\\\\d)|70624\\\\d)\\\\d{3}"]],"IN":["91","008\\\\d{9}|1\\\\d{7,12}|[2-9]\\\\d{9,10}",[["(\\\\d{8})","$1",["561","5616","56161"],"$1"],["(\\\\d{5})(\\\\d{5})","$1 $2",["6(?:[09]0|2[03689]|3[05-9])|7(?:[02-8]|19|9[037-9])|8(?:0[015-9]|[1-9])|9","6(?:[09]0|2(?:0[01]|39|60|8[0-2]|9[04])|3(?:0[01]|5[0-2]|60|7[05]|81|9[03-5]))|7(?:[07]|19[0-5]|2(?:[0235-9]|[14][017-9])|3(?:[025-9]|[134][017-9])|4(?:[0-35689]|[47][017-9])|5(?:[02-46-9]|[15][017-9])|6(?:[02-9]|1[0-257-9])|8(?:[0-79]|8[0189])|9(?:[089]|31|7[02-9]))|8(?:0(?:[01589]|6[67]|7[02-9])|1(?:[0-57-9]|6[07-9])|2(?:[014][07-9]|[235-9])|3(?:[03-57-9]|[126][07-9])|[45]|6(?:[02457-9]|[136][07-9])|7(?:[078][07-9]|[1-69])|8(?:[0-25-9]|3[07-9]|4[047-9])|9(?:[02-9]|1[027-9]))|9","6(?:[09]0|2(?:0[01]|39|60|8[0-2]|9[04])|3(?:0[01]|5[0-2]|60|7[05]|81|9[03-5]))|7(?:0|19[0-5]|2(?:[0235-79]|[14][017-9]|8(?:[0-69]|[78][089]))|3(?:[05-8]|1(?:[0189]|7[5-9])|2(?:[0-49][089]|[5-8])|3[017-9]|4(?:[07-9]|11)|9(?:[01689]|[2-5][089]|7[0189]))|4(?:[056]|1(?:[0135-9]|[24][089])|[29](?:[0-7][089]|[89])|3(?:[0-8][089]|9)|[47](?:[089]|11|7[02-8])|8(?:[0-24-7][089]|[389]))|5(?:[0346-9]|[15][017-9]|2(?:[03-9]|[12][089]))|6(?:[0346-9]|1[0-257-9]|2(?:[0-4]|[5-9][089])|5(?:[0-367][089]|[4589]))|7(?:0(?:[02-9]|1[089])|[1-9])|8(?:[0-79]|8(?:0[0189]|11|8[013-9]|9))|9(?:[089]|313|7(?:[02-8]|9[07-9])))|8(?:0(?:[01589]|6[67]|7(?:[02-8]|9[05-9]))|1(?:[02-57-9]|1(?:[0-35-9]|4[0-46-9])|6(?:[089]|7[02-8]))|2(?:0(?:[089]|7[02])|[14](?:[089]|7[02-8])|[235-9])|3(?:[03-57-9]|1(?:[089]|7[02-6])|2(?:[09]|77|8[0-689])|6(?:[089]|7[02-7]))|[45]|6(?:[02457-9]|[136](?:[089]|7[02-8]))|7(?:0[07-9]|[1-69]|[78](?:[089]|7[02-8]))|8(?:[0-25-9]|3(?:[089]|7[02-8])|4(?:[0489]|7[02-68]))|9(?:[02-9]|1(?:[0289]|7[2-6])))|9"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-9]|80[2-46]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[59][14]|[68][1-9]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1|9[15])|6(?:12|[2-4]1|5[17]|6[13]|7[14]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)"]],["(\\\\d{4})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1(?:[23579]|[468][1-9])|[2-8]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})(\\\\d{3})","$1 $2 $3 $4",["008"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["140"],"$1"],["(\\\\d{4})(\\\\d{2})(\\\\d{4})","$1 $2 $3",["160","1600"],"$1"],["(\\\\d{4})(\\\\d{4,5})","$1 $2",["180","1800"],"$1"],["(\\\\d{4})(\\\\d{2,4})(\\\\d{4})","$1 $2 $3",["180","1800"],"$1"],["(\\\\d{4})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["186","1860"],"$1"],["(\\\\d{4})(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["18[06]"],"$1"]],"0","0$1",null,null,true],"IO":["246","3\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"IQ":["964","[1-7]\\\\d{7,9}",[["(1)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]],["([2-6]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[2-6]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"0","0$1"],"IR":["98","[1-8]\\\\d{5,9}|9(?:[0-4]\\\\d{8}|9\\\\d{8})",[["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[1-8]"]],["(\\\\d{2})(\\\\d{4,5})","$1 $2",["[1-8]"]],["(\\\\d{4,5})","$1",["96"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["9"]]],"0","0$1"],"IS":["354","[4-9]\\\\d{6}|38\\\\d{7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[4-9]"]],["(3\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["3"]]]],"IT":["39","[01589]\\\\d{5,10}|3(?:[12457-9]\\\\d{8}|[36]\\\\d{7,9})",[["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[26]|55"]],["(0[26])(\\\\d{4})(\\\\d{5})","$1 $2 $3",["0[26]"]],["(0[26])(\\\\d{4,6})","$1 $2",["0[26]"]],["(0\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[13-57-9][0159]"]],["(\\\\d{3})(\\\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]],["(0\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["0[13-57-9][2-46-8]"]],["(0\\\\d{3})(\\\\d{2,6})","$1 $2",["0[13-57-9][2-46-8]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[13]|8(?:00|4[08]|9[59])","[13]|8(?:00|4[08]|9(?:5[5-9]|9))"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["894","894[5-9]"]],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["3"]]],null,null,null,null,null,null,["0(?:[26]\\\\d{4,9}|(?:1(?:[0159]\\\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|3(?:[0159]\\\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|7(?:[0159]\\\\d|2[12]|3[1-7]|4[2346]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\\\d|2[34578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\\\d{2,7})","3(?:[12457-9]\\\\d{8}|6\\\\d{7,8}|3\\\\d{7,9})","80(?:0\\\\d{6}|3\\\\d{3})","0878\\\\d{5}|1(?:44|6[346])\\\\d{6}|89(?:2\\\\d{3}|4(?:[0-4]\\\\d{2}|[5-9]\\\\d{4})|5(?:[0-4]\\\\d{2}|[5-9]\\\\d{6})|9\\\\d{6})","1(?:78\\\\d|99)\\\\d{6}",null,null,null,"55\\\\d{8}","84(?:[08]\\\\d{6}|[17]\\\\d{3})"]],"JE":["44","[135789]\\\\d{6,9}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0",null,null,null,null,null,["1534[0-24-8]\\\\d{5}","7(?:509\\\\d|7(?:00[378]|97[7-9])|829\\\\d|937\\\\d)\\\\d{5}","80(?:07(?:35|81)|8901)\\\\d{4}","(?:871206|90(?:066[59]|1810|71(?:07|55)))\\\\d{4}","701511\\\\d{4}",null,"3(?:0(?:07(?:35|81)|8901)|3\\\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))\\\\d{4}|55\\\\d{8}","76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}","56\\\\d{8}","8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|70002)\\\\d{4}"]],"JM":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"876"],"JO":["962","[235-9]\\\\d{7,8}",[["(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(7)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["7[457-9]"]],["(\\\\d{2})(\\\\d{7})","$1 $2",["70"]],["(\\\\d{3})(\\\\d{5,6})","$1 $2",["8[0158]|9"]]],"0","0$1"],"JP":["81","[1-9]\\\\d{8,9}|00(?:[36]\\\\d{7,14}|7\\\\d{5,7}|8\\\\d{7})",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1-$2-$3",["(?:12|57|99)0"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["800"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1-$2-$3",["[2579]0|80[1-9]"]],["(\\\\d{4})(\\\\d)(\\\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[78]|96)|477|51[24]|636)|9(?:496|802|9(?:1[23]|69))","1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[78]|96[2457-9])|477|51[24]|636[2-57-9])|9(?:496|802|9(?:1[23]|69))"]],["(\\\\d{3})(\\\\d{2})(\\\\d{4})","$1-$2-$3",["1(?:2[3-6]|3[3-9]|4[2-6]|5[2-8]|[68][2-7]|7[2-689]|9[1-578])|2(?:2[03-689]|3[3-58]|4[0-468]|5[04-8]|6[013-8]|7[06-9]|8[02-57-9]|9[13])|4(?:2[28]|3[689]|6[035-7]|7[05689]|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9[4-9])|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9[014-9])|8(?:2[49]|3[3-8]|4[5-8]|5[2-9]|6[35-9]|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9[3-7])","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:[0468][2-9]|5[78]|7[2-4])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[4-7]|[89][2-8]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9[2-8])|3(?:[3-6][2-9]|7[2-6]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5[4-7]|6[2-9]|8[2-8]|9[236-9])|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3[34]|4[2-69]|[5-7]))","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:[0468][2-9]|5[78]|7[2-4])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[4-7]|[89][2-8]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:20|[3578]|4[04-9]|6[56]))|3(?:[3-6][2-9]|7(?:[2-5]|6[0-59])|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:[0468][2-9]|5[78]|7[2-4])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[4-7]|[89][2-8]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:20|[3578]|4[04-9]|6(?:5[25]|60)))|3(?:[3-6][2-9]|7(?:[2-5]|6[0-59])|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["1|2(?:2[37]|5[5-9]|64|78|8[39]|91)|4(?:2[2689]|64|7[347])|5[2-589]|60|8(?:2[124589]|3[279]|[46-9])|9(?:[235-8]|93)","1|2(?:2[37]|5(?:[57]|[68]0|9[19])|64|78|8[39]|917)|4(?:2(?:20|[68]|9[178])|64|7[347])|5[2-589]|60|8(?:2[124589]|3[279]|[46-9])|9(?:[235-8]|93[34])","1|2(?:2[37]|5(?:[57]|[68]0|9(?:17|99))|64|78|8[39]|917)|4(?:2(?:20|[68]|9[178])|64|7[347])|5[2-589]|60|8(?:2[124589]|3[279]|[46-9])|9(?:[235-8]|93(?:31|4))"]],["(\\\\d{3})(\\\\d{2})(\\\\d{4})","$1-$2-$3",["2(?:[34]7|[56]9|74|9[14-79])|82|993"]],["(\\\\d)(\\\\d{4})(\\\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[2479][1-9]"]]],"0","0$1"],"KE":["254","20\\\\d{6,7}|[4-9]\\\\d{6,9}",[["(\\\\d{2})(\\\\d{5,7})","$1 $2",["[24-6]"]],["(\\\\d{3})(\\\\d{6})","$1 $2",["7"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[89]"]]],"0","0$1","005|0"],"KG":["996","[235-8]\\\\d{8,9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[25-7]|31[25]"]],["(\\\\d{4})(\\\\d{5})","$1 $2",["3(?:1[36]|[2-9])"]],["(\\\\d{3})(\\\\d{3})(\\\\d)(\\\\d{3})","$1 $2 $3 $4",["8"]]],"0","0$1"],"KH":["855","[1-9]\\\\d{7,9}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["1\\\\d[1-9]|[2-9]"],"0$1"],["(1[89]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[89]0","1[89]00"]]],"0"],"KI":["686","[2458]\\\\d{4}|3\\\\d{4,7}|[67]\\\\d{7}",[],null,null,"0"],"KM":["269","[3478]\\\\d{6}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"KN":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"869"],"KP":["850","1\\\\d{9}|[28]\\\\d{7}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]],["(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8"]]],"0","0$1"],"KR":["82","00(?:3\\\\d{8,9}|7\\\\d{9,11})|[1-7]\\\\d{4,9}|8\\\\d{8}",[["(\\\\d{2})(\\\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"]],["(\\\\d{4})(\\\\d{4})","$1-$2",["1(?:5[246-9]|6[046-8]|8[03579])","1(?:5(?:22|44|66|77|88|99)|6(?:[07]0|44|6[16]|88)|8(?:00|33|55|77|99))"],"$1"],["(\\\\d{5})","$1",["1[016-9]1","1[016-9]11","1[016-9]114"]],["(\\\\d)(\\\\d{3,4})(\\\\d{4})","$1-$2-$3",["2[1-9]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["60[2-9]|80"]],["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1-$2-$3",["1[0-25-9]|(?:3[1-3]|[46][1-4]|5[1-5])[1-9]"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1-$2-$3",["[57]0"]]],"0","0$1","0(8[1-46-8]|85\\\\d{2})?"],"KW":["965","[12569]\\\\d{6,7}",[["(\\\\d{4})(\\\\d{3,4})","$1 $2",["[16]|2(?:[0-35-9]|4[0-35-9])|52[25]|9[024-9]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["244|5(?:[015]|6[56])"]]]],"KY":["1","[3589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"345"],"KZ":["7","(?:33\\\\d|7\\\\d{2}|80[089])\\\\d{7}",[["([3489]\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["[3489]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"8",null,null,null,null,null,["33622\\\\d{5}|7(?:1(?:0(?:[23]\\\\d|4[0-3]|59|63)|1(?:[23]\\\\d|4[0-79]|59)|2(?:[23]\\\\d|59)|3(?:2\\\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\\\d|3[013-9]|5[1-9])|5(?:2\\\\d|3[1-9]|4[0-7]|59)|6(?:[234]\\\\d|5[19]|61)|72\\\\d|8(?:[27]\\\\d|3[1-46-9]|4[0-5]))|2(?:1(?:[23]\\\\d|4[46-9]|5[3469])|2(?:2\\\\d|3[0679]|46|5[12679])|3(?:[234]\\\\d|5[139])|4(?:2\\\\d|3[1235-9]|59)|5(?:[23]\\\\d|4[01246-8]|59|61)|6(?:2\\\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\\\d|40|5[279])|8(?:[23]\\\\d|4[0-3]|59)|9(?:2\\\\d|3[124578]|59)))\\\\d{5}","7(?:0[012578]|47|6[02-4]|7[15-8]|85)\\\\d{7}","800\\\\d{7}","809\\\\d{7}","808\\\\d{7}",null,null,null,"751\\\\d{7}"]],"LA":["856","[2-8]\\\\d{7,9}",[["(20)(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["20"]],["([2-8]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"]],["(30)(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["30"]]],"0","0$1"],"LB":["961","[13-9]\\\\d{6,7}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["([7-9]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7(?:[01]|6[013-9]|8[89]|9[1-3])|[89][01]"]]],"0"],"LC":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"758"],"LI":["423","6\\\\d{8}|[23789]\\\\d{6}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["[237-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6[56]"]],["(69)(7\\\\d{2})(\\\\d{4})","$1 $2 $3",["697"]]],"0",null,"0|10(?:01|20|66)"],"LK":["94","[1-9]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[1-689]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"0","0$1"],"LR":["231","2\\\\d{7,8}|[378]\\\\d{8}|4\\\\d{6}|5\\\\d{6,8}",[["(2\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2"]],["([4-5])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[45]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[23578]"]]],"0","0$1"],"LS":["266","[2568]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"LT":["370","[3-9]\\\\d{7}",[["([34]\\\\d)(\\\\d{6})","$1 $2",["37|4(?:1|5[45]|6[2-4])"]],["([3-6]\\\\d{2})(\\\\d{5})","$1 $2",["3[148]|4(?:[24]|6[09])|528|6"]],["([7-9]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[7-9]"],"8 $1"],["(5)(2\\\\d{2})(\\\\d{4})","$1 $2 $3",["52[0-79]"]]],"8","(8-$1)","[08]",null,true],"LU":["352","[24-9]\\\\d{3,10}|3(?:[0-46-9]\\\\d{2,9}|5[013-9]\\\\d{1,8})",[["(\\\\d{2})(\\\\d{3})","$1 $2",["[2-5]|7[1-9]|[89](?:0[2-9]|[1-9])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["[2-5]|7[1-9]|[89](?:0[2-9]|[1-9])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["20"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["20"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,4})","$1 $2 $3 $4",["2(?:[12589]|4[12])|[3-5]|7[1-9]|8(?:0[2-9]|[1-9])|9(?:0[2-46-9]|[1-9])"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["70|80[01]|90[015]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6"]]],null,null,"(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\\\\d)"],"LV":["371","[2689]\\\\d{7}",[["([2689]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2689]"]]]],"LY":["218","[25679]\\\\d{8}",[["([25-79]\\\\d)(\\\\d{7})","$1-$2",["[25-79]"]]],"0","0$1"],"MA":["212","[5-9]\\\\d{8}",[["([5-7]\\\\d{2})(\\\\d{6})","$1-$2",["5(?:2[015-7]|3[0-4])|[67]"]],["([58]\\\\d{3})(\\\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|92)|892","5(?:2(?:[2-48]|9[0-7])|3(?:[5-79]|8[0-7])|924)|892"]],["(5\\\\d{4})(\\\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]"]],["([5]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5(?:4[067]|5[03])"]],["(8[09])(\\\\d{7})","$1-$2",["8(?:0|9[013-9])"]]],"0","0$1",null,null,null,null,["5(?:2(?:[015-79]\\\\d|2[02-9]|3[2-57]|4[2-8]|8[235-7])\\\\d|3(?:[0-48]\\\\d|[57][2-9]|6[2-8]|9[3-9])\\\\d|4[067]\\\\d{2}|5[03]\\\\d{2})\\\\d{4}","(?:6(?:[0-79]\\\\d|8[0-247-9])|7(?:0[067]|6[1267]|7[07]))\\\\d{6}","80\\\\d{7}","89\\\\d{7}",null,null,null,null,"5924[01]\\\\d{4}"]],"MC":["377","[34689]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[39]"],"$1"],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["4"]],["(6)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["6"]],["(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1 $2 $3",["8"],"$1"]],"0","0$1"],"MD":["373","[235-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["22|3"]],["([25-7]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["2[13-9]|[5-7]"]],["([89]\\\\d{2})(\\\\d{5})","$1 $2",["[89]"]]],"0","0$1"],"ME":["382","[2-9]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-57-9]|6[036-9]"]]],"0","0$1"],"MF":["590","[56]\\\\d{8}",[["([56]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["590|69[01]"]]],"0",null,null,null,null,null,["590(?:0[079]|13|2[79]|30|43|5[0-268]|7[79]|87)\\\\d{4}","69(?:0\\\\d{2}|1(?:2[29]|3[0-5]))\\\\d{4}"]],"MG":["261","[23]\\\\d{8}",[["([23]\\\\d)(\\\\d{2})(\\\\d{3})(\\\\d{2})","$1 $2 $3 $4",["[23]"]]],"0","0$1"],"MH":["692","[2-6]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1-$2"]],"1"],"MK":["389","[2-578]\\\\d{7}",[["(2)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"]],["([347]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[347]"]],["([58]\\\\d{2})(\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[58]"]]],"0","0$1"],"ML":["223","[246-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[246-9]"]]]],"MM":["95","[178]\\\\d{5,7}|[24-6]\\\\d{5,8}|9(?:[279]\\\\d{0,2}|5|[34]\\\\d{1,2}|6(?:\\\\d{1,2})?|8(?:\\\\d{2})?)\\\\d{6}",[["(\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["1|2[245]"]],["(2)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["251"]],["(\\\\d)(\\\\d{2})(\\\\d{3})","$1 $2 $3",["16|2"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["432|67|81"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3,4})","$1 $2 $3",["[4-8]"]],["(9)(\\\\d{3})(\\\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"]],["(9)([34]\\\\d{4})(\\\\d{4})","$1 $2 $3",["9(?:3[0-36]|4[0-57-9])"]],["(9)(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["92[56]"]],["(9)(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1 $2 $3 $4",["93"]]],"0","0$1"],"MN":["976","[12]\\\\d{7,9}|[57-9]\\\\d{7}",[["([12]\\\\d)(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[12]1"]],["([12]2\\\\d)(\\\\d{5,6})","$1 $2",["[12]2[1-3]"]],["([12]\\\\d{3})(\\\\d{5})","$1 $2",["[12](?:27|[3-5])","[12](?:27|[3-5]\\\\d)2"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["[57-9]"],"$1"],["([12]\\\\d{4})(\\\\d{4,5})","$1 $2",["[12](?:27|[3-5])","[12](?:27|[3-5]\\\\d)[4-9]"]]],"0","0$1"],"MO":["853","[268]\\\\d{7}",[["([268]\\\\d{3})(\\\\d{4})","$1 $2",["[268]"]]]],"MP":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"670"],"MQ":["596","[56]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]],"0","0$1"],"MR":["222","[2-48]\\\\d{7}",[["([2-48]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],"MS":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"664"],"MT":["356","[2357-9]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"MU":["230","[2-9]\\\\d{6,7}",[["([2-46-9]\\\\d{2})(\\\\d{4})","$1 $2",["[2-46-9]"]],["(5\\\\d{3})(\\\\d{4})","$1 $2",["5"]]]],"MV":["960","[346-8]\\\\d{6,9}|9(?:00\\\\d{7}|\\\\d{6})",[["(\\\\d{3})(\\\\d{4})","$1-$2",["[3467]|9(?:0[1-9]|[1-9])"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[89]00"]]]],"MW":["265","(?:1(?:\\\\d{2})?|[2789]\\\\d{2})\\\\d{6}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1"]],["(2\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[17-9]"]]],"0","0$1"],"MX":["52","[1-9]\\\\d{9,10}",[["([358]\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["33|55|81"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2467]|3[0-2457-9]|5[089]|8[02-9]|9[0-35-9]"]],["(1)([358]\\\\d)(\\\\d{4})(\\\\d{4})","044 $2 $3 $4",["1(?:33|55|81)"],"$1",null,"$1 $2 $3 $4"],["(1)(\\\\d{3})(\\\\d{3})(\\\\d{4})","044 $2 $3 $4",["1(?:[2467]|3[0-2457-9]|5[089]|8[2-9]|9[1-35-9])"],"$1",null,"$1 $2 $3 $4"]],"01","01 $1","0[12]|04[45](\\\\d{10})","1$1",true],"MY":["60","[13-9]\\\\d{7,9}",[["([4-79])(\\\\d{3})(\\\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(3)(\\\\d{4})(\\\\d{4})","$1-$2 $3",["3"],"0$1"],["([18]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1-$2 $3",["1[02-46-9][1-9]|8"],"0$1"],["(1)([36-8]00)(\\\\d{2})(\\\\d{4})","$1-$2-$3-$4",["1[36-8]0","1[36-8]00"]],["(11)(\\\\d{4})(\\\\d{4})","$1-$2 $3",["11"],"0$1"],["(15[49])(\\\\d{3})(\\\\d{4})","$1-$2 $3",["15[49]"],"0$1"]],"0"],"MZ":["258","[28]\\\\d{7,8}",[["([28]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2|8[2-7]"]],["(80\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["80"]]]],"NA":["264","[68]\\\\d{7,8}",[["(8\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8[1-35]"]],["(6\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["6"]],["(88)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["88"]],["(870)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["870"]]],"0","0$1"],"NC":["687","[2-57-9]\\\\d{5}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1.$2.$3",["[2-46-9]|5[0-4]"]]]],"NE":["227","[0289]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["09|[289]"]],["(08)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["08"]]]],"NF":["672","[13]\\\\d{5}",[["(\\\\d{2})(\\\\d{4})","$1 $2",["1"]],["(\\\\d)(\\\\d{5})","$1 $2",["3"]]]],"NG":["234","[1-6]\\\\d{5,8}|9\\\\d{5,9}|[78]\\\\d{5,13}",[["(\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2,3})","$1 $2 $3",["[3-6]|7(?:0[1-9]|[1-79])|8[2-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["70|8[01]|90[235-9]"]],["([78]00)(\\\\d{4})(\\\\d{4,5})","$1 $2 $3",["[78]00"]],["([78]00)(\\\\d{5})(\\\\d{5,6})","$1 $2 $3",["[78]00"]],["(78)(\\\\d{2})(\\\\d{3})","$1 $2 $3",["78"]]],"0","0$1"],"NI":["505","[125-8]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"NL":["31","1\\\\d{4,8}|[2-7]\\\\d{8}|[89]\\\\d{6,9}",[["([1-578]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[035]|2[0346]|3[03568]|4[0356]|5[0358]|7|8[4578]"]],["([1-5]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"]],["(6)(\\\\d{8})","$1 $2",["6[0-57-9]"]],["(66)(\\\\d{7})","$1 $2",["66"]],["(14)(\\\\d{3,4})","$1 $2",["14"],"$1"],["([89]0\\\\d)(\\\\d{4,7})","$1 $2",["[89]0"]]],"0","0$1"],"NO":["47","0\\\\d{4}|[2-9]\\\\d{7}",[["([489]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[489]"]],["([235-7]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[235-7]"]]],null,null,null,null,null,null,["(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\\\d{6}","(?:4[015-8]|5[89]|87|9\\\\d)\\\\d{6}","80[01]\\\\d{5}","82[09]\\\\d{5}","880\\\\d{5}",null,"0\\\\d{4}|81(?:0(?:0[7-9]|1\\\\d)|5\\\\d{2})\\\\d{3}",null,"85[0-5]\\\\d{5}","810(?:0[0-6]|[2-8]\\\\d)\\\\d{3}"]],"NP":["977","[1-8]\\\\d{7}|9(?:[1-69]\\\\d{6,8}|7[2-6]\\\\d{5,7}|8\\\\d{8})",[["(1)(\\\\d{7})","$1-$2",["1[2-6]"]],["(\\\\d{2})(\\\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-69]|7[15-9])"]],["(9\\\\d{2})(\\\\d{7})","$1-$2",["9(?:6[013]|7[245]|8)"],"$1"]],"0","0$1"],"NR":["674","[458]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"NU":["683","[1-5]\\\\d{3}"],"NZ":["64","6[235-9]\\\\d{6}|[2-57-9]\\\\d{7,9}",[["(\\\\d)(\\\\d{3})(\\\\d{4})","$1-$2 $3",["240|[346]|7[2-57-9]|9[1-9]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["21"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,5})","$1 $2 $3",["2(?:1[1-9]|[69]|7[0-35-9])|70|86"]],["(2\\\\d)(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["2[028]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["90"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2(?:10|74)|5|[89]0"]]],"0","0$1"],"OM":["968","(?:5|[279]\\\\d)\\\\d{6}|800\\\\d{5,6}",[["(2\\\\d)(\\\\d{6})","$1 $2",["2"]],["([79]\\\\d{3})(\\\\d{4})","$1 $2",["[79]"]],["([58]00)(\\\\d{4,6})","$1 $2",["[58]00"]]]],"PA":["507","[1-9]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1-$2",["[1-57-9]"]],["(\\\\d{4})(\\\\d{4})","$1-$2",["6"]]]],"PE":["51","[14-9]\\\\d{7,8}",[["(1)(\\\\d{7})","$1 $2",["1"]],["([4-8]\\\\d)(\\\\d{6})","$1 $2",["[4-7]|8[2-4]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["80"]],["(9\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9"],"$1"]],"0","(0$1)"],"PF":["689","4\\\\d{5,7}|8\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["4[09]|8[79]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["44"]]]],"PG":["675","[1-9]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[13-689]|27"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["20|7"]]]],"PH":["63","1\\\\d{10,12}|2\\\\d{5,7}|[3-7]\\\\d{8}|8\\\\d{7,9}|9\\\\d{9}",[["(2)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(2)(\\\\d{5})","$1 $2",["2"],"(0$1)"],["(\\\\d{4})(\\\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|5(?:22|44)|642|8(?:62|8[245])","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\\\d{5})(\\\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["([3-8]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[3-8]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["81|9"],"0$1"],["(1800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["180","1800"]],["(1800)(\\\\d{1,2})(\\\\d{3})(\\\\d{4})","$1 $2 $3 $4",["180","1800"]]],"0"],"PK":["92","1\\\\d{8}|[2-8]\\\\d{5,11}|9(?:[013-9]\\\\d{4,10}|2\\\\d(?:111\\\\d{6}|\\\\d{3,7}))",[["([89]00)(\\\\d{3})(\\\\d{2})","$1 $2 $3",["[89]00"],"0$1"],["(1\\\\d{3})(\\\\d{5})","$1 $2",["1"],"$1"],["(\\\\d{2})(\\\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"]],["(\\\\d{3})(\\\\d{6,7})","$1 $2",["2[349]|45|54|60|72|8[2-5]|9[2-469]","(?:2[349]|45|54|60|72|8[2-5]|9[2-469])\\\\d[2-9]"]],["(58\\\\d{3})(\\\\d{5})","$1 $2",["58[126]"]],["(3\\\\d{2})(\\\\d{7})","$1 $2",["3"],"0$1"],["(\\\\d{2})(111)(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)1","(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)11","(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)111"]],["(\\\\d{3})(111)(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["2[349]|45|54|60|72|8[2-5]|9[2-9]","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\\\d1","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\\\d11","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\\\d111"]]],"0","(0$1)"],"PL":["48","[1-57-9]\\\\d{6,8}|6\\\\d{5,8}",[["(\\\\d{3})(\\\\d{3})","$1 $2",["11[68]|64"]],["(\\\\d{5})","$1",["19"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["64"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["26|39|45|5[0137]|6[0469]|7[02389]|8[08]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[14]|2[0-57-9]|3[2-4]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145]"]]]],"PM":["508","[45]\\\\d{5}",[["([45]\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["[45]"]]],"0","0$1"],"PR":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"787|939"],"PS":["970","1\\\\d{9}|[24589]\\\\d{7,8}",[["([2489])(2\\\\d{2})(\\\\d{4})","$1 $2 $3",["[2489]2"]],["(5[69]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["5[69]"]],["(1[78]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[78]0","1[78]00"],"$1"]],"0","0$1"],"PT":["351","[2-46-9]\\\\d{8}",[["(2\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2[12]"]],["([2-46-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2[3-9]|[346-9]"]]]],"PW":["680","[2-8]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"PY":["595","5[0-5]\\\\d{4,7}|[2-46-9]\\\\d{5,8}",[["(\\\\d{2})(\\\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\\\d{3})(\\\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\\\d{3})(\\\\d{6})","$1 $2",["9[1-9]"],"0$1"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["870","8700"]],["(\\\\d{3})(\\\\d{4,5})","$1 $2",["[2-8][1-9]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-8][1-9]"],"0$1"]],"0"],"QA":["974","[2-8]\\\\d{6,7}",[["([28]\\\\d{2})(\\\\d{4})","$1 $2",["[28]"]],["([3-7]\\\\d{3})(\\\\d{4})","$1 $2",["[3-7]"]]]],"RE":["262","[268]\\\\d{8}",[["([268]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[268]"]]],"0","0$1",null,null,null,"262|69|8"],"RO":["40","[23]\\\\d{5,8}|[7-9]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[23]1"]],["(\\\\d{2})(\\\\d{4})","$1 $2",["[23]1"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[23][3-7]|[7-9]"]],["(2\\\\d{2})(\\\\d{3})","$1 $2",["2[3-6]"]]],"0","0$1"],"RS":["381","[126-9]\\\\d{4,11}|3(?:[0-79]\\\\d{3,10}|8[2-9]\\\\d{2,9})",[["([23]\\\\d{2})(\\\\d{4,9})","$1 $2",["(?:2[389]|39)0"]],["([1-3]\\\\d)(\\\\d{5,10})","$1 $2",["1|2(?:[0-24-7]|[389][1-9])|3(?:[0-8]|9[1-9])"]],["(6\\\\d)(\\\\d{6,8})","$1 $2",["6"]],["([89]\\\\d{2})(\\\\d{3,9})","$1 $2",["[89]"]],["(7[26])(\\\\d{4,9})","$1 $2",["7[26]"]],["(7[08]\\\\d)(\\\\d{4,9})","$1 $2",["7[08]"]]],"0","0$1"],"RU":["7","[347-9]\\\\d{9}",[["([3489]\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["[3489]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"8","8 ($1)",null,null,true,null,["(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15]|6[1-35-79]|7[1-37-9]))\\\\d{7}","9\\\\d{9}","80[04]\\\\d{7}","80[39]\\\\d{7}","808\\\\d{7}"]],"RW":["250","[027-9]\\\\d{7,8}",[["(2\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2"]],["([7-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(0\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["0"]]],"0"],"SA":["966","1\\\\d{7,8}|(?:[2-467]|92)\\\\d{7}|5\\\\d{8}|8\\\\d{9}",[["([1-467])(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1-467]"]],["(1\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[1-467]"]],["(5\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["5"]],["(92\\\\d{2})(\\\\d{5})","$1 $2",["92"],"$1"],["(800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["800"],"$1"],["(811)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["811"]]],"0","0$1"],"SB":["677","[1-9]\\\\d{4,6}",[["(\\\\d{2})(\\\\d{5})","$1 $2",["[7-9]"]]]],"SC":["248","[24689]\\\\d{5,6}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[246]"]]]],"SD":["249","[19]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3"]],"0","0$1"],"SE":["46","[1-35-9]\\\\d{5,11}|4\\\\d{6,8}",[["(8)(\\\\d{2,3})(\\\\d{2,3})(\\\\d{2})","$1-$2 $3 $4",["8"],null,null,"$1 $2 $3 $4"],["([1-69]\\\\d)(\\\\d{2,3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["1[013689]|2[0136]|3[1356]|4[0246]|54|6[03]|90"],null,null,"$1 $2 $3 $4"],["([1-469]\\\\d)(\\\\d{3})(\\\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90"],null,null,"$1 $2 $3"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[0-5]|4[0-3])"],null,null,"$1 $2 $3 $4"],["(\\\\d{3})(\\\\d{2,3})(\\\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[0-5]|4[0-3])"],null,null,"$1 $2 $3"],["(7\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["7"],null,null,"$1 $2 $3 $4"],["(77)(\\\\d{2})(\\\\d{2})","$1-$2$3",["77"],null,null,"$1 $2 $3"],["(20)(\\\\d{2,3})(\\\\d{2})","$1-$2 $3",["20"],null,null,"$1 $2 $3"],["(9[034]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1-$2 $3 $4",["9[034]"],null,null,"$1 $2 $3 $4"],["(9[034]\\\\d)(\\\\d{4})","$1-$2",["9[034]"],null,null,"$1 $2"],["(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4 $5",["25[245]|67[3-6]"],null,null,"$1 $2 $3 $4 $5"]],"0","0$1"],"SG":["65","[36]\\\\d{7}|[17-9]\\\\d{7,10}",[["([3689]\\\\d{3})(\\\\d{4})","$1 $2",["[369]|8[1-9]"]],["(1[89]00)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[89]0","1[89]00"]],["(7000)(\\\\d{4})(\\\\d{3})","$1 $2 $3",["700","7000"]],["(800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["800"]]]],"SH":["290","[256]\\\\d{4}|8\\\\d{3}",[],null,null,null,null,null,null,["2(?:[0-57-9]\\\\d|6[4-9])\\\\d{2}","[56]\\\\d{4}",null,null,null,null,null,null,"262\\\\d{2}"]],"SI":["386","[1-7]\\\\d{6,7}|[89]\\\\d{4,7}",[["(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[12]|[34][24-8]|5[2-8]|7[3-8]"],"(0$1)"],["([3-7]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"]],["([89][09])(\\\\d{3,6})","$1 $2",["[89][09]"]],["([58]\\\\d{2})(\\\\d{5})","$1 $2",["59|8[1-3]"]]],"0","0$1"],"SJ":["47","0\\\\d{4}|[45789]\\\\d{7}",[["([489]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[489]"]],["([235-7]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[235-7]"]]],null,null,null,null,null,null,["79\\\\d{6}","(?:4[015-8]|5[89]|9\\\\d)\\\\d{6}","80[01]\\\\d{5}","82[09]\\\\d{5}","880\\\\d{5}",null,"0\\\\d{4}|81(?:0(?:0[7-9]|1\\\\d)|5\\\\d{2})\\\\d{3}",null,"85[0-5]\\\\d{5}","810(?:0[0-6]|[2-8]\\\\d)\\\\d{3}"]],"SK":["421","(?:[2-68]\\\\d{5,8}|9\\\\d{6,8})",[["(2)(1[67])(\\\\d{3,4})","$1 $2 $3",["21[67]"]],["([3-5]\\\\d)(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["[3-5]"]],["(2)(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1/$2 $3 $4",["2"]],["([3-5]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1/$2 $3 $4",["[3-5]"]],["([689]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[689]"]],["(9090)(\\\\d{3})","$1 $2",["909","9090"]]],"0","0$1"],"SL":["232","[2-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{6})","$1 $2"]],"0","(0$1)"],"SM":["378","[05-7]\\\\d{7,9}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(0549)(\\\\d{6})","$1 $2",["054","0549"],null,null,"($1) $2"],["(\\\\d{6})","0549 $1",["[89]"],null,null,"(0549) $1"]],null,null,"([89]\\\\d{5})","0549$1"],"SN":["221","[3789]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[379]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["8"]]]],"SO":["252","[1-9]\\\\d{5,8}",[["(\\\\d{6})","$1",["[134]"]],["(\\\\d)(\\\\d{6})","$1 $2",["[13-5]|2[0-79]"]],["(\\\\d)(\\\\d{7})","$1 $2",["24|[67]"]],["(\\\\d{2})(\\\\d{4})","$1 $2",["8[125]"]],["(\\\\d{2})(\\\\d{5,7})","$1 $2",["15|28|6[1-35-9]|799|9[2-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["3[59]|4[89]|6[24-6]|79|8[08]|90"]]],"0"],"SR":["597","[2-8]\\\\d{5,6}",[["(\\\\d{3})(\\\\d{3})","$1-$2",["[2-4]|5[2-58]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1-$2-$3",["56"]],["(\\\\d{3})(\\\\d{4})","$1-$2",["[6-8]"]]]],"SS":["211","[19]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",null,"0$1"]],"0"],"ST":["239","[29]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"SV":["503","[267]\\\\d{7}|[89]\\\\d{6}(?:\\\\d{4})?",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[267]"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["[89]"]],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[89]"]]]],"SX":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"721"],"SY":["963","[1-59]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[1-5]"]],["(9\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9"]]],"0","0$1",null,null,true],"SZ":["268","[027]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[027]"]]]],"TA":["290","8\\\\d{3}",[],null,null,null,null,null,null,["8\\\\d{3}"]],"TC":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"649"],"TD":["235","[2679]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"TG":["228","[279]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[279]"]]]],"TH":["66","1\\\\d{8,9}|[2-9]\\\\d{7,8}",[["(2)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"]],["([13-9]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["14|[3-9]"]],["(1[89]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[89]0","1[89]00"],"$1"]],"0","0$1"],"TJ":["992","[3-57-9]\\\\d{8}",[["([349]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[34]7|91[78]"]],["([457-9]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["4[148]|[578]|9(?:[0235-9]|1[59])"]],["(331700)(\\\\d)(\\\\d{2})","$1 $2 $3",["331","3317","33170","331700"]],["(\\\\d{4})(\\\\d)(\\\\d{4})","$1 $2 $3",["3[1-5]","3(?:[1245]|3(?:[02-9]|1[0-589]))"]]],"8",null,null,null,true],"TK":["690","[2-47]\\\\d{3,6}"],"TL":["670","[2-489]\\\\d{6}|7\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[2-489]|70"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["7[3-8]"]]]],"TM":["993","[1-6]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["12"]],["(\\\\d{2})(\\\\d{6})","$1 $2",["6"],"8 $1"],["(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["13|[2-5]"]]],"8","(8 $1)"],"TN":["216","[2-57-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3"]]],"TO":["676","[02-8]\\\\d{4,6}",[["(\\\\d{2})(\\\\d{3})","$1-$2",["[1-6]|7[0-4]|8[05]"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["7[5-9]|8[47-9]"]],["(\\\\d{4})(\\\\d{3})","$1 $2",["0"]]]],"TR":["90","[2-589]\\\\d{9}|444\\\\d{4}",[["(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[23]|4(?:[0-35-9]|4[0-35-9])"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5[02-69]"],"0$1"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["51|[89]"],"0$1"],["(444)(\\\\d{1})(\\\\d{3})","$1 $2 $3",["444"]]],"0",null,null,null,true],"TT":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"868"],"TV":["688","[279]\\\\d{4,6}"],"TW":["886","2\\\\d{6,8}|[3-689]\\\\d{7,8}|7\\\\d{7,9}",[["(20)(\\\\d)(\\\\d{4})","$1 $2 $3",["202"]],["([258]0)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["20[013-9]|50[0-46-9]|80[0-79]"]],["([2-8])(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["[25][2-8]|[346]|[78][1-9]"]],["(9\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9"]],["(70)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["70"]]],"0","0$1"],"TZ":["255","\\\\d{9}",[["([24]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[24]"]],["([67]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[67]"]],["([89]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[89]"]]],"0","0$1"],"UA":["380","[3-9]\\\\d{8}",[["([3-9]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[38]9|4(?:[45][0-5]|87)|5(?:0|[67][37])|6[36-8]|7|9[1-9]","[38]9|4(?:[45][0-5]|87)|5(?:0|6(?:3[14-7]|7)|7[37])|6[36-8]|7|9[1-9]"]],["([3-689]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["(?:3[1-8]|4[136-8])2|5(?:[12457]2|6[24])|6(?:[12][29]|[49]2|5[24])|8[0-8]|90","3(?:[1-46-8]2[013-9]|52)|4(?:[1378]2|62[013-9])|5(?:[12457]2|6[24])|6(?:[12][29]|[49]2|5[24])|8[0-8]|90"]],["([3-6]\\\\d{3})(\\\\d{5})","$1 $2",["3(?:[1-46-8]|5[013-9])|4(?:[137][013-9]|[45][6-9]|6|8[4-6])|5(?:[1245][013-9]|3|6[0135689]|7[4-6])|6(?:[12][13-8]|[49][013-9]|5[0135-9])","3(?:[1-46-8](?:[013-9]|22)|5[013-9])|4(?:[137][013-9]|[45][6-9]|6(?:[013-9]|22)|8[4-6])|5(?:[1245][013-9]|3|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][13-8]|[49][013-9]|5[0135-9])"]]],"0","0$1"],"UG":["256","\\\\d{9}",[["(\\\\d{3})(\\\\d{6})","$1 $2",["20[0-8]|4(?:6[45]|[7-9])|[7-9]","20(?:[013-8]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"]],["(\\\\d{2})(\\\\d{7})","$1 $2",["3|4(?:[1-5]|6[0-36-9])"]],["(2024)(\\\\d{5})","$1 $2",["202","2024"]]],"0","0$1"],"US":["1","[2-9]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,true,null,["(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[026]|8[13])|3(?:0[1-57-9]|1[02-9]|2[0135]|3[0-24679]|4[67]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[0235]|58|6[39]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[013-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[16]|5[017]|6[0-279]|78|8[012])|7(?:0[1-46-8]|1[02-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|28|3[0-258]|4[3578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[014678]|4[0179]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\\\d{6}",null,"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}","900[2-9]\\\\d{6}","5(?:(?:00|22|33|44|66|77|88)[2-9]|21[23])\\\\d{6}"]],"UY":["598","[2489]\\\\d{6,7}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[24]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9[1-9]"],"0$1"],["(\\\\d{3})(\\\\d{4})","$1 $2",["[89]0"],"0$1"]],"0"],"UZ":["998","[679]\\\\d{8}",[["([679]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[679]"]]],"8","8 $1"],"VA":["39","(?:0(?:878\\\\d{5}|6698\\\\d{5})|[1589]\\\\d{5,10}|3(?:[12457-9]\\\\d{8}|[36]\\\\d{7,9}))",[["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[26]|55"]],["(0[26])(\\\\d{4})(\\\\d{5})","$1 $2 $3",["0[26]"]],["(0[26])(\\\\d{4,6})","$1 $2",["0[26]"]],["(0\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[13-57-9][0159]"]],["(\\\\d{3})(\\\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]],["(0\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["0[13-57-9][2-46-8]"]],["(0\\\\d{3})(\\\\d{2,6})","$1 $2",["0[13-57-9][2-46-8]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[13]|8(?:00|4[08]|9[59])","[13]|8(?:00|4[08]|9(?:5[5-9]|9))"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["894","894[5-9]"]],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["3"]]],null,null,null,null,null,null,["06698\\\\d{5}","3(?:[12457-9]\\\\d{8}|6\\\\d{7,8}|3\\\\d{7,9})","80(?:0\\\\d{6}|3\\\\d{3})","0878\\\\d{5}|1(?:44|6[346])\\\\d{6}|89(?:2\\\\d{3}|4(?:[0-4]\\\\d{2}|[5-9]\\\\d{4})|5(?:[0-4]\\\\d{2}|[5-9]\\\\d{6})|9\\\\d{6})","1(?:78\\\\d|99)\\\\d{6}",null,null,null,"55\\\\d{8}","84(?:[08]\\\\d{6}|[17]\\\\d{3})"]],"VC":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"784"],"VE":["58","[24589]\\\\d{9}",[["(\\\\d{3})(\\\\d{7})","$1-$2"]],"0","0$1"],"VG":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"284"],"VI":["1","[3589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"340"],"VN":["84","1\\\\d{6,9}|2\\\\d{9}|6\\\\d{6,7}|7\\\\d{6}|8\\\\d{6,8}|9\\\\d{8}",[["([17]99)(\\\\d{4})","$1 $2",["[17]99"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2[48]"]],["(80)(\\\\d{5})","$1 $2",["80"]],["(69\\\\d)(\\\\d{4,5})","$1 $2",["69"]],["(\\\\d{3})(\\\\d{4})(\\\\d{3})","$1 $2 $3",["2[0-35-79]"]],["([89]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["8(?:8|9[89])|9"]],["(1[2689]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[26]|8[68]|99)"]],["(86[89])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["86[89]"]],["(1[89]00)(\\\\d{4,6})","$1 $2",["1[89]0","1[89]00"],"$1"]],"0","0$1",null,null,true],"VU":["678","[2-57-9]\\\\d{4,6}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[579]"]]]],"WF":["681","[4-8]\\\\d{5}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"WS":["685","[2-8]\\\\d{4,6}",[["(8\\\\d{2})(\\\\d{3,4})","$1 $2",["8"]],["(7\\\\d)(\\\\d{5})","$1 $2",["7"]],["(\\\\d{5})","$1",["[2-6]"]]]],"YE":["967","[1-7]\\\\d{6,8}",[["([1-7])(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7[0137]"]]],"0","0$1"],"YT":["262","[268]\\\\d{8}",[["([268]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[268]"]]],"0",null,null,null,null,"269|63"],"ZA":["27","[1-79]\\\\d{8}|8\\\\d{4,8}",[["(860)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["860"]],["(\\\\d{2})(\\\\d{3,4})","$1 $2",["8[1-4]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2,3})","$1 $2 $3",["8[1-4]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1-79]|8(?:[0-57]|6[1-9])"]]],"0","0$1"],"ZM":["260","[289]\\\\d{8}",[["(\\\\d{2})(\\\\d{4})","$1 $2",null,"$1"],["([1-8])(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[1-8]"],"$1"],["([29]\\\\d)(\\\\d{7})","$1 $2",["[29]"]],["(800)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["800"]]],"0","0$1"],"ZW":["263","2(?:[0-57-9]\\\\d{3,8}|6(?:[14]\\\\d{7}|\\\\d{4}))|[13-69]\\\\d{4,9}|7\\\\d{8}|8[06]\\\\d{5,8}",[["([49])(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["4|9[2-9]"]],["(7\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]],["(86\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["86[24]"]],["([2356]\\\\d{2})(\\\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8|[78])|3(?:[09]8|17|3[78]|7[1569]|8[37])|5[15][78]|6(?:[29]8|37|[68][78]|75)"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|31|[56][14]|7[35]|84)|329"]],["([1-356]\\\\d)(\\\\d{3,5})","$1 $2",["1[3-9]|2[02569]|3[0-69]|5[05689]|6"]],["([235]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[23]9|54"]],["([25]\\\\d{3})(\\\\d{3,5})","$1 $2",["(?:25|54)8","258[23]|5483"]],["(8\\\\d{3})(\\\\d{6})","$1 $2",["86"]],["(80\\\\d)(\\\\d{4})","$1 $2",["80"]]],"0","0$1"],"001":["979","\\\\d{9}",[["(\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3"]]]}}')},YLEk:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("JIED")),r(n("OSYy"))},Ylt2:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("quSY");class i extends r.a{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},YqAc:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},ZF92:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.minDate=function(e){if(!(i.isDate(e)||e instanceof Function))throw Error("minDate value must be or return a formatted date");return function(t){if(i.isPresent(r.Validators.required(t)))return null;var n=new Date(t.value);return i.isDate(n)?(e instanceof Function&&(e=e()),n>=new Date(e)?null:{minDate:!0}):{minDate:!0}}}},ZR4w:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.map=function(e,t){return r.map(e,t)(this)}},ZUHj:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("7o/Q");class i extends r.a{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var s=n("SeVD"),o=n("HDdC");function a(e,t,n,r,a=new i(e,n,r)){if(!a.closed)return t instanceof o.a?t.subscribe(a):Object(s.a)(t)(a)}},Zb1L:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("XQZo")),r(n("b2M7"))},a0xu:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},aP66:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("kU1M");t.timeout=function(e,t){return void 0===t&&(t=r.asyncScheduler),i.timeout(e,t)(this)}},afP1:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("WQkh")),r(n("48ZK"))},b2M7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.digits=function(e){return i.isPresent(r.Validators.required(e))||/^\d+$/.test(e.value)?null:{digits:!0}}},bBy9:function(e,t,n){n("w2d+");for(var r=n("5T2Y"),i=n("NegM"),s=n("SBuE"),o=n("UWiX")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l=u?e?"":void 0:(s=a.charCodeAt(l))<55296||s>56319||l+1===u||(o=a.charCodeAt(l+1))<56320||o>57343?e?a.charAt(l):s:e?a.slice(l,l+2):o-56320+(s-55296<<10)+65536}}},cp0P:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("HDdC"),i=n("DH7j"),s=n("lJxs"),o=n("XoHu"),a=n("Cfvw");function l(...e){if(1===e.length){const t=e[0];if(Object(i.a)(t))return u(t,null);if(Object(o.a)(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return u(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return u(e=1===e.length&&Object(i.a)(e[0])?e[0]:e,null).pipe(Object(s.a)(e=>t(...e)))}return u(e,null)}function u(e,t){return new r.a(n=>{const r=e.length;if(0===r)return void n.complete();const i=new Array(r);let s=0,o=0;for(let l=0;l{c||(c=!0,o++),i[l]=e},error:e=>n.error(e),complete:()=>{s++,s!==r&&c||(o===r&&n.next(t?t.reduce((e,t,n)=>(e[t]=i[n],e),{}):i),n.complete())}}))}})}},crnd:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},eIep:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("lJxs"),i=n("Cfvw"),s=n("zx2A");function o(e,t){return"function"==typeof t?n=>n.pipe(o((n,s)=>Object(i.a)(e(n,s)).pipe(Object(r.a)((e,r)=>t(n,e,s,r))))):t=>t.lift(new a(e))}class a{constructor(e){this.project=e}call(e,t){return t.subscribe(new l(e,this.project))}}class l extends s.b{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new s.a(this),r=this.destination;r.add(n),this.innerSubscription=Object(s.c)(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}},eUtF:function(e,t,n){e.exports=!n("jmDH")&&!n("KUxP")(function(){return 7!=Object.defineProperty(n("Hsns")("div"),"a",{get:function(){return 7}}).a})},eaoh:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},fElF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("aP66");r.Observable.prototype.timeout=i.timeout},fNZA:function(e,t,n){var r=n("QMMT"),i=n("UWiX")("iterator"),s=n("SBuE");e.exports=n("WEpk").getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||s[r(e)]}},fWoD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.lte=function(e){return function(t){return i.isPresent(e)?i.isPresent(r.Validators.required(t))||+t.value<=+e?null:{lte:!0}:null}}},fXoL:function(e,t,n){"use strict";n.r(t),n.d(t,"ANALYZE_FOR_ENTRY_COMPONENTS",function(){return kn}),n.d(t,"APP_BOOTSTRAP_LISTENER",function(){return Dv}),n.d(t,"APP_ID",function(){return jv}),n.d(t,"APP_INITIALIZER",function(){return kv}),n.d(t,"ApplicationInitStatus",function(){return Tv}),n.d(t,"ApplicationModule",function(){return wb}),n.d(t,"ApplicationRef",function(){return Py}),n.d(t,"Attribute",function(){return On}),n.d(t,"COMPILER_OPTIONS",function(){return ry}),n.d(t,"CUSTOM_ELEMENTS_SCHEMA",function(){return Ni}),n.d(t,"ChangeDetectionStrategy",function(){return P}),n.d(t,"ChangeDetectorRef",function(){return lp}),n.d(t,"Compiler",function(){return ny}),n.d(t,"CompilerFactory",function(){return iy}),n.d(t,"Component",function(){return fv}),n.d(t,"ComponentFactory",function(){return $h}),n.d(t,"ComponentFactoryResolver",function(){return Ih}),n.d(t,"ComponentRef",function(){return Ch}),n.d(t,"ContentChild",function(){return Vn}),n.d(t,"ContentChildren",function(){return jn}),n.d(t,"DEFAULT_CURRENCY_CODE",function(){return Bv}),n.d(t,"DebugElement",function(){return pb}),n.d(t,"DebugEventListener",function(){return zy}),n.d(t,"DebugNode",function(){return hb}),n.d(t,"DefaultIterableDiffer",function(){return Gh}),n.d(t,"Directive",function(){return pv}),n.d(t,"ElementRef",function(){return Nh}),n.d(t,"EmbeddedViewRef",function(){return Wy}),n.d(t,"ErrorHandler",function(){return Ai}),n.d(t,"EventEmitter",function(){return om}),n.d(t,"Host",function(){return sr}),n.d(t,"HostBinding",function(){return yv}),n.d(t,"HostListener",function(){return bv}),n.d(t,"INJECTOR",function(){return Jo}),n.d(t,"Inject",function(){return tr}),n.d(t,"InjectFlags",function(){return O}),n.d(t,"Injectable",function(){return Pl}),n.d(t,"InjectionToken",function(){return In}),n.d(t,"Injector",function(){return va}),n.d(t,"Input",function(){return mv}),n.d(t,"IterableDiffers",function(){return tp}),n.d(t,"KeyValueDiffers",function(){return np}),n.d(t,"LOCALE_ID",function(){return Lv}),n.d(t,"MissingTranslationStrategy",function(){return qv}),n.d(t,"ModuleWithComponentFactories",function(){return Gv}),n.d(t,"NO_ERRORS_SCHEMA",function(){return Di}),n.d(t,"NgModule",function(){return Ev}),n.d(t,"NgModuleFactory",function(){return wp}),n.d(t,"NgModuleFactoryLoader",function(){return Ay}),n.d(t,"NgModuleRef",function(){return _p}),n.d(t,"NgProbeToken",function(){return Sy}),n.d(t,"NgZone",function(){return ay}),n.d(t,"Optional",function(){return nr}),n.d(t,"Output",function(){return vv}),n.d(t,"PACKAGE_ROOT_URL",function(){return Rv}),n.d(t,"PLATFORM_ID",function(){return Nv}),n.d(t,"PLATFORM_INITIALIZER",function(){return Av}),n.d(t,"Pipe",function(){return gv}),n.d(t,"PlatformRef",function(){return jy}),n.d(t,"Query",function(){return Tn}),n.d(t,"QueryList",function(){return lm}),n.d(t,"ReflectiveInjector",function(){return ru}),n.d(t,"ReflectiveKey",function(){return Ll}),n.d(t,"Renderer2",function(){return Rh}),n.d(t,"RendererFactory2",function(){return Dh}),n.d(t,"RendererStyleFlags2",function(){return Ji}),n.d(t,"ResolvedReflectiveFactory",function(){return Kl}),n.d(t,"Sanitizer",function(){return Hh}),n.d(t,"SecurityContext",function(){return _i}),n.d(t,"Self",function(){return rr}),n.d(t,"SimpleChange",function(){return Ce}),n.d(t,"SkipSelf",function(){return ir}),n.d(t,"SystemJsNgModuleLoader",function(){return Hy}),n.d(t,"SystemJsNgModuleLoaderConfig",function(){return Ly}),n.d(t,"TRANSLATIONS",function(){return Hv}),n.d(t,"TRANSLATIONS_FORMAT",function(){return Uv}),n.d(t,"TemplateRef",function(){return gp}),n.d(t,"Testability",function(){return fy}),n.d(t,"TestabilityRegistry",function(){return gy}),n.d(t,"Type",function(){return Dn}),n.d(t,"VERSION",function(){return qh}),n.d(t,"Version",function(){return Uh}),n.d(t,"ViewChild",function(){return Mn}),n.d(t,"ViewChildren",function(){return Pn}),n.d(t,"ViewContainerRef",function(){return $p}),n.d(t,"ViewEncapsulation",function(){return N}),n.d(t,"ViewRef",function(){return qy}),n.d(t,"WrappedValue",function(){return Xa}),n.d(t,"asNativeElements",function(){return Qy}),n.d(t,"assertPlatform",function(){return Iy}),n.d(t,"createPlatform",function(){return Ey}),n.d(t,"createPlatformFactory",function(){return Oy}),n.d(t,"defineInjectable",function(){return y}),n.d(t,"destroyPlatform",function(){return ky}),n.d(t,"enableProdMode",function(){return Kr}),n.d(t,"forwardRef",function(){return p}),n.d(t,"getDebugNode",function(){return lb}),n.d(t,"getModuleFactory",function(){return Ry}),n.d(t,"getPlatform",function(){return Ty}),n.d(t,"inject",function(){return $r}),n.d(t,"isDevMode",function(){return Gr}),n.d(t,"platformCore",function(){return fb}),n.d(t,"resolveForwardRef",function(){return f}),n.d(t,"setTestabilityGetter",function(){return vy}),n.d(t,"\u02750",function(){return er}),n.d(t,"\u0275ALLOW_MULTIPLE_PLATFORMS",function(){return $y}),n.d(t,"\u0275APP_ID_RANDOM_PROVIDER",function(){return Pv}),n.d(t,"\u0275CREATE_ATTRIBUTE_DECORATOR__POST_R3__",function(){return En}),n.d(t,"\u0275ChangeDetectorStatus",function(){return M}),n.d(t,"\u0275CodegenComponentFactoryResolver",function(){return kh}),n.d(t,"\u0275Compiler_compileModuleAndAllComponentsAsync__POST_R3__",function(){return ey}),n.d(t,"\u0275Compiler_compileModuleAndAllComponentsSync__POST_R3__",function(){return Yv}),n.d(t,"\u0275Compiler_compileModuleAsync__POST_R3__",function(){return Zv}),n.d(t,"\u0275Compiler_compileModuleSync__POST_R3__",function(){return Kv}),n.d(t,"\u0275ComponentFactory",function(){return $h}),n.d(t,"\u0275Console",function(){return Fv}),n.d(t,"\u0275DEFAULT_LOCALE_ID",function(){return ud}),n.d(t,"\u0275EMPTY_ARRAY",function(){return $f}),n.d(t,"\u0275EMPTY_MAP",function(){return Sf}),n.d(t,"\u0275INJECTOR_IMPL__POST_R3__",function(){return ga}),n.d(t,"\u0275INJECTOR_SCOPE",function(){return ta}),n.d(t,"\u0275LifecycleHooksFeature",function(){return Da}),n.d(t,"\u0275LocaleDataIndex",function(){return ad}),n.d(t,"\u0275NG_COMP_DEF",function(){return q}),n.d(t,"\u0275NG_DIR_DEF",function(){return W}),n.d(t,"\u0275NG_ELEMENT_ID",function(){return Z}),n.d(t,"\u0275NG_INJ_DEF",function(){return $}),n.d(t,"\u0275NG_MOD_DEF",function(){return G}),n.d(t,"\u0275NG_PIPE_DEF",function(){return z}),n.d(t,"\u0275NG_PROV_DEF",function(){return C}),n.d(t,"\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR",function(){return mg}),n.d(t,"\u0275NO_CHANGE",function(){return Gs}),n.d(t,"\u0275NgModuleFactory",function(){return Ag}),n.d(t,"\u0275NoopNgZone",function(){return py}),n.d(t,"\u0275ReflectionCapabilities",function(){return Xn}),n.d(t,"\u0275Render3ComponentFactory",function(){return Eg}),n.d(t,"\u0275Render3ComponentRef",function(){return Og}),n.d(t,"\u0275Render3NgModuleRef",function(){return Mg}),n.d(t,"\u0275SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__",function(){return op}),n.d(t,"\u0275SWITCH_COMPILE_COMPONENT__POST_R3__",function(){return _v}),n.d(t,"\u0275SWITCH_COMPILE_DIRECTIVE__POST_R3__",function(){return wv}),n.d(t,"\u0275SWITCH_COMPILE_INJECTABLE__POST_R3__",function(){return Ml}),n.d(t,"\u0275SWITCH_COMPILE_NGMODULE__POST_R3__",function(){return Ov}),n.d(t,"\u0275SWITCH_COMPILE_PIPE__POST_R3__",function(){return xv}),n.d(t,"\u0275SWITCH_ELEMENT_REF_FACTORY__POST_R3__",function(){return Mh}),n.d(t,"\u0275SWITCH_IVY_ENABLED__POST_R3__",function(){return Wv}),n.d(t,"\u0275SWITCH_RENDERER2_FACTORY__POST_R3__",function(){return Fh}),n.d(t,"\u0275SWITCH_TEMPLATE_REF_FACTORY__POST_R3__",function(){return pp}),n.d(t,"\u0275SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__",function(){return xp}),n.d(t,"\u0275_sanitizeHtml",function(){return yi}),n.d(t,"\u0275_sanitizeUrl",function(){return ei}),n.d(t,"\u0275allowSanitizationBypassAndThrow",function(){return Rr}),n.d(t,"\u0275and",function(){return xb}),n.d(t,"\u0275angular_packages_core_core_a",function(){return g}),n.d(t,"\u0275angular_packages_core_core_b",function(){return wr}),n.d(t,"\u0275angular_packages_core_core_ba",function(){return Bp}),n.d(t,"\u0275angular_packages_core_core_bb",function(){return Se}),n.d(t,"\u0275angular_packages_core_core_bc",function(){return Sg}),n.d(t,"\u0275angular_packages_core_core_bd",function(){return rn}),n.d(t,"\u0275angular_packages_core_core_be",function(){return Xe}),n.d(t,"\u0275angular_packages_core_core_bf",function(){return lt}),n.d(t,"\u0275angular_packages_core_core_bg",function(){return Ot}),n.d(t,"\u0275angular_packages_core_core_bi",function(){return Gg}),n.d(t,"\u0275angular_packages_core_core_bj",function(){return Kg}),n.d(t,"\u0275angular_packages_core_core_bk",function(){return Qg}),n.d(t,"\u0275angular_packages_core_core_bl",function(){return Zg}),n.d(t,"\u0275angular_packages_core_core_bm",function(){return Xg}),n.d(t,"\u0275angular_packages_core_core_bn",function(){return ki}),n.d(t,"\u0275angular_packages_core_core_bo",function(){return Sn}),n.d(t,"\u0275angular_packages_core_core_bp",function(){return $n}),n.d(t,"\u0275angular_packages_core_core_bq",function(){return l}),n.d(t,"\u0275angular_packages_core_core_br",function(){return ea}),n.d(t,"\u0275angular_packages_core_core_bs",function(){return k}),n.d(t,"\u0275angular_packages_core_core_bu",function(){return Ne}),n.d(t,"\u0275angular_packages_core_core_bw",function(){return rs}),n.d(t,"\u0275angular_packages_core_core_bx",function(){return ah}),n.d(t,"\u0275angular_packages_core_core_by",function(){return Ir}),n.d(t,"\u0275angular_packages_core_core_bz",function(){return Tr}),n.d(t,"\u0275angular_packages_core_core_c",function(){return iu}),n.d(t,"\u0275angular_packages_core_core_ca",function(){return kr}),n.d(t,"\u0275angular_packages_core_core_d",function(){return Wl}),n.d(t,"\u0275angular_packages_core_core_e",function(){return Xl}),n.d(t,"\u0275angular_packages_core_core_f",function(){return Vv}),n.d(t,"\u0275angular_packages_core_core_g",function(){return Bh}),n.d(t,"\u0275angular_packages_core_core_h",function(){return Vh}),n.d(t,"\u0275angular_packages_core_core_i",function(){return Ph}),n.d(t,"\u0275angular_packages_core_core_j",function(){return Ny}),n.d(t,"\u0275angular_packages_core_core_k",function(){return yp}),n.d(t,"\u0275angular_packages_core_core_l",function(){return bp}),n.d(t,"\u0275angular_packages_core_core_m",function(){return Sp}),n.d(t,"\u0275angular_packages_core_core_n",function(){return Gy}),n.d(t,"\u0275angular_packages_core_core_o",function(){return Ky}),n.d(t,"\u0275angular_packages_core_core_p",function(){return ub}),n.d(t,"\u0275angular_packages_core_core_q",function(){return up}),n.d(t,"\u0275angular_packages_core_core_r",function(){return Wh}),n.d(t,"\u0275angular_packages_core_core_s",function(){return Yh}),n.d(t,"\u0275angular_packages_core_core_t",function(){return gb}),n.d(t,"\u0275angular_packages_core_core_u",function(){return mb}),n.d(t,"\u0275angular_packages_core_core_v",function(){return vb}),n.d(t,"\u0275angular_packages_core_core_w",function(){return bb}),n.d(t,"\u0275angular_packages_core_core_x",function(){return _b}),n.d(t,"\u0275angular_packages_core_core_y",function(){return cd}),n.d(t,"\u0275angular_packages_core_core_z",function(){return ug}),n.d(t,"\u0275bypassSanitizationTrustHtml",function(){return Lr}),n.d(t,"\u0275bypassSanitizationTrustResourceUrl",function(){return qr}),n.d(t,"\u0275bypassSanitizationTrustScript",function(){return Hr}),n.d(t,"\u0275bypassSanitizationTrustStyle",function(){return Br}),n.d(t,"\u0275bypassSanitizationTrustUrl",function(){return Ur}),n.d(t,"\u0275ccf",function(){return Rf}),n.d(t,"\u0275clearOverrides",function(){return Z_}),n.d(t,"\u0275clearResolutionOfComponentResourcesQueue",function(){return fr}),n.d(t,"\u0275cmf",function(){return X_}),n.d(t,"\u0275compileComponent",function(){return Zm}),n.d(t,"\u0275compileDirective",function(){return Xm}),n.d(t,"\u0275compileNgModule",function(){return Fm}),n.d(t,"\u0275compileNgModuleDefs",function(){return Lm}),n.d(t,"\u0275compileNgModuleFactory__POST_R3__",function(){return wy}),n.d(t,"\u0275compilePipe",function(){return dv}),n.d(t,"\u0275createInjector",function(){return aa}),n.d(t,"\u0275crt",function(){return Gp}),n.d(t,"\u0275defaultIterableDiffers",function(){return dp}),n.d(t,"\u0275defaultKeyValueDiffers",function(){return hp}),n.d(t,"\u0275detectChanges",function(){return Xo}),n.d(t,"\u0275devModeEqual",function(){return Za}),n.d(t,"\u0275did",function(){return og}),n.d(t,"\u0275eld",function(){return Cb}),n.d(t,"\u0275findLocaleData",function(){return nd}),n.d(t,"\u0275flushModuleScopingQueueAsMuchAsPossible",function(){return Dm}),n.d(t,"\u0275getComponentViewDefinitionFactory",function(){return Ff}),n.d(t,"\u0275getDebugNodeR2",function(){return cb}),n.d(t,"\u0275getDebugNode__POST_R3__",function(){return ab}),n.d(t,"\u0275getDirectives",function(){return Ca}),n.d(t,"\u0275getHostElement",function(){return Sa}),n.d(t,"\u0275getInjectableDef",function(){return _}),n.d(t,"\u0275getLContext",function(){return Li}),n.d(t,"\u0275getLocaleCurrencyCode",function(){return rd}),n.d(t,"\u0275getLocalePluralCase",function(){return id}),n.d(t,"\u0275getModuleFactory__POST_R3__",function(){return Dy}),n.d(t,"\u0275getSanitizationBypassType",function(){return Fr}),n.d(t,"\u0275global",function(){return B}),n.d(t,"\u0275initServicesIfNeeded",function(){return d_}),n.d(t,"\u0275inlineInterpolate",function(){return xf}),n.d(t,"\u0275interpolate",function(){return wf}),n.d(t,"\u0275isBoundToModule__POST_R3__",function(){return Cy}),n.d(t,"\u0275isDefaultChangeDetectionStrategy",function(){return A}),n.d(t,"\u0275isListLikeIterable",function(){return Ya}),n.d(t,"\u0275isObservable",function(){return vu}),n.d(t,"\u0275isPromise",function(){return mu}),n.d(t,"\u0275ivyEnabled",function(){return zv}),n.d(t,"\u0275makeDecorator",function(){return xn}),n.d(t,"\u0275markDirty",function(){return Yo}),n.d(t,"\u0275mod",function(){return jf}),n.d(t,"\u0275mpd",function(){return Tf}),n.d(t,"\u0275ncd",function(){return Pb}),n.d(t,"\u0275noSideEffects",function(){return V}),n.d(t,"\u0275nov",function(){return Zf}),n.d(t,"\u0275overrideComponentView",function(){return Q_}),n.d(t,"\u0275overrideProvider",function(){return K_}),n.d(t,"\u0275pad",function(){return Nb}),n.d(t,"\u0275patchComponentDefWithScope",function(){return Wm}),n.d(t,"\u0275pid",function(){return ag}),n.d(t,"\u0275pod",function(){return Db}),n.d(t,"\u0275ppd",function(){return Ab}),n.d(t,"\u0275prd",function(){return lg}),n.d(t,"\u0275publishDefaultGlobalUtils",function(){return ja}),n.d(t,"\u0275publishGlobalUtil",function(){return Va}),n.d(t,"\u0275qud",function(){return Ib}),n.d(t,"\u0275registerLocaleData",function(){return td}),n.d(t,"\u0275registerModuleFactory",function(){return Tg}),n.d(t,"\u0275registerNgModuleType",function(){return Vg}),n.d(t,"\u0275renderComponent",function(){return Pa}),n.d(t,"\u0275resetCompiledComponents",function(){return Um}),n.d(t,"\u0275resetJitOptions",function(){return Pm}),n.d(t,"\u0275resolveComponentResources",function(){return cr}),n.d(t,"\u0275setClassMetadata",function(){return Ig}),n.d(t,"\u0275setCurrentInjector",function(){return _r}),n.d(t,"\u0275setDocument",function(){return Te}),n.d(t,"\u0275setLocaleId",function(){return gd}),n.d(t,"\u0275store",function(){return El}),n.d(t,"\u0275stringify",function(){return c}),n.d(t,"\u0275ted",function(){return Fb}),n.d(t,"\u0275transitiveScopesFor",function(){return zm}),n.d(t,"\u0275unregisterLocaleData",function(){return od}),n.d(t,"\u0275unv",function(){return zp}),n.d(t,"\u0275unwrapSafeValue",function(){return Dr}),n.d(t,"\u0275vid",function(){return Hb}),n.d(t,"\u0275whenRendered",function(){return Ra}),n.d(t,"\u0275\u0275CopyDefinitionFeature",function(){return Ga}),n.d(t,"\u0275\u0275InheritDefinitionFeature",function(){return La}),n.d(t,"\u0275\u0275NgOnChangesFeature",function(){return $e}),n.d(t,"\u0275\u0275ProvidersFeature",function(){return xh}),n.d(t,"\u0275\u0275advance",function(){return Ks}),n.d(t,"\u0275\u0275attribute",function(){return ol}),n.d(t,"\u0275\u0275attributeInterpolate1",function(){return ml}),n.d(t,"\u0275\u0275attributeInterpolate2",function(){return vl}),n.d(t,"\u0275\u0275attributeInterpolate3",function(){return yl}),n.d(t,"\u0275\u0275attributeInterpolate4",function(){return bl}),n.d(t,"\u0275\u0275attributeInterpolate5",function(){return _l}),n.d(t,"\u0275\u0275attributeInterpolate6",function(){return wl}),n.d(t,"\u0275\u0275attributeInterpolate7",function(){return xl}),n.d(t,"\u0275\u0275attributeInterpolate8",function(){return Cl}),n.d(t,"\u0275\u0275attributeInterpolateV",function(){return $l}),n.d(t,"\u0275\u0275classMap",function(){return Ju}),n.d(t,"\u0275\u0275classMapInterpolate1",function(){return Cc}),n.d(t,"\u0275\u0275classMapInterpolate2",function(){return $c}),n.d(t,"\u0275\u0275classMapInterpolate3",function(){return Sc}),n.d(t,"\u0275\u0275classMapInterpolate4",function(){return Ec}),n.d(t,"\u0275\u0275classMapInterpolate5",function(){return Oc}),n.d(t,"\u0275\u0275classMapInterpolate6",function(){return Ic}),n.d(t,"\u0275\u0275classMapInterpolate7",function(){return kc}),n.d(t,"\u0275\u0275classMapInterpolate8",function(){return Tc}),n.d(t,"\u0275\u0275classMapInterpolateV",function(){return jc}),n.d(t,"\u0275\u0275classProp",function(){return Zu}),n.d(t,"\u0275\u0275contentQuery",function(){return xm}),n.d(t,"\u0275\u0275defineComponent",function(){return Y}),n.d(t,"\u0275\u0275defineDirective",function(){return oe}),n.d(t,"\u0275\u0275defineInjectable",function(){return v}),n.d(t,"\u0275\u0275defineInjector",function(){return b}),n.d(t,"\u0275\u0275defineNgModule",function(){return re}),n.d(t,"\u0275\u0275definePipe",function(){return ae}),n.d(t,"\u0275\u0275directiveInject",function(){return su}),n.d(t,"\u0275\u0275disableBindings",function(){return Ze}),n.d(t,"\u0275\u0275element",function(){return du}),n.d(t,"\u0275\u0275elementContainer",function(){return fu}),n.d(t,"\u0275\u0275elementContainerEnd",function(){return pu}),n.d(t,"\u0275\u0275elementContainerStart",function(){return hu}),n.d(t,"\u0275\u0275elementEnd",function(){return cu}),n.d(t,"\u0275\u0275elementStart",function(){return uu}),n.d(t,"\u0275\u0275enableBindings",function(){return Qe}),n.d(t,"\u0275\u0275getCurrentView",function(){return gu}),n.d(t,"\u0275\u0275getFactoryOf",function(){return mn}),n.d(t,"\u0275\u0275getInheritedFactory",function(){return vn}),n.d(t,"\u0275\u0275hostProperty",function(){return Zc}),n.d(t,"\u0275\u0275i18n",function(){return ch}),n.d(t,"\u0275\u0275i18nApply",function(){return ph}),n.d(t,"\u0275\u0275i18nAttributes",function(){return dh}),n.d(t,"\u0275\u0275i18nEnd",function(){return uh}),n.d(t,"\u0275\u0275i18nExp",function(){return hh}),n.d(t,"\u0275\u0275i18nPostprocess",function(){return fh}),n.d(t,"\u0275\u0275i18nStart",function(){return lh}),n.d(t,"\u0275\u0275inject",function(){return xr}),n.d(t,"\u0275\u0275injectAttribute",function(){return yn}),n.d(t,"\u0275\u0275injectPipeChangeDetectorRef",function(){return Tm}),n.d(t,"\u0275\u0275invalidFactory",function(){return ou}),n.d(t,"\u0275\u0275invalidFactoryDep",function(){return Cr}),n.d(t,"\u0275\u0275listener",function(){return yu}),n.d(t,"\u0275\u0275loadQuery",function(){return Sm}),n.d(t,"\u0275\u0275namespaceHTML",function(){return Pt}),n.d(t,"\u0275\u0275namespaceMathML",function(){return Vt}),n.d(t,"\u0275\u0275namespaceSVG",function(){return jt}),n.d(t,"\u0275\u0275nextContext",function(){return Cu}),n.d(t,"\u0275\u0275pipe",function(){return Yg}),n.d(t,"\u0275\u0275pipeBind1",function(){return Jg}),n.d(t,"\u0275\u0275pipeBind2",function(){return em}),n.d(t,"\u0275\u0275pipeBind3",function(){return tm}),n.d(t,"\u0275\u0275pipeBind4",function(){return nm}),n.d(t,"\u0275\u0275pipeBindV",function(){return rm}),n.d(t,"\u0275\u0275projection",function(){return Eu}),n.d(t,"\u0275\u0275projectionDef",function(){return Su}),n.d(t,"\u0275\u0275property",function(){return au}),n.d(t,"\u0275\u0275propertyInterpolate",function(){return Ou}),n.d(t,"\u0275\u0275propertyInterpolate1",function(){return Iu}),n.d(t,"\u0275\u0275propertyInterpolate2",function(){return ku}),n.d(t,"\u0275\u0275propertyInterpolate3",function(){return Tu}),n.d(t,"\u0275\u0275propertyInterpolate4",function(){return ju}),n.d(t,"\u0275\u0275propertyInterpolate5",function(){return Vu}),n.d(t,"\u0275\u0275propertyInterpolate6",function(){return Pu}),n.d(t,"\u0275\u0275propertyInterpolate7",function(){return Mu}),n.d(t,"\u0275\u0275propertyInterpolate8",function(){return Au}),n.d(t,"\u0275\u0275propertyInterpolateV",function(){return Nu}),n.d(t,"\u0275\u0275pureFunction0",function(){return Ng}),n.d(t,"\u0275\u0275pureFunction1",function(){return Dg}),n.d(t,"\u0275\u0275pureFunction2",function(){return Rg}),n.d(t,"\u0275\u0275pureFunction3",function(){return Fg}),n.d(t,"\u0275\u0275pureFunction4",function(){return Lg}),n.d(t,"\u0275\u0275pureFunction5",function(){return Bg}),n.d(t,"\u0275\u0275pureFunction6",function(){return Hg}),n.d(t,"\u0275\u0275pureFunction7",function(){return Ug}),n.d(t,"\u0275\u0275pureFunction8",function(){return qg}),n.d(t,"\u0275\u0275pureFunctionV",function(){return Wg}),n.d(t,"\u0275\u0275queryRefresh",function(){return ym}),n.d(t,"\u0275\u0275reference",function(){return Ol}),n.d(t,"\u0275\u0275resolveBody",function(){return Xi}),n.d(t,"\u0275\u0275resolveDocument",function(){return Zi}),n.d(t,"\u0275\u0275resolveWindow",function(){return Qi}),n.d(t,"\u0275\u0275restoreView",function(){return Je}),n.d(t,"\u0275\u0275sanitizeHtml",function(){return wi}),n.d(t,"\u0275\u0275sanitizeResourceUrl",function(){return $i}),n.d(t,"\u0275\u0275sanitizeScript",function(){return Si}),n.d(t,"\u0275\u0275sanitizeStyle",function(){return xi}),n.d(t,"\u0275\u0275sanitizeUrl",function(){return Ci}),n.d(t,"\u0275\u0275sanitizeUrlOrResourceUrl",function(){return Ti}),n.d(t,"\u0275\u0275setComponentScope",function(){return J}),n.d(t,"\u0275\u0275setNgModuleScope",function(){return ie}),n.d(t,"\u0275\u0275staticContentQuery",function(){return Cm}),n.d(t,"\u0275\u0275staticViewQuery",function(){return bm}),n.d(t,"\u0275\u0275styleMap",function(){return Xu}),n.d(t,"\u0275\u0275styleMapInterpolate1",function(){return Vc}),n.d(t,"\u0275\u0275styleMapInterpolate2",function(){return Pc}),n.d(t,"\u0275\u0275styleMapInterpolate3",function(){return Mc}),n.d(t,"\u0275\u0275styleMapInterpolate4",function(){return Ac}),n.d(t,"\u0275\u0275styleMapInterpolate5",function(){return Nc}),n.d(t,"\u0275\u0275styleMapInterpolate6",function(){return Dc}),n.d(t,"\u0275\u0275styleMapInterpolate7",function(){return Rc}),n.d(t,"\u0275\u0275styleMapInterpolate8",function(){return Fc}),n.d(t,"\u0275\u0275styleMapInterpolateV",function(){return Lc}),n.d(t,"\u0275\u0275styleProp",function(){return Qu}),n.d(t,"\u0275\u0275stylePropInterpolate1",function(){return Bc}),n.d(t,"\u0275\u0275stylePropInterpolate2",function(){return Hc}),n.d(t,"\u0275\u0275stylePropInterpolate3",function(){return Uc}),n.d(t,"\u0275\u0275stylePropInterpolate4",function(){return qc}),n.d(t,"\u0275\u0275stylePropInterpolate5",function(){return Wc}),n.d(t,"\u0275\u0275stylePropInterpolate6",function(){return zc}),n.d(t,"\u0275\u0275stylePropInterpolate7",function(){return Gc}),n.d(t,"\u0275\u0275stylePropInterpolate8",function(){return Kc}),n.d(t,"\u0275\u0275stylePropInterpolateV",function(){return Qc}),n.d(t,"\u0275\u0275syntheticHostListener",function(){return bu}),n.d(t,"\u0275\u0275syntheticHostProperty",function(){return Xc}),n.d(t,"\u0275\u0275template",function(){return Sl}),n.d(t,"\u0275\u0275templateRefExtractor",function(){return km}),n.d(t,"\u0275\u0275text",function(){return hc}),n.d(t,"\u0275\u0275textInterpolate",function(){return pc}),n.d(t,"\u0275\u0275textInterpolate1",function(){return fc}),n.d(t,"\u0275\u0275textInterpolate2",function(){return gc}),n.d(t,"\u0275\u0275textInterpolate3",function(){return mc}),n.d(t,"\u0275\u0275textInterpolate4",function(){return vc}),n.d(t,"\u0275\u0275textInterpolate5",function(){return yc}),n.d(t,"\u0275\u0275textInterpolate6",function(){return bc}),n.d(t,"\u0275\u0275textInterpolate7",function(){return _c}),n.d(t,"\u0275\u0275textInterpolate8",function(){return wc}),n.d(t,"\u0275\u0275textInterpolateV",function(){return xc}),n.d(t,"\u0275\u0275trustConstantHtml",function(){return Ei}),n.d(t,"\u0275\u0275trustConstantResourceUrl",function(){return Ii}),n.d(t,"\u0275\u0275trustConstantScript",function(){return Oi}),n.d(t,"\u0275\u0275viewQuery",function(){return _m});var r=n("XNiG"),i=n("quSY"),s=n("HDdC"),o=n("VRyK"),a=n("w1tV");function l(e){for(let t in e)if(e[t]===l)return t;throw Error("Could not find renamed property on target object.")}function u(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function c(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(c).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function d(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const h=l({__forward_ref__:l});function p(e){return e.__forward_ref__=p,e.toString=function(){return c(this())},e}function f(e){return g(e)?e():e}function g(e){return"function"==typeof e&&e.hasOwnProperty(h)&&e.__forward_ref__===p}function m(e,t,n,r){throw new Error("ASSERTION ERROR: "+e+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function v(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const y=v;function b(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function _(e){return w(e,C)||w(e,S)}function w(e,t){return e.hasOwnProperty(t)?e[t]:null}function x(e){return e&&(e.hasOwnProperty($)||e.hasOwnProperty(E))?e[$]:null}const C=l({\u0275prov:l}),$=l({\u0275inj:l}),S=l({ngInjectableDef:l}),E=l({ngInjectorDef:l});var O=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});let I;function k(){return I}function T(e){const t=I;return I=e,t}function j(e,t,n){const r=_(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&O.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${c(e)}]`)}function V(e){return{toString:e}.toString()}var P=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),M=function(e){return e[e.CheckOnce=0]="CheckOnce",e[e.Checked=1]="Checked",e[e.CheckAlways=2]="CheckAlways",e[e.Detached=3]="Detached",e[e.Errored=4]="Errored",e[e.Destroyed=5]="Destroyed",e}({});function A(e){return null==e||e===P.Default}var N=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const D="undefined"!=typeof globalThis&&globalThis,R="undefined"!=typeof window&&window,F="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,L="undefined"!=typeof global&&global,B=D||L||R||F,H={},U=[],q=l({\u0275cmp:l}),W=l({\u0275dir:l}),z=l({\u0275pipe:l}),G=l({\u0275mod:l}),K=l({\u0275loc:l}),Q=l({\u0275fac:l}),Z=l({__NG_ELEMENT_ID__:l});let X=0;function Y(e){return V(()=>{const t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===P.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||U,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||N.Emulated,id:"c",styles:e.styles||U,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,s=e.pipes;return n.id+=X++,n.inputs=se(e.inputs,t),n.outputs=se(e.outputs),i&&i.forEach(e=>e(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(ee):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(te):null,n})}function J(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map(ee),r.pipeDefs=()=>n.map(te)}function ee(e){return le(e)||ue(e)}function te(e){return ce(e)}const ne={};function re(e){const t={type:e.type,bootstrap:e.bootstrap||U,declarations:e.declarations||U,imports:e.imports||U,exports:e.exports||U,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&V(()=>{ne[e.id]=e.type}),t}function ie(e,t){return V(()=>{const n=de(e,!0);n.declarations=t.declarations||U,n.imports=t.imports||U,n.exports=t.exports||U})}function se(e,t){if(null==e)return H;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,t&&(t[i]=s)}return n}const oe=Y;function ae(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function le(e){return e[q]||null}function ue(e){return e[W]||null}function ce(e){return e[z]||null}function de(e,t){const n=e[G]||null;if(!n&&!0===t)throw new Error(`Type ${c(e)} does not have '\u0275mod' property.`);return n}function he(e){return Array.isArray(e)&&"object"==typeof e[1]}function pe(e){return Array.isArray(e)&&!0===e[1]}function fe(e){return 0!=(8&e.flags)}function ge(e){return 2==(2&e.flags)}function me(e){return 1==(1&e.flags)}function ve(e){return null!==e.template}function ye(e,t){return e.hasOwnProperty(Q)?e[Q]:null}class be extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function _e(e){return"string"==typeof e?e:null==e?"":String(e)}function we(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():_e(e)}function xe(e,t){const n=t?" in "+t:"";throw new be("201",`No provider for ${we(e)} found${n}`)}class Ce{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function $e(){return Se}function Se(e){return e.type.prototype.ngOnChanges&&(e.setInput=Oe),Ee}function Ee(){const e=Ie(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===H)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Oe(e,t,n,r){const i=Ie(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:H,current:null}),s=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],l=o[a];s[a]=new Ce(l&&l.currentValue,t,o===H),e[r]=t}function Ie(e){return e.__ngSimpleChanges__||null}$e.ngInherit=!0;let ke=void 0;function Te(e){ke=e}function je(){return void 0!==ke?ke:"undefined"!=typeof document?document:void 0}function Ve(e){return!!e.listen}const Pe={createRenderer:(e,t)=>je()};function Me(e){for(;Array.isArray(e);)e=e[0];return e}function Ae(e,t){return Me(t[e])}function Ne(e,t){return Me(t[e.index])}function De(e,t){return e.data[t]}function Re(e,t){return e[t]}function Fe(e,t){const n=t[e];return he(n)?n:n[0]}function Le(e){return e.__ngContext__||null}function Be(e){const t=Le(e);return t?Array.isArray(t)?t:t.lView:null}function He(e){return 4==(4&e[2])}function Ue(e){return 128==(128&e[2])}function qe(e,t){return null==t?null:e[t]}function We(e){e[18]=0}function ze(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const Ge={lFrame:Ct(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ke(){return Ge.bindingsEnabled}function Qe(){Ge.bindingsEnabled=!0}function Ze(){Ge.bindingsEnabled=!1}function Xe(){return Ge.lFrame.lView}function Ye(){return Ge.lFrame.tView}function Je(e){Ge.lFrame.contextLView=e}function et(){let e=tt();for(;null!==e&&64===e.type;)e=e.parent;return e}function tt(){return Ge.lFrame.currentTNode}function nt(){const e=Ge.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function rt(e,t){const n=Ge.lFrame;n.currentTNode=e,n.isParent=t}function it(){return Ge.lFrame.isParent}function st(){Ge.lFrame.isParent=!1}function ot(){return Ge.isInCheckNoChangesMode}function at(e){Ge.isInCheckNoChangesMode=e}function lt(){const e=Ge.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ut(){return Ge.lFrame.bindingIndex}function ct(e){return Ge.lFrame.bindingIndex=e}function dt(){return Ge.lFrame.bindingIndex++}function ht(e){const t=Ge.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function pt(e){Ge.lFrame.inI18n=e}function ft(e,t){const n=Ge.lFrame;n.bindingIndex=n.bindingRootIndex=e,gt(t)}function gt(e){Ge.lFrame.currentDirectiveIndex=e}function mt(e){const t=Ge.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function vt(){return Ge.lFrame.currentQueryIndex}function yt(e){Ge.lFrame.currentQueryIndex=e}function bt(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function _t(e,t,n){if(n&O.SkipSelf){let r=t,i=e;for(;r=r.parent,!(null!==r||n&O.Host||(r=bt(i),null===r)||(i=i[15],10&r.type)););if(null===r)return!1;t=r,e=i}const r=Ge.lFrame=xt();return r.currentTNode=t,r.lView=e,!0}function wt(e){const t=xt(),n=e[1];Ge.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function xt(){const e=Ge.lFrame,t=null===e?null:e.child;return null===t?Ct(e):t}function Ct(e){const 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 $t(){const e=Ge.lFrame;return Ge.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const St=$t;function Et(){const e=$t();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 Ot(e){return(Ge.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Ge.lFrame.contextLView))[8]}function It(){return Ge.lFrame.selectedIndex}function kt(e){Ge.lFrame.selectedIndex=e}function Tt(){const e=Ge.lFrame;return De(e.tView,e.selectedIndex)}function jt(){Ge.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Vt(){Ge.lFrame.currentNamespace="http://www.w3.org/1998/MathML/"}function Pt(){Ge.lFrame.currentNamespace=null}function Mt(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[o]<0&&(e[18]+=65536),(s>11>16&&(3&e[2])===t&&(e[2]+=2048,s.call(o)):s.call(o)}class Lt{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function Bt(e,t,n){const r=Ve(e);let i=0;for(;it){o=s-1;break}}}for(;s>16,r=t;for(;n>0;)r=r[15],n--;return r}let Qt=!0;function Zt(e){const t=Qt;return Qt=e,t}let Xt=0;function Yt(e,t){const n=en(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Jt(r.data,e),Jt(t,null),Jt(r.blueprint,null));const i=tn(e,t),s=e.injectorIndex;if(zt(i)){const e=Gt(i),n=Kt(i,t),r=n[1].data;for(let i=0;i<8;i++)t[s+i]=n[e+i]|r[e+i]}return t[s+8]=i,s}function Jt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function en(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function tn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const e=i[1],t=e.type;if(r=2===t?e.declTNode:1===t?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function nn(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Z)&&(r=n[Z]),null==r&&(r=n[Z]=Xt++);const i=255&r,s=1<=0?255&t:un:t}(n);if("function"==typeof s){if(!_t(t,e,r))return r&O.Host?sn(i,n,r):on(t,n,r,i);try{const e=s();if(null!=e||r&O.Optional)return e;xe(n)}finally{St()}}else if("number"==typeof s){let i=null,o=en(e,t),a=-1,l=r&O.Host?t[16][6]:null;for((-1===o||r&O.SkipSelf)&&(a=-1===o?tn(e,t):t[o+8],-1!==a&&fn(r,!1)?(i=t[1],o=Gt(a),t=Kt(a,t)):o=-1);-1!==o;){const e=t[1];if(pn(s,o,e.data)){const e=cn(o,t,n,i,r,l);if(e!==ln)return e}a=t[o+8],-1!==a&&fn(r,t[1].data[o+8]===l)&&pn(s,o,t)?(i=e,o=Gt(a),t=Kt(a,t)):o=-1}}}return on(t,n,r,i)}const ln={};function un(){return new gn(et(),Xe())}function cn(e,t,n,r,i,s){const o=t[1],a=o.data[e+8],l=dn(a,o,n,null==r?ge(a)&&Qt:r!=o&&0!=(3&a.type),i&O.Host&&s===a);return null!==l?hn(t,o,l,a):ln}function dn(e,t,n,r,i){const s=e.providerIndexes,o=t.data,a=1048575&s,l=e.directiveStart,u=s>>20,c=i?a+u:e.directiveEnd;for(let d=r?a:a+u;d=l&&e.type===n)return d}if(i){const e=o[l];if(e&&ve(e)&&e.type===n)return l}return null}function hn(e,t,n,r){let i=e[n];const s=t.data;if(i instanceof Lt){const o=i;o.resolving&&function(e,t){throw new be("200","Circular dependency in DI detected for "+e)}(we(s[n]));const a=Zt(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?T(o.injectImpl):null;_t(e,r,O.Default);try{i=e[n]=o.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const r=Se(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==l&&T(l),Zt(a),o.resolving=!1,St()}}return i}function pn(e,t,n){const r=64&e,i=32&e;let s;return s=128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t],!!(s&1<{const e=mn(f(t));return e?e():null};let n=ye(t);if(null===n){const e=x(t);n=e&&e.factory}return n||null}function vn(e){return V(()=>{const t=e.prototype.constructor,n=t[Q]||mn(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const e=i[Q]||mn(i);if(e&&e!==n)return e;i=Object.getPrototypeOf(i)}return e=>new e})}function yn(e){return rn(et(),e)}const bn="__annotations__",_n="__parameters__",wn="__prop__metadata__";function xn(e,t,n,r,i){return V(()=>{const s=Cn(t);function o(...e){if(this instanceof o)return s.call(this,...e),this;const t=new o(...e);return function(n){return i&&i(n,...e),(n.hasOwnProperty(bn)?n[bn]:Object.defineProperty(n,bn,{value:[]})[bn]).push(t),r&&r(n),n}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Cn(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}function $n(e,t,n){return V(()=>{const r=Cn(t);function i(...e){if(this instanceof i)return r.apply(this,e),this;const t=new i(...e);return n.annotation=t,n;function n(e,n,r){const i=e.hasOwnProperty(_n)?e[_n]:Object.defineProperty(e,_n,{value:[]})[_n];for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(t),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function Sn(e,t,n,r){return V(()=>{const i=Cn(t);function s(...e){if(this instanceof s)return i.apply(this,e),this;const t=new s(...e);return function(n,i){const s=n.constructor,o=s.hasOwnProperty(wn)?s[wn]:Object.defineProperty(s,wn,{value:{}})[wn];o[i]=o.hasOwnProperty(i)&&o[i]||[],o[i].unshift(t),r&&r(n,i,...e)}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function En(){return $n("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>yn(e)}))}const On=En();class In{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=v({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const kn=new In("AnalyzeForEntryComponents");class Tn{}const jn=Sn("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1},t),Tn),Vn=Sn("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),Tn),Pn=Sn("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0},t),Tn),Mn=Sn("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),Tn);var An=function(e){return e[e.Token=0]="Token",e[e.Attribute=1]="Attribute",e[e.ChangeDetectorRef=2]="ChangeDetectorRef",e[e.Invalid=3]="Invalid",e}({});function Nn(){const e=B.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}const Dn=Function;function Rn(e){return"function"==typeof e}function Fn(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(e)?Ln(e,t):t(e))}function Bn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Hn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Un(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:(r=~r,function(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Wn(e,t){const n=zn(e,t);if(n>=0)return e[1|n]}function zn(e,t){return function(e,t,n){let r=0,i=e.length>>1;for(;i!==r;){const n=r+(i-r>>1),s=e[n<<1];if(t===s)return n<<1;s>t?i=n:r=n+1}return~(i<<1)}(e,t)}const Gn=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|[^()]+\(arguments\))\)/,Kn=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Qn=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Zn=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class Xn{constructor(e){this._reflect=e||B.Reflect}isReflectionEnabled(){return!0}factory(e){return(...t)=>new e(...t)}_zipTypesAndAnnotations(e,t){let n;n=Un(void 0===e?t.length:e.length);for(let r=0;re&&e.type),n=e.map(e=>e&&Yn(e.decorators));return this._zipTypesAndAnnotations(t,n)}const i=e.hasOwnProperty(_n)&&e[_n],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return s||i?this._zipTypesAndAnnotations(s,i):Un(e.length)}parameters(e){if(!Rn(e))return[];const t=Jn(e);let n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]}_ownAnnotations(e,t){if(e.annotations&&e.annotations!==t.annotations){let t=e.annotations;return"function"==typeof t&&t.annotations&&(t=t.annotations),t}return e.decorators&&e.decorators!==t.decorators?Yn(e.decorators):e.hasOwnProperty(bn)?e[bn]:null}annotations(e){if(!Rn(e))return[];const t=Jn(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)}_ownPropMetadata(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){let t=e.propMetadata;return"function"==typeof t&&t.propMetadata&&(t=t.propMetadata),t}if(e.propDecorators&&e.propDecorators!==t.propDecorators){const t=e.propDecorators,n={};return Object.keys(t).forEach(e=>{n[e]=Yn(t[e])}),n}return e.hasOwnProperty(wn)?e[wn]:null}propMetadata(e){if(!Rn(e))return{};const t=Jn(e),n={};if(t!==Object){const e=this.propMetadata(t);Object.keys(e).forEach(t=>{n[t]=e[t]})}const r=this._ownPropMetadata(e,t);return r&&Object.keys(r).forEach(e=>{const t=[];n.hasOwnProperty(e)&&t.push(...n[e]),t.push(...r[e]),n[e]=t}),n}ownPropMetadata(e){return Rn(e)&&this._ownPropMetadata(e,Jn(e))||{}}hasLifecycleHook(e,t){return e instanceof Dn&&t in e.prototype}guards(e){return{}}getter(e){return new Function("o","return o."+e+";")}setter(e){return new Function("o","v","return o."+e+" = v;")}method(e){return new Function("o","args",`if (!o.${e}) throw new Error('"${e}" is undefined');\n return o.${e}.apply(o, args);`)}importUri(e){return"object"==typeof e&&e.filePath?e.filePath:"./"+c(e)}resourceUri(e){return"./"+c(e)}resolveIdentifier(e,t,n,r){return r}resolveEnum(e,t){return e[t]}}function Yn(e){return e?e.map(e=>new(0,e.type.annotationCls)(...e.args?e.args:[])):[]}function Jn(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const er=e=>({token:e}),tr=$n("Inject",er),nr=$n("Optional"),rr=$n("Self"),ir=$n("SkipSelf"),sr=$n("Host");let or=null;function ar(){return or=or||new Xn}function lr(e){return ur(ar().parameters(e))}function ur(e){const t=Nn();return e.map(e=>function(e,t){const n={token:null,host:!1,optional:!1,resolved:e.R3ResolvedDependencyType.Token,self:!1,skipSelf:!1};function r(t){n.resolved=e.R3ResolvedDependencyType.Token,n.token=t}if(Array.isArray(t)&&t.length>0)for(let i=0;i{const i=[];e.templateUrl&&i.push(r(e.templateUrl).then(t=>{e.template=t}));const s=e.styleUrls,o=e.styles||(e.styles=[]),a=e.styles.length;s&&s.forEach((t,n)=>{o.push(""),i.push(r(t).then(r=>{o[a+n]=r,s.splice(s.indexOf(t),1),0==s.length&&(e.styleUrls=void 0)}))});const l=Promise.all(i).then(()=>function(e){hr.delete(e)}(n));t.push(l)}),fr(),Promise.all(t).then(()=>{})}let dr=new Map;const hr=new Set;function pr(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function fr(){const e=dr;return dr=new Map,e}function gr(e){return"string"==typeof e?e:e.text()}const mr={},vr=/\n/gm,yr=l({provide:String,useValue:l});let br=void 0;function _r(e){const t=br;return br=e,t}function wr(e,t=O.Default){if(void 0===br)throw new Error("inject() must be called from an injection context");return null===br?j(e,void 0,t):br.get(e,t&O.Optional?null:void 0,t)}function xr(e,t=O.Default){return(k()||wr)(f(e),t)}function Cr(e){throw new Error("invalid")}const $r=xr;function Sr(e){const t=[];for(let n=0;ne,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Er}function Ir(e){var t;return(null===(t=Or())||void 0===t?void 0:t.createHTML(e))||e}function kr(e){var t;return(null===(t=Or())||void 0===t?void 0:t.createScript(e))||e}function Tr(e){var t;return(null===(t=Or())||void 0===t?void 0:t.createScriptURL(e))||e}class jr{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}class Vr extends jr{getTypeName(){return"HTML"}}class Pr extends jr{getTypeName(){return"Style"}}class Mr extends jr{getTypeName(){return"Script"}}class Ar extends jr{getTypeName(){return"URL"}}class Nr extends jr{getTypeName(){return"ResourceURL"}}function Dr(e){return e instanceof jr?e.changingThisBreaksApplicationSecurity:e}function Rr(e,t){const n=Fr(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Fr(e){return e instanceof jr&&e.getTypeName()||null}function Lr(e){return new Vr(e)}function Br(e){return new Pr(e)}function Hr(e){return new Mr(e)}function Ur(e){return new Ar(e)}function qr(e){return new Nr(e)}let Wr=!0,zr=!1;function Gr(){return zr=!0,Wr}function Kr(){if(zr)throw new Error("Cannot enable prod mode after platform setup.");Wr=!1}function Qr(e){return function(){try{return!!(new window.DOMParser).parseFromString(Ir(""),"text/html")}catch(e){return!1}}()?new Zr:new Xr(e)}class Zr{getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(Ir(e),"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}}class Xr{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Ir(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=Ir(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0ei(e.trim())).join(", ")}function ni(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function ri(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const ii=ni("area,br,col,hr,img,wbr"),si=ni("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),oi=ni("rp,rt"),ai=ri(oi,si),li=ri(ii,ri(si,ni("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ri(oi,ni("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ai),ui=ni("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ci=ni("srcset"),di=ri(ui,ci,ni("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ni("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),hi=ni("script,style,template");class pi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!li.hasOwnProperty(t))return this.sanitizedSomething=!0,!hi.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let r=0;r"),!0}endElement(e){const t=e.nodeName.toLowerCase();li.hasOwnProperty(t)&&!ii.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(mi(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}const fi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gi=/([^\#-~ |!])/g;function mi(e){return e.replace(/&/g,"&").replace(fi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(gi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let vi;function yi(e,t){let n=null;try{vi=vi||Qr(e);let r=t?String(t):"";n=vi.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=vi.getInertBodyElement(r)}while(r!==s);const o=new pi,a=o.sanitizeChildren(bi(n)||n);return Gr()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see https://g.co/ng/security#xss"),a}finally{if(n){const e=bi(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function bi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var _i=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function wi(e){const t=ji();return t?t.sanitize(_i.HTML,e)||"":Rr(e,"HTML")?Dr(e):yi(je(),_e(e))}function xi(e){const t=ji();return t?t.sanitize(_i.STYLE,e)||"":Rr(e,"Style")?Dr(e):_e(e)}function Ci(e){const t=ji();return t?t.sanitize(_i.URL,e)||"":Rr(e,"URL")?Dr(e):ei(_e(e))}function $i(e){const t=ji();if(t)return t.sanitize(_i.RESOURCE_URL,e)||"";if(Rr(e,"ResourceURL"))return Dr(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Si(e){const t=ji();if(t)return t.sanitize(_i.SCRIPT,e)||"";if(Rr(e,"Script"))return Dr(e);throw new Error("unsafe value used in a script context")}function Ei(e){return Ir(e)}function Oi(e){return kr(e)}function Ii(e){return Tr(e)}function ki(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?$i:Ci}function Ti(e,t,n){return ki(t,n)(e)}function ji(){const e=Xe();return e&&e[12]}function Vi(e){return e.ngDebugContext}function Pi(e){return e.ngOriginalError}function Mi(e,...t){e.error(...t)}class Ai{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||Mi}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Vi(e)?Vi(e):this._findContext(Pi(e)):null}_findOriginalError(e){let t=Pi(e);for(;t&&Pi(t);)t=Pi(t);return t}}const Ni={name:"custom-elements"},Di={name:"no-errors-schema"},Ri=/([A-Z])/g;function Fi(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function Li(e){let t=Le(e);if(t){if(Array.isArray(t)){const r=t;let i,s=void 0,o=void 0;if((n=e)&&n.constructor&&n.constructor.\u0275cmp){if(i=zi(r,e),-1==i)throw new Error("The provided component was not found in the application");s=e}else if(function(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(i=function(e,t){let n=e[1].firstChild;for(;n;){const r=n.directiveEnd;for(let i=n.directiveStart;i=0){const e=Me(r[i]),n=Bi(r,i,e);Ui(e,n),t=n;break}}}}var n;return t||null}function Bi(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Hi(e){let t,n=Le(e);if(Array.isArray(n)){const r=zi(n,e);t=Fe(r,n);const i=Bi(n,r,t[0]);i.component=e,Ui(e,i),Ui(i.native,i)}else t=Fe(n.nodeIndex,n.lView);return t}function Ui(e,t){e.__ngContext__=t}function qi(e,t){const n=e[1];for(let r=20;r("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B))();function Qi(e){return{name:"window",target:e.ownerDocument.defaultView}}function Zi(e){return{name:"document",target:e.ownerDocument}}function Xi(e){return{name:"body",target:e.ownerDocument.body}}function Yi(e){return e instanceof Function?e():e}var Ji=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let es;function ts(e,t){return es(e,t)}function ns(e){const t=e[3];return pe(t)?t[3]:t}function rs(e){return function(e){let t=he(e)?e:Be(e);for(;t&&!(512&t[2]);)t=ns(t);return t}(e)[8]}function is(e){return os(e[13])}function ss(e){return os(e[4])}function os(e){for(;null!==e&&!pe(e);)e=e[4];return e}function as(e,t,n,r,i){if(null!=r){let s,o=!1;pe(r)?s=r:he(r)&&(o=!0,r=r[0]);const a=Me(r);0===e&&null!==n?null==i?bs(t,n,a):ys(t,n,a,i||null,!0):1===e&&null!==n?ys(t,n,a,i||null,!0):2===e?Ts(t,a,o):3===e&&t.destroyNode(a),null!=s&&function(e,t,n,r,i){const s=n[7];s!==Me(n)&&as(t,e,r,s,i);for(let o=10;o0&&(e[n-1][4]=r[4]);const o=Hn(e,10+t);Vs(r[1],i=r,i[11],2,null,null),i[0]=null,i[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}var i;return r}function fs(e,t){if(!(256&t[2])){const n=t[11];Ve(n)&&n.destroyNode&&Vs(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return gs(e[1],e);for(;t;){let n=null;if(he(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)he(t)&&gs(t[1],t),t=t[3];null===t&&(t=e),he(t)&&gs(t[1],t),n=t&&t[4]}t=n}}(t)}}function gs(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?e[a]():e[-a].unsubscribe(),r+=2}else n[r].call(e[n[r+1]]);t[7]=null}}(e,t),1===t[1].type&&Ve(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&pe(t[3])){n!==t[3]&&hs(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function ms(e,t,n){return vs(e,t.parent,n)}function vs(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const t=e.data[r.directiveStart].encapsulation;if(t===N.None||t===N.Emulated)return null}return Ne(r,n)}function ys(e,t,n,r,i){Ve(e)?e.insertBefore(t,n,r,i):t.insertBefore(n,r,i)}function bs(e,t,n){Ve(e)?e.appendChild(t,n):t.appendChild(n)}function _s(e,t,n,r,i){null!==r?ys(e,t,n,r,i):bs(e,t,n)}function ws(e,t){return Ve(e)?e.parentNode(t):t.parentNode}function xs(e,t,n){return Ss(e,t,n)}function Cs(e,t,n){return 40&e.type?Ne(e,n):null}let $s,Ss=Cs;function Es(e,t){Ss=e,$s=t}function Os(e,t,n,r){const i=ms(e,r,t),s=t[11],o=xs(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(let a=0;as?"":i[c+1].toLowerCase();const t=8&r?e:null;if(t&&-1!==Ns(t,u,0)||2&r&&u!==e){if(Bs(r))return!1;o=!0}}}}else{if(!o&&!Bs(r)&&!Bs(l))return!1;if(o&&Bs(l))continue;o=!1,r=l|1&r}}return Bs(r)||o}function Bs(e){return 0==(1&e)}function Hs(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+="."+o:4&r&&(i+=" "+o);else""===i||Bs(o)||(t+=Ws(s,i),i=""),r=o,s=s||!Bs(r);n++}return""!==i&&(t+=Ws(s,i)),t}const Gs={};function Ks(e){Qs(Ye(),Xe(),It()+e,ot())}function Qs(e,t,n,r){if(!r)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&At(t,r,n)}else{const r=e.preOrderHooks;null!==r&&Nt(t,r,0,n)}kt(n)}function Zs(e,t){return e<<17|t<<2}function Xs(e){return e>>17&32767}function Ys(e){return 2|e}function Js(e){return(131068&e)>>2}function eo(e,t){return-131069&e|t<<2}function to(e){return 1|e}const no=(()=>Promise.resolve(null))();function ro(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r20&&Qs(e,t,20,ot()),n(r,i)}finally{kt(s)}}function po(e,t,n){if(fe(t)){const r=t.directiveEnd;for(let i=t.directiveStart;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=s&&n.push(s),n.push(r,i,o)}}function $o(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function So(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Eo(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&No(n)}}function No(e){for(let n=is(e);null!==n;n=ss(n))for(let e=10;e0&&No(t)}const t=e[1].components;if(null!==t)for(let n=0;n0&&No(r)}}function Do(e,t){const n=Fe(t,e),r=n[1];!function(e,t){for(let n=t.length;nt=e),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Lo(e)),2&e.flags){e.flags&=-3;const t=e.playerHandler;t&&t.flushPlayers()}e.clean=no,t(null)})}}(Fo(Hi(e))[8])}const Jo=new In("INJECTOR",-1);class ea{get(e,t=mr){if(t===mr){const t=new Error(`NullInjectorError: No provider for ${c(e)}!`);throw t.name="NullInjectorError",t}return t}}const ta=new In("Set Injector scope."),na={},ra={},ia=[];let sa=void 0;function oa(){return void 0===sa&&(sa=new ea),sa}function aa(e,t=null,n=null,r){const i=la(e,t,n,r);return i._resolveInjectorDefTypes(),i}function la(e,t=null,n=null,r){return new ua(e,n,t||oa(),r)}class ua{constructor(e,t,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];t&&Ln(t,n=>this.processProvider(n,e,t)),Ln([e],e=>this.processInjectorType(e,[],i)),this.records.set(Jo,ha(void 0,this));const s=this.records.get(ta);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof e?null:c(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=mr,n=O.Default){this.assertNotDestroyed();const r=_r(this);try{if(!(n&O.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(i=e)||"object"==typeof i&&i instanceof In)&&_(e);t=n&&this.injectableDefInScope(n)?ha(ca(e),na):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&O.Self?oa():this.parent).get(e,t=n&O.Optional&&t===mr?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(c(e)),r)throw s;return function(e,t,n,r){const i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=c(t);if(Array.isArray(t))i=t.map(c).join(" -> ");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):c(r)))}i=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(vr,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(s,e,"R3InjectorError",this.source)}throw s}finally{_r(r)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(c(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=f(e)))return!1;let r=x(e);const i=null==r&&e.ngModule||void 0,s=void 0===i?e:i,o=-1!==n.indexOf(s);if(void 0!==i&&(r=x(i)),null==r)return!1;if(null!=r.imports&&!o){let e;n.push(s);try{Ln(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{}if(void 0!==e)for(let t=0;tthis.processProvider(e,n,r||ia))}}this.injectorDefTypes.add(s),this.records.set(s,ha(r.factory,na));const a=r.providers;if(null!=a&&!o){const t=e;Ln(a,e=>this.processProvider(e,t,a))}return void 0!==i&&void 0!==e.providers}processProvider(e,t,n){let r=fa(e=f(e))?e:f(e&&e.provide);const i=function(e,t,n){return pa(e)?ha(void 0,e.useValue):ha(da(e),na)}(e);if(fa(e)||!0!==e.multi)this.records.get(r);else{let t=this.records.get(r);t||(t=ha(void 0,na,!0),t.factory=()=>Sr(t.multi),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,i)}hydrate(e,t){var n;return t.value===na&&(t.value=ra,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function ca(e){const t=_(e),n=null!==t?t.factory:ye(e);if(null!==n)return n;const r=x(e);if(null!==r)return r.factory;if(e instanceof In)throw new Error(`Token ${c(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=Un(t,"?");throw new Error(`Can't resolve all parameters for ${c(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[C]||e[S]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function da(e,t,n){let r=void 0;if(fa(e)){const t=f(e);return ye(t)||ca(t)}if(pa(e))r=()=>f(e.useValue);else if((i=e)&&i.useFactory)r=()=>e.useFactory(...Sr(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>xr(f(e.useExisting));else{const t=f(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return ye(t)||ca(t);r=()=>new t(...Sr(e.deps))}var i;return r}function ha(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function pa(e){return null!==e&&"object"==typeof e&&yr in e}function fa(e){return"function"==typeof e}function ga(e,t,n){return aa({name:n},t,e,n)}const ma=ga;let va=(()=>{class e{static create(e,t){return Array.isArray(e)?ma(e,t,""):ma(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=mr,e.NULL=new ea,e.\u0275prov=v({token:e,providedIn:"any",factory:()=>xr(Jo)}),e.__NG_ELEMENT_ID__=-1,e})();function ya(e){Ia(e);const t=$a(e,!1);return null===t?null:(void 0===t.component&&(t.component=function(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function ba(e){Ia(e);const t=$a(e,!1);return null===t?null:t.lView[8]}function _a(e){const t=$a(e,!1);if(null===t)return null;let n,r=t.lView;for(;2===r[1].type&&(n=ns(r));)r=n;return 512&r[2]?null:r[8]}function wa(e){return[...rs(e).components]}function xa(e){const t=$a(e,!1);return null===t?va.NULL:new gn(t.lView[1].data[t.nodeIndex],t.lView)}function Ca(e){const t=$a(e);return void 0===t.directives&&(t.directives=Gi(t.nodeIndex,t.lView,!1)),null===t.directives?[]:[...t.directives]}function $a(e,t=!0){const n=Li(e);if(!n&&t)throw new Error("Invalid ng target");return n}function Sa(e){return Li(e).native}function Ea(e){Ia(e);const t=$a(e,!1);if(null===t)return[];const n=t.lView,r=n[7],i=n[1].cleanup,s=[];if(i&&r)for(let o=0;o=0?"dom":"output",p="boolean"==typeof d&&d;e==u&&s.push({element:e,name:l,callback:c,useCapture:p,type:h})}}return s.sort(Oa),s}function Oa(e,t){return e.name==t.name?0:e.nameXo(e))}let Ta=!1;function ja(){Ta||(Ta=!0,Va("getComponent",ya),Va("getContext",ba),Va("getListeners",Ea),Va("getOwningComponent",_a),Va("getHostElement",Sa),Va("getInjector",xa),Va("getRootComponents",wa),Va("getDirectives",Ca),Va("applyChanges",ka))}function Va(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=B;if(n){let r=n.ng;r||(r=n.ng={}),r[e]=t}}}function Pa(e,t={}){const n=t.rendererFactory||Pe,r=t.sanitizer||null,i=le(e);i.type!=e&&(i.type=e);const s=i.selectors[0][0],o=yo(n.createRenderer(null,null),t.host||s,i.encapsulation),a=i.onPush?576:528,l=Na(t.scheduler,t.playerHandler),u=n.createRenderer(o,i),c=vo(0,null,null,1,0,null,null,null,null,null),d=io(null,c,l,a,null,null,n,u,null,t.injector||null);let h;wt(d);try{n.begin&&n.begin(),h=Aa(Ma(o,i,d,n,u,r),i,d,l,t.hostFeatures||null),lo(c,d,null),uo(c,d,null,null)}finally{Et(),n.end&&n.end()}return h}function Ma(e,t,n,r,i,s){const o=n[1];n[20]=e;const a=so(o,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(Zo(a,l,!0),null!==e&&(Bt(i,e,l),null!==a.classes&&As(i,e,a.classes),null!==a.styles&&Ms(i,e,a.styles)));const u=r.createRenderer(e,t),c=io(n,mo(t),null,t.onPush?64:16,n[20],a,r,u,s||null,null);return o.firstCreatePass&&(nn(Yt(a,n),o,t.type),So(o,a),Oo(a,n.length,1)),Ro(n,c),n[20]=c}function Aa(e,t,n,r,i){const s=n[1],o=function(e,t,n){const r=et();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Io(e,r,t,ao(e,t,1,null),n));const i=hn(t,e,r.directiveStart,r);Ui(i,t);const s=Ne(r,t);return s&&Ui(s,t),i}(s,n,t);if(r.components.push(o),e[8]=o,i&&i.forEach(e=>e(o,t)),t.contentQueries){const e=et();t.contentQueries(1,o,e.directiveStart)}const a=et();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(kt(a.index),Co(n[1],a,0,a.directiveStart,a.directiveEnd,t),$o(t,o)),o}function Na(e,t){return{components:[],scheduler:e||Ki,clean:qo,playerHandler:t||null,flags:0}}function Da(e,t){Mt(Be(e)[1],et())}function Ra(e){return rs(e).clean}function Fa(e){return Object.getPrototypeOf(e.prototype).constructor}function La(e){let t=Fa(e.type),n=!0;const r=[e];for(;t;){let i=void 0;if(ve(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);const t=e;t.inputs=Ba(e.inputs),t.declaredInputs=Ba(e.declaredInputs),t.outputs=Ba(e.outputs);const n=i.hostBindings;n&&qa(e,n);const s=i.viewQuery,o=i.contentQueries;if(s&&Ha(e,s),o&&Ua(e,o),u(e.inputs,i.inputs),u(e.declaredInputs,i.declaredInputs),u(e.outputs,i.outputs),ve(i)&&i.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(i.data.animation)}}const t=i.features;if(t)for(let r=0;r=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=qt(i.hostAttrs,n=qt(n,i.hostAttrs))}}(r)}function Ba(e){return e===H?{}:e===U?[]:e}function Ha(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function Ua(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,i)=>{t(e,r,i),n(e,r,i)}:t}function qa(e,t){const n=e.hostBindings;e.hostBindings=n?(e,r)=>{t(e,r),n(e,r)}:t}const Wa=["providersResolver"],za=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function Ga(e){let t=Fa(e.type),n=void 0;n=ve(e)?t.\u0275cmp:t.\u0275dir;const r=e;for(const i of Wa)r[i]=n[i];if(ve(n))for(const i of za)r[i]=n[i]}let Ka=null;function Qa(){if(!Ka){const e=B.Symbol;if(e&&e.iterator)Ka=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Ol(e){return Re(Ge.lFrame.contextLView,20+e)}const Il={\u0275\u0275defineInjectable:v,\u0275\u0275defineInjector:b,\u0275\u0275inject:xr,\u0275\u0275getFactoryOf:function e(t){const n=t;if(g(t))return()=>{const t=e(f(n));return t?t():null};const r=_(n)||x(n);return r&&void 0!==r.factory?r.factory:null},\u0275\u0275invalidFactoryDep:Cr},kl=l({provide:String,useValue:l});function Tl(e){return void 0!==e.useClass}function jl(e){return void 0!==e.useFactory}function Vl(e,t){const n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn,userDeps:void 0};return(Tl(n)||jl(n))&&void 0!==n.deps&&(r.userDeps=ur(n.deps)),Tl(n)?r.useClass=f(n.useClass):function(e){return kl in e}(n)?r.useValue=f(n.useValue):jl(n)?r.useFactory=n.useFactory:function(e){return void 0!==e.useExisting}(n)&&(r.useExisting=f(n.useExisting)),r}const Pl=xn("Injectable",void 0,void 0,void 0,(e,t)=>Al(e,t)),Ml=function(e,t){let n=null,r=null;e.hasOwnProperty(C)||Object.defineProperty(e,C,{get:()=>(null===n&&(n=Nn().compileInjectable(Il,`ng:///${e.name}/\u0275prov.js`,Vl(e,t))),n)}),e.hasOwnProperty(Q)||Object.defineProperty(e,Q,{get:()=>{if(null===r){const n=Vl(e,t),i=Nn();r=i.compileFactory(Il,`ng:///${e.name}/\u0275fac.js`,{name:n.name,type:n.type,typeArgumentCount:n.typeArgumentCount,deps:lr(e),injectFn:"inject",target:i.R3FactoryTarget.Injectable})}return r},configurable:!0})},Al=Ml;function Nl(e){return e.length>1?" ("+function(e){const t=[];for(let n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(e=>c(e.token)).join(" -> ")+")":""}function Dl(e,t,n,r){const i=[t],s=n(i),o=r?function(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,r=Error(n);return r.ngOriginalError=t,r}(s,r):Error(s);return o.addKey=Rl,o.keys=i,o.injectors=[e],o.constructResolvingMessage=n,o.ngOriginalError=r,o}function Rl(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Fl(e,t){const n=[];for(let r=0,i=t.length;re,n=[Wl.fromKey(Ll.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(e,t){if(t){const n=t.map(e=>[e]);return t.map(t=>eu(e,t,n))}return Jl(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=zl);return new Kl(t,n)}function Zl(e){return new Gl(Ll.get(e.provide),[Ql(e)],e.multi||!1)}function Xl(e){const t=function(e,t){for(let n=0;n{if(e instanceof Dn)t.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)t.push(e);else{if(!Array.isArray(e))throw Error("Invalid provider - only instances of Provider and Type are allowed, got: "+e);Yl(e,t)}}),t}function Jl(e){const t=ql.parameters(e);if(!t)return[];if(t.some(e=>null==e))throw Fl(e,t);return t.map(n=>eu(e,n,t))}function eu(e,t,n){let r=null,i=!1;if(!Array.isArray(t))return tu(t instanceof tr?t.token:t,i,null);let s=null;for(let o=0;o{class e{constructor(e,t){this._constructionCounter=0,this._providers=e,this.parent=t||null;const n=e.length;this.keyIds=[],this.objs=[];for(let r=0;r=this._providers.length)throw function(e){return Error(`Index ${e} is out-of-bounds.`)}(e);return this._providers[e]}_new(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw Dl(this,e.key,function(e){return"Cannot instantiate cyclic dependency!"+Nl(e)});return this._instantiateProvider(e)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(e){if(e.multiProvider){const t=[];for(let n=0;nthis._getByReflectiveDependency(e))}catch(o){throw o.addKey&&o.addKey(this,e.key),o}try{i=n(...r)}catch(o){throw Dl(this,e.key,function(e){const t=c(e[0].token);return`${s.message}: Error during instantiation of ${t}!${Nl(e)}.`},s=o)}var s;return i}_getByReflectiveDependency(e){return this._getByKey(e.key,e.visibility,e.optional?null:mr)}_getByKey(t,n,r){return t===e.INJECTOR_KEY?this:n instanceof rr?this._getByKeySelf(t,r):this._getByKeyDefault(t,r,n)}_getObjByKeyId(e){for(let t=0;ta(Me(e[r.index])).target:r.index;if(Ve(n)){let o=null;if(!a&&l&&(o=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let s=0;sn?e[n]:null}"string"==typeof e&&(s+=2)}return null}(e,t,i,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,d=!1;else{s=xu(r,t,s,!1);const e=n.listen(p.name||f,i,s);c.push(s,e),u&&u.push(i,m,g,g+1)}}else s=xu(r,t,s,!0),f.addEventListener(i,s,o),c.push(s),u&&u.push(i,m,g,o)}else s=xu(r,t,s,!1);const h=r.outputs;let p;if(d&&null!==h&&(p=h[i])){const e=p.length;if(e)for(let n=0;n=0}const Lu={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bu(e){return e.substring(Lu.key,Lu.keyEnd)}function Hu(e){return e.substring(Lu.value,Lu.valueEnd)}function Uu(e,t){const n=Lu.textEnd;return n===t?-1:(t=Lu.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Lu.key=t,n),zu(e,t,n))}function qu(e,t){const n=Lu.textEnd;let r=Lu.key=zu(e,t,n);return n===r?-1:(r=Lu.keyEnd=function(e,t,n){let r;for(;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=Gu(e,r,n),r=Lu.value=zu(e,r,n),r=Lu.valueEnd=function(e,t,n){let r=-1,i=-1,s=-1,o=t,a=o;for(;o32&&(a=o),s=i,i=r,r=-33&l}return a}(e,r,n),Gu(e,r,n))}function Wu(e){Lu.key=0,Lu.keyEnd=0,Lu.value=0,Lu.valueEnd=0,Lu.textEnd=e.length}function zu(e,t,n){for(;t=0;n=qu(t,n))ac(e,Bu(t),Hu(t))}function Ju(e){nc(qn,ec,e,!0)}function ec(e,t){for(let n=function(e){return Wu(e),Uu(e,zu(e,0,Lu.textEnd))}(t);n>=0;n=Uu(t,n))qn(e,Bu(t),!0)}function tc(e,t,n,r){const i=Xe(),s=Ye(),o=ht(2);s.firstUpdatePass&&ic(s,e,o,r),t!==Gs&&nl(i,o,t)&&lc(s,s.data[It()],i,i[11],e,i[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=c(Dr(e)))),e}(t,n),r,o)}function nc(e,t,n,r){const i=Ye(),s=ht(2);i.firstUpdatePass&&ic(i,null,s,r);const o=Xe();if(n!==Gs&&nl(o,s,n)){const a=i.data[It()];if(dc(a,r)&&!rc(i,s)){let e=r?a.classesWithoutHost:a.stylesWithoutHost;null!==e&&(n=d(e,n||"")),lu(i,a,o,n,r)}else!function(e,t,n,r,i,s,o,a){i===Gs&&(i=Du);let l=0,u=0,c=0=e.expandoStartIndex}function ic(e,t,n,r){const i=e.data;if(null===i[n+1]){const s=i[It()],o=rc(e,n);dc(s,r)&&null===t&&!o&&(t=!1),t=function(e,t,n,r){const i=mt(e);let s=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=oc(n=sc(null,e,t,n,r),t.attrs,r),s=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==i)if(n=sc(i,e,t,n,r),null===s){let n=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Js(r))return e[Xs(r)]}(e,t,r);void 0!==n&&Array.isArray(n)&&(n=sc(null,e,t,n[1],r),n=oc(n,t.attrs,r),function(e,t,n,r){e[Xs(n?t.classBindings:t.styleBindings)]=r}(e,t,r,n))}else s=function(e,t,n){let r=void 0;const i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(c=!0)}else u=n;if(i)if(0!==l){const t=Xs(e[a+1]);e[r+1]=Zs(t,a),0!==t&&(e[t+1]=eo(e[t+1],r)),e[a+1]=131071&e[a+1]|r<<17}else e[r+1]=Zs(a,0),0!==a&&(e[a+1]=eo(e[a+1],r)),a=r;else e[r+1]=Zs(l,0),0===a?a=r:e[l+1]=eo(e[l+1],r),l=r;c&&(e[r+1]=Ys(e[r+1])),Ru(e,u,r,!0),Ru(e,u,r,!1),function(e,t,n,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&zn(s,t)>=0&&(n[r+1]=to(n[r+1]))}(t,u,e,r,s),o=Zs(a,l),s?t.classBindings=o:t.styleBindings=o}(i,s,t,n,o,r)}}function sc(e,t,n,r,i){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const t=e[i],s=Array.isArray(t),l=s?t[1]:t,u=null===l;let c=n[i+1];c===Gs&&(c=u?Du:void 0);let d=u?Wn(c,r):l===r?c:void 0;if(s&&!cc(d)&&(d=Wn(t,r)),cc(d)&&(a=d,o))return a;const h=e[i+1];i=o?Xs(h):Js(h)}if(null!==t){let e=s?t.residualClasses:t.residualStyles;null!=e&&(a=Wn(e,r))}return a}function cc(e){return void 0!==e}function dc(e,t){return 0!=(e.flags&(t?16:32))}function hc(e,t=""){const n=Xe(),r=Ye(),i=e+20,s=r.firstCreatePass?so(r,i,1,t,null):r.data[i],o=n[i]=ls(n[11],t);Os(r,n,o,s),rt(s,!1)}function pc(e){return fc("",e,""),pc}function fc(e,t,n){const r=Xe(),i=ll(r,e,t,n);return i!==Gs&&Qo(r,It(),i),fc}function gc(e,t,n,r,i){const s=Xe(),o=ul(s,e,t,n,r,i);return o!==Gs&&Qo(s,It(),o),gc}function mc(e,t,n,r,i,s,o){const a=Xe(),l=cl(a,e,t,n,r,i,s,o);return l!==Gs&&Qo(a,It(),l),mc}function vc(e,t,n,r,i,s,o,a,l){const u=Xe(),c=dl(u,e,t,n,r,i,s,o,a,l);return c!==Gs&&Qo(u,It(),c),vc}function yc(e,t,n,r,i,s,o,a,l,u,c){const d=Xe(),h=hl(d,e,t,n,r,i,s,o,a,l,u,c);return h!==Gs&&Qo(d,It(),h),yc}function bc(e,t,n,r,i,s,o,a,l,u,c,d,h){const p=Xe(),f=pl(p,e,t,n,r,i,s,o,a,l,u,c,d,h);return f!==Gs&&Qo(p,It(),f),bc}function _c(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f){const g=Xe(),m=fl(g,e,t,n,r,i,s,o,a,l,u,c,d,h,p,f);return m!==Gs&&Qo(g,It(),m),_c}function wc(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m){const v=Xe(),y=gl(v,e,t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m);return y!==Gs&&Qo(v,It(),y),wc}function xc(e){const t=Xe(),n=al(t,e);return n!==Gs&&Qo(t,It(),n),xc}function Cc(e,t,n){nc(qn,ec,ll(Xe(),e,t,n),!0)}function $c(e,t,n,r,i){nc(qn,ec,ul(Xe(),e,t,n,r,i),!0)}function Sc(e,t,n,r,i,s,o){nc(qn,ec,cl(Xe(),e,t,n,r,i,s,o),!0)}function Ec(e,t,n,r,i,s,o,a,l){nc(qn,ec,dl(Xe(),e,t,n,r,i,s,o,a,l),!0)}function Oc(e,t,n,r,i,s,o,a,l,u,c){nc(qn,ec,hl(Xe(),e,t,n,r,i,s,o,a,l,u,c),!0)}function Ic(e,t,n,r,i,s,o,a,l,u,c,d,h){nc(qn,ec,pl(Xe(),e,t,n,r,i,s,o,a,l,u,c,d,h),!0)}function kc(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f){nc(qn,ec,fl(Xe(),e,t,n,r,i,s,o,a,l,u,c,d,h,p,f),!0)}function Tc(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m){nc(qn,ec,gl(Xe(),e,t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m),!0)}function jc(e){nc(qn,ec,al(Xe(),e),!0)}function Vc(e,t,n){Xu(ll(Xe(),e,t,n))}function Pc(e,t,n,r,i){Xu(ul(Xe(),e,t,n,r,i))}function Mc(e,t,n,r,i,s,o){Xu(cl(Xe(),e,t,n,r,i,s,o))}function Ac(e,t,n,r,i,s,o,a,l){Xu(dl(Xe(),e,t,n,r,i,s,o,a,l))}function Nc(e,t,n,r,i,s,o,a,l,u,c){Xu(hl(Xe(),e,t,n,r,i,s,o,a,l,u,c))}function Dc(e,t,n,r,i,s,o,a,l,u,c,d,h){Xu(pl(Xe(),e,t,n,r,i,s,o,a,l,u,c,d,h))}function Rc(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f){Xu(fl(Xe(),e,t,n,r,i,s,o,a,l,u,c,d,h,p,f))}function Fc(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m){Xu(gl(Xe(),e,t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m))}function Lc(e){Xu(al(Xe(),e))}function Bc(e,t,n,r,i){return tc(e,ll(Xe(),t,n,r),i,!1),Bc}function Hc(e,t,n,r,i,s,o){return tc(e,ul(Xe(),t,n,r,i,s),o,!1),Hc}function Uc(e,t,n,r,i,s,o,a,l){return tc(e,cl(Xe(),t,n,r,i,s,o,a),l,!1),Uc}function qc(e,t,n,r,i,s,o,a,l,u,c){return tc(e,dl(Xe(),t,n,r,i,s,o,a,l,u),c,!1),qc}function Wc(e,t,n,r,i,s,o,a,l,u,c,d,h){return tc(e,hl(Xe(),t,n,r,i,s,o,a,l,u,c,d),h,!1),Wc}function zc(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f){return tc(e,pl(Xe(),t,n,r,i,s,o,a,l,u,c,d,h,p),f,!1),zc}function Gc(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m){return tc(e,fl(Xe(),t,n,r,i,s,o,a,l,u,c,d,h,p,f,g),m,!1),Gc}function Kc(e,t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m,v,y){return tc(e,gl(Xe(),t,n,r,i,s,o,a,l,u,c,d,h,p,f,g,m,v),y,!1),Kc}function Qc(e,t,n){return tc(e,al(Xe(),t),n,!1),Qc}function Zc(e,t,n){const r=Xe();return nl(r,dt(),t)&&wo(Ye(),Tt(),r,e,t,r[11],n,!0),Zc}function Xc(e,t,n){const r=Xe();if(nl(r,dt(),t)){const i=Ye(),s=Tt();wo(i,s,r,e,t,zo(mt(i.data),s,r),n,!0)}return Xc}const Yc=void 0;var Jc=["en",[["a","p"],["AM","PM"],Yc],[["AM","PM"],Yc,Yc],[["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"]],Yc,[["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"]],Yc,[["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}",Yc,"{1} 'at' {0}",Yc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##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}];let ed={};function td(e,t,n){"string"!=typeof t&&(n=t,t=e[ad.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),ed[t]=e,n&&(ed[t][ad.ExtraData]=n)}function nd(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=sd(t);if(n)return n;const r=t.split("-")[0];if(n=sd(r),n)return n;if("en"===r)return Jc;throw new Error(`Missing locale data for the locale "${e}".`)}function rd(e){return nd(e)[ad.CurrencyCode]||null}function id(e){return nd(e)[ad.PluralCase]}function sd(e){return e in ed||(ed[e]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[e]),ed[e]}function od(){ed={}}var ad=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}({});const ld=["zero","one","two","few","many"],ud="en-US",cd="USD",dd={marker:"element"},hd={marker:"ICU"};var pd=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}({});let fd=ud;function gd(e){var t;null==(t=e)&&m("Expected localeId to be defined",t,null,"!="),"string"==typeof e&&(fd=e.toLowerCase().replace(/_/g,"-"))}function md(e,t,n){const r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?Cs(e,0,n):Me(n[i])}function vd(e,t,n,r,i){const s=t.insertBeforeIndex;if(Array.isArray(s)){let o=r,a=null;if(3&t.type||(a=o,o=i),null!==o&&0==(2&t.flags))for(let t=1;t1)for(let n=e.length-2;n>=0;n--){const r=e[n];bd(r)||_d(r,t)&&null===wd(r)&&xd(r,t.index)}}function bd(e){return!(64&e.type)}function _d(e,t){return bd(t)||e.index>t.index}function wd(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function xd(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(Es(md,vd),e.insertBeforeIndex=t)}function Cd(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function $d(e,t,n){const r=oo(e,n,64,null,null);return yd(t,r),r}function Sd(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}let Ed=0,Od=0;function Id(e,t,n,r){const i=n[11];let s,o=null;for(let a=0;a>>17;let c,d;if(null===o&&(o=u,s=ws(i,r)),u===o?(c=r,d=s):(c=null,d=Me(n[u])),null!==d){const t=(131070&l)>>>1;ys(i,d,n[t],c,!1);const r=Cd(e,t);if(null!==r&&"object"==typeof r){const t=Sd(r,n);null!==t&&Id(e,r.create[t],n,n[r.anchorIdx])}}break;case 1:const h=t[++a],p=t[++a];jo(i,Ae(l>>>1,n),null,null,h,p,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}else switch(l){case hd:const e=t[++a],r=t[++a];null===n[r]&&Ui(n[r]=cs(i,e),n);break;case dd:const s=t[++a],o=t[++a];null===n[o]&&Ui(n[o]=ds(i,s,null),n)}}}function kd(e,t,n,r,i){for(let s=0;s>>2;switch(3&s){case 1:const s=n[++o],l=n[++o],u=e.data[a];"string"==typeof u?jo(t[11],t[a],null,u,s,i,l):wo(e,u,t,s,i,t[11],l,!1);break;case 0:const c=t[a];null!==c&&us(t[11],c,i);break;case 2:jd(e,Cd(e,a),t,i);break;case 3:Td(e,Cd(e,a),r,t)}}}}else{const i=n[s+1];if(i>0&&3==(3&i)){const n=Cd(e,i>>>2);t[n.currentCaseLViewIndex]<0&&Td(e,n,r,t)}}s+=a}}function Td(e,t,n,r){let i=r[t.currentCaseLViewIndex];if(null!==i){let s=Ed;i<0&&(i=r[t.currentCaseLViewIndex]=~i,s=-1),kd(e,r,t.update[i],n,s)}}function jd(e,t,n,r){const i=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,t){const n=id(t)(parseInt(e,10)),r=ld[n];return void 0!==r?r:"other"}(t,fd);n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(Sd(t,n)!==i&&(Vd(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const r=n[t.anchorIdx];r&&Id(e,t.create[i],n,r)}}function Vd(e,t,n){let r=Sd(t,n);if(null!==r){const i=t.remove[r];for(let t=0;t0){const e=Ae(r,n);null!==e&&Ts(n[11],e)}else Vd(e,Cd(e,~r),n)}}}const Pd=/\ufffd(\d+):?\d*\ufffd/gi,Md=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Ad=/\ufffd(\d+)\ufffd/,Nd=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Dd=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Rd=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Fd=/\uE500/g;function Ld(e,t,n,r,i,s,o){const a=ao(e,r,1,null);let l=a<0?t[o]:(e.push(r,n),i(t[1].data[~o],t),s())}return 0===e.length?null:(n=e.pop(),r=e.pop(),s())}return function(n,r){for(t=r;e.length;)e.pop();return i(n.value,r),s}}())),i.push(l,null===s?"":s);const c=oo(e,a,o?32:1,null===s?"":s,null);yd(n,c);const d=c.index;return rt(c,!1),null!==u&&t!==u&&function(e,t){let n=e.insertBeforeIndex;var r;null===n?(Es(md,vd),n=e.insertBeforeIndex=[null,t]):("Expecting array here",(r=Array.isArray(n))!=!0&&m("Expecting array here",r,true,"=="),n.push(t))}(u,d),c}function Bd(e,t,n,r,i,s,o){const a=o.match(Pd),l=Ld(e,t,n,s,r,a?null:o,!1);a&&Hd(i,o,l.index)}function Hd(e,t,n,r,i=null){const s=e.length,o=s+1;e.push(null,null);const a=s+2,l=t.split(Pd);let u=0;for(let c=0;cn.length&&n.push(i)}return{type:r,mainBinding:i,cases:t,values:n}}function Gd(e){if(!e)return[];let t=0;const n=[],r=[],i=/[{}]/g;let s;for(i.lastIndex=0;s=i.exec(e);){const i=s.index;if("}"==s[0]){if(n.pop(),0==n.length){const n=e.substring(t,i);Nd.test(n)?r.push(zd(n)):r.push(n),t=i+1}}else{if(0==n.length){const n=e.substring(t,i);r.push(n),t=i+1}n.push("{")}}const o=e.substring(t);return r.push(o),r}function Kd(e,t,n,r,i,s,o,a){const l=[],u=[],c=[];t.cases.push(s),t.create.push(l),t.remove.push(u),t.update.push(c);const d=Qr(je()).getInertBodyElement(o),h=bi(d)||d;return h?Qd(e,t,n,r,l,u,c,h,i,a,0):0}function Qd(e,t,n,r,i,s,o,a,l,u,c){let d=0,h=a.firstChild;for(;h;){const a=ao(e,n,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:const p=h,f=p.tagName.toLowerCase();if(li.hasOwnProperty(f)){Yd(i,dd,f,l,a),e.data[a]=f;const g=p.attributes;for(let e=0;e{const s=r||i,o=e[s]||[];if(o.length||(s.split("|").forEach(e=>{const t=e.match(oh),n=t?parseInt(t[1],10):0,r=sh.test(e);o.push([n,r,e])}),e[s]=o),!o.length)throw new Error("i18n postprocess: unmatched placeholder - "+s);const a=t[t.length-1];let l=0;for(let e=0;et.hasOwnProperty(r)?`${n}${t[r]}${o}`:e),n=n.replace(rh,(e,n)=>t.hasOwnProperty(n)?t[n]:e),n=n.replace(ih,(e,n)=>{if(t.hasOwnProperty(n)){const r=t[n];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${e} with key: ${n}`);return r.shift()}return e}),n):n}function lh(e,t,n=-1){const r=Ye(),i=Xe(),s=20+e,o=qe(r.consts,t),a=nt();r.firstCreatePass&&function(e,t,n,r,i,s){const o=nt(),a=[],l=[],u=[[]],c=(d=i=function(e,t){if(function(e){return-1===e}(t))return qd(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return qd(e.substring(n,r))}}(i,s),d.replace(Fd," ")).split(Rd);var d;for(let h=0;h>>pd.SHIFT;let d=e[c];null===d&&(d=e[c]=l?i.createComment(a):ls(i,a)),u&&null!==n&&ys(i,n,d,r,!1)}}(i,l.create,u,a&&8&a.type?i[a.index]:null),pt(!0)}function uh(){pt(!1)}function ch(e,t,n){lh(e,t,n),uh()}function dh(e,t){const n=Ye();!function(e,t,n){const r=et().index,i=[];if(e.firstCreatePass&&null===e.data[t]){for(let e=0;e0){const r=e.data[n];kd(e,t,Array.isArray(r)?r:r.update,ut()-Od-1,Ed)}Ed=0,Od=0}(Ye(),Xe(),e+20)}function fh(e,t={}){return ah(e,t)}function gh(e,t,n,r,i){if(e=f(e),Array.isArray(e))for(let s=0;s>20;if(fa(e)||!e.multi){const r=new Lt(l,i,su),p=yh(a,t,i?c:c+h,d);-1===p?(nn(Yt(u,o),s,a),mh(s,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),n.push(r),o.push(r)):(n[p]=r,o[p]=r)}else{const p=yh(a,t,c+h,d),f=yh(a,t,c,c+h),g=p>=0&&n[p],m=f>=0&&n[f];if(i&&!m||!i&&!g){nn(Yt(u,o),s,a);const c=function(e,t,n,r,i){const s=new Lt(e,n,su);return s.multi=[],s.index=t,s.componentProviders=0,vh(s,i,r&&!n),s}(i?_h:bh,n.length,i,r,l);!i&&m&&(n[f].providerFactory=c),mh(s,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),n.push(c),o.push(c)}else mh(s,e,p>-1?p:f,vh(n[i?f:p],l,!i&&r));!i&&r&&m&&n[f].componentProviders++}}}function mh(e,t,n,r){const i=fa(t);if(i||t.useClass){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const o=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const e=o.indexOf(n);-1===e?o.push(n,[r,s]):o[e+1].push(r,s)}else o.push(n,s)}}}function vh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function yh(e,t,n,r){for(let i=n;i{n.providersResolver=(n,r)=>function(e,t,n){const r=Ye();if(r.firstCreatePass){const i=ve(e);gh(n,r.data,r.blueprint,i,!0),gh(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}class Ch{}class $h{}function Sh(e){const t=Error(`No component factory found for ${c(e)}. Did you add it to @NgModule.entryComponents?`);return t[Eh]=e,t}const Eh="ngComponent";class Oh{resolveComponentFactory(e){throw Sh(e)}}let Ih=(()=>{class e{}return e.NULL=new Oh,e})();class kh{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=Ah,e})();class Dh{}let Rh=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Lh(),e})();const Fh=Bh,Lh=Fh;function Bh(){const e=Xe(),t=Fe(et().index,e);return function(e){return e[11]}(he(t)?t:e)}let Hh=(()=>{class e{}return e.\u0275prov=v({token:e,providedIn:"root",factory:()=>null}),e})();class Uh{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const qh=new Uh("11.0.3");class Wh{constructor(){}supports(e){return Ya(e)}create(e){return new Gh(e)}}const zh=(e,t)=>t;class Gh{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||zh}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){const s=!n||t&&t.currentIndex{r=this._trackByFn(t,e),null!==i&&Object.is(i.trackById,r)?(s&&(i=this._verifyReinsertion(i,e,r,t)),Object.is(i.item,e)||this._addIdentityChange(i,e)):(i=this._mismatch(i,e,r,t),s=!0),i=i._next,t++}),this.length=t;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new Kh(t,n),i,r),e}_verifyReinsertion(e,t,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Zh),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Zh),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Kh{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Qh{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class Zh{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Qh,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Xh(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const 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){const 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)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new ep(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))}}class ep{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let tp=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ir,new nr]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=v({token:e,providedIn:"root",factory:()=>new e([new Wh])}),e})(),np=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ir,new nr]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=v({token:e,providedIn:"root",factory:()=>new e([new Yh])}),e})();function rp(e,t,n,r,i=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&r.push(Me(s)),pe(s))for(let e=10;e-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}fs(this._lView[1],this._lView)}onDestroy(e){bo(this._lView[1],this._lView,null,e)}markForCheck(){Fo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Bo(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){at(!0);try{Bo(e,t,n)}finally{at(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,Vs(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class sp extends ip{constructor(e){super(e),this._view=e}detectChanges(){Ho(this._view)}checkNoChanges(){!function(e){at(!0);try{Ho(e)}finally{at(!1)}}(this._view)}get context(){return null}}const op=up,ap=op;let lp=(()=>{class e{}return e.__NG_ELEMENT_ID__=ap,e.__ChangeDetectorRef__=!0,e})();function up(e=!1){return function(e,t,n){if(!n&&ge(e)){const n=Fe(e.index,t);return new ip(n,n)}return 47&e.type?new ip(t[16],t):null}(et(),Xe(),e)}const cp=[new Yh],dp=new tp([new Wh]),hp=new np(cp),pp=yp,fp=pp;let gp=(()=>{class e{}return e.__NG_ELEMENT_ID__=fp,e})();const mp=gp,vp=class extends mp{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=io(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),lo(t,n,e),new ip(n)}};function yp(){return bp(et(),Xe())}function bp(e,t){return 4&e.type?new vp(t,e,Ph(e,t)):null}class _p{}class wp{}const xp=Sp,Cp=xp;let $p=(()=>{class e{}return e.__NG_ELEMENT_ID__=Cp,e})();function Sp(){return Tp(et(),Xe())}const Ep=$p,Op=class extends Ep{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Ph(this._hostTNode,this._hostLView)}get injector(){return new gn(this._hostTNode,this._hostLView)}get parentInjector(){const e=tn(this._hostTNode,this._hostLView);if(zt(e)){const t=Kt(e,this._hostLView),n=Gt(e);return new gn(t[1].data[n+8],t)}return new gn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Ip(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,i){const s=n||this.parentInjector;if(!i&&null==e.ngModule&&s){const e=s.get(_p,null);e&&(i=e)}const o=e.create(s,r,void 0,i);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,r=n[1];if(pe(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],r=new Op(t,t[6],t[3]);r.detach(r.indexOf(e))}}const i=this._adjustIndex(t),s=this._lContainer;!function(e,t,n,r){const i=10+r,s=n.length;r>0&&(n[i-1][4]=t),r{},qp=new Map;function Wp(e){let t=qp.get(e);return t||(t=c(e)+"_"+qp.size,qp.set(e,t)),t}function zp(e,t,n,r){if(Xa.isWrapped(r)){r=Xa.unwrap(r);const i=e.def.nodes[t].bindingIndex+n,s=Xa.unwrap(e.oldValues[i]);e.oldValues[i]=new Xa(s)}return r}function Gp(e){return{id:"$$undefined",styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let Kp=0;function Qp(e,t,n,r){return!(!(2&e.state)&&Object.is(e.oldValues[t.bindingIndex+n],r))}function Zp(e,t,n,r){return!!Qp(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function Xp(e,t,n,r){const i=e.oldValues[t.bindingIndex+n];if(1&e.state||!Za(i,r)){const s=t.bindings[n].name;throw jp(Hp.createDebugContext(e,t.nodeIndex),`${s}: ${i}`,`${s}: ${r}`,0!=(1&e.state))}}function Yp(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Jp(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function ef(e,t,n,r){try{return Yp(33554432&e.def.nodes[t].flags?Dp(e,t).componentView:e),Hp.handleEvent(e,t,n,r)}catch(i){e.root.errorHandler.handleError(i)}}function tf(e){return e.parent?Dp(e.parent,e.parentNodeDef.nodeIndex):null}function nf(e){return e.parent?e.parentNodeDef.parent:null}function rf(e,t){switch(201347067&t.flags){case 1:return Dp(e,t.nodeIndex).renderElement;case 2:return Np(e,t.nodeIndex).renderText}}function sf(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function of(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function af(e){return 1<{"number"==typeof e?(t[e]=i,n|=af(e)):r[e]=i}),{matchedQueries:t,references:r,matchedQueryIds:n}}function uf(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,"__source",{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Wp(n)}})}function cf(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&(r.element.componentRendererType.encapsulation===N.ShadowDom||1===r.element.componentRendererType.encapsulation)?Dp(e,n.renderParent.nodeIndex).renderElement:void 0:t}const df=new WeakMap;function hf(e){let t=df.get(e);return t||(t=e(()=>Up),t.factory=e,df.set(e,t)),t}function pf(e,t,n,r,i){3===t&&(n=e.renderer.parentNode(rf(e,e.def.lastRenderRootNode))),ff(e,t,0,e.def.nodes.length-1,n,r,i)}function ff(e,t,n,r,i,s,o){for(let a=n;a<=r;a++){const n=e.def.nodes[a];11&n.flags&&mf(e,n,t,i,s,o),a+=n.childCount}}function gf(e,t,n,r,i,s){let o=e;for(;o&&!sf(o);)o=o.parent;const a=o.parent,l=nf(o),u=l.nodeIndex+l.childCount;for(let c=l.nodeIndex+1;c<=u;c++){const e=a.def.nodes[c];e.ngContentIndex===t&&mf(a,e,n,r,i,s),c+=e.childCount}if(!a.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t-1}(e,n))}(e,o)){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:o.factory,deps:[],index:n,token:t.token},e._providers[n]=Ef,e._providers[n]=Pf(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{_r(r)}}function Pf(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(Vf(e,n[0]));case 2:return new t(Vf(e,n[0]),Vf(e,n[1]));case 3:return new t(Vf(e,n[0]),Vf(e,n[1]),Vf(e,n[2]));default:const i=[];for(let t=0;t=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,Hn(n,t),Hp.dirtyParentQueries(r),Nf(r),r}function Af(e,t,n){const r=t?rf(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),s=n.renderer.nextSibling(r);pf(n,2,i,s,void 0)}function Nf(e){pf(e,3,null,null,void 0)}const Df={};function Rf(e,t,n,r,i,s){return new Lf(e,t,n,r,i,s)}function Ff(e){return e.viewDefFactory}class Lf extends $h{constructor(e,t,n,r,i,s){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=i,this.ngContentSelectors=s,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const i=hf(this.viewDefFactory),s=i.nodes[0].element.componentProvider.nodeIndex,o=Hp.createRootView(e,t||[],n,i,r,Df),a=Rp(o,s).instance;return n&&o.renderer.setAttribute(Dp(o,0).renderElement,"ng-version",qh.full),new Bf(o,new Wf(o),a)}}class Bf extends Ch{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new Nh(Dp(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Qf(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Hf(e,t,n){return new Uf(e,t,n)}class Uf{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new Nh(this._data.renderElement)}get injector(){return new Qf(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=nf(e),e=e.parent;return e?new Qf(e,t):new Qf(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Mf(this._data,e);Hp.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Wf(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,i){const s=n||this.parentInjector;i||e instanceof Th||(i=s.get(_p));const o=e.create(s,r,void 0,i);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let i=t.viewContainer._embeddedViews;null==n&&(n=i.length),r.viewContainerParent=e,Bn(i,n,r),function(e,t){const n=tf(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,r),Hp.dirtyParentQueries(r),Af(t,n>0?i[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,n){const r=e.viewContainer._embeddedViews,i=r[t];Hn(r,t),null==n&&(n=r.length),Bn(r,n,i),Hp.dirtyParentQueries(i),Nf(i),Af(e,n>0?r[n-1]:null,i)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Mf(this._data,e);t&&Hp.destroyView(t)}detach(e){const t=Mf(this._data,e);return t?new Wf(t):null}}function qf(e){return new Wf(e)}class Wf{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return pf(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){Yp(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{Hp.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){Hp.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Hp.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Nf(this._view),Hp.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function zf(e,t){return new Gf(e,t)}class Gf extends gp{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Wf(Hp.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new Nh(Dp(this._parentView,this._def.nodeIndex).renderElement)}}function Kf(e,t){return new Qf(e,t)}class Qf{constructor(e,t){this.view=e,this.elDef=t}get(e,t=va.THROW_IF_NOT_FOUND){return Hp.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Wp(e)},t)}}function Zf(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=Dp(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return Np(e,n.nodeIndex).renderText;if(20240&n.flags)return Rp(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function Xf(e,t,n,r){return new Yf(e,t,n,r)}class Yf{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=Un(t.providers.length);for(let r=0;re())}onDestroy(e){this._destroyListeners.push(e)}}const Jf=Wp(Rh),eg=Wp(Nh),tg=Wp($p),ng=Wp(gp),rg=Wp(lp),ig=Wp(va),sg=Wp(Jo);function og(e,t,n,r,i,s,o,a){const l=[];if(o)for(let c in o){const[e,t]=o[c];l[e]={flags:8,name:c,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const u=[];if(a)for(let c in a)u.push({type:1,propName:c,target:null,eventName:a[c]});return ug(e,t|=16384,n,r,i,i,s,l,u)}function ag(e,t,n){return ug(-1,e|=16,null,0,t,t,n)}function lg(e,t,n,r,i){return ug(-1,e,t,0,n,r,i)}function ug(e,t,n,r,i,s,o,a,l){const{matchedQueries:u,references:d,matchedQueryIds:h}=lf(n);l||(l=[]),a||(a=[]),s=f(s);const p=uf(o,c(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:h,references:d,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:_f(a),outputs:l,element:null,provider:{token:i,value:s,deps:p},text:null,query:null,ngContent:null}}function cg(e,t){return fg(e,t)}function dg(e,t){let n=e;for(;n.parent&&!sf(n);)n=n.parent;return gg(n.parent,nf(n),!0,t.provider.value,t.provider.deps)}function hg(e,t){const n=gg(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;ref(e,t,n,r)}function fg(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return gg(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){const s=i.length;switch(s){case 0:return r();case 1:return r(vg(e,t,n,i[0]));case 2:return r(vg(e,t,n,i[0]),vg(e,t,n,i[1]));case 3:return r(vg(e,t,n,i[0]),vg(e,t,n,i[1]),vg(e,t,n,i[2]));default:const o=[];for(let r=0;rKi});class Eg extends $h{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(zs).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return $g(this.componentDef.inputs)}get outputs(){return $g(this.componentDef.outputs)}create(e,t,n,r){const i=(r=r||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const s=e.get(n,mg,i);return s!==mg||r===mg?s:t.get(n,r,i)}}}(e,r.injector):e,s=i.get(Dh,Pe),o=i.get(Hh,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=n?yo(a,n,this.componentDef.encapsulation):ds(s.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),c=this.componentDef.onPush?576:528,d=Na(),h=vo(0,null,null,1,0,null,null,null,null,null),p=io(null,h,d,c,null,null,s,a,o,i);let f,g;wt(p);try{const e=Ma(u,this.componentDef,p,s,a);if(u)if(n)Bt(a,u,["ng-version",qh.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let r=1,i=2;for(;r0&&As(a,u,t.join(" "))}if(g=De(h,20),void 0!==t){const e=g.projection=[];for(let n=0;ne()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}function Ig(e,t,n,r){return V(()=>{const i=e;null!==t&&(i.hasOwnProperty("decorators")&&void 0!==i.decorators?i.decorators.push(...t):i.decorators=t),null!==n&&(i.ctorParameters=n),null!==r&&(i.propDecorators=i.hasOwnProperty("propDecorators")&&void 0!==i.propDecorators?Object.assign(Object.assign({},i.propDecorators),r):r)})}const kg=new Map;function Tg(e,t){const n=kg.get(e);jg(e,n&&n.moduleType,t.moduleType),kg.set(e,t)}function jg(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${c(t)} vs ${c(t.name)}`)}function Vg(e){const t=new Set;!function e(n){const r=de(n,!0),i=r.id;null!==i&&(jg(i,kg.get(i),n),kg.set(i,n));const s=Yi(r.imports);for(const o of s)t.has(o)||(t.add(o),e(o))}(e)}function Pg(e){return kg.get(e)||ne[e]}class Mg extends _p{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Cg(this);const n=de(e),r=e[K]||null;r&&gd(r),this._bootstrapComponents=Yi(n.bootstrap),this._r3Injector=la(e,t,[{provide:_p,useValue:this},{provide:Ih,useValue:this.componentFactoryResolver}],c(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=va.THROW_IF_NOT_FOUND,n=O.Default){return e===va||e===_p||e===Jo?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Ag extends wp{constructor(e){super(),this.moduleType=e,null!==de(e)&&Vg(e)}create(e){return new Mg(this.moduleType,e)}}function Ng(e,t,n){const r=lt()+e,i=Xe();return i[r]===Gs?el(i,r,n?t.call(n):t()):tl(i,r)}function Dg(e,t,n,r){return Gg(Xe(),lt(),e,t,n,r)}function Rg(e,t,n,r,i){return Kg(Xe(),lt(),e,t,n,r,i)}function Fg(e,t,n,r,i,s){return Qg(Xe(),lt(),e,t,n,r,i,s)}function Lg(e,t,n,r,i,s,o){return Zg(Xe(),lt(),e,t,n,r,i,s,o)}function Bg(e,t,n,r,i,s,o,a){const l=lt()+e,u=Xe(),c=sl(u,l,n,r,i,s);return nl(u,l+4,o)||c?el(u,l+5,a?t.call(a,n,r,i,s,o):t(n,r,i,s,o)):tl(u,l+5)}function Hg(e,t,n,r,i,s,o,a,l){const u=lt()+e,c=Xe(),d=sl(c,u,n,r,i,s);return rl(c,u+4,o,a)||d?el(c,u+6,l?t.call(l,n,r,i,s,o,a):t(n,r,i,s,o,a)):tl(c,u+6)}function Ug(e,t,n,r,i,s,o,a,l,u){const c=lt()+e,d=Xe();let h=sl(d,c,n,r,i,s);return il(d,c+4,o,a,l)||h?el(d,c+7,u?t.call(u,n,r,i,s,o,a,l):t(n,r,i,s,o,a,l)):tl(d,c+7)}function qg(e,t,n,r,i,s,o,a,l,u,c){const d=lt()+e,h=Xe(),p=sl(h,d,n,r,i,s);return sl(h,d+4,o,a,l,u)||p?el(h,d+8,c?t.call(c,n,r,i,s,o,a,l,u):t(n,r,i,s,o,a,l,u)):tl(h,d+8)}function Wg(e,t,n,r){return Xg(Xe(),lt(),e,t,n,r)}function zg(e,t){const n=e[t];return n===Gs?void 0:n}function Gg(e,t,n,r,i,s){const o=t+n;return nl(e,o,i)?el(e,o+1,s?r.call(s,i):r(i)):zg(e,o+1)}function Kg(e,t,n,r,i,s,o){const a=t+n;return rl(e,a,i,s)?el(e,a+2,o?r.call(o,i,s):r(i,s)):zg(e,a+2)}function Qg(e,t,n,r,i,s,o,a){const l=t+n;return il(e,l,i,s,o)?el(e,l+3,a?r.call(a,i,s,o):r(i,s,o)):zg(e,l+3)}function Zg(e,t,n,r,i,s,o,a,l){const u=t+n;return sl(e,u,i,s,o,a)?el(e,u+4,l?r.call(l,i,s,o,a):r(i,s,o,a)):zg(e,u+4)}function Xg(e,t,n,r,i,s){let o=t+n,a=!1;for(let l=0;l=0;n--){const r=t[n];if(e===r.name)return r}throw new be("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const s=r.factory||(r.factory=ye(r.type)),o=T(su);try{const e=Zt(!1),t=s();return Zt(e),El(n,Xe(),i,t),t}finally{T(o)}}function Jg(e,t,n){const r=e+20,i=Xe(),s=Re(i,r);return sm(i,im(i,r)?Gg(i,lt(),t,s.transform,n,s):s.transform(n))}function em(e,t,n,r){const i=e+20,s=Xe(),o=Re(s,i);return sm(s,im(s,i)?Kg(s,lt(),t,o.transform,n,r,o):o.transform(n,r))}function tm(e,t,n,r,i){const s=e+20,o=Xe(),a=Re(o,s);return sm(o,im(o,s)?Qg(o,lt(),t,a.transform,n,r,i,a):a.transform(n,r,i))}function nm(e,t,n,r,i,s){const o=e+20,a=Xe(),l=Re(a,o);return sm(a,im(a,o)?Zg(a,lt(),t,l.transform,n,r,i,s,l):l.transform(n,r,i,s))}function rm(e,t,n){const r=e+20,i=Xe(),s=Re(i,r);return sm(i,im(i,r)?Xg(i,lt(),t,s.transform,n,s):s.transform.apply(s,n))}function im(e,t){return e[1].data[t].pure}function sm(e,t){return Xa.isWrapped(t)&&(t=Xa.unwrap(t),e[ut()]=Gs),t}const om=class extends r.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,o=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(r,s,o);return e instanceof i.a&&e.add(a),a}};function am(){return this._results[Qa()]()}class lm{constructor(){this.dirty=!0,this._results=[],this.changes=new om,this.length=0;const e=Qa(),t=lm.prototype;t[e]||(t[e]=am)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=Fn(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class um{constructor(e){this.queryList=e,this.matches=null}clone(){return new um(this.queryList)}setDirty(){this.queryList.setDirty()}}class cm{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let e=0;e0)r.push(o[e/2]);else{const i=s[e+1],o=t[-n];for(let e=10;e({\u0275\u0275attribute:ol,\u0275\u0275attributeInterpolate1:ml,\u0275\u0275attributeInterpolate2:vl,\u0275\u0275attributeInterpolate3:yl,\u0275\u0275attributeInterpolate4:bl,\u0275\u0275attributeInterpolate5:_l,\u0275\u0275attributeInterpolate6:wl,\u0275\u0275attributeInterpolate7:xl,\u0275\u0275attributeInterpolate8:Cl,\u0275\u0275attributeInterpolateV:$l,\u0275\u0275defineComponent:Y,\u0275\u0275defineDirective:oe,\u0275\u0275defineInjectable:v,\u0275\u0275defineInjector:b,\u0275\u0275defineNgModule:re,\u0275\u0275definePipe:ae,\u0275\u0275directiveInject:su,\u0275\u0275getFactoryOf:mn,\u0275\u0275getInheritedFactory:vn,\u0275\u0275inject:xr,\u0275\u0275injectAttribute:yn,\u0275\u0275invalidFactory:ou,\u0275\u0275invalidFactoryDep:Cr,\u0275\u0275injectPipeChangeDetectorRef:Tm,\u0275\u0275templateRefExtractor:km,\u0275\u0275NgOnChangesFeature:$e,\u0275\u0275ProvidersFeature:xh,\u0275\u0275CopyDefinitionFeature:Ga,\u0275\u0275InheritDefinitionFeature:La,\u0275\u0275nextContext:Cu,\u0275\u0275namespaceHTML:Pt,\u0275\u0275namespaceMathML:Vt,\u0275\u0275namespaceSVG:jt,\u0275\u0275enableBindings:Qe,\u0275\u0275disableBindings:Ze,\u0275\u0275elementStart:uu,\u0275\u0275elementEnd:cu,\u0275\u0275element:du,\u0275\u0275elementContainerStart:hu,\u0275\u0275elementContainerEnd:pu,\u0275\u0275elementContainer:fu,\u0275\u0275pureFunction0:Ng,\u0275\u0275pureFunction1:Dg,\u0275\u0275pureFunction2:Rg,\u0275\u0275pureFunction3:Fg,\u0275\u0275pureFunction4:Lg,\u0275\u0275pureFunction5:Bg,\u0275\u0275pureFunction6:Hg,\u0275\u0275pureFunction7:Ug,\u0275\u0275pureFunction8:qg,\u0275\u0275pureFunctionV:Wg,\u0275\u0275getCurrentView:gu,\u0275\u0275restoreView:Je,\u0275\u0275listener:yu,\u0275\u0275projection:Eu,\u0275\u0275syntheticHostProperty:Xc,\u0275\u0275syntheticHostListener:bu,\u0275\u0275pipeBind1:Jg,\u0275\u0275pipeBind2:em,\u0275\u0275pipeBind3:tm,\u0275\u0275pipeBind4:nm,\u0275\u0275pipeBindV:rm,\u0275\u0275projectionDef:Su,\u0275\u0275hostProperty:Zc,\u0275\u0275property:au,\u0275\u0275propertyInterpolate:Ou,\u0275\u0275propertyInterpolate1:Iu,\u0275\u0275propertyInterpolate2:ku,\u0275\u0275propertyInterpolate3:Tu,\u0275\u0275propertyInterpolate4:ju,\u0275\u0275propertyInterpolate5:Vu,\u0275\u0275propertyInterpolate6:Pu,\u0275\u0275propertyInterpolate7:Mu,\u0275\u0275propertyInterpolate8:Au,\u0275\u0275propertyInterpolateV:Nu,\u0275\u0275pipe:Yg,\u0275\u0275queryRefresh:ym,\u0275\u0275viewQuery:_m,\u0275\u0275staticViewQuery:bm,\u0275\u0275staticContentQuery:Cm,\u0275\u0275loadQuery:Sm,\u0275\u0275contentQuery:xm,\u0275\u0275reference:Ol,\u0275\u0275classMap:Ju,\u0275\u0275classMapInterpolate1:Cc,\u0275\u0275classMapInterpolate2:$c,\u0275\u0275classMapInterpolate3:Sc,\u0275\u0275classMapInterpolate4:Ec,\u0275\u0275classMapInterpolate5:Oc,\u0275\u0275classMapInterpolate6:Ic,\u0275\u0275classMapInterpolate7:kc,\u0275\u0275classMapInterpolate8:Tc,\u0275\u0275classMapInterpolateV:jc,\u0275\u0275styleMap:Xu,\u0275\u0275styleMapInterpolate1:Vc,\u0275\u0275styleMapInterpolate2:Pc,\u0275\u0275styleMapInterpolate3:Mc,\u0275\u0275styleMapInterpolate4:Ac,\u0275\u0275styleMapInterpolate5:Nc,\u0275\u0275styleMapInterpolate6:Dc,\u0275\u0275styleMapInterpolate7:Rc,\u0275\u0275styleMapInterpolate8:Fc,\u0275\u0275styleMapInterpolateV:Lc,\u0275\u0275styleProp:Qu,\u0275\u0275stylePropInterpolate1:Bc,\u0275\u0275stylePropInterpolate2:Hc,\u0275\u0275stylePropInterpolate3:Uc,\u0275\u0275stylePropInterpolate4:qc,\u0275\u0275stylePropInterpolate5:Wc,\u0275\u0275stylePropInterpolate6:zc,\u0275\u0275stylePropInterpolate7:Gc,\u0275\u0275stylePropInterpolate8:Kc,\u0275\u0275stylePropInterpolateV:Qc,\u0275\u0275classProp:Zu,\u0275\u0275advance:Ks,\u0275\u0275template:Sl,\u0275\u0275text:hc,\u0275\u0275textInterpolate:pc,\u0275\u0275textInterpolate1:fc,\u0275\u0275textInterpolate2:gc,\u0275\u0275textInterpolate3:mc,\u0275\u0275textInterpolate4:vc,\u0275\u0275textInterpolate5:yc,\u0275\u0275textInterpolate6:bc,\u0275\u0275textInterpolate7:_c,\u0275\u0275textInterpolate8:wc,\u0275\u0275textInterpolateV:xc,\u0275\u0275i18n:ch,\u0275\u0275i18nAttributes:dh,\u0275\u0275i18nExp:hh,\u0275\u0275i18nStart:lh,\u0275\u0275i18nEnd:uh,\u0275\u0275i18nApply:ph,\u0275\u0275i18nPostprocess:fh,\u0275\u0275resolveWindow:Qi,\u0275\u0275resolveDocument:Zi,\u0275\u0275resolveBody:Xi,\u0275\u0275setComponentScope:J,\u0275\u0275setNgModuleScope:ie,\u0275\u0275sanitizeHtml:wi,\u0275\u0275sanitizeStyle:xi,\u0275\u0275sanitizeResourceUrl:$i,\u0275\u0275sanitizeScript:Si,\u0275\u0275sanitizeUrl:Ci,\u0275\u0275sanitizeUrlOrResourceUrl:Ti,\u0275\u0275trustConstantHtml:Ei,\u0275\u0275trustConstantScript:Oi,\u0275\u0275trustConstantResourceUrl:Ii}))();let Vm=null;function Pm(){Vm=null}const Mm=[],Am=[];let Nm=!1;function Dm(){if(!Nm){Nm=!0;try{for(let e=Am.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=Am[e];n.declarations&&n.declarations.every(Rm)&&(Am.splice(e,1),qm(t,n))}}finally{Nm=!1}}}function Rm(e){return Array.isArray(e)?e.every(Rm):!!f(e)}function Fm(e,t={}){Lm(e,t),function(e,t){Am.push({moduleType:e,ngModule:t})}(e,t)}function Lm(e,t,n=!1){const r=Fn(t.declarations||Mm);let i=null;Object.defineProperty(e,G,{configurable:!0,get:()=>(null===i&&(i=Nn().compileNgModule(jm,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:Fn(t.bootstrap||Mm).map(f),declarations:r.map(f),imports:Fn(t.imports||Mm).map(f).map(Gm),exports:Fn(t.exports||Mm).map(f).map(Gm),schemas:t.schemas?Fn(t.schemas):null,id:t.id||null}),i.schemas||(i.schemas=[])),i)});let s=null;Object.defineProperty(e,$,{get:()=>{if(null===s){const n={name:e.name,type:e,deps:lr(e),providers:t.providers||Mm,imports:[(t.imports||Mm).map(f),(t.exports||Mm).map(f)]};s=Nn().compileInjector(jm,`ng:///${e.name}/\u0275inj.js`,n)}return s},configurable:!1})}let Bm=new Map,Hm=new Map;function Um(){Bm=new Map,Hm=new Map,Am.length=0}function qm(e,t){const n=Fn(t.declarations||Mm),r=zm(e);n.forEach(t=>{t.hasOwnProperty(q)?Wm(le(t),r):t.hasOwnProperty(W)||t.hasOwnProperty(z)||(t.ngSelectorScope=e)})}function Wm(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(e=>e.hasOwnProperty(q)?le(e):ue(e)).filter(e=>!!e),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(e=>ce(e)),e.schemas=t.schemas,e.tView=null}function zm(e){if(!Km(e))throw new Error(e.name+" does not have a module def (\u0275mod property)");const t=de(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Yi(t.imports).forEach(e=>{const t=e;if(!Km(t))throw new Error(`Importing ${t.name} which does not have a \u0275mod property`);const r=zm(t);r.exported.directives.forEach(e=>n.compilation.directives.add(e)),r.exported.pipes.forEach(e=>n.compilation.pipes.add(e))}),Yi(t.declarations).forEach(e=>{ce(e)?n.compilation.pipes.add(e):n.compilation.directives.add(e)}),Yi(t.exports).forEach(e=>{const t=e;if(Km(t)){const e=zm(t);e.exported.directives.forEach(e=>{n.compilation.directives.add(e),n.exported.directives.add(e)}),e.exported.pipes.forEach(e=>{n.compilation.pipes.add(e),n.exported.pipes.add(e)})}else ce(t)?n.exported.pipes.add(t):n.exported.directives.add(t)}),t.transitiveCompileScopes=n,n}function Gm(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function Km(e){return!!de(e)}let Qm=0;function Zm(e,t){let n=null;!function(e,t){pr(t)&&(dr.set(e,t),hr.add(e))}(e,t),Jm(e,t),Object.defineProperty(e,q,{get:()=>{if(null===n){const r=Nn();if(pr(t)){const n=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&n.push(" - templateUrl: "+t.templateUrl),t.styleUrls&&t.styleUrls.length&&n.push(" - styleUrls: "+JSON.stringify(t.styleUrls)),n.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(n.join("\n"))}const i=Vm;let s=t.preserveWhitespaces;void 0===s&&(s=null!==i&&void 0!==i.preserveWhitespaces&&i.preserveWhitespaces);let o=t.encapsulation;void 0===o&&(o=null!==i&&void 0!==i.defaultEncapsulation?i.defaultEncapsulation:N.Emulated);const a=t.templateUrl||`ng:///${e.name}/template.html`,l=Object.assign(Object.assign({},tv(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,a),template:t.template||"",preserveWhitespaces:s,styles:t.styles||U,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:o,interpolation:t.interpolation,viewProviders:t.viewProviders||null});Qm++;try{l.usesInheritance&&nv(e),n=r.compileComponent(jm,a,l)}finally{Qm--}if(0===Qm&&Dm(),void 0!==e.ngSelectorScope){const t=zm(e.ngSelectorScope);Wm(n,t)}}return n},configurable:!1})}function Xm(e,t){let n=null;Jm(e,t||{}),Object.defineProperty(e,W,{get:()=>{if(null===n){const r=Ym(e,t||{});n=Nn().compileDirective(jm,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function Ym(e,t){const n=e&&e.name,r=`ng:///${n}/\u0275dir.js`,i=Nn(),s=tv(e,t);return s.typeSourceSpan=i.createParseSourceSpan("Directive",n,r),s.usesInheritance&&nv(e),{metadata:s,sourceMapUrl:r}}function Jm(e,t){let n=null;Object.defineProperty(e,Q,{get:()=>{if(null===n){const r=Ym(e,t),i=Nn();n=i.compileFactory(jm,`ng:///${e.name}/\u0275fac.js`,Object.assign(Object.assign({},r.metadata),{injectFn:"directiveInject",target:i.R3FactoryTarget.Directive}))}return n},configurable:!1})}function ev(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function tv(e,t){const n=ar(),r=n.ownPropMetadata(e);return{name:e.name,type:e,typeArgumentCount:0,selector:void 0!==t.selector?t.selector:null,deps:lr(e),host:t.host||H,propMetadata:r,inputs:t.inputs||U,outputs:t.outputs||U,queries:iv(e,r,sv),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!ev(e),exportAs:(i=t.exportAs,void 0===i?null:lv(i)),providers:t.providers||null,viewQueries:iv(e,r,ov)};var i}function nv(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)ue(n)||le(n)||!cv(n)||Xm(n,null),n=Object.getPrototypeOf(n)}function rv(e,t){return{propertyName:e,predicate:(n=t.selector,"string"==typeof n?lv(n):f(n)),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static};var n}function iv(e,t,n){const r=[];for(const i in t)if(t.hasOwnProperty(i)){const s=t[i];s.forEach(t=>{if(n(t)){if(!t.selector)throw new Error(`Can't construct a query for the property "${i}" of "${we(e)}" since the query selector wasn't defined.`);if(s.some(av))throw new Error("Cannot combine @Input decorators with query decorators");r.push(rv(i,t))}})}return r}function sv(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function ov(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function av(e){return"Input"===e.ngMetadataName}function lv(e){return e.split(",").map(e=>e.trim())}const uv=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function cv(e){const t=ar();if(uv.some(n=>t.hasLifecycleHook(e,n)))return!0;const n=t.propMetadata(e);for(const r in n){const e=n[r];for(let t=0;t{if(null===r){const n=hv(e,t),i=Nn();r=i.compileFactory(jm,`ng:///${n.name}/\u0275fac.js`,Object.assign(Object.assign({},n),{injectFn:"directiveInject",target:i.R3FactoryTarget.Pipe}))}return r},configurable:!1}),Object.defineProperty(e,z,{get:()=>{if(null===n){const r=hv(e,t);n=Nn().compilePipe(jm,`ng:///${r.name}/\u0275pipe.js`,r)}return n},configurable:!1})}function hv(e,t){return{type:e,typeArgumentCount:0,name:e.name,deps:lr(e),pipeName:t.name,pure:void 0===t.pure||t.pure}}const pv=xn("Directive",(e={})=>e,void 0,void 0,(e,t)=>$v(e,t)),fv=xn("Component",(e={})=>Object.assign({changeDetection:P.Default},e),pv,void 0,(e,t)=>Cv(e,t)),gv=xn("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>Sv(e,t)),mv=Sn("Input",e=>({bindingPropertyName:e})),vv=Sn("Output",e=>({bindingPropertyName:e})),yv=Sn("HostBinding",e=>({hostPropertyName:e})),bv=Sn("HostListener",(e,t)=>({eventName:e,args:t})),_v=Zm,wv=Xm,xv=dv,Cv=_v,$v=wv,Sv=xv,Ev=xn("NgModule",e=>e,void 0,void 0,(e,t)=>Iv(e,t)),Ov=Fm,Iv=Ov,kv=new In("Application Initializer");let Tv=(()=>{class e{constructor(e){this.appInits=e,this.resolve=jh,this.reject=jh,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(xr(kv,8))},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();const jv=new In("AppId");function Vv(){return`${Mv()}${Mv()}${Mv()}`}const Pv={provide:jv,useFactory:Vv,deps:[]};function Mv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Av=new In("Platform Initializer"),Nv=new In("Platform ID"),Dv=new In("appBootstrapListener"),Rv=new In("Application Packages Root URL");let Fv=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();const Lv=new In("LocaleId"),Bv=new In("DefaultCurrencyCode"),Hv=new In("Translations"),Uv=new In("TranslationsFormat");var qv=function(e){return e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore",e}({});const Wv=!0,zv=Wv;class Gv{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Kv=function(e){return new Ag(e)},Qv=Kv,Zv=function(e){return Promise.resolve(Kv(e))},Xv=Zv,Yv=function(e){const t=Kv(e),n=Yi(de(e).declarations).reduce((e,t)=>{const n=le(t);return n&&e.push(new Eg(n)),e},[]);return new Gv(t,n)},Jv=Yv,ey=function(e){return Promise.resolve(Yv(e))},ty=ey;let ny=(()=>{class e{constructor(){this.compileModuleSync=Qv,this.compileModuleAsync=Xv,this.compileModuleAndAllComponentsSync=Jv,this.compileModuleAndAllComponentsAsync=ty}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();const ry=new In("compilerOptions");class iy{}const sy=(()=>Promise.resolve(0))();function oy(e){"undefined"==typeof Zone?sy.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ay{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new om(!1),this.onMicrotaskEmpty=new om(!1),this.onStable=new om(!1),this.onError=new om(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=t,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=B.requestAnimationFrame,t=B.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(B,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,cy(e),uy(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),cy(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,r,i,s,o,a)=>{try{return dy(e),n.invokeTask(i,s,o,a)}finally{t&&"eventTask"===s.type&&t(),hy(e)}},onInvoke:(t,n,r,i,s,o,a)=>{try{return dy(e),t.invoke(r,i,s,o,a)}finally{hy(e)}},onHasTask:(t,n,r,i)=>{t.hasTask(r,i),n===r&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,cy(e),uy(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,r,i)=>(t.handleError(r,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ay.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ay.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+r,e,ly,jh,jh);try{return i.runTask(s,t,n)}finally{i.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const ly={};function uy(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 cy(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function dy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function hy(e){e._nesting--,uy(e)}class py{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new om,this.onMicrotaskEmpty=new om,this.onStable=new om,this.onError=new om}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)}}let fy=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ay.assertNotInAngularZone(),oy(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())oy(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(xr(ay))},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})(),gy=(()=>{class e{constructor(){this._applications=new Map,by.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return by.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();class my{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function vy(e){by=e}let yy,by=new my,_y=wy;function wy(e,t,n){const r=new Ag(n);return Promise.resolve(r)}let xy=Cy;function Cy(e){return e.isBoundToModule}const $y=new In("AllowMultipleToken");class Sy{constructor(e,t){this.name=e,this.token=t}}function Ey(e){if(yy&&!yy.destroyed&&!yy.injector.get($y,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");yy=e.get(jy);const t=e.get(Av,null);return t&&t.forEach(e=>e()),yy}function Oy(e,t,n=[]){const r="Platform: "+t,i=new In(r);return(t=[])=>{let s=Ty();if(!s||s.injector.get($y,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{const e=n.concat(t).concat({provide:i,useValue:!0},{provide:ta,useValue:"platform"});Ey(va.create({providers:e,name:r}))}return Iy(i)}}function Iy(e){const t=Ty();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function ky(){yy&&!yy.destroyed&&yy.destroy()}function Ty(){return yy&&!yy.destroyed?yy:null}let jy=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new py:("zone.js"===e?void 0:e)||new ay({enableLongStackTrace:Gr(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),r=[{provide:ay,useValue:n}];return n.run(()=>{const t=va.create({providers:r,parent:this.injector,name:e.moduleType.name}),i=e.create(t),s=i.injector.get(Ai,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>My(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{s.handleError(e)}})),function(e,t,n){try{const r=n();return mu(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,n,()=>{const e=i.injector.get(Tv);return e.runInitializers(),e.donePromise.then(()=>(zv&&gd(i.injector.get(Lv,ud)||ud),this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,t=[]){const n=Vy({},t);return _y(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Py);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${c(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(xr(va))},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();function Vy(e,t){return Array.isArray(t)?t.reduce(Vy,e):Object.assign(Object.assign({},e),t)}let Py=(()=>{class e{constructor(e,t,n,r,i,l){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Gr(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const u=new s.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),c=new s.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{ay.assertNotInAngularZone(),oy(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ay.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(u,c.pipe(Object(a.a)()))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof $h?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=xy(n)?void 0:this._injector.get(_p),i=n.create(va.NULL,[],t||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const s=i.injector.get(fy,null);return s&&i.injector.get(gy).registerApplication(i.location.nativeElement,s),this._loadComponent(i),Gr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;My(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Dv,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),My(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(xr(ay),xr(Fv),xr(va),xr(Ai),xr(Ih),xr(Tv))},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();function My(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ay{}function Ny(e){const t=Pg(e);if(!t)throw Fy(e);return t}function Dy(e){const t=Pg(e);if(!t)throw Fy(e);return new Ag(t)}const Ry=Dy;function Fy(e){return new Error(`No module with ID ${e} loaded`)}class Ly{}const By={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Hy=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||By}load(e){return!zv&&this._compiler instanceof ny?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n("crnd")(t).then(e=>e[r]).then(e=>Uy(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n("crnd")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+i]).then(e=>Uy(e,t,r))}}return e.\u0275fac=function(t){return new(t||e)(xr(ny),xr(Ly,8))},e.\u0275prov=v({token:e,factory:e.\u0275fac}),e})();function Uy(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class qy extends lp{}class Wy extends qy{}class zy{constructor(e,t){this.name=e,this.callback=t}}class Gy{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Ky&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Ky extends Gy{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return Zy(this,e,t),t}queryAllNodes(e){const t=[];return Xy(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof Ky)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}function Qy(e){return e.map(e=>e.nativeElement)}function Zy(e,t,n){e.childNodes.forEach(e=>{e instanceof Ky&&(t(e)&&n.push(e),Zy(e,t,n))})}function Xy(e,t,n){e instanceof Ky&&e.childNodes.forEach(e=>{t(e)&&n.push(e),e instanceof Ky&&Xy(e,t,n)})}class Yy{constructor(e){this.nativeNode=e}get parent(){const e=this.nativeNode.parentNode;return e?new Jy(e):null}get injector(){return xa(this.nativeNode)}get componentInstance(){const e=this.nativeNode;return e&&(ya(e)||_a(e))}get context(){return ya(this.nativeNode)||ba(this.nativeNode)}get listeners(){return Ea(this.nativeNode).filter(e=>"dom"===e.type)}get references(){return function(e){const t=$a(e,!1);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){const n=e[1].data[t];if(n&&n.localNames){const t={};let r=n.index+1;for(let i=0;i1){let r=o[1];for(let e=1;ee[t]=!0),e}get childNodes(){const e=this.nativeNode.childNodes,t=[];for(let n=0;n{if(i.name===e){const e=i.callback;e.call(n,t),r.push(e)}}),"function"==typeof n.eventListeners&&n.eventListeners(e).forEach(e=>{if(-1!==e.toString().indexOf("__ngUnwrap__")){const i=e("__ngUnwrap__");return-1===r.indexOf(i)&&i.call(n,t)}})}}function eb(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function tb(e,t,n,r){const i=$a(e.nativeNode,!1);null!==i?nb(i.lView[1].data[i.nodeIndex],i.lView,t,n,r,e.nativeNode):sb(e.nativeNode,t,n,r)}function nb(e,t,n,r,i,s){const o=function(e,t){const n=null===e?-1:e.index;return-1!==n?Me(t[n]):null}(e,t);if(11&e.type){if(ib(o,n,r,i,s),ge(e)){const o=Fe(e.index,t);o&&o[1].firstChild&&nb(o[1].firstChild,o,n,r,i,s)}else e.child&&nb(e.child,t,n,r,i,s),o&&sb(o,n,r,i);const a=t[e.index];pe(a)&&rb(a,n,r,i,s)}else if(4&e.type){const o=t[e.index];ib(o[7],n,r,i,s),rb(o,n,r,i,s)}else if(16&e.type){const o=t[16],a=o[6].projection[e.projection];if(Array.isArray(a))for(let e of a)ib(e,n,r,i,s);else if(a){const e=o[3];nb(e[1].data[a.index],e,n,r,i,s)}}else e.child&&nb(e.child,t,n,r,i,s);if(s!==o){const o=4&e.flags?e.projectionNext:e.next;o&&nb(o,t,n,r,i,s)}}function rb(e,t,n,r,i){for(let s=10;s{for(;t.length;)t.pop()()}),function(e){t.push(e)}}let wb=(()=>{class e{constructor(e){}}return e.\u0275mod=re({type:e}),e.\u0275inj=b({factory:function(t){return new(t||e)(xr(Py))},providers:bb}),e})();function xb(e,t,n,r,i,s){e|=1;const{matchedQueries:o,references:a,matchedQueryIds:l}=lf(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:l,references:a,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:s?hf(s):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Up},provider:null,text:null,query:null,ngContent:null}}function Cb(e,t,n,r,i,s,o=[],a,l,u,c,d){u||(u=Up);const{matchedQueries:h,references:p,matchedQueryIds:f}=lf(n);let g=null,m=null;s&&([g,m]=bf(s)),a=a||[];const v=[];for(let _=0;_{const[n,r]=bf(e);return[n,r,t]});return d=function(e){if(e&&"$$undefined"===e.id){const t=null!=e.encapsulation&&e.encapsulation!==N.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+Kp++:"$$empty"}return e&&"$$empty"===e.id&&(e=null),e||null}(d),c&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:f,references:p,ngContentIndex:r,childCount:i,bindings:v,bindingFlags:_f(v),outputs:y,element:{ns:g,name:m,attrs:b,template:null,componentProvider:null,componentView:c||null,componentRendererType:d,publicProviders:null,allProviders:null,handleEvent:u||Up},provider:null,text:null,query:null,ngContent:null}}function $b(e,t,n){const r=n.element,i=e.root.selectorOrNode,s=e.renderer;let o;if(e.parent||!i){o=r.name?s.createElement(r.name,r.ns):s.createComment("");const i=cf(e,t,n);i&&s.appendChild(i,o)}else o=s.selectRootElement(i,!!r.componentRendererType&&r.componentRendererType.encapsulation===N.ShadowDom);if(r.attrs)for(let a=0;aef(e,t,n,r)}function Ob(e,t,n,r){if(!Zp(e,t,n,r))return!1;const i=t.bindings[n],s=Dp(e,t.nodeIndex),o=s.renderElement,a=i.name;switch(15&i.flags){case 1:!function(e,t,n,r,i,s){const o=t.securityContext;let a=o?e.root.sanitizer.sanitize(o,s):s;a=null!=a?a.toString():null;const l=e.renderer;null!=s?l.setAttribute(n,i,a,r):l.removeAttribute(n,i,r)}(e,i,o,i.ns,a,r);break;case 2:!function(e,t,n,r){const i=e.renderer;r?i.addClass(t,n):i.removeClass(t,n)}(e,o,a,r);break;case 4:!function(e,t,n,r,i){let s=e.root.sanitizer.sanitize(_i.STYLE,i);if(null!=s){s=s.toString();const e=t.suffix;null!=e&&(s+=e)}else s=null;const o=e.renderer;null!=s?o.setStyle(n,r,s):o.removeStyle(n,r)}(e,i,o,a,r);break;case 8:!function(e,t,n,r,i){const s=t.securityContext;let o=s?e.root.sanitizer.sanitize(s,i):i;e.renderer.setProperty(n,r,o)}(33554432&t.flags&&32&i.flags?s.componentView:e,i,o,a,r)}return!0}function Ib(e,t,n){let r=[];for(let i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:af(t),bindings:r},ngContent:null}}function kb(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&of(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let i=0;i<=r;i++){const r=e.def.nodes[i];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&Lp(e,i).setDirty(),!(1&r.flags&&i+r.childCount0)u=e,Ub(e)||(c=e);else for(;u&&f===u.nodeIndex+u.childCount;){const e=u.parent;e&&(e.childFlags|=u.childFlags,e.childMatchedQueries|=u.childMatchedQueries),u=e,c=u&&Ub(u)?u.renderParent:u}}return{factory:null,nodeFlags:o,rootNodeFlags:a,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||Up,updateRenderer:r||Up,handleEvent:(e,n,r,i)=>t[n].element.handleEvent(e,r,i),bindingCount:i,outputCount:s,lastRenderRootNode:p}}function Ub(e){return 0!=(1&e.flags)&&null===e.element.name}function qb(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function Wb(e,t,n,r){const i=Kb(e.root,e.renderer,e,t,n);return Qb(i,e.component,r),Zb(i),i}function zb(e,t,n){const r=Kb(e,e.renderer,null,null,t);return Qb(r,n,n),Zb(r),r}function Gb(e,t,n,r){const i=t.element.componentRendererType;let s;return s=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,Kb(e.root,s,e,t.element.componentProvider,n)}function Kb(e,t,n,r,i){const s=new Array(i.nodes.length),o=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:s,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:o,initIndex:-1}}function Qb(e,t,n){e.component=t,e.context=n}function Zb(e){let t;sf(e)&&(t=Dp(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let i=0;i0&&Ob(e,t,0,n)&&(p=!0),h>1&&Ob(e,t,1,r)&&(p=!0),h>2&&Ob(e,t,2,i)&&(p=!0),h>3&&Ob(e,t,3,s)&&(p=!0),h>4&&Ob(e,t,4,o)&&(p=!0),h>5&&Ob(e,t,5,a)&&(p=!0),h>6&&Ob(e,t,6,l)&&(p=!0),h>7&&Ob(e,t,7,u)&&(p=!0),h>8&&Ob(e,t,8,c)&&(p=!0),h>9&&Ob(e,t,9,d)&&(p=!0),p}(e,t,n,r,i,s,o,a,l,u,c,d);case 2:return function(e,t,n,r,i,s,o,a,l,u,c,d){let h=!1;const p=t.bindings,f=p.length;if(f>0&&Zp(e,t,0,n)&&(h=!0),f>1&&Zp(e,t,1,r)&&(h=!0),f>2&&Zp(e,t,2,i)&&(h=!0),f>3&&Zp(e,t,3,s)&&(h=!0),f>4&&Zp(e,t,4,o)&&(h=!0),f>5&&Zp(e,t,5,a)&&(h=!0),f>6&&Zp(e,t,6,l)&&(h=!0),f>7&&Zp(e,t,7,u)&&(h=!0),f>8&&Zp(e,t,8,c)&&(h=!0),f>9&&Zp(e,t,9,d)&&(h=!0),h){let h=t.text.prefix;f>0&&(h+=Bb(n,p[0])),f>1&&(h+=Bb(r,p[1])),f>2&&(h+=Bb(i,p[2])),f>3&&(h+=Bb(s,p[3])),f>4&&(h+=Bb(o,p[4])),f>5&&(h+=Bb(a,p[5])),f>6&&(h+=Bb(l,p[6])),f>7&&(h+=Bb(u,p[7])),f>8&&(h+=Bb(c,p[8])),f>9&&(h+=Bb(d,p[9]));const g=Np(e,t.nodeIndex).renderText;e.renderer.setValue(g,h)}return h}(e,t,n,r,i,s,o,a,l,u,c,d);case 16384:return function(e,t,n,r,i,s,o,a,l,u,c,d){const h=Rp(e,t.nodeIndex),p=h.instance;let f=!1,g=void 0;const m=t.bindings.length;return m>0&&Qp(e,t,0,n)&&(f=!0,g=bg(e,h,t,0,n,g)),m>1&&Qp(e,t,1,r)&&(f=!0,g=bg(e,h,t,1,r,g)),m>2&&Qp(e,t,2,i)&&(f=!0,g=bg(e,h,t,2,i,g)),m>3&&Qp(e,t,3,s)&&(f=!0,g=bg(e,h,t,3,s,g)),m>4&&Qp(e,t,4,o)&&(f=!0,g=bg(e,h,t,4,o,g)),m>5&&Qp(e,t,5,a)&&(f=!0,g=bg(e,h,t,5,a,g)),m>6&&Qp(e,t,6,l)&&(f=!0,g=bg(e,h,t,6,l,g)),m>7&&Qp(e,t,7,u)&&(f=!0,g=bg(e,h,t,7,u,g)),m>8&&Qp(e,t,8,c)&&(f=!0,g=bg(e,h,t,8,c,g)),m>9&&Qp(e,t,9,d)&&(f=!0,g=bg(e,h,t,9,d,g)),g&&p.ngOnChanges(g),65536&t.flags&&Ap(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),f}(e,t,n,r,i,s,o,a,l,u,c,d);case 32:case 64:case 128:return function(e,t,n,r,i,s,o,a,l,u,c,d){const h=t.bindings;let p=!1;const f=h.length;if(f>0&&Zp(e,t,0,n)&&(p=!0),f>1&&Zp(e,t,1,r)&&(p=!0),f>2&&Zp(e,t,2,i)&&(p=!0),f>3&&Zp(e,t,3,s)&&(p=!0),f>4&&Zp(e,t,4,o)&&(p=!0),f>5&&Zp(e,t,5,a)&&(p=!0),f>6&&Zp(e,t,6,l)&&(p=!0),f>7&&Zp(e,t,7,u)&&(p=!0),f>8&&Zp(e,t,8,c)&&(p=!0),f>9&&Zp(e,t,9,d)&&(p=!0),p){const p=Fp(e,t.nodeIndex);let g;switch(201347067&t.flags){case 32:g=[],f>0&&g.push(n),f>1&&g.push(r),f>2&&g.push(i),f>3&&g.push(s),f>4&&g.push(o),f>5&&g.push(a),f>6&&g.push(l),f>7&&g.push(u),f>8&&g.push(c),f>9&&g.push(d);break;case 64:g={},f>0&&(g[h[0].name]=n),f>1&&(g[h[1].name]=r),f>2&&(g[h[2].name]=i),f>3&&(g[h[3].name]=s),f>4&&(g[h[4].name]=o),f>5&&(g[h[5].name]=a),f>6&&(g[h[6].name]=l),f>7&&(g[h[7].name]=u),f>8&&(g[h[8].name]=c),f>9&&(g[h[9].name]=d);break;case 128:const e=n;switch(f){case 1:g=e.transform(n);break;case 2:g=e.transform(r);break;case 3:g=e.transform(r,i);break;case 4:g=e.transform(r,i,s);break;case 5:g=e.transform(r,i,s,o);break;case 6:g=e.transform(r,i,s,o,a);break;case 7:g=e.transform(r,i,s,o,a,l);break;case 8:g=e.transform(r,i,s,o,a,l,u);break;case 9:g=e.transform(r,i,s,o,a,l,u,c);break;case 10:g=e.transform(r,i,s,o,a,l,u,c,d)}}p.value=g}return p}(e,t,n,r,i,s,o,a,l,u,c,d);default:throw"unreachable"}}(e,t,r,i,s,o,a,l,u,c,d,h):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let i=0;i0&&Xp(e,t,0,n),h>1&&Xp(e,t,1,r),h>2&&Xp(e,t,2,i),h>3&&Xp(e,t,3,s),h>4&&Xp(e,t,4,o),h>5&&Xp(e,t,5,a),h>6&&Xp(e,t,6,l),h>7&&Xp(e,t,7,u),h>8&&Xp(e,t,8,c),h>9&&Xp(e,t,9,d)}(e,t,r,i,s,o,a,l,u,c,d,h):function(e,t,n){for(let r=0;rnew H_(e,t),handleEvent:A_,updateDirectives:N_,updateRenderer:D_}:{setCurrentNode:()=>{},createRootView:h_,createEmbeddedView:Wb,createComponentView:Gb,createNgModuleRef:Xf,overrideProvider:Up,overrideComponentView:Up,clearOverrides:Up,checkAndUpdateView:Yb,checkNoChangesView:Xb,destroyView:r_,createDebugContext:(e,t)=>new H_(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?S_:E_,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?S_:E_,e)};Hp.setCurrentNode=e.setCurrentNode,Hp.createRootView=e.createRootView,Hp.createEmbeddedView=e.createEmbeddedView,Hp.createComponentView=e.createComponentView,Hp.createNgModuleRef=e.createNgModuleRef,Hp.overrideProvider=e.overrideProvider,Hp.overrideComponentView=e.overrideComponentView,Hp.clearOverrides=e.clearOverrides,Hp.checkAndUpdateView=e.checkAndUpdateView,Hp.checkNoChangesView=e.checkNoChangesView,Hp.destroyView=e.destroyView,Hp.resolveDep=vg,Hp.createDebugContext=e.createDebugContext,Hp.handleEvent=e.handleEvent,Hp.updateDirectives=e.updateDirectives,Hp.updateRenderer=e.updateRenderer,Hp.dirtyParentQueries=kb}function h_(e,t,n,r,i,s){const o=i.injector.get(Dh);return zb(f_(e,i,o,t,n),r,s)}function p_(e,t,n,r,i,s){const o=i.injector.get(Dh),a=f_(e,i,new z_(o),t,n),l=$_(r);return q_(T_.create,zb,null,[a,l,s])}function f_(e,t,n,r,i){const s=t.injector.get(Hh),o=t.injector.get(Ai),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:i,sanitizer:s,rendererFactory:n,renderer:a,errorHandler:o}}function g_(e,t,n,r){const i=$_(n);return q_(T_.create,Wb,null,[e,t,i,r])}function m_(e,t,n,r){return n=__.get(t.element.componentProvider.provider.token)||$_(n),q_(T_.create,Gb,null,[e,t,n,r])}function v_(e,t,n,r){return Xf(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===y_.size||(e.providers.forEach(e=>{const r=y_.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{b_.forEach((r,i)=>{_(i).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})})),{hasOverrides:t,hasDeprecatedOverrides:n}}(e);return t?(function(e){for(let t=0;t0){let t=new Set(e.modules);b_.forEach((r,i)=>{if(t.has(_(i).providedIn)){let t={token:i,flags:r.flags|(n?4096:0),deps:uf(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Wp(i)]=t}})}}(e=e.factory(()=>Up)),e):e}(r))}const y_=new Map,b_=new Map,__=new Map;function w_(e){let t;y_.set(e.token,e),"function"==typeof e.token&&(t=_(e.token))&&"function"==typeof t.providedIn&&b_.set(e.token,e)}function x_(e,t){const n=hf(Ff(t)),r=hf(n.nodes[0].element.componentView);__.set(e,r)}function C_(){y_.clear(),b_.clear(),__.clear()}function $_(e){if(0===y_.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;rUp);for(let r=0;r"-"+e[1].toLowerCase()))]=Fi(o))}const r=t.parent,o=Dp(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(o,t,r):e.renderer.removeAttribute(o,t)}else e.renderer.setValue(o,"bindings="+JSON.stringify(n,null,2))}}var i}function F_(e,t,n,r){t_(e,t,n,...r)}function L_(e,t){for(let n=t;n(s++,s===i?e.error.bind(e,...t):Up)),sl;)r.f(e,n=o[l++],t[n]);return e}},g3Qq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("fElF")},gRHU:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("2fFW"),i=n("NJ4a");const s={closed:!0,next(e){},error(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete(){}}},gvyg:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPresent=function(e){return null!=e},t.isDate=function(e){return!/Invalid|NaN/.test(new Date(e).toString())}},hDam:function(e,t){e.exports=function(){}},hGZq:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("uY1Z")),r(n("fWoD"))},hQsY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.base64=function(e){return i.isPresent(r.Validators.required(e))||/^(?:[A-Z0-9+\/]{4})*(?:[A-Z0-9+\/]{2}==|[A-Z0-9+\/]{3}=|[A-Z0-9+\/]{4})$/i.test(e.value)?null:{base64:!0}}},"haF/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("jhFA"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.equal(this.equal)},e.prototype.ngOnChanges=function(e){for(var t in e)"equal"===t&&(this.validator=s.equal(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={equal:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","equal","","formControlName",""],["","equal","","formControl",""],["","equal","","ngModel",""]],inputs:{equal:"equal"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.EqualValidator=l},hen0:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("fjK8")),r(n("y9jv"))},iCc5:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},itXk:function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return c});var r=n("z+Ro"),i=n("DH7j"),s=n("l7GE"),o=n("ZUHj"),a=n("yCtX");const l={};function u(...e){let t=void 0,n=void 0;return Object(r.a)(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(i.a)(e[0])&&(e=e[0]),Object(a.a)(e,n).lift(new c(t))}class c{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new d(e,this.resultSelector))}}class d extends s.a{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(l),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n{const r=new i.a;let s=0;return r.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},jhFA:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("haF/")),r(n("1gPL"))},jmDH:function(e,t,n){e.exports=!n("KUxP")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},jn5B:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("fXoL");var r=n("8f/L"),i=n("+WPs"),s=n("hen0"),o=n("6Axs"),a=n("Zb1L"),l=n("rPcQ"),u=n("jhFA"),c=n("O0EG"),d=n("qmJw"),h=n("/ysC"),p=n("kcx3"),f=n("or8y"),g=n("hGZq"),m=n("T5KR"),v=n("oRo7"),y=n("cN+o"),b=n("nKcR"),_=n("YLEk"),w=n("R4Bc"),x=n("+UwR"),C=n("9uV+"),$=n("afP1"),S=n("r7id"),E=n("W/SZ"),O=n("8IPW");t.CustomValidators={base64:r.base64,creditCard:i.creditCard,date:s.date,dateISO:o.dateISO,digits:a.digits,email:l.email,equal:u.equal,equalTo:c.equalTo,gt:d.gt,gte:h.gte,json:p.json,lt:f.lt,lte:g.lte,max:m.max,maxDate:v.maxDate,min:y.min,minDate:b.minDate,notEqual:_.notEqual,notEqualTo:w.notEqualTo,number:x.number,phone:C.phone,range:$.range,rangeLength:S.rangeLength,url:E.url,uuid:O.uuid};var I=n("fXoL"),k=n("yAwA"),T=n("RY4u"),j=n("fjK8"),V=n("35yN"),P=n("XQZo"),M=n("olS2"),A=n("haF/"),N=n("k7/t"),D=n("wCLq"),R=n("S5Je"),F=n("Laqt"),L=n("NwFL"),B=n("uY1Z"),H=n("4hzb"),U=n("D5k+"),q=n("Cjah"),W=n("Kucq"),z=n("JIED"),G=n("qLGE"),K=n("GkNK"),Q=n("wdEZ"),Z=n("WQkh"),X=n("wXh8"),Y=n("QgIP"),J=n("IVVY");t.CustomFormsModule=function(){function e(){}return e.\u0275mod=I.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=I.\u0275\u0275defineInjector({factory:function(t){return new(t||e)}}),e}(),t.Base64Validator=k.Base64Validator,t.CreditCardValidator=T.CreditCardValidator,t.DateValidator=j.DateValidator,t.DateISOValidator=V.DateISOValidator,t.DigitsValidator=P.DigitsValidator,t.EmailValidator=M.EmailValidator,t.EqualValidator=A.EqualValidator,t.EqualToValidator=N.EqualToValidator,t.GreaterThanValidator=D.GreaterThanValidator,t.GreaterThanEqualValidator=R.GreaterThanEqualValidator,t.JSONValidator=F.JSONValidator,t.LessThanValidator=L.LessThanValidator,t.LessThanEqualValidator=B.LessThanEqualValidator,t.MaxValidator=H.MaxValidator,t.MaxDateValidator=U.MaxDateValidator,t.MinValidator=q.MinValidator,t.MinDateValidator=W.MinDateValidator,t.NotEqualValidator=z.NotEqualValidator,t.NotEqualToValidator=G.NotEqualToValidator,t.NumberValidator=K.NumberValidator,t.PhoneValidator=Q.PhoneValidator,t.RangeValidator=Z.RangeValidator,t.RangeLengthValidator=X.RangeLengthValidator,t.UrlValidator=Y.UrlValidator,t.UUIDValidator=J.UUIDValidator},jtHE:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("XNiG"),i=n("qgXg"),s=n("quSY"),o=n("pxpQ"),a=n("9ppp"),l=n("Ylt2");class u extends r.a{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new c(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,i=n.length;let u;if(this.closed)throw new a.a;if(this.isStopped||this.hasError?u=s.a.EMPTY:(this.observers.push(e),u=new l.a(this,e)),r&&e.add(e=new o.a(e,r)),t)for(let s=0;st&&(s=Math.max(s,i-t)),s>0&&r.splice(0,s),r}}class c{constructor(e,t){this.time=e,this.value=t}}},"k/8l":function(e,t,n){e.exports={default:n("VKFn"),__esModule:!0}},"k7/t":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("O0EG"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.equalTo(this.equalTo)},e.prototype.validate=function(e){return this.validator(e)},e.propDecorators={equalTo:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","equalTo","","formControlName",""],["","equalTo","","formControl",""],["","equalTo","","ngModel",""]],inputs:{equalTo:"equalTo"},features:[o.\u0275\u0275ProvidersFeature([a])]}),e}();t.EqualToValidator=l},kJWO:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kTiW:function(e,t,n){e.exports=n("NegM")},kU1M:function(e,t,n){"use strict";n.r(t),n.d(t,"audit",function(){return i}),n.d(t,"auditTime",function(){return u}),n.d(t,"buffer",function(){return c}),n.d(t,"bufferCount",function(){return f}),n.d(t,"bufferTime",function(){return b}),n.d(t,"bufferToggle",function(){return k}),n.d(t,"bufferWhen",function(){return V}),n.d(t,"catchError",function(){return A.a}),n.d(t,"combineAll",function(){return N.a}),n.d(t,"combineLatest",function(){return L}),n.d(t,"concat",function(){return H}),n.d(t,"concatAll",function(){return U.a}),n.d(t,"concatMap",function(){return q.a}),n.d(t,"concatMapTo",function(){return W}),n.d(t,"count",function(){return z}),n.d(t,"debounce",function(){return Q}),n.d(t,"debounceTime",function(){return Y}),n.d(t,"defaultIfEmpty",function(){return ne.a}),n.d(t,"delay",function(){return se}),n.d(t,"delayWhen",function(){return ce}),n.d(t,"dematerialize",function(){return ge}),n.d(t,"distinct",function(){return ye}),n.d(t,"distinctUntilChanged",function(){return we}),n.d(t,"distinctUntilKeyChanged",function(){return $e}),n.d(t,"elementAt",function(){return ke}),n.d(t,"endWith",function(){return je}),n.d(t,"every",function(){return Ve}),n.d(t,"exhaust",function(){return Ae}),n.d(t,"exhaustMap",function(){return Fe}),n.d(t,"expand",function(){return He}),n.d(t,"filter",function(){return Ee.a}),n.d(t,"finalize",function(){return We.a}),n.d(t,"find",function(){return ze}),n.d(t,"findIndex",function(){return Qe}),n.d(t,"first",function(){return Ze.a}),n.d(t,"groupBy",function(){return Xe.b}),n.d(t,"ignoreElements",function(){return Ye}),n.d(t,"isEmpty",function(){return tt}),n.d(t,"last",function(){return it.a}),n.d(t,"map",function(){return Re.a}),n.d(t,"mapTo",function(){return st}),n.d(t,"materialize",function(){return lt}),n.d(t,"max",function(){return ht}),n.d(t,"merge",function(){return ft}),n.d(t,"mergeAll",function(){return gt.a}),n.d(t,"mergeMap",function(){return mt.b}),n.d(t,"flatMap",function(){return mt.a}),n.d(t,"mergeMapTo",function(){return vt}),n.d(t,"mergeScan",function(){return yt}),n.d(t,"min",function(){return wt}),n.d(t,"multicast",function(){return xt.a}),n.d(t,"observeOn",function(){return Ct.b}),n.d(t,"onErrorResumeNext",function(){return $t}),n.d(t,"pairwise",function(){return Ot}),n.d(t,"partition",function(){return jt}),n.d(t,"pluck",function(){return Vt}),n.d(t,"publish",function(){return Mt}),n.d(t,"publishBehavior",function(){return Nt}),n.d(t,"publishLast",function(){return Rt}),n.d(t,"publishReplay",function(){return Lt}),n.d(t,"race",function(){return Ht}),n.d(t,"reduce",function(){return dt.a}),n.d(t,"repeat",function(){return qt}),n.d(t,"repeatWhen",function(){return Gt}),n.d(t,"retry",function(){return Zt}),n.d(t,"retryWhen",function(){return Jt}),n.d(t,"refCount",function(){return nn.a}),n.d(t,"sample",function(){return rn}),n.d(t,"sampleTime",function(){return an}),n.d(t,"scan",function(){return dn.a}),n.d(t,"sequenceEqual",function(){return hn}),n.d(t,"share",function(){return mn.a}),n.d(t,"shareReplay",function(){return vn}),n.d(t,"single",function(){return bn}),n.d(t,"skip",function(){return xn}),n.d(t,"skipLast",function(){return Sn}),n.d(t,"skipUntil",function(){return In}),n.d(t,"skipWhile",function(){return jn}),n.d(t,"startWith",function(){return Mn.a}),n.d(t,"subscribeOn",function(){return Rn}),n.d(t,"switchAll",function(){return Hn}),n.d(t,"switchMap",function(){return Ln.a}),n.d(t,"switchMapTo",function(){return Un}),n.d(t,"take",function(){return Ie.a}),n.d(t,"takeLast",function(){return qn.a}),n.d(t,"takeUntil",function(){return Wn}),n.d(t,"takeWhile",function(){return Kn}),n.d(t,"tap",function(){return Xn.a}),n.d(t,"throttle",function(){return Jn}),n.d(t,"throttleTime",function(){return nr}),n.d(t,"throwIfEmpty",function(){return Oe.a}),n.d(t,"timeInterval",function(){return ar}),n.d(t,"timeout",function(){return fr}),n.d(t,"timeoutWith",function(){return cr}),n.d(t,"timestamp",function(){return gr}),n.d(t,"toArray",function(){return vr.a}),n.d(t,"window",function(){return yr}),n.d(t,"windowCount",function(){return wr}),n.d(t,"windowTime",function(){return $r}),n.d(t,"windowToggle",function(){return jr}),n.d(t,"windowWhen",function(){return Mr}),n.d(t,"withLatestFrom",function(){return Dr}),n.d(t,"zip",function(){return Br}),n.d(t,"zipAll",function(){return Hr});var r=n("zx2A");function i(e){return function(t){return t.lift(new s(e))}}class s{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new o(e,this.durationSelector))}}class o extends r.b{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:t}=this;n=t(e)}catch(t){return this.destination.error(t)}const i=Object(r.c)(n,new r.a(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n("D0XW"),l=n("PqYM");function u(e,t=a.a){return i(()=>Object(l.a)(e,t))}function c(e){return function(t){return t.lift(new d(e))}}class d{constructor(e){this.closingNotifier=e}call(e,t){return t.subscribe(new h(e,this.closingNotifier))}}class h extends r.b{constructor(e,t){super(e),this.buffer=[],this.add(Object(r.c)(t,new r.a(this)))}_next(e){this.buffer.push(e)}notifyNext(){const e=this.buffer;this.buffer=[],this.destination.next(e)}}var p=n("7o/Q");function f(e,t=null){return function(n){return n.lift(new g(e,t))}}class g{constructor(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?v:m}call(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))}}class m extends p.a{constructor(e,t){super(e),this.bufferSize=t,this.buffer=[]}_next(e){const t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])}_complete(){const e=this.buffer;e.length>0&&this.destination.next(e),super._complete()}}class v extends p.a{constructor(e,t,n){super(e),this.bufferSize=t,this.startBufferEvery=n,this.buffers=[],this.count=0}_next(e){const{bufferSize:t,startBufferEvery:n,buffers:r,count:i}=this;this.count++,i%n==0&&r.push([]);for(let s=r.length;s--;){const n=r[s];n.push(e),n.length===t&&(r.splice(s,1),this.destination.next(n))}}_complete(){const{buffers:e,destination:t}=this;for(;e.length>0;){let n=e.shift();n.length>0&&t.next(n)}super._complete()}}var y=n("z+Ro");function b(e){let t=arguments.length,n=a.a;Object(y.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);let r=null;t>=2&&(r=arguments[1]);let i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new _(e,r,i,n))}}class _{constructor(e,t,n,r){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=r}call(e,t){return t.subscribe(new x(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class w{constructor(){this.buffer=[]}}class x extends p.a{constructor(e,t,n,r,i){super(e),this.bufferTimeSpan=t,this.bufferCreationInterval=n,this.maxBufferSize=r,this.scheduler=i,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==n||n<0,this.timespanOnly)this.add(s.closeAction=i.schedule(C,t,{subscriber:this,context:s,bufferTimeSpan:t}));else{const e={bufferTimeSpan:t,bufferCreationInterval:n,subscriber:this,scheduler:i};this.add(s.closeAction=i.schedule(S,t,{subscriber:this,context:s})),this.add(i.schedule($,n,e))}}_next(e){const t=this.contexts,n=t.length;let r;for(let i=0;i0;){const n=e.shift();t.next(n.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(e){this.closeContext(e);const t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();const t=this.bufferTimeSpan;this.add(e.closeAction=this.scheduler.schedule(C,t,{subscriber:this,context:e,bufferTimeSpan:t}))}}openContext(){const e=new w;return this.contexts.push(e),e}closeContext(e){this.destination.next(e.buffer);const t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)}}function C(e){const t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function $(e){const{bufferCreationInterval:t,bufferTimeSpan:n,subscriber:r,scheduler:i}=e,s=r.openContext();r.closed||(r.add(s.closeAction=i.schedule(S,n,{subscriber:r,context:s})),this.schedule(e,t))}function S(e){const{subscriber:t,context:n}=e;t.closeContext(n)}var E=n("quSY"),O=n("ZUHj"),I=n("l7GE");function k(e,t){return function(n){return n.lift(new T(e,t))}}class T{constructor(e,t){this.openings=e,this.closingSelector=t}call(e,t){return t.subscribe(new j(e,this.openings,this.closingSelector))}}class j extends I.a{constructor(e,t,n){super(e),this.closingSelector=n,this.contexts=[],this.add(Object(O.a)(this,t))}_next(e){const t=this.contexts,n=t.length;for(let r=0;r0;){const e=t.shift();e.subscription.unsubscribe(),e.buffer=null,e.subscription=null}this.contexts=null,super._error(e)}_complete(){const e=this.contexts;for(;e.length>0;){const t=e.shift();this.destination.next(t.buffer),t.subscription.unsubscribe(),t.buffer=null,t.subscription=null}this.contexts=null,super._complete()}notifyNext(e,t){e?this.closeBuffer(e):this.openBuffer(t)}notifyComplete(e){this.closeBuffer(e.context)}openBuffer(e){try{const t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(t){this._error(t)}}closeBuffer(e){const t=this.contexts;if(t&&e){const{buffer:n,subscription:r}=e;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(r),r.unsubscribe()}}trySubscribe(e){const t=this.contexts,n=new E.a,r={buffer:[],subscription:n};t.push(r);const i=Object(O.a)(this,e,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))}}function V(e){return function(t){return t.lift(new P(e))}}class P{constructor(e){this.closingSelector=e}call(e,t){return t.subscribe(new M(e,this.closingSelector))}}class M extends r.b{constructor(e,t){super(e),this.closingSelector=t,this.subscribing=!1,this.openBuffer()}_next(e){this.buffer.push(e)}_complete(){const e=this.buffer;e&&this.destination.next(e),super._complete()}_unsubscribe(){this.buffer=void 0,this.subscribing=!1}notifyNext(){this.openBuffer()}notifyComplete(){this.subscribing?this.complete():this.openBuffer()}openBuffer(){let e,{closingSubscription:t}=this;t&&(this.remove(t),t.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{const{closingSelector:t}=this;e=t()}catch(n){return this.error(n)}t=new E.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(r.c)(e,new r.a(this))),this.subscribing=!1}}var A=n("JIr8"),N=n("7wxJ"),D=n("DH7j"),R=n("itXk"),F=n("Cfvw");function L(...e){let t=null;return"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(D.a)(e[0])&&(e=e[0].slice()),n=>n.lift.call(Object(F.a)([n,...e]),new R.a(t))}var B=n("GyhO");function H(...e){return t=>t.lift.call(Object(B.a)(t,...e))}var U=n("0EUg"),q=n("bOdf");function W(e,t){return Object(q.a)(()=>e,t)}function z(e){return t=>t.lift(new G(e,t))}class G{constructor(e,t){this.predicate=e,this.source=t}call(e,t){return t.subscribe(new K(e,this.predicate,this.source))}}class K extends p.a{constructor(e,t,n){super(e),this.predicate=t,this.source=n,this.count=0,this.index=0}_next(e){this.predicate?this._tryPredicate(e):this.count++}_tryPredicate(e){let t;try{t=this.predicate(e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function Q(e){return t=>t.lift(new Z(e))}class Z{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new X(e,this.durationSelector))}}class X extends r.b{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){try{const t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(t){this.destination.error(t)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(e,t){let n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),n=Object(r.c)(t,new r.a(this)),n&&!n.closed&&this.add(this.durationSubscription=n)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const e=this.value,t=this.durationSubscription;t&&(this.durationSubscription=void 0,t.unsubscribe(),this.remove(t)),this.value=void 0,this.hasValue=!1,super._next(e)}}}function Y(e,t=a.a){return n=>n.lift(new J(e,t))}class J{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new ee(e,this.dueTime,this.scheduler))}}class ee extends p.a{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(te,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function te(e){e.debouncedNext()}var ne=n("xbPD");function re(e){return e instanceof Date&&!isNaN(+e)}var ie=n("WMd4");function se(e,t=a.a){const n=re(e)?+e-t.now():Math.abs(e);return e=>e.lift(new oe(n,t))}class oe{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new ae(e,this.delay,this.scheduler))}}class ae extends p.a{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,r=e.scheduler,i=e.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){const t=Math.max(0,n[0].time-r.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(ae.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new le(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(ie.a.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(ie.a.createComplete()),this.unsubscribe()}}class le{constructor(e,t){this.time=e,this.notification=t}}var ue=n("HDdC");function ce(e,t){return t?n=>new pe(n,t).lift(new de(e)):t=>t.lift(new de(e))}class de{constructor(e){this.delayDurationSelector=e}call(e,t){return t.subscribe(new he(e,this.delayDurationSelector))}}class he extends I.a{constructor(e,t){super(e),this.delayDurationSelector=t,this.completed=!1,this.delayNotifierSubscriptions=[],this.index=0}notifyNext(e,t,n,r,i){this.destination.next(e),this.removeSubscription(i),this.tryComplete()}notifyError(e,t){this._error(e)}notifyComplete(e){const t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()}_next(e){const t=this.index++;try{const n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(n){this.destination.error(n)}}_complete(){this.completed=!0,this.tryComplete(),this.unsubscribe()}removeSubscription(e){e.unsubscribe();const t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue}tryDelay(e,t){const n=Object(O.a)(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))}tryComplete(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}class pe extends ue.a{constructor(e,t){super(),this.source=e,this.subscriptionDelay=t}_subscribe(e){this.subscriptionDelay.subscribe(new fe(e,this.source))}}class fe extends p.a{constructor(e,t){super(),this.parent=e,this.source=t,this.sourceSubscribed=!1}_next(e){this.subscribeToSource()}_error(e){this.unsubscribe(),this.parent.error(e)}_complete(){this.unsubscribe(),this.subscribeToSource()}subscribeToSource(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}function ge(){return function(e){return e.lift(new me)}}class me{call(e,t){return t.subscribe(new ve(e))}}class ve extends p.a{constructor(e){super(e)}_next(e){e.observe(this.destination)}}function ye(e,t){return n=>n.lift(new be(e,t))}class be{constructor(e,t){this.keySelector=e,this.flushes=t}call(e,t){return t.subscribe(new _e(e,this.keySelector,this.flushes))}}class _e extends r.b{constructor(e,t,n){super(e),this.keySelector=t,this.values=new Set,n&&this.add(Object(r.c)(n,new r.a(this)))}notifyNext(){this.values.clear()}notifyError(e){this._error(e)}_next(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)}_useKeySelector(e){let t;const{destination:n}=this;try{t=this.keySelector(e)}catch(r){return void n.error(r)}this._finalizeNext(t,e)}_finalizeNext(e,t){const{values:n}=this;n.has(e)||(n.add(e),this.destination.next(t))}}function we(e,t){return n=>n.lift(new xe(e,t))}class xe{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new Ce(e,this.compare,this.keySelector))}}class Ce extends p.a{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}function $e(e,t){return we((n,r)=>t?t(n[e],r[e]):n[e]===r[e])}var Se=n("4I5i"),Ee=n("pLZG"),Oe=n("XDbj"),Ie=n("IzEk");function ke(e,t){if(e<0)throw new Se.a;const n=arguments.length>=2;return r=>r.pipe(Object(Ee.a)((t,n)=>n===e),Object(Ie.a)(1),n?Object(ne.a)(t):Object(Oe.a)(()=>new Se.a))}var Te=n("LRne");function je(...e){return t=>Object(B.a)(t,Object(Te.a)(...e))}function Ve(e,t){return n=>n.lift(new Pe(e,t,n))}class Pe{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new Me(e,this.predicate,this.thisArg,this.source))}}class Me extends p.a{constructor(e,t,n,r){super(e),this.predicate=t,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Ae(){return e=>e.lift(new Ne)}class Ne{call(e,t){return t.subscribe(new De(e))}}class De extends r.b{constructor(e){super(e),this.hasCompleted=!1,this.hasSubscription=!1}_next(e){this.hasSubscription||(this.hasSubscription=!0,this.add(Object(r.c)(e,new r.a(this))))}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var Re=n("lJxs");function Fe(e,t){return t?n=>n.pipe(Fe((n,r)=>Object(F.a)(e(n,r)).pipe(Object(Re.a)((e,i)=>t(n,e,r,i))))):t=>t.lift(new Le(e))}class Le{constructor(e){this.project=e}call(e,t){return t.subscribe(new Be(e,this.project))}}class Be extends r.b{constructor(e,t){super(e),this.project=t,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(e){this.hasSubscription||this.tryNext(e)}tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.hasSubscription=!0,this._innerSub(t)}_innerSub(e){const t=new r.a(this),n=this.destination;n.add(t);const i=Object(r.c)(e,t);i!==t&&n.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}function He(e,t=Number.POSITIVE_INFINITY,n){return t=(t||0)<1?Number.POSITIVE_INFINITY:t,r=>r.lift(new Ue(e,t,n))}class Ue{constructor(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}call(e,t){return t.subscribe(new qe(e,this.project,this.concurrent,this.scheduler))}}class qe extends r.b{constructor(e,t,n,r){super(e),this.project=t,this.concurrent=n,this.scheduler=r,this.index=0,this.active=0,this.hasCompleted=!1,n0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}var We=n("nYR2");function ze(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return n=>n.lift(new Ge(e,n,!1,t))}class Ge{constructor(e,t,n,r){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=r}call(e,t){return t.subscribe(new Ke(e,this.predicate,this.source,this.yieldIndex,this.thisArg))}}class Ke extends p.a{constructor(e,t,n,r,i){super(e),this.predicate=t,this.source=n,this.yieldIndex=r,this.thisArg=i,this.index=0}notifyComplete(e){const t=this.destination;t.next(e),t.complete(),this.unsubscribe()}_next(e){const{predicate:t,thisArg:n}=this,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(i){this.destination.error(i)}}_complete(){this.notifyComplete(this.yieldIndex?-1:void 0)}}function Qe(e,t){return n=>n.lift(new Ge(e,n,!0,t))}var Ze=n("SxV6"),Xe=n("OQgR");function Ye(){return function(e){return e.lift(new Je)}}class Je{call(e,t){return t.subscribe(new et(e))}}class et extends p.a{_next(e){}}function tt(){return e=>e.lift(new nt)}class nt{call(e,t){return t.subscribe(new rt(e))}}class rt extends p.a{constructor(e){super(e)}notifyComplete(e){const t=this.destination;t.next(e),t.complete()}_next(e){this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var it=n("NJ9Y");function st(e){return t=>t.lift(new ot(e))}class ot{constructor(e){this.value=e}call(e,t){return t.subscribe(new at(e,this.value))}}class at extends p.a{constructor(e,t){super(e),this.value=t}_next(e){this.destination.next(this.value)}}function lt(){return function(e){return e.lift(new ut)}}class ut{call(e,t){return t.subscribe(new ct(e))}}class ct extends p.a{constructor(e){super(e)}_next(e){this.destination.next(ie.a.createNext(e))}_error(e){const t=this.destination;t.next(ie.a.createError(e)),t.complete()}_complete(){const e=this.destination;e.next(ie.a.createComplete()),e.complete()}}var dt=n("128B");function ht(e){const t="function"==typeof e?(t,n)=>e(t,n)>0?t:n:(e,t)=>e>t?e:t;return Object(dt.a)(t)}var pt=n("VRyK");function ft(...e){return t=>t.lift.call(Object(pt.a)(t,...e))}var gt=n("bHdf"),mt=n("5+tZ");function vt(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?Object(mt.b)(()=>e,t,n):("number"==typeof t&&(n=t),Object(mt.b)(()=>e,n))}function yt(e,t,n=Number.POSITIVE_INFINITY){return r=>r.lift(new bt(e,t,n))}class bt{constructor(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}call(e,t){return t.subscribe(new _t(e,this.accumulator,this.seed,this.concurrent))}}class _t extends r.b{constructor(e,t,n,r){super(e),this.accumulator=t,this.acc=n,this.concurrent=r,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){if(this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}function wt(e){const t="function"==typeof e?(t,n)=>e(t,n)<0?t:n:(e,t)=>et.lift(new St(e))}class St{constructor(e){this.nextSources=e}call(e,t){return t.subscribe(new Et(e,this.nextSources))}}class Et extends r.b{constructor(e,t){super(e),this.destination=e,this.nextSources=t}notifyError(){this.subscribeToNextSource()}notifyComplete(){this.subscribeToNextSource()}_error(e){this.subscribeToNextSource(),this.unsubscribe()}_complete(){this.subscribeToNextSource(),this.unsubscribe()}subscribeToNextSource(){const e=this.nextSources.shift();if(e){const t=new r.a(this),n=this.destination;n.add(t);const i=Object(r.c)(e,t);i!==t&&n.add(i)}else this.destination.complete()}}function Ot(){return e=>e.lift(new It)}class It{call(e,t){return t.subscribe(new kt(e))}}class kt extends p.a{constructor(e){super(e),this.hasPrev=!1}_next(e){let t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)}}var Tt=n("F97/");function jt(e,t){return n=>[Object(Ee.a)(e,t)(n),Object(Ee.a)(Object(Tt.a)(e,t))(n)]}function Vt(...e){const t=e.length;if(0===t)throw new Error("list of properties cannot be empty.");return n=>Object(Re.a)(function(e,t){return n=>{let r=n;for(let i=0;inew Pt.a,e):Object(xt.a)(new Pt.a)}var At=n("2Vo4");function Nt(e){return t=>Object(xt.a)(new At.a(e))(t)}var Dt=n("NHP+");function Rt(){return e=>Object(xt.a)(new Dt.a)(e)}var Ft=n("jtHE");function Lt(e,t,n,r){n&&"function"!=typeof n&&(r=n);const i="function"==typeof n?n:void 0,s=new Ft.a(e,t,r);return e=>Object(xt.a)(()=>s,i)(e)}var Bt=n("Nv8m");function Ht(...e){return function(t){return 1===e.length&&Object(D.a)(e[0])&&(e=e[0]),t.lift.call(Object(Bt.a)(t,...e))}}var Ut=n("EY2u");function qt(e=-1){return t=>0===e?Object(Ut.b)():t.lift(new Wt(e<0?-1:e-1,t))}class Wt{constructor(e,t){this.count=e,this.source=t}call(e,t){return t.subscribe(new zt(e,this.count,this.source))}}class zt extends p.a{constructor(e,t,n){super(e),this.count=t,this.source=n}complete(){if(!this.isStopped){const{source:e,count:t}=this;if(0===t)return super.complete();t>-1&&(this.count=t-1),e.subscribe(this._unsubscribeAndRecycle())}}}function Gt(e){return t=>t.lift(new Kt(e))}class Kt{constructor(e){this.notifier=e}call(e,t){return t.subscribe(new Qt(e,this.notifier,t))}}class Qt extends r.b{constructor(e,t,n){super(e),this.notifier=t,this.source=n,this.sourceIsBeingSubscribedTo=!0}notifyNext(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}_unsubscribe(){const{notifications:e,retriesSubscription:t}=this;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}_unsubscribeAndRecycle(){const{_unsubscribe:e}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=e,this}subscribeToRetries(){let e;this.notifications=new Pt.a;try{const{notifier:t}=this;e=t(this.notifications)}catch(t){return super.complete()}this.retries=e,this.retriesSubscription=Object(r.c)(e,new r.a(this))}}function Zt(e=-1){return t=>t.lift(new Xt(e,t))}class Xt{constructor(e,t){this.count=e,this.source=t}call(e,t){return t.subscribe(new Yt(e,this.count,this.source))}}class Yt extends p.a{constructor(e,t,n){super(e),this.count=t,this.source=n}error(e){if(!this.isStopped){const{source:t,count:n}=this;if(0===n)return super.error(e);n>-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}}}function Jt(e){return t=>t.lift(new en(e,t))}class en{constructor(e,t){this.notifier=e,this.source=t}call(e,t){return t.subscribe(new tn(e,this.notifier,this.source))}}class tn extends r.b{constructor(e,t,n){super(e),this.notifier=t,this.source=n}error(e){if(!this.isStopped){let n=this.errors,i=this.retries,s=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{n=new Pt.a;try{const{notifier:e}=this;i=e(n)}catch(t){return super.error(t)}s=Object(r.c)(i,new r.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=s,n.next(e)}}_unsubscribe(){const{errors:e,retriesSubscription:t}=this;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:e}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)}}var nn=n("x+ZX");function rn(e){return t=>t.lift(new sn(e))}class sn{constructor(e){this.notifier=e}call(e,t){const n=new on(e),i=t.subscribe(n);return i.add(Object(r.c)(this.notifier,new r.a(n))),i}}class on extends r.b{constructor(){super(...arguments),this.hasValue=!1}_next(e){this.value=e,this.hasValue=!0}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}function an(e,t=a.a){return n=>n.lift(new ln(e,t))}class ln{constructor(e,t){this.period=e,this.scheduler=t}call(e,t){return t.subscribe(new un(e,this.period,this.scheduler))}}class un extends p.a{constructor(e,t,n){super(e),this.period=t,this.scheduler=n,this.hasValue=!1,this.add(n.schedule(cn,t,{subscriber:this,period:t}))}_next(e){this.lastValue=e,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function cn(e){let{subscriber:t,period:n}=e;t.notifyNext(),this.schedule(e,n)}var dn=n("Kqap");function hn(e,t){return n=>n.lift(new pn(e,t))}class pn{constructor(e,t){this.compareTo=e,this.comparator=t}call(e,t){return t.subscribe(new fn(e,this.compareTo,this.comparator))}}class fn extends p.a{constructor(e,t,n){super(e),this.compareTo=t,this.comparator=n,this._a=[],this._b=[],this._oneComplete=!1,this.destination.add(t.subscribe(new gn(e,this)))}_next(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())}_complete(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}checkValues(){const{_a:e,_b:t,comparator:n}=this;for(;e.length>0&&t.length>0;){let i=e.shift(),s=t.shift(),o=!1;try{o=n?n(i,s):i===s}catch(r){this.destination.error(r)}o||this.emit(!1)}}emit(e){const{destination:t}=this;t.next(e),t.complete()}nextB(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())}completeB(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}class gn extends p.a{constructor(e,t){super(e),this.parent=t}_next(e){this.parent.nextB(e)}_error(e){this.parent.error(e),this.unsubscribe()}_complete(){this.parent.completeB(),this.unsubscribe()}}var mn=n("w1tV");function vn(e,t,n){let r;return r=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},e=>e.lift(function({bufferSize:e=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let i,s,o=0,a=!1,l=!1;return function(u){let c;o++,!i||a?(a=!1,i=new Ft.a(e,t,r),c=i.subscribe(this),s=u.subscribe({next(e){i.next(e)},error(e){a=!0,i.error(e)},complete(){l=!0,s=void 0,i.complete()}})):c=i.subscribe(this),this.add(()=>{o--,c.unsubscribe(),s&&!l&&n&&0===o&&(s.unsubscribe(),s=void 0,i=void 0)})}}(r))}var yn=n("sVev");function bn(e){return t=>t.lift(new _n(e,t))}class _n{constructor(e,t){this.predicate=e,this.source=t}call(e,t){return t.subscribe(new wn(e,this.predicate,this.source))}}class wn extends p.a{constructor(e,t,n){super(e),this.predicate=t,this.source=n,this.seenValue=!1,this.index=0}applySingleValue(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)}_next(e){const t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)}tryNext(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(n){this.destination.error(n)}}_complete(){const e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new yn.a)}}function xn(e){return t=>t.lift(new Cn(e))}class Cn{constructor(e){this.total=e}call(e,t){return t.subscribe(new $n(e,this.total))}}class $n extends p.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}function Sn(e){return t=>t.lift(new En(e))}class En{constructor(e){if(this._skipCount=e,this._skipCount<0)throw new Se.a}call(e,t){return t.subscribe(0===this._skipCount?new p.a(e):new On(e,this._skipCount))}}class On extends p.a{constructor(e,t){super(e),this._skipCount=t,this._count=0,this._ring=new Array(t)}_next(e){const t=this._skipCount,n=this._count++;if(nt.lift(new kn(e))}class kn{constructor(e){this.notifier=e}call(e,t){return t.subscribe(new Tn(e,this.notifier))}}class Tn extends r.b{constructor(e,t){super(e),this.hasValue=!1;const n=new r.a(this);this.add(n),this.innerSubscription=n;const i=Object(r.c)(t,n);i!==n&&(this.add(i),this.innerSubscription=i)}_next(e){this.hasValue&&super._next(e)}notifyNext(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}notifyComplete(){}}function jn(e){return t=>t.lift(new Vn(e))}class Vn{constructor(e){this.predicate=e}call(e,t){return t.subscribe(new Pn(e,this.predicate))}}class Pn extends p.a{constructor(e,t){super(e),this.predicate=t,this.skipping=!0,this.index=0}_next(e){const t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)}tryCallPredicate(e){try{const t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(t){this.destination.error(t)}}}var Mn=n("JX91"),An=n("7Hc7"),Nn=n("Y7HM");class Dn extends ue.a{constructor(e,t=0,n=An.a){super(),this.source=e,this.delayTime=t,this.scheduler=n,(!Object(Nn.a)(t)||t<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=An.a)}static create(e,t=0,n=An.a){return new Dn(e,t,n)}static dispatch(e){const{source:t,subscriber:n}=e;return this.add(t.subscribe(n))}_subscribe(e){return this.scheduler.schedule(Dn.dispatch,this.delayTime,{source:this.source,subscriber:e})}}function Rn(e,t=0){return function(n){return n.lift(new Fn(e,t))}}class Fn{constructor(e,t){this.scheduler=e,this.delay=t}call(e,t){return new Dn(t,this.delay,this.scheduler).subscribe(e)}}var Ln=n("eIep"),Bn=n("SpAZ");function Hn(){return Object(Ln.a)(Bn.a)}function Un(e,t){return t?Object(Ln.a)(()=>e,t):Object(Ln.a)(()=>e)}var qn=n("BFxc");function Wn(e){return t=>t.lift(new zn(e))}class zn{constructor(e){this.notifier=e}call(e,t){const n=new Gn(e),i=Object(r.c)(this.notifier,new r.a(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}class Gn extends r.b{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Kn(e,t=!1){return n=>n.lift(new Qn(e,t))}class Qn{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new Zn(e,this.predicate,this.inclusive))}}class Zn extends p.a{constructor(e,t,n){super(e),this.predicate=t,this.inclusive=n,this.index=0}_next(e){const t=this.destination;let n;try{n=this.predicate(e,this.index++)}catch(r){return void t.error(r)}this.nextOrComplete(e,n)}nextOrComplete(e,t){const n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}var Xn=n("vkgz");const Yn={leading:!0,trailing:!1};function Jn(e,t=Yn){return n=>n.lift(new er(e,!!t.leading,!!t.trailing))}class er{constructor(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}call(e,t){return t.subscribe(new tr(e,this.durationSelector,this.leading,this.trailing))}}class tr extends r.b{constructor(e,t,n,r){super(e),this.destination=e,this.durationSelector=t,this._leading=n,this._trailing=r,this._hasValue=!1}_next(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))}send(){const{_hasValue:e,_sendValue:t}=this;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=void 0}throttle(e){const t=this.tryDurationSelector(e);t&&this.add(this._throttled=Object(r.c)(t,new r.a(this)))}tryDurationSelector(e){try{return this.durationSelector(e)}catch(t){return this.destination.error(t),null}}throttlingDone(){const{_throttled:e,_trailing:t}=this;e&&e.unsubscribe(),this._throttled=void 0,t&&this.send()}notifyNext(){this.throttlingDone()}notifyComplete(){this.throttlingDone()}}function nr(e,t=a.a,n=Yn){return r=>r.lift(new rr(e,t,n.leading,n.trailing))}class rr{constructor(e,t,n,r){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=r}call(e,t){return t.subscribe(new ir(e,this.duration,this.scheduler,this.leading,this.trailing))}}class ir extends p.a{constructor(e,t,n,r,i){super(e),this.duration=t,this.scheduler=n,this.leading=r,this.trailing=i,this._hasTrailingValue=!1,this._trailingValue=null}_next(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(sr,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}function sr(e){const{subscriber:t}=e;t.clearThrottle()}var or=n("NXyV");function ar(e=a.a){return t=>Object(or.a)(()=>t.pipe(Object(dn.a)(({current:t},n)=>({value:n,current:e.now(),last:t}),{current:e.now(),value:void 0,last:void 0}),Object(Re.a)(({current:e,last:t,value:n})=>new lr(n,e-t))))}class lr{constructor(e,t){this.value=e,this.interval=t}}var ur=n("Y6u4");function cr(e,t,n=a.a){return r=>{let i=re(e),s=i?+e-n.now():Math.abs(e);return r.lift(new dr(s,i,t,n))}}class dr{constructor(e,t,n,r){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=r}call(e,t){return t.subscribe(new hr(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class hr extends r.b{constructor(e,t,n,r,i){super(e),this.absoluteTimeout=t,this.waitFor=n,this.withObservable=r,this.scheduler=i,this.scheduleTimeout()}static dispatchTimeout(e){const{withObservable:t}=e;e._unsubscribeAndRecycle(),e.add(Object(r.c)(t,new r.a(e)))}scheduleTimeout(){const{action:e}=this;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(hr.dispatchTimeout,this.waitFor,this))}_next(e){this.absoluteTimeout||this.scheduleTimeout(),super._next(e)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var pr=n("z6cu");function fr(e,t=a.a){return cr(e,Object(pr.a)(new ur.a),t)}function gr(e=a.a){return Object(Re.a)(t=>new mr(t,e.now()))}class mr{constructor(e,t){this.value=e,this.timestamp=t}}var vr=n("IAdc");function yr(e){return function(t){return t.lift(new br(e))}}class br{constructor(e){this.windowBoundaries=e}call(e,t){const n=new _r(e),i=t.subscribe(n);return i.closed||n.add(Object(r.c)(this.windowBoundaries,new r.a(n))),i}}class _r extends r.b{constructor(e){super(e),this.window=new Pt.a,e.next(this.window)}notifyNext(){this.openWindow()}notifyError(e){this._error(e)}notifyComplete(){this._complete()}_next(e){this.window.next(e)}_error(e){this.window.error(e),this.destination.error(e)}_complete(){this.window.complete(),this.destination.complete()}_unsubscribe(){this.window=null}openWindow(){const e=this.window;e&&e.complete();const t=this.destination,n=this.window=new Pt.a;t.next(n)}}function wr(e,t=0){return function(n){return n.lift(new xr(e,t))}}class xr{constructor(e,t){this.windowSize=e,this.startWindowEvery=t}call(e,t){return t.subscribe(new Cr(e,this.windowSize,this.startWindowEvery))}}class Cr extends p.a{constructor(e,t,n){super(e),this.destination=e,this.windowSize=t,this.startWindowEvery=n,this.windows=[new Pt.a],this.count=0,e.next(this.windows[0])}_next(e){const t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,s=i.length;for(let a=0;a=0&&o%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){const e=new Pt.a;i.push(e),n.next(e)}}_error(e){const t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)}_complete(){const e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()}_unsubscribe(){this.count=0,this.windows=null}}function $r(e){let t=a.a,n=null,r=Number.POSITIVE_INFINITY;return Object(y.a)(arguments[3])&&(t=arguments[3]),Object(y.a)(arguments[2])?t=arguments[2]:Object(Nn.a)(arguments[2])&&(r=Number(arguments[2])),Object(y.a)(arguments[1])?t=arguments[1]:Object(Nn.a)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new Sr(e,n,r,t))}}class Sr{constructor(e,t,n,r){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=r}call(e,t){return t.subscribe(new Or(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}class Er extends Pt.a{constructor(){super(...arguments),this._numberOfNextedValues=0}next(e){this._numberOfNextedValues++,super.next(e)}get numberOfNextedValues(){return this._numberOfNextedValues}}class Or extends p.a{constructor(e,t,n,r,i){super(e),this.destination=e,this.windowTimeSpan=t,this.windowCreationInterval=n,this.maxWindowSize=r,this.scheduler=i,this.windows=[];const s=this.openWindow();if(null!==n&&n>=0){const e={windowTimeSpan:t,windowCreationInterval:n,subscriber:this,scheduler:i};this.add(i.schedule(Tr,t,{subscriber:this,window:s,context:null})),this.add(i.schedule(kr,n,e))}else this.add(i.schedule(Ir,t,{subscriber:this,window:s,windowTimeSpan:t}))}_next(e){const t=this.windows,n=t.length;for(let r=0;r=this.maxWindowSize&&this.closeWindow(n))}}_error(e){const t=this.windows;for(;t.length>0;)t.shift().error(e);this.destination.error(e)}_complete(){const e=this.windows;for(;e.length>0;){const t=e.shift();t.closed||t.complete()}this.destination.complete()}openWindow(){const e=new Er;return this.windows.push(e),this.destination.next(e),e}closeWindow(e){e.complete();const t=this.windows;t.splice(t.indexOf(e),1)}}function Ir(e){const{subscriber:t,windowTimeSpan:n,window:r}=e;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function kr(e){const{windowTimeSpan:t,subscriber:n,scheduler:r,windowCreationInterval:i}=e,s=n.openWindow();let o={action:this,subscription:null};o.subscription=r.schedule(Tr,t,{subscriber:n,window:s,context:o}),this.add(o.subscription),this.schedule(e,i)}function Tr(e){const{subscriber:t,window:n,context:r}=e;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}function jr(e,t){return n=>n.lift(new Vr(e,t))}class Vr{constructor(e,t){this.openings=e,this.closingSelector=t}call(e,t){return t.subscribe(new Pr(e,this.openings,this.closingSelector))}}class Pr extends I.a{constructor(e,t,n){super(e),this.openings=t,this.closingSelector=n,this.contexts=[],this.add(this.openSubscription=Object(O.a)(this,t,t))}_next(e){const{contexts:t}=this;if(t){const n=t.length;for(let r=0;r{let n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new Rr(e,n))}}class Rr{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new Fr(e,this.observables,this.project))}}class Fr extends I.a{constructor(e,t,n){super(e),this.observables=t,this.project=n,this.toRespond=[];const r=t.length;this.values=new Array(r);for(let i=0;i0){const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}var Lr=n("1uah");function Br(...e){return function(t){return t.lift.call(Object(Lr.b)(t,...e))}}function Hr(e){return t=>t.lift(new Lr.a(e))}},kcx3:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("Laqt")),r(n("HDAp"))},kiQV:function(e){e.exports=JSON.parse('{"name":"rpi-webinterface","version":"0.0.0","author":"Javan Rasokat","license":"CC BY-NC-SA 3.0","scripts":{"ng":"ng","start":"ng serve","build":"ng build --prod","test":"ng test","lint":"ng lint","e2e":"ng e2e"},"private":true,"dependencies":{"@angular/animations":"^11.0.3","@angular/common":"^11.0.3","@angular/compiler":"^11.0.3","@angular/core":"^11.0.3","@angular/forms":"^11.0.3","@angular/http":"^7.2.16","@angular/platform-browser":"^11.0.3","@angular/platform-browser-dynamic":"^11.0.3","@angular/router":"^11.0.3","@ngx-translate/core":"^11.0.1","@ngx-translate/http-loader":"^4.0.0","core-js":"^2.6.11","ng5-validation":"^1.0.0","rxjs":"^6.6.3","rxjs-compat":"^6.6.2","tslib":"^2.0.0","zone.js":"~0.10.2"},"devDependencies":{"@angular-devkit/build-angular":"~0.1100.3","@angular/cli":"^11.0.3","@angular/compiler-cli":"^11.0.3","@angular/language-service":"^11.0.3","@types/jasmine":"~3.6.0","@types/jasminewd2":"^2.0.8","@types/node":"^12.11.1","codelyzer":"^6.0.0","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","karma":"~5.0.0","karma-chrome-launcher":"~3.1.0","karma-cli":"~2.0.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0","protractor":"~7.0.0","ts-node":"~8.0.3","tslint":"~6.1.0","typescript":"~4.0.5"}}')},kwZ1:function(e,t,n){"use strict";var r=n("jmDH"),i=n("w6GO"),s=n("mqlF"),o=n("NV0k"),a=n("JB68"),l=n("M1xp"),u=Object.assign;e.exports=!u||n("KUxP")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=a(e),u=arguments.length,c=1,d=s.f,h=o.f;u>c;)for(var p,f=l(arguments[c++]),g=d?i(f).concat(d(f)):i(f),m=g.length,v=0;m>v;)p=g[v++],r&&!h.call(f,p)||(n[p]=f[p]);return n}:u},l7GE:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");class i extends r.a{notifyNext(e,t,n,r,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}},lJxs:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(e,t))}}class s{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.project,this.thisArg))}}class o extends r.a{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},ldVq:function(e,t,n){var r=n("QMMT"),i=n("UWiX")("iterator"),s=n("SBuE");e.exports=n("WEpk").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||s.hasOwnProperty(r(t))}},mCNh:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return s});var r=n("SpAZ");function i(...e){return s(e)}function s(e){return 0===e.length?r.a:1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}}},mqlF:function(e,t){t.f=Object.getOwnPropertySymbols},n6bG:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",function(){return r})},nKcR:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("Kucq")),r(n("ZF92"))},nYR2:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("7o/Q"),i=n("quSY");function s(e){return t=>t.lift(new o(e))}class o{constructor(e){this.callback=e}call(e,t){return t.subscribe(new a(e,this.callback))}}class a extends r.a{constructor(e,t){super(e),this.add(new i.a(t))}}},ngJS:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=e=>t=>{for(let n=0,r=e.length;ndocument.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[s[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=r(e),n=new a,a.prototype=null,n[o]=e):n=l(),void 0===t?n:i(n,t)}},ofXK:function(e,t,n){"use strict";n.d(t,"a",function(){return _}),n.d(t,"b",function(){return z}),n.d(t,"c",function(){return l}),n.d(t,"d",function(){return W}),n.d(t,"e",function(){return x}),n.d(t,"f",function(){return q}),n.d(t,"g",function(){return d}),n.d(t,"h",function(){return C}),n.d(t,"i",function(){return y}),n.d(t,"j",function(){return N}),n.d(t,"k",function(){return R}),n.d(t,"l",function(){return L}),n.d(t,"m",function(){return U}),n.d(t,"n",function(){return w}),n.d(t,"o",function(){return u}),n.d(t,"p",function(){return K}),n.d(t,"q",function(){return a}),n.d(t,"r",function(){return G}),n.d(t,"s",function(){return s}),n.d(t,"t",function(){return A}),n.d(t,"u",function(){return o});var r=n("fXoL");let i=null;function s(){return i}function o(e){i||(i=e)}class a{}const l=new r.InjectionToken("DocumentToken");let u=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:c,token:e,providedIn:"platform"}),e})();function c(){return Object(r["\u0275\u0275inject"])(h)}const d=new r.InjectionToken("Location Initialized");let h=(()=>{class e extends u{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=s().getLocation(),this._history=s().getHistory()}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){p()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){p()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](l))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:f,token:e,providedIn:"platform"}),e})();function p(){return!!window.history.pushState}function f(){return new h(Object(r["\u0275\u0275inject"])(l))}function g(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function v(e){return e&&"?"!==e[0]?"?"+e:e}let y=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:b,token:e,providedIn:"root"}),e})();function b(e){const t=Object(r["\u0275\u0275inject"])(l).location;return new w(Object(r["\u0275\u0275inject"])(u),t&&t.origin||"")}const _=new r.InjectionToken("appBaseHref");let w=(()=>{class e extends y{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return g(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+v(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const i=this.prepareExternalUrl(n+v(r));this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){const i=this.prepareExternalUrl(n+v(r));this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](u),r["\u0275\u0275inject"](_,8))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),x=(()=>{class e extends y{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=g(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let i=this.prepareExternalUrl(n+v(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){let i=this.prepareExternalUrl(n+v(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](u),r["\u0275\u0275inject"](_,8))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),C=(()=>{class e{constructor(e,t){this._subject=new r.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=m(S(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+v(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,S(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+v(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+v(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](y),r["\u0275\u0275inject"](u))},e.normalizeQueryParams=v,e.joinWithSlash=g,e.stripTrailingSlash=m,e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:$,token:e,providedIn:"root"}),e})();function $(){return new C(Object(r["\u0275\u0275inject"])(y),Object(r["\u0275\u0275inject"])(u))}function S(e){return e.replace(/\/index.html$/,"")}var E=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),O=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),I=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function k(e,t){const n=Object(r["\u0275findLocaleData"])(e),i=n[r["\u0275LocaleDataIndex"].NumberSymbols][t];if(void 0===i){if(t===I.CurrencyDecimal)return n[r["\u0275LocaleDataIndex"].NumberSymbols][I.Decimal];if(t===I.CurrencyGroup)return n[r["\u0275LocaleDataIndex"].NumberSymbols][I.Group]}return i}const T=r["\u0275getLocalePluralCase"],j=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function V(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}class P{}let M=(()=>{class e extends P{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(T(t||this.locale)(e)){case O.Zero:return"zero";case O.One:return"one";case O.Two:return"two";case O.Few:return"few";case O.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](r.LOCALE_ID))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();function A(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const 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}let N=(()=>{class e{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r["\u0275isListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r["\u0275stringify"])(e.item));this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.IterableDiffers),r["\u0275\u0275directiveInject"](r.KeyValueDiffers),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class D{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let R=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Object(r.isDevMode)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new D(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new F(e,n);t.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const s=new F(e,i);t.push(s)}});for(let n=0;n{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.TemplateRef),r["\u0275\u0275directiveInject"](r.IterableDiffers))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class F{constructor(e,t){this.record=e,this.view=t}}let L=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new B,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){H("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){H("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.TemplateRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class B{constructor(){this.$implicit=null,this.ngIf=null}}function H(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(r["\u0275stringify"])(t)}'.`)}let U=(()=>{class e{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,r]=e.split(".");null!=(t=null!=t&&r?`${t}${r}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_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))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.KeyValueDiffers),r["\u0275\u0275directiveInject"](r.Renderer2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),q=(()=>{class e{transform(e){return JSON.stringify(e,null,2)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r["\u0275\u0275definePipe"]({name:"json",type:e,pure:!1}),e})(),W=(()=>{class e{constructor(e){this._locale=e}transform(t,n,i){if(!function(e){return!(null==e||""===e||e!=e)}(t))return null;i=i||this._locale;try{return function(e,t,n){return function(e,t,n,r,i,s,o=!1){let a="",l=!1;if(isFinite(e)){let u=function(e){let t,n,r,i,s,o=Math.abs(e)+"",a=0;for((n=o.indexOf("."))>-1&&(o=o.replace(".","")),(r=o.search(/e/i))>0?(n<0&&(n=r),n+=+o.slice(r+1),o=o.substring(0,r)):n<0&&(n=o.length),r=0;"0"===o.charAt(r);r++);if(r===(s=o.length))t=[0],n=1;else{for(s--;"0"===o.charAt(s);)s--;for(n-=r,t=[],i=0;r<=s;r++,i++)t[i]=Number(o.charAt(r))}return n>22&&(t=t.splice(0,21),a=n-1,n=1),{digits:t,exponent:a,integerLen:n}}(e);o&&(u=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(u));let c=t.minInt,d=t.minFrac,h=t.maxFrac;if(s){const e=s.match(j);if(null===e)throw new Error(s+" is not a valid digit info");const t=e[1],n=e[3],r=e[5];null!=t&&(c=V(t)),null!=n&&(d=V(n)),null!=r?h=V(r):null!=n&&d>h&&(h=d)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,i=r.length-e.integerLen;const s=Math.min(Math.max(t,i),n);let o=s+e.integerLen,a=r[o];if(o>0){r.splice(Math.max(e.integerLen,o));for(let e=o;e=5)if(o-1<0){for(let t=0;t>o;t--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[o-1]++;for(;i=u?r.pop():l=!1),t>=10?1:0},0);c&&(r.unshift(c),e.integerLen++)}(u,d,h);let p=u.digits,f=u.integerLen;const g=u.exponent;let m=[];for(l=p.every(e=>!e);f0?m=p.splice(f,p.length):(m=p,p=[0]);const v=[];for(p.length>=t.lgSize&&v.unshift(p.splice(-t.lgSize,p.length).join(""));p.length>t.gSize;)v.unshift(p.splice(-t.gSize,p.length).join(""));p.length&&v.unshift(p.join("")),a=v.join(k(n,r)),m.length&&(a+=k(n,i)+m.join("")),g&&(a+=k(n,I.Exponential)+"+"+g)}else a=k(n,I.Infinity);return a=e<0&&!l?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}(e,function(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),i=r[0],s=r[1],o=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let c=0;c{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[{provide:P,useClass:M}]}),e})();const G="browser";let K=(()=>{class e{}return e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({token:e,providedIn:"root",factory:()=>new Q(Object(r["\u0275\u0275inject"])(l),window,Object(r["\u0275\u0275inject"])(r.ErrorHandler))}),e})();class Q{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportsScrolling()){const t=this.document.getElementById(e)||this.document.getElementsByName(e)[0];t&&this.scrollToElement(t)}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=Z(this.window.history)||Z(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function Z(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}},olS2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("rPcQ"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.validate=function(e){return s.email(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],features:[o.\u0275\u0275ProvidersFeature([a])]}),e}();t.EmailValidator=l},or8y:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("NwFL")),r(n("x9wY"))},pLZG:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e,t){return function(n){return n.lift(new s(e,t))}}class s{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.predicate,this.thisArg))}}class o extends r.a{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}},pjAE:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})()},pxpQ:function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return a});var r=n("7o/Q"),i=n("WMd4");function s(e,t=0){return function(n){return n.lift(new o(e,t))}}class o{constructor(e,t=0){this.scheduler=e,this.delay=t}call(e,t){return t.subscribe(new a(e,this.scheduler,this.delay))}}class a extends r.a{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(a.dispatch,this.delay,new l(e,this.destination)))}_next(e){this.scheduleMessage(i.a.createNext(e))}_error(e){this.scheduleMessage(i.a.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(i.a.createComplete()),this.unsubscribe()}}class l{constructor(e,t){this.notification=e,this.destination=t}}},qCKp:function(e,t,n){"use strict";n.r(t),n.d(t,"Observable",function(){return r.a}),n.d(t,"ConnectableObservable",function(){return i.a}),n.d(t,"GroupedObservable",function(){return s.a}),n.d(t,"observable",function(){return o.a}),n.d(t,"Subject",function(){return a.a}),n.d(t,"BehaviorSubject",function(){return l.a}),n.d(t,"ReplaySubject",function(){return u.a}),n.d(t,"AsyncSubject",function(){return c.a}),n.d(t,"asap",function(){return d.a}),n.d(t,"asapScheduler",function(){return d.b}),n.d(t,"async",function(){return h.a}),n.d(t,"asyncScheduler",function(){return h.b}),n.d(t,"queue",function(){return p.a}),n.d(t,"queueScheduler",function(){return p.b}),n.d(t,"animationFrame",function(){return b}),n.d(t,"animationFrameScheduler",function(){return y}),n.d(t,"VirtualTimeScheduler",function(){return _}),n.d(t,"VirtualAction",function(){return w}),n.d(t,"Scheduler",function(){return x.a}),n.d(t,"Subscription",function(){return C.a}),n.d(t,"Subscriber",function(){return $.a}),n.d(t,"Notification",function(){return S.a}),n.d(t,"NotificationKind",function(){return S.b}),n.d(t,"pipe",function(){return E.a}),n.d(t,"noop",function(){return O.a}),n.d(t,"identity",function(){return I.a}),n.d(t,"isObservable",function(){return k}),n.d(t,"ArgumentOutOfRangeError",function(){return T.a}),n.d(t,"EmptyError",function(){return j.a}),n.d(t,"ObjectUnsubscribedError",function(){return V.a}),n.d(t,"UnsubscriptionError",function(){return P.a}),n.d(t,"TimeoutError",function(){return M.a}),n.d(t,"bindCallback",function(){return F}),n.d(t,"bindNodeCallback",function(){return H}),n.d(t,"combineLatest",function(){return z.b}),n.d(t,"concat",function(){return G.a}),n.d(t,"defer",function(){return K.a}),n.d(t,"empty",function(){return Q.b}),n.d(t,"forkJoin",function(){return Z.a}),n.d(t,"from",function(){return X.a}),n.d(t,"fromEvent",function(){return J}),n.d(t,"fromEventPattern",function(){return te}),n.d(t,"generate",function(){return ne}),n.d(t,"iif",function(){return ie}),n.d(t,"interval",function(){return oe}),n.d(t,"merge",function(){return le.a}),n.d(t,"never",function(){return ce}),n.d(t,"of",function(){return de.a}),n.d(t,"onErrorResumeNext",function(){return he}),n.d(t,"pairs",function(){return pe}),n.d(t,"partition",function(){return ye}),n.d(t,"race",function(){return be.a}),n.d(t,"range",function(){return _e}),n.d(t,"throwError",function(){return xe.a}),n.d(t,"timer",function(){return Ce.a}),n.d(t,"using",function(){return $e}),n.d(t,"zip",function(){return Se.b}),n.d(t,"scheduled",function(){return Ee.a}),n.d(t,"EMPTY",function(){return Q.a}),n.d(t,"NEVER",function(){return ue}),n.d(t,"config",function(){return Oe.a});var r=n("HDdC"),i=n("EQ5u"),s=n("OQgR"),o=n("kJWO"),a=n("XNiG"),l=n("2Vo4"),u=n("jtHE"),c=n("NHP+"),d=n("7Hc7"),h=n("D0XW"),p=n("qgXg"),f=n("3N8a");class g extends f.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}var m=n("IjjT");class v extends m.a{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,r=-1,i=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++r{class e extends m.a{constructor(e=w,t=Number.POSITIVE_INFINITY){super(e,()=>this.frame),this.maxFrames=t,this.frame=0,this.index=-1}flush(){const{actions:e,maxFrames:t}=this;let n,r;for(;(r=e[0])&&r.delay<=t&&(e.shift(),this.frame=r.delay,!(n=r.execute(r.state,r.delay))););if(n){for(;r=e.shift();)r.unsubscribe();throw n}}}return e.frameTimeFactor=10,e})();class w extends f.a{constructor(e,t,n=(e.index+=1)){super(e,t),this.scheduler=e,this.work=t,this.index=n,this.active=!0,this.index=e.index=n}schedule(e,t=0){if(!this.id)return super.schedule(e,t);this.active=!1;const n=new w(this.scheduler,this.work);return this.add(n),n.schedule(e,t)}requestAsyncId(e,t,n=0){this.delay=e.frame+n;const{actions:r}=e;return r.push(this),r.sort(w.sortActions),!0}recycleAsyncId(e,t,n=0){}_execute(e,t){if(!0===this.active)return super._execute(e,t)}static sortActions(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1}}var x=n("Y/cZ"),C=n("quSY"),$=n("7o/Q"),S=n("WMd4"),E=n("mCNh"),O=n("KqfI"),I=n("SpAZ");function k(e){return!!e&&(e instanceof r.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var T=n("4I5i"),j=n("sVev"),V=n("9ppp"),P=n("pjAE"),M=n("Y6u4"),A=n("lJxs"),N=n("8Qeq"),D=n("DH7j"),R=n("z+Ro");function F(e,t,n){if(t){if(!Object(R.a)(t))return(...r)=>F(e,n)(...r).pipe(Object(A.a)(e=>Object(D.a)(e)?t(...e):t(e)));n=t}return function(...t){const i=this;let s;const o={context:i,subject:s,callbackFunc:e,scheduler:n};return new r.a(r=>{if(n)return n.schedule(L,0,{args:t,subscriber:r,params:o});if(!s){s=new c.a;const n=(...e)=>{s.next(e.length<=1?e[0]:e),s.complete()};try{e.apply(i,[...t,n])}catch(a){Object(N.a)(s)?s.error(a):console.warn(a)}}return s.subscribe(r)})}}function L(e){const{args:t,subscriber:n,params:r}=e,{callbackFunc:i,context:s,scheduler:o}=r;let{subject:a}=r;if(!a){a=r.subject=new c.a;const e=(...e)=>{this.add(o.schedule(B,0,{value:e.length<=1?e[0]:e,subject:a}))};try{i.apply(s,[...t,e])}catch(l){a.error(l)}}this.add(a.subscribe(n))}function B(e){const{value:t,subject:n}=e;n.next(t),n.complete()}function H(e,t,n){if(t){if(!Object(R.a)(t))return(...r)=>H(e,n)(...r).pipe(Object(A.a)(e=>Object(D.a)(e)?t(...e):t(e)));n=t}return function(...t){const i={subject:void 0,args:t,callbackFunc:e,scheduler:n,context:this};return new r.a(r=>{const{context:s}=i;let{subject:o}=i;if(n)return n.schedule(U,0,{params:i,subscriber:r,context:s});if(!o){o=i.subject=new c.a;const n=(...e)=>{const t=e.shift();t?o.error(t):(o.next(e.length<=1?e[0]:e),o.complete())};try{e.apply(s,[...t,n])}catch(a){Object(N.a)(o)?o.error(a):console.warn(a)}}return o.subscribe(r)})}}function U(e){const{params:t,subscriber:n,context:r}=e,{callbackFunc:i,args:s,scheduler:o}=t;let a=t.subject;if(!a){a=t.subject=new c.a;const e=(...e)=>{const t=e.shift();this.add(t?o.schedule(W,0,{err:t,subject:a}):o.schedule(q,0,{value:e.length<=1?e[0]:e,subject:a}))};try{i.apply(r,[...s,e])}catch(l){this.add(o.schedule(W,0,{err:l,subject:a}))}}this.add(a.subscribe(n))}function q(e){const{value:t,subject:n}=e;n.next(t),n.complete()}function W(e){const{err:t,subject:n}=e;n.error(t)}var z=n("itXk"),G=n("GyhO"),K=n("NXyV"),Q=n("EY2u"),Z=n("cp0P"),X=n("Cfvw"),Y=n("n6bG");function J(e,t,n,i){return Object(Y.a)(n)&&(i=n,n=void 0),i?J(e,t,n).pipe(Object(A.a)(e=>Object(D.a)(e)?i(...e):i(e))):new r.a(r=>{ee(e,t,function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},r,n)})}function ee(e,t,n,r,i){let s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const r=e;e.addEventListener(t,n,i),s=()=>r.removeEventListener(t,n,i)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const r=e;e.on(t,n),s=()=>r.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const r=e;e.addListener(t,n),s=()=>r.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,o=e.length;sObject(D.a)(e)?n(...e):n(e))):new r.a(n=>{const r=(...e)=>n.next(1===e.length?e[0]:e);let i;try{i=e(r)}catch(s){return void n.error(s)}if(Object(Y.a)(t))return()=>t(r,i)})}function ne(e,t,n,i,s){let o,a;return 1==arguments.length?(a=e.initialState,t=e.condition,n=e.iterate,o=e.resultSelector||I.a,s=e.scheduler):void 0===i||Object(R.a)(i)?(a=e,o=I.a,s=i):(a=e,o=i),new r.a(e=>{let r=a;if(s)return s.schedule(re,0,{subscriber:e,iterate:n,condition:t,resultSelector:o,state:r});for(;;){if(t){let n;try{n=t(r)}catch(i){return void e.error(i)}if(!n){e.complete();break}}let s;try{s=o(r)}catch(i){return void e.error(i)}if(e.next(s),e.closed)break;try{r=n(r)}catch(i){return void e.error(i)}}})}function re(e){const{subscriber:t,condition:n}=e;if(t.closed)return;if(e.needIterate)try{e.state=e.iterate(e.state)}catch(i){return void t.error(i)}else e.needIterate=!0;if(n){let r;try{r=n(e.state)}catch(i){return void t.error(i)}if(!r)return void t.complete();if(t.closed)return}let r;try{r=e.resultSelector(e.state)}catch(i){return void t.error(i)}return t.closed||(t.next(r),t.closed)?void 0:this.schedule(e)}function ie(e,t=Q.a,n=Q.a){return Object(K.a)(()=>e()?t:n)}var se=n("Y7HM");function oe(e=0,t=h.a){return(!Object(se.a)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=h.a),new r.a(n=>(n.add(t.schedule(ae,e,{subscriber:n,counter:0,period:e})),n))}function ae(e){const{subscriber:t,counter:n,period:r}=e;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}var le=n("VRyK");const ue=new r.a(O.a);function ce(){return ue}var de=n("LRne");function he(...e){if(0===e.length)return Q.a;const[t,...n]=e;return 1===e.length&&Object(D.a)(t)?he(...t):new r.a(e=>{const r=()=>e.add(he(...n).subscribe(e));return Object(X.a)(t).subscribe({next(t){e.next(t)},error:r,complete:r})})}function pe(e,t){return new r.a(t?n=>{const r=Object.keys(e),i=new C.a;return i.add(t.schedule(fe,0,{keys:r,index:0,subscriber:n,subscription:i,obj:e})),i}:t=>{const n=Object.keys(e);for(let r=0;r{void 0===t&&(t=e,e=0);let i=0,s=e;if(n)return n.schedule(we,0,{index:i,count:t,start:e,subscriber:r});for(;;){if(i++>=t){r.complete();break}if(r.next(s++),r.closed)break}})}function we(e){const{start:t,index:n,count:r,subscriber:i}=e;n>=r?i.complete():(i.next(t),i.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}var xe=n("z6cu"),Ce=n("PqYM");function $e(e,t){return new r.a(n=>{let r,i;try{r=e()}catch(o){return void n.error(o)}try{i=t(r)}catch(o){return void n.error(o)}const s=(i?Object(X.a)(i):Q.a).subscribe(n);return()=>{s.unsubscribe(),r&&r.unsubscribe()}})}var Se=n("1uah"),Ee=n("7HRe"),Oe=n("2fFW")},qLGE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("R4Bc"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.notEqualTo(this.notEqualTo)},e.prototype.validate=function(e){return this.validator(e)},e.propDecorators={notEqualTo:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","notEqualTo","","formControlName",""],["","notEqualTo","","formControl",""],["","notEqualTo","","ngModel",""]],inputs:{notEqualTo:"notEqualTo"},features:[o.\u0275\u0275ProvidersFeature([a])]}),e}();t.NotEqualToValidator=l},qgXg:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return l});var r=n("3N8a");class i extends r.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}var s=n("IjjT");class o extends s.a{}const a=new o(i),l=a},qmJw:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("wCLq")),r(n("OSZS"))},quSY:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("DH7j"),i=n("XoHu"),s=n("n6bG"),o=n("pjAE");let a=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:u,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;ee.concat(t instanceof o.a?t.errors:t),[])}},r7id:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("wXh8")),r(n("6RPL"))},rPcQ:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("olS2")),r(n("LlHk"))},rr1i:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},sLFm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg"),s={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};t.uuid=function(e){return function(t){if(i.isPresent(r.Validators.required(t)))return null;var n=t.value;return new RegExp(s[e]||s.all).test(n)?null:{uuid:!0}}}},sVev:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})()},sk9p:function(e,t,n){"use strict";t.__esModule=!0;var r=s(n("k/8l")),i=s(n("FyfS"));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,r.default)(Object(e)))return function(e,t){var n=[],r=!0,s=!1,o=void 0;try{for(var a,l=(0,i.default)(e);!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){s=!0,o=u}finally{try{!r&&l.return&&l.return()}finally{if(s)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},tEej:function(e,t,n){var r=n("Ojgd"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},uBVG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.gte=function(e){return function(t){return i.isPresent(e)?i.isPresent(r.Validators.required(t))||+t.value>=+e?null:{gte:!0}:null}}},uOPS:function(e,t){e.exports=!0},uY1Z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("hGZq"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.lte(this.lte)},e.prototype.ngOnChanges=function(e){for(var t in e)"lte"===t&&(this.validator=s.lte(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={lte:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","lte","","formControlName",""],["","lte","","formControl",""],["","lte","","ngModel",""]],inputs:{lte:"lte"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.LessThanEqualValidator=l},vkgz:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("7o/Q"),i=n("KqfI"),s=n("n6bG");function o(e,t,n){return function(r){return r.lift(new a(e,t,n))}}class a{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))}}class l extends r.a{constructor(e,t,n,r){super(e),this._tapNext=i.a,this._tapError=i.a,this._tapComplete=i.a,this._tapError=n||i.a,this._tapComplete=r||i.a,Object(s.a)(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||i.a,this._tapError=t.error||i.a,this._tapComplete=t.complete||i.a)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}},w1tV:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("oB13"),i=n("x+ZX"),s=n("XNiG");function o(){return new s.a}function a(){return e=>Object(i.a)()(Object(r.a)(o)(e))}},"w2d+":function(e,t,n){"use strict";var r=n("hDam"),i=n("UO39"),s=n("SBuE"),o=n("NsO/");e.exports=n("MPFp")(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),s.Arguments=s.Array,r("keys"),r("values"),r("entries")},w6GO:function(e,t,n){var r=n("5vMV"),i=n("FpHa");e.exports=Object.keys||function(e){return r(e,i)}},wCLq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("qmJw"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.gt(this.gt)},e.prototype.ngOnChanges=function(e){for(var t in e)"gt"===t&&(this.validator=s.gt(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={gt:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","gt","","formControlName",""],["","gt","","formControl",""],["","gt","","ngModel",""]],inputs:{gt:"gt"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.GreaterThanValidator=l},wXh8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("r7id"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.rangeLength(this.rangeLength)},e.prototype.ngOnChanges=function(e){for(var t in e)"rangeLength"===t&&(this.validator=s.rangeLength(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={rangeLength:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","rangeLength","","formControlName",""],["","rangeLength","","formControl",""],["","rangeLength","","ngModel",""]],inputs:{rangeLength:"rangeLength"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.RangeLengthValidator=l},wdEZ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("9uV+"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=s.phone(this.phone)},e.prototype.ngOnChanges=function(e){for(var t in e)"phone"===t&&(this.validator=s.phone(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={phone:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","phone","","formControlName",""],["","phone","","formControl",""],["","phone","","ngModel",""]],inputs:{phone:"phone"},features:[o.\u0275\u0275ProvidersFeature([a]),o.\u0275\u0275NgOnChangesFeature]}),e}();t.PhoneValidator=l},"x+ZX":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(){return function(e){return e.lift(new s(e))}}class s{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new o(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class o extends r.a{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}},x9wY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.lt=function(e){return function(t){return i.isPresent(e)?i.isPresent(r.Validators.required(t))||+t.value<+e?null:{lt:!0}:null}}},xbPD:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e=null){return t=>t.lift(new s(e))}class s{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new o(e,this.defaultValue))}}class o extends r.a{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},y9jv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.date=function(e){return i.isPresent(r.Validators.required(e))||i.isDate(e.value)?null:{date:!0}}},yAwA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),s=n("8f/L"),o=n("fXoL"),a={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0},l=function(){function e(){}return e.prototype.validate=function(e){return s.base64(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.\u0275\u0275defineDirective({type:e,selectors:[["","base64","","formControlName",""],["","base64","","formControl",""],["","base64","","ngModel",""]],features:[o.\u0275\u0275ProvidersFeature([a])]}),e}();t.Base64Validator=l},yCtX:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("HDdC"),i=n("ngJS"),s=n("jZKg");function o(e,t){return t?Object(s.a)(e,t):new r.a(Object(i.a)(e))}},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return r})},z6cu:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("HDdC");function i(e,t){return new r.a(t?n=>t.schedule(s,0,{error:e,subscriber:n}):t=>t.error(e))}function s({error:e,subscriber:t}){t.error(e)}},zUnb:function(e,t,n){"use strict";n.r(t);var r=n("fXoL"),i=n("ofXK");class s extends i.q{constructor(){super()}supportsDOMEvents(){return!0}}class o extends s{static makeCurrent(){Object(i.u)(new o)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}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}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=l||(l=document.querySelector("base"),l)?l.getAttribute("href"):null;return null==t?null:(n=t,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Object(i.t)(document.cookie,e)}}let a,l=null;const u=new r.InjectionToken("TRANSITION_ID"),c=[{provide:r.APP_INITIALIZER,useFactory:function(e,t,n){return()=>{n.get(r.ApplicationInitStatus).donePromise.then(()=>{const n=Object(i.s)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[u,i.c,r.Injector],multi:!0}];class d{static init(){Object(r.setTestabilityGetter)(new d)}addToWindow(e){r["\u0275global"].getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},r["\u0275global"].getAllAngularTestabilities=()=>e.getAllTestabilities(),r["\u0275global"].getAllAngularRootElements=()=>e.getAllRootElements(),r["\u0275global"].frameworkStabilizers||(r["\u0275global"].frameworkStabilizers=[]),r["\u0275global"].frameworkStabilizers.push(e=>{const t=r["\u0275global"].getAllAngularTestabilities();let n=t.length,i=!1;const s=function(t){i=i||t,n--,0==n&&e(i)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?Object(i.s)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const h=new r.InjectionToken("EventManagerPlugins");let p=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),m=(()=>{class e extends g{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Object(i.s)().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](i.c))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const v={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/"},y=/%COMP%/g;function b(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let w=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new x(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case r.ViewEncapsulation.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new C(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case r.ViewEncapsulation.ShadowDom:return new $(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=b(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](p),r["\u0275\u0275inject"](m),r["\u0275\u0275inject"](r.APP_ID))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();class x{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(v[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);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;const i=v[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=v[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,i){i&(r.RendererStyleFlags2.DashCase|r.RendererStyleFlags2.Important)?e.style.setProperty(t,n,i&r.RendererStyleFlags2.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&r.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,_(n)):this.eventManager.addEventListener(e,t,_(n))}}class C extends x{constructor(e,t,n,r){super(e),this.component=n;const i=b(r+"-"+n.id,n.styles,[]);t.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(y,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(y,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class $ extends x{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=b(r.id,r.styles,[]);for(let s=0;s{class e extends f{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)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](i.c))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const E=["alt","control","meta","shift"],O={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},I={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},k={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let T=(()=>{class e extends f{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const s=e.parseEventName(n),o=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(i.s)().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=e._normalizeKey(n.pop());let s="";if(E.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),s+=e+".")}),s+=i,0!=n.length||0===i.length)return null;const o={};return o.domEventName=r,o.fullKey=s,o}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&I.hasOwnProperty(t)&&(t=I[t]))}return O[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),E.forEach(r=>{r!=n&&(0,k[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(t,n,r){return i=>{e.getEventFullKey(i)===t&&r.runGuarded(()=>n(i))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](i.c))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const j=[{provide:r.PLATFORM_ID,useValue:i.r},{provide:r.PLATFORM_INITIALIZER,useValue:function(){o.makeCurrent(),d.init()},multi:!0},{provide:i.c,useFactory:function(){return Object(r["\u0275setDocument"])(document),document},deps:[]}],V=Object(r.createPlatformFactory)(r.platformCore,"browser",j),P=[[],{provide:r["\u0275INJECTOR_SCOPE"],useValue:"root"},{provide:r.ErrorHandler,useFactory:function(){return new r.ErrorHandler},deps:[]},{provide:h,useClass:S,multi:!0,deps:[i.c,r.NgZone,r.PLATFORM_ID]},{provide:h,useClass:T,multi:!0,deps:[i.c]},[],{provide:w,useClass:w,deps:[p,m,r.APP_ID]},{provide:r.RendererFactory2,useExisting:w},{provide:g,useExisting:m},{provide:m,useClass:m,deps:[i.c]},{provide:r.Testability,useClass:r.Testability,deps:[r.NgZone]},{provide:p,useClass:p,deps:[h,r.NgZone]},[]];let M=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:r.APP_ID,useValue:t.appId},{provide:u,useExisting:r.APP_ID},c]}}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)(r["\u0275\u0275inject"](e,12))},providers:P,imports:[i.b,r.ApplicationModule]}),e})();"undefined"!=typeof window&&window;var A=n("LRne"),N=n("HDdC"),D=n("bOdf"),R=n("pLZG"),F=n("lJxs");class L{}class B{}class H{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),r=n.toLowerCase(),i=e.slice(t+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(i):this.headers.set(r,[i])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof H?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new H;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof H?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const i=e.value;if(i){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===i.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class U{encodeKey(e){return q(e)}encodeValue(e){return q(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function q(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class W{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new U,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.split("&").forEach(e=>{const r=e.indexOf("="),[i,s]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],o=n.get(i)||[];o.push(s),n.set(i,o)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new W({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat([e]),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function z(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function G(e){return"undefined"!=typeof Blob&&e instanceof Blob}function K(e){return"undefined"!=typeof FormData&&e instanceof FormData}class Q{constructor(e,t,n,r){let i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new H),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":nt.set(n,e.setHeaders[n]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new Q(t,n,i,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:s})}}var Z=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({});class X{constructor(e,t=200,n="OK"){this.headers=e.headers||new H,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class Y extends X{constructor(e={}){super(e),this.type=Z.ResponseHeader}clone(e={}){return new Y({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class J extends X{constructor(e={}){super(e),this.type=Z.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new J({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class ee extends X{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function te(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let ne=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof Q)r=e;else{let i=void 0;i=n.headers instanceof H?n.headers:new H(n.headers);let s=void 0;n.params&&(s=n.params instanceof W?n.params:new W({fromObject:n.params})),r=new Q(e,t,void 0!==n.body?n.body:null,{headers:i,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=Object(A.a)(r).pipe(Object(D.a)(e=>this.handler.handle(e)));if(e instanceof Q||"events"===n.observe)return i;const s=i.pipe(Object(R.a)(e=>e instanceof J));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(Object(F.a)(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return s.pipe(Object(F.a)(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return s.pipe(Object(F.a)(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return s.pipe(Object(F.a)(e=>e.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new W).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,te(n,t))}post(e,t,n={}){return this.request("POST",e,te(n,t))}put(e,t,n={}){return this.request("PUT",e,te(n,t))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](L))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();class re{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const ie=new r.InjectionToken("HTTP_INTERCEPTORS");let se=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const oe=/^\)\]\}',?\n/;class ae{}let le=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),ue=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new N.a(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const r=e.serializeBody();let i=null;const s=()=>{if(null!==i)return i;const t=1223===n.status?204:n.status,r=n.statusText||"OK",s=new H(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return i=new Y({headers:s,status:t,statusText:r,url:o}),i},o=()=>{let{headers:r,status:i,statusText:o,url:a}=s(),l=null;204!==i&&(l=void 0===n.response?n.responseText:n.response),0===i&&(i=l?200:0);let u=i>=200&&i<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(oe,"");try{l=""!==l?JSON.parse(l):null}catch(c){l=e,u&&(u=!1,l={error:c,text:l})}}u?(t.next(new J({body:l,headers:r,status:i,statusText:o,url:a||void 0})),t.complete()):t.error(new ee({error:l,headers:r,status:i,statusText:o,url:a||void 0}))},a=e=>{const{url:r}=s(),i=new ee({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});t.error(i)};let l=!1;const u=r=>{l||(t.next(s()),l=!0);let i={type:Z.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===e.responseType&&n.responseText&&(i.partialText=n.responseText),t.next(i)},c=e=>{let n={type:Z.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),e.reportProgress&&(n.addEventListener("progress",u),null!==r&&n.upload&&n.upload.addEventListener("progress",c)),n.send(r),t.next({type:Z.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),e.reportProgress&&(n.removeEventListener("progress",u),null!==r&&n.upload&&n.upload.removeEventListener("progress",c)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](ae))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const ce=new r.InjectionToken("XSRF_COOKIE_NAME"),de=new r.InjectionToken("XSRF_HEADER_NAME");class he{}let pe=(()=>{class e{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(i.t)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](i.c),r["\u0275\u0275inject"](r.PLATFORM_ID),r["\u0275\u0275inject"](ce))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),fe=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](he),r["\u0275\u0275inject"](de))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),ge=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(ie,[]);this.chain=e.reduceRight((e,t)=>new re(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](B),r["\u0275\u0275inject"](r.Injector))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),me=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:fe,useClass:se}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:ce,useValue:t.cookieName}:[],t.headerName?{provide:de,useValue:t.headerName}:[]]}}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[fe,{provide:ie,useExisting:fe,multi:!0},{provide:he,useClass:pe},{provide:ce,useValue:"XSRF-TOKEN"},{provide:de,useValue:"X-XSRF-TOKEN"}]}),e})(),ve=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[ne,{provide:L,useClass:ge},ue,{provide:B,useExisting:ue},le,{provide:ae,useExisting:le}],imports:[[me.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();var ye=n("3Pt+"),be=n("Cfvw"),_e=n("2Vo4"),we=n("itXk"),xe=n("sVev"),Ce=n("NXyV"),$e=n("EY2u"),Se=n("XNiG"),Ee=n("0EUg"),Oe=n("NJ9Y"),Ie=n("eIep"),ke=n("IzEk"),Te=n("JX91"),je=n("Kqap"),Ve=n("JIr8"),Pe=n("SxV6"),Me=n("7wxJ"),Ae=n("5+tZ"),Ne=n("vkgz"),De=n("BFxc"),Re=n("nYR2"),Fe=n("bHdf");class Le{constructor(e,t){this.id=e,this.url=t}}class Be extends Le{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class He extends Le{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ue extends Le{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class qe extends Le{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class We extends Le{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ze extends Le{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ge extends Le{constructor(e,t,n,r,i){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ke extends Le{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qe extends Le{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ze{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Xe{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ye{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Je{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class et{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tt{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nt{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class rt{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function it(e){return new rt(e)}function st(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function ot(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.lengthr[t]===e)}return e===t}function ut(e){return Array.prototype.concat.apply([],e)}function ct(e){return e.length>0?e[e.length-1]:null}function dt(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function ht(e){return Object(r["\u0275isObservable"])(e)?e:Object(r["\u0275isPromise"])(e)?Object(be.a)(Promise.resolve(e)):Object(A.a)(e)}function pt(e,t,n){return n?function(e,t){return at(e,t)}(e.queryParams,t.queryParams)&&ft(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>lt(e[n],t[n]))}(e.queryParams,t.queryParams)&>(e.root,t.root)}function ft(e,t){if(!_t(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children){if(!e.children[n])return!1;if(!ft(e.children[n],t.children[n]))return!1}return!0}function gt(e,t){return mt(e,t,t.segments)}function mt(e,t,n){if(e.segments.length>n.length)return!!_t(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!_t(e.segments,n))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!gt(e.children[n],t.children[n]))return!1}return!0}{const r=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!_t(e.segments,r)&&!!e.children.primary&&mt(e.children.primary,t,i)}}class vt{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=it(this.queryParams)),this._queryParamMap}toString(){return $t.serialize(this)}}class yt{constructor(e,t){this.segments=e,this.children=t,this.parent=null,dt(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return St(this)}}class bt{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=it(this.parameters)),this._parameterMap}toString(){return Vt(this)}}function _t(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function wt(e,t){let n=[];return dt(e.children,(e,r)=>{"primary"===r&&(n=n.concat(t(e,r)))}),dt(e.children,(e,r)=>{"primary"!==r&&(n=n.concat(t(e,r)))}),n}class xt{}class Ct{parse(e){const t=new Dt(e);return new vt(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){return`${"/"+Et(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${It(t)}=${It(e)}`).join("&"):`${It(t)}=${It(n)}`});return t.length?"?"+t.join("&"):""}(e.queryParams)}${"string"==typeof e.fragment?"#"+encodeURI(e.fragment):""}`}}const $t=new Ct;function St(e){return e.segments.map(e=>Vt(e)).join("/")}function Et(e,t){if(!e.hasChildren())return St(e);if(t){const t=e.children.primary?Et(e.children.primary,!1):"",n=[];return dt(e.children,(e,t)=>{"primary"!==t&&n.push(`${t}:${Et(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=wt(e,(t,n)=>"primary"===n?[Et(e.children.primary,!1)]:[`${n}:${Et(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${St(e)}/${t[0]}`:`${St(e)}/(${t.join("//")})`}}function Ot(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function It(e){return Ot(e).replace(/%3B/gi,";")}function kt(e){return Ot(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Tt(e){return decodeURIComponent(e)}function jt(e){return Tt(e.replace(/\+/g,"%20"))}function Vt(e){return`${kt(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${kt(e)}=${kt(t[e])}`).join("")}`;var t}const Pt=/^[^\/()?;=#]+/;function Mt(e){const t=e.match(Pt);return t?t[0]:""}const At=/^[^=?&#]+/,Nt=/^[^?&#]+/;class Dt{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new yt([],{}):new yt([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new yt(e,t)),n}parseSegment(){const e=Mt(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new bt(Tt(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Mt(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Mt(this.remaining);e&&(n=e,this.capture(n))}e[Tt(t)]=Tt(n)}parseQueryParam(e){const t=function(e){const t=e.match(At);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(Nt);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const r=jt(t),i=jt(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(t=[t],e[r]=t),t.push(i)}else e[r]=i}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Mt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i="primary");const s=this.parseChildren();t[i]=1===Object.keys(s).length?s.primary:new yt([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class Rt{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Ft(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Ft(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Lt(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Lt(e,this._root).map(e=>e.value)}}function Ft(e,t){if(e===t.value)return t;for(const n of t.children){const t=Ft(e,n);if(t)return t}return null}function Lt(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Lt(e,n);if(r.length)return r.unshift(t),r}return[]}class Bt{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Ht(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Ut extends Rt{constructor(e,t){super(e),this.snapshot=t,Qt(this,e)}toString(){return this.snapshot.toString()}}function qt(e,t){const n=function(e,t){const n=new Gt([],{},{},"",{},"primary",t,null,e.root,-1,{});return new Kt("",new Bt(n,[]))}(e,t),r=new _e.a([new bt("",{})]),i=new _e.a({}),s=new _e.a({}),o=new _e.a({}),a=new _e.a(""),l=new Wt(r,i,o,a,s,"primary",t,n.root);return l.snapshot=n.root,new Ut(new Bt(l,[]),n)}class Wt{constructor(e,t,n,r,i,s,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(F.a)(e=>it(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(F.a)(e=>it(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function zt(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Gt{constructor(e,t,n,r,i,s,o,a,l,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=it(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=it(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Kt extends Rt{constructor(e,t){super(t),this.url=e,Qt(this,t)}toString(){return Zt(this._root)}}function Qt(e,t){t.value._routerState=e,t.children.forEach(t=>Qt(e,t))}function Zt(e){const t=e.children.length>0?` { ${e.children.map(Zt).join(", ")} } `:"";return`${e.value}${t}`}function Xt(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,at(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),at(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;nat(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||Yt(e.parent,t.parent))}function Jt(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const i=function(e,t,n){return t.children.map(t=>{for(const r of n.children)if(e.shouldReuseRoute(t.value,r.value.snapshot))return Jt(e,t,r);return Jt(e,t)})}(e,t,n);return new Bt(r,i)}{const n=e.retrieve(t.value);if(n){const e=n.route;return en(t,e),e}{const n=new Wt(new _e.a((r=t.value).url),new _e.a(r.params),new _e.a(r.queryParams),new _e.a(r.fragment),new _e.a(r.data),r.outlet,r.component,r),i=t.children.map(t=>Jt(e,t));return new Bt(n,i)}}var r}function en(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(let n=0;n{s[t]=Array.isArray(e)?e.map(e=>""+e):""+e}),new vt(n.root===e?t:sn(n.root,e,t),s,i)}function sn(e,t,n){const r={};return dt(e.children,(e,i)=>{r[i]=e===t?n:sn(e,t,n)}),new yt(e.segments,r)}class on{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&tn(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(nn);if(r&&r!==ct(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class an{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function ln(e,t,n){if(e||(e=new yt([],{})),0===e.segments.length&&e.hasChildren())return un(e,t,n);const r=function(e,t,n){let r=0,i=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return s;const t=e.segments[i],o=n[r];if(nn(o))break;const a=""+o,l=r0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!pn(a,l,t))return s;r+=2}else{if(!pn(a,{},t))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(i[r]=ln(e.children[r],t,n))}),dt(e.children,(e,t)=>{void 0===r[t]&&(i[t]=e)}),new yt(e.segments,i)}}function cn(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=cn(new yt([],{}),0,e))}),t}function hn(e){const t={};return dt(e,(e,n)=>t[n]=""+e),t}function pn(e,t,n){return e==n.path&&at(t,n.parameters)}class fn{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),Xt(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=Ht(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),dt(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(e,t,i.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const r=Ht(e),i=e.value.component?n.children:t;dt(r,(e,t)=>this.deactivateRouteAndItsChildren(e,i)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const r=Ht(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new tt(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Je(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(Xt(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,i.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),gn(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),i=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=i,t.outlet&&t.outlet.activateWith(r,i),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function gn(e){Xt(e.value),e.children.forEach(gn)}class mn{constructor(e,t){this.routes=e,this.module=t}}function vn(e){return"function"==typeof e}function yn(e){return e instanceof vt}const bn=Symbol("INITIAL_VALUE");function _n(){return Object(Ie.a)(e=>Object(we.b)(...e.map(e=>e.pipe(Object(ke.a)(1),Object(Te.a)(bn)))).pipe(Object(je.a)((e,t)=>{let n=!1;return t.reduce((e,r,i)=>{if(e!==bn)return e;if(r===bn&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||yn(r))return r}return e},e)},bn),Object(R.a)(e=>e!==bn),Object(F.a)(e=>yn(e)?e:!0===e),Object(ke.a)(1)))}let wn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&r["\u0275\u0275element"](0,"router-outlet")},directives:function(){return[pr]},encapsulation:2}),e})();function xn(e,t=""){for(let n=0;nt.error(new On(e)))}function Tn(e){return new N.a(t=>t.error(new In(e)))}function jn(e){return new N.a(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Vn{constructor(e,t,n,i,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(r.NgModuleRef)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(F.a)(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(Ve.a)(e=>{if(e instanceof In)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof On)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(Object(F.a)(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(Object(Ve.a)(e=>{if(e instanceof On)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new yt([],{primary:e}):e;return new vt(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(F.a)(e=>new yt([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return Object(A.a)({});const n=[],r=[],i={};return dt(e,(e,s)=>{const o=t(s,e).pipe(Object(F.a)(e=>i[s]=e));"primary"===s?n.push(o):r.push(o)}),A.a.apply(null,n.concat(r)).pipe(Object(Ee.a)(),Object(Oe.a)(),Object(F.a)(()=>i))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,i,s){const o=function(e){return e.reduce((e,t)=>{const n=En(t);return e.has(n)?e.get(n).push(t):e.set(n,[t]),e},new Map)}(n);o.has(i)||o.set(i,[]);const a=n=>Object(be.a)(n).pipe(Object(D.a)(o=>this.expandSegmentAgainstRoute(e,t,n,o,r,i,s).pipe(Object(Ve.a)(e=>{if(e instanceof On)return Object(A.a)(null);throw e}))),Object(Pe.a)(e=>null!==e),Object(Ve.a)(e=>{if(e instanceof xe.a||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,i))return Object(A.a)(new yt([],{}));throw new On(t)}throw e})),l=Array.from(o.entries()).map(([e,t])=>{const n=a(t);return e===i?n:n.pipe(Object(F.a)(()=>null),Object(Ve.a)(()=>Object(A.a)(null)))});return Object(be.a)(l).pipe(Object(Me.a)(),Object(Pe.a)(),Object(F.a)(e=>e.find(e=>null!==e)))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,i,s,o){return En(r)!==s&&""!==r.path?kn(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s):kn(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Tn(i):this.lineralizeSegments(n,i).pipe(Object(Ae.b)(n=>{const i=new yt(n,{});return this.expandSegment(e,i,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:u}=Pn(t,r,i);if(!o)return kn(t);const c=this.applyRedirectCommands(a,r.redirectTo,u);return r.redirectTo.startsWith("/")?Tn(c):this.lineralizeSegments(r,c).pipe(Object(Ae.b)(r=>this.expandSegment(e,t,n,r.concat(i.slice(l)),s,!1)))}matchSegmentAgainstRoute(e,t,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(F.a)(e=>(n._loadedConfig=e,new yt(r,{})))):Object(A.a)(new yt(r,{}));const{matched:i,consumedSegments:s,lastChild:o}=Pn(t,n,r);if(!i)return kn(t);const a=r.slice(o);return this.getChildConfig(e,n,r).pipe(Object(Ae.b)(e=>{const n=e.module,r=e.routes,{segmentGroup:i,slicedSegments:o}=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some(n=>An(e,t,n)&&"primary"!==En(n))}(e,n,r)?{segmentGroup:Mn(new yt(t,function(e,t){const n={};n.primary=t;for(const r of e)""===r.path&&"primary"!==En(r)&&(n[En(r)]=new yt([],{}));return n}(r,new yt(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(n=>An(e,t,n))}(e,n,r)?{segmentGroup:Mn(new yt(e.segments,function(e,t,n,r){const i={};for(const s of n)An(e,t,s)&&!r[En(s)]&&(i[En(s)]=new yt([],{}));return Object.assign(Object.assign({},r),i)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,s,a,r);return 0===o.length&&i.hasChildren()?this.expandChildren(n,r,i).pipe(Object(F.a)(e=>new yt(s,e))):0===r.length&&0===o.length?Object(A.a)(new yt(s,{})):this.expandSegment(n,i,r,o,"primary",!0).pipe(Object(F.a)(e=>new yt(s.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Object(A.a)(new mn(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(A.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(Ae.b)(n=>n?this.configLoader.load(e.injector,t).pipe(Object(F.a)(e=>(t._loadedConfig=e,e))):function(e){return new N.a(t=>t.error(st(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):Object(A.a)(new mn([],e))}runCanLoadGuards(e,t,n){const r=t.canLoad;if(!r||0===r.length)return Object(A.a)(!0);const i=r.map(r=>{const i=e.get(r);let s;if(function(e){return e&&vn(e.canLoad)}(i))s=i.canLoad(t,n);else{if(!vn(i))throw new Error("Invalid CanLoad guard");s=i(t,n)}return ht(s)});return Object(A.a)(i).pipe(_n(),Object(Ne.a)(e=>{if(!yn(e))return;const t=st(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),Object(F.a)(e=>!0===e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(A.a)(n);if(r.numberOfChildren>1||!r.children.primary)return jn(e.redirectTo);r=r.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const i=this.createSegmentGroup(e,t.root,n,r);return new vt(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return dt(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const i=this.createSegments(e,t.segments,n,r);let s={};return dt(t.children,(t,i)=>{s[i]=this.createSegmentGroup(e,t,n,r)}),new yt(i,s)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function Pn(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(t.matcher||ot)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Mn(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new yt(e.segments.concat(t.segments),t.children)}return e}function An(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}class Nn{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Dn{constructor(e,t){this.component=e,this.route=t}}function Rn(e,t,n){const r=e._root;return Ln(r,t?t._root:null,n,[r.value])}function Fn(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Ln(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=Ht(t);return e.children.forEach(e=>{!function(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,o=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!_t(e.url,t.url);case"pathParamsOrQueryParamsChange":return!_t(e.url,t.url)||!at(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yt(e,t)||!at(e.queryParams,t.queryParams);case"paramsChange":default:return!Yt(e,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Nn(r)):(s.data=o.data,s._resolvedData=o._resolvedData),Ln(e,t,s.component?a?a.children:null:n,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Dn(a.outlet.component,o))}else o&&Bn(t,a,i),i.canActivateChecks.push(new Nn(r)),Ln(e,null,s.component?a?a.children:null:n,r,i)}(e,s[e.value.outlet],n,r.concat([e.value]),i),delete s[e.value.outlet]}),dt(s,(e,t)=>Bn(e,n.getContext(t),i)),i}function Bn(e,t,n){const r=Ht(e),i=e.value;dt(r,(e,r)=>{Bn(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Dn(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function Hn(e,t){return null!==e&&t&&t(new et(e)),Object(A.a)(!0)}function Un(e,t){return null!==e&&t&&t(new Ye(e)),Object(A.a)(!0)}function qn(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Object(A.a)(!0);const i=r.map(r=>Object(Ce.a)(()=>{const i=Fn(r,t,n);let s;if(function(e){return e&&vn(e.canActivate)}(i))s=ht(i.canActivate(t,e));else{if(!vn(i))throw new Error("Invalid CanActivate guard");s=ht(i(t,e))}return s.pipe(Object(Pe.a)())}));return Object(A.a)(i).pipe(_n())}function Wn(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>Object(Ce.a)(()=>{const i=t.guards.map(i=>{const s=Fn(i,t.node,n);let o;if(function(e){return e&&vn(e.canActivateChild)}(s))o=ht(s.canActivateChild(r,e));else{if(!vn(s))throw new Error("Invalid CanActivateChild guard");o=ht(s(r,e))}return o.pipe(Object(Pe.a)())});return Object(A.a)(i).pipe(_n())}));return Object(A.a)(i).pipe(_n())}class zn{}class Gn{constructor(e,t,n,r,i,s){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){try{const e=Zn(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new Gt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Bt(n,t),i=new Kt(this.url,r);return this.inheritParamsAndData(i._root),Object(A.a)(i)}catch(e){return new N.a(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=zt(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=wt(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};e.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),r=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value})}(n),n.sort((e,t)=>"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,r){for(const s of e)try{return this.processSegmentAgainstRoute(s,t,n,r)}catch(i){if(!(i instanceof zn))throw i}if(this.noLeftoversInUrl(t,n,r))return[];throw new zn}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new zn;if((e.outlet||"primary")!==r)throw new zn;let i,s=[],o=[];if("**"===e.path){const s=n.length>0?ct(n).parameters:{};i=new Gt(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Yn(e),r,e.component,e,Kn(t),Qn(t)+n.length,Jn(e))}else{const a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new zn;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||ot)(n,e,t);if(!r)throw new zn;const i={};dt(r.posParams,(e,t)=>{i[t]=e.path});const s=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(t,e,n);s=a.consumedSegments,o=n.slice(a.lastChild),i=new Gt(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Yn(e),r,e.component,e,Kn(t),Qn(t)+s.length,Jn(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:u}=Zn(t,s,o,a,this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const e=this.processChildren(a,l);return[new Bt(i,e)]}if(0===a.length&&0===u.length)return[new Bt(i,[])];const c=this.processSegment(a,l,u,"primary");return[new Bt(i,c)]}}function Kn(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Qn(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Zn(e,t,n,r,i){if(n.length>0&&function(e,t,n){return n.some(n=>Xn(e,t,n)&&"primary"!==En(n))}(e,n,r)){const i=new yt(t,function(e,t,n,r){const i={};i.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const s of n)if(""===s.path&&"primary"!==En(s)){const n=new yt([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,i[En(s)]=n}return i}(e,t,r,new yt(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>Xn(e,t,n))}(e,n,r)){const s=new yt(e.segments,function(e,t,n,r,i,s){const o={};for(const a of r)if(Xn(e,n,a)&&!i[En(a)]){const n=new yt([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===s?e.segments.length:t.length,o[En(a)]=n}return Object.assign(Object.assign({},i),o)}(e,t,n,r,e.children,i));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const s=new yt(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Xn(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Yn(e){return e.data||{}}function Jn(e){return e.resolve||{}}function er(e){return function(t){return t.pipe(Object(Ie.a)(t=>{const n=e(t);return n?Object(be.a)(n).pipe(Object(F.a)(()=>t)):Object(be.a)([t])}))}}class tr extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const nr=new r.InjectionToken("ROUTES");class rr{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(F.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new mn(ut(r.injector.get(nr)).map(Sn),r)}))}loadModuleFactory(e){return"string"==typeof e?Object(be.a)(this.loader.load(e)):ht(e()).pipe(Object(Ae.b)(e=>e instanceof r.NgModuleFactory?Object(A.a)(e):Object(be.a)(this.compiler.compileModuleAsync(e))))}}class ir{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new sr,this.attachRef=null}}class sr{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new ir,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class or{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function ar(e){throw e}function lr(e,t,n){return t.parse("/")}function ur(e,t){return Object(A.a)(null)}let cr=(()=>{class e{constructor(e,t,n,i,s,o,a,l){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Se.a,this.errorHandler=ar,this.malformedUriErrorHandler=lr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ur,afterPreactivation:ur},this.urlHandlingStrategy=new or,this.routeReuseStrategy=new tr,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(r.NgModuleRef),this.console=s.get(r["\u0275Console"]);const u=s.get(r.NgZone);this.isNgZoneEnabled=u instanceof r.NgZone,this.resetConfig(l),this.currentUrlTree=new vt(new yt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new rr(o,a,e=>this.triggerEvent(new Ze(e)),e=>this.triggerEvent(new Xe(e))),this.routerState=qt(this.currentUrlTree,this.rootComponentType),this.transitions=new _e.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(Object(R.a)(e=>0!==e.id),Object(F.a)(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Object(Ie.a)(e=>{let n=!1,r=!1;return Object(A.a)(e).pipe(Object(Ne.a)(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(Ie.a)(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(A.a)(e).pipe(Object(Ie.a)(e=>{const n=this.transitions.getValue();return t.next(new Be(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?$e.a:[e]}),Object(Ie.a)(e=>Promise.resolve(e)),(r=this.ngModule.injector,i=this.configLoader,s=this.urlSerializer,o=this.config,function(e){return e.pipe(Object(Ie.a)(e=>function(e,t,n,r,i){return new Vn(e,t,n,r,i).apply()}(r,i,s,e.extractedUrl,o).pipe(Object(F.a)(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t})))))}),Object(Ne.a)(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,i){return function(s){return s.pipe(Object(Ae.b)(s=>function(e,t,n,r,i="emptyOnly",s="legacy"){return new Gn(e,t,n,r,i,s).recognize()}(e,t,s.urlAfterRedirects,n(s.urlAfterRedirects),r,i).pipe(Object(F.a)(e=>Object.assign(Object.assign({},s),{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(Ne.a)(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Object(Ne.a)(e=>{const n=new We(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var r,i,s,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:s,extras:o}=e,a=new Be(n,this.serializeUrl(r),i,s);t.next(a);const l=qt(r,this.rootComponentType).snapshot;return Object(A.a)(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),$e.a}),er(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),Object(Ne.a)(e=>{const t=new ze(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(F.a)(e=>Object.assign(Object.assign({},e),{guards:Rn(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(Object(Ae.b)(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?Object(A.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return Object(be.a)(e).pipe(Object(Ae.b)(e=>function(e,t,n,r,i){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!s||0===s.length)return Object(A.a)(!0);const o=s.map(s=>{const o=Fn(s,t,i);let a;if(function(e){return e&&vn(e.canDeactivate)}(o))a=ht(o.canDeactivate(e,t,n,r));else{if(!vn(o))throw new Error("Invalid CanDeactivate guard");a=ht(o(e,t,n,r))}return a.pipe(Object(Pe.a)())});return Object(A.a)(o).pipe(_n())}(e.component,e.route,n,t,r)),Object(Pe.a)(e=>!0!==e,!0))}(o,r,i,e).pipe(Object(Ae.b)(n=>n&&"boolean"==typeof n?function(e,t,n,r){return Object(be.a)(t).pipe(Object(D.a)(t=>Object(be.a)([Un(t.route.parent,r),Hn(t.route,r),Wn(e,t.path,n),qn(e,t.route,n)]).pipe(Object(Ee.a)(),Object(Pe.a)(e=>!0!==e,!0))),Object(Pe.a)(e=>!0!==e,!0))}(r,s,e,t):Object(A.a)(n)),Object(F.a)(e=>Object.assign(Object.assign({},n),{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),Object(Ne.a)(e=>{if(yn(e.guardsResult)){const t=st(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),Object(Ne.a)(e=>{const t=new Ge(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Object(R.a)(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Ue(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),er(e=>{if(e.guards.canActivateChecks.length)return Object(A.a)(e).pipe(Object(Ne.a)(e=>{const t=new Ke(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(Ie.a)(e=>{let n=!1;return Object(A.a)(e).pipe((r=this.paramsInheritanceStrategy,i=this.ngModule.injector,function(e){return e.pipe(Object(Ae.b)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return Object(A.a)(e);let s=0;return Object(be.a)(n).pipe(Object(D.a)(e=>function(e,t,n,r){return function(e,t,n,r){const i=Object.keys(e);if(0===i.length)return Object(A.a)({});const s={};return Object(be.a)(i).pipe(Object(Ae.b)(i=>function(e,t,n,r){const i=Fn(e,t,r);return ht(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe(Object(Ne.a)(e=>{s[i]=e}))),Object(De.a)(1),Object(Ae.b)(()=>Object.keys(s).length===i.length?Object(A.a)(s):$e.a))}(e._resolve,e,t,r).pipe(Object(F.a)(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),zt(e,n).resolve),null)))}(e.route,t,r,i)),Object(Ne.a)(()=>s++),Object(De.a)(1),Object(Ae.b)(t=>s===n.length?Object(A.a)(e):$e.a))}))}),Object(Ne.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new Ue(e.id,this.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");t.next(n),e.resolve(!1)}}}));var r,i}),Object(Ne.a)(e=>{const t=new Qe(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),er(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),Object(F.a)(e=>{const t=function(e,t,n){const r=Jt(e,t._root,n?n._root:void 0);return new Ut(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),Object(Ne.a)(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(i=this.rootContexts,s=this.routeReuseStrategy,o=e=>this.triggerEvent(e),Object(F.a)(e=>(new fn(s,e.targetRouterState,e.currentRouterState,o).activate(i),e))),Object(Ne.a)({next(){n=!0},complete(){n=!0}}),Object(Re.a)(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new Ue(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),Object(Ve.a)(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=yn(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const i=new Ue(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(i),r?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new qe(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}var i;return $e.a}));var i,s,o}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,t)&&setTimeout(()=>{const{source:e,state:n,urlTree:r}=t,i={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,0!==Object.keys(e).length&&(i.state=e)}this.scheduleNavigation(r,e,n,i)},0),this.lastLocationChangeInfo=t}))}extractLocationChangeInfoFromEvent(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,t){if(!e)return!0;const n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){xn(e),this.config=e.map(Sn),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:i,queryParamsHandling:s,preserveFragment:o}=t,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:i;let u=null;switch(s){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}return null!==u&&(u=this.removeEmptyProps(u)),function(e,t,n,r,i){if(0===n.length)return rn(t.root,t.root,t,r,i);const s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new on(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return dt(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new on(n,t,r)}(n);if(s.toRoot())return rn(t.root,new yt([],{}),t,r,i);const o=function(e,t,n){if(e.isAbsolute)return new an(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new an(e,e===t.root,0)}const r=tn(e.commands[0])?0:1;return function(e,t,n){let r=e,i=t,s=n;for(;s>i;){if(s-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new an(r,!1,i-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(s,t,e),a=o.processChildren?un(o.segmentGroup,o.index,s.commands):ln(o.segmentGroup,o.index,s.commands);return rn(o.segmentGroup,a,t,r,i)}(a,this.currentUrlTree,e,u,l)}navigateByUrl(e,t={skipLocationChange:!1}){const n=yn(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new He(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r,i){const s=this.getTransition(),o="imperative"!==t&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===e.toString();if(o&&a)return Promise.resolve(!0);let l,u,c;i?(l=i.resolve,u=i.reject,c=i.promise):c=new Promise((e,t)=>{l=e,u=t});const d=++this.navigationId;return this.setTransition({id:d,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:l,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const i=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(i)||t?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](r.Type),r["\u0275\u0275inject"](xt),r["\u0275\u0275inject"](sr),r["\u0275\u0275inject"](i.h),r["\u0275\u0275inject"](r.Injector),r["\u0275\u0275inject"](r.NgModuleFactoryLoader),r["\u0275\u0275inject"](r.Compiler),r["\u0275\u0275inject"](void 0))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),dr=(()=>{class e{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new Se.a,this.subscription=e.events.subscribe(e=>{e instanceof He&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,r,i){if(0!==e||t||n||r||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:hr(this.skipLocationChange),replaceUrl:hr(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:hr(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](cr),r["\u0275\u0275directiveInject"](Wt),r["\u0275\u0275directiveInject"](i.i))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(r["\u0275\u0275hostProperty"]("href",t.href,r["\u0275\u0275sanitizeUrl"]),r["\u0275\u0275attribute"]("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r["\u0275\u0275NgOnChangesFeature"]]}),e})();function hr(e){return""===e||!!e}let pr=(()=>{class e{constructor(e,t,n,i,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.EventEmitter,this.deactivateEvents=new r.EventEmitter,this.name=i||"primary",e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new fr(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](sr),r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.ComponentFactoryResolver),r["\u0275\u0275injectAttribute"]("name"),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class fr{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Wt?this.route:e===sr?this.childContexts:this.parent.get(e,t)}}class gr{}class mr{preload(e,t){return Object(A.a)(null)}}let vr=(()=>{class e{constructor(e,t,n,r,i){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=new rr(t,n,t=>e.triggerEvent(new Ze(t)),t=>e.triggerEvent(new Xe(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(R.a)(e=>e instanceof He),Object(D.a)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(r.NgModuleRef);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return Object(be.a)(n).pipe(Object(Fe.a)(),Object(F.a)(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(Object(Ae.b)(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](cr),r["\u0275\u0275inject"](r.NgModuleFactoryLoader),r["\u0275\u0275inject"](r.Compiler),r["\u0275\u0275inject"](r.Injector),r["\u0275\u0275inject"](gr))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),yr=(()=>{class e{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Be?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof He&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof nt&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new nt(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](cr),r["\u0275\u0275inject"](i.p),r["\u0275\u0275inject"](void 0))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const br=new r.InjectionToken("ROUTER_CONFIGURATION"),_r=new r.InjectionToken("ROUTER_FORROOT_GUARD"),wr=[i.h,{provide:xt,useClass:Ct},{provide:cr,useFactory:function(e,t,n,r,s,o,a,l={},u,c){const d=new cr(null,e,t,n,r,s,o,ut(a));if(u&&(d.urlHandlingStrategy=u),c&&(d.routeReuseStrategy=c),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(l,d),l.enableTracing){const e=Object(i.s)();d.events.subscribe(t=>{e.logGroup("Router Event: "+t.constructor.name),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return d},deps:[xt,sr,i.h,r.Injector,r.NgModuleFactoryLoader,r.Compiler,nr,br,[class{},new r.Optional],[class{},new r.Optional]]},sr,{provide:Wt,useFactory:function(e){return e.routerState.root},deps:[cr]},{provide:r.NgModuleFactoryLoader,useClass:r.SystemJsNgModuleLoader},vr,mr,class{preload(e,t){return t().pipe(Object(Ve.a)(()=>Object(A.a)(null)))}},{provide:br,useValue:{enableTracing:!1}}];function xr(){return new r.NgProbeToken("Router",cr)}let Cr=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[wr,Or(t),{provide:_r,useFactory:Er,deps:[[cr,new r.Optional,new r.SkipSelf]]},{provide:br,useValue:n||{}},{provide:i.i,useFactory:Sr,deps:[i.o,[new r.Inject(i.a),new r.Optional],br]},{provide:yr,useFactory:$r,deps:[cr,i.p,br]},{provide:gr,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:mr},{provide:r.NgProbeToken,multi:!0,useFactory:xr},[Ir,{provide:r.APP_INITIALIZER,multi:!0,useFactory:kr,deps:[Ir]},{provide:jr,useFactory:Tr,deps:[Ir]},{provide:r.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:jr}]]}}static forChild(t){return{ngModule:e,providers:[Or(t)]}}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)(r["\u0275\u0275inject"](_r,8),r["\u0275\u0275inject"](cr,8))}}),e})();function $r(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new yr(e,t,n)}function Sr(e,t,n={}){return n.useHash?new i.e(e,t):new i.n(e,t)}function Er(e){return"guarded"}function Or(e){return[{provide:r.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:e},{provide:nr,multi:!0,useValue:e}]}let Ir=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new Se.a}appInitializer(){return this.injector.get(i.g,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(cr),r=this.injector.get(br);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Object(A.a)(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(br),n=this.injector.get(vr),i=this.injector.get(yr),s=this.injector.get(cr),o=this.injector.get(r.ApplicationRef);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||s.initialNavigation(),n.setUpPreloading(),i.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](r.Injector))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();function kr(e){return e.appInitializer.bind(e)}function Tr(e){return e.bootstrapListener.bind(e)}const jr=new r.InjectionToken("Router Initializer");var Vr=n("jn5B"),Pr=n("VRyK"),Mr=n("GyhO"),Ar=n("w1tV"),Nr=n("IAdc");class Dr{}let Rr=(()=>{class e extends Dr{getTranslation(e){return Object(A.a)({})}}return e.\u0275fac=function(t){return Fr(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const Fr=r["\u0275\u0275getInheritedFactory"](Rr);class Lr{}let Br=(()=>{class e{handle(e){return e.key}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();class Hr{}let Ur=(()=>{class e extends Hr{compile(e,t){return e}compileTranslations(e,t){return e}}return e.\u0275fac=function(t){return qr(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const qr=r["\u0275\u0275getInheritedFactory"](Ur);function Wr(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;let n,r,i,s=typeof e;if(s==typeof t&&"object"==s){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(r in i=Object.create(null),e){if(!Wr(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&void 0!==t[r])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(r=0;r{Gr(t[r])?r in e?n[r]=Kr(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Object.assign(n,{[r]:t[r]})}),n}class Qr{}let Zr=(()=>{class e extends Qr{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let n;return n="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,n}getValue(e,t){let n=t.split(".");t="";do{t+=n.shift(),!zr(e)||!zr(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(e,n)=>{let r=this.getValue(t,n);return zr(r)?r:e}):e}}return e.\u0275fac=function(t){return Xr(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const Xr=r["\u0275\u0275getInheritedFactory"](Zr);class Yr{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new r.EventEmitter,this.onLangChange=new r.EventEmitter,this.onDefaultLangChange=new r.EventEmitter}}const Jr=new r.InjectionToken("USE_STORE"),ei=new r.InjectionToken("USE_DEFAULT_LANG");let ti=(()=>{class e{constructor(e,t,n,i,s,o=!0,a=!1){this.store=e,this.currentLoader=t,this.compiler=n,this.parser=i,this.missingTranslationHandler=s,this.useDefaultLang=o,this.isolate=a,this.pending=!1,this._onTranslationChange=new r.EventEmitter,this._onLangChange=new r.EventEmitter,this._onDefaultLangChange=new r.EventEmitter,this._langs=[],this._translations={},this._translationRequests={}}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);void 0!==t?(this.defaultLang||(this.defaultLang=e),t.pipe(Object(ke.a)(1)).subscribe(t=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Object(A.a)(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe(Object(ke.a)(1)).subscribe(t=>{this.changeLang(e)}),t):(this.changeLang(e),Object(A.a)(this.translations[e]))}retrieveTranslations(e){let t;return void 0===this.translations[e]&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Object(Ar.a)());return this.loadingTranslations=t.pipe(Object(ke.a)(1),Object(F.a)(t=>this.compiler.compileTranslations(t,e)),Object(Ar.a)()),this.loadingTranslations.subscribe(t=>{this.translations[e]=t,this.updateLangs(),this.pending=!1},e=>{this.pending=!1}),t}setTranslation(e,t,n=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=n&&this.translations[e]?Kr(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(e=>{-1===this.langs.indexOf(e)&&this.langs.push(e)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,n){let r;if(t instanceof Array){let r={},i=!1;for(let s of t)r[s]=this.getParsedResult(e,s,n),"function"==typeof r[s].subscribe&&(i=!0);if(i){let e;for(let n of t){let t="function"==typeof r[n].subscribe?r[n]:Object(A.a)(r[n]);e=void 0===e?t:Object(Pr.a)(e,t)}return e.pipe(Object(Nr.a)(),Object(F.a)(e=>{let n={};return e.forEach((e,r)=>{n[t[r]]=e}),n}))}return r}if(e&&(r=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===r&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===r){let e={key:t,translateService:this};void 0!==n&&(e.interpolateParams=n),r=this.missingTranslationHandler.handle(e)}return void 0!==r?r:t}get(e,t){if(!zr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return N.a.create(n=>{let r=e=>{n.next(e),n.complete()},i=e=>{n.error(e)};this.loadingTranslations.subscribe(n=>{"function"==typeof(n=this.getParsedResult(n,e,t)).subscribe?n.subscribe(r,i):r(n)},i)});{let n=this.getParsedResult(this.translations[this.currentLang],e,t);return"function"==typeof n.subscribe?n:Object(A.a)(n)}}stream(e,t){if(!zr(e)||!e.length)throw new Error('Parameter "key" required');return Object(Mr.a)(this.get(e,t),this.onLangChange.pipe(Object(Ie.a)(n=>{const r=this.getParsedResult(n.translations,e,t);return"function"==typeof r.subscribe?r:Object(A.a)(r)})))}instant(e,t){if(!zr(e)||!e.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],e,t);if(void 0!==n.subscribe){if(e instanceof Array){let t={};return e.forEach((n,r)=>{t[e[r]]=e[r]}),t}return e}return n}set(e,t,n=this.currentLang){this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang||this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](Yr),r["\u0275\u0275inject"](Dr),r["\u0275\u0275inject"](Hr),r["\u0275\u0275inject"](Qr),r["\u0275\u0275inject"](Lr),r["\u0275\u0275inject"](ei),r["\u0275\u0275inject"](Jr))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),ni=(()=>{class e{constructor(e,t,n){this.translateService=e,this.element=t,this._ref=n,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(e=>{e.lang===this.translateService.currentLang&&this.checkNodes(!0,e.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(e=>{this.checkNodes(!0,e.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(e=>{this.checkNodes(!0)}))}set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){Wr(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,t){let n=this.element.nativeElement.childNodes;n.length||(this.setContent(this.element.nativeElement,this.key),n=this.element.nativeElement.childNodes);for(let r=0;r{n!==e&&(t.lastKey=e),t.originalContent||(t.originalContent=this.getContent(t)),t.currentValue=zr(n)?n:t.originalContent||e,this.setContent(t,this.key?t.currentValue:t.originalContent.replace(e,t.currentValue)),this._ref.markForCheck()};if(zr(n)){let t=this.translateService.getParsedResult(n,e,this.currentParams);"function"==typeof t.subscribe?t.subscribe(r):r(t)}else this.translateService.get(e,this.currentParams).subscribe(r)}}getContent(e){return zr(e.textContent)?e.textContent:e.data}setContent(e,t){zr(e.textContent)?e.textContent=t:e.data=t}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ti),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),e})(),ri=(()=>{class e{constructor(e,t){this.translate=e,this._ref=t,this.value=""}updateValue(e,t,n){let r=t=>{this.value=void 0!==t?t:e,this.lastKey=e,this._ref.markForCheck()};if(n){let i=this.translate.getParsedResult(n,e,t);"function"==typeof i.subscribe?i.subscribe(r):r(i)}this.translate.get(e,t).subscribe(r)}transform(e,...t){if(!e||0===e.length)return e;if(Wr(e,this.lastKey)&&Wr(t,this.lastParams))return this.value;let n;if(zr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let e=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(e)}catch(r){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+t[0])}}else"object"!=typeof t[0]||Array.isArray(t[0])||(n=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(t=>{this.lastKey&&t.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,n,t.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(t=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n,t.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ti),r["\u0275\u0275injectPipeChangeDetectorRef"]())},e.\u0275pipe=r["\u0275\u0275definePipe"]({name:"translate",type:e,pure:!1}),e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),ii=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[t.loader||{provide:Dr,useClass:Rr},t.compiler||{provide:Hr,useClass:Ur},t.parser||{provide:Qr,useClass:Zr},t.missingTranslationHandler||{provide:Lr,useClass:Br},Yr,{provide:Jr,useValue:t.isolate},{provide:ei,useValue:t.useDefaultLang},ti]}}static forChild(t={}){return{ngModule:e,providers:[t.loader||{provide:Dr,useClass:Rr},t.compiler||{provide:Hr,useClass:Ur},t.parser||{provide:Qr,useClass:Zr},t.missingTranslationHandler||{provide:Lr,useClass:Br},{provide:Jr,useValue:t.isolate},{provide:ei,useValue:t.useDefaultLang},ti]}}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)}}),e})();class si{constructor(e,t="/assets/i18n/",n=".json"){this.http=e,this.prefix=t,this.suffix=n}getTranslation(e){return this.http.get(`${this.prefix}${e}${this.suffix}`)}}let oi=(()=>{class e{constructor(e){e.setDefaultLang("en"),console.log("Browser language is: "+e.getBrowserLang()),e.use(e.getBrowserLang())}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ti))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-navbar"]],decls:3,vars:1,consts:[[1,"navbar","navbar-dark","bg-dark"],["href","",1,"navbar-brand",3,"translate"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"nav",0),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"HoneyPi"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","brand"))},directives:[ni],styles:[""]}),e})();const{version:ai}=n("kiQV");let li=(()=>{class e{constructor(e){this.translate=e,this.appVersion=ai}ngOnInit(){}useLanguage(e){this.translate.use(e)}get currentYear(){return(new Date).getFullYear()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ti))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-footer"]],decls:16,vars:1,consts:[[1,"footer"],[1,"container"],[1,"text-muted"],["href","https://www.honey-pi.de","target","_blank"],[1,"float-right","text-muted",2,"padding-left","10px"],["routerLink","",3,"click"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"footer",0),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275elementStart"](2,"span",2),r["\u0275\u0275text"](3,"\xa9 "),r["\u0275\u0275elementStart"](4,"a",3),r["\u0275\u0275text"](5,"HoneyPi.de"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](6),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"span",4),r["\u0275\u0275elementStart"](8,"a",5),r["\u0275\u0275listener"]("click",function(){return t.useLanguage("de")}),r["\u0275\u0275text"](9,"Deutsch"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](10," | "),r["\u0275\u0275elementStart"](11,"a",5),r["\u0275\u0275listener"]("click",function(){return t.useLanguage("en")}),r["\u0275\u0275text"](12,"English"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](13," | "),r["\u0275\u0275elementStart"](14,"a",5),r["\u0275\u0275listener"]("click",function(){return t.useLanguage("el_GR")}),r["\u0275\u0275text"](15,"Greek"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](6),r["\u0275\u0275textInterpolate1"](" 2018-",t.currentYear,""))},directives:[dr],styles:[""]}),e})(),ui=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-root"]],decls:3,vars:0,template:function(e,t){1&e&&(r["\u0275\u0275element"](0,"app-navbar"),r["\u0275\u0275element"](1,"router-outlet"),r["\u0275\u0275element"](2,"app-footer"))},directives:[oi,pr,li],styles:['.ng-invalid:not(form){border-left:5px solid #a94442}@-webkit-keyframes spinner{to{transform:rotate(1turn)}}@keyframes spinner{to{transform:rotate(1turn)}} .spinner:before{content:"";box-sizing:border-box;position:absolute;top:50%;left:50%;width:50px;height:50px;margin-top:-10px;margin-left:-10px;border-radius:50%;border:6px solid #f7f7f7;border-top-color:#ffc107;-webkit-animation:spinner .8s linear infinite;animation:spinner .8s linear infinite}']}),e})();n("4XzM");let ci=(()=>{class e{constructor(e){this.http=e}getSettings(){const e="t="+(new Date).getTime();return this.http.get("./backend/settings.php?getSettings&"+e,{responseType:"json"})}setSettings(e){return this.http.post("./backend/settings.php?setSettings",JSON.stringify(e)).map(e=>e)}getTemperatureSensors(){const e="t="+(new Date).getTime();return this.http.get("./backend/ds18b20.php?"+e).map(e=>{if(e)return e})}getLog(){const e="t="+(new Date).getTime();return this.http.get("./backend/log.php?"+e,{responseType:"text"})}deleteLog(){const e="t="+(new Date).getTime();return this.http.get("./backend/log.php?delete&"+e,{responseType:"text"})}deleteCsv(e){const t="t="+(new Date).getTime();return this.http.get("./backend/offlinecsv.php?delete&channelId="+e+"&"+t,{responseType:"text"})}update(e="update",t=!1,n=""){const r="t="+(new Date).getTime();return this.http.get("./backend/update.php?mode="+e+"&stable="+(t?0:1)+n+"&"+r,{responseType:"json"})}getMeasurement(){const e="t="+(new Date).getTime();return this.http.get("./backend/measurement.php?"+e).map(e=>{if(e)return e})}checkInternet(){const e="t="+(new Date).getTime();return this.http.get("./backend/check_internet.php?"+e).map(e=>{if(e)return e})}checkDiag(){const e="t="+(new Date).getTime();return this.http.get("./backend/check_diag.php?"+e,{responseType:"text"}).map(e=>e)}checkThingSpeakChannel(e){return this.http.post("./backend/check_thingspeak.php",e).map(e=>{if(e)return e})}getWeight(e){return this.http.post("./backend/weight.php",e,{responseType:"text"}).map(e=>e)}boot(e){const t="t="+(new Date).getTime();return this.http.get("./backend/boot.php?"+e+"&"+t)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](ne))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class di{constructor(){this.router=new hi,this.honeypi=new hi,this.modem=new pi}}class hi{}class pi{}class fi{constructor(){this.enabled=!1,this.version=2,this.dummyload=!1,this.voltagecheck_enabled=!1,this.low=new gi,this.normal=new gi}}class gi{constructor(){this.enabled=!1,this.schedule=""}}class mi{constructor(){this.ts_channels=[],this.ts_channels.push(new vi),this.sensors=[],this.internet=new di,this.wittyPi=new fi}}class vi{constructor(){this.ts_write_key="",this.ts_channel_id=void 0}}function yi(e,t){1&e&&r["\u0275\u0275element"](0,"br")}n("g3Qq");const bi=function(){return{field:"Write-API-Key"}};function _i(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",29),r["\u0275\u0275elementStart"](1,"a",30),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](3),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](4,1,"error.spaces",r["\u0275\u0275pureFunction0"](4,bi))," "))}const wi=function(){return{field:"Channel-ID"}};function xi(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.required",r["\u0275\u0275pureFunction0"](4,wi))," "))}function Ci(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.length",r["\u0275\u0275pureFunction0"](4,wi))," "))}function $i(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",31),r["\u0275\u0275template"](1,xi,3,5,"div",10),r["\u0275\u0275template"](2,Ci,3,5,"div",10),r["\u0275\u0275elementEnd"]()),2&e){r["\u0275\u0275nextContext"]();const e=r["\u0275\u0275reference"](20);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",(null==e?null:e.errors.min)||(null==e?null:e.errors.max))}}function Si(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.required",r["\u0275\u0275pureFunction0"](4,bi))," "))}function Ei(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.length",r["\u0275\u0275pureFunction0"](4,bi))," "))}function Oi(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",31),r["\u0275\u0275template"](1,Si,3,5,"div",10),r["\u0275\u0275template"](2,Ei,3,5,"div",10),r["\u0275\u0275elementEnd"]()),2&e){r["\u0275\u0275nextContext"]();const e=r["\u0275\u0275reference"](29);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",(null==e?null:e.errors.minlength)||(null==e?null:e.errors.maxlength))}}function Ii(e,t){1&e&&r["\u0275\u0275element"](0,"br")}const ki=function(e){return{"my-bg-ts":e}};function Ti(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",8),r["\u0275\u0275elementStart"](1,"div",9),r["\u0275\u0275template"](2,yi,1,0,"br",10),r["\u0275\u0275elementStart"](3,"div",11),r["\u0275\u0275elementStart"](4,"button",12),r["\u0275\u0275listener"]("click",function(){r["\u0275\u0275restoreView"](e);const n=t.index;return r["\u0275\u0275nextContext"]().removeChannel(n)}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275text"](6,"\u232b"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"h5",13),r["\u0275\u0275text"](8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"div",0),r["\u0275\u0275elementStart"](10,"label",14),r["\u0275\u0275text"](11,"Channel-Name "),r["\u0275\u0275elementStart"](12,"i"),r["\u0275\u0275text"](13,"(optional)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](14,"input",15,16),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.$implicit.name=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"div",0),r["\u0275\u0275elementStart"](17,"label",17),r["\u0275\u0275text"](18,"ThingSpeak Channel-ID"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"input",18,19),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.$implicit.ts_channel_id=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"div",0),r["\u0275\u0275elementStart"](22,"label",20),r["\u0275\u0275text"](23,"ThingSpeak "),r["\u0275\u0275elementStart"](24,"strong"),r["\u0275\u0275text"](25,"Write"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](26,"-API-Key"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](27,"div",21),r["\u0275\u0275elementStart"](28,"input",22,23),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.$implicit.ts_write_key=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](30,"span",24),r["\u0275\u0275elementStart"](31,"button",25,26),r["\u0275\u0275listener"]("click",function(){r["\u0275\u0275restoreView"](e);const n=t.$implicit,i=r["\u0275\u0275reference"](32);return r["\u0275\u0275nextContext"]().checkThingSpeakChannel(n.ts_channel_id,n.ts_write_key,i)}),r["\u0275\u0275pipe"](33,"translate"),r["\u0275\u0275text"](34,"\u2713"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](35,_i,5,5,"div",27),r["\u0275\u0275template"](36,$i,3,2,"div",28),r["\u0275\u0275template"](37,Oi,3,2,"div",28),r["\u0275\u0275template"](38,Ii,1,0,"br",10),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=t.$implicit,n=t.index,i=t.last,s=t.first,o=r["\u0275\u0275reference"](20),a=r["\u0275\u0275reference"](29),l=r["\u0275\u0275reference"](32),u=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275classProp"]("spinner",l.disabled),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](23,ki,n%2!=0)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!s),r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("title",r["\u0275\u0275pipeBind1"](5,19,"settings.thingspeak.removeChannel")),r["\u0275\u0275property"]("disabled",u.isRemovingDisabled),r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate1"]("ThingSpeak Channel #",n+1,""),r["\u0275\u0275advance"](6),r["\u0275\u0275property"]("ngModel",e.name),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("ngModel",e.ts_channel_id)("min",0)("max",9999999),r["\u0275\u0275advance"](9),r["\u0275\u0275property"]("ngModel",e.ts_write_key),r["\u0275\u0275advance"](3),r["\u0275\u0275classProp"]("disabled",!e.ts_channel_id||!e.ts_write_key),r["\u0275\u0275propertyInterpolate"]("title",r["\u0275\u0275pipeBind1"](33,21,"settings.thingspeak.checkConnection")),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==a?null:a.value)&&-1!==(null==a||null==a.value?null:a.value.indexOf(" "))),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",o.invalid&&(o.dirty||o.touched)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",a.invalid&&(a.dirty||a.touched)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!i)}}let ji=(()=>{class e{constructor(e,t){this.appService=e,this.translate=t,this.thingspeakUrlPattern="^(?:(?:(?:[a-zA-z\\-]+)\\:\\/{1,3})?(?:[a-zA-Z0-9])(?:[a-zA-Z0-9-\\.]){1,61}[a-zA-Z0-9](?:\\.[a-zA-Z]{2,})+|\\[(?:(?:(?:[a-fA-F0-9]){1,4})(?::(?:[a-fA-F0-9]){1,4}){7}|::1|::)\\]|(?:(?:[0-9]{1,3})(?:\\.[0-9]{1,3}){3}))(?:\\:[0-9]{1,5})?$",this.settingsChange=new r.EventEmitter}set settings(e){this.settingsChange.emit(e),this._settings=e}get settings(){return this._settings}ngOnInit(){}addChannel(){this.settings.ts_channels.push({ts_channel_id:void 0,ts_write_key:""})}removeChannel(e){this.settings.ts_channels.splice(e,1)}get isAddingDisabled(){return this.settings.ts_channels.length>=10}get isRemovingDisabled(){return this.settings.ts_channels.length<=1}checkThingSpeakChannel(e,t,n){this.translate.get("settings.thingspeak.confirmCheck").subscribe(r=>{window.confirm(r)&&(n.setAttribute("disabled","disabled"),this.appService.checkThingSpeakChannel({ts_channel_id:e,ts_write_key:t}).timeout(15e3).finally(()=>{n.removeAttribute("disabled")}).subscribe(e=>{n.classList.remove("btn-danger","btn-warning"),n.classList.add("btn-success")},e=>{console.log(e),n.classList.remove("btn-success","btn-warning"),n.classList.add("btn-danger")}))})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci),r["\u0275\u0275directiveInject"](ti))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-thingspeak"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:12,vars:7,consts:[[1,"form-group"],["for","ts_server_url"],["type","text","id","ts_server_url","name","ts_server_url","placeholder","http://api.thingspeak.com",1,"form-control",3,"ngModel","pattern","ngModelChange"],["ts_server_url","ngModel"],["class","rounded row",4,"ngFor","ngForOf"],[1,"row"],[1,"col-12"],["type","button",1,"btn","btn-primary","btn-sm","float-left","shadow-sm",3,"disabled","click"],[1,"rounded","row"],[1,"col-12",3,"ngClass"],[4,"ngIf"],["role","group",1,"btn-group","btn-group-sm","float-right"],["type","button",1,"btn","btn-danger","btn-sm",2,"margin-bottom","10px",3,"disabled","title","click"],[1,"h5"],["for","ts_name"],["type","text","id","ts_name","name","ts_name","placeholder","Name",1,"form-control",3,"ngModel","ngModelChange"],["ts_name","ngModel"],["for","ts_channel_id"],["type","number","id","ts_channel_id","name","ts_channel_id","placeholder","Channel-ID","required","",1,"form-control",3,"ngModel","min","max","ngModelChange"],["ts_channel_id","ngModel"],["for","ts_write_key"],[1,"input-group"],["type","text","id","ts_write_key","name","ts_write_key","placeholder","Write-API-Key","required","","minlength","16","maxlength","16",1,"form-control",3,"ngModel","ngModelChange"],["ts_write_key","ngModel"],[1,"input-group-btn"],["type","button",1,"btn","btn-warning",3,"title","click"],["checkElement",""],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-danger",4,"ngIf"],["role","alert",1,"alert","alert-warning"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[1,"alert","alert-danger"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"label",1),r["\u0275\u0275text"](2,"ThingSpeak Server-URL"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"input",2,3),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.ts_server_url=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](5,Ti,39,25,"div",4),r["\u0275\u0275elementStart"](6,"div",5),r["\u0275\u0275elementStart"](7,"div",6),r["\u0275\u0275element"](8,"br"),r["\u0275\u0275elementStart"](9,"button",7),r["\u0275\u0275listener"]("click",function(){return t.addChannel()}),r["\u0275\u0275text"](10),r["\u0275\u0275pipe"](11,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngModel",t.settings.ts_server_url)("pattern",t.thingspeakUrlPattern),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngForOf",t.settings.ts_channels),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("disabled",t.isAddingDisabled),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"]("+ ",r["\u0275\u0275pipeBind1"](11,5,"settings.thingspeak.addChannel"),""))},directives:[ye.DefaultValueAccessor,ye.NgControlStatus,ye.NgModel,ye.PatternValidator,i.k,i.j,i.l,ye.NumberValueAccessor,ye.RequiredValidator,Vr.MinValidator,Vr.MaxValidator,ye.MinLengthValidator,ye.MaxLengthValidator],pipes:[ri],styles:[".my-bg-ts[_ngcontent-%COMP%]{background-color:#e9ecef}"]}),e})();const Vi=function(e){return{field:e}};function Pi(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",36),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](3),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](4,1,"error.spaces",r["\u0275\u0275pureFunction1"](6,Vi,r["\u0275\u0275pipeBind1"](5,4,"settings.internet.ssid")))," "))}function Mi(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",36),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](3),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](4,1,"error.spaces",r["\u0275\u0275pureFunction1"](6,Vi,r["\u0275\u0275pipeBind1"](5,4,"settings.internet.password")))," "))}function Ai(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.required",r["\u0275\u0275pureFunction1"](6,Vi,r["\u0275\u0275pipeBind1"](3,4,"settings.internet.ssid")))," "))}function Ni(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.length",r["\u0275\u0275pureFunction1"](6,Vi,r["\u0275\u0275pipeBind1"](3,4,"settings.internet.ssid")))," "))}function Di(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",37),r["\u0275\u0275template"](1,Ai,4,8,"div",9),r["\u0275\u0275template"](2,Ni,4,8,"div",9),r["\u0275\u0275elementEnd"]()),2&e){r["\u0275\u0275nextContext"]();const e=r["\u0275\u0275reference"](4);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.maxlength)}}function Ri(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.required",r["\u0275\u0275pureFunction1"](6,Vi,r["\u0275\u0275pipeBind1"](3,4,"settings.internet.password")))," "))}function Fi(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.length",r["\u0275\u0275pureFunction1"](6,Vi,r["\u0275\u0275pipeBind1"](3,4,"settings.internet.password")))," "))}function Li(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.specialchar",r["\u0275\u0275pureFunction1"](6,Vi,r["\u0275\u0275pipeBind1"](3,4,"settings.internet.password")))," "))}function Bi(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",37),r["\u0275\u0275template"](1,Ri,4,8,"div",9),r["\u0275\u0275template"](2,Fi,4,8,"div",9),r["\u0275\u0275template"](3,Li,4,8,"div",9),r["\u0275\u0275elementEnd"]()),2&e){r["\u0275\u0275nextContext"]();const e=r["\u0275\u0275reference"](9);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",(null==e?null:e.errors.minlength)||(null==e?null:e.errors.maxlength)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.pattern)}}const Hi=function(e){return{value:e}};function Ui(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",15),r["\u0275\u0275elementStart"](1,"div",22),r["\u0275\u0275element"](2,"label",23),r["\u0275\u0275elementStart"](3,"input",24,25),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().wifi.router.ssid=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",26),r["\u0275\u0275element"](7,"label",27),r["\u0275\u0275elementStart"](8,"input",28,29),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().wifi.router.password=t}),r["\u0275\u0275pipe"](10,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](11,"div",22),r["\u0275\u0275element"](12,"label",30),r["\u0275\u0275elementStart"](13,"select",31),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().wifi.router.wpa_type=t}),r["\u0275\u0275element"](14,"option",32),r["\u0275\u0275pipe"](15,"translate"),r["\u0275\u0275pipe"](16,"translate"),r["\u0275\u0275elementStart"](17,"option",33),r["\u0275\u0275text"](18,"WPA2 (default)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"option",33),r["\u0275\u0275text"](20,"No Password"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](21,Pi,6,8,"div",34),r["\u0275\u0275template"](22,Mi,6,8,"div",34),r["\u0275\u0275template"](23,Di,3,2,"div",35),r["\u0275\u0275template"](24,Bi,4,3,"div",35),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275reference"](4),t=r["\u0275\u0275reference"](9),n=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.internet.ssid"),r["\u0275\u0275advance"](1),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](5,21,"settings.internet.ssid")),r["\u0275\u0275property"]("ngModel",n.wifi.router.ssid)("maxlength",32),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("hidden",2===n.wifi.router.wpa_type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.internet.password"),r["\u0275\u0275advance"](1),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](10,23,"settings.internet.password")),r["\u0275\u0275property"]("ngModel",n.wifi.router.password)("minlength",8)("maxlength",63)("pattern",n.disallowedChars),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("translate","settings.internet.wpa_type"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",n.wifi.router.wpa_type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](15,25,"buttons.select",r["\u0275\u0275pureFunction1"](30,Hi,r["\u0275\u0275pipeBind1"](16,28,"settings.internet.wpa_type")))),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngValue",0),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",2),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",(null==e?null:e.value)&&-1!==(null==e||null==e.value?null:e.value.indexOf(" "))),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",(null==t?null:t.value)&&-1!==(null==t||null==t.value?null:t.value.indexOf(" "))),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.invalid&&(e.dirty||e.touched)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.invalid&&(t.dirty||t.touched))}}function qi(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275elementStart"](1,"div",15),r["\u0275\u0275elementStart"](2,"div",16),r["\u0275\u0275elementStart"](3,"label",38),r["\u0275\u0275text"](4),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"input",39),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().wifi.modem.apn=t}),r["\u0275\u0275pipe"](7,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"div",16),r["\u0275\u0275element"](9,"label",40),r["\u0275\u0275elementStart"](10,"select",41),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().wifi.modem.ttyUSB=t}),r["\u0275\u0275element"](11,"option",32),r["\u0275\u0275pipe"](12,"translate"),r["\u0275\u0275pipe"](13,"translate"),r["\u0275\u0275elementStart"](14,"option",33),r["\u0275\u0275text"](15,"ttyUSB0 (default)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"option",33),r["\u0275\u0275text"](17,"ttyUSB1"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](18,"option",33),r["\u0275\u0275text"](19,"ttyUSB2"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](20,"option",33),r["\u0275\u0275text"](21,"ttyS0"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](22,"option",33),r["\u0275\u0275text"](23,"ttyS1"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](5,12,"settings.internet.apn")),r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](7,14,"settings.internet.apn")),r["\u0275\u0275property"]("ngModel",e.wifi.modem.apn),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.internet.ttyUSB"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",e.wifi.modem.ttyUSB),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](12,16,"buttons.select",r["\u0275\u0275pureFunction1"](21,Hi,r["\u0275\u0275pipeBind1"](13,19,"settings.internet.ttyUSB")))),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngValue","ttyUSB0"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue","ttyUSB1"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue","ttyUSB2"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue","ttyS0"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue","ttyS1")}}function Wi(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",44),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",45),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"settings.internet.testSuccess"),r["\u0275\u0275sanitizeHtml"]))}function zi(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",46),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",45),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"settings.internet.testError"),r["\u0275\u0275sanitizeHtml"]))}function Gi(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"pre",47),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"json"),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](2,1,e.checkInternetResponse.content))}}function Ki(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275template"](1,Wi,5,3,"div",42),r["\u0275\u0275template"](2,zi,5,3,"div",43),r["\u0275\u0275template"](3,Gi,3,3,"pre",21),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.checkInternetResponse.connected),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!e.checkInternetResponse.connected),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!e.checkInternetResponse.connected&&e.checkInternetResponse.content)}}function Qi(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"pre",47),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.checkSurfstickResponse)}}let Zi=(()=>{class e{constructor(e){this.appService=e,this.isLoading=!1,this.isLoadingAP=!1,this.disallowedChars="[^/]+",this.wifiChange=new r.EventEmitter}set wifi(e){this.wifiChange.emit(e),this._wifi=e}get wifi(){return this._wifi}ngOnInit(){}checkInternet(){this.isLoading=!0,this.checkInternetResponse=null,this.appService.checkInternet().timeout(15e3).finally(()=>this.isLoading=!1).subscribe(e=>{this.checkInternetResponse=e},e=>{console.log(e),this.checkInternetResponse=e.name&&"TimeoutError"===e.name?{connected:!1,content:"Timeout after 15 Seconds."}:e.name&&"HttpErrorResponse"===e.name?{connected:!1,content:null}:{connected:!1,content:e}})}checkDiag(){this.isLoadingAP=!0,this.checkSurfstickResponse=null,this.appService.checkDiag().timeout(15e3).finally(()=>this.isLoadingAP=!1).subscribe(e=>{this.checkSurfstickResponse=e},e=>{console.error(e),this.checkSurfstickResponse=JSON.stringify(e)})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-internet"]],inputs:{wifi:"wifi"},outputs:{wifiChange:"wifiChange"},decls:46,vars:40,consts:[["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[1,"h5",3,"translate"],[1,"form-check"],["type","checkbox","id","enabledWifi",1,"form-check-input",3,"ngModel","ngModelChange"],["for","enabledWifi",1,"form-check-label",3,"translate"],["class","row",4,"ngIf"],["type","checkbox","id","enabledModem",1,"form-check-input",3,"ngModel","ngModelChange"],["for","enabledModem",1,"form-check-label",3,"translate"],[4,"ngIf"],["type","button","role","button",1,"btn","btn-warning","btn-sm",3,"disabled","translate","click"],["data-toggle","collapse","href","#collapseAP","role","button","aria-expanded","false","aria-controls","collapseAP",1,"text-danger",3,"translate"],["id","collapseAP",1,"collapse"],[1,"card","card-body"],[3,"translate"],[1,"row"],[1,"form-group","col-12","col-sm-6"],["for","honeypiWifissid"],["type","text","id","honeypiWifissid","name","honeypiWifissid",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","honeypiWifipassword"],["type","text","id","honeypiWifipassword","name","honeypiWifipassword",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["class","pre-scrollable",4,"ngIf"],[1,"form-group","col-12","col-sm-4"],["for","ssid",3,"translate"],["type","text","id","ssid","name","ssid","required","",1,"form-control",3,"ngModel","placeholder","maxlength","ngModelChange"],["router_ssid","ngModel"],[1,"form-group","col-12","col-sm-4",3,"hidden"],["for","password",3,"translate"],["type","text","id","password","name","password","required","",1,"form-control",3,"ngModel","placeholder","minlength","maxlength","pattern","ngModelChange"],["router_password","ngModel"],["for","wpa_type",3,"translate"],["id","wpa_type","name","wpa_type","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue","translate"],[3,"ngValue"],["class","alert alert-warning col-12","role","alert",4,"ngIf"],["class","alert alert-danger col-12","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-warning","col-12"],["role","alert",1,"alert","alert-danger","col-12"],["for","honeypiModemApn"],["type","text","id","honeypiModemApn","name","honeypiModemApn","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","ttyUSB",3,"translate"],["id","ttyUSB","name","ttyUSB","required","",1,"custom-select",3,"ngModel","ngModelChange"],["class","alert alert-success","role","alert",4,"ngIf"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-success"],[3,"innerHTML"],["role","alert",1,"alert","alert-danger"],[1,"pre-scrollable"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](3),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](5,"h5",2),r["\u0275\u0275elementStart"](6,"div",3),r["\u0275\u0275elementStart"](7,"input",4),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.wifi.router.enabled=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](8,"label",5),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](9,Ui,25,32,"div",6),r["\u0275\u0275element"](10,"hr"),r["\u0275\u0275element"](11,"h5",2),r["\u0275\u0275elementStart"](12,"div",3),r["\u0275\u0275elementStart"](13,"input",7),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.wifi.modem.enabled=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](14,"label",8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](15,qi,24,23,"div",9),r["\u0275\u0275element"](16,"hr"),r["\u0275\u0275element"](17,"h5",2),r["\u0275\u0275elementStart"](18,"p"),r["\u0275\u0275elementStart"](19,"button",10),r["\u0275\u0275listener"]("click",function(){return t.checkInternet()}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](20,Ki,4,3,"div",9),r["\u0275\u0275element"](21,"hr"),r["\u0275\u0275elementStart"](22,"p"),r["\u0275\u0275element"](23,"a",11),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](24,"div",12),r["\u0275\u0275elementStart"](25,"div",13),r["\u0275\u0275element"](26,"h5",2),r["\u0275\u0275element"](27,"p",14),r["\u0275\u0275elementStart"](28,"div",15),r["\u0275\u0275elementStart"](29,"div",16),r["\u0275\u0275elementStart"](30,"label",17),r["\u0275\u0275text"](31),r["\u0275\u0275pipe"](32,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](33,"input",18),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.wifi.honeypi.ssid=e}),r["\u0275\u0275pipe"](34,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](35,"div",16),r["\u0275\u0275elementStart"](36,"label",19),r["\u0275\u0275text"](37),r["\u0275\u0275pipe"](38,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](39,"input",20),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.wifi.honeypi.password=e}),r["\u0275\u0275pipe"](40,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](41,"hr"),r["\u0275\u0275element"](42,"h5",2),r["\u0275\u0275elementStart"](43,"p"),r["\u0275\u0275elementStart"](44,"button",10),r["\u0275\u0275listener"]("click",function(){return t.checkDiag()}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](45,Qi,2,1,"pre",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](4,30,"alerts.afterSave"),"\n"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.internet.wifi"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",t.wifi.router.enabled),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.internet.connectWifi"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.wifi.router.enabled),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.internet.honeypiModem"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",t.wifi.modem.enabled),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.internet.connectModem"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.wifi.modem.enabled),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.internet.isMobileConnected"),r["\u0275\u0275advance"](2),r["\u0275\u0275classProp"]("spinner",t.isLoading),r["\u0275\u0275property"]("disabled",t.isLoading)("translate","settings.internet.testConnection"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.checkInternetResponse),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.internet.collapseAP"),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.internet.honeypiAP"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.internet.honeypiAPtext"),r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](32,32,"settings.internet.ssid")),r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](34,34,"settings.internet.ssid")),r["\u0275\u0275property"]("ngModel",t.wifi.honeypi.ssid),r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](38,36,"settings.internet.password")),r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](40,38,"settings.internet.password")),r["\u0275\u0275property"]("ngModel",t.wifi.honeypi.password),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.internet.isSurfstickConnected"),r["\u0275\u0275advance"](2),r["\u0275\u0275classProp"]("spinner",t.isLoadingAP),r["\u0275\u0275property"]("disabled",t.isLoadingAP)("translate","settings.internet.testDiag"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.checkSurfstickResponse))},directives:[ni,ye.CheckboxControlValueAccessor,ye.NgControlStatus,ye.NgModel,i.l,ye.DefaultValueAccessor,ye.RequiredValidator,ye.MaxLengthValidator,ye.MinLengthValidator,ye.PatternValidator,ye.SelectControlValueAccessor,ye.NgSelectOption,ye["\u0275angular_packages_forms_forms_x"]],pipes:[ri,i.f],styles:[""]}),e})();class Xi{constructor(e=0){this.offset=0,this.reference_unit=1}}const Yi=function(){return{value:"GPIO"}};let Ji=(()=>{class e{constructor(){this.label="GPIO",this.field_id="w1gpio",this.fieldChanged=new r.EventEmitter,this.required=!1}onChange(e){this.fieldChanged.emit(this.field)}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["settings-gpio-field"]],inputs:{label:"label",field_id:"field_id",field:"field",required:"required",disabled_pins:"disabled_pins"},outputs:{fieldChanged:"fieldChanged"},decls:57,vars:62,consts:[[3,"for"],[1,"custom-select",3,"ngModel","id","name","required","ngModelChange"],[3,"ngValue","translate"],["disabled","",3,"value"],[3,"value","disabled"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"label",0),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](2,"select",1),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.field=e})("ngModelChange",function(e){return t.onChange(e)}),r["\u0275\u0275element"](3,"option",2),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementStart"](5,"option",3),r["\u0275\u0275text"](6,"GPIO2 (reserved I2C SDI/SDA)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"option",3),r["\u0275\u0275text"](8,"GPIO3 (reserved I2C SCL/SCK)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"option",4),r["\u0275\u0275text"](10,"GPIO4 (reserved WittyPi)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](11,"option",4),r["\u0275\u0275text"](12,"GPIO5 (Default: HX711_1 DT)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"option",4),r["\u0275\u0275text"](14,"GPIO6 (Default: HX711_1 SCK)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](15,"option",4),r["\u0275\u0275text"](16,"GPIO7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"option",4),r["\u0275\u0275text"](18,"GPIO8"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"option",4),r["\u0275\u0275text"](20,"GPIO9 (Default: DHT22 / DS18b20 3.3V source)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"option",4),r["\u0275\u0275text"](22,"GPIO10"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](23,"option",4),r["\u0275\u0275text"](24,"GPIO11 (Default: DS18b20 1-Wire)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](25,"option",4),r["\u0275\u0275text"](26,"GPIO12 (Default: HX711_2 DT)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](27,"option",4),r["\u0275\u0275text"](28,"GPIO13 (Default: HX711_2 SCK)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](29,"option",4),r["\u0275\u0275text"](30,"GPIO14 (reserved UART TX)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](31,"option",4),r["\u0275\u0275text"](32,"GPIO15 (reserved UART RX)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](33,"option",4),r["\u0275\u0275text"](34,"GPIO16 (Default: Button)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](35,"option",4),r["\u0275\u0275text"](36,"GPIO17 (reserved WittyPi)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](37,"option",4),r["\u0275\u0275text"](38,"GPIO18 (Default: MAX CLK)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](39,"option",4),r["\u0275\u0275text"](40,"GPIO19 (Default: MAX MISO)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](41,"option",4),r["\u0275\u0275text"](42,"GPIO20"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](43,"option",4),r["\u0275\u0275text"](44,"GPIO21 (Default: LED)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](45,"option",4),r["\u0275\u0275text"](46,"GPIO22 (Default: HX711_3 SCK)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](47,"option",4),r["\u0275\u0275text"](48,"GPIO23 (Default: HX711_4 DT)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](49,"option",4),r["\u0275\u0275text"](50,"GPIO24 (Default: HX711_4 SCK)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](51,"option",4),r["\u0275\u0275text"](52,"GPIO25 (Default: HX711_5 DT)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](53,"option",4),r["\u0275\u0275text"](54,"GPIO26 (Default: HX711_5 SCK / MAX CS)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](55,"option",4),r["\u0275\u0275text"](56,"GPIO27 (Default: HX711_3 DT / MAX CS2)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275propertyInterpolate"]("for",t.field_id),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](t.label),r["\u0275\u0275advance"](1),r["\u0275\u0275propertyInterpolate"]("id",t.field_id),r["\u0275\u0275propertyInterpolate"]("name",t.field_id),r["\u0275\u0275property"]("ngModel",t.field)("required",t.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](4,58,"buttons.select",r["\u0275\u0275pureFunction0"](61,Yi))),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",2),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",3),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",4)("disabled",t.disabled_pins.includes(4)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",5)("disabled",t.disabled_pins.includes(5)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",6)("disabled",t.disabled_pins.includes(6)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",7)("disabled",t.disabled_pins.includes(7)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",8)("disabled",t.disabled_pins.includes(8)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",9)("disabled",t.disabled_pins.includes(9)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",10)("disabled",t.disabled_pins.includes(10)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",11)("disabled",t.disabled_pins.includes(11)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",12)("disabled",t.disabled_pins.includes(12)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",13)("disabled",t.disabled_pins.includes(13)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",14)("disabled",t.disabled_pins.includes(14)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",15)("disabled",t.disabled_pins.includes(15)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",16)("disabled",t.disabled_pins.includes(16)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",17)("disabled",t.disabled_pins.includes(17)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",18)("disabled",t.disabled_pins.includes(18)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",19)("disabled",t.disabled_pins.includes(19)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",20)("disabled",t.disabled_pins.includes(20)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",21)("disabled",t.disabled_pins.includes(21)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",22)("disabled",t.disabled_pins.includes(22)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",23)("disabled",t.disabled_pins.includes(23)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",24)("disabled",t.disabled_pins.includes(24)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",25)("disabled",t.disabled_pins.includes(25)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",26)("disabled",t.disabled_pins.includes(26)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",27)("disabled",t.disabled_pins.includes(27)))},directives:[ye.SelectControlValueAccessor,ye.NgControlStatus,ye.NgModel,ye.RequiredValidator,ye.NgSelectOption,ye["\u0275angular_packages_forms_forms_x"],ni],pipes:[ri],styles:[".line[_ngcontent-%COMP%]{text-decoration:line-through}"]}),e})();function es(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"option",6),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit,n=r["\u0275\u0275nextContext"]().index;r["\u0275\u0275propertyInterpolate1"]("value","field",e+8*n,""),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate3"]("",r["\u0275\u0275pipeBind1"](2,4,"settings.thingspeak.field")," ",e," - Channel #",n+1,"")}}const ts=function(){return[1,2,3,4,5,6,7,8]};function ns(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"optgroup",4),r["\u0275\u0275template"](1,es,3,6,"option",5),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275propertyInterpolate2"]("label","ThingSpeak Channel #",t.index+1," ",t.$implicit.name,""),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",r["\u0275\u0275pureFunction0"](3,ts)))}const rs=function(e){return{value:e}};let is=(()=>{class e{constructor(){this.ts_field_id="ts_field",this.ts_fieldChanged=new r.EventEmitter,this.required=!1}onChange(e){this.ts_fieldChanged.emit(this.ts_field),console.log("Selected Field: "+this.ts_field)}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["settings-ts-field"]],inputs:{label:"label",ts_field_id:"ts_field_id",ts_field:"ts_field",required:"required",channels:"channels"},outputs:{ts_fieldChanged:"ts_fieldChanged"},decls:7,vars:16,consts:[[3,"for"],[1,"custom-select",3,"ngModel","id","name","required","ngModelChange"],[3,"ngValue","translate"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"label",0),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](2,"select",1),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.ts_field=e})("ngModelChange",function(e){return t.onChange(e)}),r["\u0275\u0275element"](3,"option",2),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275template"](6,ns,2,4,"optgroup",3),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275propertyInterpolate"]("for",t.ts_field_id),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](t.label),r["\u0275\u0275advance"](1),r["\u0275\u0275propertyInterpolate"]("id",t.ts_field_id),r["\u0275\u0275propertyInterpolate"]("name",t.ts_field_id),r["\u0275\u0275property"]("ngModel",t.ts_field)("required",t.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](4,9,"buttons.select",r["\u0275\u0275pureFunction1"](14,rs,r["\u0275\u0275pipeBind1"](5,12,"settings.thingspeak.field")))),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngForOf",t.channels))},directives:[ye.SelectControlValueAccessor,ye.NgControlStatus,ye.NgModel,ye.RequiredValidator,ye.NgSelectOption,ye["\u0275angular_packages_forms_forms_x"],ni,i.k],pipes:[ri],styles:[""]}),e})();function ss(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275element"](1,"div",14),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementStart"](3,"button",15),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().next_step()}),r["\u0275\u0275text"](4),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](2,2,"settings.sensors.calibration.step0"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate1"](" \u2b46 ",r["\u0275\u0275pipeBind1"](5,4,"settings.sensors.calibration.btnNext")," "))}function os(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275element"](1,"div",14),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementStart"](3,"button",16),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().next_step()}),r["\u0275\u0275text"](4),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](2,3,"settings.sensors.calibration.step1"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("disabled",e.isLoading),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" \u2b46 ",r["\u0275\u0275pipeBind1"](5,5,"settings.sensors.calibration.btnNext")," ")}}function as(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275element"](1,"div",14),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementStart"](3,"p"),r["\u0275\u0275elementStart"](4,"input",17),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().calibration_weight=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"button",16),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().next_step()}),r["\u0275\u0275text"](7),r["\u0275\u0275pipe"](8,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](2,7,"settings.sensors.calibration.step2"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](5,9,"settings.sensors.calibration.weightPlaceholder")),r["\u0275\u0275property"]("min",0)("max",3e5)("ngModel",e.calibration_weight),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("disabled",e.isLoading),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" \u2b46 ",r["\u0275\u0275pipeBind1"](8,11,"settings.sensors.calibration.btnNext")," ")}}function ls(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275element"](1,"div",14),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementStart"](3,"button",15),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().next_step()}),r["\u0275\u0275text"](4),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](2,2,"settings.sensors.calibration.step3"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate1"](" \u2b46 ",r["\u0275\u0275pipeBind1"](5,4,"settings.sensors.calibration.btnFinish")," "))}function us(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275element"](1,"br"),r["\u0275\u0275text"](2,"Output: "),r["\u0275\u0275elementStart"](3,"pre",18),r["\u0275\u0275text"](4),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate"](e.result)}}function cs(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"button",11),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().step_back()}),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("disabled",e.isLoading),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"]("\u2b45 ",r["\u0275\u0275pipeBind1"](2,2,"settings.sensors.calibration.btnBack"),"")}}let ds=(()=>{class e{constructor(e){this.appService=e,this.isLoading=!1,this.step=0,this.calibration_weight=5e3,this.weight1=0,this.weight2=0,this.offset=0,this.reference_unit=1,this.calibrationChange=new r.EventEmitter,this.closeModal=new r.EventEmitter}ngOnInit(){}round(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}step_back(){this.step--,this.step<=0&&(this.step=0),this.result=null}next_step(){this.result=null,this.step<=0?this.step++:1===this.step||2===this.step?this.measure_weight():this.step>=3&&(this.finish_calibration(),this.step++),this.step>3&&(this.step=0)}measure_weight(){this.isLoading=!0,this.result=null,this.appService.getWeight(this.sensor).timeout(12e4).finally(()=>{this.isLoading=!1,this.step++}).subscribe(e=>{this.result=e;let t=parseFloat(e);t=isNaN(t)?0:t,1===this.step?(this.weight1=t,this.offset=this.round(this.weight1,0)):2===this.step&&(this.weight2=t,this.reference_unit=this.round((this.weight2-this.offset)/this.calibration_weight,4)),this.reference_unit||(this.reference_unit=1),this.reference_unit<0&&(this.reference_unit=-1*this.reference_unit),this.offset||(this.offset=0),console.log("weight:"+t+" calibration_weight:"+this.calibration_weight+" offset:"+this.offset+" reference_unit:"+this.reference_unit)},e=>{console.error(e)})}finish_calibration(){this.calibrationChange.emit({offset:this.offset,reference_unit:this.reference_unit}),this.close_modal()}close_modal(){this.step=0,this.closeModal.emit(!1)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["sensors-weight-calibration"]],inputs:{sensor:"sensor"},outputs:{calibrationChange:"calibrationChange",closeModal:"closeModal"},decls:24,vars:15,consts:[["tabindex","0","role","dialog",1,"modal","fade","show",2,"display","block"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[4,"ngIf"],[1,"modal-footer"],["type","button","class","btn btn-sm btn-primary",3,"disabled","click",4,"ngIf"],["type","button",1,"btn","btn-sm","btn-primary",3,"disabled","click"],["type","button","data-dismiss","modal",1,"btn","btn-sm","btn-secondary",3,"click"],[1,"modal-backdrop","fade","show"],[3,"innerHTML"],[1,"btn","btn-primary",3,"click"],[1,"btn","btn-primary",3,"disabled","click"],["type","number","step","1","required","",1,"form-control",2,"max-width","200px",3,"min","max","ngModel","placeholder","ngModelChange"],[1,"pre-scrollable"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275elementStart"](2,"div",2),r["\u0275\u0275elementStart"](3,"div",3),r["\u0275\u0275elementStart"](4,"h5",4),r["\u0275\u0275text"](5),r["\u0275\u0275pipe"](6,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"button",5),r["\u0275\u0275listener"]("click",function(){return t.close_modal()}),r["\u0275\u0275elementStart"](8,"span",6),r["\u0275\u0275text"](9,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",7),r["\u0275\u0275template"](11,ss,6,6,"div",8),r["\u0275\u0275template"](12,os,6,7,"div",8),r["\u0275\u0275template"](13,as,9,13,"div",8),r["\u0275\u0275template"](14,ls,6,6,"div",8),r["\u0275\u0275template"](15,us,5,1,"ng-container",8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"div",9),r["\u0275\u0275template"](17,cs,3,4,"button",10),r["\u0275\u0275elementStart"](18,"button",11),r["\u0275\u0275listener"]("click",function(){return t.next_step()}),r["\u0275\u0275text"](19),r["\u0275\u0275pipe"](20,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"button",12),r["\u0275\u0275listener"]("click",function(){return t.close_modal()}),r["\u0275\u0275text"](22,"Close"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](23,"div",13)),2&e&&(r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](6,11,"settings.sensors.calibration.title")),r["\u0275\u0275advance"](5),r["\u0275\u0275classProp"]("spinner",t.isLoading),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",0===t.step),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",1===t.step),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",2===t.step),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",3===t.step),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.result),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",t.step>0),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("disabled",t.isLoading),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"]("",r["\u0275\u0275pipeBind1"](20,13,"settings.sensors.calibration.btnNext")," \u2b46"))},directives:[i.l,ye.NumberValueAccessor,ye.DefaultValueAccessor,ye.RequiredValidator,Vr.MinValidator,Vr.MaxValidator,ye.NgControlStatus,ye.NgModel],pipes:[ri],styles:[""]}),e})();function hs(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"option",32),r["\u0275\u0275text"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=t.$implicit;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",e),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e)}}const ps=function(e,t,n){return[e,t,n]};function fs(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"settings-gpio-field",12),r["\u0275\u0275listener"]("fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).$implicit.pin=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2).$implicit,t=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("label","3.3V GPIO")("field_id","ds18b20_3Vpin")("field",e.pin)("required",!1)("disabled_pins",r["\u0275\u0275pureFunction3"](5,ps,t.settings.w1gpio,t.settings.led_pin,t.settings.button_pin))}}function gs(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",33),r["\u0275\u0275elementStart"](1,"a",6),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",7),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.deviceId"),r["\u0275\u0275sanitizeHtml"]))}function ms(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",34),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275element"](3,"br"),r["\u0275\u0275text"](4),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementStart"](6,"a",35),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](3).getTemperatureSensors()}),r["\u0275\u0275text"](7),r["\u0275\u0275pipe"](8,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](9),r["\u0275\u0275pipe"](10,"translate"),r["\u0275\u0275elementEnd"]()}2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](2,4,"alerts.noTempSensorFound"),""),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](5,6,"settings.sensors.checkWires")," "),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](8,8,"buttons.refresh")),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](10,10,"settings.sensors.checkWiresSuffix")," "))}const vs=function(e){return{"my-bg":e}},ys=function(){return{value:"Device-ID"}},bs=function(e,t){return[e,t]};function _s(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",13),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",18),r["\u0275\u0275elementStart"](3,"div",19),r["\u0275\u0275elementStart"](4,"label",20),r["\u0275\u0275text"](5,"Sensor Device-ID"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"select",21),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.device_id=t}),r["\u0275\u0275element"](7,"option",15),r["\u0275\u0275pipe"](8,"translate"),r["\u0275\u0275template"](9,hs,3,2,"ng-container",2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",19),r["\u0275\u0275elementStart"](11,"settings-ts-field",22),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field=t}),r["\u0275\u0275pipe"](12,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"div",18),r["\u0275\u0275elementStart"](14,"div",19),r["\u0275\u0275elementStart"](15,"settings-gpio-field",12),r["\u0275\u0275listener"]("fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).settings.w1gpio=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"div",19),r["\u0275\u0275elementStart"](17,"label",23),r["\u0275\u0275text"](18),r["\u0275\u0275pipe"](19,"translate"),r["\u0275\u0275pipe"](20,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"input",24),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.offset=t}),r["\u0275\u0275pipe"](22,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](23,"div",18),r["\u0275\u0275elementStart"](24,"div",19),r["\u0275\u0275elementStart"](25,"div",25),r["\u0275\u0275elementStart"](26,"input",26),r["\u0275\u0275listener"]("change",function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]().$implicit,i=r["\u0275\u0275nextContext"]();return n.pin=i.changeCheck(t)}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](27,"label",27),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](28,fs,2,9,"ng-container",28),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](29,"div",18),r["\u0275\u0275elementStart"](30,"div",29),r["\u0275\u0275template"](31,gs,5,3,"div",30),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](32,"div",18),r["\u0275\u0275elementStart"](33,"div",29),r["\u0275\u0275template"](34,ms,11,12,"div",31),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](),t=e.index,n=e.$implicit,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](33,vs,t%2==0)),r["\u0275\u0275advance"](6),r["\u0275\u0275property"]("ngModel",n.device_id),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](8,22,"buttons.select",r["\u0275\u0275pureFunction0"](35,ys))),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngForOf",i.temperatureSensors),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](12,25,"settings.thingspeak.field"))("ts_field",n.ts_field)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","1-WIRE GPIO")("field_id","w1gpio")("field",i.settings.w1gpio)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction2"](36,bs,i.settings.led_pin,i.settings.button_pin)),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate2"]("",r["\u0275\u0275pipeBind1"](19,27,"settings.sensors.temperature")," ",r["\u0275\u0275pipeBind1"](20,29,"settings.sensors.offset")," [\xb0C]"),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](22,31,"settings.sensors.offset")),r["\u0275\u0275property"]("ngModel",n.offset),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("checked",i.isChecked(n)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.sensors.use3V"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",i.isChecked(n)),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",i.temperatureSensorWasFiltered&&0==i.temperatureSensors.length),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",0==i.temperatureSensors.length)}}const ws=function(){return{value:"I2C-Address"}};function xs(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",13),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",18),r["\u0275\u0275elementStart"](3,"div",19),r["\u0275\u0275elementStart"](4,"settings-ts-field",36),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",19),r["\u0275\u0275elementStart"](7,"settings-ts-field",36),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_humidity=t}),r["\u0275\u0275pipe"](8,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"div",18),r["\u0275\u0275elementStart"](10,"div",19),r["\u0275\u0275elementStart"](11,"settings-ts-field",36),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_air_pressure=t}),r["\u0275\u0275pipe"](12,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"div",19),r["\u0275\u0275elementStart"](14,"settings-ts-field",36),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_air_quality=t}),r["\u0275\u0275pipe"](15,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"div",18),r["\u0275\u0275elementStart"](17,"div",19),r["\u0275\u0275elementStart"](18,"label",37),r["\u0275\u0275text"](19),r["\u0275\u0275pipe"](20,"translate"),r["\u0275\u0275pipe"](21,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](22,"input",38),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.offset=t}),r["\u0275\u0275pipe"](23,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](24,"div",19),r["\u0275\u0275element"](25,"label",39),r["\u0275\u0275pipe"](26,"translate"),r["\u0275\u0275elementStart"](27,"select",40),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.i2c_addr=t}),r["\u0275\u0275element"](28,"option",15),r["\u0275\u0275pipe"](29,"translate"),r["\u0275\u0275elementStart"](30,"option",32),r["\u0275\u0275text"](31,"0x76"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](32,"option",32),r["\u0275\u0275text"](33,"0x77"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](),t=e.index,n=e.$implicit,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](46,vs,t%2==0)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](5,27,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",n.ts_field_temperature)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](8,29,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",n.ts_field_humidity)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](12,31,"settings.sensors.pressure"))("ts_field_id","ts_field_air_pressure")("ts_field",n.ts_field_air_pressure)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](15,33,"settings.sensors.quality"))("ts_field_id","ts_field_air_quality")("ts_field",n.ts_field_air_quality)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate2"]("",r["\u0275\u0275pipeBind1"](20,35,"settings.sensors.temperature")," ",r["\u0275\u0275pipeBind1"](21,37,"settings.sensors.offset")," [\xb0C]"),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](23,39,"settings.sensors.offset")),r["\u0275\u0275property"]("ngModel",n.offset),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](26,41,"settings.sensors.i2c_addr"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",n.i2c_addr),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](29,43,"buttons.select",r["\u0275\u0275pureFunction0"](48,ws))),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue","0x76"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue","0x77")}}function Cs(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"sensors-weight-calibration",60),r["\u0275\u0275listener"]("closeModal",function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"](2).index;return r["\u0275\u0275nextContext"]().showCalibration[n]=t})("calibrationChange",function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"](2).$implicit;return n.offset=t.offset,n.reference_unit=t.reference_unit}),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2).$implicit;r["\u0275\u0275property"]("sensor",e)}}const $s=function(e){return{field:e}};function Ss(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.required",r["\u0275\u0275pureFunction1"](6,$s,r["\u0275\u0275pipeBind1"](3,4,"settings.sensors.scale")))," "))}function Es(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.length",r["\u0275\u0275pureFunction1"](6,$s,r["\u0275\u0275pipeBind1"](3,4,"settings.sensors.scale")))," "))}function Os(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",61),r["\u0275\u0275template"](1,Ss,4,8,"div",28),r["\u0275\u0275template"](2,Es,4,8,"div",28),r["\u0275\u0275elementEnd"]()),2&e){r["\u0275\u0275nextContext"]();const e=r["\u0275\u0275reference"](40);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",(null==e?null:e.errors.min)||(null==e?null:e.errors.max))}}function Is(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",10),r["\u0275\u0275elementStart"](1,"div",18),r["\u0275\u0275elementStart"](2,"div",19),r["\u0275\u0275element"](3,"label",62),r["\u0275\u0275elementStart"](4,"input",63),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).$implicit.compensation_value=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",19),r["\u0275\u0275element"](7,"label",64),r["\u0275\u0275elementStart"](8,"input",65),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).$implicit.compensation_temp=t}),r["\u0275\u0275pipe"](9,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",18),r["\u0275\u0275elementStart"](11,"div",66),r["\u0275\u0275elementStart"](12,"settings-ts-field",67),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).$implicit.ts_field_temperature=t}),r["\u0275\u0275pipe"](13,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2).$implicit,t=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.sensors.compensationValue"),r["\u0275\u0275advance"](1),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](5,11,"settings.sensors.compensationValuePlaceholder")),r["\u0275\u0275property"]("ngModel",e.compensation_value),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.sensors.compensationTemp"),r["\u0275\u0275advance"](1),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](9,13,"settings.sensors.compensationTempPlaceholder")),r["\u0275\u0275property"]("ngModel",e.compensation_temp),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label",r["\u0275\u0275pipeBind1"](13,15,"settings.sensors.compensationSelectTemp"))("ts_field_id","ts_field_temperature")("ts_field",e.ts_field_temperature)("channels",t.settings.ts_channels)("required",!0)}}const ks=function(){return{value:"Channel"}};function Ts(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",13),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",18),r["\u0275\u0275elementStart"](3,"div",19),r["\u0275\u0275elementStart"](4,"settings-gpio-field",12),r["\u0275\u0275listener"]("fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.pin_dt=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"div",19),r["\u0275\u0275elementStart"](6,"settings-gpio-field",12),r["\u0275\u0275listener"]("fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.pin_sck=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"div",18),r["\u0275\u0275elementStart"](8,"div",19),r["\u0275\u0275elementStart"](9,"label",41),r["\u0275\u0275text"](10,"HX711 Channel"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](11,"select",42),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.channel=t}),r["\u0275\u0275element"](12,"option",15),r["\u0275\u0275pipe"](13,"translate"),r["\u0275\u0275elementStart"](14,"option",32),r["\u0275\u0275text"](15,"Channel A"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"option",32),r["\u0275\u0275text"](17,"Channel B"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](18,"div",19),r["\u0275\u0275elementStart"](19,"settings-ts-field",22),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field=t}),r["\u0275\u0275pipe"](20,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"div",18),r["\u0275\u0275elementStart"](22,"div",43),r["\u0275\u0275elementStart"](23,"button",44),r["\u0275\u0275listener"]("click",function(){r["\u0275\u0275restoreView"](e);const t=r["\u0275\u0275nextContext"]().index;return r["\u0275\u0275nextContext"]().showCalibration[t]=!0}),r["\u0275\u0275text"](24),r["\u0275\u0275pipe"](25,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](26,Cs,1,1,"sensors-weight-calibration",45),r["\u0275\u0275elementStart"](27,"div",19),r["\u0275\u0275elementStart"](28,"label",46),r["\u0275\u0275text"](29),r["\u0275\u0275pipe"](30,"translate"),r["\u0275\u0275pipe"](31,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](32,"input",47),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.offset=t}),r["\u0275\u0275pipe"](33,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](34,"div",19),r["\u0275\u0275elementStart"](35,"label",48),r["\u0275\u0275text"](36),r["\u0275\u0275pipe"](37,"translate"),r["\u0275\u0275pipe"](38,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](39,"input",49,50),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.reference_unit=t}),r["\u0275\u0275pipe"](41,"number"),r["\u0275\u0275pipe"](42,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](43,Os,3,2,"div",51),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](44,"div",18),r["\u0275\u0275elementStart"](45,"div",52),r["\u0275\u0275element"](46,"div",53),r["\u0275\u0275pipe"](47,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](48,"div",52),r["\u0275\u0275element"](49,"div",53),r["\u0275\u0275pipe"](50,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](51,"div",18),r["\u0275\u0275elementStart"](52,"div",29),r["\u0275\u0275elementStart"](53,"div",25),r["\u0275\u0275elementStart"](54,"input",54),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.invert=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](55,"label",55),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](56,"div",18),r["\u0275\u0275elementStart"](57,"div",29),r["\u0275\u0275elementStart"](58,"div",56),r["\u0275\u0275elementStart"](59,"input",57),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.compensation=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](60,"label",58),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](61,"div",29),r["\u0275\u0275template"](62,Is,14,17,"div",59),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275reference"](40),t=r["\u0275\u0275nextContext"](),n=t.index,i=t.$implicit,s=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](66,vs,n%2==0)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","GPIO DT")("field_id","pin_dt")("field",i.pin_dt)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction3"](68,ps,s.settings.led_pin,s.settings.button_pin,s.settings.w1gpio)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("label","GPIO SCK")("field_id","pin_sck")("field",i.pin_sck)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction3"](72,ps,s.settings.led_pin,s.settings.button_pin,s.settings.w1gpio)),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("ngModel",i.channel),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](13,40,"buttons.select",r["\u0275\u0275pureFunction0"](76,ks))),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue","A"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue","B"),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](20,43,"settings.thingspeak.field"))("ts_field",i.ts_field)("channels",s.settings.ts_channels),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("disabled",!(i.pin_dt&&i.pin_sck&&i.channel)),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](25,45,"settings.sensors.calibration.guidedTour")," "),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",!0===s.showCalibration[n]),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate2"]("",r["\u0275\u0275pipeBind1"](30,47,"settings.sensors.weightcell")," ",r["\u0275\u0275pipeBind1"](31,49,"settings.sensors.offset"),""),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](33,51,"settings.sensors.offset")),r["\u0275\u0275property"]("ngModel",i.offset),r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate2"]("",r["\u0275\u0275pipeBind1"](37,53,"settings.sensors.weightcell")," ",r["\u0275\u0275pipeBind1"](38,55,"settings.sensors.scale"),""),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](42,60,"settings.sensors.scale")),r["\u0275\u0275property"]("ngModel",r["\u0275\u0275pipeBind2"](41,57,i.reference_unit,"1.0-4"))("min",1e-4)("max",999.9999),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",e.invalid&&(e.dirty||e.touched)),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](47,62,"alerts.hx711.offset"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](50,64,"alerts.hx711.scale"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("ngModel",i.invert),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.sensors.invert"),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngModel",i.compensation),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.sensors.enableCompensation"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",i.compensation)}}const js=function(){return{value:"DHT"}};function Vs(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",13),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",18),r["\u0275\u0275elementStart"](3,"div",19),r["\u0275\u0275elementStart"](4,"settings-ts-field",36),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",19),r["\u0275\u0275elementStart"](7,"settings-ts-field",36),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_humidity=t}),r["\u0275\u0275pipe"](8,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"div",18),r["\u0275\u0275elementStart"](10,"div",19),r["\u0275\u0275elementStart"](11,"settings-gpio-field",12),r["\u0275\u0275listener"]("fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.pin=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](12,"div",19),r["\u0275\u0275element"](13,"label",68),r["\u0275\u0275elementStart"](14,"select",69),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.dht_type=t}),r["\u0275\u0275element"](15,"option",15),r["\u0275\u0275pipe"](16,"translate"),r["\u0275\u0275elementStart"](17,"option",32),r["\u0275\u0275text"](18,"DHT11"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"option",32),r["\u0275\u0275text"](20,"DHT22"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"option",32),r["\u0275\u0275text"](22,"AM2302"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](23,"div",18),r["\u0275\u0275elementStart"](24,"div",19),r["\u0275\u0275elementStart"](25,"label",70),r["\u0275\u0275text"](26),r["\u0275\u0275pipe"](27,"translate"),r["\u0275\u0275pipe"](28,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](29,"input",71),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.offset=t}),r["\u0275\u0275pipe"](30,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](),t=e.index,n=e.$implicit,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](38,vs,t%2==0)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](5,25,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",n.ts_field_temperature)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](8,27,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",n.ts_field_humidity)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","GPIO")("field_id","pin")("field",n.pin)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction3"](40,ps,i.settings.led_pin,i.settings.button_pin,i.settings.w1gpio)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.sensors.selectType"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",n.dht_type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](16,29,"buttons.select",r["\u0275\u0275pureFunction0"](44,js))),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",11),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",22),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",2302),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate2"]("",r["\u0275\u0275pipeBind1"](27,32,"settings.sensors.temperature")," ",r["\u0275\u0275pipeBind1"](28,34,"settings.sensors.offset")," [\xb0C]"),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](30,36,"settings.sensors.offset")),r["\u0275\u0275property"]("ngModel",n.offset)}}const Ps=function(){return{value:"MAX"}};function Ms(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",13),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",18),r["\u0275\u0275elementStart"](3,"div",19),r["\u0275\u0275elementStart"](4,"settings-gpio-field",12),r["\u0275\u0275listener"]("fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.pin_cs=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"div",19),r["\u0275\u0275elementStart"](6,"settings-gpio-field",12),r["\u0275\u0275listener"]("fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.pin_clock=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"div",18),r["\u0275\u0275elementStart"](8,"div",19),r["\u0275\u0275elementStart"](9,"settings-gpio-field",12),r["\u0275\u0275listener"]("fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.pin=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",19),r["\u0275\u0275element"](11,"label",68),r["\u0275\u0275elementStart"](12,"select",72),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.max_type=t}),r["\u0275\u0275element"](13,"option",15),r["\u0275\u0275pipe"](14,"translate"),r["\u0275\u0275elementStart"](15,"option",32),r["\u0275\u0275text"](16,"MAX6675"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"option",32),r["\u0275\u0275text"](18,"MAX31855"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"div",18),r["\u0275\u0275elementStart"](20,"div",19),r["\u0275\u0275elementStart"](21,"label",73),r["\u0275\u0275text"](22),r["\u0275\u0275pipe"](23,"translate"),r["\u0275\u0275pipe"](24,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](25,"input",74),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.offset=t}),r["\u0275\u0275pipe"](26,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](27,"div",19),r["\u0275\u0275elementStart"](28,"settings-ts-field",36),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field=t}),r["\u0275\u0275pipe"](29,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](),t=e.index,n=e.$implicit,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](41,vs,t%2==0)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","Chip-Select (CS)-GPIO")("field_id","pin_cs")("field",n.pin_cs)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction3"](43,ps,i.settings.led_pin,i.settings.button_pin,i.settings.w1gpio)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("label","Clock (CLK)-GPIO")("field_id","pin_clock")("field",n.pin_clock)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction3"](47,ps,i.settings.led_pin,i.settings.button_pin,i.settings.w1gpio)),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","Daten (MISO)-GPIO")("field_id","pin_miso")("field",n.pin)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction3"](51,ps,i.settings.led_pin,i.settings.button_pin,i.settings.w1gpio)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.sensors.selectType"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",n.max_type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](14,30,"buttons.select",r["\u0275\u0275pureFunction0"](55,Ps))),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",6675),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",31855),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate2"]("",r["\u0275\u0275pipeBind1"](23,33,"settings.sensors.temperature")," ",r["\u0275\u0275pipeBind1"](24,35,"settings.sensors.offset")," [\xb0C]"),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](26,37,"settings.sensors.offset")),r["\u0275\u0275property"]("ngModel",n.offset),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](29,39,"settings.thingspeak.field"))("ts_field_id","ts_field")("ts_field",n.ts_field)("channels",i.settings.ts_channels)}}function As(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",13),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",18),r["\u0275\u0275elementStart"](3,"div",19),r["\u0275\u0275elementStart"](4,"settings-ts-field",36),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",19),r["\u0275\u0275elementStart"](7,"settings-ts-field",36),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_humidity=t}),r["\u0275\u0275pipe"](8,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"div",18),r["\u0275\u0275elementStart"](10,"div",19),r["\u0275\u0275elementStart"](11,"settings-ts-field",36),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_air_pressure=t}),r["\u0275\u0275pipe"](12,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"div",18),r["\u0275\u0275elementStart"](14,"div",19),r["\u0275\u0275elementStart"](15,"label",75),r["\u0275\u0275text"](16),r["\u0275\u0275pipe"](17,"translate"),r["\u0275\u0275pipe"](18,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"input",76),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.offset=t}),r["\u0275\u0275pipe"](20,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"div",19),r["\u0275\u0275element"](22,"label",39),r["\u0275\u0275pipe"](23,"translate"),r["\u0275\u0275elementStart"](24,"select",40),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.i2c_addr=t}),r["\u0275\u0275element"](25,"option",15),r["\u0275\u0275pipe"](26,"translate"),r["\u0275\u0275elementStart"](27,"option",32),r["\u0275\u0275text"](28,"0x76"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](29,"option",32),r["\u0275\u0275text"](30,"0x77"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](),t=e.index,n=e.$implicit,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](40,vs,t%2==0)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](5,23,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",n.ts_field_temperature)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](8,25,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",n.ts_field_humidity)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](12,27,"settings.sensors.pressure"))("ts_field_id","ts_field_air_pressure")("ts_field",n.ts_field_air_pressure)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate2"]("",r["\u0275\u0275pipeBind1"](17,29,"settings.sensors.temperature")," ",r["\u0275\u0275pipeBind1"](18,31,"settings.sensors.offset")," [\xb0C]"),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](20,33,"settings.sensors.offset")),r["\u0275\u0275property"]("ngModel",n.offset),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](23,35,"settings.sensors.i2c_addr"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",n.i2c_addr),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](26,37,"buttons.select",r["\u0275\u0275pureFunction0"](42,ws))),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue","0x76"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue","0x77")}}const Ns=function(){return{value:"VCC"}};function Ds(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"select",81),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).$implicit.I2CVoltage=t}),r["\u0275\u0275element"](2,"option",79),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementStart"](4,"option",32),r["\u0275\u0275text"](5,"Max. 16.5V 3.3V\xd7(30k\u2126\xf77.5k\u2126+1) (default)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"option",32),r["\u0275\u0275text"](7,"Max. 25V 5V\xd7(30k\u2126\xf77.5k\u2126+1)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"option",32),r["\u0275\u0275text"](9,"Max. 29.7V 3.3V\xd7(40k\u2126\xf75k\u2126+1)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"option",82),r["\u0275\u0275elementStart"](11,"em"),r["\u0275\u0275text"](12),r["\u0275\u0275pipe"](13,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2).$implicit;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",e.I2CVoltage),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](3,8,"buttons.select",r["\u0275\u0275pureFunction0"](13,Ns))),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",16.5),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",25),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",29.7),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",null),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](13,11,"settings.sensors.customValue"))}}function Rs(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"div",83),r["\u0275\u0275elementStart"](2,"input",84),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).$implicit.I2CVoltage=t}),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"div",85),r["\u0275\u0275elementStart"](5,"button",86),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).$implicit.I2CVoltage=void 0}),r["\u0275\u0275text"](6,"X"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2).$implicit;r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](3,2,"settings.sensors.selectI2CVoltage_c")),r["\u0275\u0275property"]("ngModel",e.I2CVoltage)}}const Fs=function(){return{value:"PIN"}},Ls=function(){return[void 0,16.5,25,29.7]};function Bs(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",13),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",18),r["\u0275\u0275elementStart"](3,"div",19),r["\u0275\u0275elementStart"](4,"settings-ts-field",36),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",19),r["\u0275\u0275element"](7,"label",77),r["\u0275\u0275elementStart"](8,"select",78),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.pin=t}),r["\u0275\u0275element"](9,"option",79),r["\u0275\u0275pipe"](10,"translate"),r["\u0275\u0275elementStart"](11,"option",32),r["\u0275\u0275text"](12,"AIN0"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"option",32),r["\u0275\u0275text"](14,"AIN1"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](15,"option",32),r["\u0275\u0275text"](16,"AIN2 (default)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"option",32),r["\u0275\u0275text"](18,"AIN3"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"div",18),r["\u0275\u0275elementStart"](20,"div",19),r["\u0275\u0275element"](21,"label",80),r["\u0275\u0275template"](22,Ds,14,14,"ng-container",28),r["\u0275\u0275template"](23,Rs,7,4,"ng-container",28),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](),t=e.index,n=e.$implicit,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](21,vs,t%2==0)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](5,16,"settings.thingspeak.field"))("ts_field_id","ts_field")("ts_field",n.ts_field)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.sensors.selectPin"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",n.pin),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](10,18,"buttons.select",r["\u0275\u0275pureFunction0"](23,Fs))),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",0),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",1),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",2),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",3),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("translate","settings.sensors.selectI2CVoltage"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",r["\u0275\u0275pureFunction0"](24,Ls).includes(n.I2CVoltage)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!r["\u0275\u0275pureFunction0"](25,Ls).includes(n.I2CVoltage))}}function Hs(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",13),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",18),r["\u0275\u0275elementStart"](3,"div",19),r["\u0275\u0275elementStart"](4,"settings-ts-field",36),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",18),r["\u0275\u0275elementStart"](7,"div",19),r["\u0275\u0275elementStart"](8,"settings-ts-field",36),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=t}),r["\u0275\u0275pipe"](9,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",19),r["\u0275\u0275elementStart"](11,"settings-ts-field",36),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_air_pressure=t}),r["\u0275\u0275pipe"](12,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](),t=e.index,n=e.$implicit,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](19,vs,t%2==0)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](5,13,"settings.sensors.co2"))("ts_field_id","ts_field_temperature")("ts_field",n.ts_field)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](9,15,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",n.ts_field_temperature)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](12,17,"settings.sensors.pressure"))("ts_field_id","ts_field_air_pressure")("ts_field",n.ts_field_air_pressure)("channels",i.settings.ts_channels)}}function Us(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"tr",13),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275elementStart"](2,"div",18),r["\u0275\u0275elementStart"](3,"div",19),r["\u0275\u0275elementStart"](4,"settings-ts-field",36),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=t}),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",19),r["\u0275\u0275elementStart"](7,"settings-ts-field",36),r["\u0275\u0275listener"]("ts_fieldChanged",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().$implicit.ts_field_humidity=t}),r["\u0275\u0275pipe"](8,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](),t=e.index,n=e.$implicit,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](13,vs,t%2==0)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](5,9,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",n.ts_field_temperature)("channels",i.settings.ts_channels),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label","ThingSpeak "+r["\u0275\u0275pipeBind1"](8,11,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",n.ts_field_humidity)("channels",i.settings.ts_channels)}}const qs=function(e){return{value:e}};function Ws(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"tr",13),r["\u0275\u0275elementStart"](2,"td"),r["\u0275\u0275elementStart"](3,"select",14),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.$implicit.type=e}),r["\u0275\u0275element"](4,"option",15),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275pipe"](6,"translate"),r["\u0275\u0275elementStart"](7,"option",15),r["\u0275\u0275text"](8,"Temperatursensor (DS18b20)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"option",15),r["\u0275\u0275text"](10,"Temperatur+Luftfeuchtigkeit+Luftdruck+Qualit\xe4t (BME680)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](11,"option",15),r["\u0275\u0275text"](12,"Temperatur+Luftfeuchtigkeit+Luftdruck (BME280)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"option",15),r["\u0275\u0275text"](14,"Gewichtssensor (A/D: HX711)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](15,"option",15),r["\u0275\u0275text"](16,"Luftfeuchtigkeit und Temperatur (DHT)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"option",15),r["\u0275\u0275text"](18,"Temperatursensor (MAX6675/MAX31855)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"option",15),r["\u0275\u0275text"](20,"Voltmeter (A/D: PCF8591)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"option",15),r["\u0275\u0275text"](22,"CO2, Temp, Luftdruck (EE895)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](23,"option",15),r["\u0275\u0275text"](24,"Luftfeuchtigkeit und Temperatur (HDC1008)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](25,"option",15),r["\u0275\u0275text"](26,"Luftfeuchtigkeit und Temperatur (SHT31)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](27,"option",15),r["\u0275\u0275text"](28,"Luftfeuchtigkeit und Temperatur (AHT10)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](29,"td"),r["\u0275\u0275elementStart"](30,"button",16),r["\u0275\u0275listener"]("click",function(){r["\u0275\u0275restoreView"](e);const n=t.index;return r["\u0275\u0275nextContext"]().removeSensor(n)}),r["\u0275\u0275pipe"](31,"translate"),r["\u0275\u0275text"](32," \u232b "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](33,_s,35,39,"tr",17),r["\u0275\u0275template"](34,xs,34,49,"tr",17),r["\u0275\u0275template"](35,Ts,63,77,"tr",17),r["\u0275\u0275template"](36,Vs,31,45,"tr",17),r["\u0275\u0275template"](37,Ms,30,56,"tr",17),r["\u0275\u0275template"](38,As,31,43,"tr",17),r["\u0275\u0275template"](39,Bs,24,26,"tr",17),r["\u0275\u0275template"](40,Hs,13,21,"tr",17),r["\u0275\u0275template"](41,Us,9,15,"tr",17),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=t.$implicit,n=t.index;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](43,vs,n%2==0)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](5,36,"buttons.select",r["\u0275\u0275pureFunction1"](45,qs,r["\u0275\u0275pipeBind1"](6,39,"settings.sensors.sensor")))),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngValue",0)("translate","settings.sensors.sensor_0"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",1)("translate","settings.sensors.sensor_1"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",5)("translate","settings.sensors.sensor_5"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",2)("translate","settings.sensors.sensor_2"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",3)("translate","settings.sensors.sensor_3"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",4)("translate","settings.sensors.sensor_4"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",6)("translate","settings.sensors.sensor_6"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",7)("translate","settings.sensors.sensor_7"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",8)("translate","settings.sensors.sensor_8"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",9)("translate","settings.sensors.sensor_9"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",10)("translate","settings.sensors.sensor_10"),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("title",r["\u0275\u0275pipeBind1"](31,41,"buttons.remove")),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",0==e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",1==e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",2==e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",3==e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",4==e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",5==e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",6==e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",7==e.type),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",8==e.type||9==e.type||10==e.type)}}let zs=(()=>{class e{constructor(e){this.appService=e,this.temperatureSensors=[],this.temperatureSensorWasFiltered=!1,this.showCalibration=[],this.settingsChange=new r.EventEmitter}set settings(e){this.settingsChange.emit(e),this._settings=e}get settings(){return this._settings}ngOnInit(){this.getTemperatureSensors()}addSensor(){this.settings.sensors.push(new Xi)}removeSensor(e){this.settings.sensors.splice(e,1)}filterTemperatureSensors(e){const t=e.filter(function(e,t,n){return-1===e.indexOf("00000000")});return this.temperatureSensorWasFiltered=e.length!==t.length,t}getTemperatureSensors(){this.appService.getTemperatureSensors().subscribe(e=>{e&&(console.log("unfiltered",e),this.temperatureSensors=this.filterTemperatureSensors(e),console.log("filtered",this.temperatureSensors))},e=>{console.error(e)})}isChecked(e){return e.pin>0}changeCheck(e){return e.target.checked?9:0}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-sensors"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:31,vars:36,consts:[[1,"table","table-bordered","table-sm",2,"position","relative","overflow-x","hidden","overflow-y","auto"],["id","sensors"],[4,"ngFor","ngForOf"],["colspan","2"],[1,"btn","btn-primary",3,"title","click"],["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["data-toggle","collapse","href","#collapseSensor","role","button","aria-expanded","false","aria-controls","collapseSensor",1,"text-danger"],["id","collapseSensor",1,"collapse"],[1,"card","card-body"],[1,"form-group"],[3,"label","field_id","field","required","disabled_pins","fieldChanged"],[3,"ngClass"],["name","sensor-type","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue","translate"],[1,"btn","btn-danger","float-right",3,"title","click"],[3,"ngClass",4,"ngIf"],[1,"row"],[1,"form-group","col-12","col-sm-6"],["for","device_id"],["id","device_id","name","device_id","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"label","ts_field","channels","ts_fieldChanged"],["for","offset_ds18b20"],["type","number","step","0.1","id","offset_ds18b20","name","offset_ds18b20",1,"form-control",3,"ngModel","placeholder","ngModelChange"],[1,"form-group","form-check"],["type","checkbox","id","use_3V","name","use_3V",1,"form-check-input",3,"checked","change"],["for","use_3V",1,"form-check-label",3,"translate"],[4,"ngIf"],[1,"col-12"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-info",4,"ngIf"],[3,"ngValue"],["role","alert",1,"alert","alert-warning"],[1,"alert","alert-info"],[3,"routerLink","click"],[3,"label","ts_field_id","ts_field","channels","ts_fieldChanged"],["for","offset_bme680"],["type","number","step","0.1","id","offset_bme680","name","offset_bme680",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","i2c_addr",3,"innerHTML"],["id","i2c_addr","name","i2c_addr",1,"custom-select",3,"ngModel","ngModelChange"],["for","channel"],["name","channel","id","channel","required","",1,"custom-select",3,"ngModel","ngModelChange"],[1,"form-group","col-12"],[1,"btn","btn-sm","btn-outline-primary",2,"width","100%",3,"disabled","click"],["style","z-index:9999;position:absolute",3,"sensor","closeModal","calibrationChange",4,"ngIf"],["for","offset"],["type","number","step","1","id","offset","name","offset","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","reference_unit"],["type","number","step","0.0001","id","reference_unit","name","reference_unit","required","",1,"form-control",3,"ngModel","placeholder","min","max","ngModelChange"],["ref_unit","ngModel"],["class","alert alert-danger col-12","role","alert","style","margin-top:5px",4,"ngIf"],[1,"col-12","col-md-6"],[1,"alert","alert-info",3,"innerHTML"],["type","checkbox","name","invert","id","invert",1,"form-check-input",3,"ngModel","ngModelChange"],["for","invert",1,"form-check-label",3,"translate"],[1,"form-check"],["type","checkbox","id","compensation",1,"form-check-input",3,"ngModel","ngModelChange"],["for","compensation",1,"form-check-label",3,"translate"],["class","card card-body",4,"ngIf"],[2,"z-index","9999","position","absolute",3,"sensor","closeModal","calibrationChange"],["role","alert",1,"alert","alert-danger","col-12",2,"margin-top","5px"],["for","compensation_value",3,"translate"],["type","number","step","0.01","id","compensation_value","name","compensation_value","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","compensation_temp",3,"translate"],["type","number","step","0.01","id","compensation_temp","name","compensation_temp","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],[1,"col-12","col-sm-6"],[3,"label","ts_field_id","ts_field","channels","required","ts_fieldChanged"],["for","dht_type",3,"translate"],["id","dht_type","name","dht_type","required","",1,"custom-select",3,"ngModel","ngModelChange"],["for","offset_dht"],["type","number","step","0.1","id","offset_dht","name","offset_dht",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["id","max_type","name","max_type","required","",1,"custom-select",3,"ngModel","ngModelChange"],["for","offset_max"],["type","number","step","0.1","id","offset_max","name","offset",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","offset_bme280"],["type","number","step","0.1","id","offset_bme280","name","offset_bme280",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","pcf8591_pin",3,"translate"],["id","pcf8591_pin","name","pcf8591_pin","required","",1,"custom-select",3,"ngModel","ngModelChange"],["disabled","",3,"ngValue","translate"],["for","ic2_voltage",3,"translate"],["id","ic2_voltage","name","ic2_voltage","required","",1,"custom-select",3,"ngModel","ngModelChange"],[2,"font-style","italic",3,"ngValue"],[1,"input-group","mb-3"],["type","number","step","0.01","id","ic2_voltage_c","name","ic2_voltage_c",1,"form-control",3,"ngModel","placeholder","ngModelChange"],[1,"input-group-append"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"table",0),r["\u0275\u0275elementStart"](1,"tbody",1),r["\u0275\u0275template"](2,Ws,42,47,"ng-container",2),r["\u0275\u0275elementStart"](3,"tr"),r["\u0275\u0275elementStart"](4,"td",3),r["\u0275\u0275elementStart"](5,"button",4),r["\u0275\u0275listener"]("click",function(){return t.addSensor()}),r["\u0275\u0275pipe"](6,"translate"),r["\u0275\u0275text"](7),r["\u0275\u0275pipe"](8,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"div",5),r["\u0275\u0275elementStart"](10,"a",6),r["\u0275\u0275text"](11,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](12,"span",7),r["\u0275\u0275pipe"](13,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](14,"p"),r["\u0275\u0275elementStart"](15,"a",8),r["\u0275\u0275text"](16),r["\u0275\u0275pipe"](17,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](18,"div",9),r["\u0275\u0275elementStart"](19,"div",10),r["\u0275\u0275elementStart"](20,"div",11),r["\u0275\u0275elementStart"](21,"settings-gpio-field",12),r["\u0275\u0275listener"]("fieldChanged",function(e){return t.settings.led_pin=e}),r["\u0275\u0275pipe"](22,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](23,"div",11),r["\u0275\u0275elementStart"](24,"settings-gpio-field",12),r["\u0275\u0275listener"]("fieldChanged",function(e){return t.settings.button_pin=e}),r["\u0275\u0275pipe"](25,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](26,"div",5),r["\u0275\u0275elementStart"](27,"a",6),r["\u0275\u0275text"](28,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](29),r["\u0275\u0275pipe"](30,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngForOf",t.settings.sensors),r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate"]("title",r["\u0275\u0275pipeBind1"](6,16,"buttons.add")),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate1"](" + ",r["\u0275\u0275pipeBind1"](8,18,"settings.sensors.addSensor")," "),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](13,20,"alerts.gpio"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](17,22,"settings.sensors.advancedSettings")," "),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("label",r["\u0275\u0275pipeBind1"](22,24,"settings.sensors.ledPin"))("field_id","led_pin")("field",t.settings.led_pin)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction2"](30,bs,t.settings.button_pin,t.settings.w1gpio)),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label",r["\u0275\u0275pipeBind1"](25,26,"settings.sensors.buttonPin"))("field_id","button_pin")("field",t.settings.button_pin)("required",!0)("disabled_pins",r["\u0275\u0275pureFunction2"](33,bs,t.settings.led_pin,t.settings.w1gpio)),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](30,28,"alerts.afterSave")," "))},directives:[i.k,Ji,i.j,ye.SelectControlValueAccessor,ye.RequiredValidator,ye.NgControlStatus,ye.NgModel,ye.NgSelectOption,ye["\u0275angular_packages_forms_forms_x"],ni,i.l,is,ye.NumberValueAccessor,ye.DefaultValueAccessor,dr,Vr.MinValidator,Vr.MaxValidator,ye.CheckboxControlValueAccessor,ds],pipes:[ri,i.d],styles:[""]}),e})();function Gs(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"pre",8),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.debugInfo)}}function Ks(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"li",12),r["\u0275\u0275elementStart"](1,"strong"),r["\u0275\u0275text"](2),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](4),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](),t=e.$implicit,n=e.index,i=r["\u0275\u0275nextContext"](3);r["\u0275\u0275propertyInterpolate1"]("id","abc_",t,""),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate2"]("",r["\u0275\u0275pipeBind1"](3,4,"settings.thingspeak.field")," ",n+1,""),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate1"](": ",i.thingSpeakFields["field"+(n+1)]," ")}}function Qs(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275template"](1,Ks,5,6,"li",11),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=t.index,n=r["\u0275\u0275nextContext"](3);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",n.thingSpeakFields["field"+(e+1)]||0===n.thingSpeakFields["field"+(e+1)])}}function Zs(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"ul",9),r["\u0275\u0275template"](1,Qs,2,1,"ng-container",10),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",e.numbers)}}function Xs(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275template"](1,Gs,2,1,"pre",6),r["\u0275\u0275template"](2,Zs,2,1,"ul",7),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.debugInfo),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.thingSpeakFields)}}n("Xs6s");const Ys=function(e){return{tab:e}};function Js(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",13),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",2),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind2"](4,1,"settings.measurement.noData",r["\u0275\u0275pureFunction1"](6,Ys,r["\u0275\u0275pipeBind1"](5,4,"settings.sensors.title"))),r["\u0275\u0275sanitizeHtml"]))}function eo(e,t){1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"div",14),r["\u0275\u0275elementStart"](2,"div",15),r["\u0275\u0275elementStart"](3,"div",15),r["\u0275\u0275elementStart"](4,"div",15),r["\u0275\u0275element"](5,"div",15),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]())}let to=(()=>{class e{constructor(e){this.appService=e,this.isLoading=!1,this.noData=!1,this.numbers=Array(80).fill(0).map((e,t)=>t)}ngOnInit(){}getMeasurement(){this.measurement=null,this.isLoading=!0,this.appService.getMeasurement().finally(()=>this.isLoading=!1).subscribe(e=>{console.log(e),e?(this.measurement=e,this.noData=!1):this.noData=!0},e=>{console.error(e)})}get debugInfo(){return this.measurement&&this.measurement.includes("{")?this.measurement.split("{")[0]:null}get thingSpeakFields(){if(this.measurement&&this.measurement.includes("{")){let e=this.measurement.split("{");return e="{"+e[e.length-1],JSON.parse(e)}return null}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-measurement"]],decls:11,vars:13,consts:[["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],[4,"ngIf"],["class","alert alert-warning","role","alert",4,"ngIf"],["type","button","role","button",1,"btn","btn-primary","btn-sm",3,"disabled","translate","click"],["class","pre-scrollable",4,"ngIf"],["class","list-group",4,"ngIf"],[1,"pre-scrollable"],[1,"list-group"],[4,"ngFor","ngForOf"],["class","list-group-item",3,"id",4,"ngIf"],[1,"list-group-item",3,"id"],["role","alert",1,"alert","alert-warning"],["id","circle"],[1,"loader"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",2),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](6,Xs,3,2,"ng-container",3),r["\u0275\u0275template"](7,Js,6,8,"div",4),r["\u0275\u0275template"](8,eo,6,0,"ng-container",3),r["\u0275\u0275element"](9,"br"),r["\u0275\u0275elementStart"](10,"button",5),r["\u0275\u0275listener"]("click",function(){return t.getMeasurement()}),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind2"](4,6,"settings.measurement.info",r["\u0275\u0275pureFunction1"](11,Ys,r["\u0275\u0275pipeBind1"](5,9,"settings.sensors.title"))),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",t.measurement),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.noData&&!t.measurement),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.isLoading),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("disabled",t.isLoading)("translate","settings.measurement.get"))},directives:[i.l,ni,i.k],pipes:[ri],styles:["#circle[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:150px;height:150px}.loader[_ngcontent-%COMP%]{width:calc(100% - 0px);height:calc(100% - 0px);border:8px solid #f7f7f7;border-top-color:#ffc107;border-radius:50%;-webkit-animation:rotate 5s linear infinite;animation:rotate 5s linear infinite}@-webkit-keyframes rotate{to{transform:rotate(1turn)}}@keyframes rotate{to{transform:rotate(1turn)}}"]}),e})();const no=function(e){return{tab:e}};function ro(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",17),r["\u0275\u0275elementStart"](1,"a",3),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",4),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind2"](4,1,"settings.offline.noData",r["\u0275\u0275pureFunction1"](6,no,r["\u0275\u0275pipeBind1"](5,4,"settings.thingspeak.title"))),r["\u0275\u0275sanitizeHtml"]))}function io(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"div",19),r["\u0275\u0275elementStart"](2,"div",20),r["\u0275\u0275elementStart"](3,"a",21),r["\u0275\u0275text"](4),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"button",22),r["\u0275\u0275listener"]("click",function(){r["\u0275\u0275restoreView"](e);const t=r["\u0275\u0275nextContext"]().$implicit;return r["\u0275\u0275nextContext"]().deleteCsv(t.ts_channel_id)}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]().$implicit,t=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate2"]("href","",t.apiURL,"offlinecsv.php?channelId=",e.ts_channel_id,"",r["\u0275\u0275sanitizeUrl"]),r["\u0275\u0275propertyInterpolate1"]("download","HoneyPi-",e.ts_channel_id,"-export.csv"),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate3"](" ",r["\u0275\u0275pipeBind1"](5,7,"settings.offline.exportButton")," #",e.ts_channel_id," ",e.name," "),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.offline.delete")}}function so(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275template"](1,io,7,9,"div",18),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=t.$implicit;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.ts_channel_id)}}let oo=(()=>{class e{constructor(e){this.appService=e,this.settingsChange=new r.EventEmitter}set settings(e){this.settingsChange.emit(e),this._settings=e}get settings(){return this._settings}ngOnInit(){this.apiURL="./backend/"}deleteCsv(e){this.appService.deleteCsv(e).subscribe(e=>{},e=>{console.error(e)})}get isThingSpeakDefined(){return 0===this.settings.ts_channels.filter(e=>e.ts_channel_id>0).length}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-offline"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:23,vars:22,consts:[[1,"row"],[1,"col-12"],["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],[1,"form-check"],["type","radio","name","offline","id","offline0",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline0",1,"form-check-label",3,"translate"],["type","radio","name","offline","id","offline1",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline1",1,"form-check-label",3,"translate"],["type","radio","name","offline","id","offline2",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline2",1,"form-check-label",3,"translate"],["type","radio","name","offline","id","offline3",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline3",1,"form-check-label",3,"translate"],[1,"h5",3,"translate"],["class","alert alert-warning","role","alert",4,"ngIf"],[4,"ngFor","ngForOf"],["role","alert",1,"alert","alert-warning"],["class","row",4,"ngIf"],[1,"col-12",2,"padding-bottom","15px"],["role","group",1,"btn-group","btn-group-sm"],["target","_blank",1,"btn","btn-primary","btn-sm",3,"href","download"],["type","button","role","button",1,"btn","btn-danger","btn-sm",3,"translate","click"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275elementStart"](2,"div",2),r["\u0275\u0275elementStart"](3,"a",3),r["\u0275\u0275text"](4,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](5,"span",4),r["\u0275\u0275pipe"](6,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"div",5),r["\u0275\u0275elementStart"](8,"input",6),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.offline=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](9,"label",7),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",5),r["\u0275\u0275elementStart"](11,"input",8),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.offline=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](12,"label",9),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"div",5),r["\u0275\u0275elementStart"](14,"input",10),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.offline=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](15,"label",11),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"div",5),r["\u0275\u0275elementStart"](17,"input",12),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.offline=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](18,"label",13),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](19,"hr"),r["\u0275\u0275element"](20,"h5",14),r["\u0275\u0275template"](21,ro,6,8,"div",15),r["\u0275\u0275template"](22,so,2,1,"ng-container",16)),2&e&&(r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](6,20,"settings.offline.infoExport"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("value",0)("ngModel",t.settings.offline)("checked",0==t.settings.offline||null==t.settings.offline),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.offline.radio0"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",1)("ngModel",t.settings.offline)("checked",1==t.settings.offline),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.offline.radio1"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",2)("ngModel",t.settings.offline)("checked",2==t.settings.offline),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.offline.radio2"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",3)("ngModel",t.settings.offline)("checked",3==t.settings.offline),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.offline.radio3"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.offline.export"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.isThingSpeakDefined),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",t.settings.ts_channels))},directives:[ye.RadioControlValueAccessor,ye.DefaultValueAccessor,ye.NgControlStatus,ye.NgModel,ni,i.l,i.k],pipes:[ri],styles:[""]}),e})();function ao(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"pre",11),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.log)}}function lo(e,t){1&e&&r["\u0275\u0275element"](0,"div",12),2&e&&r["\u0275\u0275property"]("translate","settings.log.nofile")}function uo(e,t){1&e&&r["\u0275\u0275element"](0,"div",12),2&e&&r["\u0275\u0275property"]("translate","settings.log.empty")}const co=function(e){return{value:e}};let ho=(()=>{class e{constructor(e){this.appService=e,this.log=null,this.settingsChange=new r.EventEmitter}set settings(e){this.settingsChange.emit(e),this._settings=e}get settings(){return this._settings}ngOnInit(){this.getLog()}getLog(){this.log=null,this.appService.getLog().subscribe(e=>{this.log=e},e=>{console.error(e)})}deleteLog(){this.appService.deleteLog().subscribe(e=>{this.log=e},e=>{console.error(e)})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-log"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:26,vars:22,consts:[[1,"row"],[1,"col-12"],["for","debuglevel",3,"translate"],["id","debuglevel","name","debuglevel",1,"custom-select",3,"ngModel","ngModelChange"],["disabled","",3,"ngValue","translate"],[3,"ngValue"],["class","pre-scrollable",4,"ngIf"],["class","alert alert-info",3,"translate",4,"ngIf"],["role","group",1,"btn-group","btn-group-sm"],["type","button","role","button",1,"btn","btn-primary","btn-sm",3,"translate","click"],["type","button","role","button",1,"btn","btn-danger","btn-sm",3,"translate","click"],[1,"pre-scrollable"],[1,"alert","alert-info",3,"translate"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275element"](2,"label",2),r["\u0275\u0275elementStart"](3,"select",3),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.debuglevel=e}),r["\u0275\u0275element"](4,"option",4),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275pipe"](6,"translate"),r["\u0275\u0275elementStart"](7,"option",5),r["\u0275\u0275text"](8,"NOTSET"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"option",5),r["\u0275\u0275text"](10,"DEBUG: No restarts, all logs."),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](11,"option",5),r["\u0275\u0275text"](12,"INFO: Logging successfull connections."),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"option",5),r["\u0275\u0275text"](14,"WARNING: No HDMI output. (default)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](15,"option",5),r["\u0275\u0275text"](16,"ERROR"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"option",5),r["\u0275\u0275text"](18,"CRITICAL"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](19,"hr"),r["\u0275\u0275template"](20,ao,2,1,"pre",6),r["\u0275\u0275template"](21,lo,1,1,"div",7),r["\u0275\u0275template"](22,uo,1,1,"div",7),r["\u0275\u0275elementStart"](23,"div",8),r["\u0275\u0275elementStart"](24,"button",9),r["\u0275\u0275listener"]("click",function(){return t.getLog()}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](25,"button",10),r["\u0275\u0275listener"]("click",function(){return t.deleteLog()}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.sensors.debugSelect"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",t.settings.debuglevel),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](5,15,"buttons.select",r["\u0275\u0275pureFunction1"](20,co,r["\u0275\u0275pipeBind1"](6,18,"settings.sensors.debuglevel")))),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngValue",0),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",10),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",20),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",30),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",40),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",50),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",t.log&&"NOFILE"!==t.log),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf","NOFILE"===t.log),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",""==t.log),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.log.get"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.log.delete"))},directives:[ni,ye.SelectControlValueAccessor,ye.NgControlStatus,ye.NgModel,ye.NgSelectOption,ye["\u0275angular_packages_forms_forms_x"],i.l],pipes:[ri],styles:[""]}),e})();function po(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",23),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",2),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.updateAP"),r["\u0275\u0275sanitizeHtml"]))}function fo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",24),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",2),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.updateNotAP"),r["\u0275\u0275sanitizeHtml"]))}function go(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"pre",25),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"json"),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"]("Error-Code: ",r["\u0275\u0275pipeBind1"](2,1,e.log),"")}}function mo(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275text"](1),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate2"]("rpi-scripts ",e.versionInfo.result.scripts.tag_name,"\nChangelog:\n",e.versionInfo.result.scripts.body,"")}}function vo(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275text"](1),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate2"]("\nrpi-webinterface ",e.versionInfo.result.webinterface.tag_name,"\nChangelog:\n",e.versionInfo.result.webinterface.body,"")}}function yo(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"pre",25),r["\u0275\u0275text"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"br"),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](3);r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate"](e.versionInfo.result.currentVersion)}}function bo(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",26),r["\u0275\u0275elementStart"](1,"b"),r["\u0275\u0275text"](2,"Derzeit installierte Version:"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](3,yo,4,1,"ng-container",22),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",e.versionInfo.result.currentVersion)}}function _o(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",8),r["\u0275\u0275elementStart"](1,"div",26),r["\u0275\u0275elementStart"](2,"b"),r["\u0275\u0275text"](3,"Vef\xfcgbare Versionen:"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](4,"br"),r["\u0275\u0275elementStart"](5,"pre",25),r["\u0275\u0275template"](6,mo,2,2,"ng-container",22),r["\u0275\u0275text"](7,"\n"),r["\u0275\u0275template"](8,vo,2,2,"ng-container",22),r["\u0275\u0275text"](9,"\n"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](10,bo,4,1,"div",27),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](6),r["\u0275\u0275property"]("ngIf",e.versionInfo.result.scripts),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",e.versionInfo.result.webinterface),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",e.versionInfo.result.currentVersion)}}function wo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"button",28),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().update("update")}),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("disabled",e.isLoading)("translate","settings.update.update")}}function xo(e,t){1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"div",29),r["\u0275\u0275elementStart"](2,"div",30),r["\u0275\u0275elementStart"](3,"div",30),r["\u0275\u0275elementStart"](4,"div",30),r["\u0275\u0275element"](5,"div",30),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]())}let Co=(()=>{class e{constructor(e){this.appService=e,this.log=null,this.isLoading=!1,this.versionInfo=null,this.usePreVersion=!1}ngOnInit(){this.apiURL="./backend/"}get isAccessPoint(){return"192.168.4.1"===window.location.hostname}update(e){this.log=null,this.isLoading=!0,this.appService.checkInternet().timeout(15e3).subscribe(t=>{!0===t.connected?this.appService.update(e,this.usePreVersion).finally(()=>this.isLoading=!1).subscribe(e=>{console.log(e),this.log=e,window.confirm("Erfolgreich aktualisiert. Die Seite muss aktualisiert werden. Jetzt neuladen?")&&location.reload(!0)},e=>{console.error(e)}):(this.isLoading=!1,alert("No internet connection. Try again with internet connection."))},e=>{console.log(e),this.isLoading=!1,alert("No internet connection. Try again with internet connection.")})}getVersionInfo(){this.versionInfo=null,this.log=null,this.isLoading=!0,this.appService.checkInternet().timeout(15e3).subscribe(e=>{!0===e.connected?this.appService.update("versionInfo",this.usePreVersion).finally(()=>this.isLoading=!1).subscribe(e=>{try{if(this.versionInfo=e,this.log=null,this.versionInfo.error)throw new Error("Exception occured: "+this.versionInfo.error)}catch(t){console.error(t),this.log=t,this.versionInfo=null}},e=>{this.versionInfo=null,console.error(e),this.log=e,e.name&&"TimeoutError"===e.name?this.log="TimeoutError.":e.name&&"HttpErrorResponse"===e.name&&(this.log="HttpErrorResponse.")}):(this.isLoading=!1,alert("No internet connection. Try again with internet connection."))},e=>{console.log(e),this.isLoading=!1,alert("No internet connection. Try again with internet connection.")})}onFileChanged(e){const t=e.target.files[0];if(console.log(t),t){const e=new FileReader;e.readAsText(t,"UTF-8"),e.onload=e=>{const t=JSON.parse(e.target.result);t&&window.confirm("Soll die Datei jetzt importiert werden?")&&this.appService.setSettings(t).subscribe(e=>{e&&(console.log(e),window.confirm("Erfolgreich gespeichert. Die Seite muss aktualisiert werden. Jetzt neuladen?")&&location.reload(!0))})},e.onerror=e=>{window.alert("Error reading file.")}}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-update"]],decls:28,vars:18,consts:[["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-success","role","alert",4,"ngIf"],[1,"h5",3,"translate"],["class","pre-scrollable",4,"ngIf"],["class","row",4,"ngIf"],[1,"row"],[1,"col-12"],[1,"form-group","form-check"],["type","checkbox","name","usePreVersion","id","usePreVersion",1,"form-check-input",3,"ngModel","ngModelChange"],["for","usePreVersion",1,"form-check-label",3,"translate"],["type","button","role","button",1,"btn","btn-primary","btn-sm","mr-1","mt-1",3,"disabled","translate","click"],["class","btn btn-warning btn-sm mt-1","type","button","role","button",3,"disabled","translate","click",4,"ngIf"],[1,"form-group"],["for","settingsFile",3,"translate"],["type","file","id","settingsFile","name","settingsFile","accept","application/json,.json",1,"form-control-file",3,"change"],["fileInput",""],["role","group",1,"btn-group","btn-group-sm"],["href","./backend/settings.json","target","_blank","download","settings-backup.json",1,"btn","btn-primary","btn-sm",3,"translate"],["type","button","role","button",1,"btn","btn-warning","btn-sm",3,"translate","click"],[4,"ngIf"],["role","alert",1,"alert","alert-warning"],["role","alert",1,"alert","alert-success"],[1,"pre-scrollable"],[1,"col-12","col-sm-6"],["class","col-12 col-sm-6",4,"ngIf"],["type","button","role","button",1,"btn","btn-warning","btn-sm","mt-1",3,"disabled","translate","click"],["id","circle"],[1,"loader"]],template:function(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"a",1),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",2),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](5,po,5,3,"div",3),r["\u0275\u0275template"](6,fo,5,3,"div",4),r["\u0275\u0275element"](7,"h5",5),r["\u0275\u0275template"](8,go,3,3,"pre",6),r["\u0275\u0275template"](9,_o,11,3,"div",7),r["\u0275\u0275elementStart"](10,"div",8),r["\u0275\u0275elementStart"](11,"div",9),r["\u0275\u0275elementStart"](12,"div",10),r["\u0275\u0275elementStart"](13,"input",11),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.usePreVersion=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](14,"label",12),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](15,"p"),r["\u0275\u0275elementStart"](16,"button",13),r["\u0275\u0275listener"]("click",function(){return t.getVersionInfo()}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](17,wo,1,2,"button",14),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](18,"hr"),r["\u0275\u0275element"](19,"h5",5),r["\u0275\u0275elementStart"](20,"div",15),r["\u0275\u0275element"](21,"label",16),r["\u0275\u0275elementStart"](22,"input",17,18),r["\u0275\u0275listener"]("change",function(e){return t.onFileChanged(e)}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](24,"div",19),r["\u0275\u0275element"](25,"a",20),r["\u0275\u0275elementStart"](26,"button",21),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275reference"](23).click()}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](27,xo,6,0,"ng-container",22)}2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,16,"alerts.updateInfo"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",t.isAccessPoint),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!t.isAccessPoint),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.update.title"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.log),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.versionInfo),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngModel",t.usePreVersion),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.update.usePreVersion"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("disabled",t.isLoading)("translate","settings.update.preupdate"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.versionInfo),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.update.export"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","settings.log.importSettings"),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("translate","settings.log.export"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.log.import"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.isLoading))},directives:[i.l,ni,ye.CheckboxControlValueAccessor,ye.NgControlStatus,ye.NgModel],pipes:[ri,i.f],styles:["#circle[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:150px;height:150px}.loader[_ngcontent-%COMP%]{width:calc(100% - 0px);height:calc(100% - 0px);border:8px solid #f7f7f7;border-top-color:#ffc107;border-radius:50%;-webkit-animation:rotate 5s linear infinite;animation:rotate 5s linear infinite}@-webkit-keyframes rotate{to{transform:rotate(1turn)}}@keyframes rotate{to{transform:rotate(1turn)}}"]}),e})();function $o(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",11),r["\u0275\u0275elementStart"](1,"input",12),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().settings.wittyPi.normal.shutdownAfterTransfer=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](2,"label",13),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",e.settings.wittyPi.normal.shutdownAfterTransfer),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](3,2,"settings.sensors.shutdownAfterTransfer"),r["\u0275\u0275sanitizeHtml"])}}function So(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",14),r["\u0275\u0275elementStart"](1,"a",15),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",16),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.shutdownAfterTransfer"),r["\u0275\u0275sanitizeHtml"]))}function Eo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"button",28),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).installWittyPi(2)}),r["\u0275\u0275text"](1,"WittyPi 2 installieren"),r["\u0275\u0275elementEnd"]()}}function Oo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"button",28),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).installWittyPi(3)}),r["\u0275\u0275text"](1,"WittyPi 3 installieren"),r["\u0275\u0275elementEnd"]()}}function Io(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"option",4),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;r["\u0275\u0275property"]("ngValue",e.script),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.name)}}function ko(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",36),r["\u0275\u0275elementStart"](1,"a",15),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",16),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"error.wittypinotwait"),r["\u0275\u0275sanitizeHtml"]))}function To(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",36),r["\u0275\u0275elementStart"](1,"a",15),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",16),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"error.wittypiwait"),r["\u0275\u0275sanitizeHtml"]))}function jo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"div",19),r["\u0275\u0275elementStart"](2,"div",29),r["\u0275\u0275elementStart"](3,"select",30),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).selectedExampleNormal=t})("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).settings.wittyPi.normal.schedule=t}),r["\u0275\u0275element"](4,"option",31),r["\u0275\u0275template"](5,Io,2,2,"option",32),r["\u0275\u0275element"](6,"option",33),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"div",0),r["\u0275\u0275elementStart"](8,"textarea",34),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).settings.wittyPi.normal.schedule=t}),r["\u0275\u0275pipe"](9,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](10,ko,5,3,"div",35),r["\u0275\u0275template"](11,To,5,3,"div",35),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngModel",e.selectedExampleNormal),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("value",null)("translate","settings.wittypi.loadexample"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",e.exampleScriptsNormal),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("value","")("translate","settings.wittypi.empty"),r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](9,10,"settings.wittypi.script")),r["\u0275\u0275property"]("ngModel",e.settings.wittyPi.normal.schedule),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",e.showWarningForMissingWait(e.settings.wittyPi.normal)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.showWarningForWait(e.settings.wittyPi.normal))}}const Vo=function(e){return{field:e}};function Po(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.required",r["\u0275\u0275pureFunction1"](6,Vo,r["\u0275\u0275pipeBind1"](3,4,"settings.wittypi.voltageLow")))," "))}function Mo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.length",r["\u0275\u0275pureFunction1"](6,Vo,r["\u0275\u0275pipeBind1"](3,4,"settings.wittypi.voltageLow")))," "))}function Ao(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",52),r["\u0275\u0275template"](1,Po,4,8,"div",10),r["\u0275\u0275template"](2,Mo,4,8,"div",10),r["\u0275\u0275elementEnd"]()),2&e){r["\u0275\u0275nextContext"]();const e=r["\u0275\u0275reference"](8);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",(null==e?null:e.errors.min)||(null==e?null:e.errors.max))}}function No(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.required",r["\u0275\u0275pureFunction1"](6,Vo,r["\u0275\u0275pipeBind1"](3,4,"settings.wittypi.voltageNormal")))," "))}function Do(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind2"](2,1,"error.length",r["\u0275\u0275pureFunction1"](6,Vo,r["\u0275\u0275pipeBind1"](3,4,"settings.wittypi.voltageNormal")))," "))}function Ro(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",52),r["\u0275\u0275template"](1,No,4,8,"div",10),r["\u0275\u0275template"](2,Do,4,8,"div",10),r["\u0275\u0275elementEnd"]()),2&e){r["\u0275\u0275nextContext"]();const e=r["\u0275\u0275reference"](15);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==e?null:e.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",(null==e?null:e.errors.min)||(null==e?null:e.errors.max))}}function Fo(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"option",4),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;r["\u0275\u0275property"]("ngValue",e.script),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.name)}}function Lo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",36),r["\u0275\u0275elementStart"](1,"a",15),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",16),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"error.wittypinotwait"),r["\u0275\u0275sanitizeHtml"]))}function Bo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",36),r["\u0275\u0275elementStart"](1,"a",15),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",16),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"error.wittypiwait"),r["\u0275\u0275sanitizeHtml"]))}function Ho(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"div",19),r["\u0275\u0275elementStart"](2,"div",29),r["\u0275\u0275elementStart"](3,"select",30),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](3).selectedExampleLow=t})("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](3).settings.wittyPi.low.schedule=t}),r["\u0275\u0275element"](4,"option",31),r["\u0275\u0275template"](5,Fo,2,2,"option",32),r["\u0275\u0275element"](6,"option",33),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"div",0),r["\u0275\u0275elementStart"](8,"textarea",53),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](3).settings.wittyPi.low.schedule=t}),r["\u0275\u0275pipe"](9,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](10,Lo,5,3,"div",35),r["\u0275\u0275template"](11,Bo,5,3,"div",35),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](3);r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngModel",e.selectedExampleLow),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("value",null)("translate","settings.wittypi.loadexample"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",e.exampleScriptsLow),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("value","")("translate","settings.wittypi.empty"),r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](9,10,"settings.wittypi.script")),r["\u0275\u0275property"]("ngModel",e.settings.wittyPi.low.schedule),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",e.showWarningForMissingWait(e.settings.wittyPi.low)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.showWarningForWait(e.settings.wittyPi.low))}}function Uo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",11),r["\u0275\u0275elementStart"](1,"input",54),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](3).settings.wittyPi.low.shutdownAfterTransfer=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](2,"label",55),r["\u0275\u0275pipe"](3,"translate"),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](3);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",e.settings.wittyPi.low.shutdownAfterTransfer),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](3,2,"settings.sensors.shutdownAfterTransfer"),r["\u0275\u0275sanitizeHtml"])}}function qo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",14),r["\u0275\u0275elementStart"](1,"a",15),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",16),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.shutdownAfterTransfer"),r["\u0275\u0275sanitizeHtml"]))}const Wo=function(e){return{value:e}};function zo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",37),r["\u0275\u0275elementStart"](1,"div",38),r["\u0275\u0275elementStart"](2,"div",39),r["\u0275\u0275elementStart"](3,"div",40),r["\u0275\u0275elementStart"](4,"label",41),r["\u0275\u0275text"](5),r["\u0275\u0275pipe"](6,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"input",42,43),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).settings.wittyPi.low.voltage=t}),r["\u0275\u0275pipe"](9,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",40),r["\u0275\u0275elementStart"](11,"label",44),r["\u0275\u0275text"](12),r["\u0275\u0275pipe"](13,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](14,"input",45,46),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).settings.wittyPi.normal.voltage=t}),r["\u0275\u0275pipe"](16,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](17,Ao,3,2,"div",47),r["\u0275\u0275template"](18,Ro,3,2,"div",47),r["\u0275\u0275elementStart"](19,"div",7),r["\u0275\u0275elementStart"](20,"input",48),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).settings.wittyPi.low.enabled=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](21,"label",49),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](22,Ho,12,12,"ng-container",10),r["\u0275\u0275element"](23,"hr"),r["\u0275\u0275elementStart"](24,"div",0),r["\u0275\u0275elementStart"](25,"label",50),r["\u0275\u0275text"](26,">"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](27,"select",51),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).settings.wittyPi.low.interval=t}),r["\u0275\u0275element"](28,"option",3),r["\u0275\u0275pipe"](29,"translate"),r["\u0275\u0275pipe"](30,"translate"),r["\u0275\u0275elementStart"](31,"option",4),r["\u0275\u0275text"](32,"1min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](33,"option",4),r["\u0275\u0275text"](34,"5min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](35,"option",4),r["\u0275\u0275text"](36,"10min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](37,"option",4),r["\u0275\u0275text"](38,"15min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](39,"option",4),r["\u0275\u0275text"](40,"30min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](41,"option",4),r["\u0275\u0275text"](42,"60min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](43,"option",4),r["\u0275\u0275text"](44,"2h"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](45,"option",4),r["\u0275\u0275text"](46,"3h"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](47,"option",4),r["\u0275\u0275text"](48,"4h"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](49,"option",4),r["\u0275\u0275text"](50),r["\u0275\u0275pipe"](51,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](52,"option",4),r["\u0275\u0275text"](53),r["\u0275\u0275pipe"](54,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](55,Uo,4,4,"div",5),r["\u0275\u0275template"](56,qo,5,3,"div",6),r["\u0275\u0275elementStart"](57,"div",14),r["\u0275\u0275elementStart"](58,"a",15),r["\u0275\u0275text"](59,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](60),r["\u0275\u0275pipe"](61,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275reference"](8),t=r["\u0275\u0275reference"](15),n=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate1"]("",r["\u0275\u0275pipeBind1"](6,35,"settings.wittypi.voltageLow")," [V]"),r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](9,37,"settings.wittypi.voltage")),r["\u0275\u0275property"]("min",0)("max",n.settings.wittyPi.normal.voltage)("ngModel",n.settings.wittyPi.low.voltage),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate1"]("",r["\u0275\u0275pipeBind1"](13,39,"settings.wittypi.voltageNormal")," [V]"),r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate"]("placeholder",r["\u0275\u0275pipeBind1"](16,41,"settings.wittypi.voltage")),r["\u0275\u0275property"]("min",n.settings.wittyPi.low.voltage)("max",100)("ngModel",n.settings.wittyPi.normal.voltage),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",e.invalid&&(e.dirty||e.touched)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.invalid&&(t.dirty||t.touched)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",n.settings.wittyPi.low.enabled),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.wittypi.enableLowMode"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",n.settings.wittyPi.low.enabled),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.wittypi.voltageLowInterval"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",n.settings.wittyPi.low.interval),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](29,43,"buttons.select",r["\u0275\u0275pureFunction1"](54,Wo,r["\u0275\u0275pipeBind1"](30,46,"settings.sensors.interval")))),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngValue",60),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",300),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",600),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",900),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",1800),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",3600),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",7200),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",10800),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",14400),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",1),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](51,48,"settings.sensors.measurementOnce")),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",0),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](54,50,"settings.sensors.measurementNone")),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",1===n.settings.wittyPi.low.interval),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",1===n.settings.wittyPi.low.interval&&!0===n.settings.wittyPi.low.shutdownAfterTransfer),r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](61,52,"alerts.afterSaveOrManualStart")," ")}}function Go(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",14),r["\u0275\u0275elementStart"](1,"a",15),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",16),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.dummyload"),r["\u0275\u0275sanitizeHtml"]))}function Ko(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275element"](1,"label",56),r["\u0275\u0275elementStart"](2,"select",57),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).settings.wittyPi.dummyload=t}),r["\u0275\u0275element"](3,"option",3),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementStart"](6,"option",4),r["\u0275\u0275text"](7,"No Dummyload - disabled (default)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"option",4),r["\u0275\u0275text"](9,"10ms"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"option",4),r["\u0275\u0275text"](11,"15ms (most used)"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](12,"option",4),r["\u0275\u0275text"](13,"20ms"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](14,"option",4),r["\u0275\u0275text"](15,"50ms"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"option",4),r["\u0275\u0275text"](17,"100ms"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.sensors.dummyload"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",e.settings.wittyPi.dummyload),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](4,10,"buttons.select",r["\u0275\u0275pureFunction1"](15,Wo,r["\u0275\u0275pipeBind1"](5,13,"settings.sensors.dummyloadTimespan")))),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngValue",0),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",10),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",15),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",20),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",50),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",100)}}function Qo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275elementStart"](1,"div",14),r["\u0275\u0275elementStart"](2,"a",15),r["\u0275\u0275text"](3,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](4,"span",16),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",0),r["\u0275\u0275elementStart"](7,"label",17),r["\u0275\u0275text"](8,">"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"select",18),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().settings.wittyPi.version=t}),r["\u0275\u0275element"](10,"option",3),r["\u0275\u0275pipe"](11,"translate"),r["\u0275\u0275pipe"](12,"translate"),r["\u0275\u0275elementStart"](13,"option",4),r["\u0275\u0275text"](14,"WittyPi Version 2"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](15,"option",4),r["\u0275\u0275text"](16,"WittyPi Version 3"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"div",19),r["\u0275\u0275elementStart"](18,"div",20),r["\u0275\u0275template"](19,Eo,2,0,"button",21),r["\u0275\u0275template"](20,Oo,2,0,"button",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"div",7),r["\u0275\u0275elementStart"](22,"input",22),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().settings.wittyPi.normal.enabled=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](23,"label",23),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](24,jo,12,12,"ng-container",10),r["\u0275\u0275elementStart"](25,"div",7),r["\u0275\u0275elementStart"](26,"input",24),r["\u0275\u0275listener"]("ngModelChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().settings.wittyPi.voltagecheck_enabled=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](27,"label",25),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](28,zo,62,56,"div",26),r["\u0275\u0275element"](29,"hr"),r["\u0275\u0275template"](30,Go,5,3,"div",6),r["\u0275\u0275template"](31,Ko,18,17,"div",27),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](5,19,"alerts.wittypi"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","settings.wittypi.version"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",e.settings.wittyPi.version),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](11,21,"buttons.select",r["\u0275\u0275pureFunction1"](26,Wo,r["\u0275\u0275pipeBind1"](12,24,"settings.sensors.version")))),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngValue",2),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",3),r["\u0275\u0275advance"](2),r["\u0275\u0275classProp"]("spinner",e.isLoading),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",2===e.settings.wittyPi.version),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",3===e.settings.wittyPi.version),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",e.settings.wittyPi.normal.enabled),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.wittypi.enableNormalMode"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.settings.wittyPi.normal.enabled),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",e.settings.wittyPi.voltagecheck_enabled),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.wittypi.enableVoltageCheck"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.settings.wittyPi.voltagecheck_enabled),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",3===e.settings.wittyPi.version),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",3===e.settings.wittyPi.version)}}let Zo=(()=>{class e{constructor(e,t){this.appService=e,this.translate=t,this.exampleScriptsNormal=[{name:"Anschalten alle 30Minuten",script:"BEGIN 2015-08-01 08:00:00\nEND 2025-07-31 18:00:00\nON M5 WAIT\nOFF M25"},{name:"Anschalten alle 15min",script:"BEGIN 2015-08-01 00:00:00 \nEND 2025-07-31 23:59:59 \nON M5 WAIT\nOFF M10"},{name:"7-19Uhr alle 30min, 19-7h st\xfcndliches Anschalten",script:"BEGIN 2015-08-01 07:00:00\nEND 2025-07-31 23:59:59\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\n"}],this.exampleScriptsLow=[{name:"T\xe4glich um 6 Uhr anschalten",script:"BEGIN 2020-03-01 06:00:00\nEND 2025-12-31 00:00:00\nON M5 WAIT\nOFF H23 M55"},{name:"Alle 8h anschalten",script:"BEGIN 2020-03-01 06:00:00\nEND 2025-12-31 00:00:00\nON M5 WAIT\nOFF H7 M55\nON M5 WAIT\nOFF H7 M55\nON M5 WAIT\nOFF H7 M55"}],this.selectedExampleNormal=null,this.selectedExampleLow=null,this.settingsChange=new r.EventEmitter}set settings(e){this.settingsChange.emit(e),this._settings=e}get settings(){return this._settings}ngOnInit(){}installWittyPi(e){this.isLoading=!0,this.translate.get("settings.confirm.installWittyPi").subscribe(t=>{window.confirm(t)?this.appService.checkInternet().timeout(15e3).subscribe(t=>{!0===t.connected?this.appService.update("installWittyPi",!1,"&version="+e).finally(()=>this.isLoading=!1).subscribe(e=>{console.log(e),alert("Erfolgreich. Der Raspberry muss jetzt von dir neugestartet werden.")},e=>{console.error(e),alert("Error while installing WittyPi. Try again.")}):(this.isLoading=!1,alert("No internet connection. Try again with internet connection."))},e=>{console.log(e),this.isLoading=!1,alert("No internet connection. Try again with internet connection.")}):this.isLoading=!1})}showWarningForMissingWait(e){return 1===e.interval&&!0===e.shutdownAfterTransfer&&-1===e.schedule.indexOf("WAIT")}showWarningForWait(e){return(!0!==e.shutdownAfterTransfer||1!==e.interval)&&-1!==e.schedule.indexOf("WAIT")}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci),r["\u0275\u0275directiveInject"](ti))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-wittypi"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:37,vars:33,consts:[[1,"form-group"],["for","interval",3,"translate"],["id","interval","name","interval","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue","translate"],[3,"ngValue"],["class","form-group form-check",4,"ngIf"],["class","alert alert-info","role","alert",4,"ngIf"],[1,"form-check"],["type","checkbox","id","wittyPi",1,"form-check-input",3,"ngModel","ngModelChange"],["for","wittyPi",1,"form-check-label",3,"translate"],[4,"ngIf"],[1,"form-group","form-check"],["type","checkbox","name","shutdownAfterTransfer","id","shutdownAfterTransfer",1,"form-check-input",3,"ngModel","ngModelChange"],["for","shutdownAfterTransfer",1,"form-check-label",3,"innerHTML"],["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["for","version",3,"translate"],["id","version","name","version","required","",1,"custom-select",3,"ngModel","ngModelChange"],[1,"clearfix"],["role","group",1,"btn-group","btn-group-sm","float-right"],["class","btn btn-outline-warning btn-sm","type","button","role","button",3,"click",4,"ngIf"],["type","checkbox","id","normal_enabled",1,"form-check-input",3,"ngModel","ngModelChange"],["for","normal_enabled",1,"form-check-label",3,"translate"],["type","checkbox","id","wittyPi_voltage",1,"form-check-input",3,"ngModel","ngModelChange"],["for","wittyPi_voltage",1,"form-check-label",3,"translate"],["class","collapse show","id","collapseVolltageCheck",4,"ngIf"],["class","form-group",4,"ngIf"],["type","button","role","button",1,"btn","btn-outline-warning","btn-sm",3,"click"],[1,"form-group","float-right"],[1,"form-control",2,"max-width","250px",3,"ngModel","ngModelChange"],["disabled","",2,"display","none",3,"value","translate"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"value","translate"],["id","normal_schedule","rows","5","name","normal_schedule",1,"form-control","pre-scrollable",3,"placeholder","ngModel","ngModelChange"],["class","alert alert-warning","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-warning"],["id","collapseVolltageCheck",1,"collapse","show"],[1,"card","card-body"],[1,"row"],[1,"form-group","col-12","col-sm-6"],["for","low_voltage"],["type","number","step","0.1","id","low_voltage","name","low_voltage","required","",1,"form-control",3,"min","max","ngModel","placeholder","ngModelChange"],["lowVoltage","ngModel"],["for","normal_voltage"],["type","number","step","0.1","id","normal_voltage","name","normal_voltage","required","",1,"form-control",3,"min","max","ngModel","placeholder","ngModelChange"],["normalVoltage","ngModel"],["class","alert alert-danger",4,"ngIf"],["type","checkbox","id","low_enabled",1,"form-check-input",3,"ngModel","ngModelChange"],["for","low_enabled",1,"form-check-label",3,"translate"],["for","low_interval",3,"translate"],["id","low_interval","name","low_interval","required","",1,"custom-select",3,"ngModel","ngModelChange"],[1,"alert","alert-danger"],["id","low_schedule","rows","5","name","low_schedule",1,"form-control","pre-scrollable",3,"placeholder","ngModel","ngModelChange"],["type","checkbox","name","low_shutdownAfterTransfer","id","low_shutdownAfterTransfer",1,"form-check-input",3,"ngModel","ngModelChange"],["for","low_shutdownAfterTransfer",1,"form-check-label",3,"innerHTML"],["for","dummyload",3,"translate"],["id","dummyload","name","dummyload",1,"custom-select",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"label",1),r["\u0275\u0275text"](2,">"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"select",2),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.wittyPi.normal.interval=e}),r["\u0275\u0275element"](4,"option",3),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275pipe"](6,"translate"),r["\u0275\u0275elementStart"](7,"option",4),r["\u0275\u0275text"](8,"1min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"option",4),r["\u0275\u0275text"](10,"5min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](11,"option",4),r["\u0275\u0275text"](12,"10min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"option",4),r["\u0275\u0275text"](14,"15min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](15,"option",4),r["\u0275\u0275text"](16,"30min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"option",4),r["\u0275\u0275text"](18,"60min"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](19,"option",4),r["\u0275\u0275text"](20,"2h"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](21,"option",4),r["\u0275\u0275text"](22,"3h"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](23,"option",4),r["\u0275\u0275text"](24,"4h"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](25,"option",4),r["\u0275\u0275text"](26),r["\u0275\u0275pipe"](27,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](28,"option",4),r["\u0275\u0275text"](29),r["\u0275\u0275pipe"](30,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](31,$o,4,4,"div",5),r["\u0275\u0275template"](32,So,5,3,"div",6),r["\u0275\u0275elementStart"](33,"div",7),r["\u0275\u0275elementStart"](34,"input",8),r["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.wittyPi.enabled=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](35,"label",9),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](36,Qo,32,28,"div",10)),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.sensors.measurementInterval"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",t.settings.wittyPi.normal.interval),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngValue",void 0)("translate",r["\u0275\u0275pipeBind2"](5,22,"buttons.select",r["\u0275\u0275pureFunction1"](31,Wo,r["\u0275\u0275pipeBind1"](6,25,"settings.sensors.interval")))),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngValue",60),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",300),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",600),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",900),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",1800),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",3600),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",7200),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",10800),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",14400),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",1),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](27,27,"settings.sensors.measurementOnce")),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngValue",0),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](30,29,"settings.sensors.measurementNone")),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",1===t.settings.wittyPi.normal.interval),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",1===t.settings.wittyPi.normal.interval&&!0===t.settings.wittyPi.normal.shutdownAfterTransfer),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",t.settings.wittyPi.enabled),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("translate","settings.wittypi.enableWitty"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.settings.wittyPi.enabled))},directives:[ni,ye.SelectControlValueAccessor,ye.RequiredValidator,ye.NgControlStatus,ye.NgModel,ye.NgSelectOption,ye["\u0275angular_packages_forms_forms_x"],i.l,ye.CheckboxControlValueAccessor,i.k,ye.DefaultValueAccessor,ye.NumberValueAccessor,Vr.MinValidator,Vr.MaxValidator],pipes:[ri],styles:[""]}),e})();function Xo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",42),r["\u0275\u0275elementStart"](1,"a",43),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",44),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.notAP"),r["\u0275\u0275sanitizeHtml"]))}function Yo(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",45),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementStart"](3,"div",46),r["\u0275\u0275elementStart"](4,"button",6),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().saveSettings()}),r["\u0275\u0275text"](5,"Speichern"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"button",47),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().undoChanges()}),r["\u0275\u0275text"](7,"\xc4nderungen verwerfen"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](8,"div",8),r["\u0275\u0275elementEnd"]()}2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](2,3,"alerts.changedSettings")," "),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("translate","buttons.save"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","buttons.undo"))}function Jo(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",48),r["\u0275\u0275elementStart"](1,"a",43),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",44),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.saved"),r["\u0275\u0275sanitizeHtml"]))}function ea(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",49),r["\u0275\u0275elementStart"](1,"a",43),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"span",44),r["\u0275\u0275pipe"](4,"translate"),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](4,1,"alerts.errorSaving"),r["\u0275\u0275sanitizeHtml"]))}function ta(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",14),r["\u0275\u0275elementStart"](1,"div",50),r["\u0275\u0275elementStart"](2,"h5",16),r["\u0275\u0275elementStart"](3,"button",51),r["\u0275\u0275text"](4),r["\u0275\u0275pipe"](5,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",52),r["\u0275\u0275elementStart"](7,"div",19),r["\u0275\u0275elementStart"](8,"app-wittypi",20),r["\u0275\u0275listener"]("settingsChange",function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().settings=t}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](5,2,"settings.wittypi.title")," "),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("settings",e.settings)}}function na(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"p"),r["\u0275\u0275element"](1,"img",62),r["\u0275\u0275elementEnd"]())}function ra(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"p"),r["\u0275\u0275element"](1,"img",63),r["\u0275\u0275elementEnd"]())}function ia(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275element"](1,"p",44),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275template"](3,na,2,0,"p",41),r["\u0275\u0275template"](4,ra,2,0,"p",41),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](2,3,"settings.connectionerror.stayconnectedAP"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf","Android"===e.getMobileOperatingSystem()),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf","iOS"===e.getMobileOperatingSystem())}}function sa(e,t){1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275element"](1,"p",44),r["\u0275\u0275pipe"](2,"translate"),r["\u0275\u0275elementContainerEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](2,1,"settings.connectionerror.stayconnectedNotAP"),r["\u0275\u0275sanitizeHtml"]))}function oa(e,t){1&e&&r["\u0275\u0275element"](0,"div",64)}const aa=function(){return{display:"block"}};function la(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"div",53),r["\u0275\u0275elementStart"](2,"div",54),r["\u0275\u0275elementStart"](3,"div",55),r["\u0275\u0275elementStart"](4,"div",56),r["\u0275\u0275elementStart"](5,"h5",57),r["\u0275\u0275text"](6,"Verbindung fehlgeschlagen"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"div",58),r["\u0275\u0275elementStart"](8,"div",44),r["\u0275\u0275pipe"](9,"translate"),r["\u0275\u0275text"](10," Die Bienenstockwaage ist gerade nicht erreichbar. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](11,ia,5,5,"ng-container",41),r["\u0275\u0275template"](12,sa,3,3,"ng-container",41),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"div",59),r["\u0275\u0275elementStart"](14,"button",60),r["\u0275\u0275listener"]("click",function(){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().getSettings()}),r["\u0275\u0275text"](15,"Erneut versuchen"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](16,oa,1,0,"div",61),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngStyle",!e.isConnected&&r["\u0275\u0275pureFunction0"](12,aa)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("translate","settings.connectionerror.title"),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind1"](9,10,"settings.connectionerror.body"),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",e.isAccessPoint),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!e.isAccessPoint),r["\u0275\u0275advance"](2),r["\u0275\u0275classProp"]("spinner",e.isLoading),r["\u0275\u0275property"]("disabled",e.isLoading)("translate","buttons.tryagain"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",!e.isConnected)}}const ua=function(e){return{container:e}};function ca(e){return new si(e,"./assets/i18n/translations_",".json")}const da=[{path:"",component:(()=>{class e{constructor(e,t){this.appService=e,this.translate=t,this.settings=new mi,this.settingsSaved=!1,this.settingsError=!1,this.isConnected=!0,this.isLoading=!1,this.enableWittyPi=!0,this.modalEnabled=!0}get isAccessPoint(){return"192.168.4.1"===window.location.hostname}processSettings(t){this.settings=e.validateSettings(t),this.saveSettingsBackup(this.settings)}static validateSettings(e){return e.ts_channels||(e.ts_channels=[],e.ts_channels.push(new vi)),e.internet||(e.internet=new di),e.sensors||(e.sensors=[]),e}static deepCopy(e){return JSON.parse(JSON.stringify(e))}saveSettingsBackup(t){this.settingsBackup=e.deepCopy(t),console.log(this.settingsBackup)}get isSettingsChanged(){return JSON.stringify(this.settings)!==JSON.stringify(this.settingsBackup)}undoChanges(){this.settings=e.deepCopy(this.settingsBackup)}getMobileOperatingSystem(){const e=navigator.userAgent||navigator.vendor||window.opera;return/windows phone/i.test(e)?"Windows Phone":/android/i.test(e)?"Android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"iOS":"unknown"}ngOnInit(){this.getSettings(),this.innerWidth=window.innerWidth}hideAlertsTimer(){this.n&&clearTimeout(this.n),this.n=window.setTimeout(()=>{this.settingsSaved=!1,this.settingsError=!1},4e3)}getSettings(){this.isLoading=!0,this.appService.getSettings().timeout(3e3).finally(()=>this.isLoading=!1).subscribe(e=>{e&&(this.processSettings(e),this.isConnected=!0)},e=>{console.error(e,e.name),!e.name||"TimeoutError"!==e.name&&"HttpErrorResponse"!==e.name||(this.isConnected=!1)})}saveSettings(){this.appService.setSettings(this.settings).timeout(5e3).subscribe(e=>{console.log(e),e&&this.processSettings(e),this.settingsSaved=!0,this.settingsError=!1,this.hideAlertsTimer(),this.isAccessPoint||this.translate.get("settings.confirm.savedAP").subscribe(e=>{window.confirm(e)&&this.boot("reboot")})},e=>{console.error(e),!e.name||"TimeoutError"!==e.name&&"HttpErrorResponse"!==e.name||(this.isConnected=!1),this.settingsError=!0,this.hideAlertsTimer()})}askForReboot(){this.translate.get("settings.confirm.reboot").subscribe(e=>{window.confirm(e)&&this.boot("reboot")})}askForShutdown(){this.translate.get("settings.confirm.shutdown").subscribe(e=>{window.confirm(e)&&this.boot("shutdown")})}boot(e="reboot"){this.isConnected=!1,this.appService.boot(e).timeout(3e3).subscribe(e=>{console.log(e)},e=>{console.error(e,e.name),!e.name||"TimeoutError"!==e.name&&"HttpErrorResponse"!==e.name||(console.log("Boot: Connection timeout."),this.isConnected=!1)},()=>{window.location.reload(!0)})}onResize(e){this.innerWidth=window.innerWidth}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ci),r["\u0275\u0275directiveInject"](ti))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-settings"]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("resize",function(e){return t.onResize(e)},!1,r["\u0275\u0275resolveWindow"])},decls:83,vars:39,consts:[["role","main",3,"ngClass"],[1,"jumbotron"],[1,"float-right"],["role","group","aria-label","Controls",1,"btn-group","btn-group-sm"],["type","button",1,"btn","btn-sm","btn-secondary",3,"translate","click"],["type","button",1,"btn","btn-sm","btn-warning",3,"translate","click"],["type","button",1,"btn","btn-sm","btn-primary",3,"translate","click"],[1,"h1",3,"translate"],[1,"clearfix"],["class","alert alert-warning","role","alert","style","margin-top:5px",4,"ngIf"],["class","alert alert-info","role","alert",4,"ngIf"],["class","alert alert-success myAlert-top","role","alert",4,"ngIf"],["class","alert alert-danger myAlert-top","role","alert",4,"ngIf"],["id","accordion"],[1,"card"],["id","headingOne",1,"card-header"],[1,"mb-0"],["data-toggle","collapse","data-target","#collapseOne","aria-expanded","true","aria-controls","collapseOne",1,"btn","btn-link","collapsed"],["id","collapseOne","aria-labelledby","headingOne","data-parent","#accordion",1,"collapse"],[1,"card-body"],[3,"settings","settingsChange"],["id","headingTwo",1,"card-header"],["data-toggle","collapse","data-target","#collapseTwo","aria-expanded","false","aria-controls","collapseTwo",1,"btn","btn-link","collapsed"],["id","collapseTwo","aria-labelledby","headingTwo","data-parent","#accordion",1,"collapse"],[3,"wifi","wifiChange"],["id","headingThree",1,"card-header"],["data-toggle","collapse","data-target","#collapseThree","aria-expanded","false","aria-controls","collapseThree",1,"btn","btn-link","collapsed"],["id","collapseThree","aria-labelledby","headingThree","data-parent","#accordion",1,"collapse"],["id","headingFour",1,"card-header"],["data-toggle","collapse","data-target","#collapseFour","aria-expanded","false","aria-controls","collapseFour",1,"btn","btn-link","collapsed"],["id","collapseFour","aria-labelledby","headingFour","data-parent","#accordion",1,"collapse"],["id","headingEight",1,"card-header"],["data-toggle","collapse","data-target","#collapseEight","aria-expanded","false","aria-controls","collapseEight",1,"btn","btn-link","collapsed"],["id","collapseEight","aria-labelledby","headingEight","data-parent","#accordion",1,"collapse"],["id","headingFive",1,"card-header"],["data-toggle","collapse","data-target","#collapseFive","aria-expanded","false","aria-controls","collapseFive",1,"btn","btn-link","collapsed"],["id","collapseFive","aria-labelledby","headingFive","data-parent","#accordion",1,"collapse"],["id","headingSeven",1,"card-header"],["data-toggle","collapse","data-target","#collapseSeven","aria-expanded","false","aria-controls","collapseSeven",1,"btn","btn-link","collapsed"],["id","collapseSeven","aria-labelledby","headingSeven","data-parent","#accordion",1,"collapse"],["class","card",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-warning",2,"margin-top","5px"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["role","alert",1,"alert","alert-info"],["role","group","aria-label","Controls",1,"btn-group","btn-group-sm","float-right"],["type","button",1,"btn","btn-sm","btn-info",3,"translate","click"],["role","alert",1,"alert","alert-success","myAlert-top"],["role","alert",1,"alert","alert-danger","myAlert-top"],["id","headingSix",1,"card-header"],["data-toggle","collapse","data-target","#collapseSix","aria-expanded","false","aria-controls","collapseSix",1,"btn","btn-link","collapsed"],["id","collapseSix","aria-labelledby","headingSix","data-parent","#accordion",1,"collapse"],["tabindex","0","role","dialog",1,"modal","fade","show",3,"ngStyle"],["role","document",1,"modal-dialog",2,"overflow-y","initial"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"translate"],[1,"modal-body",2,"max-height","250px","overflow-y","auto"],[1,"modal-footer"],["type","button",1,"btn","btn-primary",3,"disabled","translate","click"],["class","modal-backdrop fade show",4,"ngIf"],["src","assets/images/screenshot-stayconnected-Android.png","alt","Screenshot",1,"rounded","img-fluid"],["src","assets/images/screenshot-stayconnected-iOS.jpeg","alt","Screenshot",1,"rounded","img-fluid"],[1,"modal-backdrop","fade","show"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"main",0),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275elementStart"](2,"div",2),r["\u0275\u0275elementStart"](3,"div",3),r["\u0275\u0275elementStart"](4,"button",4),r["\u0275\u0275listener"]("click",function(){return t.askForReboot()}),r["\u0275\u0275text"](5,"Neustarten"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"button",5),r["\u0275\u0275listener"]("click",function(){return t.askForShutdown()}),r["\u0275\u0275text"](7,"Ausschalten"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"button",6),r["\u0275\u0275listener"]("click",function(){return t.saveSettings()}),r["\u0275\u0275text"](9,"Speichern"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"h1",7),r["\u0275\u0275text"](11,"Wartungsmodus"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](12,"div",8),r["\u0275\u0275template"](13,Xo,5,3,"div",9),r["\u0275\u0275template"](14,Yo,9,5,"div",10),r["\u0275\u0275template"](15,Jo,5,3,"div",11),r["\u0275\u0275template"](16,ea,5,3,"div",12),r["\u0275\u0275elementStart"](17,"div",13),r["\u0275\u0275elementStart"](18,"div",14),r["\u0275\u0275elementStart"](19,"div",15),r["\u0275\u0275elementStart"](20,"h5",16),r["\u0275\u0275elementStart"](21,"button",17),r["\u0275\u0275text"](22),r["\u0275\u0275pipe"](23,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](24,"div",18),r["\u0275\u0275elementStart"](25,"div",19),r["\u0275\u0275elementStart"](26,"app-thingspeak",20),r["\u0275\u0275listener"]("settingsChange",function(e){return t.settings=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](27,"div",14),r["\u0275\u0275elementStart"](28,"div",21),r["\u0275\u0275elementStart"](29,"h5",16),r["\u0275\u0275elementStart"](30,"button",22),r["\u0275\u0275text"](31),r["\u0275\u0275pipe"](32,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](33,"div",23),r["\u0275\u0275elementStart"](34,"div",19),r["\u0275\u0275elementStart"](35,"app-internet",24),r["\u0275\u0275listener"]("wifiChange",function(e){return t.settings.internet=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](36,"div",14),r["\u0275\u0275elementStart"](37,"div",25),r["\u0275\u0275elementStart"](38,"h5",16),r["\u0275\u0275elementStart"](39,"button",26),r["\u0275\u0275text"](40),r["\u0275\u0275pipe"](41,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](42,"div",27),r["\u0275\u0275elementStart"](43,"div",19),r["\u0275\u0275elementStart"](44,"app-sensors",20),r["\u0275\u0275listener"]("settingsChange",function(e){return t.settings=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](45,"div",14),r["\u0275\u0275elementStart"](46,"div",28),r["\u0275\u0275elementStart"](47,"h5",16),r["\u0275\u0275elementStart"](48,"button",29),r["\u0275\u0275text"](49),r["\u0275\u0275pipe"](50,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](51,"div",30),r["\u0275\u0275elementStart"](52,"div",19),r["\u0275\u0275element"](53,"app-measurement"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](54,"div",14),r["\u0275\u0275elementStart"](55,"div",31),r["\u0275\u0275elementStart"](56,"h5",16),r["\u0275\u0275elementStart"](57,"button",32),r["\u0275\u0275text"](58),r["\u0275\u0275pipe"](59,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](60,"div",33),r["\u0275\u0275elementStart"](61,"div",19),r["\u0275\u0275elementStart"](62,"app-offline",20),r["\u0275\u0275listener"]("settingsChange",function(e){return t.settings=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](63,"div",14),r["\u0275\u0275elementStart"](64,"div",34),r["\u0275\u0275elementStart"](65,"h5",16),r["\u0275\u0275elementStart"](66,"button",35),r["\u0275\u0275text"](67),r["\u0275\u0275pipe"](68,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](69,"div",36),r["\u0275\u0275elementStart"](70,"div",19),r["\u0275\u0275elementStart"](71,"app-log",20),r["\u0275\u0275listener"]("settingsChange",function(e){return t.settings=e}),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](72,"div",14),r["\u0275\u0275elementStart"](73,"div",37),r["\u0275\u0275elementStart"](74,"h5",16),r["\u0275\u0275elementStart"](75,"button",38),r["\u0275\u0275text"](76),r["\u0275\u0275pipe"](77,"translate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](78,"div",39),r["\u0275\u0275elementStart"](79,"div",19),r["\u0275\u0275element"](80,"app-update"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](81,ta,9,4,"div",40),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](82,la,17,13,"ng-container",41)),2&e&&(r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](37,ua,t.innerWidth>600)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("translate","buttons.reboot"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","buttons.shutdown"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","buttons.save"),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("translate","title"),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",!t.isAccessPoint),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.isSettingsChanged),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.settingsSaved),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.settingsError),r["\u0275\u0275advance"](6),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](23,23,"settings.thingspeak.title")," "),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("settings",t.settings),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](32,25,"settings.internet.title")," "),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("wifi",t.settings.internet),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](41,27,"settings.sensors.title")," "),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("settings",t.settings),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](50,29,"settings.measurement.title")," "),r["\u0275\u0275advance"](9),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](59,31,"settings.offline.title")," "),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("settings",t.settings),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](68,33,"settings.log.title")," "),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("settings",t.settings),r["\u0275\u0275advance"](5),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](77,35,"settings.update.title")," "),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("ngIf",t.enableWittyPi),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.modalEnabled))},directives:[i.j,ni,i.l,ji,Zi,zs,to,oo,ho,Co,Zo,i.m],pipes:[ri],styles:[".myAlert-top[_ngcontent-%COMP%]{top:5px}.myAlert-bottom[_ngcontent-%COMP%], .myAlert-top[_ngcontent-%COMP%]{position:fixed;left:2%;width:96%;z-index:99}.myAlert-bottom[_ngcontent-%COMP%]{bottom:5px}"]}),e})()},{path:"**",redirectTo:"/"}];let ha=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e,bootstrap:[ui]}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[ve],imports:[[M,ve,ye.FormsModule,ye.ReactiveFormsModule,Vr.CustomFormsModule,ii.forRoot({loader:{provide:Dr,useFactory:ca,deps:[ne]}}),Cr.forRoot(da,{relativeLinkResolution:"legacy"})]]}),e})();Object(r.enableProdMode)(),V().bootstrapModule(ha).catch(e=>console.log(e))},zx2A:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return l});var r=n("7o/Q"),i=n("HDdC"),s=n("SeVD");class o extends r.a{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends r.a{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function l(e,t){if(!t.closed)return e instanceof i.a?e.subscribe(t):Object(s.a)(e)(t)}}},[[0,0]]]); \ No newline at end of file diff --git a/dist/main-es5.d6b455cd2dbc20fd4437.js b/dist/main-es5.292b46ed6a974d3ed3a6.js similarity index 79% rename from dist/main-es5.d6b455cd2dbc20fd4437.js rename to dist/main-es5.292b46ed6a974d3ed3a6.js index 8de8916..1ed620d 100644 --- a/dist/main-es5.d6b455cd2dbc20fd4437.js +++ b/dist/main-es5.292b46ed6a974d3ed3a6.js @@ -1 +1 @@ -!function(){function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e){var t="function"==typeof Map?new Map:void 0;return(n=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return r(e,arguments,v(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),c(i,e)})(e)}function r(e,t,n){return(r=p()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i}).apply(null,arguments)}function i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,o=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw o}}}}function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;s--)n=t.substring(s,s+1),o=parseInt(n,10),u+=a&&(o*=2)>=10?o%10+1:o,a=!a;return Boolean(u%10==0&&t)?null:{creditCard:!0}}},"128B":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("Kqap"),i=n("BFxc"),o=n("xbPD"),a=n("mCNh");function u(e,t){return arguments.length>=2?function(n){return Object(a.a)(Object(r.a)(e,t),Object(i.a)(1),Object(o.a)(t))(n)}:function(t){return Object(a.a)(Object(r.a)(function(t,n,r){return e(t,n,r+1)}),Object(i.a)(1))(t)}}},"1gPL":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.equal=function(e){return function(t){return i.isPresent(r.Validators.required(t))||e===t.value?null:{equal:!0}}}},"1uah":function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return c});var r=n("yCtX"),i=n("DH7j"),o=n("7o/Q"),a=n("Lhse"),u=n("zx2A");function s(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]||Object.create(null);return g(this,n),(i=t.call(this,e)).resultSelector=r,i.iterators=[],i.active=0,i.resultSelector="function"==typeof r?r:void 0,i}return y(n,[{key:"_next",value:function(e){var t=this.iterators;Object(i.a)(e)?t.push(new p(e)):t.push("function"==typeof e[a.a]?new h(e[a.a]()):new v(this.destination,this,e))}},{key:"_complete",value:function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var n=0;nthis.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}]),e}(),v=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).parent=r,o.observable=i,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return y(n,[{key:a.a,value:function(){return this}},{key:"next",value:function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(e){this.buffer.push(e),this.parent.checkIterators()}},{key:"subscribe",value:function(){return Object(u.c)(this.observable,new u.a(this))}}]),n}(u.b)},"29s/":function(e,t,n){var r=n("WEpk"),i=n("5T2Y"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("uOPS")?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},"2GTP":function(e,t,n){var r=n("eaoh");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("XNiG"),i=n("9ppp"),o=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this))._value=e,r}return y(n,[{key:"_subscribe",value:function(e){var t=s(v(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value}},{key:"next",value:function(e){s(v(n.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),n}(r.a)},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},"2faE":function(e,t,n){var r=n("5K7Z"),i=n("eUtF"),o=n("G8Mo"),a=Object.defineProperty;t.f=n("jmDH")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"35yN":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("6Axs"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.validate=function(e){return o.dateISO(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","dateISO","","formControlName",""],["","dateISO","","formControl",""],["","dateISO","","ngModel",""]],features:[a.\u0275\u0275ProvidersFeature([u])]}),e}();t.DateISOValidator=s},"3N8a":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i.pending=!1,i}return y(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){l(n,e);var t=d(n);function n(e,r){return g(this,n),t.call(this)}return y(n,[{key:"schedule",value:function(e){return this}}]),n}(n("quSY").a))},"3Pt+":function(e,t,n){"use strict";n.r(t),n.d(t,"AbstractControl",function(){return Ce}),n.d(t,"AbstractControlDirective",function(){return N}),n.d(t,"AbstractFormGroupDirective",function(){return Te}),n.d(t,"COMPOSITION_BUFFER_MODE",function(){return m}),n.d(t,"CheckboxControlValueAccessor",function(){return p}),n.d(t,"CheckboxRequiredValidator",function(){return Je}),n.d(t,"ControlContainer",function(){return D}),n.d(t,"DefaultValueAccessor",function(){return b}),n.d(t,"EmailValidator",function(){return nt}),n.d(t,"FormArray",function(){return Se}),n.d(t,"FormArrayName",function(){return ze}),n.d(t,"FormBuilder",function(){return ht}),n.d(t,"FormControl",function(){return xe}),n.d(t,"FormControlDirective",function(){return Le}),n.d(t,"FormControlName",function(){return Qe}),n.d(t,"FormGroup",function(){return $e}),n.d(t,"FormGroupDirective",function(){return He}),n.d(t,"FormGroupName",function(){return qe}),n.d(t,"FormsModule",function(){return vt}),n.d(t,"MaxLengthValidator",function(){return at}),n.d(t,"MinLengthValidator",function(){return it}),n.d(t,"NG_ASYNC_VALIDATORS",function(){return C}),n.d(t,"NG_VALIDATORS",function(){return k}),n.d(t,"NG_VALUE_ACCESSOR",function(){return f}),n.d(t,"NgControl",function(){return F}),n.d(t,"NgControlStatus",function(){return H}),n.d(t,"NgControlStatusGroup",function(){return U}),n.d(t,"NgForm",function(){return Ie}),n.d(t,"NgModel",function(){return Ne}),n.d(t,"NgModelGroup",function(){return Ve}),n.d(t,"NgSelectOption",function(){return ee}),n.d(t,"NumberValueAccessor",function(){return W}),n.d(t,"PatternValidator",function(){return st}),n.d(t,"RadioControlValueAccessor",function(){return K}),n.d(t,"RangeValueAccessor",function(){return Z}),n.d(t,"ReactiveFormsModule",function(){return gt}),n.d(t,"RequiredValidator",function(){return Ye}),n.d(t,"SelectControlValueAccessor",function(){return J}),n.d(t,"SelectMultipleControlValueAccessor",function(){return re}),n.d(t,"VERSION",function(){return pt}),n.d(t,"Validators",function(){return $}),n.d(t,"\u0275InternalFormsSharedModule",function(){return ft}),n.d(t,"\u0275NgNoValidate",function(){return De}),n.d(t,"\u0275NgSelectMultipleOption",function(){return ie}),n.d(t,"\u0275angular_packages_forms_forms_a",function(){return lt}),n.d(t,"\u0275angular_packages_forms_forms_b",function(){return ct}),n.d(t,"\u0275angular_packages_forms_forms_ba",function(){return Xe}),n.d(t,"\u0275angular_packages_forms_forms_bb",function(){return tt}),n.d(t,"\u0275angular_packages_forms_forms_bc",function(){return rt}),n.d(t,"\u0275angular_packages_forms_forms_bd",function(){return ot}),n.d(t,"\u0275angular_packages_forms_forms_be",function(){return ut}),n.d(t,"\u0275angular_packages_forms_forms_c",function(){return dt}),n.d(t,"\u0275angular_packages_forms_forms_d",function(){return ft}),n.d(t,"\u0275angular_packages_forms_forms_e",function(){return h}),n.d(t,"\u0275angular_packages_forms_forms_f",function(){return v}),n.d(t,"\u0275angular_packages_forms_forms_g",function(){return L}),n.d(t,"\u0275angular_packages_forms_forms_h",function(){return B}),n.d(t,"\u0275angular_packages_forms_forms_i",function(){return Ee}),n.d(t,"\u0275angular_packages_forms_forms_j",function(){return Pe}),n.d(t,"\u0275angular_packages_forms_forms_k",function(){return Ae}),n.d(t,"\u0275angular_packages_forms_forms_l",function(){return q}),n.d(t,"\u0275angular_packages_forms_forms_m",function(){return z}),n.d(t,"\u0275angular_packages_forms_forms_n",function(){return G}),n.d(t,"\u0275angular_packages_forms_forms_o",function(){return Q}),n.d(t,"\u0275angular_packages_forms_forms_p",function(){return Re}),n.d(t,"\u0275angular_packages_forms_forms_q",function(){return Fe}),n.d(t,"\u0275angular_packages_forms_forms_r",function(){return Ke}),n.d(t,"\u0275angular_packages_forms_forms_s",function(){return Be}),n.d(t,"\u0275angular_packages_forms_forms_t",function(){return Ue}),n.d(t,"\u0275angular_packages_forms_forms_u",function(){return We}),n.d(t,"\u0275angular_packages_forms_forms_v",function(){return X}),n.d(t,"\u0275angular_packages_forms_forms_w",function(){return te}),n.d(t,"\u0275angular_packages_forms_forms_x",function(){return ie}),n.d(t,"\u0275angular_packages_forms_forms_y",function(){return De}),n.d(t,"\u0275angular_packages_forms_forms_z",function(){return Ze});var r=n("fXoL"),a=n("ofXK"),u=n("cp0P"),s=n("Cfvw"),c=n("lJxs"),f=new r.InjectionToken("NgValueAccessor"),h={provide:f,useExisting:Object(r.forwardRef)(function(){return p}),multi:!0},p=function(){var e=function(){function e(t,n){g(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return y(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([h])]}),e}(),v={provide:f,useExisting:Object(r.forwardRef)(function(){return b}),multi:!0},m=new r.InjectionToken("CompositionEventMode"),b=function(){var e=function(){function e(t,n,r){var i;g(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=r,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=Object(a.s)()?Object(a.s)().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return y(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](m,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[r["\u0275\u0275ProvidersFeature"]([v])]}),e}();function _(e){return null==e||0===e.length}function w(e){return null!=e&&"number"==typeof e.length}var k=new r.InjectionToken("NgValidators"),C=new r.InjectionToken("NgAsyncValidators"),x=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,$=function(){function e(){g(this,e)}return y(e,null,[{key:"min",value:function(e){return function(t){if(_(t.value)||_(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&ne?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return _(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return _(e.value)||x.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return _(t.value)||!w(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(_(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(S);return 0==t.length?null:function(e){return O(I(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(S);return 0==t.length?null:function(e){var n=I(e,t).map(E);return Object(u.a)(n).pipe(Object(c.a)(O))}}}]),e}();function S(e){return null!=e}function E(e){var t=Object(r["\u0275isPromise"])(e)?Object(s.a)(e):e;return Object(r["\u0275isObservable"])(t),t}function O(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function I(e,t){return t.map(function(t){return t(e)})}function T(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function j(e){return null!=e?$.compose(T(e)):null}function A(e){return null!=e?$.composeAsync(T(e)):null}function V(e,t){return null===e?[t]:Array.isArray(e)?[].concat(o(e),[t]):[e,t]}function P(e){return e._rawValidators}function M(e){return e._rawAsyncValidators}var N=function(){var e=function(){function e(){g(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return y(e,[{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=j(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=A(this._rawAsyncValidators)}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e}),e}(),D=function(){var e=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(N);return e.\u0275fac=function(t){return R(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e}(),R=r["\u0275\u0275getInheritedFactory"](D),F=function(e){l(n,e);var t=d(n);function n(){var e;return g(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(N),L=function(){function e(t){g(this,e),this._cd=t}return y(e,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),e}(),B={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},H=function(){var e=function(e){l(n,e);var t=d(n);function n(e){return g(this,n),t.call(this,e)}return n}(L);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](F,2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e}(),U=function(){var e=function(e){l(n,e);var t=d(n);function n(e){return g(this,n),t.call(this,e)}return n}(L);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](D,2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e}(),q={provide:f,useExisting:Object(r.forwardRef)(function(){return W}),multi:!0},W=function(){var e=function(){function e(t,n){g(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return y(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([q])]}),e}(),z={provide:f,useExisting:Object(r.forwardRef)(function(){return K}),multi:!0},G=function(){var e=function(){function e(){g(this,e),this._accessors=[]}return y(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e}(),K=function(){var e=function(){function e(t,n,r,i){g(this,e),this._renderer=t,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return y(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(F),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](G),r["\u0275\u0275directiveInject"](r.Injector))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r["\u0275\u0275ProvidersFeature"]([z])]}),e}(),Q={provide:f,useExisting:Object(r.forwardRef)(function(){return Z}),multi:!0},Z=function(){var e=function(){function e(t,n){g(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return y(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([Q])]}),e}(),X={provide:f,useExisting:Object(r.forwardRef)(function(){return J}),multi:!0};function Y(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var J=function(){var e=function(){function e(t,n){g(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return y(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=Y(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o0&&e.setValidators(r.filter(function(e){return e!==t.validator}))}if(null!==t.asyncValidator){var i=M(e);Array.isArray(i)&&i.length>0&&e.setAsyncValidators(i.filter(function(e){return e!==t.asyncValidator}))}}if(n){var o=function(){};ue(t._rawValidators,o),ue(t._rawAsyncValidators,o)}}function ce(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function de(e,t){se(e,t,!1)}function fe(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}var he=[p,Z,W,J,re,K];function pe(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function ve(e,t){if(!t)return null;Array.isArray(t);var n=void 0,r=void 0,i=void 0;return t.forEach(function(e){var t;e.constructor===b?n=e:(t=e,he.some(function(e){return t.constructor===e})?r=e:i=e)}),i||r||n||null}function ge(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function me(e,t,n,i){Object(r.isDevMode)()&&"never"!==i&&((null!==i&&"once"!==i||t._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(t._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function ye(e){return(ke(e)?e.validators:e)||null}function be(e){return Array.isArray(e)?j(e):e||null}function _e(e,t){return(ke(t)?t.asyncValidators:e)||null}function we(e){return Array.isArray(e)?A(e):e||null}function ke(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Ce=function(){function e(t,n){g(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=be(this._rawValidators),this._composedAsyncValidatorFn=we(this._rawAsyncValidators)}return y(e,[{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=be(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=we(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=E(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var r=e;return t.forEach(function(e){r=r instanceof $e?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof Se&&r.at(e)||null}),r}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new r.EventEmitter,this.statusChanges=new r.EventEmitter}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){ke(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),xe=function(e){l(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return g(this,n),(e=t.call(this,ye(i),_e(o,i)))._onChange=[],e._applyFormState(r),e._setUpdateStrategy(i),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),e}return y(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){ge(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){ge(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Ce),$e=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,ye(r),_e(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return y(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach(function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof xe?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Ce),Se=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,ye(r),_e(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return y(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,r){t._throwIfControlMissing(r),t.at(r).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach(function(e,r){t.at(r)&&t.at(r).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof xe?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=i(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(Ce),Ee={provide:D,useExisting:Object(r.forwardRef)(function(){return Ie})},Oe=Promise.resolve(null),Ie=function(){var e=function(e){l(n,e);var t=d(n);function n(e,i){var o;return g(this,n),(o=t.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new r.EventEmitter,o.form=new $e({},j(e),A(i)),o}return y(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;Oe.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),ae(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Oe.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),ge(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;Oe.then(function(){var n=t._findContainer(e.path),r=new $e({});de(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;Oe.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Oe.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,pe(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](k,10),r["\u0275\u0275directiveInject"](C,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Ee]),r["\u0275\u0275InheritDefinitionFeature"]]}),e}(),Te=function(){var e=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return oe(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}}]),n}(D);return e.\u0275fac=function(t){return je(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e}(),je=r["\u0275\u0275getInheritedFactory"](Te),Ae={provide:D,useExisting:Object(r.forwardRef)(function(){return Ve})},Ve=function(){var e=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this))._parent=e,o._setValidators(r),o._setAsyncValidators(i),o}return y(n,[{key:"_checkParentType",value:function(){}}]),n}(Te);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](D,5),r["\u0275\u0275directiveInject"](k,10),r["\u0275\u0275directiveInject"](C,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[r["\u0275\u0275ProvidersFeature"]([Ae]),r["\u0275\u0275InheritDefinitionFeature"]]}),e}(),Pe={provide:F,useExisting:Object(r.forwardRef)(function(){return Ne})},Me=Promise.resolve(null),Ne=function(){var e=function(e){l(n,e);var t=d(n);function n(e,i,o,a){var u;return g(this,n),(u=t.call(this)).control=new xe,u._registered=!1,u.update=new r.EventEmitter,u._parent=e,u._setValidators(i),u._setAsyncValidators(o),u.valueAccessor=ve(0,a),u}return y(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),fe(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){ae(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Me.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;Me.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})}},{key:"path",get:function(){return this._parent?oe(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}}]),n}(F);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](D,9),r["\u0275\u0275directiveInject"](k,10),r["\u0275\u0275directiveInject"](C,10),r["\u0275\u0275directiveInject"](f,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r["\u0275\u0275ProvidersFeature"]([Pe]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e}(),De=function(){var e=function e(){g(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),Re=new r.InjectionToken("NgModelWithFormControlWarning"),Fe={provide:F,useExisting:Object(r.forwardRef)(function(){return Le})},Le=function(){var e=function(e){l(n,e);var t=d(n);function n(e,i,o,a){var u;return g(this,n),(u=t.call(this))._ngModelWarningConfig=a,u.update=new r.EventEmitter,u._ngModelWarningSent=!1,u._setValidators(e),u._setAsyncValidators(i),u.valueAccessor=ve(0,o),u}return y(n,[{key:"ngOnChanges",value:function(e){this._isControlChanged(e)&&(ae(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),fe(e,this.viewModel)&&(me(0,n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}},{key:"isDisabled",set:function(e){}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}}]),n}(F);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](k,10),r["\u0275\u0275directiveInject"](C,10),r["\u0275\u0275directiveInject"](f,10),r["\u0275\u0275directiveInject"](Re,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Fe]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e._ngModelWarningSentOnce=!1,e}(),Be={provide:D,useExisting:Object(r.forwardRef)(function(){return He})},He=function(){var e=function(e){l(n,e);var t=d(n);function n(e,i){var o;return g(this,n),(o=t.call(this)).validators=e,o.asyncValidators=i,o.submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new r.EventEmitter,o._setValidators(e),o._setAsyncValidators(i),o}return y(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return ae(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){ge(this.directives,e)}},{key:"addFormGroup",value:function(e){var t=this.form.get(e.path);de(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(e){}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){var t=this.form.get(e.path);de(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(e){}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,pe(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){var n=function(){};t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n),le(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}(t.control||null,t),n&&ae(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){se(this.form,this,!1),this._oldForm&&le(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](k,10),r["\u0275\u0275directiveInject"](C,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Be]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e}(),Ue={provide:D,useExisting:Object(r.forwardRef)(function(){return qe})},qe=function(){var e=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this))._parent=e,o._setValidators(r),o._setAsyncValidators(i),o}return y(n,[{key:"_checkParentType",value:function(){Ge(this._parent)}}]),n}(Te);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](D,13),r["\u0275\u0275directiveInject"](k,10),r["\u0275\u0275directiveInject"](C,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[r["\u0275\u0275ProvidersFeature"]([Ue]),r["\u0275\u0275InheritDefinitionFeature"]]}),e}(),We={provide:D,useExisting:Object(r.forwardRef)(function(){return ze})},ze=function(){var e=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this))._parent=e,o._setValidators(r),o._setAsyncValidators(i),o}return y(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){Ge(this._parent)}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return oe(null==this.name?this.name:this.name.toString(),this._parent)}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](D,13),r["\u0275\u0275directiveInject"](k,10),r["\u0275\u0275directiveInject"](C,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[r["\u0275\u0275ProvidersFeature"]([We]),r["\u0275\u0275InheritDefinitionFeature"]]}),e}();function Ge(e){return!(e instanceof qe||e instanceof He||e instanceof ze)}var Ke={provide:F,useExisting:Object(r.forwardRef)(function(){return Qe})},Qe=function(){var e=function(e){l(n,e);var t=d(n);function n(e,i,o,a,u){var s;return g(this,n),(s=t.call(this))._ngModelWarningConfig=u,s._added=!1,s.update=new r.EventEmitter,s._ngModelWarningSent=!1,s._parent=e,s._setValidators(i),s._setAsyncValidators(o),s.valueAccessor=ve(0,a),s}return y(n,[{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),fe(e,this.viewModel)&&(me(0,n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}},{key:"isDisabled",set:function(e){}},{key:"path",get:function(){return oe(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}}]),n}(F);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](D,13),r["\u0275\u0275directiveInject"](k,10),r["\u0275\u0275directiveInject"](C,10),r["\u0275\u0275directiveInject"](f,10),r["\u0275\u0275directiveInject"](Re,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r["\u0275\u0275ProvidersFeature"]([Ke]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e._ngModelWarningSentOnce=!1,e}(),Ze={provide:k,useExisting:Object(r.forwardRef)(function(){return Ye}),multi:!0},Xe={provide:k,useExisting:Object(r.forwardRef)(function(){return Je}),multi:!0},Ye=function(){var e=function(){function e(){g(this,e),this._required=!1}return y(e,[{key:"validate",value:function(e){return this.required?$.required(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("required",t.required?"":null)},inputs:{required:"required"},features:[r["\u0275\u0275ProvidersFeature"]([Ze])]}),e}(),Je=function(){var e=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"validate",value:function(e){return this.required?$.requiredTrue(e):null}}]),n}(Ye);return e.\u0275fac=function(t){return et(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("required",t.required?"":null)},features:[r["\u0275\u0275ProvidersFeature"]([Xe]),r["\u0275\u0275InheritDefinitionFeature"]]}),e}(),et=r["\u0275\u0275getInheritedFactory"](Je),tt={provide:k,useExisting:Object(r.forwardRef)(function(){return nt}),multi:!0},nt=function(){var e=function(){function e(){g(this,e),this._enabled=!1}return y(e,[{key:"validate",value:function(e){return this._enabled?$.email(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"email",set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[r["\u0275\u0275ProvidersFeature"]([tt])]}),e}(),rt={provide:k,useExisting:Object(r.forwardRef)(function(){return it}),multi:!0},it=function(){var e=function(){function e(){g(this,e),this._validator=$.nullValidator}return y(e,[{key:"ngOnChanges",value:function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null==this.minlength?null:this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=$.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("minlength",t.minlength?t.minlength:null)},inputs:{minlength:"minlength"},features:[r["\u0275\u0275ProvidersFeature"]([rt]),r["\u0275\u0275NgOnChangesFeature"]]}),e}(),ot={provide:k,useExisting:Object(r.forwardRef)(function(){return at}),multi:!0},at=function(){var e=function(){function e(){g(this,e),this._validator=$.nullValidator}return y(e,[{key:"ngOnChanges",value:function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null!=this.maxlength?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=$.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[r["\u0275\u0275ProvidersFeature"]([ot]),r["\u0275\u0275NgOnChangesFeature"]]}),e}(),ut={provide:k,useExisting:Object(r.forwardRef)(function(){return st}),multi:!0},st=function(){var e=function(){function e(){g(this,e),this._validator=$.nullValidator}return y(e,[{key:"ngOnChanges",value:function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=$.pattern(this.pattern)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[r["\u0275\u0275ProvidersFeature"]([ut]),r["\u0275\u0275NgOnChangesFeature"]]}),e}(),lt=[De,ee,ie,b,W,Z,p,J,re,K,H,U,Ye,it,at,st,Je,nt],ct=[Ne,Ve,Ie],dt=[Le,He,Qe,qe,ze],ft=function(){var e=function e(){g(this,e)};return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)}}),e}(),ht=function(){var e=function(){function e(){g(this,e)}return y(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),r=null,i=null,o=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(r=null!=t.validators?t.validators:null,i=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,i=null!=t.asyncValidator?t.asyncValidator:null)),new $e(n,{asyncValidators:i,updateOn:o,validators:r})}},{key:"control",value:function(e,t,n){return new xe(e,t,n)}},{key:"array",value:function(e,t,n){var r=this,i=e.map(function(e){return r._createControl(e)});return new Se(i,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n}},{key:"_createControl",value:function(e){return e instanceof xe||e instanceof $e||e instanceof Se?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e}(),pt=new r.Version("11.0.3"),vt=function(){var e=function e(){g(this,e)};return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[G],imports:[ft]}),e}(),gt=function(){var e=function(){function e(){g(this,e)}return y(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Re,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}();return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[ht,G],imports:[ft]}),e}()},"48ZK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.range=function(e){return function(t){if(!i.isPresent(e))return null;if(i.isPresent(r.Validators.required(t)))return null;var n=+t.value;return n>=e[0]&&n<=e[1]?null:{actualValue:n,requiredValue:e,range:!0}}}},"4I5i":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},"4XzM":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("89kA")},"4hzb":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("T5KR"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.max(this.max)},e.prototype.ngOnChanges=function(e){for(var t in e)"max"===t&&(this.validator=o.max(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={max:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","max","","formControlName",""],["","max","","formControl",""],["","max","","ngModel",""]],inputs:{max:"max"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.MaxValidator=s},"5+tZ":function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return c});var r=n("lJxs"),i=n("Cfvw"),o=n("zx2A");function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(o){return o.pipe(a(function(n,o){return Object(i.a)(e(n,o)).pipe(Object(r.a)(function(e,r){return t(n,e,o,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new u(e,n))})}var u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;g(this,e),this.project=t,this.concurrent=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.project,this.concurrent))}}]),e}(),s=function(e){l(n,e);var t=d(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return g(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return y(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(o.b),c=a},"5K7Z":function(e,t,n){var r=n("93I4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"5T2Y":function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"5vMV":function(e,t,n){var r=n("B+OT"),i=n("NsO/"),o=n("W070")(!1),a=n("VVlx")("IE_PROTO");e.exports=function(e,t){var n,u=i(e),s=0,l=[];for(n in u)n!=a&&r(u,n)&&l.push(n);for(;t.length>s;)r(u,n=t[s++])&&(~o(l,n)||l.push(n));return l}},"6Axs":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("35yN")),r(n("nlsq"))},"6RPL":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.rangeLength=function(e){return function(t){if(!i.isPresent(e))return null;if(i.isPresent(r.Validators.required(t)))return null;var n=t.value;return n.length>=e[0]&&n.length<=e[1]?null:{rangeLength:!0}}}},"7HRe":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("HDdC"),i=n("quSY"),o=n("kJWO"),a=n("jZKg"),u=n("Lhse"),s=n("c2HN"),l=n("I55L");function c(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[o.a]}(e))return function(e,t){return new r.a(function(n){var r=new i.a;return r.add(t.schedule(function(){var i=e[o.a]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r})}(e,t);if(Object(s.a)(e))return function(e,t){return new r.a(function(n){var r=new i.a;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r})}(e,t);if(Object(l.a)(e))return Object(a.a)(e,t);if(function(e){return e&&"function"==typeof e[u.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(function(n){var r,o=new i.a;return o.add(function(){r&&"function"==typeof r.return&&r.return()}),o.add(t.schedule(function(){r=e[u.a](),o.add(t.schedule(function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),o})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}},"7Hc7":function(e,t,n){"use strict";n.d(t,"b",function(){return h}),n.d(t,"a",function(){return p});var r=1,i=Promise.resolve(),o={};function a(e){return e in o&&(delete o[e],!0)}var u=function(e){var t=r++;return o[t]=!0,i.then(function(){return a(t)&&e()}),t},c=function(e){a(e)},f=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i}return y(n,[{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?s(v(n.prototype),"requestAsyncId",this).call(this,e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=u(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return s(v(n.prototype),"recycleAsyncId",this).call(this,e,t,r);0===e.actions.length&&(c(t),e.scheduled=void 0)}}]),n}(n("3N8a").a),h=new(function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},FpHa:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},FyfS:function(e,t,n){e.exports={default:n("Rp86"),__esModule:!0}},G8Mo:function(e,t,n){var r=n("93I4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},GkNK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("+UwR"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.validate=function(e){return o.number(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","number","","formControlName",""],["","number","","formControl",""],["","number","","ngModel",""]],features:[a.\u0275\u0275ProvidersFeature([u])]}),e}();t.NumberValidator=s},GyhO:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("LRne"),i=n("0EUg");function o(){return Object(i.a)()(Object(r.a).apply(void 0,arguments))}},HDAp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.json=function(e){if(i.isPresent(r.Validators.required(e)))return null;var t=e.value;try{var n=JSON.parse(t);if(Boolean(n)&&"object"==typeof n)return null}catch(o){}return{json:!0}}},HDdC:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r,i=n("8Qeq"),o=n("7o/Q"),a=n("2QA8"),u=n("gRHU"),s=n("kJWO"),l=n("mCNh"),c=n("2fFW"),d=((r=function(){function e(t){g(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return y(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var r=this.operator,i=function(e,t,n){if(e){if(e instanceof o.a)return e;if(e[a.a])return e[a.a]()}return e||t||n?new o.a(e,t,n):new o.a(u.a)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),c.a.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),Object(i.a)(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=f(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}},r,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:s.a,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:r.a.now;return g(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==h(i)?n.delegate.now():o()})).actions=[],i.active=!1,i.scheduled=void 0,i}return y(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,r):s(v(n.prototype),"schedule",this).call(this,e,t,r)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(r.a)},IzEk:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("7o/Q"),i=n("4I5i"),o=n("EY2u");function a(e){return function(t){return 0===e?Object(o.b)():t.lift(new u(e))}}var u=function(){function e(t){if(g(this,e),this.total=t,this.total<0)throw new i.a}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.total))}}]),e}(),s=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).total=r,i.count=0,i}return y(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(r.a)},JB68:function(e,t,n){var r=n("Jes0");e.exports=function(e){return Object(r(e))}},JIED:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("YLEk"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.notEqual(this.notEqual)},e.prototype.ngOnChanges=function(e){for(var t in e)"notEqual"===t&&(this.validator=o.notEqual(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={notEqual:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","notEqual","","formControlName",""],["","notEqual","","formControl",""],["","notEqual","","ngModel",""]],inputs:{notEqual:"notEqual"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.NotEqualValidator=s},JIr8:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("zx2A");function i(e){return function(t){var n=new o(e),r=t.lift(n);return n.caught=r}}var o=function(){function e(t){g(this,e),this.selector=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.selector,this.caught))}}]),e}(),a=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).selector=r,o.caught=i,o}return y(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(a){return void s(v(n.prototype),"error",this).call(this,a)}this._unsubscribeAndRecycle();var i=new r.a(this);this.add(i);var o=Object(r.c)(t,i);o!==i&&this.add(o)}}}]),n}(r.b)},JX91:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("GyhO"),i=n("z+Ro");function o(){for(var e=arguments.length,t=new Array(e),n=0;n=2&&(n=!0),function(r){return r.lift(new o(e,t,n))}}var o=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];g(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),a=function(e){l(n,e);var t=d(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return y(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(r.a)},KqfI:function(e,t,n){"use strict";function r(){}n.d(t,"a",function(){return r})},Kucq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("nKcR"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.minDate(this.minDate)},e.prototype.ngOnChanges=function(e){for(var t in e)"minDate"===t&&(this.validator=o.minDate(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={minDate:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","minDate","","formControlName",""],["","minDate","","formControl",""],["","minDate","","ngModel",""]],inputs:{minDate:"minDate"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.MinDateValidator=s},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("z+Ro"),i=n("yCtX"),o=n("jZKg");function a(){for(var e=arguments.length,t=new Array(e),n=0;n()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e.value)?null:{email:!0}}},M1xp:function(e,t,n){var r=n("a0xu");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},M6P7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t._finally=function(e){return r.finalize(e)(this)}},MPFp:function(e,t,n){"use strict";var r=n("uOPS"),i=n("Y7ZC"),o=n("kTiW"),a=n("NegM"),u=n("SBuE"),s=n("j2DC"),l=n("RfKB"),c=n("U+KD"),d=n("UWiX")("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,v,g,m){s(n,t,p);var y,b,_,w=function(e){if(!f&&e in $)return $[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",C="values"==v,x=!1,$=e.prototype,S=$[d]||$["@@iterator"]||v&&$[v],E=S||w(v),O=v?C?w("entries"):E:void 0,I="Array"==t&&$.entries||S;if(I&&(_=c(I.call(new e)))!==Object.prototype&&_.next&&(l(_,k,!0),r||"function"==typeof _[d]||a(_,d,h)),C&&S&&"values"!==S.name&&(x=!0,E=function(){return S.call(this)}),r&&!m||!f&&!x&&$[d]||a($,d,E),u[t]=E,u[k]=h,v)if(y={values:C?E:w("values"),keys:g?E:w("keys"),entries:O},m)for(b in y)b in $||o($,b,y[b]);else i(i.P+i.F*(f||x),t,y);return y}},MvwC:function(e,t,n){var r=n("5T2Y").document;e.exports=r&&r.documentElement},"NHP+":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("XNiG"),i=n("quSY"),o=function(e){l(n,e);var t=d(n);function n(){var e;return g(this,n),(e=t.apply(this,arguments)).value=null,e.hasNext=!1,e.hasCompleted=!1,e}return y(n,[{key:"_subscribe",value:function(e){return this.hasError?(e.error(this.thrownError),i.a.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),i.a.EMPTY):s(v(n.prototype),"_subscribe",this).call(this,e)}},{key:"next",value:function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)}},{key:"error",value:function(e){this.hasCompleted||s(v(n.prototype),"error",this).call(this,e)}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&s(v(n.prototype),"next",this).call(this,this.value),s(v(n.prototype),"complete",this).call(this)}}]),n}(r.a)},NJ4a:function(e,t,n){"use strict";function r(e){setTimeout(function(){throw e},0)}n.d(t,"a",function(){return r})},NJ9Y:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("sVev"),i=n("pLZG"),o=n("BFxc"),a=n("XDbj"),u=n("xbPD"),s=n("SpAZ");function l(e,t){var n=arguments.length>=2;return function(l){return l.pipe(e?Object(i.a)(function(t,n){return e(t,n,l)}):s.a,Object(o.a)(1),n?Object(u.a)(t):Object(a.a)(function(){return new r.a}))}}},NV0k:function(e,t){t.f={}.propertyIsEnumerable},NXyV:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),i=n("Cfvw"),o=n("EY2u");function a(e){return new r.a(function(t){var n;try{n=e()}catch(r){return void t.error(r)}return(n?Object(i.a)(n):Object(o.b)()).subscribe(t)})}},NegM:function(e,t,n){var r=n("2faE"),i=n("rr1i");e.exports=n("jmDH")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"NsO/":function(e,t,n){var r=n("M1xp"),i=n("Jes0");e.exports=function(e){return r(i(e))}},Nv8m:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("DH7j"),i=n("yCtX"),o=n("l7GE"),a=n("ZUHj");function u(){for(var e=arguments.length,t=new Array(e),n=0;n+e?null:{gt:!0}:null}}},Ojgd:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},P2sY:function(e,t,n){e.exports={default:n("UbbE"),__esModule:!0}},PoRY:function(e,t,n){"use strict";n.r(t),n.d(t,"parse",function(){return ve}),n.d(t,"format",function(){return ge}),n.d(t,"getNumberType",function(){return me}),n.d(t,"get_number_type",function(){return ye}),n.d(t,"isValidNumber",function(){return be}),n.d(t,"is_valid_number",function(){return _e}),n.d(t,"AsYouType",function(){return we}),n.d(t,"as_you_type",function(){return ke}),n.d(t,"asYouType",function(){return Ce}),n.d(t,"parseCustom",function(){return q}),n.d(t,"DIGITS",function(){return H}),n.d(t,"formatCustom",function(){return E}),n.d(t,"isValidNumberCustom",function(){return Y}),n.d(t,"getNumberTypeCustom",function(){return A}),n.d(t,"AsYouTypeCustom",function(){return fe}),n.d(t,"asYouTypeCustom",function(){return fe}),n.d(t,"DIGIT_PLACEHOLDER",function(){return oe}),n.d(t,"getPhoneCode",function(){return xe}),n.d(t,"getPhoneCodeCustom",function(){return $e});var r=n("YHbO"),i=n("QbLZ"),o=n.n(i),a=n("sk9p"),u=n.n(a),s=n("FyfS"),l=n.n(s);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1];"string"==typeof t&&(t="^(?:"+t+")$");var n=e.match(t);return null!==n&&n[0].length===e.length}function d(e){return e[0]}function f(e){return e[1]}function h(e){return e[2]||[]}function p(e){return e[8]}function v(e){return e[0]}function g(e){return e[1]}function m(e){return e[2]||[]}function y(e,t){return e[3]||function(e){return e[4]}(t)}function b(e,t){return e[4]||function(e){return e[7]}(t)}function _(e){return"$1"!==e&&/\d/.test(e.replace("$1",""))}function w(e){return e[5]||g(e)}function k(e,t){return t.countries[t.country_phone_code_to_countries[e][0]]}function C(e){return e[9]}function x(e,t){return C(e)?C(e)[t]:void 0}function $(e){return x(e,1)}var S={formatExtension:function(e,t){return e+" ext. "+t}};function E(e,t,n,r,i){var a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1],n=arguments[2],r=arguments[3],i=arguments[4],a=void 0,u=void 0,s=void 0,l=void 0;if("string"==typeof e)if("string"==typeof n)a={phone:e,country:t},u=n,i?(s=r,l=i):l=r;else{if(a={phone:e},"string"!=typeof t)throw new Error("Format type argument not passed for `format()`");u=t,r?(s=n,l=r):l=n}else a=e,u=t,r?(s=n,l=r):l=n;if(!l)throw new Error("Metadata is required");switch(u){case"International":case"E.164":case"International_plaintext":case"National":case"RFC3966":break;default:throw new Error('Unknown format type argument passed to "format()": "'+u+'"')}return{input:a,format_type:u,options:s=s?o()({},S,s):S,metadata:l}}(e,t,n,r,i),u=a.input,s=a.format_type,l=a.options,c=a.metadata,f=void 0;u.country&&(f=c.countries[u.country]);var h=Q(u.phone,c),p=h.country_phone_code,v=h.number;if(p){if(u.country&&f&&p!==d(f))return u.phone;f=k(p,c)}if(!f)return u.phone;switch(s){case"International":if(!v)return"+"+d(f);var g=T(v,"International",!1,f),m="+"+d(f)+" "+g;return u.ext||0===u.ext?l.formatExtension(m,u.ext):m;case"E.164":case"International_plaintext":return"+"+d(f)+u.phone;case"RFC3966":return"+"+d(f)+u.phone+(u.ext||0===u.ext?";ext="+u.ext:"");case"National":if(!v)return"";var y=T(v,"National",!1,f);return u.ext||0===u.ext?l.formatExtension(y,u.ext):y}}var O=/(\$\d)/;function I(e,t,n,r,i){var o=new RegExp(v(t)),a=y(t,i),u=!a||a&&b(t,i)&&!r;if(!n&&!u)return e.replace(o,g(t).replace(O,a));var s=e.replace(o,n?w(t):g(t));return n?j(s):s}function T(e,t,n,r){var i=function(e,t){var n=!0,r=!1,i=void 0;try{for(var o,a=l()(e);!(n=(o=a.next()).done);n=!0){var u=o.value;if(m(u).length>0){var s=m(u)[m(u).length-1];if(0!==t.search(s))continue}if(c(t,new RegExp(v(u))))return u}}catch(d){r=!0,i=d}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}(h(r),e);return i?I(e,i,"International"===t,n,r):e}function j(e){return e.replace(new RegExp("["+M+"]+","g")," ").trim()}function A(e,t,n){var r=P(e,t,n),i=r.input;if(i&&i.country){var o=i.phone,a=r.metadata.countries[i.country];if(V(o,f(a)))return V(o,function(e){return x(e,3)}(a))?"PREMIUM_RATE":V(o,function(e){return x(e,2)}(a))?"TOLL_FREE":V(o,function(e){return x(e,9)}(a))?"SHARED_COST":V(o,function(e){return x(e,8)}(a))?"VOIP":V(o,function(e){return x(e,4)}(a))?"PERSONAL_NUMBER":V(o,function(e){return x(e,7)}(a))?"PAGER":V(o,function(e){return x(e,6)}(a))?"UAN":V(o,function(e){return x(e,5)}(a))?"VOICEMAIL":V(o,function(e){return x(e,0)}(a))?$(a)?V(o,$(a))?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE":V(o,$(a))?"MOBILE":void 0}}function V(e,t){return c(e,t)}function P(e,t,n){var r=void 0,i=void 0;if("number"==typeof e&&(e=String(e)),"string"==typeof e?"string"==typeof t||void 0===t?(i=n,z(e)&&(r=q(e,t,i))):(i=t,z(e)&&(r=q(e,i))):(e&&e.phone&&z(e.phone)&&(r=e),i=t),!i||!i.countries)throw new Error("Metadata is required");return{input:r,metadata:i}}var M="-\u2010-\u2015\u2212\u30fc\uff0d\uff0f/\uff0e. \xa0\xad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d\\[\\]~\u2053\u223c\uff5e",N=";ext=([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})|[ \xa0\\t,]*(?:e?xt(?:ensi(?:o\u0301?|\xf3))?n?|\uff45?\uff58\uff54\uff4e?|[;,x\uff58#\uff03~\uff5e]|int|anexo|\uff49\uff4e\uff54)[:\\.\uff0e]?[ \xa0\\t,-]*([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})#?|[- ]+([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,5})#",D=new RegExp("(?:"+N+")$","i"),R=new RegExp("^[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{2}$|^[+\uff0b]{0,1}(?:["+M+"]*[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]){3,}["+M+"0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]*(?:"+N+")?$","i"),F=new RegExp("[+\uff0b0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]"),L=new RegExp("[^0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]+$"),B=new RegExp("^[+\uff0b]+"),H={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","\uff10":"0","\uff11":"1","\uff12":"2","\uff13":"3","\uff14":"4","\uff15":"5","\uff16":"6","\uff17":"7","\uff18":"8","\uff19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9"},U={country:{}};function q(e,t,n){var r=function(e,t,n){var r=void 0,i=void 0,a=void 0;if("number"==typeof e&&(e=String(e)),"string"==typeof e&&(r=e),"string"==typeof t?(i={country:{restrict:t}},a=n):n?(i=t,a=n):a=t,!a||!a.countries)throw new Error("Metadata is required");return{text:r,options:i=i?o()({},U,i):U,metadata:a}}(e,t,n),i=r.text,a=r.options,s=r.metadata;if(a.country.default&&!s.countries[a.country.default])throw new Error("Unknown country code: "+a.country.default);if(a.country.restrict&&!s.countries[a.country.restrict])throw new Error("Unknown country code: "+a.country.restrict);var h=void 0,p=void 0;if(i&&0===i.indexOf("tel:")){var v=!0,g=!1,m=void 0;try{for(var y,b=l()(i.split(";"));!(v=(y=b.next()).done);v=!0){var _=y.value.split(":"),w=u()(_,2),C=w[1];switch(w[0]){case"tel":h=C;break;case"ext":p=C;break;case"phone-context":"+"===C[0]&&(h=C+h)}}}catch(V){g=!0,m=V}finally{try{!v&&b.return&&b.return()}finally{if(g)throw m}}}else h=G(i);if(!z(h))return{};var x=function(e){var t=e.search(D);if(t<0)return{};var n=e.slice(0,t);if(!z(n))return{};for(var r=e.match(D),i=1;i0)return{number:n,extension:r[i]};i++}}(h);x.extension&&(h=x.number,p=x.extension);var $=Q(h,s),S=$.country_phone_code,E=$.number;if(!E)return{};var O=void 0,I=void 0,T=!1;if(S){if(T=!0,a.country.restrict&&S!==d(s.countries[a.country.restrict]))return{};I=k(S,s)}else(a.country.restrict||a.country.default)&&(I=s.countries[O=a.country.restrict||a.country.default],E=W(h));if(!I)return{};var j=E;if(T||(j=Z(E,I)),!O){if(!(O=X(S,j,s)))return{};I=s.countries[O]}if(j.length>17)return{};if(!c(j,new RegExp(f(I))))return{};var A={country:O,phone:j};return p&&(A.ext=p),A}function W(e){return function(e,t){var n="",r=!0,i=!1,o=void 0;try{for(var a,u=l()(e);!(r=(a=u.next()).done);r=!0){var s=t[a.value.toUpperCase()];void 0!==s&&(n+=s)}}catch(c){i=!0,o=c}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,H)}function z(e){return e.length>=2&&c(e,R)}function G(e){if(!e||e.length>250)return"";var t=e.search(F);return t<0?"":e.slice(t).replace(L,"")}function K(e){if(!e)return"";var t=B.test(e);return e=W(e),t?"+"+e:e}function Q(e,t){if(!(e=K(e)))return{};if("+"!==e[0])return{number:e};if("0"===(e=e.slice(1))[0])return{};for(var n=1;n<=3&&n<=e.length;){var r=e.slice(0,n);if(t.country_phone_code_to_countries[r])return{country_phone_code:r,number:e.slice(n)};n++}return{}}function Z(e,t){var n=function(e){var t=e[5];return t||(t=function(e){return e[3]}(e)),t}(t);if(!e||!n)return e;var r=new RegExp("^(?:"+n+")"),i=r.exec(e);if(!i)return e;var o,a=i[i.length-1],u=function(e){return e[6]}(t);o=u&&a?e.replace(r,u):e.slice(i[0].length);var s=new RegExp(f(t));return c(e,s)&&!c(o,s)?e:o}function X(e,t,n){var r=n.country_phone_code_to_countries[e];if(1===r.length)return r[0];var i=!0,o=!1,a=void 0;try{for(var u,s=l()(r);!(i=(u=s.next()).done);i=!0){var c=u.value,d=n.countries[c];if(p(d)){if(t&&0===t.search(p(d)))return c}else if(A({phone:t,country:c},n))return c}}catch(f){o=!0,a=f}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}}function Y(e,t,n){var r=P(e,t,n),i=r.input,o=r.metadata;return!(!i||!i.country||C(o.countries[i.country])&&!A(i,o))}var J=n("iCc5"),ee=n.n(J),te=n("V7oC"),ne=n.n(te),re=new RegExp("9","g"),ie=pe("9",15),oe="x",ae=new RegExp(oe),ue=new RegExp(oe,"g"),se=/\[([^\[\]])*\]/g,le=/\d(?=[^,}][^,}])/g,ce=new RegExp("^["+M+"]*(\\$\\d["+M+"]*)+$"),de=new RegExp("^[+\uff0b]{0,1}["+M+"0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]*$","i"),fe=function(){function e(t,n){if(ee()(this,e),!n||!n.countries)throw new Error("Metadata is required");t&&n.countries[t]&&(this.default_country=t),this.metadata=n,this.reset()}return ne()(e,[{key:"input",value:function(e){var t=G(e);return t||e&&e.indexOf("+")>=0&&(t="+"),c(t,de)?this.process_input(K(t)):this.current_output}},{key:"process_input",value:function(e){if("+"===e[0]&&(this.parsed_input||(this.parsed_input+="+",this.reset_countriness()),e=e.slice(1)),this.parsed_input+=e,this.national_number+=e,this.is_international())if(this.country_phone_code)this.country||this.determine_the_country();else{if(!this.extract_country_phone_code())return this.parsed_input;this.initialize_phone_number_formats_for_this_country_phone_code(),this.reset_format(),this.determine_the_country()}else{var t=this.national_prefix;this.national_number=this.national_prefix+this.national_number,this.extract_national_prefix(),this.national_prefix!==t&&(this.matching_formats=this.available_formats,this.reset_format())}if(!this.should_format())return this.format_as_non_formatted_number();this.match_formats_by_leading_digits();var n=this.format_national_phone_number(e);return n?this.full_phone_number(n):this.parsed_input}},{key:"format_as_non_formatted_number",value:function(){return this.is_international()&&this.country_phone_code?this.national_number?(this.template=oe+pe(oe,this.country_phone_code.length)+" "+pe(oe,this.national_number.length),"+"+this.country_phone_code+" "+this.national_number):"+"+this.country_phone_code:this.parsed_input}},{key:"format_national_phone_number",value:function(e){var t=void 0;return this.chosen_format&&(t=this.format_next_national_number_digits(e)),this.attempt_to_format_complete_phone_number()||(this.choose_another_format()?this.reformat_national_number():t)}},{key:"reset",value:function(){return this.parsed_input="",this.current_output="",this.national_prefix="",this.national_number="",this.reset_countriness(),this.reset_format(),this}},{key:"reset_country",value:function(){this.country=this.default_country&&!this.is_international()?this.default_country:void 0}},{key:"reset_countriness",value:function(){this.reset_country(),this.default_country&&!this.is_international()?(this.country_metadata=this.metadata.countries[this.default_country],this.country_phone_code=d(this.country_metadata),this.initialize_phone_number_formats_for_this_country_phone_code()):(this.country_metadata=void 0,this.country_phone_code=void 0,this.available_formats=[],this.matching_formats=this.available_formats)}},{key:"reset_format",value:function(){this.chosen_format=void 0,this.template=void 0,this.partially_populated_template=void 0,this.last_match_position=-1}},{key:"reformat_national_number",value:function(){return this.format_next_national_number_digits(this.national_number)}},{key:"initialize_phone_number_formats_for_this_country_phone_code",value:function(){this.available_formats=h(this.country_metadata).filter(function(e){return ce.test(w(e))}),this.matching_formats=this.available_formats}},{key:"match_formats_by_leading_digits",value:function(){var e=this.national_number,t=e.length-3;t<0&&(t=0),this.matching_formats=this.matching_formats.filter(function(n){var r=m(n).length;if(0===r)return!0;var i=Math.min(t,r-1),o=m(n)[i];return new RegExp("^("+o+")").test(e)}),this.chosen_format&&-1===this.matching_formats.indexOf(this.chosen_format)&&this.reset_format()}},{key:"should_format",value:function(){return this.national_number>=3}},{key:"attempt_to_format_complete_phone_number",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=l()(this.matching_formats);!(e=(r=i.next()).done);e=!0){var o=r.value;if(new RegExp("^(?:"+v(o)+")$").test(this.national_number)&&this.validate_format(o)){this.reset_format(),this.chosen_format=o;var a=I(this.national_number,o,this.is_international(),this.national_prefix.length>0,this.country_metadata);if(this.create_formatting_template(o))this.reformat_national_number();else{var u=this.full_phone_number(a);this.template=u.replace(/[\d\+]/g,oe),this.partially_populated_template=u}return a}}}catch(s){t=!0,n=s}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}}},{key:"full_phone_number",value:function(e){return this.is_international()?"+"+this.country_phone_code+" "+e:e}},{key:"extract_country_phone_code",value:function(){if(this.national_number){var e=Q(this.parsed_input,this.metadata),t=e.country_phone_code,n=e.number;if(t)return this.country_phone_code=t,this.national_number=n,this.country_metadata=k(t,this.metadata)}}},{key:"extract_national_prefix",value:function(){if(this.national_prefix="",this.country_metadata){var e=Z(this.national_number,this.country_metadata);return e!==this.national_number&&(this.national_prefix=this.national_number.slice(0,this.national_number.length-e.length),this.national_number=e),this.national_prefix}}},{key:"choose_another_format",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=l()(this.matching_formats);!(e=(r=i.next()).done);e=!0){var o=r.value;if(this.chosen_format===o)return;if(this.validate_format(o)&&this.create_formatting_template(o))return this.chosen_format=o,this.last_match_position=-1,!0}}catch(a){t=!0,n=a}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}this.reset_country(),this.reset_format()}},{key:"validate_format",value:function(e){var t,n,r;if(this.is_international()||this.national_prefix||!(r=y(t=e,n=this.country_metadata))||!_(r)||b(t,n))return!0}},{key:"create_formatting_template",value:function(e){if(!(v(e).indexOf("|")>=0)){var t=this.get_template_for_phone_number_format_pattern(e);if(t)return this.partially_populated_template=t,this.template=this.is_international()?oe+pe(oe,this.country_phone_code.length)+" "+t:t.replace(/\d/g,oe),this.template}}},{key:"get_template_for_phone_number_format_pattern",value:function(e){var t=y(e,this.country_metadata),n=v(e).replace(se,"\\d").replace(le,"\\d"),r=ie.match(n)[0];if(!(this.national_number.length>r.length)){var i=this.get_format_format(e,t),o=new RegExp("^"+n+"$"),a=this.national_number.replace(/\d/g,"9");return o.test(a)&&(r=a),r.replace(new RegExp(n),i).replace(re,oe)}}},{key:"format_next_national_number_digits",value:function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=l()(e);!(t=(i=o.next()).done);t=!0){var a=i.value;if(-1===this.partially_populated_template.slice(this.last_match_position+1).search(ae))return this.chosen_format=void 0,this.template=void 0,void(this.partially_populated_template=void 0);this.last_match_position=this.partially_populated_template.search(ae),this.partially_populated_template=this.partially_populated_template.replace(ae,a)}}catch(u){n=!0,r=u}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}return function(e,t){for(var n=e.slice(0,t),r=he("(",n)-he(")",n);r>0&&t1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function ve(){var e=Array.prototype.slice.call(arguments);return e.push(r),q.apply(this,e)}function ge(){var e=Array.prototype.slice.call(arguments);return e.push(r),E.apply(this,e)}function me(){var e=Array.prototype.slice.call(arguments);return e.push(r),A.apply(this,e)}function ye(){return me.apply(this,arguments)}function be(){var e=Array.prototype.slice.call(arguments);return e.push(r),Y.apply(this,e)}function _e(){return be.apply(this,arguments)}function we(e){fe.call(this,e,r)}function ke(e){fe.call(this,e,r)}function Ce(e){fe.call(this,e,r)}function xe(e){return $e(e,r)}function $e(e,t){if(!t.countries[e])throw new Error('Unknown country: "'+e+'"');return d(t.countries[e])}(we.prototype=Object.create(fe.prototype,{})).constructor=we,(ke.prototype=Object.create(fe.prototype,{})).constructor=ke,(Ce.prototype=Object.create(fe.prototype,{})).constructor=Ce},PqYM:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("HDdC"),i=n("D0XW"),o=n("Y7HM"),a=n("z+Ro");function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,u=-1;return Object(o.a)(t)?u=Number(t)<1?1:Number(t):Object(a.a)(t)&&(n=t),Object(a.a)(n)||(n=i.a),new r.a(function(t){var r=Object(o.a)(e)?e:+e-n.now();return n.schedule(s,r,{index:0,period:u,subscriber:t})})}function s(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}},QMMT:function(e,t,n){var r=n("a0xu"),i=n("UWiX")("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},QbLZ:function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n("P2sY"))&&r.__esModule?r:{default:r};t.default=i.default||function(e){for(var t=1;t=2;return function(l){return l.pipe(e?Object(i.a)(function(t,n){return e(t,n,l)}):s.a,Object(o.a)(1),n?Object(a.a)(t):Object(u.a)(function(){return new r.a}))}}},T5KR:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("4hzb")),r(n("9vJG"))},TFLp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("PoRY"),o=n("gvyg");t.phone=function(e){return function(t){return o.isPresent(r.Validators.required(t))||i.isValidNumber(t.value,e)?null:{phone:!0}}}},TwXH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.min=function(e){return function(t){if(!i.isPresent(e))return null;if(i.isPresent(r.Validators.required(t)))return null;var n=+t.value;return n>=+e?null:{actualValue:n,requiredValue:+e,min:!0}}}},"U+KD":function(e,t,n){var r=n("B+OT"),i=n("JB68"),o=n("VVlx")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},UO39:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},UWiX:function(e,t,n){var r=n("29s/")("wks"),i=n("YqAc"),o=n("5T2Y").Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},UbbE:function(e,t,n){n("o8NH"),e.exports=n("WEpk").Object.assign},V7oC:function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n("SEkw"))&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n1&&"number"==typeof t[t.length-1]&&(u=t.pop())):"number"==typeof l&&(u=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(u)(Object(a.a)(t,s))}},VVlx:function(e,t,n){var r=n("29s/")("keys"),i=n("YqAc");e.exports=function(e){return r[e]||(r[e]=i(e))}},"W/SZ":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("QgIP")),r(n("Jdkh"))},W070:function(e,t,n){var r=n("NsO/"),i=n("tEej"),o=n("D8kY");e.exports=function(e){return function(t,n,a){var u,s=r(t),l=i(s.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if((u=s[c++])!=u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},WEpk:function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},WMd4:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return u});var r=n("EY2u"),i=n("LRne"),o=n("z6cu"),a=function(e){return e.NEXT="N",e.ERROR="E",e.COMPLETE="C",e}({}),u=function(){var e=function(){function e(t,n,r){g(this,e),this.kind=t,this.value=n,this.error=r,this.hasValue="N"===t}return y(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return Object(o.a)(this.error);case"C":return Object(r.b)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},WQkh:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("afP1"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.range(this.range)},e.prototype.ngOnChanges=function(e){for(var t in e)"range"===t&&(this.validator=o.range(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={range:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","range","","formControlName",""],["","range","","formControl",""],["","range","","ngModel",""]],inputs:{range:"range"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.RangeValidator=s},XDbj:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("sVev"),i=n("7o/Q");function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(t){return t.lift(new a(e))}}var a=function(){function e(t){g(this,e),this.errorFactory=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.errorFactory))}}]),e}(),u=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).errorFactory=r,i.hasValue=!1,i}return y(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(i.a);function s(){return new r.a}},XNiG:function(e,t,n){"use strict";n.d(t,"b",function(){return f}),n.d(t,"a",function(){return h});var r=n("HDdC"),i=n("7o/Q"),o=n("quSY"),a=n("9ppp"),u=n("Ylt2"),c=n("2QA8"),f=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this,e)).destination=e,r}return n}(i.a),h=function(){var e=function(e){l(n,e);var t=d(n);function n(){var e;return g(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return y(n,[{key:c.a,value:function(){return new f(this)}},{key:"lift",value:function(e){var t=new p(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new a.a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i1&&void 0!==arguments[1]?arguments[1]:e.now;g(this,e),this.SchedulerAction=t,this.now=n}return y(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}()},Y6u4:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}()},Y7HM:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("DH7j");function i(e){return!Object(r.a)(e)&&e-parseFloat(e)+1>=0}},Y7ZC:function(e,t,n){var r=n("5T2Y"),i=n("WEpk"),o=n("2GTP"),a=n("NegM"),u=n("B+OT"),s=function e(t,n,s){var l,c,d,f=t&e.F,h=t&e.G,p=t&e.S,v=t&e.P,g=t&e.B,m=t&e.W,y=h?i:i[n]||(i[n]={}),b=y.prototype,_=h?r:p?r[n]:(r[n]||{}).prototype;for(l in h&&(s=n),s)(c=!f&&_&&void 0!==_[l])&&u(y,l)||(d=c?_[l]:s[l],y[l]=h&&"function"!=typeof _[l]?s[l]:g&&c?o(d,r):m&&_[l]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):v&&"function"==typeof d?o(Function.call,d):d,v&&((y.virtual||(y.virtual={}))[l]=d,t&e.R&&b&&!b[l]&&a(b,l,d)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},YHbO:function(e){e.exports=JSON.parse('{"country_phone_code_to_countries":{"1":["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],"7":["RU","KZ"],"20":["EG"],"27":["ZA"],"30":["GR"],"31":["NL"],"32":["BE"],"33":["FR"],"34":["ES"],"36":["HU"],"39":["IT","VA"],"40":["RO"],"41":["CH"],"43":["AT"],"44":["GB","GG","IM","JE"],"45":["DK"],"46":["SE"],"47":["NO","SJ"],"48":["PL"],"49":["DE"],"51":["PE"],"52":["MX"],"53":["CU"],"54":["AR"],"55":["BR"],"56":["CL"],"57":["CO"],"58":["VE"],"60":["MY"],"61":["AU","CC","CX"],"62":["ID"],"63":["PH"],"64":["NZ"],"65":["SG"],"66":["TH"],"81":["JP"],"82":["KR"],"84":["VN"],"86":["CN"],"90":["TR"],"91":["IN"],"92":["PK"],"93":["AF"],"94":["LK"],"95":["MM"],"98":["IR"],"211":["SS"],"212":["MA","EH"],"213":["DZ"],"216":["TN"],"218":["LY"],"220":["GM"],"221":["SN"],"222":["MR"],"223":["ML"],"224":["GN"],"225":["CI"],"226":["BF"],"227":["NE"],"228":["TG"],"229":["BJ"],"230":["MU"],"231":["LR"],"232":["SL"],"233":["GH"],"234":["NG"],"235":["TD"],"236":["CF"],"237":["CM"],"238":["CV"],"239":["ST"],"240":["GQ"],"241":["GA"],"242":["CG"],"243":["CD"],"244":["AO"],"245":["GW"],"246":["IO"],"247":["AC"],"248":["SC"],"249":["SD"],"250":["RW"],"251":["ET"],"252":["SO"],"253":["DJ"],"254":["KE"],"255":["TZ"],"256":["UG"],"257":["BI"],"258":["MZ"],"260":["ZM"],"261":["MG"],"262":["RE","YT"],"263":["ZW"],"264":["NA"],"265":["MW"],"266":["LS"],"267":["BW"],"268":["SZ"],"269":["KM"],"290":["SH","TA"],"291":["ER"],"297":["AW"],"298":["FO"],"299":["GL"],"350":["GI"],"351":["PT"],"352":["LU"],"353":["IE"],"354":["IS"],"355":["AL"],"356":["MT"],"357":["CY"],"358":["FI","AX"],"359":["BG"],"370":["LT"],"371":["LV"],"372":["EE"],"373":["MD"],"374":["AM"],"375":["BY"],"376":["AD"],"377":["MC"],"378":["SM"],"380":["UA"],"381":["RS"],"382":["ME"],"385":["HR"],"386":["SI"],"387":["BA"],"389":["MK"],"420":["CZ"],"421":["SK"],"423":["LI"],"500":["FK"],"501":["BZ"],"502":["GT"],"503":["SV"],"504":["HN"],"505":["NI"],"506":["CR"],"507":["PA"],"508":["PM"],"509":["HT"],"590":["GP","BL","MF"],"591":["BO"],"592":["GY"],"593":["EC"],"594":["GF"],"595":["PY"],"596":["MQ"],"597":["SR"],"598":["UY"],"599":["CW","BQ"],"670":["TL"],"672":["NF"],"673":["BN"],"674":["NR"],"675":["PG"],"676":["TO"],"677":["SB"],"678":["VU"],"679":["FJ"],"680":["PW"],"681":["WF"],"682":["CK"],"683":["NU"],"685":["WS"],"686":["KI"],"687":["NC"],"688":["TV"],"689":["PF"],"690":["TK"],"691":["FM"],"692":["MH"],"800":["001"],"808":["001"],"850":["KP"],"852":["HK"],"853":["MO"],"855":["KH"],"856":["LA"],"870":["001"],"878":["001"],"880":["BD"],"881":["001"],"882":["001"],"883":["001"],"886":["TW"],"888":["001"],"960":["MV"],"961":["LB"],"962":["JO"],"963":["SY"],"964":["IQ"],"965":["KW"],"966":["SA"],"967":["YE"],"968":["OM"],"970":["PS"],"971":["AE"],"972":["IL"],"973":["BH"],"974":["QA"],"975":["BT"],"976":["MN"],"977":["NP"],"979":["001"],"992":["TJ"],"993":["TM"],"994":["AZ"],"995":["GE"],"996":["KG"],"998":["UZ"]},"countries":{"AC":["247","[46]\\\\d{4}|[01589]\\\\d{5}"],"AD":["376","[16]\\\\d{5,8}|[37-9]\\\\d{5}",[["(\\\\d{3})(\\\\d{3})","$1 $2",["[137-9]|6[0-8]"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["180","180[02]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["690"]]]],"AE":["971","[2-79]\\\\d{7,8}|800\\\\d{2,9}",[["([2-4679])(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2-4679][2-8]"]],["(5\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["5"]],["([479]00)(\\\\d)(\\\\d{5})","$1 $2 $3",["[479]00"],"$1"],["([68]00)(\\\\d{2,9})","$1 $2",["[68]00"],"$1"]],"0","0$1"],"AF":["93","[2-7]\\\\d{8}",[["([2-7]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2-7]"]]],"0","0$1"],"AG":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"268"],"AI":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"264"],"AL":["355","[2-57]\\\\d{7}|6\\\\d{8}|8\\\\d{5,7}|9\\\\d{5}",[["(4)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["4[0-6]"]],["(6\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["6"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2358][2-5]|4[7-9]"]],["(\\\\d{3})(\\\\d{3,5})","$1 $2",["[235][16-9]|[79]|8[016-9]"]]],"0","0$1"],"AM":["374","[1-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{6})","$1 $2",["1|47"]],["(\\\\d{2})(\\\\d{6})","$1 $2",["4[1349]|[5-7]|88|9[1-9]"],"0$1"],["(\\\\d{3})(\\\\d{5})","$1 $2",["[23]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["8|90"],"0 $1"]],"0","(0$1)"],"AO":["244","[29]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3"]]],"AR":["54","11\\\\d{8}|[2368]\\\\d{9}|9\\\\d{10}",[["([68]\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[68]"]],["(9)(11)(\\\\d{4})(\\\\d{4})","$2 15-$3-$4",["911"],null,null,"$1 $2 $3-$4"],["(9)(\\\\d{3})(\\\\d{3})(\\\\d{4})","$2 15-$3-$4",["9(?:2[2-4689]|3[3-8])","9(?:2(?:2[013]|3[067]|49|6[01346]|8|9[147-9])|3(?:36|4[1-358]|5[138]|6|7[069]|8[013578]))","9(?:2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3[4-6]|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45])))","9(?:2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3(?:4|5[014]|6[1-39])|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45])))"],null,null,"$1 $2 $3-$4"],["(9)(\\\\d{4})(\\\\d{2})(\\\\d{4})","$2 15-$3-$4",["9[23]"],null,null,"$1 $2 $3-$4"],["(11)(\\\\d{4})(\\\\d{4})","$1 $2-$3",["11"],null,"true"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2-$3",["2(?:2[013]|3[067]|49|6[01346]|8|9[147-9])|3(?:36|4[1-358]|5[138]|6|7[069]|8[013578])","2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3[4-6]|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45]))","2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3(?:4|5[014]|6[1-39])|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45]))"],null,"true"],["(\\\\d{4})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["[23]"],null,"true"]],"0","0$1","0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))?15)?","9$1"],"AS":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"684"],"AT":["43","[1-9]\\\\d{3,12}",[["(116\\\\d{3})","$1",["116"],"$1"],["(1)(\\\\d{3,12})","$1 $2",["1"]],["(5\\\\d)(\\\\d{3,5})","$1 $2",["5[079]"]],["(5\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["5[079]"]],["(5\\\\d)(\\\\d{4})(\\\\d{4,7})","$1 $2 $3",["5[079]"]],["(\\\\d{3})(\\\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:[28]0|32)|[89]"]],["(\\\\d{4})(\\\\d{3,9})","$1 $2",["2|3(?:1[1-578]|[3-8])|4[2378]|5[2-6]|6(?:[12]|4[1-9]|5[468])|7(?:[24][1-8]|35|[5-79])"]]],"0","0$1"],"AU":["61","1\\\\d{4,9}|[2-578]\\\\d{8}",[["([2378])(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(16)(\\\\d{3,4})","$1 $2",["16"],"0$1"],["(16)(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(1[389]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[389]0","1(?:[38]0|9)0"]],["(180)(2\\\\d{3})","$1 $2",["180","1802"]],["(19\\\\d)(\\\\d{3})","$1 $2",["19[13]"]],["(19\\\\d{2})(\\\\d{4})","$1 $2",["19[679]"]],["(13)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["13[1-9]"]]],"0",null,null,null,null,null,["[237]\\\\d{8}|8(?:51(?:0(?:0[03-9]|[1247]\\\\d|3[2-9]|5[0-8]|6[1-9]|8[0-6])|1(?:1[69]|[23]\\\\d|4[0-4]))|[6-8]\\\\d{4}|9(?:[02-9]\\\\d{3}|1(?:[0-57-9]\\\\d{2}|6[0135-9]\\\\d)))\\\\d{3}","14(?:5\\\\d|71)\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[6-9]|7[02-9]|8[12457-9]|9[017-9])\\\\d{6}","180(?:0\\\\d{3}|2)\\\\d{3}","19(?:0[0126]\\\\d|[679])\\\\d{5}","500\\\\d{6}",null,null,"16\\\\d{3,7}","550\\\\d{6}","13(?:00\\\\d{3}|45[0-4]|\\\\d)\\\\d{3}"]],"AW":["297","[25-9]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"AX":["358","1\\\\d{5,11}|[35]\\\\d{5,9}|2\\\\d{4,9}|4\\\\d{5,10}|6\\\\d{7,9}|7\\\\d{4,9}|8\\\\d{6,9}",[["(\\\\d{3})(\\\\d{3,7})","$1 $2",["(?:[1-3]0|[6-8])0"]],["(75\\\\d{3})","$1",["75[12]"]],["(116\\\\d{3})","$1",["116"],"$1"],["(\\\\d{2})(\\\\d{4,10})","$1 $2",["[14]|2[09]|50|7[135]"]],["(\\\\d)(\\\\d{4,11})","$1 $2",["[25689][1-8]|3"]]],"0",null,null,null,null,null,["18[1-8]\\\\d{3,9}","4\\\\d{5,10}|50\\\\d{4,8}","800\\\\d{4,7}","[67]00\\\\d{5,6}",null,null,"[13]0\\\\d{4,8}|2(?:0(?:[016-8]\\\\d{3,7}|[2-59]\\\\d{2,7})|9\\\\d{4,8})|60(?:[12]\\\\d{5,6}|6\\\\d{7})|7(?:1\\\\d{7}|3\\\\d{8}|5[03-9]\\\\d{2,7})"]],"AZ":["994","[1-9]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["1[28]|2(?:[0-36]|[45]2)|365"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[4-8]"],"0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["9"],"0$1"]],"0","(0$1)"],"BA":["387","[3-9]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2-$3",["[3-5]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6[1-356]|[7-9]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["6[047]"]]],"0","0$1"],"BB":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"246"],"BD":["880","[2-79]\\\\d{5,9}|1\\\\d{9}|8[0-7]\\\\d{4,8}",[["(2)(\\\\d{7,8})","$1-$2",["2"]],["(\\\\d{2})(\\\\d{4,6})","$1-$2",["[3-79]1"]],["(\\\\d{4})(\\\\d{3,6})","$1-$2",["1|3(?:0|[2-58]2)|4(?:0|[25]2|3[23]|[4689][25])|5(?:[02-578]2|6[25])|6(?:[0347-9]2|[26][25])|7[02-9]2|8(?:[023][23]|[4-7]2)|9(?:[02][23]|[458]2|6[016])"]],["(\\\\d{3})(\\\\d{3,7})","$1-$2",["[3-79][2-9]|8"]]],"0","0$1"],"BE":["32","[1-9]\\\\d{7,8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["4[6-9]"]],["(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[23]|4[23]|9[2-4]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[156]|7[018]|8(?:0[1-9]|[1-79])"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["(?:80|9)0"]]],"0","0$1"],"BF":["226","[25-7]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"BG":["359","[23567]\\\\d{5,7}|[489]\\\\d{6,8}",[["(2)(\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["2"]],["(2)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["43[124-7]|70[1-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1 $2 $3",["43[124-7]|70[1-9]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[78]00"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["99[69]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["48|8[7-9]|9[08]"]]],"0","0$1"],"BH":["973","[136-9]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"BI":["257","[267]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"BJ":["229","[2689]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2689]"]]]],"BL":["590","[56]\\\\d{8}",[["([56]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["590|69[01]"]]],"0",null,null,null,null,null,["590(?:2[7-9]|5[12]|87)\\\\d{4}","69(?:0\\\\d{2}|1(?:2[29]|3[0-5]))\\\\d{4}"]],"BM":["1","[4589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"441"],"BN":["673","[2-578]\\\\d{6}",[["([2-578]\\\\d{2})(\\\\d{4})","$1 $2",["[2-578]"]]]],"BO":["591","[23467]\\\\d{7}|8\\\\d{8}",[["([234])(\\\\d{7})","$1 $2",["[2-4]"]],["([67]\\\\d{7})","$1",["[67]"]],["(800)(\\\\d{2})(\\\\d{4})","$1 $2 $3",["800"]]],"0",null,"0(1\\\\d)?"],"BQ":["599","[347]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[13-7]"]],["(9)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["9"]]],null,null,null,null,null,null,["(?:318[023]|41(?:6[023]|70)|7(?:1[578]|50)\\\\d)\\\\d{3}","(?:31(?:8[14-8]|9[14578])|416[145-9]|7(?:0[01]|7[07]|8\\\\d|9[056])\\\\d)\\\\d{3}"]],"BR":["55","[1-46-9]\\\\d{7,10}|5(?:[0-4]\\\\d{7,9}|5(?:[2-8]\\\\d{7}|9\\\\d{7,8}))",[["(\\\\d{4})(\\\\d{4})","$1-$2",["300|40[02]","300|40(?:0|20)"]],["([3589]00)(\\\\d{2,3})(\\\\d{4})","$1 $2 $3",["[3589]00"],"0$1"],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2-$3",["[1-9][1-9]"],"($1)"],["(\\\\d{2})(\\\\d{5})(\\\\d{4})","$1 $2-$3",["[1-9][1-9]9"],"($1)"]],"0",null,"0(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\\\d{10,11}))?","$2"],"BS":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"242"],"BT":["975","[1-8]\\\\d{6,7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["1|77"]],["([2-8])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-68]|7[246]"]]]],"BW":["267","[2-79]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[2-6]"]],["(7\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7"]],["(90)(\\\\d{5})","$1 $2",["90"]]]],"BY":["375","[1-4]\\\\d{8}|8(?:0(?:0\\\\d{3,7}|[13]\\\\d{7})|(?:10|20\\\\d)\\\\d{7})|9\\\\d{9,10}",[["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["17[0-3589]|2[4-9]|[34]","17(?:[02358]|1[0-2]|9[0189])|2[4-9]|[34]"],"8 0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["1(?:5[24]|6[235]|7[467])|2(?:1[246]|2[25]|3[26])","1(?:5[24]|6(?:2|3[04-9]|5[0346-9])|7(?:[46]|7[37-9]))|2(?:1[246]|2[25]|3[26])"],"8 0$1"],["(\\\\d{4})(\\\\d{2})(\\\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["([89]\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8[01]|9"],"8 $1"],["(82\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["82"],"8 $1"],["(800)(\\\\d{3})","$1 $2",["800"],"8 $1"],["(800)(\\\\d{2})(\\\\d{2,4})","$1 $2 $3",["800"],"8 $1"]],"8",null,"8?0?"],"BZ":["501","[2-8]\\\\d{6}|0\\\\d{10}",[["(\\\\d{3})(\\\\d{4})","$1-$2",["[2-8]"]],["(0)(800)(\\\\d{4})(\\\\d{3})","$1-$2-$3-$4",["080","0800"]]]],"CA":["1","[2-9]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,null,["(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|65)|4(?:03|1[68]|3[178]|50)|5(?:06|1[49]|48|79|8[17])|6(?:0[04]|13|22|39|47)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\\\d{6}",null,"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}","900[2-9]\\\\d{6}","5(?:(?:00|22|33|44|66|77|88)[2-9]|21[23])\\\\d{6}"]],"CC":["61","[1458]\\\\d{5,9}",[["([2378])(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(16)(\\\\d{3,4})","$1 $2",["16"],"0$1"],["(16)(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(1[389]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[389]0","1(?:[38]0|9)0"]],["(180)(2\\\\d{3})","$1 $2",["180","1802"]],["(19\\\\d)(\\\\d{3})","$1 $2",["19[13]"]],["(19\\\\d{2})(\\\\d{4})","$1 $2",["19[679]"]],["(13)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["13[1-9]"]]],"0",null,null,null,null,null,["8(?:51(?:0(?:02|31|60)|118)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:08|22|68)|4[29]8|62\\\\d|70[23]|959))\\\\d{3}","14(?:5\\\\d|71)\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[6-9]|7[02-9]|8[12547-9]|9[017-9])\\\\d{6}","180(?:0\\\\d{3}|2)\\\\d{3}","19(?:0[0126]\\\\d|[679])\\\\d{5}","500\\\\d{6}",null,null,null,"550\\\\d{6}","13(?:00\\\\d{2})?\\\\d{4}"]],"CD":["243","[2-6]\\\\d{6}|[18]\\\\d{6,8}|9\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["12"]],["([89]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8[0-2459]|9"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["88"]],["(\\\\d{2})(\\\\d{5})","$1 $2",["[1-6]"]]],"0","0$1"],"CF":["236","[278]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"CG":["242","[028]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["801"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[02]"]],["(\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["800"]]]],"CH":["41","[2-9]\\\\d{8}|860\\\\d{9}",[["([2-9]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-7]|[89]1"]],["([89]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8[047]|90"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["860"]]],"0","0$1"],"CI":["225","[02-8]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"CK":["682","[2-8]\\\\d{4}",[["(\\\\d{2})(\\\\d{3})","$1 $2"]]],"CL":["56","1230\\\\d{7}|[2-46-9]\\\\d{8,10}|5[1-3578]\\\\d{7}",[["(\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2[23]"],"($1)"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[357]|4[1-35]|6[13-57]"],"($1)"],["(9)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["9"]],["(44)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["44"]],["([68]00)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[68]00"],"$1"],["(600)(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["600"],"$1"],["(1230)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["123","1230"],"$1"],["(\\\\d{5})(\\\\d{4})","$1 $2",["219"],"($1)"]],"0","0$1","0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))"],"CM":["237","[2368]\\\\d{7,8}",[["([26])(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["[26]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[23]|88"]]]],"CN":["86","[1-7]\\\\d{6,11}|8[0-357-9]\\\\d{6,9}|9\\\\d{7,10}",[["([48]00)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[48]00"]],["(\\\\d{2})(\\\\d{5,6})","$1 $2",["(?:10|2\\\\d)[19]","(?:10|2\\\\d)(?:10|9[56])","(?:10|2\\\\d)(?:100|9[56])"],"0$1"],["(\\\\d{3})(\\\\d{5,6})","$1 $2",["[3-9]","[3-9]\\\\d\\\\d[19]","[3-9]\\\\d\\\\d(?:10|9[56])"],"0$1"],["(21)(\\\\d{4})(\\\\d{4,6})","$1 $2 $3",["21"],"0$1","true"],["([12]\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["10[1-9]|2[02-9]","10[1-9]|2[02-9]","10(?:[1-79]|8(?:0[1-9]|[1-9]))|2[02-9]"],"0$1","true"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["3(?:1[02-9]|35|49|5|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|[35][2-9]|6[47-9]|7|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[04-9]|4[3-6]|6[2368])|8(?:1[236-8]|2[5-7]|3|5[1-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])"],"0$1","true"],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["3(?:11|7[179])|4(?:[15]1|3[1-35])|5(?:1|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[457]|6[09])|8(?:[57]1|98)"],"0$1","true"],["(\\\\d{4})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["807","8078"],"0$1","true"],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["1(?:[3-57-9]|66)"]],["(10800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["108","1080","10800"]],["(\\\\d{3})(\\\\d{7,8})","$1 $2",["950"]]],"0",null,"(1(?:[129]\\\\d{3}|79\\\\d{2}))|0"],"CO":["57","(?:[13]\\\\d{0,3}|[24-8])\\\\d{7}",[["(\\\\d)(\\\\d{7})","$1 $2",["1(?:[2-7]|8[2-9]|9[0-3])|[24-8]","1(?:[2-7]|8[2-9]|9(?:09|[1-3]))|[24-8]"],"($1)"],["(\\\\d{3})(\\\\d{7})","$1 $2",["3"]],["(1)(\\\\d{3})(\\\\d{7})","$1-$2-$3",["1(?:80|9[04])","1(?:800|9(?:0[01]|4[78]))"],"0$1",null,"$1 $2 $3"]],"0",null,"0([3579]|4(?:44|56))?"],"CR":["506","[24-9]\\\\d{7,9}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[24-7]|8[3-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[89]0"]]],null,null,"(19(?:0[012468]|1[09]|20|66|77|99))"],"CU":["53","[2-57]\\\\d{5,7}",[["(\\\\d)(\\\\d{6,7})","$1 $2",["7"]],["(\\\\d{2})(\\\\d{4,6})","$1 $2",["[2-4]"]],["(\\\\d)(\\\\d{7})","$1 $2",["5"],"0$1"]],"0","(0$1)"],"CV":["238","[259]\\\\d{6}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"CW":["599","[134679]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[13-7]"]],["(9)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["9"]]],null,null,null,null,null,null,["9(?:[48]\\\\d{2}|50\\\\d|7(?:2[0-24]|[34]\\\\d|6[35-7]|77|8[7-9]))\\\\d{4}","9(?:5(?:[12467]\\\\d|3[01])|6(?:[15-9]\\\\d|3[01]))\\\\d{4}",null,null,null,null,null,"955\\\\d{5}",null,"60[0-2]\\\\d{4}"]],"CX":["61","[1458]\\\\d{5,9}",[["([2378])(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(16)(\\\\d{3,4})","$1 $2",["16"],"0$1"],["(16)(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(1[389]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[389]0","1(?:[38]0|9)0"]],["(180)(2\\\\d{3})","$1 $2",["180","1802"]],["(19\\\\d)(\\\\d{3})","$1 $2",["19[13]"]],["(19\\\\d{2})(\\\\d{4})","$1 $2",["19[679]"]],["(13)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["13[1-9]"]]],"0",null,null,null,null,null,["8(?:51(?:0(?:01|30|59)|117)|91(?:00[6-9]|1(?:21|49|78|81)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\\\d|7(?:0[01]|1[0-2])|958))\\\\d{3}","14(?:5\\\\d|71)\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[6-9]|7[02-9]|8[12547-9]|9[017-9])\\\\d{6}","180(?:0\\\\d{3}|2)\\\\d{3}","19(?:0[0126]\\\\d|[679])\\\\d{5}","500\\\\d{6}",null,null,null,"550\\\\d{6}","13(?:00\\\\d{2})?\\\\d{4}"]],"CY":["357","[257-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{6})","$1 $2"]]],"CZ":["420","[2-8]\\\\d{8}|9\\\\d{8,11}",[["([2-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(96\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["96"]],["(9\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["9[36]"]]]],"DE":["49","[1-35-9]\\\\d{3,14}|4(?:[0-8]\\\\d{3,12}|9(?:[0-37]\\\\d|4(?:[1-35-8]|4\\\\d?)|5\\\\d{1,2}|6[1-8]\\\\d?)\\\\d{2,8})",[["(1\\\\d{2})(\\\\d{7,8})","$1 $2",["1[67]"]],["(15\\\\d{3})(\\\\d{6})","$1 $2",["15[0568]"]],["(1\\\\d{3})(\\\\d{7})","$1 $2",["15"]],["(\\\\d{2})(\\\\d{3,11})","$1 $2",["3[02]|40|[68]9"]],["(\\\\d{3})(\\\\d{3,11})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14]|[4-9]1)|3(?:[35-9][15]|4[015])|[4-8][1-9]1|9(?:06|[1-9]1)"]],["(\\\\d{4})(\\\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|[7-9](?:0[1-9]|[1-9])","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|[46][1246]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|3[1357]|4[13578]|6[1246]|7[1356]|9[1346])|5(?:0[14]|2[1-3589]|3[1357]|[49][1246]|6[1-4]|7[1346]|8[13568])|6(?:0[356]|2[1-489]|3[124-6]|4[1347]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|3[1357]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|4[1347]|6[0135-9]|7[1467]|8[136])|9(?:0[12479]|2[1358]|3[1357]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|[7-9](?:0[1-9]|[1-9])"]],["(3\\\\d{4})(\\\\d{1,10})","$1 $2",["3"]],["(800)(\\\\d{7,12})","$1 $2",["800"]],["(\\\\d{3})(\\\\d)(\\\\d{4,10})","$1 $2 $3",["1(?:37|80)|900","1(?:37|80)|900[1359]"]],["(1\\\\d{2})(\\\\d{5,11})","$1 $2",["181"]],["(18\\\\d{3})(\\\\d{6})","$1 $2",["185","1850","18500"]],["(18\\\\d{2})(\\\\d{7})","$1 $2",["18[68]"]],["(18\\\\d)(\\\\d{8})","$1 $2",["18[2-579]"]],["(700)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["700"]],["(138)(\\\\d{4})","$1 $2",["138"]],["(15[013-68])(\\\\d{2})(\\\\d{8})","$1 $2 $3",["15[013-68]"]],["(15[279]\\\\d)(\\\\d{2})(\\\\d{7})","$1 $2 $3",["15[279]"]],["(1[67]\\\\d)(\\\\d{2})(\\\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"]]],"0","0$1"],"DJ":["253","[27]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"DK":["45","[2-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"DM":["1","[57-9]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"767"],"DO":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"8[024]9"],"DZ":["213","(?:[1-4]|[5-9]\\\\d)\\\\d{7}",[["([1-4]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[1-4]"]],["([5-8]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[5-8]"]],["(9\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["9"]]],"0","0$1"],"EC":["593","1\\\\d{9,10}|[2-8]\\\\d{7}|9\\\\d{8}",[["(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2-$3",["[247]|[356][2-8]"],null,null,"$1-$2-$3"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["9"],"0$1"],["(1800)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["180","1800"],"$1"]],"0","(0$1)"],"EE":["372","[3-9]\\\\d{6,7}|800\\\\d{6,7}",[["([3-79]\\\\d{2})(\\\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]"]],["(70)(\\\\d{2})(\\\\d{4})","$1 $2 $3",["70"]],["(8000)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["800","8000"]],["([458]\\\\d{3})(\\\\d{3,4})","$1 $2",["40|5|8(?:00|[1-5])","40|5|8(?:00[1-9]|[1-5])"]]]],"EG":["20","1\\\\d{4,9}|[24-6]\\\\d{8}|3\\\\d{7}|[89]\\\\d{8,9}",[["(\\\\d)(\\\\d{7,8})","$1 $2",["[23]"]],["(\\\\d{2})(\\\\d{6,7})","$1 $2",["1(?:3|5[239])|[4-6]|[89][2-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[0-25]|[89]00"]]],"0","0$1"],"EH":["212","[5-9]\\\\d{8}",[["([5-7]\\\\d{2})(\\\\d{6})","$1-$2",["5(?:2[015-7]|3[0-4])|[67]"]],["([58]\\\\d{3})(\\\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|92)|892","5(?:2(?:[2-48]|9[0-7])|3(?:[5-79]|8[0-7])|924)|892"]],["(5\\\\d{4})(\\\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]"]],["([5]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5(?:4[067]|5[03])"]],["(8[09])(\\\\d{7})","$1-$2",["8(?:0|9[013-9])"]]],"0",null,null,null,null,"528[89]"],"ER":["291","[178]\\\\d{6}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3"]],"0","0$1"],"ES":["34","[5-9]\\\\d{8}",[["([89]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[89]00"]],["([5-9]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[568]|[79][0-8]"]]]],"ET":["251","[1-59]\\\\d{8}",[["([1-59]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1-59]"]]],"0","0$1"],"FI":["358","1\\\\d{4,11}|[2-9]\\\\d{4,10}",[["(\\\\d{3})(\\\\d{3,7})","$1 $2",["(?:[1-3]0|[6-8])0"]],["(75\\\\d{3})","$1",["75[12]"]],["(116\\\\d{3})","$1",["116"],"$1"],["(\\\\d{2})(\\\\d{4,10})","$1 $2",["[14]|2[09]|50|7[135]"]],["(\\\\d)(\\\\d{4,11})","$1 $2",["[25689][1-8]|3"]]],"0","0$1",null,null,null,null,["1(?:[3569][1-8]\\\\d{3,9}|[47]\\\\d{5,10})|2[1-8]\\\\d{3,9}|3(?:[1-8]\\\\d{3,9}|9\\\\d{4,8})|[5689][1-8]\\\\d{3,9}","4(?:[0-8]\\\\d{4,9}|9\\\\d{3,8})|50\\\\d{4,8}","800\\\\d{4,7}","[67]00\\\\d{5,6}",null,null,"[13]0\\\\d{4,8}|2(?:0(?:[016-8]\\\\d{3,7}|[2-59]\\\\d{2,7})|9\\\\d{4,8})|60(?:[12]\\\\d{5,6}|6\\\\d{7})|7(?:1\\\\d{7}|3\\\\d{8}|5[03-9]\\\\d{3,7})"]],"FJ":["679","[2-9]\\\\d{6}|0\\\\d{10}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[2-9]"]],["(\\\\d{4})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["0"]]]],"FK":["500","[2-7]\\\\d{4}"],"FM":["691","[39]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"FO":["298","[2-9]\\\\d{5}",[["(\\\\d{6})","$1"]],null,null,"(10(?:01|[12]0|88))"],"FR":["33","[1-9]\\\\d{8}",[["([1-79])(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["[1-79]"]],["(8\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["8"],"0 $1"]],"0","0$1"],"GA":["241","0?\\\\d{7}",[["(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["0"]]]],"GB":["44","\\\\d{7,10}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0","0$1",null,null,null,null,["2(?:0[01378]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\\\d{7}|1(?:1(?:3[0-48]|[46][0-4]|5[0-26-9]|[78][0-49])|21[0-7]|31[0-8]|[4-69]1\\\\d)\\\\d{6}|1(?:2(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\\\d)|3(?:0\\\\d|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[28][02-57-9]|[37]\\\\d|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|2[024-9]|3[015689]|4[02-9]|5[03-9]|6\\\\d|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0124578])|7(?:0[0246-9]|2\\\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\\\d|8[02-9]|9[02569])|9(?:0[02-589]|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|8\\\\d|9[2-57]))\\\\d{6}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[345])))|3(?:638[2-5]|647[23]|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[123]))|5(?:24(?:3[2-79]|6\\\\d)|276\\\\d|6(?:26[06-9]|686))|6(?:06(?:4\\\\d|7[4-79])|295[567]|35[34]\\\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|955[0-4])|7(?:26(?:6[13-9]|7[0-7])|442\\\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\\\d|37(?:5[2-5]|8[239])|84(?:3[2-58]))|9(?:0(?:0(?:6[1-8]|85)|52\\\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\\\d{3}|176888[2-46-8]\\\\d{2}|16977[23]\\\\d{3}","7(?:[1-3]\\\\d{3}|4(?:[0-46-9]\\\\d{2}|5(?:[0-689]\\\\d|7[0-57-9]))|5(?:0[0-8]|[13-9]\\\\d|2[0-35-9])\\\\d|7(?:0(?:0[01]|[1-9]\\\\d)|[1-7]\\\\d{2}|8[02-9]\\\\d|9[0-689]\\\\d)|8(?:[014-9]\\\\d|[23][0-8])\\\\d|9(?:[024-9]\\\\d{2}|1(?:[02-9]\\\\d|1[028])|3[0-689]\\\\d))\\\\d{5}","80(?:0(?:1111|\\\\d{6,7})|8\\\\d{7})","(?:87[123]|9(?:[01]\\\\d|8[2349]))\\\\d{7}","70\\\\d{8}",null,"(?:3[0347]|55)\\\\d{8}","76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}","56\\\\d{8}","8(?:4(?:5464\\\\d|[2-5]\\\\d{7})|70\\\\d{7})"]],"GD":["1","[4589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"473"],"GE":["995","[34578]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7"],"0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5"]]],"0"],"GF":["594","[56]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]],"0","0$1"],"GG":["44","[135789]\\\\d{6,9}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0",null,null,null,null,null,["1481[25-9]\\\\d{5}","7(?:781\\\\d|839\\\\d|911[17])\\\\d{5}","80(?:0(?:1111|\\\\d{6,7})|8\\\\d{7})","(?:87[123]|9(?:[01]\\\\d|8[0-3]))\\\\d{7}","70\\\\d{8}",null,"(?:3[0347]|55)\\\\d{8}","76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}","56\\\\d{8}","8(?:4(?:5464\\\\d|[2-5]\\\\d{7})|70\\\\d{7})"]],"GH":["233","[235]\\\\d{8}|8\\\\d{7}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[235]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["8"]]],"0","0$1"],"GI":["350","[256]\\\\d{7}",[["(\\\\d{3})(\\\\d{5})","$1 $2",["2"]]]],"GL":["299","[1-689]\\\\d{5}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"GM":["220","[2-9]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"GN":["224","[367]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["3"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[67]"]]]],"GP":["590","[56]\\\\d{8}",[["([56]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["590|69[01]"]]],"0","0$1",null,null,null,null,["590(?:0[1-68]|1[0-2]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\\\d)\\\\d{4}","69(?:0\\\\d{2}|1(?:2[29]|3[0-5]))\\\\d{4}"]],"GQ":["240","[23589]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[235]"]],["(\\\\d{3})(\\\\d{6})","$1 $2",["[89]"]]]],"GR":["30","[26-9]\\\\d{9}",[["([27]\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["21|7"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2[2-9]1|[689]"]],["(2\\\\d{3})(\\\\d{6})","$1 $2",["2[2-9][02-9]"]]]],"GT":["502","[2-7]\\\\d{7}|1[89]\\\\d{9}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[2-7]"]],["(\\\\d{4})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]]]],"GU":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"671"],"GW":["245","(?:4(?:0\\\\d{5}|4\\\\d{7})|9\\\\d{8})",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["44|9[5-7]"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["40"]]]],"GY":["592","[2-46-9]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"HK":["852","[2-7]\\\\d{7}|8[0-3]\\\\d{6,7}|9\\\\d{4,10}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[2-7]|[89](?:0[1-9]|[1-9])"]],["(800)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["800"]],["(900)(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["900"]],["(900)(\\\\d{2,5})","$1 $2",["900"]]]],"HN":["504","[237-9]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1-$2"]]],"HR":["385","[1-7]\\\\d{5,8}|[89]\\\\d{6,8}",[["(1)(\\\\d{4})(\\\\d{3})","$1 $2 $3",["1"]],["([2-5]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[2-5]"]],["(9\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["9"]],["(6[01])(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["6[01]"]],["([67]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[67]"]],["(80[01])(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["80[01]"]],["(80[01])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["80[01]"]]],"0","0$1"],"HT":["509","[2-489]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2 $3"]]],"HU":["36","[1-9]\\\\d{7,8}",[["(1)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[2-9]"]]],"06","($1)"],"ID":["62","(?:[1-79]\\\\d{6,10}|8\\\\d{7,11})",[["(\\\\d{2})(\\\\d{5,8})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\\\d{3})(\\\\d{5,8})","$1 $2",["2[035-9]|[36][02-9]|[4579]"],"(0$1)"],["(8\\\\d{2})(\\\\d{3,4})(\\\\d{3})","$1-$2-$3",["8[1-35-9]"]],["(8\\\\d{2})(\\\\d{4})(\\\\d{4,5})","$1-$2-$3",["8[1-35-9]"]],["(1)(500)(\\\\d{3})","$1 $2 $3",["150","1500"],"$1"],["(177)(\\\\d{6,8})","$1 $2",["177"]],["(800)(\\\\d{5,7})","$1 $2",["800"]],["(804)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["804"]],["(80\\\\d)(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["80[79]"]]],"0","0$1"],"IE":["353","[124-9]\\\\d{6,9}",[["(1)(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["1"]],["(\\\\d{2})(\\\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["40[24]|50[45]"]],["(48)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["48"]],["(818)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["818"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[24-69]|7[14]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["76|8[35-9]"],"0$1"],["(8\\\\d)(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3 $4",["8[35-9]5"],"0$1"],["(700)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["700"],"0$1"],["(\\\\d{4})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1(?:5|8[059])","1(?:5|8[059]0)"],"$1"]],"0","(0$1)"],"IL":["972","1\\\\d{6,11}|[2-589]\\\\d{3}(?:\\\\d{3,6})?|6\\\\d{3}|7\\\\d{6,9}",[["([2-489])(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["([57]\\\\d)(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(153)(\\\\d{1,2})(\\\\d{3})(\\\\d{4})","$1 $2 $3 $4",["153"]],["(1)([7-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(1255)(\\\\d{3})","$1-$2",["125","1255"]],["(1200)(\\\\d{3})(\\\\d{3})","$1-$2-$3",["120","1200"]],["(1212)(\\\\d{2})(\\\\d{2})","$1-$2-$3",["121","1212"]],["(1599)(\\\\d{6})","$1-$2",["159","1599"]],["(151)(\\\\d{1,2})(\\\\d{3})(\\\\d{4})","$1-$2 $3-$4",["151"]],["(\\\\d{4})","*$1",["[2-689]"]]],"0"],"IM":["44","[135789]\\\\d{6,9}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0",null,null,null,null,null,["1624[5-8]\\\\d{5}","7(?:4576|[59]24\\\\d|624[0-4689])\\\\d{5}","808162\\\\d{4}","(?:872299|90[0167]624)\\\\d{4}","70\\\\d{8}",null,"3(?:08162\\\\d|3\\\\d{5}|4(?:40[49]06|5624\\\\d)|7(?:0624\\\\d|2299\\\\d))\\\\d{3}|55\\\\d{8}",null,"56\\\\d{8}","8(?:4(?:40[49]06|5624\\\\d)|70624\\\\d)\\\\d{3}"]],"IN":["91","008\\\\d{9}|1\\\\d{7,12}|[2-9]\\\\d{9,10}",[["(\\\\d{8})","$1",["561","5616","56161"],"$1"],["(\\\\d{5})(\\\\d{5})","$1 $2",["6(?:[09]0|2[03689]|3[05-9])|7(?:[02-8]|19|9[037-9])|8(?:0[015-9]|[1-9])|9","6(?:[09]0|2(?:0[01]|39|60|8[0-2]|9[04])|3(?:0[01]|5[0-2]|60|7[05]|81|9[03-5]))|7(?:[07]|19[0-5]|2(?:[0235-9]|[14][017-9])|3(?:[025-9]|[134][017-9])|4(?:[0-35689]|[47][017-9])|5(?:[02-46-9]|[15][017-9])|6(?:[02-9]|1[0-257-9])|8(?:[0-79]|8[0189])|9(?:[089]|31|7[02-9]))|8(?:0(?:[01589]|6[67]|7[02-9])|1(?:[0-57-9]|6[07-9])|2(?:[014][07-9]|[235-9])|3(?:[03-57-9]|[126][07-9])|[45]|6(?:[02457-9]|[136][07-9])|7(?:[078][07-9]|[1-69])|8(?:[0-25-9]|3[07-9]|4[047-9])|9(?:[02-9]|1[027-9]))|9","6(?:[09]0|2(?:0[01]|39|60|8[0-2]|9[04])|3(?:0[01]|5[0-2]|60|7[05]|81|9[03-5]))|7(?:0|19[0-5]|2(?:[0235-79]|[14][017-9]|8(?:[0-69]|[78][089]))|3(?:[05-8]|1(?:[0189]|7[5-9])|2(?:[0-49][089]|[5-8])|3[017-9]|4(?:[07-9]|11)|9(?:[01689]|[2-5][089]|7[0189]))|4(?:[056]|1(?:[0135-9]|[24][089])|[29](?:[0-7][089]|[89])|3(?:[0-8][089]|9)|[47](?:[089]|11|7[02-8])|8(?:[0-24-7][089]|[389]))|5(?:[0346-9]|[15][017-9]|2(?:[03-9]|[12][089]))|6(?:[0346-9]|1[0-257-9]|2(?:[0-4]|[5-9][089])|5(?:[0-367][089]|[4589]))|7(?:0(?:[02-9]|1[089])|[1-9])|8(?:[0-79]|8(?:0[0189]|11|8[013-9]|9))|9(?:[089]|313|7(?:[02-8]|9[07-9])))|8(?:0(?:[01589]|6[67]|7(?:[02-8]|9[05-9]))|1(?:[02-57-9]|1(?:[0-35-9]|4[0-46-9])|6(?:[089]|7[02-8]))|2(?:0(?:[089]|7[02])|[14](?:[089]|7[02-8])|[235-9])|3(?:[03-57-9]|1(?:[089]|7[02-6])|2(?:[09]|77|8[0-689])|6(?:[089]|7[02-7]))|[45]|6(?:[02457-9]|[136](?:[089]|7[02-8]))|7(?:0[07-9]|[1-69]|[78](?:[089]|7[02-8]))|8(?:[0-25-9]|3(?:[089]|7[02-8])|4(?:[0489]|7[02-68]))|9(?:[02-9]|1(?:[0289]|7[2-6])))|9"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-9]|80[2-46]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[59][14]|[68][1-9]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1|9[15])|6(?:12|[2-4]1|5[17]|6[13]|7[14]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)"]],["(\\\\d{4})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1(?:[23579]|[468][1-9])|[2-8]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})(\\\\d{3})","$1 $2 $3 $4",["008"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["140"],"$1"],["(\\\\d{4})(\\\\d{2})(\\\\d{4})","$1 $2 $3",["160","1600"],"$1"],["(\\\\d{4})(\\\\d{4,5})","$1 $2",["180","1800"],"$1"],["(\\\\d{4})(\\\\d{2,4})(\\\\d{4})","$1 $2 $3",["180","1800"],"$1"],["(\\\\d{4})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["186","1860"],"$1"],["(\\\\d{4})(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["18[06]"],"$1"]],"0","0$1",null,null,true],"IO":["246","3\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"IQ":["964","[1-7]\\\\d{7,9}",[["(1)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]],["([2-6]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[2-6]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"0","0$1"],"IR":["98","[1-8]\\\\d{5,9}|9(?:[0-4]\\\\d{8}|9\\\\d{8})",[["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[1-8]"]],["(\\\\d{2})(\\\\d{4,5})","$1 $2",["[1-8]"]],["(\\\\d{4,5})","$1",["96"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["9"]]],"0","0$1"],"IS":["354","[4-9]\\\\d{6}|38\\\\d{7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[4-9]"]],["(3\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["3"]]]],"IT":["39","[01589]\\\\d{5,10}|3(?:[12457-9]\\\\d{8}|[36]\\\\d{7,9})",[["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[26]|55"]],["(0[26])(\\\\d{4})(\\\\d{5})","$1 $2 $3",["0[26]"]],["(0[26])(\\\\d{4,6})","$1 $2",["0[26]"]],["(0\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[13-57-9][0159]"]],["(\\\\d{3})(\\\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]],["(0\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["0[13-57-9][2-46-8]"]],["(0\\\\d{3})(\\\\d{2,6})","$1 $2",["0[13-57-9][2-46-8]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[13]|8(?:00|4[08]|9[59])","[13]|8(?:00|4[08]|9(?:5[5-9]|9))"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["894","894[5-9]"]],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["3"]]],null,null,null,null,null,null,["0(?:[26]\\\\d{4,9}|(?:1(?:[0159]\\\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|3(?:[0159]\\\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|7(?:[0159]\\\\d|2[12]|3[1-7]|4[2346]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\\\d|2[34578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\\\d{2,7})","3(?:[12457-9]\\\\d{8}|6\\\\d{7,8}|3\\\\d{7,9})","80(?:0\\\\d{6}|3\\\\d{3})","0878\\\\d{5}|1(?:44|6[346])\\\\d{6}|89(?:2\\\\d{3}|4(?:[0-4]\\\\d{2}|[5-9]\\\\d{4})|5(?:[0-4]\\\\d{2}|[5-9]\\\\d{6})|9\\\\d{6})","1(?:78\\\\d|99)\\\\d{6}",null,null,null,"55\\\\d{8}","84(?:[08]\\\\d{6}|[17]\\\\d{3})"]],"JE":["44","[135789]\\\\d{6,9}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0",null,null,null,null,null,["1534[0-24-8]\\\\d{5}","7(?:509\\\\d|7(?:00[378]|97[7-9])|829\\\\d|937\\\\d)\\\\d{5}","80(?:07(?:35|81)|8901)\\\\d{4}","(?:871206|90(?:066[59]|1810|71(?:07|55)))\\\\d{4}","701511\\\\d{4}",null,"3(?:0(?:07(?:35|81)|8901)|3\\\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))\\\\d{4}|55\\\\d{8}","76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}","56\\\\d{8}","8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|70002)\\\\d{4}"]],"JM":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"876"],"JO":["962","[235-9]\\\\d{7,8}",[["(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(7)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["7[457-9]"]],["(\\\\d{2})(\\\\d{7})","$1 $2",["70"]],["(\\\\d{3})(\\\\d{5,6})","$1 $2",["8[0158]|9"]]],"0","0$1"],"JP":["81","[1-9]\\\\d{8,9}|00(?:[36]\\\\d{7,14}|7\\\\d{5,7}|8\\\\d{7})",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1-$2-$3",["(?:12|57|99)0"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["800"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1-$2-$3",["[2579]0|80[1-9]"]],["(\\\\d{4})(\\\\d)(\\\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[78]|96)|477|51[24]|636)|9(?:496|802|9(?:1[23]|69))","1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[78]|96[2457-9])|477|51[24]|636[2-57-9])|9(?:496|802|9(?:1[23]|69))"]],["(\\\\d{3})(\\\\d{2})(\\\\d{4})","$1-$2-$3",["1(?:2[3-6]|3[3-9]|4[2-6]|5[2-8]|[68][2-7]|7[2-689]|9[1-578])|2(?:2[03-689]|3[3-58]|4[0-468]|5[04-8]|6[013-8]|7[06-9]|8[02-57-9]|9[13])|4(?:2[28]|3[689]|6[035-7]|7[05689]|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9[4-9])|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9[014-9])|8(?:2[49]|3[3-8]|4[5-8]|5[2-9]|6[35-9]|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9[3-7])","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:[0468][2-9]|5[78]|7[2-4])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[4-7]|[89][2-8]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9[2-8])|3(?:[3-6][2-9]|7[2-6]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5[4-7]|6[2-9]|8[2-8]|9[236-9])|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3[34]|4[2-69]|[5-7]))","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:[0468][2-9]|5[78]|7[2-4])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[4-7]|[89][2-8]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:20|[3578]|4[04-9]|6[56]))|3(?:[3-6][2-9]|7(?:[2-5]|6[0-59])|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:[0468][2-9]|5[78]|7[2-4])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[4-7]|[89][2-8]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:20|[3578]|4[04-9]|6(?:5[25]|60)))|3(?:[3-6][2-9]|7(?:[2-5]|6[0-59])|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["1|2(?:2[37]|5[5-9]|64|78|8[39]|91)|4(?:2[2689]|64|7[347])|5[2-589]|60|8(?:2[124589]|3[279]|[46-9])|9(?:[235-8]|93)","1|2(?:2[37]|5(?:[57]|[68]0|9[19])|64|78|8[39]|917)|4(?:2(?:20|[68]|9[178])|64|7[347])|5[2-589]|60|8(?:2[124589]|3[279]|[46-9])|9(?:[235-8]|93[34])","1|2(?:2[37]|5(?:[57]|[68]0|9(?:17|99))|64|78|8[39]|917)|4(?:2(?:20|[68]|9[178])|64|7[347])|5[2-589]|60|8(?:2[124589]|3[279]|[46-9])|9(?:[235-8]|93(?:31|4))"]],["(\\\\d{3})(\\\\d{2})(\\\\d{4})","$1-$2-$3",["2(?:[34]7|[56]9|74|9[14-79])|82|993"]],["(\\\\d)(\\\\d{4})(\\\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[2479][1-9]"]]],"0","0$1"],"KE":["254","20\\\\d{6,7}|[4-9]\\\\d{6,9}",[["(\\\\d{2})(\\\\d{5,7})","$1 $2",["[24-6]"]],["(\\\\d{3})(\\\\d{6})","$1 $2",["7"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[89]"]]],"0","0$1","005|0"],"KG":["996","[235-8]\\\\d{8,9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[25-7]|31[25]"]],["(\\\\d{4})(\\\\d{5})","$1 $2",["3(?:1[36]|[2-9])"]],["(\\\\d{3})(\\\\d{3})(\\\\d)(\\\\d{3})","$1 $2 $3 $4",["8"]]],"0","0$1"],"KH":["855","[1-9]\\\\d{7,9}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["1\\\\d[1-9]|[2-9]"],"0$1"],["(1[89]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[89]0","1[89]00"]]],"0"],"KI":["686","[2458]\\\\d{4}|3\\\\d{4,7}|[67]\\\\d{7}",[],null,null,"0"],"KM":["269","[3478]\\\\d{6}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"KN":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"869"],"KP":["850","1\\\\d{9}|[28]\\\\d{7}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]],["(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8"]]],"0","0$1"],"KR":["82","00(?:3\\\\d{8,9}|7\\\\d{9,11})|[1-7]\\\\d{4,9}|8\\\\d{8}",[["(\\\\d{2})(\\\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"]],["(\\\\d{4})(\\\\d{4})","$1-$2",["1(?:5[246-9]|6[046-8]|8[03579])","1(?:5(?:22|44|66|77|88|99)|6(?:[07]0|44|6[16]|88)|8(?:00|33|55|77|99))"],"$1"],["(\\\\d{5})","$1",["1[016-9]1","1[016-9]11","1[016-9]114"]],["(\\\\d)(\\\\d{3,4})(\\\\d{4})","$1-$2-$3",["2[1-9]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["60[2-9]|80"]],["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1-$2-$3",["1[0-25-9]|(?:3[1-3]|[46][1-4]|5[1-5])[1-9]"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1-$2-$3",["[57]0"]]],"0","0$1","0(8[1-46-8]|85\\\\d{2})?"],"KW":["965","[12569]\\\\d{6,7}",[["(\\\\d{4})(\\\\d{3,4})","$1 $2",["[16]|2(?:[0-35-9]|4[0-35-9])|52[25]|9[024-9]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["244|5(?:[015]|6[56])"]]]],"KY":["1","[3589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"345"],"KZ":["7","(?:33\\\\d|7\\\\d{2}|80[089])\\\\d{7}",[["([3489]\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["[3489]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"8",null,null,null,null,null,["33622\\\\d{5}|7(?:1(?:0(?:[23]\\\\d|4[0-3]|59|63)|1(?:[23]\\\\d|4[0-79]|59)|2(?:[23]\\\\d|59)|3(?:2\\\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\\\d|3[013-9]|5[1-9])|5(?:2\\\\d|3[1-9]|4[0-7]|59)|6(?:[234]\\\\d|5[19]|61)|72\\\\d|8(?:[27]\\\\d|3[1-46-9]|4[0-5]))|2(?:1(?:[23]\\\\d|4[46-9]|5[3469])|2(?:2\\\\d|3[0679]|46|5[12679])|3(?:[234]\\\\d|5[139])|4(?:2\\\\d|3[1235-9]|59)|5(?:[23]\\\\d|4[01246-8]|59|61)|6(?:2\\\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\\\d|40|5[279])|8(?:[23]\\\\d|4[0-3]|59)|9(?:2\\\\d|3[124578]|59)))\\\\d{5}","7(?:0[012578]|47|6[02-4]|7[15-8]|85)\\\\d{7}","800\\\\d{7}","809\\\\d{7}","808\\\\d{7}",null,null,null,"751\\\\d{7}"]],"LA":["856","[2-8]\\\\d{7,9}",[["(20)(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["20"]],["([2-8]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"]],["(30)(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["30"]]],"0","0$1"],"LB":["961","[13-9]\\\\d{6,7}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["([7-9]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7(?:[01]|6[013-9]|8[89]|9[1-3])|[89][01]"]]],"0"],"LC":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"758"],"LI":["423","6\\\\d{8}|[23789]\\\\d{6}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["[237-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6[56]"]],["(69)(7\\\\d{2})(\\\\d{4})","$1 $2 $3",["697"]]],"0",null,"0|10(?:01|20|66)"],"LK":["94","[1-9]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[1-689]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"0","0$1"],"LR":["231","2\\\\d{7,8}|[378]\\\\d{8}|4\\\\d{6}|5\\\\d{6,8}",[["(2\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2"]],["([4-5])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[45]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[23578]"]]],"0","0$1"],"LS":["266","[2568]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"LT":["370","[3-9]\\\\d{7}",[["([34]\\\\d)(\\\\d{6})","$1 $2",["37|4(?:1|5[45]|6[2-4])"]],["([3-6]\\\\d{2})(\\\\d{5})","$1 $2",["3[148]|4(?:[24]|6[09])|528|6"]],["([7-9]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[7-9]"],"8 $1"],["(5)(2\\\\d{2})(\\\\d{4})","$1 $2 $3",["52[0-79]"]]],"8","(8-$1)","[08]",null,true],"LU":["352","[24-9]\\\\d{3,10}|3(?:[0-46-9]\\\\d{2,9}|5[013-9]\\\\d{1,8})",[["(\\\\d{2})(\\\\d{3})","$1 $2",["[2-5]|7[1-9]|[89](?:0[2-9]|[1-9])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["[2-5]|7[1-9]|[89](?:0[2-9]|[1-9])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["20"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["20"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,4})","$1 $2 $3 $4",["2(?:[12589]|4[12])|[3-5]|7[1-9]|8(?:0[2-9]|[1-9])|9(?:0[2-46-9]|[1-9])"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["70|80[01]|90[015]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6"]]],null,null,"(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\\\\d)"],"LV":["371","[2689]\\\\d{7}",[["([2689]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2689]"]]]],"LY":["218","[25679]\\\\d{8}",[["([25-79]\\\\d)(\\\\d{7})","$1-$2",["[25-79]"]]],"0","0$1"],"MA":["212","[5-9]\\\\d{8}",[["([5-7]\\\\d{2})(\\\\d{6})","$1-$2",["5(?:2[015-7]|3[0-4])|[67]"]],["([58]\\\\d{3})(\\\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|92)|892","5(?:2(?:[2-48]|9[0-7])|3(?:[5-79]|8[0-7])|924)|892"]],["(5\\\\d{4})(\\\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]"]],["([5]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5(?:4[067]|5[03])"]],["(8[09])(\\\\d{7})","$1-$2",["8(?:0|9[013-9])"]]],"0","0$1",null,null,null,null,["5(?:2(?:[015-79]\\\\d|2[02-9]|3[2-57]|4[2-8]|8[235-7])\\\\d|3(?:[0-48]\\\\d|[57][2-9]|6[2-8]|9[3-9])\\\\d|4[067]\\\\d{2}|5[03]\\\\d{2})\\\\d{4}","(?:6(?:[0-79]\\\\d|8[0-247-9])|7(?:0[067]|6[1267]|7[07]))\\\\d{6}","80\\\\d{7}","89\\\\d{7}",null,null,null,null,"5924[01]\\\\d{4}"]],"MC":["377","[34689]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[39]"],"$1"],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["4"]],["(6)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["6"]],["(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1 $2 $3",["8"],"$1"]],"0","0$1"],"MD":["373","[235-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["22|3"]],["([25-7]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["2[13-9]|[5-7]"]],["([89]\\\\d{2})(\\\\d{5})","$1 $2",["[89]"]]],"0","0$1"],"ME":["382","[2-9]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-57-9]|6[036-9]"]]],"0","0$1"],"MF":["590","[56]\\\\d{8}",[["([56]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["590|69[01]"]]],"0",null,null,null,null,null,["590(?:0[079]|13|2[79]|30|43|5[0-268]|7[79]|87)\\\\d{4}","69(?:0\\\\d{2}|1(?:2[29]|3[0-5]))\\\\d{4}"]],"MG":["261","[23]\\\\d{8}",[["([23]\\\\d)(\\\\d{2})(\\\\d{3})(\\\\d{2})","$1 $2 $3 $4",["[23]"]]],"0","0$1"],"MH":["692","[2-6]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1-$2"]],"1"],"MK":["389","[2-578]\\\\d{7}",[["(2)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"]],["([347]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[347]"]],["([58]\\\\d{2})(\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[58]"]]],"0","0$1"],"ML":["223","[246-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[246-9]"]]]],"MM":["95","[178]\\\\d{5,7}|[24-6]\\\\d{5,8}|9(?:[279]\\\\d{0,2}|5|[34]\\\\d{1,2}|6(?:\\\\d{1,2})?|8(?:\\\\d{2})?)\\\\d{6}",[["(\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["1|2[245]"]],["(2)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["251"]],["(\\\\d)(\\\\d{2})(\\\\d{3})","$1 $2 $3",["16|2"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["432|67|81"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3,4})","$1 $2 $3",["[4-8]"]],["(9)(\\\\d{3})(\\\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"]],["(9)([34]\\\\d{4})(\\\\d{4})","$1 $2 $3",["9(?:3[0-36]|4[0-57-9])"]],["(9)(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["92[56]"]],["(9)(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1 $2 $3 $4",["93"]]],"0","0$1"],"MN":["976","[12]\\\\d{7,9}|[57-9]\\\\d{7}",[["([12]\\\\d)(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[12]1"]],["([12]2\\\\d)(\\\\d{5,6})","$1 $2",["[12]2[1-3]"]],["([12]\\\\d{3})(\\\\d{5})","$1 $2",["[12](?:27|[3-5])","[12](?:27|[3-5]\\\\d)2"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["[57-9]"],"$1"],["([12]\\\\d{4})(\\\\d{4,5})","$1 $2",["[12](?:27|[3-5])","[12](?:27|[3-5]\\\\d)[4-9]"]]],"0","0$1"],"MO":["853","[268]\\\\d{7}",[["([268]\\\\d{3})(\\\\d{4})","$1 $2",["[268]"]]]],"MP":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"670"],"MQ":["596","[56]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]],"0","0$1"],"MR":["222","[2-48]\\\\d{7}",[["([2-48]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],"MS":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"664"],"MT":["356","[2357-9]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"MU":["230","[2-9]\\\\d{6,7}",[["([2-46-9]\\\\d{2})(\\\\d{4})","$1 $2",["[2-46-9]"]],["(5\\\\d{3})(\\\\d{4})","$1 $2",["5"]]]],"MV":["960","[346-8]\\\\d{6,9}|9(?:00\\\\d{7}|\\\\d{6})",[["(\\\\d{3})(\\\\d{4})","$1-$2",["[3467]|9(?:0[1-9]|[1-9])"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[89]00"]]]],"MW":["265","(?:1(?:\\\\d{2})?|[2789]\\\\d{2})\\\\d{6}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1"]],["(2\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[17-9]"]]],"0","0$1"],"MX":["52","[1-9]\\\\d{9,10}",[["([358]\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["33|55|81"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2467]|3[0-2457-9]|5[089]|8[02-9]|9[0-35-9]"]],["(1)([358]\\\\d)(\\\\d{4})(\\\\d{4})","044 $2 $3 $4",["1(?:33|55|81)"],"$1",null,"$1 $2 $3 $4"],["(1)(\\\\d{3})(\\\\d{3})(\\\\d{4})","044 $2 $3 $4",["1(?:[2467]|3[0-2457-9]|5[089]|8[2-9]|9[1-35-9])"],"$1",null,"$1 $2 $3 $4"]],"01","01 $1","0[12]|04[45](\\\\d{10})","1$1",true],"MY":["60","[13-9]\\\\d{7,9}",[["([4-79])(\\\\d{3})(\\\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(3)(\\\\d{4})(\\\\d{4})","$1-$2 $3",["3"],"0$1"],["([18]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1-$2 $3",["1[02-46-9][1-9]|8"],"0$1"],["(1)([36-8]00)(\\\\d{2})(\\\\d{4})","$1-$2-$3-$4",["1[36-8]0","1[36-8]00"]],["(11)(\\\\d{4})(\\\\d{4})","$1-$2 $3",["11"],"0$1"],["(15[49])(\\\\d{3})(\\\\d{4})","$1-$2 $3",["15[49]"],"0$1"]],"0"],"MZ":["258","[28]\\\\d{7,8}",[["([28]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2|8[2-7]"]],["(80\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["80"]]]],"NA":["264","[68]\\\\d{7,8}",[["(8\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8[1-35]"]],["(6\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["6"]],["(88)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["88"]],["(870)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["870"]]],"0","0$1"],"NC":["687","[2-57-9]\\\\d{5}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1.$2.$3",["[2-46-9]|5[0-4]"]]]],"NE":["227","[0289]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["09|[289]"]],["(08)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["08"]]]],"NF":["672","[13]\\\\d{5}",[["(\\\\d{2})(\\\\d{4})","$1 $2",["1"]],["(\\\\d)(\\\\d{5})","$1 $2",["3"]]]],"NG":["234","[1-6]\\\\d{5,8}|9\\\\d{5,9}|[78]\\\\d{5,13}",[["(\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2,3})","$1 $2 $3",["[3-6]|7(?:0[1-9]|[1-79])|8[2-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["70|8[01]|90[235-9]"]],["([78]00)(\\\\d{4})(\\\\d{4,5})","$1 $2 $3",["[78]00"]],["([78]00)(\\\\d{5})(\\\\d{5,6})","$1 $2 $3",["[78]00"]],["(78)(\\\\d{2})(\\\\d{3})","$1 $2 $3",["78"]]],"0","0$1"],"NI":["505","[125-8]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"NL":["31","1\\\\d{4,8}|[2-7]\\\\d{8}|[89]\\\\d{6,9}",[["([1-578]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[035]|2[0346]|3[03568]|4[0356]|5[0358]|7|8[4578]"]],["([1-5]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"]],["(6)(\\\\d{8})","$1 $2",["6[0-57-9]"]],["(66)(\\\\d{7})","$1 $2",["66"]],["(14)(\\\\d{3,4})","$1 $2",["14"],"$1"],["([89]0\\\\d)(\\\\d{4,7})","$1 $2",["[89]0"]]],"0","0$1"],"NO":["47","0\\\\d{4}|[2-9]\\\\d{7}",[["([489]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[489]"]],["([235-7]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[235-7]"]]],null,null,null,null,null,null,["(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\\\d{6}","(?:4[015-8]|5[89]|87|9\\\\d)\\\\d{6}","80[01]\\\\d{5}","82[09]\\\\d{5}","880\\\\d{5}",null,"0\\\\d{4}|81(?:0(?:0[7-9]|1\\\\d)|5\\\\d{2})\\\\d{3}",null,"85[0-5]\\\\d{5}","810(?:0[0-6]|[2-8]\\\\d)\\\\d{3}"]],"NP":["977","[1-8]\\\\d{7}|9(?:[1-69]\\\\d{6,8}|7[2-6]\\\\d{5,7}|8\\\\d{8})",[["(1)(\\\\d{7})","$1-$2",["1[2-6]"]],["(\\\\d{2})(\\\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-69]|7[15-9])"]],["(9\\\\d{2})(\\\\d{7})","$1-$2",["9(?:6[013]|7[245]|8)"],"$1"]],"0","0$1"],"NR":["674","[458]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"NU":["683","[1-5]\\\\d{3}"],"NZ":["64","6[235-9]\\\\d{6}|[2-57-9]\\\\d{7,9}",[["(\\\\d)(\\\\d{3})(\\\\d{4})","$1-$2 $3",["240|[346]|7[2-57-9]|9[1-9]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["21"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,5})","$1 $2 $3",["2(?:1[1-9]|[69]|7[0-35-9])|70|86"]],["(2\\\\d)(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["2[028]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["90"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2(?:10|74)|5|[89]0"]]],"0","0$1"],"OM":["968","(?:5|[279]\\\\d)\\\\d{6}|800\\\\d{5,6}",[["(2\\\\d)(\\\\d{6})","$1 $2",["2"]],["([79]\\\\d{3})(\\\\d{4})","$1 $2",["[79]"]],["([58]00)(\\\\d{4,6})","$1 $2",["[58]00"]]]],"PA":["507","[1-9]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1-$2",["[1-57-9]"]],["(\\\\d{4})(\\\\d{4})","$1-$2",["6"]]]],"PE":["51","[14-9]\\\\d{7,8}",[["(1)(\\\\d{7})","$1 $2",["1"]],["([4-8]\\\\d)(\\\\d{6})","$1 $2",["[4-7]|8[2-4]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["80"]],["(9\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9"],"$1"]],"0","(0$1)"],"PF":["689","4\\\\d{5,7}|8\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["4[09]|8[79]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["44"]]]],"PG":["675","[1-9]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[13-689]|27"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["20|7"]]]],"PH":["63","1\\\\d{10,12}|2\\\\d{5,7}|[3-7]\\\\d{8}|8\\\\d{7,9}|9\\\\d{9}",[["(2)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(2)(\\\\d{5})","$1 $2",["2"],"(0$1)"],["(\\\\d{4})(\\\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|5(?:22|44)|642|8(?:62|8[245])","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\\\d{5})(\\\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["([3-8]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[3-8]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["81|9"],"0$1"],["(1800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["180","1800"]],["(1800)(\\\\d{1,2})(\\\\d{3})(\\\\d{4})","$1 $2 $3 $4",["180","1800"]]],"0"],"PK":["92","1\\\\d{8}|[2-8]\\\\d{5,11}|9(?:[013-9]\\\\d{4,10}|2\\\\d(?:111\\\\d{6}|\\\\d{3,7}))",[["([89]00)(\\\\d{3})(\\\\d{2})","$1 $2 $3",["[89]00"],"0$1"],["(1\\\\d{3})(\\\\d{5})","$1 $2",["1"],"$1"],["(\\\\d{2})(\\\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"]],["(\\\\d{3})(\\\\d{6,7})","$1 $2",["2[349]|45|54|60|72|8[2-5]|9[2-469]","(?:2[349]|45|54|60|72|8[2-5]|9[2-469])\\\\d[2-9]"]],["(58\\\\d{3})(\\\\d{5})","$1 $2",["58[126]"]],["(3\\\\d{2})(\\\\d{7})","$1 $2",["3"],"0$1"],["(\\\\d{2})(111)(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)1","(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)11","(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)111"]],["(\\\\d{3})(111)(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["2[349]|45|54|60|72|8[2-5]|9[2-9]","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\\\d1","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\\\d11","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\\\d111"]]],"0","(0$1)"],"PL":["48","[1-57-9]\\\\d{6,8}|6\\\\d{5,8}",[["(\\\\d{3})(\\\\d{3})","$1 $2",["11[68]|64"]],["(\\\\d{5})","$1",["19"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["64"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["26|39|45|5[0137]|6[0469]|7[02389]|8[08]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[14]|2[0-57-9]|3[2-4]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145]"]]]],"PM":["508","[45]\\\\d{5}",[["([45]\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["[45]"]]],"0","0$1"],"PR":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"787|939"],"PS":["970","1\\\\d{9}|[24589]\\\\d{7,8}",[["([2489])(2\\\\d{2})(\\\\d{4})","$1 $2 $3",["[2489]2"]],["(5[69]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["5[69]"]],["(1[78]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[78]0","1[78]00"],"$1"]],"0","0$1"],"PT":["351","[2-46-9]\\\\d{8}",[["(2\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2[12]"]],["([2-46-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2[3-9]|[346-9]"]]]],"PW":["680","[2-8]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"PY":["595","5[0-5]\\\\d{4,7}|[2-46-9]\\\\d{5,8}",[["(\\\\d{2})(\\\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\\\d{3})(\\\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\\\d{3})(\\\\d{6})","$1 $2",["9[1-9]"],"0$1"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["870","8700"]],["(\\\\d{3})(\\\\d{4,5})","$1 $2",["[2-8][1-9]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-8][1-9]"],"0$1"]],"0"],"QA":["974","[2-8]\\\\d{6,7}",[["([28]\\\\d{2})(\\\\d{4})","$1 $2",["[28]"]],["([3-7]\\\\d{3})(\\\\d{4})","$1 $2",["[3-7]"]]]],"RE":["262","[268]\\\\d{8}",[["([268]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[268]"]]],"0","0$1",null,null,null,"262|69|8"],"RO":["40","[23]\\\\d{5,8}|[7-9]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[23]1"]],["(\\\\d{2})(\\\\d{4})","$1 $2",["[23]1"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[23][3-7]|[7-9]"]],["(2\\\\d{2})(\\\\d{3})","$1 $2",["2[3-6]"]]],"0","0$1"],"RS":["381","[126-9]\\\\d{4,11}|3(?:[0-79]\\\\d{3,10}|8[2-9]\\\\d{2,9})",[["([23]\\\\d{2})(\\\\d{4,9})","$1 $2",["(?:2[389]|39)0"]],["([1-3]\\\\d)(\\\\d{5,10})","$1 $2",["1|2(?:[0-24-7]|[389][1-9])|3(?:[0-8]|9[1-9])"]],["(6\\\\d)(\\\\d{6,8})","$1 $2",["6"]],["([89]\\\\d{2})(\\\\d{3,9})","$1 $2",["[89]"]],["(7[26])(\\\\d{4,9})","$1 $2",["7[26]"]],["(7[08]\\\\d)(\\\\d{4,9})","$1 $2",["7[08]"]]],"0","0$1"],"RU":["7","[347-9]\\\\d{9}",[["([3489]\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["[3489]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"8","8 ($1)",null,null,true,null,["(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15]|6[1-35-79]|7[1-37-9]))\\\\d{7}","9\\\\d{9}","80[04]\\\\d{7}","80[39]\\\\d{7}","808\\\\d{7}"]],"RW":["250","[027-9]\\\\d{7,8}",[["(2\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2"]],["([7-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(0\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["0"]]],"0"],"SA":["966","1\\\\d{7,8}|(?:[2-467]|92)\\\\d{7}|5\\\\d{8}|8\\\\d{9}",[["([1-467])(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1-467]"]],["(1\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[1-467]"]],["(5\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["5"]],["(92\\\\d{2})(\\\\d{5})","$1 $2",["92"],"$1"],["(800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["800"],"$1"],["(811)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["811"]]],"0","0$1"],"SB":["677","[1-9]\\\\d{4,6}",[["(\\\\d{2})(\\\\d{5})","$1 $2",["[7-9]"]]]],"SC":["248","[24689]\\\\d{5,6}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[246]"]]]],"SD":["249","[19]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3"]],"0","0$1"],"SE":["46","[1-35-9]\\\\d{5,11}|4\\\\d{6,8}",[["(8)(\\\\d{2,3})(\\\\d{2,3})(\\\\d{2})","$1-$2 $3 $4",["8"],null,null,"$1 $2 $3 $4"],["([1-69]\\\\d)(\\\\d{2,3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["1[013689]|2[0136]|3[1356]|4[0246]|54|6[03]|90"],null,null,"$1 $2 $3 $4"],["([1-469]\\\\d)(\\\\d{3})(\\\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90"],null,null,"$1 $2 $3"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[0-5]|4[0-3])"],null,null,"$1 $2 $3 $4"],["(\\\\d{3})(\\\\d{2,3})(\\\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[0-5]|4[0-3])"],null,null,"$1 $2 $3"],["(7\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["7"],null,null,"$1 $2 $3 $4"],["(77)(\\\\d{2})(\\\\d{2})","$1-$2$3",["77"],null,null,"$1 $2 $3"],["(20)(\\\\d{2,3})(\\\\d{2})","$1-$2 $3",["20"],null,null,"$1 $2 $3"],["(9[034]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1-$2 $3 $4",["9[034]"],null,null,"$1 $2 $3 $4"],["(9[034]\\\\d)(\\\\d{4})","$1-$2",["9[034]"],null,null,"$1 $2"],["(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4 $5",["25[245]|67[3-6]"],null,null,"$1 $2 $3 $4 $5"]],"0","0$1"],"SG":["65","[36]\\\\d{7}|[17-9]\\\\d{7,10}",[["([3689]\\\\d{3})(\\\\d{4})","$1 $2",["[369]|8[1-9]"]],["(1[89]00)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[89]0","1[89]00"]],["(7000)(\\\\d{4})(\\\\d{3})","$1 $2 $3",["700","7000"]],["(800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["800"]]]],"SH":["290","[256]\\\\d{4}|8\\\\d{3}",[],null,null,null,null,null,null,["2(?:[0-57-9]\\\\d|6[4-9])\\\\d{2}","[56]\\\\d{4}",null,null,null,null,null,null,"262\\\\d{2}"]],"SI":["386","[1-7]\\\\d{6,7}|[89]\\\\d{4,7}",[["(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[12]|[34][24-8]|5[2-8]|7[3-8]"],"(0$1)"],["([3-7]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"]],["([89][09])(\\\\d{3,6})","$1 $2",["[89][09]"]],["([58]\\\\d{2})(\\\\d{5})","$1 $2",["59|8[1-3]"]]],"0","0$1"],"SJ":["47","0\\\\d{4}|[45789]\\\\d{7}",[["([489]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[489]"]],["([235-7]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[235-7]"]]],null,null,null,null,null,null,["79\\\\d{6}","(?:4[015-8]|5[89]|9\\\\d)\\\\d{6}","80[01]\\\\d{5}","82[09]\\\\d{5}","880\\\\d{5}",null,"0\\\\d{4}|81(?:0(?:0[7-9]|1\\\\d)|5\\\\d{2})\\\\d{3}",null,"85[0-5]\\\\d{5}","810(?:0[0-6]|[2-8]\\\\d)\\\\d{3}"]],"SK":["421","(?:[2-68]\\\\d{5,8}|9\\\\d{6,8})",[["(2)(1[67])(\\\\d{3,4})","$1 $2 $3",["21[67]"]],["([3-5]\\\\d)(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["[3-5]"]],["(2)(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1/$2 $3 $4",["2"]],["([3-5]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1/$2 $3 $4",["[3-5]"]],["([689]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[689]"]],["(9090)(\\\\d{3})","$1 $2",["909","9090"]]],"0","0$1"],"SL":["232","[2-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{6})","$1 $2"]],"0","(0$1)"],"SM":["378","[05-7]\\\\d{7,9}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(0549)(\\\\d{6})","$1 $2",["054","0549"],null,null,"($1) $2"],["(\\\\d{6})","0549 $1",["[89]"],null,null,"(0549) $1"]],null,null,"([89]\\\\d{5})","0549$1"],"SN":["221","[3789]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[379]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["8"]]]],"SO":["252","[1-9]\\\\d{5,8}",[["(\\\\d{6})","$1",["[134]"]],["(\\\\d)(\\\\d{6})","$1 $2",["[13-5]|2[0-79]"]],["(\\\\d)(\\\\d{7})","$1 $2",["24|[67]"]],["(\\\\d{2})(\\\\d{4})","$1 $2",["8[125]"]],["(\\\\d{2})(\\\\d{5,7})","$1 $2",["15|28|6[1-35-9]|799|9[2-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["3[59]|4[89]|6[24-6]|79|8[08]|90"]]],"0"],"SR":["597","[2-8]\\\\d{5,6}",[["(\\\\d{3})(\\\\d{3})","$1-$2",["[2-4]|5[2-58]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1-$2-$3",["56"]],["(\\\\d{3})(\\\\d{4})","$1-$2",["[6-8]"]]]],"SS":["211","[19]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",null,"0$1"]],"0"],"ST":["239","[29]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"SV":["503","[267]\\\\d{7}|[89]\\\\d{6}(?:\\\\d{4})?",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[267]"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["[89]"]],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[89]"]]]],"SX":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"721"],"SY":["963","[1-59]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[1-5]"]],["(9\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9"]]],"0","0$1",null,null,true],"SZ":["268","[027]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[027]"]]]],"TA":["290","8\\\\d{3}",[],null,null,null,null,null,null,["8\\\\d{3}"]],"TC":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"649"],"TD":["235","[2679]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"TG":["228","[279]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[279]"]]]],"TH":["66","1\\\\d{8,9}|[2-9]\\\\d{7,8}",[["(2)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"]],["([13-9]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["14|[3-9]"]],["(1[89]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[89]0","1[89]00"],"$1"]],"0","0$1"],"TJ":["992","[3-57-9]\\\\d{8}",[["([349]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[34]7|91[78]"]],["([457-9]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["4[148]|[578]|9(?:[0235-9]|1[59])"]],["(331700)(\\\\d)(\\\\d{2})","$1 $2 $3",["331","3317","33170","331700"]],["(\\\\d{4})(\\\\d)(\\\\d{4})","$1 $2 $3",["3[1-5]","3(?:[1245]|3(?:[02-9]|1[0-589]))"]]],"8",null,null,null,true],"TK":["690","[2-47]\\\\d{3,6}"],"TL":["670","[2-489]\\\\d{6}|7\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[2-489]|70"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["7[3-8]"]]]],"TM":["993","[1-6]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["12"]],["(\\\\d{2})(\\\\d{6})","$1 $2",["6"],"8 $1"],["(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["13|[2-5]"]]],"8","(8 $1)"],"TN":["216","[2-57-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3"]]],"TO":["676","[02-8]\\\\d{4,6}",[["(\\\\d{2})(\\\\d{3})","$1-$2",["[1-6]|7[0-4]|8[05]"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["7[5-9]|8[47-9]"]],["(\\\\d{4})(\\\\d{3})","$1 $2",["0"]]]],"TR":["90","[2-589]\\\\d{9}|444\\\\d{4}",[["(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[23]|4(?:[0-35-9]|4[0-35-9])"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5[02-69]"],"0$1"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["51|[89]"],"0$1"],["(444)(\\\\d{1})(\\\\d{3})","$1 $2 $3",["444"]]],"0",null,null,null,true],"TT":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"868"],"TV":["688","[279]\\\\d{4,6}"],"TW":["886","2\\\\d{6,8}|[3-689]\\\\d{7,8}|7\\\\d{7,9}",[["(20)(\\\\d)(\\\\d{4})","$1 $2 $3",["202"]],["([258]0)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["20[013-9]|50[0-46-9]|80[0-79]"]],["([2-8])(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["[25][2-8]|[346]|[78][1-9]"]],["(9\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9"]],["(70)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["70"]]],"0","0$1"],"TZ":["255","\\\\d{9}",[["([24]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[24]"]],["([67]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[67]"]],["([89]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[89]"]]],"0","0$1"],"UA":["380","[3-9]\\\\d{8}",[["([3-9]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[38]9|4(?:[45][0-5]|87)|5(?:0|[67][37])|6[36-8]|7|9[1-9]","[38]9|4(?:[45][0-5]|87)|5(?:0|6(?:3[14-7]|7)|7[37])|6[36-8]|7|9[1-9]"]],["([3-689]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["(?:3[1-8]|4[136-8])2|5(?:[12457]2|6[24])|6(?:[12][29]|[49]2|5[24])|8[0-8]|90","3(?:[1-46-8]2[013-9]|52)|4(?:[1378]2|62[013-9])|5(?:[12457]2|6[24])|6(?:[12][29]|[49]2|5[24])|8[0-8]|90"]],["([3-6]\\\\d{3})(\\\\d{5})","$1 $2",["3(?:[1-46-8]|5[013-9])|4(?:[137][013-9]|[45][6-9]|6|8[4-6])|5(?:[1245][013-9]|3|6[0135689]|7[4-6])|6(?:[12][13-8]|[49][013-9]|5[0135-9])","3(?:[1-46-8](?:[013-9]|22)|5[013-9])|4(?:[137][013-9]|[45][6-9]|6(?:[013-9]|22)|8[4-6])|5(?:[1245][013-9]|3|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][13-8]|[49][013-9]|5[0135-9])"]]],"0","0$1"],"UG":["256","\\\\d{9}",[["(\\\\d{3})(\\\\d{6})","$1 $2",["20[0-8]|4(?:6[45]|[7-9])|[7-9]","20(?:[013-8]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"]],["(\\\\d{2})(\\\\d{7})","$1 $2",["3|4(?:[1-5]|6[0-36-9])"]],["(2024)(\\\\d{5})","$1 $2",["202","2024"]]],"0","0$1"],"US":["1","[2-9]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,true,null,["(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[026]|8[13])|3(?:0[1-57-9]|1[02-9]|2[0135]|3[0-24679]|4[67]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[0235]|58|6[39]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[013-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[16]|5[017]|6[0-279]|78|8[012])|7(?:0[1-46-8]|1[02-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|28|3[0-258]|4[3578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[014678]|4[0179]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\\\d{6}",null,"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}","900[2-9]\\\\d{6}","5(?:(?:00|22|33|44|66|77|88)[2-9]|21[23])\\\\d{6}"]],"UY":["598","[2489]\\\\d{6,7}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[24]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9[1-9]"],"0$1"],["(\\\\d{3})(\\\\d{4})","$1 $2",["[89]0"],"0$1"]],"0"],"UZ":["998","[679]\\\\d{8}",[["([679]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[679]"]]],"8","8 $1"],"VA":["39","(?:0(?:878\\\\d{5}|6698\\\\d{5})|[1589]\\\\d{5,10}|3(?:[12457-9]\\\\d{8}|[36]\\\\d{7,9}))",[["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[26]|55"]],["(0[26])(\\\\d{4})(\\\\d{5})","$1 $2 $3",["0[26]"]],["(0[26])(\\\\d{4,6})","$1 $2",["0[26]"]],["(0\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[13-57-9][0159]"]],["(\\\\d{3})(\\\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]],["(0\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["0[13-57-9][2-46-8]"]],["(0\\\\d{3})(\\\\d{2,6})","$1 $2",["0[13-57-9][2-46-8]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[13]|8(?:00|4[08]|9[59])","[13]|8(?:00|4[08]|9(?:5[5-9]|9))"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["894","894[5-9]"]],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["3"]]],null,null,null,null,null,null,["06698\\\\d{5}","3(?:[12457-9]\\\\d{8}|6\\\\d{7,8}|3\\\\d{7,9})","80(?:0\\\\d{6}|3\\\\d{3})","0878\\\\d{5}|1(?:44|6[346])\\\\d{6}|89(?:2\\\\d{3}|4(?:[0-4]\\\\d{2}|[5-9]\\\\d{4})|5(?:[0-4]\\\\d{2}|[5-9]\\\\d{6})|9\\\\d{6})","1(?:78\\\\d|99)\\\\d{6}",null,null,null,"55\\\\d{8}","84(?:[08]\\\\d{6}|[17]\\\\d{3})"]],"VC":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"784"],"VE":["58","[24589]\\\\d{9}",[["(\\\\d{3})(\\\\d{7})","$1-$2"]],"0","0$1"],"VG":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"284"],"VI":["1","[3589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"340"],"VN":["84","1\\\\d{6,9}|2\\\\d{9}|6\\\\d{6,7}|7\\\\d{6}|8\\\\d{6,8}|9\\\\d{8}",[["([17]99)(\\\\d{4})","$1 $2",["[17]99"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2[48]"]],["(80)(\\\\d{5})","$1 $2",["80"]],["(69\\\\d)(\\\\d{4,5})","$1 $2",["69"]],["(\\\\d{3})(\\\\d{4})(\\\\d{3})","$1 $2 $3",["2[0-35-79]"]],["([89]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["8(?:8|9[89])|9"]],["(1[2689]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[26]|8[68]|99)"]],["(86[89])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["86[89]"]],["(1[89]00)(\\\\d{4,6})","$1 $2",["1[89]0","1[89]00"],"$1"]],"0","0$1",null,null,true],"VU":["678","[2-57-9]\\\\d{4,6}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[579]"]]]],"WF":["681","[4-8]\\\\d{5}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"WS":["685","[2-8]\\\\d{4,6}",[["(8\\\\d{2})(\\\\d{3,4})","$1 $2",["8"]],["(7\\\\d)(\\\\d{5})","$1 $2",["7"]],["(\\\\d{5})","$1",["[2-6]"]]]],"YE":["967","[1-7]\\\\d{6,8}",[["([1-7])(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7[0137]"]]],"0","0$1"],"YT":["262","[268]\\\\d{8}",[["([268]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[268]"]]],"0",null,null,null,null,"269|63"],"ZA":["27","[1-79]\\\\d{8}|8\\\\d{4,8}",[["(860)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["860"]],["(\\\\d{2})(\\\\d{3,4})","$1 $2",["8[1-4]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2,3})","$1 $2 $3",["8[1-4]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1-79]|8(?:[0-57]|6[1-9])"]]],"0","0$1"],"ZM":["260","[289]\\\\d{8}",[["(\\\\d{2})(\\\\d{4})","$1 $2",null,"$1"],["([1-8])(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[1-8]"],"$1"],["([29]\\\\d)(\\\\d{7})","$1 $2",["[29]"]],["(800)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["800"]]],"0","0$1"],"ZW":["263","2(?:[0-57-9]\\\\d{3,8}|6(?:[14]\\\\d{7}|\\\\d{4}))|[13-69]\\\\d{4,9}|7\\\\d{8}|8[06]\\\\d{5,8}",[["([49])(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["4|9[2-9]"]],["(7\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]],["(86\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["86[24]"]],["([2356]\\\\d{2})(\\\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8|[78])|3(?:[09]8|17|3[78]|7[1569]|8[37])|5[15][78]|6(?:[29]8|37|[68][78]|75)"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|31|[56][14]|7[35]|84)|329"]],["([1-356]\\\\d)(\\\\d{3,5})","$1 $2",["1[3-9]|2[02569]|3[0-69]|5[05689]|6"]],["([235]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[23]9|54"]],["([25]\\\\d{3})(\\\\d{3,5})","$1 $2",["(?:25|54)8","258[23]|5483"]],["(8\\\\d{3})(\\\\d{6})","$1 $2",["86"]],["(80\\\\d)(\\\\d{4})","$1 $2",["80"]]],"0","0$1"],"001":["979","\\\\d{9}",[["(\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3"]]]}}')},YLEk:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("JIED")),r(n("OSYy"))},Ylt2:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this)).subject=e,i.subscriber=r,i.closed=!1,i}return y(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(n("quSY").a)},YqAc:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},ZF92:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.minDate=function(e){if(!(i.isDate(e)||e instanceof Function))throw Error("minDate value must be or return a formatted date");return function(t){if(i.isPresent(r.Validators.required(t)))return null;var n=new Date(t.value);return i.isDate(n)?(e instanceof Function&&(e=e()),n>=new Date(e)?null:{minDate:!0}):{minDate:!0}}}},ZR4w:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.map=function(e,t){return r.map(e,t)(this)}},ZUHj:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this)).parent=e,o.outerValue=r,o.outerIndex=i,o.index=0,o}return y(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(n("7o/Q").a),i=n("SeVD"),o=n("HDdC");function a(e,t,n,a){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new r(e,n,a);if(!u.closed)return t instanceof o.a?t.subscribe(u):Object(i.a)(t)(u)}},Zb1L:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("XQZo")),r(n("b2M7"))},a0xu:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},aP66:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("kU1M");t.timeout=function(e,t){return void 0===t&&(t=r.asyncScheduler),i.timeout(e,t)(this)}},afP1:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("WQkh")),r(n("48ZK"))},b2M7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.digits=function(e){return i.isPresent(r.Validators.required(e))||/^\d+$/.test(e.value)?null:{digits:!0}}},bBy9:function(e,t,n){n("w2d+");for(var r=n("5T2Y"),i=n("NegM"),o=n("SBuE"),a=n("UWiX")("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(r.b)(i.a,e)}},bOdf:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("5+tZ");function i(e,t){return Object(r.b)(e,t,1)}},c2HN:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return r})},"cN+o":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("Cjah")),r(n("TwXH"))},ccE7:function(e,t,n){var r=n("Ojgd"),i=n("Jes0");e.exports=function(e){return function(t,n){var o,a,u=String(i(t)),s=r(n),l=u.length;return s<0||s>=l?e?"":void 0:(o=u.charCodeAt(s))<55296||o>56319||s+1===l||(a=u.charCodeAt(s+1))<56320||a>57343?e?u.charAt(s):o:e?u.slice(s,s+2):a-56320+(o-55296<<10)+65536}}},cp0P:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("HDdC"),i=n("DH7j"),a=n("lJxs"),u=n("XoHu"),s=n("Cfvw");function l(){for(var e=arguments.length,t=new Array(e),n=0;n ".concat(n," ").concat(r," ").concat(t," <=Actual]")))}function I(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var T=I;function j(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function A(e){return V(e,N)||V(e,R)}function V(e,t){return e.hasOwnProperty(t)?e[t]:null}function P(e){return e&&(e.hasOwnProperty(D)||e.hasOwnProperty(F))?e[D]:null}var M,N=_({"\u0275prov":_}),D=_({"\u0275inj":_}),R=_({ngInjectableDef:_}),F=_({ngInjectorDef:_}),L=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function B(){return M}function H(e){var t=M;return M=e,t}function U(e,t,n){var r=A(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&L.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(k(e),"]"))}function q(e){return{toString:e}.toString()}var W=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),z=function(e){return e[e.CheckOnce=0]="CheckOnce",e[e.Checked=1]="Checked",e[e.CheckAlways=2]="CheckAlways",e[e.Detached=3]="Detached",e[e.Errored=4]="Errored",e[e.Destroyed=5]="Destroyed",e}({});function G(e){return null==e||e===W.Default}var K=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Q="undefined"!=typeof globalThis&&globalThis,Z="undefined"!=typeof window&&window,X="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Y="undefined"!=typeof global&&global,J=Q||Y||Z||X,ee={},te=[],ne=_({"\u0275cmp":_}),re=_({"\u0275dir":_}),ie=_({"\u0275pipe":_}),oe=_({"\u0275mod":_}),ae=_({"\u0275loc":_}),ue=_({"\u0275fac":_}),se=_({__NG_ELEMENT_ID__:_}),le=0;function ce(e){return q(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===W.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||te,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||K.Emulated,id:"c",styles:e.styles||te,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,o=e.pipes;return n.id+=le++,n.inputs=me(e.inputs,t),n.outputs=me(e.outputs),i&&i.forEach(function(e){return e(n)}),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(fe)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(he)}:null,n})}function de(e,t,n){var r=e.\u0275cmp;r.directiveDefs=function(){return t.map(fe)},r.pipeDefs=function(){return n.map(he)}}function fe(e){return _e(e)||we(e)}function he(e){return ke(e)}var pe={};function ve(e){var t={type:e.type,bootstrap:e.bootstrap||te,declarations:e.declarations||te,imports:e.imports||te,exports:e.exports||te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&q(function(){pe[e.id]=e.type}),t}function ge(e,t){return q(function(){var n=Ce(e,!0);n.declarations=t.declarations||te,n.imports=t.imports||te,n.exports=t.exports||te})}function me(e,t){if(null==e)return ee;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var ye=ce;function be(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function _e(e){return e[ne]||null}function we(e){return e[re]||null}function ke(e){return e[ie]||null}function Ce(e,t){var n=e[oe]||null;if(!n&&!0===t)throw new Error("Type ".concat(k(e)," does not have '\u0275mod' property."));return n}function xe(e){return Array.isArray(e)&&"object"==typeof e[1]}function $e(e){return Array.isArray(e)&&!0===e[1]}function Se(e){return 0!=(8&e.flags)}function Ee(e){return 2==(2&e.flags)}function Oe(e){return 1==(1&e.flags)}function Ie(e){return null!==e.template}function Te(e,t){return e.hasOwnProperty(ue)?e[ue]:null}var je=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,r))).code=e,i}return n}(n(Error));function Ae(e){return"string"==typeof e?e:null==e?"":String(e)}function Ve(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ae(e)}function Pe(e,t){var n=t?" in "+t:"";throw new je("201","No provider for ".concat(Ve(e)," found").concat(n))}var Me=function(){function e(t,n,r){g(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return y(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Ne(){return De}function De(e){return e.type.prototype.ngOnChanges&&(e.setInput=Fe),Re}function Re(){var e=Le(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===ee)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Fe(e,t,n,r){var i=Le(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:ee,current:null}),o=i.current||(i.current={}),a=i.previous,u=this.declaredInputs[n],s=a[u];o[u]=new Me(s&&s.currentValue,t,a===ee),e[r]=t}function Le(e){return e.__ngSimpleChanges__||null}Ne.ngInherit=!0;var Be=void 0;function He(e){Be=e}function Ue(){return void 0!==Be?Be:"undefined"!=typeof document?document:void 0}function qe(e){return!!e.listen}var We={createRenderer:function(e,t){return Ue()}};function ze(e){for(;Array.isArray(e);)e=e[0];return e}function Ge(e,t){return ze(t[e])}function Ke(e,t){return ze(t[e.index])}function Qe(e,t){return e.data[t]}function Ze(e,t){return e[t]}function Xe(e,t){var n=t[e];return xe(n)?n:n[0]}function Ye(e){return e.__ngContext__||null}function Je(e){var t=Ye(e);return t?Array.isArray(t)?t:t.lView:null}function et(e){return 4==(4&e[2])}function tt(e){return 128==(128&e[2])}function nt(e,t){return null==t?null:e[t]}function rt(e){e[18]=0}function it(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var ot={lFrame:Pt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function at(){return ot.bindingsEnabled}function ut(){ot.bindingsEnabled=!0}function st(){ot.bindingsEnabled=!1}function lt(){return ot.lFrame.lView}function ct(){return ot.lFrame.tView}function dt(e){ot.lFrame.contextLView=e}function ft(){for(var e=ht();null!==e&&64===e.type;)e=e.parent;return e}function ht(){return ot.lFrame.currentTNode}function pt(){var e=ot.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function vt(e,t){var n=ot.lFrame;n.currentTNode=e,n.isParent=t}function gt(){return ot.lFrame.isParent}function mt(){ot.lFrame.isParent=!1}function yt(){return ot.isInCheckNoChangesMode}function bt(e){ot.isInCheckNoChangesMode=e}function _t(){var e=ot.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function wt(){return ot.lFrame.bindingIndex}function kt(e){return ot.lFrame.bindingIndex=e}function Ct(){return ot.lFrame.bindingIndex++}function xt(e){var t=ot.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function $t(e){ot.lFrame.inI18n=e}function St(e){ot.lFrame.currentDirectiveIndex=e}function Et(e){var t=ot.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Ot(){return ot.lFrame.currentQueryIndex}function It(e){ot.lFrame.currentQueryIndex=e}function Tt(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function jt(e,t,n){if(n&L.SkipSelf){for(var r=t,i=e;!(null!==(r=r.parent)||n&L.Host||(r=Tt(i),null===r)||(i=i[15],10&r.type)););if(null===r)return!1;t=r,e=i}var o=ot.lFrame=Vt();return o.currentTNode=t,o.lView=e,!0}function At(e){var t=Vt(),n=e[1];ot.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Vt(){var e=ot.lFrame,t=null===e?null:e.child;return null===t?Pt(e):t}function Pt(e){var 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 Mt(){var e=ot.lFrame;return ot.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Nt=Mt;function Dt(){var e=Mt();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 Rt(e){return(ot.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,ot.lFrame.contextLView))[8]}function Ft(){return ot.lFrame.selectedIndex}function Lt(e){ot.lFrame.selectedIndex=e}function Bt(){var e=ot.lFrame;return Qe(e.tView,e.selectedIndex)}function Ht(){ot.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Ut(){ot.lFrame.currentNamespace="http://www.w3.org/1998/MathML/"}function qt(){ot.lFrame.currentNamespace=null}function Wt(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[a]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var Xt=function e(t,n,r){g(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function Yt(e,t,n){for(var r=qe(e),i=0;it){a=o-1;break}}}for(;o>16,r=t;n>0;)r=r[15],n--;return r}var un=!0;function sn(e){var t=un;return un=e,t}var ln=0;function cn(e,t){var n=fn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,dn(r.data,e),dn(t,null),dn(r.blueprint,null));var i=hn(e,t),o=e.injectorIndex;if(rn(i))for(var a=on(i),u=an(i,t),s=u[1].data,l=0;l<8;l++)t[o+l]=u[a+l]|s[a+l];return t[o+8]=i,o}function dn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function fn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function hn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,r=null,i=t;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function pn(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(se)&&(r=n[se]),null==r&&(r=n[se]=ln++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:L.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(se)?e[se]:void 0;return"number"==typeof t?t>=0?255&t:_n:t}(n);if("function"==typeof o){if(!jt(t,e,r))return r&L.Host?gn(i,n,r):mn(t,n,r,i);try{var a=o();if(null!=a||r&L.Optional)return a;Pe(n)}finally{Nt()}}else if("number"==typeof o){var u=null,s=fn(e,t),l=-1,c=r&L.Host?t[16][6]:null;for((-1===s||r&L.SkipSelf)&&(-1!==(l=-1===s?hn(e,t):t[s+8])&&$n(r,!1)?(u=t[1],s=on(l),t=an(l,t)):s=-1);-1!==s;){var d=t[1];if(xn(o,s,d.data)){var f=wn(s,t,n,u,r,c);if(f!==bn)return f}-1!==(l=t[s+8])&&$n(r,t[1].data[s+8]===c)&&xn(o,s,t)?(u=d,s=on(l),t=an(l,t)):s=-1}}}return mn(t,n,r,i)}var bn={};function _n(){return new Sn(ft(),lt())}function wn(e,t,n,r,i,o){var a=t[1],u=a.data[e+8],s=kn(u,a,n,null==r?Ee(u)&&un:r!=a&&0!=(3&u.type),i&L.Host&&o===u);return null!==s?Cn(t,a,s,u):bn}function kn(e,t,n,r,i){for(var o=e.providerIndexes,a=t.data,u=1048575&o,s=e.directiveStart,l=o>>20,c=i?u+l:e.directiveEnd,d=r?u:u+l;d=s&&f.type===n)return d}if(i){var h=a[s];if(h&&Ie(h)&&h.type===n)return s}return null}function Cn(e,t,n,r){var i=e[n],o=t.data;if(i instanceof Xt){var a=i;a.resolving&&function(e,t){throw new je("200","Circular dependency in DI detected for "+e)}(Ve(o[n]));var u=sn(a.canSeeViewProviders);a.resolving=!0;var s=a.injectImpl?H(a.injectImpl):null;jt(e,r,L.Default);try{i=e[n]=a.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.type.prototype,i=r.ngOnChanges,o=r.ngOnInit,a=r.ngDoCheck;if(i){var u=De(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==s&&H(s),sn(u),a.resolving=!1,Nt()}}return i}function xn(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1},t)},Bn),Un=Nn("ContentChild",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)},Bn),qn=Nn("ViewChildren",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0},t)},Bn),Wn=Nn("ViewChild",function(e,t){return Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)},Bn),zn=function(e){return e[e.Token=0]="Token",e[e.Attribute=1]="Attribute",e[e.ChangeDetectorRef=2]="ChangeDetectorRef",e[e.Invalid=3]="Invalid",e}({});function Gn(){var e=J.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}var Kn=Function;function Qn(e){return"function"==typeof e}function Zn(e,t){void 0===t&&(t=e);for(var n=0;n=e.length?e.push(n):e.splice(t,0,n)}function Jn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function er(e,t){for(var n=[],r=0;r=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function nr(e,t){var n=rr(e,t);if(n>=0)return e[1|n]}function rr(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),a=e[o<<1];if(t===a)return o<<1;a>t?i=o:r=o+1}return~(i<<1)}(e,t)}var ir=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|[^()]+\(arguments\))\)/,or=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,ar=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,ur=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/,sr=function(){function e(t){g(this,e),this._reflect=t||J.Reflect}return y(e,[{key:"isReflectionEnabled",value:function(){return!0}},{key:"factory",value:function(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i0)for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:L.Default;if(void 0===Tr)throw new Error("inject() must be called from an injection context");return null===Tr?U(e,void 0,t):Tr.get(e,t&L.Optional?null:void 0,t)}function Vr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L.Default;return(B()||Ar)(S(e),t)}function Pr(e){throw new Error("invalid")}var Mr,Nr=Vr;function Dr(e){for(var t=[],n=0;n"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();_i.hasOwnProperty(t)&&!gi.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(Oi(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}]),e}(),Si=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ei=/([^\#-~ |!])/g;function Oi(e){return e.replace(/&/g,"&").replace(Si,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ei,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function Ii(e,t){var n=null;try{vi=vi||ai(e);var r=t?String(t):"";n=vi.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=vi.getInertBodyElement(r)}while(r!==o);var a=new $i,u=a.sanitizeChildren(Ti(n)||n);return ii()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see https://g.co/ng/security#xss"),u}finally{if(n)for(var s=Ti(n)||n;s.firstChild;)s.removeChild(s.firstChild)}}function Ti(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ji=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Ai(e){var t=Hi();return t?t.sanitize(ji.HTML,e)||"":Qr(e,"HTML")?Kr(e):Ii(Ue(),Ae(e))}function Vi(e){var t=Hi();return t?t.sanitize(ji.STYLE,e)||"":Qr(e,"Style")?Kr(e):Ae(e)}function Pi(e){var t=Hi();return t?t.sanitize(ji.URL,e)||"":Qr(e,"URL")?Kr(e):di(Ae(e))}function Mi(e){var t=Hi();if(t)return t.sanitize(ji.RESOURCE_URL,e)||"";if(Qr(e,"ResourceURL"))return Kr(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Ni(e){var t=Hi();if(t)return t.sanitize(ji.SCRIPT,e)||"";if(Qr(e,"Script"))return Kr(e);throw new Error("unsafe value used in a script context")}function Di(e){return Fr(e)}function Ri(e){return Lr(e)}function Fi(e){return Br(e)}function Li(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Mi:Pi}function Bi(e,t,n){return Li(t,n)(e)}function Hi(){var e=lt();return e&&e[12]}function Ui(e){return e.ngDebugContext}function qi(e){return e.ngOriginalError}function Wi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0){var g=ze(p[v]),m=Yi(p,v,g);eo(g,m),n=m;break}}}return n||null}function Yi(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Ji(e){var t,n=Ye(e);if(Array.isArray(n)){var r=ro(n,e),i=Yi(n,r,(t=Xe(r,n))[0]);i.component=e,eo(e,i),eo(i.native,i)}else t=Xe(n.nodeIndex,n.lView);return t}function eo(e,t){e.__ngContext__=t}function to(e,t){for(var n=e[1],r=20;r0&&(e[r-1][4]=i[4]);var a=Jn(e,10+t);qo(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var u=a[19];null!==u&&u.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function So(e,t){if(!(256&t[2])){var n=t[11];qe(n)&&n.destroyNode&&qo(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Eo(e[1],e);for(;t;){var n=null;if(xe(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)xe(t)&&Eo(t[1],t),t=t[3];null===t&&(t=e),xe(t)&&Eo(t[1],t),n=t&&t[4]}t=n}}(t)}}function Eo(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t),1===t[1].type&&qe(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&$e(t[3])){n!==t[3]&&xo(n,t);var r=t[19];null!==r&&r.detachView(e)}}}function Oo(e,t,n){return Io(e,t.parent,n)}function Io(e,t,n){for(var r=t;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){var i=e.data[r.directiveStart].encapsulation;if(i===K.None||i===K.Emulated)return null}return Ke(r,n)}function To(e,t,n,r,i){qe(e)?e.insertBefore(t,n,r,i):t.insertBefore(n,r,i)}function jo(e,t,n){qe(e)?e.appendChild(t,n):t.appendChild(n)}function Ao(e,t,n,r,i){null!==r?To(e,t,n,r,i):jo(e,t,n)}function Vo(e,t){return qe(e)?e.parentNode(t):t.parentNode}function Po(e,t,n){return Do(e,t,n)}function Mo(e,t,n){return 40&e.type?Ke(e,n):null}var No,Do=Mo;function Ro(e,t){Do=e,No=t}function Fo(e,t,n,r){var i=Oo(e,r,t),o=t[11],a=Po(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(var u=0;uo?"":i[c+1].toLowerCase();var f=8&r?d:null;if(f&&-1!==Ko(f,l,0)||2&r&&l!==d){if(Jo(r))return!1;a=!0}}}}else{if(!a&&!Jo(r)&&!Jo(s))return!1;if(a&&Jo(s))continue;a=!1,r=s|1&r}}return Jo(r)||a}function Jo(e){return 0==(1&e)}function ea(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+u+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||Jo(a)||(t+=ra(o,i),i=""),r=a,o=o||!Jo(r);n++}return""!==i&&(t+=ra(o,i)),t}var oa={};function aa(e){ua(ct(),lt(),Ft()+e,yt())}function ua(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&zt(t,i,n)}else{var o=e.preOrderHooks;null!==o&&Gt(t,o,0,n)}Lt(n)}function sa(e,t){return e<<17|t<<2}function la(e){return e>>17&32767}function ca(e){return 2|e}function da(e){return(131068&e)>>2}function fa(e,t){return-131069&e|t<<2}function ha(e){return 1|e}var pa=Promise.resolve(null);function va(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r20&&ua(e,t,20,yt()),n(r,i)}finally{Lt(o)}}function xa(e,t,n){if(Se(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:Ke,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(u)!=s&&u.push(s),u.push(r,i,a)}}function Ma(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Na(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Da(e,t,n){if(n){if(t.exportAs)for(var r=0;r0&&Ga(n)}}function Ga(e){for(var t=go(e);null!==t;t=mo(t))for(var n=10;n0&&Ga(r)}var o=e[1].components;if(null!==o)for(var a=0;a0&&Ga(u)}}function Ka(e,t){var n=Xe(t,e),r=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:Er;if(t===Er){var n=new Error("NullInjectorError: No provider for ".concat(k(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),fu=new Fn("Set Injector scope."),hu={},pu={},vu=[],gu=void 0;function mu(){return void 0===gu&&(gu=new du),gu}function yu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=bu(e,t,n,r);return i._resolveInjectorDefTypes(),i}function bu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new _u(e,n,t||mu(),r)}var _u=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;g(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Xn(n,function(e){return i.processProvider(e,t,n)}),Xn([t],function(e){return i.processInjectorType(e,[],a)}),this.records.set(cu,Cu(void 0,this));var u=this.records.get(fu);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof t?null:k(t))}return y(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Er,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L.Default;this.assertNotDestroyed();var r,i=jr(this);try{if(!(n&L.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Fn)&&A(e);o=a&&this.injectableDefInScope(a)?Cu(wu(e),hu):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&L.Self?mu():this.parent).get(e,t=n&L.Optional&&t===Er?null:t)}catch(u){if("NullInjectorError"===u.name){if((u.ngTempTokenPath=u.ngTempTokenPath||[]).unshift(k(e)),i)throw u;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=k(t);if(Array.isArray(t))i=t.map(k).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var u=t[a];o.push(a+":"+("string"==typeof u?JSON.stringify(u):k(u)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Or,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(u,e,0,this.source)}throw u}finally{jr(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(k(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=S(e)))return!1;var i=P(e),o=null==i&&e.ngModule||void 0,a=void 0===o?e:o,u=-1!==n.indexOf(a);if(void 0!==o&&(i=P(o)),null==i)return!1;if(null!=i.imports&&!u){var s;n.push(a);try{Xn(i.imports,function(e){r.processInjectorType(e,t,n)&&(void 0===s&&(s=[]),s.push(e))})}finally{}if(void 0!==s)for(var l=function(e){var t=s[e],n=t.ngModule,i=t.providers;Xn(i,function(e){return r.processProvider(e,n,i||vu)})},c=0;c0){var n=er(t,"?");throw new Error("Can't resolve all parameters for ".concat(k(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[N]||e[R]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function ku(e,t,n){var i,a=void 0;if($u(e)){var u=S(e);return Te(u)||wu(u)}if(xu(e))a=function(){return S(e.useValue)};else if((i=e)&&i.useFactory)a=function(){return e.useFactory.apply(e,o(Dr(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))a=function(){return Vr(S(e.useExisting))};else{var s=S(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Te(s)||wu(s);a=function(){return r(s,o(Dr(e.deps)))}}return a}function Cu(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function xu(e){return null!==e&&"object"==typeof e&&Ir in e}function $u(e){return"function"==typeof e}function Su(e,t,n){return yu({name:n},t,e,n)}var Eu=Su,Ou=function(){var e=function(){function e(){g(this,e)}return y(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Eu(e,t,""):Eu(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Er,e.NULL=new du,e.\u0275prov=I({token:e,providedIn:"any",factory:function(){return Vr(cu)}}),e.__NG_ELEMENT_ID__=-1,e}();function Iu(e){Fu(e);var t,n,r,i=Mu(e,!1);return null===i?null:(void 0===i.component&&(i.component=(t=i.nodeIndex,n=i.lView,2&(r=n[1].data[t]).flags?n[r.directiveStart]:null)),i.component)}function Tu(e){Fu(e);var t=Mu(e,!1);return null===t?null:t.lView[8]}function ju(e){var t=Mu(e,!1);if(null===t)return null;for(var n,r=t.lView;2===r[1].type&&(n=po(r));)r=n;return 512&r[2]?null:r[8]}function Au(e){return o(vo(e).components)}function Vu(e){var t=Mu(e,!1);return null===t?Ou.NULL:new Sn(t.lView[1].data[t.nodeIndex],t.lView)}function Pu(e){var t=Mu(e);return void 0===t.directives&&(t.directives=io(t.nodeIndex,t.lView,!1)),null===t.directives?[]:o(t.directives)}function Mu(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Xi(e);if(!n&&t)throw new Error("Invalid ng target");return n}function Nu(e){return Xi(e).native}function Du(e){Fu(e);var t=Mu(e,!1);if(null===t)return[];var n=t.lView,r=n[7],i=n[1].cleanup,o=[];if(i&&r)for(var a=0;a=0?"dom":"output",p="boolean"==typeof f&&f;e==c&&o.push({element:e,name:l,callback:d,useCapture:p,type:h})}}return o.sort(Ru),o}function Ru(e,t){return e.name==t.name?0:e.name1&&void 0!==arguments[1]?arguments[1]:{},n=t.rendererFactory||We,r=t.sanitizer||null,i=_e(e);i.type!=e&&(i.type=e);var o,a=i.selectors[0][0],u=Ia(n.createRenderer(null,null),t.host||a,i.encapsulation),s=i.onPush?576:528,l=Gu(t.scheduler,t.playerHandler),c=n.createRenderer(u,i),d=Oa(0,null,null,1,0,null,null,null,null,null),f=ga(null,d,l,s,null,null,n,c,null,t.injector||null);At(f);try{n.begin&&n.begin(),o=zu(Wu(u,i,f,n,c,r),i,f,l,t.hostFeatures||null),_a(d,f,null),wa(d,f,null,null)}finally{Dt(),n.end&&n.end()}return o}function Wu(e,t,n,r,i,o){var a=n[1];n[20]=e;var u=ma(a,20,2,"#host",null),s=u.mergedAttrs=t.hostAttrs;null!==s&&(uu(u,s,!0),null!==e&&(Yt(i,e,s),null!==u.classes&&Go(i,e,u.classes),null!==u.styles&&zo(i,e,u.styles)));var l=r.createRenderer(e,t),c=ga(n,Ea(t),null,t.onPush?64:16,n[20],u,r,l,o||null,null);return a.firstCreatePass&&(pn(cn(u,n),a,t.type),Na(a,u),Ra(u,n.length,1)),Qa(n,c),n[20]=c}function zu(e,t,n,r,i){var o=n[1],a=function(e,t,n){var r=ft();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Fa(e,r,t,ba(e,t,1,null),n));var i=Cn(t,e,r.directiveStart,r);eo(i,t);var o=Ke(r,t);return o&&eo(o,t),i}(o,n,t);if(r.components.push(a),e[8]=a,i&&i.forEach(function(e){return e(a,t)}),t.contentQueries){var u=ft();t.contentQueries(1,a,u.directiveStart)}var s=ft();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Lt(s.index),Pa(n[1],s,0,s.directiveStart,s.directiveEnd,t),Ma(t,a)),a}function Gu(e,t){return{components:[],scheduler:e||oo,clean:tu,playerHandler:t||null,flags:0}}function Ku(e,t){Wt(Je(e)[1],ft())}function Qu(e){return vo(e).clean}function Zu(e){return Object.getPrototypeOf(e.prototype).constructor}function Xu(e){for(var t=Zu(e.type),n=!0,r=[e];t;){var i=void 0;if(Ie(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);var o=e;o.inputs=Yu(e.inputs),o.declaredInputs=Yu(e.declaredInputs),o.outputs=Yu(e.outputs);var a=i.hostBindings;a&&ts(e,a);var u=i.viewQuery,s=i.contentQueries;if(u&&Ju(e,u),s&&es(e,s),w(e.inputs,i.inputs),w(e.declaredInputs,i.declaredInputs),w(e.outputs,i.outputs),Ie(i)&&i.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}var c=i.features;if(c)for(var d=0;d=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=tn(i.hostAttrs,n=tn(n,i.hostAttrs))}}(r)}function Yu(e){return e===ee?{}:e===te?[]:e}function Ju(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function es(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function ts(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var ns=["providersResolver"],rs=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function is(e){var t,n=Zu(e.type);t=Ie(e)?n.\u0275cmp:n.\u0275dir;var r,o=e,a=i(ns);try{for(a.s();!(r=a.n()).done;){var u=r.value;o[u]=t[u]}}catch(d){a.e(d)}finally{a.f()}if(Ie(t)){var s,l=i(rs);try{for(l.s();!(s=l.n()).done;){var c=s.value;o[c]=t[c]}}catch(d){l.e(d)}finally{l.f()}}}var os=null;function as(){if(!os){var e=J.Symbol;if(e&&e.iterator)os=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Rs(e){return Ze(ot.lFrame.contextLView,20+e)}var Fs={"\u0275\u0275defineInjectable":I,"\u0275\u0275defineInjector":j,"\u0275\u0275inject":Vr,"\u0275\u0275getFactoryOf":function e(t){var n=t;if(E(t))return function(){var t=e(S(n));return t?t():null};var r=A(n)||P(n);return r&&void 0!==r.factory?r.factory:null},"\u0275\u0275invalidFactoryDep":Pr},Ls=_({provide:String,useValue:_});function Bs(e){return void 0!==e.useClass}function Hs(e){return void 0!==e.useFactory}function Us(e,t){var n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn,userDeps:void 0};return(Bs(n)||Hs(n))&&void 0!==n.deps&&(r.userDeps=_r(n.deps)),Bs(n)?r.useClass=S(n.useClass):function(e){return Ls in e}(n)?r.useValue=S(n.useValue):Hs(n)?r.useFactory=n.useFactory:function(e){return void 0!==e.useExisting}(n)&&(r.useExisting=S(n.useExisting)),r}var qs=Vn("Injectable",void 0,void 0,void 0,function(e,t){return zs(e,t)}),Ws=function(e,t){var n=null,r=null;e.hasOwnProperty(N)||Object.defineProperty(e,N,{get:function(){return null===n&&(n=Gn().compileInjectable(Fs,"ng:///".concat(e.name,"/\u0275prov.js"),Us(e,t))),n}}),e.hasOwnProperty(ue)||Object.defineProperty(e,ue,{get:function(){if(null===r){var n=Us(e,t),i=Gn();r=i.compileFactory(Fs,"ng:///".concat(e.name,"/\u0275fac.js"),{name:n.name,type:n.type,typeArgumentCount:n.typeArgumentCount,deps:br(e),injectFn:"inject",target:i.R3FactoryTarget.Injectable})}return r},configurable:!0})},zs=Ws;function Gs(e){return e.length>1?" ("+function(e){for(var t=[],n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(function(e){return k(e.token)}).join(" -> ")+")":""}function Ks(e,t,n,r){var i=[t],o=n(i),a=r?function(e,t){var n="".concat(e," caused by: ").concat(t instanceof Error?t.message:t),r=Error(n);return r.ngOriginalError=t,r}(o,r):Error(o);return a.addKey=Qs,a.keys=i,a.injectors=[e],a.constructResolvingMessage=n,a.ngOriginalError=r,a}function Qs(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Zs(e,t){for(var n=[],r=0,i=t.length;r1&&void 0!==arguments[1]?arguments[1]:Er;return this._getByKey(Xs.get(e),null,t)}},{key:"resolveAndCreateChild",value:function(e){var t=fl.resolve(e);return this.createChildFromResolved(t)}},{key:"createChildFromResolved",value:function(t){var n=new e(t);return n.parent=this,n}},{key:"resolveAndInstantiate",value:function(e){return this.instantiateResolved(fl.resolve([e])[0])}},{key:"instantiateResolved",value:function(e){return this._instantiateProvider(e)}},{key:"getProviderAtIndex",value:function(e){if(e<0||e>=this._providers.length)throw function(e){return Error("Index ".concat(e," is out-of-bounds."))}(e);return this._providers[e]}},{key:"_new",value:function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw Ks(this,e.key,function(e){return"Cannot instantiate cyclic dependency!"+Gs(e)});return this._instantiateProvider(e)}},{key:"_getMaxNumberOfObjects",value:function(){return this.objs.length}},{key:"_instantiateProvider",value:function(e){if(e.multiProvider){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:L.Default,n=lt();return null===n?Vr(e,t):yn(ft(),n,S(e),t)}function vl(){throw new Error("invalid")}function gl(e,t,n){var r=lt();return hs(r,Ct(),t)&&Aa(ct(),Bt(),r,e,t,r[11],n,!1),gl}function ml(e,t,n,r,i){var o=i?"class":"style";ou(e,n,t.inputs[o],o,r)}function yl(e,t,n,r){var i=lt(),o=ct(),a=20+e,u=i[11],s=i[a]=Co(u,t,ot.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,r,i,o,a){var u=t.consts,s=ma(t,e,2,i,nt(u,o));return Va(t,n,s,nt(u,a)),null!==s.attrs&&uu(s,s.attrs,!1),null!==s.mergedAttrs&&uu(s,s.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,s),s}(a,o,i,0,t,n,r):o.data[a];vt(l,!0);var c=l.mergedAttrs;null!==c&&Yt(u,s,c);var d=l.classes;null!==d&&Go(u,s,d);var f=l.styles;null!==f&&zo(u,s,f),64!=(64&l.flags)&&Fo(o,i,s,l),0===ot.lFrame.elementDepthCount&&eo(s,i),ot.lFrame.elementDepthCount++,Oe(l)&&($a(o,i,l),xa(o,l,i)),null!==r&&Sa(i,l)}function bl(){var e=ft();gt()?mt():vt(e=e.parent,!1);var t=e;ot.lFrame.elementDepthCount--;var n=ct();n.firstCreatePass&&(Wt(n,e),Se(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&ml(n,t,lt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&ml(n,t,lt(),t.stylesWithoutHost,!1)}function _l(e,t,n,r){yl(e,t,n,r),bl()}function wl(e,t,n){var r=lt(),i=ct(),o=e+20,a=i.firstCreatePass?function(e,t,n,r,i){var o=t.consts,a=nt(o,r),u=ma(t,e,8,"ng-container",a);return null!==a&&uu(u,a,!0),Va(t,n,u,nt(o,i)),null!==t.queries&&t.queries.elementStart(t,u),u}(o,i,r,t,n):i.data[o];vt(a,!0);var u=r[o]=r[11].createComment("");Fo(i,r,u,a),eo(u,r),Oe(a)&&($a(i,r,a),xa(i,a,r)),null!=n&&Sa(r,a)}function kl(){var e=ft(),t=ct();gt()?mt():vt(e=e.parent,!1),t.firstCreatePass&&(Wt(t,e),Se(e)&&t.queries.elementEnd(e))}function Cl(e,t,n){wl(e,t,n),kl()}function xl(){return lt()}function $l(e){return!!e&&"function"==typeof e.then}function Sl(e){return!!e&&"function"==typeof e.subscribe}function El(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=lt(),o=ct(),a=ft();return Il(o,i,i[11],a,e,t,n,r),El}function Ol(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=ft(),o=lt(),a=ct();return Il(a,o,ru(Et(a.data),i,o),i,e,t,n,r),Ol}function Il(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7?arguments[7]:void 0,s=Oe(r),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=nu(t),d=!0;if(3&r.type){var f=Ke(r,t),h=u?u(f):ee,p=h.target||f,v=c.length,g=u?function(e){return u(ze(e[r.index])).target}:r.index;if(qe(n)){var m=null;if(!u&&s&&(m=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;os?u[s]:null}"string"==typeof a&&(o+=2)}return null}(e,t,i,r.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,d=!1;else{o=jl(r,t,o,!1);var y=n.listen(h.name||p,i,o);c.push(o,y),l&&l.push(i,g,v,v+1)}}else o=jl(r,t,o,!0),p.addEventListener(i,o,a),c.push(o),l&&l.push(i,g,v,a)}else o=jl(r,t,o,!1);var b,_=r.outputs;if(d&&null!==_&&(b=_[i])){var w=b.length;if(w)for(var k=0;k0&&void 0!==arguments[0]?arguments[0]:1;return Rt(e)}function Vl(e,t){for(var n=null,r=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=lt(),i=ct(),o=ma(i,20+e,16,null,n||null);null===o.projection&&(o.projection=t),mt(),64!=(64&o.flags)&&function(e,t,n){Wo(t[11],0,t,n,Oo(e,n,t),Po(n.parent||t[6],n,t))}(i,r,o)}function Nl(e,t,n){return Dl(e,"",t,"",n),Nl}function Dl(e,t,n,r,i){var o=lt(),a=bs(o,t,n,r);return a!==oa&&Aa(ct(),Bt(),o,e,a,o[11],i,!1),Dl}function Rl(e,t,n,r,i,o,a){var u=lt(),s=_s(u,t,n,r,i,o);return s!==oa&&Aa(ct(),Bt(),u,e,s,u[11],a,!1),Rl}function Fl(e,t,n,r,i,o,a,u,s){var l=lt(),c=ws(l,t,n,r,i,o,a,u);return c!==oa&&Aa(ct(),Bt(),l,e,c,l[11],s,!1),Fl}function Ll(e,t,n,r,i,o,a,u,s,l,c){var d=lt(),f=ks(d,t,n,r,i,o,a,u,s,l);return f!==oa&&Aa(ct(),Bt(),d,e,f,d[11],c,!1),Ll}function Bl(e,t,n,r,i,o,a,u,s,l,c,d,f){var h=lt(),p=Cs(h,t,n,r,i,o,a,u,s,l,c,d);return p!==oa&&Aa(ct(),Bt(),h,e,p,h[11],f,!1),Bl}function Hl(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p){var v=lt(),g=xs(v,t,n,r,i,o,a,u,s,l,c,d,f,h);return g!==oa&&Aa(ct(),Bt(),v,e,g,v[11],p,!1),Hl}function Ul(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g){var m=lt(),y=$s(m,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v);return y!==oa&&Aa(ct(),Bt(),m,e,y,m[11],g,!1),Ul}function ql(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g,m,y){var b=lt(),_=Ss(b,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g,m);return _!==oa&&Aa(ct(),Bt(),b,e,_,b[11],y,!1),ql}function Wl(e,t,n){var r=lt(),i=ys(r,t);return i!==oa&&Aa(ct(),Bt(),r,e,i,r[11],n,!1),Wl}var zl=[];function Gl(e,t,n,r,i){for(var o=e[n+1],a=null===t,u=r?la(o):da(o),s=!1;0!==u&&(!1===s||a);){var l=e[u+1];Kl(e[u],t)&&(s=!0,e[u+1]=r?ha(l):ca(l)),u=r?la(l):da(l)}s&&(e[n+1]=r?ca(o):ha(o))}function Kl(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&rr(e,t)>=0}var Ql={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Zl(e){return e.substring(Ql.key,Ql.keyEnd)}function Xl(e){return e.substring(Ql.value,Ql.valueEnd)}function Yl(e,t){var n=Ql.textEnd;return n===t?-1:(t=Ql.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Ql.key=t,n),tc(e,t,n))}function Jl(e,t){var n=Ql.textEnd,r=Ql.key=tc(e,t,n);return n===r?-1:(r=Ql.keyEnd=function(e,t,n){for(var r;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=nc(e,r,n),r=Ql.value=tc(e,r,n),r=Ql.valueEnd=function(e,t,n){for(var r=-1,i=-1,o=-1,a=t,u=a;a32&&(u=a),o=i,i=r,r=-33&s}return u}(e,r,n),nc(e,r,n))}function ec(e){Ql.key=0,Ql.keyEnd=0,Ql.value=0,Ql.valueEnd=0,Ql.textEnd=e.length}function tc(e,t,n){for(;t=0;n=Jl(t,n))gc(e,Zl(t),Xl(t))}function sc(e){dc(tr,lc,e,!0)}function lc(e,t){for(var n=function(e){return ec(e),Yl(e,tc(e,0,Ql.textEnd))}(t);n>=0;n=Yl(t,n))tr(e,Zl(t),!0)}function cc(e,t,n,r){var i=lt(),o=ct(),a=xt(2);o.firstUpdatePass&&hc(o,e,a,r),t!==oa&&hs(i,a,t)&&mc(o,o.data[Ft()],i,i[11],e,i[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=k(Kr(e)))),e}(t,n),r,a)}function dc(e,t,n,r){var i=ct(),o=xt(2);i.firstUpdatePass&&hc(i,null,o,r);var a=lt();if(n!==oa&&hs(a,o,n)){var u=i.data[Ft()];if(_c(u,r)&&!fc(i,o)){var s=r?u.classesWithoutHost:u.stylesWithoutHost;null!==s&&(n=C(s,n||"")),ml(i,u,a,n,r)}else!function(e,t,n,r,i,o,a,u){i===oa&&(i=zl);for(var s=0,l=0,c=0=e.expandoStartIndex}function hc(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[Ft()],a=fc(e,n);_c(o,r)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){var i=Et(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=vc(n=pc(null,e,t,n,r),t.attrs,r),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=pc(i,e,t,n,r),null===o){var u=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==da(r))return e[la(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&function(e,t,n,r){e[la(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u=vc(u=pc(null,e,t,u[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(i)if(0!==s){var f=la(e[u+1]);e[r+1]=sa(f,u),0!==f&&(e[f+1]=fa(e[f+1],r)),e[u+1]=131071&e[u+1]|r<<17}else e[r+1]=sa(u,0),0!==u&&(e[u+1]=fa(e[u+1],r)),u=r;else e[r+1]=sa(s,0),0===u?u=r:e[s+1]=fa(e[s+1],r),s=r;c&&(e[r+1]=ca(e[r+1])),Gl(e,l,r,!0),Gl(e,l,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&rr(o,t)>=0&&(n[r+1]=ha(n[r+1]))}(t,l,e,r,o),a=sa(u,s),o?t.classBindings=a:t.styleBindings=a}(i,o,t,n,a,r)}}function pc(e,t,n,r,i){var o=null,a=n.directiveEnd,u=n.directiveStylingLast;for(-1===u?u=n.directiveStart:u++;u0;){var s=e[i],l=Array.isArray(s),c=l?s[1]:s,d=null===c,f=n[i+1];f===oa&&(f=d?zl:void 0);var h=d?nr(f,r):c===r?f:void 0;if(l&&!bc(h)&&(h=nr(s,r)),bc(h)&&(u=h,a))return u;var p=e[i+1];i=a?la(p):da(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(u=nr(v,r))}return u}function bc(e){return void 0!==e}function _c(e,t){return 0!=(e.flags&(t?16:32))}function wc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=lt(),r=ct(),i=e+20,o=r.firstCreatePass?ma(r,i,1,t,null):r.data[i],a=n[i]=_o(n[11],t);Fo(r,n,a,o),vt(o,!1)}function kc(e){return Cc("",e,""),kc}function Cc(e,t,n){var r=lt(),i=bs(r,e,t,n);return i!==oa&&au(r,Ft(),i),Cc}function xc(e,t,n,r,i){var o=lt(),a=_s(o,e,t,n,r,i);return a!==oa&&au(o,Ft(),a),xc}function $c(e,t,n,r,i,o,a){var u=lt(),s=ws(u,e,t,n,r,i,o,a);return s!==oa&&au(u,Ft(),s),$c}function Sc(e,t,n,r,i,o,a,u,s){var l=lt(),c=ks(l,e,t,n,r,i,o,a,u,s);return c!==oa&&au(l,Ft(),c),Sc}function Ec(e,t,n,r,i,o,a,u,s,l,c){var d=lt(),f=Cs(d,e,t,n,r,i,o,a,u,s,l,c);return f!==oa&&au(d,Ft(),f),Ec}function Oc(e,t,n,r,i,o,a,u,s,l,c,d,f){var h=lt(),p=xs(h,e,t,n,r,i,o,a,u,s,l,c,d,f);return p!==oa&&au(h,Ft(),p),Oc}function Ic(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p){var v=lt(),g=$s(v,e,t,n,r,i,o,a,u,s,l,c,d,f,h,p);return g!==oa&&au(v,Ft(),g),Ic}function Tc(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g){var m=lt(),y=Ss(m,e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g);return y!==oa&&au(m,Ft(),y),Tc}function jc(e){var t=lt(),n=ys(t,e);return n!==oa&&au(t,Ft(),n),jc}function Ac(e,t,n){dc(tr,lc,bs(lt(),e,t,n),!0)}function Vc(e,t,n,r,i){dc(tr,lc,_s(lt(),e,t,n,r,i),!0)}function Pc(e,t,n,r,i,o,a){dc(tr,lc,ws(lt(),e,t,n,r,i,o,a),!0)}function Mc(e,t,n,r,i,o,a,u,s){dc(tr,lc,ks(lt(),e,t,n,r,i,o,a,u,s),!0)}function Nc(e,t,n,r,i,o,a,u,s,l,c){dc(tr,lc,Cs(lt(),e,t,n,r,i,o,a,u,s,l,c),!0)}function Dc(e,t,n,r,i,o,a,u,s,l,c,d,f){dc(tr,lc,xs(lt(),e,t,n,r,i,o,a,u,s,l,c,d,f),!0)}function Rc(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p){dc(tr,lc,$s(lt(),e,t,n,r,i,o,a,u,s,l,c,d,f,h,p),!0)}function Fc(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g){dc(tr,lc,Ss(lt(),e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g),!0)}function Lc(e){dc(tr,lc,ys(lt(),e),!0)}function Bc(e,t,n){ac(bs(lt(),e,t,n))}function Hc(e,t,n,r,i){ac(_s(lt(),e,t,n,r,i))}function Uc(e,t,n,r,i,o,a){ac(ws(lt(),e,t,n,r,i,o,a))}function qc(e,t,n,r,i,o,a,u,s){ac(ks(lt(),e,t,n,r,i,o,a,u,s))}function Wc(e,t,n,r,i,o,a,u,s,l,c){ac(Cs(lt(),e,t,n,r,i,o,a,u,s,l,c))}function zc(e,t,n,r,i,o,a,u,s,l,c,d,f){ac(xs(lt(),e,t,n,r,i,o,a,u,s,l,c,d,f))}function Gc(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p){ac($s(lt(),e,t,n,r,i,o,a,u,s,l,c,d,f,h,p))}function Kc(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g){ac(Ss(lt(),e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g))}function Qc(e){ac(ys(lt(),e))}function Zc(e,t,n,r,i){return cc(e,bs(lt(),t,n,r),i,!1),Zc}function Xc(e,t,n,r,i,o,a){return cc(e,_s(lt(),t,n,r,i,o),a,!1),Xc}function Yc(e,t,n,r,i,o,a,u,s){return cc(e,ws(lt(),t,n,r,i,o,a,u),s,!1),Yc}function Jc(e,t,n,r,i,o,a,u,s,l,c){return cc(e,ks(lt(),t,n,r,i,o,a,u,s,l),c,!1),Jc}function ed(e,t,n,r,i,o,a,u,s,l,c,d,f){return cc(e,Cs(lt(),t,n,r,i,o,a,u,s,l,c,d),f,!1),ed}function td(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p){return cc(e,xs(lt(),t,n,r,i,o,a,u,s,l,c,d,f,h),p,!1),td}function nd(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g){return cc(e,$s(lt(),t,n,r,i,o,a,u,s,l,c,d,f,h,p,v),g,!1),nd}function rd(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g,m,y){return cc(e,Ss(lt(),t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g,m),y,!1),rd}function id(e,t,n){return cc(e,ys(lt(),t),n,!1),id}function od(e,t,n){var r=lt();return hs(r,Ct(),t)&&Aa(ct(),Bt(),r,e,t,r[11],n,!0),od}function ad(e,t,n){var r=lt();if(hs(r,Ct(),t)){var i=ct(),o=Bt();Aa(i,o,r,e,t,ru(Et(i.data),o,r),n,!0)}return ad}var ud=void 0,sd=["en",[["a","p"],["AM","PM"],ud],[["AM","PM"],ud,ud],[["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"]],ud,[["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"]],ud,[["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}",ud,"{1} 'at' {0}",ud],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],ld={};function cd(e,t,n){"string"!=typeof t&&(n=t,t=e[gd.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),ld[t]=e,n&&(ld[t][gd.ExtraData]=n)}function dd(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=pd(t);if(n)return n;var r=t.split("-")[0];if(n=pd(r))return n;if("en"===r)return sd;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function fd(e){return dd(e)[gd.CurrencyCode]||null}function hd(e){return dd(e)[gd.PluralCase]}function pd(e){return e in ld||(ld[e]=J.ng&&J.ng.common&&J.ng.common.locales&&J.ng.common.locales[e]),ld[e]}function vd(){ld={}}var gd=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}({}),md=["zero","one","two","few","many"],yd="en-US",bd="USD",_d={marker:"element"},wd={marker:"ICU"},kd=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}({}),Cd=yd;function xd(e){var t;null==(t=e)&&O("Expected localeId to be defined",t,null,"!="),"string"==typeof e&&(Cd=e.toLowerCase().replace(/_/g,"-"))}function $d(e,t,n){var r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?Mo(e,0,n):ze(n[i])}function Sd(e,t,n,r,i){var o=t.insertBeforeIndex;if(Array.isArray(o)){var a=r,u=null;if(3&t.type||(u=a,a=i),null!==a&&0==(2&t.flags))for(var s=1;s1)for(var n=e.length-2;n>=0;n--){var r=e[n];Od(r)||Id(r,t)&&null===(i=void 0,i=r.insertBeforeIndex,Array.isArray(i)?i[0]:i)&&Td(r,t.index)}var i}function Od(e){return!(64&e.type)}function Id(e,t){return Od(t)||e.index>t.index}function Td(e,t){var n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(Ro($d,Sd),e.insertBeforeIndex=t)}function jd(e,t){var n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function Ad(e,t,n){var r=ya(e,n,64,null,null);return Ed(t,r),r}function Vd(e,t){var n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}var Pd=0,Md=0;function Nd(e,t,n,r){for(var i,o=n[11],a=null,u=0;u>>17,d=void 0,f=void 0;if(null===a&&(a=c,i=Vo(o,r)),c===a?(d=r,f=i):(d=null,f=ze(n[c])),null!==f){var h=(131070&s)>>>1;To(o,f,n[h],d,!1);var p=jd(e,h);if(null!==p&&"object"==typeof p){var v=Vd(p,n);null!==v&&Nd(e,p.create[v],n,n[p.anchorIdx])}}break;case 1:var g=t[++u],m=t[++u];Ha(o,Ge(s>>>1,n),null,null,g,m,null);break;default:throw new Error('Unable to determine the type of mutate operation for "'.concat(s,'"'))}else switch(s){case wd:var y=t[++u],b=t[++u];null===n[b]&&eo(n[b]=ko(o,y),n);break;case _d:var _=t[++u],w=t[++u];null===n[w]&&eo(n[w]=Co(o,_,null),n)}}}function Dd(e,t,n,r,i){for(var o=0;o>>2;switch(3&c){case 1:var f=n[++l],h=n[++l],p=e.data[d];"string"==typeof p?Ha(t[11],t[d],null,p,f,s,h):Aa(e,p,t,f,s,t[11],h,!1);break;case 0:var v=t[d];null!==v&&wo(t[11],v,s);break;case 2:Fd(e,jd(e,d),t,s);break;case 3:Rd(e,jd(e,d),r,t)}}}else{var g=n[o+1];if(g>0&&3==(3&g)){var m=jd(e,g>>>2);t[m.currentCaseLViewIndex]<0&&Rd(e,m,r,t)}}o+=u}}function Rd(e,t,n,r){var i=r[t.currentCaseLViewIndex];if(null!==i){var o=Pd;i<0&&(i=r[t.currentCaseLViewIndex]=~i,o=-1),Dd(e,r,t.update[i],n,o)}}function Fd(e,t,n,r){var i=function(e,t){var n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:var r=function(e,t){var n=hd(t)(parseInt(e,10)),r=md[n];return void 0!==r?r:"other"}(t,Cd);-1===(n=e.cases.indexOf(r))&&"other"!==r&&(n=e.cases.indexOf("other"));break;case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(Vd(t,n)!==i&&(Ld(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){var o=n[t.anchorIdx];o&&Nd(e,t.create[i],n,o)}}function Ld(e,t,n){var r=Vd(t,n);if(null!==r)for(var i=t.remove[r],o=0;o0){var u=Ge(a,n);null!==u&&Ho(n[11],u)}else Ld(e,jd(e,~a),n)}}var Bd=/\ufffd(\d+):?\d*\ufffd/gi,Hd=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Ud=/\ufffd(\d+)\ufffd/,qd=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Wd=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,zd=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Gd=/\uE500/g;function Kd(e,t,n,r,i,o,a){var u=ba(e,r,1,null),s=u<0?e[a]:(n.push(r,t),i(e[1].data[~a],e),o())}return 0===n.length?null:(t=n.pop(),r=n.pop(),o())}return function(t,r){for(e=r;n.length;)n.pop();return i(t.value,r),o}}())),i.push(s,null===o?"":o);var c=ya(e,u,a?32:1,null===o?"":o,null);Ed(n,c);var d=c.index;return vt(c,!1),null!==l&&t!==l&&function(e,t){var n,r=e.insertBeforeIndex;null===r?(Ro($d,Sd),r=e.insertBeforeIndex=[null,t]):(1!=(n=Array.isArray(r))&&O("Expecting array here",n,!0,"=="),r.push(t))}(l,d),c}function Qd(e,t,n,r,i,o,a){var u=a.match(Bd),s=Kd(e,t,n,o,r,u?null:a,!1);u&&Zd(i,a,s.index)}function Zd(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=e.length,a=o+1;e.push(null,null);for(var u=o+2,s=t.split(Bd),l=0,c=0;cn.length&&n.push(s)}return{type:r,mainBinding:i,cases:t,values:n}}function tf(e){if(!e)return[];var t,n=0,r=[],i=[],o=/[{}]/g;for(o.lastIndex=0;t=o.exec(e);){var a=t.index;if("}"==t[0]){if(r.pop(),0==r.length){var u=e.substring(n,a);qd.test(u)?i.push(ef(u)):i.push(u),n=a+1}}else{if(0==r.length){var s=e.substring(n,a);i.push(s),n=a+1}r.push("{")}}var l=e.substring(n);return i.push(l),i}function nf(e,t,n,r,i,o,a,u){var s=[],l=[],c=[];t.cases.push(o),t.create.push(s),t.remove.push(l),t.update.push(c);var d=ai(Ue()).getInertBodyElement(a),f=Ti(d)||d;return f?rf(e,t,n,r,s,l,c,f,i,u,0):0}function rf(e,t,n,r,i,o,a,u,s,l,c){for(var d=0,f=u.firstChild;f;){var h=ba(e,n,1,null);switch(f.nodeType){case Node.ELEMENT_NODE:var p=f,v=p.tagName.toLowerCase();if(_i.hasOwnProperty(v)){uf(i,_d,v,s,h),e.data[h]=v;for(var g=p.attributes,m=0;m1&&void 0!==arguments[1]?arguments[1]:{},r=e;if(lf.test(e)){var i={},o=[0];r=r.replace(cf,function(e,n,r){var a=n||r,u=i[a]||[];if(u.length||(a.split("|").forEach(function(e){var t=e.match(vf),n=t?parseInt(t[1],10):0,r=pf.test(e);u.push([n,r,e])}),i[a]=u),!u.length)throw new Error("i18n postprocess: unmatched placeholder - "+a);for(var s=o[o.length-1],l=0,c=0;c2&&void 0!==arguments[2]?arguments[2]:-1,r=ct(),i=lt(),o=20+e,a=nt(r.consts,t),u=pt();r.firstCreatePass&&function(e,t,n,r,i,o){for(var a,u=pt(),s=[],l=[],c=[[]],d=(a=i=function(e,t){if(function(e){return-1===e}(t))return Yd(e);var n=e.indexOf(":".concat(t,"\ufffd"))+2+t.toString().length,r=e.search(new RegExp("\ufffd\\/\\*\\d+:".concat(t,"\ufffd")));return Yd(e.substring(n,r))}(i,o),a.replace(Gd," ")).split(zd),f=0;f>>kd.SHIFT,d=e[c];null===d&&(d=e[c]=s?i.createComment(u):_o(i,u)),l&&null!==n&&To(i,n,d,r,!1)}}(i,s.create,l,u&&8&u.type?i[u.index]:null),$t(!0)}function yf(){$t(!1)}function bf(e,t,n){mf(e,t,n),yf()}function _f(e,t){var n=ct();!function(e,t,n){var r=ft().index,i=[];if(e.firstCreatePass&&null===e.data[t]){for(var o=0;o0){var r=e.data[n];Dd(e,t,Array.isArray(r)?r:r.update,wt()-Md-1,Pd)}Pd=0,Md=0}(ct(),lt(),e+20)}function Cf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return gf(e,t)}function xf(e,t,n,r,i){if(e=S(e),Array.isArray(e))for(var o=0;o>20;if($u(e)||!e.multi){var p=new Xt(l,i,pl),v=Ef(s,t,i?d:d+h,f);-1===v?(pn(cn(c,u),a,s),$f(a,e,t.length),t.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(p),u.push(p)):(n[v]=p,u[v]=p)}else{var g=Ef(s,t,d+h,f),m=Ef(s,t,d,d+h),y=g>=0&&n[g],b=m>=0&&n[m];if(i&&!b||!i&&!y){pn(cn(c,u),a,s);var _=function(e,t,n,r,i){var o=new Xt(e,n,pl);return o.multi=[],o.index=t,o.componentProviders=0,Sf(o,i,r&&!n),o}(i?If:Of,n.length,i,r,l);!i&&b&&(n[m].providerFactory=_),$f(a,e,t.length,0),t.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(_),u.push(_)}else $f(a,e,g>-1?g:m,Sf(n[i?m:g],l,!i&&r));!i&&r&&b&&n[m].componentProviders++}}}function $f(e,t,n,r){var i=$u(t);if(i||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var u=a.indexOf(n);-1===u?a.push(n,[r,o]):a[u+1].push(r,o)}else a.push(n,o)}}}function Sf(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ef(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=ct();if(r.firstCreatePass){var i=Ie(e);xf(n,r.data,r.blueprint,i,!0),xf(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}}var Af=function e(){g(this,e)},Vf=function e(){g(this,e)};function Pf(e){var t=Error("No component factory found for ".concat(k(e),". Did you add it to @NgModule.entryComponents?"));return t[Mf]=e,t}var Mf="ngComponent",Nf=function(){function e(){g(this,e)}return y(e,[{key:"resolveComponentFactory",value:function(e){throw Pf(e)}}]),e}(),Df=function(){var e=function e(){g(this,e)};return e.NULL=new Nf,e}(),Rf=function(){function e(t,n,r){g(this,e),this._parent=n,this._ngModule=r,this._factories=new Map;for(var i=0;i4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=t[n.index];if(null!==a&&r.push(ze(a)),$e(a))for(var u=10;u-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}So(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Ta(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Za(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Ya(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){bt(!0);try{Ya(e,t,n)}finally{bt(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,qo(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return fh(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),ph=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this,e))._view=e,r}return y(n,[{key:"detectChanges",value:function(){Ja(this._view)}},{key:"checkNoChanges",value:function(){!function(e){bt(!0);try{Ja(e)}finally{bt(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(hh),vh=yh,gh=vh,mh=function(){var e=function e(){g(this,e)};return e.__NG_ELEMENT_ID__=gh,e.__ChangeDetectorRef__=!0,e}();function yh(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Ee(e)){var r=Xe(e.index,t);return new hh(r,r)}return 47&e.type?new hh(t[16],t):null}(ft(),lt(),e)}var bh=[new uh],_h=new ch([new eh]),wh=new dh(bh),kh=Sh,Ch=kh,xh=function(){var e=function e(){g(this,e)};return e.__NG_ELEMENT_ID__=Ch,e}(),$h=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=r,o.elementRef=i,o}return y(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=ga(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),_a(t,n,e),new hh(n)}}]),n}(xh);function Sh(){return Eh(ft(),lt())}function Eh(e,t){return 4&e.type?new $h(t,e,Hf(e,t)):null}var Oh=function e(){g(this,e)},Ih=function e(){g(this,e)},Th=Vh,jh=Th,Ah=function(){var e=function e(){g(this,e)};return e.__NG_ELEMENT_ID__=jh,e}();function Vh(){return Dh(ft(),lt())}var Ph=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=r,o._hostLView=i,o}return y(n,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=Mh(this._lContainer);return null!==t&&t[e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var a=o.get(Oh,null);a&&(i=a)}var u=e.create(o,r,void 0,i);return this.insert(u.hostView,t),u}},{key:"insert",value:function(e,t){var r=e._lView,i=r[1];if($e(r[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=r[3],u=new n(a,a[6],a[3]);u.detach(u.indexOf(e))}}var s=this._adjustIndex(t),l=this._lContainer;!function(e,t,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"element",get:function(){return Hf(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Sn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=hn(this._hostTNode,this._hostLView);if(rn(e)){var t=an(e,this._hostLView),n=on(e);return new Sn(t[1].data[n+8],t)}return new Sn(null,this._hostLView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),n}(Ah);function Mh(e){return e[8]}function Nh(e){return e[8]||(e[8]=[])}function Dh(e,t){var n,r=t[e.index];if($e(r))n=r;else{var i;if(8&e.type)i=ze(r);else{var o=t[11];i=o.createComment("");var a=Ke(e,t);To(o,Vo(o,a),i,function(e,t){return qe(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=Wa(r,t,i,e),Qa(t,n)}return new Ph(n,e,t)}function Rh(e,t,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '".concat(t,"'. Current value: '").concat(n,"'.");return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return Fh(n,t),n}(i,e)}function Fh(e,t){e.ngDebugContext=t,e.ngErrorLogger=t.logError.bind(t)}function Lh(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}function Bh(e,t,n){var r=e.state,i=1792&r;return i===t?(e.state=-1793&r|n,e.initIndex=-1,!0):i===n}function Hh(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Uh(e,t){return e.nodes[t]}function qh(e,t){return e.nodes[t]}function Wh(e,t){return e.nodes[t]}function zh(e,t){return e.nodes[t]}function Gh(e,t){return e.nodes[t]}var Kh=function e(){g(this,e)},Qh={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Zh=function(){},Xh=new Map;function Yh(e){var t=Xh.get(e);return t||(t=k(e)+"_"+Xh.size,Xh.set(e,t)),t}function Jh(e,t,n,r){if(ss.isWrapped(r)){r=ss.unwrap(r);var i=e.def.nodes[t].bindingIndex+n,o=ss.unwrap(e.oldValues[i]);e.oldValues[i]=new ss(o)}return r}function ep(e){return{id:"$$undefined",styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var tp=0;function np(e,t,n,r){return!(!(2&e.state)&&Object.is(e.oldValues[t.bindingIndex+n],r))}function rp(e,t,n,r){return!!np(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function ip(e,t,n,r){var i=e.oldValues[t.bindingIndex+n];if(1&e.state||!us(i,r)){var o=t.bindings[n].name;throw Rh(Qh.createDebugContext(e,t.nodeIndex),"".concat(o,": ").concat(i),"".concat(o,": ").concat(r),0!=(1&e.state))}}function op(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function ap(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function up(e,t,n,r){try{return op(33554432&e.def.nodes[t].flags?qh(e,t).componentView:e),Qh.handleEvent(e,t,n,r)}catch(i){e.root.errorHandler.handleError(i)}}function sp(e){return e.parent?qh(e.parent,e.parentNodeDef.nodeIndex):null}function lp(e){return e.parent?e.parentNodeDef.parent:null}function cp(e,t){switch(201347067&t.flags){case 1:return qh(e,t.nodeIndex).renderElement;case 2:return Uh(e,t.nodeIndex).renderText}}function dp(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function fp(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function hp(e){return 1<2&&void 0!==arguments[2]?arguments[2]:Ou.THROW_IF_NOT_FOUND,o=jr(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(i=null),1&t.flags)return e._parent.get(t.token,i);var a=t.tokenKey;switch(a){case Vp:case Pp:case Mp:return e}var u,s=e._def.providersByKey[a];if(s){var l=e._providers[s.index];return void 0===l&&(l=e._providers[s.index]=Fp(e,s)),l===Ap?void 0:l}if((u=A(t.token))&&(n=e,null!=(r=u.providedIn)&&("any"===r||r===n._def.scope||function(e,t){return e._def.modules.indexOf(t)>-1}(n,r)))){var c=e._providers.length;return e._def.providers[c]=e._def.providersByKey[t.tokenKey]={flags:5120,value:u.factory,deps:[],index:c,token:t.token},e._providers[c]=Ap,e._providers[c]=Fp(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?i:e._parent.get(t.token,i)}finally{jr(o)}}function Fp(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var i=n.length;switch(i){case 0:return new t;case 1:return new t(Rp(e,n[0]));case 2:return new t(Rp(e,n[0]),Rp(e,n[1]));case 3:return new t(Rp(e,n[0]),Rp(e,n[1]),Rp(e,n[2]));default:for(var o=[],a=0;a=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Jn(n,t),Qh.dirtyParentQueries(r),Hp(r),r}function Bp(e,t,n){var r=t?cp(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);bp(n,2,i,o,void 0)}function Hp(e){bp(e,3,null,null,void 0)}var Up={};function qp(e,t,n,r,i,o){return new zp(e,t,n,r,i,o)}function Wp(e){return e.viewDefFactory}var zp=function(e){l(n,e);var t=d(n);function n(e,r,i,o,a,u){var s;return g(this,n),(s=t.call(this)).selector=e,s.componentType=r,s._inputs=o,s._outputs=a,s.ngContentSelectors=u,s.viewDefFactory=i,s}return y(n,[{key:"create",value:function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=yp(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=Qh.createRootView(e,t||[],n,i,r,Up),u=Wh(a,o).instance;return n&&a.renderer.setAttribute(qh(a,0).renderElement,"ng-version",Jf.full),new Gp(a,new Xp(a),u)}},{key:"inputs",get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e}},{key:"outputs",get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}}]),n}(Vf),Gp=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this))._view=e,o._viewRef=r,o._component=i,o._elDef=o._view.def.nodes[0],o.hostView=r,o.changeDetectorRef=r,o.instance=i,o}return y(n,[{key:"destroy",value:function(){this._viewRef.destroy()}},{key:"onDestroy",value:function(e){this._viewRef.onDestroy(e)}},{key:"location",get:function(){return new Wf(qh(this._view,this._elDef.nodeIndex).renderElement)}},{key:"injector",get:function(){return new tv(this._view,this._elDef)}},{key:"componentType",get:function(){return this._component.constructor}}]),n}(Af);function Kp(e,t,n){return new Qp(e,t,n)}var Qp=function(){function e(t,n,r){g(this,e),this._view=t,this._elDef=n,this._data=r,this._embeddedViews=[]}return y(e,[{key:"clear",value:function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Lp(this._data,e);Qh.destroyView(t)}}},{key:"get",value:function(e){var t=this._embeddedViews[e];if(t){var n=new Xp(t);return n.attachToViewContainerRef(this),n}return null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;i||e instanceof Ff||(i=o.get(Oh));var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a}},{key:"insert",value:function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,a,u=e;return n=this._view,r=this._data,i=t,o=u._view,a=r.viewContainer._embeddedViews,null==i&&(i=a.length),o.viewContainerParent=n,Yn(a,i,o),function(e,t){var n=sp(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(!(4&t.flags)){e.nodeFlags|=4,t.flags|=4;for(var n=t.parent;n;)n.childFlags|=4,n=n.parent}}(t.parent.def,t.parentNodeDef)}}(r,o),Qh.dirtyParentQueries(o),Bp(r,i>0?a[i-1]:null,o),u.attachToViewContainerRef(this),e}},{key:"move",value:function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,u=this._embeddedViews.indexOf(e._view);return n=this._data,r=u,i=t,o=n.viewContainer._embeddedViews,a=o[r],Jn(o,r),null==i&&(i=o.length),Yn(o,i,a),Qh.dirtyParentQueries(a),Hp(a),Bp(n,i>0?o[i-1]:null,a),e}},{key:"indexOf",value:function(e){return this._embeddedViews.indexOf(e._view)}},{key:"remove",value:function(e){var t=Lp(this._data,e);t&&Qh.destroyView(t)}},{key:"detach",value:function(e){var t=Lp(this._data,e);return t?new Xp(t):null}},{key:"element",get:function(){return new Wf(this._data.renderElement)}},{key:"injector",get:function(){return new tv(this._view,this._elDef)}},{key:"parentInjector",get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=lp(e),e=e.parent;return e?new tv(e,t):new tv(this._view,null)}},{key:"length",get:function(){return this._embeddedViews.length}}]),e}();function Zp(e){return new Xp(e)}var Xp=function(){function e(t){g(this,e),this._view=t,this._viewContainerRef=null,this._appRef=null}return y(e,[{key:"markForCheck",value:function(){op(this._view)}},{key:"detach",value:function(){this._view.state&=-5}},{key:"detectChanges",value:function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Qh.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}},{key:"checkNoChanges",value:function(){Qh.checkNoChangesView(this._view)}},{key:"reattach",value:function(){this._view.state|=4}},{key:"onDestroy",value:function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}},{key:"destroy",value:function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Qh.destroyView(this._view)}},{key:"detachFromAppRef",value:function(){this._appRef=null,Hp(this._view),Qh.dirtyParentQueries(this._view)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"rootNodes",get:function(){return bp(this._view,0,void 0,void 0,e=[]),e;var e}},{key:"context",get:function(){return this._view.context}},{key:"destroyed",get:function(){return 0!=(128&this._view.state)}}]),e}();function Yp(e,t){return new Jp(e,t)}var Jp=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this))._parentView=e,i._def=r,i}return y(n,[{key:"createEmbeddedView",value:function(e){return new Xp(Qh.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}},{key:"elementRef",get:function(){return new Wf(qh(this._parentView,this._def.nodeIndex).renderElement)}}]),n}(xh);function ev(e,t){return new tv(e,t)}var tv=function(){function e(t,n){g(this,e),this.view=t,this.elDef=n}return y(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ou.THROW_IF_NOT_FOUND;return Qh.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Yh(e)},t)}}]),e}();function nv(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=qh(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Uh(e,n.nodeIndex).renderText;if(20240&n.flags)return Wh(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function rv(e,t,n,r){return new iv(e,t,n,r)}var iv=function(){function e(t,n,r,i){g(this,e),this._moduleType=t,this._parent=n,this._bootstrapComponents=r,this._def=i,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=er(t.providers.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:Ou.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L.Default,r=0;return n&L.SkipSelf?r|=1:n&L.Self&&(r|=4),Rp(this,{token:e,tokenKey:Yh(e),flags:r},t)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The ng module ".concat(k(this.instance.constructor)," has already been destroyed."));this._destroyed=!0,function(e,t){for(var n=e._def,r=new Set,i=0;i0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return wv(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(Cv(e,t,n,i[0]));case 2:return r(Cv(e,t,n,i[0]),Cv(e,t,n,i[1]));case 3:return r(Cv(e,t,n,i[0]),Cv(e,t,n,i[1]),Cv(e,t,n,i[2]));default:for(var a=[],u=0;u4&&void 0!==arguments[4]?arguments[4]:Ou.THROW_IF_NOT_FOUND;if(8&r.flags)return r.token;var o=e;2&r.flags&&(i=null);var a=r.tokenKey;a===lv&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);for(var u=e;u;){if(t)switch(a){case ov:return xv(u,t,n).renderer;case av:return new Wf(qh(u,t.nodeIndex).renderElement);case uv:return qh(u,t.nodeIndex).viewContainer;case sv:if(t.element.template)return qh(u,t.nodeIndex).template;break;case lv:return Zp(xv(u,t,n));case cv:case dv:return ev(u,t);default:var s=(n?t.element.allProviders:t.element.publicProviders)[a];if(s){var l=Wh(u,s.nodeIndex);return l||(l={instance:_v(u,s)},u.nodes[s.nodeIndex]=l),l.instance}}n=dp(u),t=lp(u),u=u.parent,4&r.flags&&(u=null)}var c=o.root.injector.get(r.token,kv);return c!==kv||i===kv?c:o.root.ngModule.injector.get(r.token,i)}function xv(e,t,n){var r;if(n)r=qh(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!dp(r);)r=r.parent;return r}function $v(e,t,n,r,i,o){if(32768&n.flags){var a=qh(e,n.parent.nodeIndex).componentView;2&a.def.flags&&(a.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var u=ss.unwrap(e.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new Me(u,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,o}function Sv(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,i=0;i0&&Go(l,d,b.join(" "))}if(o=Qe(p,20),void 0!==t)for(var _=o.projection=[],w=0;w1&&void 0!==arguments[1]?arguments[1]:Ou.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L.Default;return e===Ou||e===Oh||e===cu?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Oh),Bv=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this)).moduleType=e,null!==Ce(e)&&Rv(e),r}return y(n,[{key:"create",value:function(e){return new Lv(this.moduleType,e)}}]),n}(Ih);function Hv(e,t,n){var r=_t()+e,i=lt();return i[r]===oa?ds(i,r,n?t.call(n):t()):fs(i,r)}function Uv(e,t,n,r){return Jv(lt(),_t(),e,t,n,r)}function qv(e,t,n,r,i){return eg(lt(),_t(),e,t,n,r,i)}function Wv(e,t,n,r,i,o){return tg(lt(),_t(),e,t,n,r,i,o)}function zv(e,t,n,r,i,o,a){return ng(lt(),_t(),e,t,n,r,i,o,a)}function Gv(e,t,n,r,i,o,a,u){var s=_t()+e,l=lt(),c=gs(l,s,n,r,i,o);return hs(l,s+4,a)||c?ds(l,s+5,u?t.call(u,n,r,i,o,a):t(n,r,i,o,a)):fs(l,s+5)}function Kv(e,t,n,r,i,o,a,u,s){var l=_t()+e,c=lt(),d=gs(c,l,n,r,i,o);return ps(c,l+4,a,u)||d?ds(c,l+6,s?t.call(s,n,r,i,o,a,u):t(n,r,i,o,a,u)):fs(c,l+6)}function Qv(e,t,n,r,i,o,a,u,s,l){var c=_t()+e,d=lt(),f=gs(d,c,n,r,i,o);return vs(d,c+4,a,u,s)||f?ds(d,c+7,l?t.call(l,n,r,i,o,a,u,s):t(n,r,i,o,a,u,s)):fs(d,c+7)}function Zv(e,t,n,r,i,o,a,u,s,l,c){var d=_t()+e,f=lt(),h=gs(f,d,n,r,i,o);return gs(f,d+4,a,u,s,l)||h?ds(f,d+8,c?t.call(c,n,r,i,o,a,u,s,l):t(n,r,i,o,a,u,s,l)):fs(f,d+8)}function Xv(e,t,n,r){return rg(lt(),_t(),e,t,n,r)}function Yv(e,t){var n=e[t];return n===oa?void 0:n}function Jv(e,t,n,r,i,o){var a=t+n;return hs(e,a,i)?ds(e,a+1,o?r.call(o,i):r(i)):Yv(e,a+1)}function eg(e,t,n,r,i,o,a){var u=t+n;return ps(e,u,i,o)?ds(e,u+2,a?r.call(a,i,o):r(i,o)):Yv(e,u+2)}function tg(e,t,n,r,i,o,a,u){var s=t+n;return vs(e,s,i,o,a)?ds(e,s+3,u?r.call(u,i,o,a):r(i,o,a)):Yv(e,s+3)}function ng(e,t,n,r,i,o,a,u,s){var l=t+n;return gs(e,l,i,o,a,u)?ds(e,l+4,s?r.call(s,i,o,a,u):r(i,o,a,u)):Yv(e,l+4)}function rg(e,t,n,r,i,o){for(var a=t+n,u=!1,s=0;s=0;n--){var r=t[n];if(e===r.name)return r}throw new je("302","The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=Te(n.type)),a=H(pl);try{var u=sn(!1),s=o();return sn(u),Ds(r,lt(),i,s),s}finally{H(a)}}function og(e,t,n){var r=e+20,i=lt(),o=Ze(i,r);return dg(i,cg(i,r)?Jv(i,_t(),t,o.transform,n,o):o.transform(n))}function ag(e,t,n,r){var i=e+20,o=lt(),a=Ze(o,i);return dg(o,cg(o,i)?eg(o,_t(),t,a.transform,n,r,a):a.transform(n,r))}function ug(e,t,n,r,i){var o=e+20,a=lt(),u=Ze(a,o);return dg(a,cg(a,o)?tg(a,_t(),t,u.transform,n,r,i,u):u.transform(n,r,i))}function sg(e,t,n,r,i,o){var a=e+20,u=lt(),s=Ze(u,a);return dg(u,cg(u,a)?ng(u,_t(),t,s.transform,n,r,i,o,s):s.transform(n,r,i,o))}function lg(e,t,n){var r=e+20,i=lt(),o=Ze(i,r);return dg(i,cg(i,r)?rg(i,_t(),t,o.transform,n,o):o.transform.apply(o,n))}function cg(e,t){return e[1].data[t].pure}function dg(e,t){return ss.isWrapped(t)&&(t=ss.unwrap(t),e[wt()]=oa),t}var fg=function(e){l(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g(this,n),(e=t.call(this)).__isAsync=r,e}return y(n,[{key:"emit",value:function(e){s(v(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var i,o=function(e){return null},a=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var u=s(v(n.prototype),"subscribe",this).call(this,i,o,a);return e instanceof f.a&&e.add(u),u}}]),n}(c.a);function hg(){return this._results[as()]()}var pg=function(){function e(){g(this,e),this.dirty=!0,this._results=[],this.changes=new fg,this.length=0;var t=as(),n=e.prototype;n[t]||(n[t]=hg)}return y(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=Zn(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),vg=function(){function e(t){g(this,e),this.queryList=t,this.matches=null}return y(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),gg=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];g(this,e),this.queries=t}return y(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;g(this,e),this.predicate=t,this.descendants=n,this.isStatic=r,this.read=i},yg=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];g(this,e),this.queries=t}return y(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;g(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return y(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r0)r.push(a[u/2]);else{for(var l=o[u+1],c=t[-s],d=10;d0&&void 0!==arguments[0]?arguments[0]:L.Default,t=yh(!0);if(null!=t||e&L.Optional)return t;Pe("ChangeDetectorRef")}var Dg={"\u0275\u0275attribute":ms,"\u0275\u0275attributeInterpolate1":Es,"\u0275\u0275attributeInterpolate2":Os,"\u0275\u0275attributeInterpolate3":Is,"\u0275\u0275attributeInterpolate4":Ts,"\u0275\u0275attributeInterpolate5":js,"\u0275\u0275attributeInterpolate6":As,"\u0275\u0275attributeInterpolate7":Vs,"\u0275\u0275attributeInterpolate8":Ps,"\u0275\u0275attributeInterpolateV":Ms,"\u0275\u0275defineComponent":ce,"\u0275\u0275defineDirective":ye,"\u0275\u0275defineInjectable":I,"\u0275\u0275defineInjector":j,"\u0275\u0275defineNgModule":ve,"\u0275\u0275definePipe":be,"\u0275\u0275directiveInject":pl,"\u0275\u0275getFactoryOf":En,"\u0275\u0275getInheritedFactory":On,"\u0275\u0275inject":Vr,"\u0275\u0275injectAttribute":In,"\u0275\u0275invalidFactory":vl,"\u0275\u0275invalidFactoryDep":Pr,"\u0275\u0275injectPipeChangeDetectorRef":Ng,"\u0275\u0275templateRefExtractor":Mg,"\u0275\u0275NgOnChangesFeature":Ne,"\u0275\u0275ProvidersFeature":jf,"\u0275\u0275CopyDefinitionFeature":is,"\u0275\u0275InheritDefinitionFeature":Xu,"\u0275\u0275nextContext":Al,"\u0275\u0275namespaceHTML":qt,"\u0275\u0275namespaceMathML":Ut,"\u0275\u0275namespaceSVG":Ht,"\u0275\u0275enableBindings":ut,"\u0275\u0275disableBindings":st,"\u0275\u0275elementStart":yl,"\u0275\u0275elementEnd":bl,"\u0275\u0275element":_l,"\u0275\u0275elementContainerStart":wl,"\u0275\u0275elementContainerEnd":kl,"\u0275\u0275elementContainer":Cl,"\u0275\u0275pureFunction0":Hv,"\u0275\u0275pureFunction1":Uv,"\u0275\u0275pureFunction2":qv,"\u0275\u0275pureFunction3":Wv,"\u0275\u0275pureFunction4":zv,"\u0275\u0275pureFunction5":Gv,"\u0275\u0275pureFunction6":Kv,"\u0275\u0275pureFunction7":Qv,"\u0275\u0275pureFunction8":Zv,"\u0275\u0275pureFunctionV":Xv,"\u0275\u0275getCurrentView":xl,"\u0275\u0275restoreView":dt,"\u0275\u0275listener":El,"\u0275\u0275projection":Ml,"\u0275\u0275syntheticHostProperty":ad,"\u0275\u0275syntheticHostListener":Ol,"\u0275\u0275pipeBind1":og,"\u0275\u0275pipeBind2":ag,"\u0275\u0275pipeBind3":ug,"\u0275\u0275pipeBind4":sg,"\u0275\u0275pipeBindV":lg,"\u0275\u0275projectionDef":Pl,"\u0275\u0275hostProperty":od,"\u0275\u0275property":gl,"\u0275\u0275propertyInterpolate":Nl,"\u0275\u0275propertyInterpolate1":Dl,"\u0275\u0275propertyInterpolate2":Rl,"\u0275\u0275propertyInterpolate3":Fl,"\u0275\u0275propertyInterpolate4":Ll,"\u0275\u0275propertyInterpolate5":Bl,"\u0275\u0275propertyInterpolate6":Hl,"\u0275\u0275propertyInterpolate7":Ul,"\u0275\u0275propertyInterpolate8":ql,"\u0275\u0275propertyInterpolateV":Wl,"\u0275\u0275pipe":ig,"\u0275\u0275queryRefresh":xg,"\u0275\u0275viewQuery":Sg,"\u0275\u0275staticViewQuery":$g,"\u0275\u0275staticContentQuery":Ig,"\u0275\u0275loadQuery":jg,"\u0275\u0275contentQuery":Og,"\u0275\u0275reference":Rs,"\u0275\u0275classMap":sc,"\u0275\u0275classMapInterpolate1":Ac,"\u0275\u0275classMapInterpolate2":Vc,"\u0275\u0275classMapInterpolate3":Pc,"\u0275\u0275classMapInterpolate4":Mc,"\u0275\u0275classMapInterpolate5":Nc,"\u0275\u0275classMapInterpolate6":Dc,"\u0275\u0275classMapInterpolate7":Rc,"\u0275\u0275classMapInterpolate8":Fc,"\u0275\u0275classMapInterpolateV":Lc,"\u0275\u0275styleMap":ac,"\u0275\u0275styleMapInterpolate1":Bc,"\u0275\u0275styleMapInterpolate2":Hc,"\u0275\u0275styleMapInterpolate3":Uc,"\u0275\u0275styleMapInterpolate4":qc,"\u0275\u0275styleMapInterpolate5":Wc,"\u0275\u0275styleMapInterpolate6":zc,"\u0275\u0275styleMapInterpolate7":Gc,"\u0275\u0275styleMapInterpolate8":Kc,"\u0275\u0275styleMapInterpolateV":Qc,"\u0275\u0275styleProp":ic,"\u0275\u0275stylePropInterpolate1":Zc,"\u0275\u0275stylePropInterpolate2":Xc,"\u0275\u0275stylePropInterpolate3":Yc,"\u0275\u0275stylePropInterpolate4":Jc,"\u0275\u0275stylePropInterpolate5":ed,"\u0275\u0275stylePropInterpolate6":td,"\u0275\u0275stylePropInterpolate7":nd,"\u0275\u0275stylePropInterpolate8":rd,"\u0275\u0275stylePropInterpolateV":id,"\u0275\u0275classProp":oc,"\u0275\u0275advance":aa,"\u0275\u0275template":Ns,"\u0275\u0275text":wc,"\u0275\u0275textInterpolate":kc,"\u0275\u0275textInterpolate1":Cc,"\u0275\u0275textInterpolate2":xc,"\u0275\u0275textInterpolate3":$c,"\u0275\u0275textInterpolate4":Sc,"\u0275\u0275textInterpolate5":Ec,"\u0275\u0275textInterpolate6":Oc,"\u0275\u0275textInterpolate7":Ic,"\u0275\u0275textInterpolate8":Tc,"\u0275\u0275textInterpolateV":jc,"\u0275\u0275i18n":bf,"\u0275\u0275i18nAttributes":_f,"\u0275\u0275i18nExp":wf,"\u0275\u0275i18nStart":mf,"\u0275\u0275i18nEnd":yf,"\u0275\u0275i18nApply":kf,"\u0275\u0275i18nPostprocess":Cf,"\u0275\u0275resolveWindow":ao,"\u0275\u0275resolveDocument":uo,"\u0275\u0275resolveBody":so,"\u0275\u0275setComponentScope":de,"\u0275\u0275setNgModuleScope":ge,"\u0275\u0275sanitizeHtml":Ai,"\u0275\u0275sanitizeStyle":Vi,"\u0275\u0275sanitizeResourceUrl":Mi,"\u0275\u0275sanitizeScript":Ni,"\u0275\u0275sanitizeUrl":Pi,"\u0275\u0275sanitizeUrlOrResourceUrl":Bi,"\u0275\u0275trustConstantHtml":Di,"\u0275\u0275trustConstantScript":Ri,"\u0275\u0275trustConstantResourceUrl":Fi},Rg=null;function Fg(){Rg=null}var Lg=[],Bg=[],Hg=!1;function Ug(){if(!Hg){Hg=!0;try{for(var e=Bg.length-1;e>=0;e--){var t=Bg[e],n=t.moduleType,r=t.ngModule;r.declarations&&r.declarations.every(qg)&&(Bg.splice(e,1),Kg(n,r))}}finally{Hg=!1}}}function qg(e){return Array.isArray(e)?e.every(qg):!!S(e)}function Wg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zg(e,t),function(e,t){Bg.push({moduleType:e,ngModule:t})}(e,t)}function zg(e,t){var n=Zn(t.declarations||Lg),r=null;Object.defineProperty(e,oe,{configurable:!0,get:function(){return null===r&&((r=Gn().compileNgModule(Dg,"ng:///".concat(e.name,"/\u0275mod.js"),{type:e,bootstrap:Zn(t.bootstrap||Lg).map(S),declarations:n.map(S),imports:Zn(t.imports||Lg).map(S).map(Xg),exports:Zn(t.exports||Lg).map(S).map(Xg),schemas:t.schemas?Zn(t.schemas):null,id:t.id||null})).schemas||(r.schemas=[])),r}});var i=null;Object.defineProperty(e,D,{get:function(){if(null===i){var n={name:e.name,type:e,deps:br(e),providers:t.providers||Lg,imports:[(t.imports||Lg).map(S),(t.exports||Lg).map(S)]};i=Gn().compileInjector(Dg,"ng:///".concat(e.name,"/\u0275inj.js"),n)}return i},configurable:!1})}new Map,new Map;function Gg(){new Map,new Map,Bg.length=0}function Kg(e,t){var n=Zn(t.declarations||Lg),r=Zg(e);n.forEach(function(t){t.hasOwnProperty(ne)?Qg(_e(t),r):t.hasOwnProperty(re)||t.hasOwnProperty(ie)||(t.ngSelectorScope=e)})}function Qg(e,t){e.directiveDefs=function(){return Array.from(t.compilation.directives).map(function(e){return e.hasOwnProperty(ne)?_e(e):we(e)}).filter(function(e){return!!e})},e.pipeDefs=function(){return Array.from(t.compilation.pipes).map(function(e){return ke(e)})},e.schemas=t.schemas,e.tView=null}function Zg(e){if(!Yg(e))throw new Error(e.name+" does not have a module def (\u0275mod property)");var t=Ce(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;var n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return lo(t.imports).forEach(function(e){var t=e;if(!Yg(t))throw new Error("Importing ".concat(t.name," which does not have a \u0275mod property"));var r=Zg(t);r.exported.directives.forEach(function(e){return n.compilation.directives.add(e)}),r.exported.pipes.forEach(function(e){return n.compilation.pipes.add(e)})}),lo(t.declarations).forEach(function(e){ke(e)?n.compilation.pipes.add(e):n.compilation.directives.add(e)}),lo(t.exports).forEach(function(e){var t=e;if(Yg(t)){var r=Zg(t);r.exported.directives.forEach(function(e){n.compilation.directives.add(e),n.exported.directives.add(e)}),r.exported.pipes.forEach(function(e){n.compilation.pipes.add(e),n.exported.pipes.add(e)})}else ke(t)?n.exported.pipes.add(t):n.exported.directives.add(t)}),t.transitiveCompileScopes=n,n}function Xg(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function Yg(e){return!!Ce(e)}var Jg=0;function em(e,t){var n=null;!function(e,t){xr(t)&&(kr.set(e,t),Cr.add(e))}(e,t),rm(e,t),Object.defineProperty(e,ne,{get:function(){if(null===n){var r=Gn();if(xr(t)){var i=["Component '".concat(e.name,"' is not resolved:")];throw t.templateUrl&&i.push(" - templateUrl: "+t.templateUrl),t.styleUrls&&t.styleUrls.length&&i.push(" - styleUrls: "+JSON.stringify(t.styleUrls)),i.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(i.join("\n"))}var o=Rg,a=t.preserveWhitespaces;void 0===a&&(a=null!==o&&void 0!==o.preserveWhitespaces&&o.preserveWhitespaces);var u=t.encapsulation;void 0===u&&(u=null!==o&&void 0!==o.defaultEncapsulation?o.defaultEncapsulation:K.Emulated);var s=t.templateUrl||"ng:///".concat(e.name,"/template.html"),l=Object.assign(Object.assign({},om(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,s),template:t.template||"",preserveWhitespaces:a,styles:t.styles||te,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:u,interpolation:t.interpolation,viewProviders:t.viewProviders||null});Jg++;try{l.usesInheritance&&am(e),n=r.compileComponent(Dg,s,l)}finally{Jg--}if(0===Jg&&Ug(),void 0!==e.ngSelectorScope){var c=Zg(e.ngSelectorScope);Qg(n,c)}}return n},configurable:!1})}function tm(e,t){var n=null;rm(e,t||{}),Object.defineProperty(e,re,{get:function(){if(null===n){var r=nm(e,t||{});n=Gn().compileDirective(Dg,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function nm(e,t){var n=e&&e.name,r="ng:///".concat(n,"/\u0275dir.js"),i=Gn(),o=om(e,t);return o.typeSourceSpan=i.createParseSourceSpan("Directive",n,r),o.usesInheritance&&am(e),{metadata:o,sourceMapUrl:r}}function rm(e,t){var n=null;Object.defineProperty(e,ue,{get:function(){if(null===n){var r=nm(e,t),i=Gn();n=i.compileFactory(Dg,"ng:///".concat(e.name,"/\u0275fac.js"),Object.assign(Object.assign({},r.metadata),{injectFn:"directiveInject",target:i.R3FactoryTarget.Directive}))}return n},configurable:!1})}function im(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function om(e,t){var n,r=yr(),i=r.ownPropMetadata(e);return{name:e.name,type:e,typeArgumentCount:0,selector:void 0!==t.selector?t.selector:null,deps:br(e),host:t.host||ee,propMetadata:i,inputs:t.inputs||te,outputs:t.outputs||te,queries:um(e,i,sm),lifecycle:{usesOnChanges:r.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!im(e),exportAs:(n=t.exportAs,void 0===n?null:dm(n)),providers:t.providers||null,viewQueries:um(e,i,lm)}}function am(e){for(var t=Object.prototype,n=Object.getPrototypeOf(e.prototype).constructor;n&&n!==t;)we(n)||_e(n)||!hm(n)||tm(n,null),n=Object.getPrototypeOf(n)}function um(e,t,n){var r=[],i=function(i){if(t.hasOwnProperty(i)){var o=t[i];o.forEach(function(t){if(n(t)){if(!t.selector)throw new Error("Can't construct a query for the property \"".concat(i,'" of "').concat(Ve(e),"\" since the query selector wasn't defined."));if(o.some(cm))throw new Error("Cannot combine @Input decorators with query decorators");r.push(function(e,t){return{propertyName:e,predicate:(n=t.selector,"string"==typeof n?dm(n):S(n)),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static};var n}(i,t))}})}};for(var o in t)i(o);return r}function sm(e){var t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function lm(e){var t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function cm(e){return"Input"===e.ngMetadataName}function dm(e){return e.split(",").map(function(e){return e.trim()})}var fm=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function hm(e){var t=yr();if(fm.some(function(n){return t.hasLifecycleHook(e,n)}))return!0;var n=t.propMetadata(e);for(var r in n)for(var i=n[r],o=0;o0&&void 0!==arguments[0]?arguments[0]:{};return e},void 0,void 0,function(e,t){return Em(e,t)}),mm=Vn("Component",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({changeDetection:W.Default},e)},gm,void 0,function(e,t){return Sm(e,t)}),ym=Vn("Pipe",function(e){return Object.assign({pure:!0},e)},void 0,void 0,function(e,t){return Om(e,t)}),bm=Nn("Input",function(e){return{bindingPropertyName:e}}),_m=Nn("Output",function(e){return{bindingPropertyName:e}}),wm=Nn("HostBinding",function(e){return{hostPropertyName:e}}),km=Nn("HostListener",function(e,t){return{eventName:e,args:t}}),Cm=em,xm=tm,$m=pm,Sm=Cm,Em=xm,Om=$m,Im=Vn("NgModule",function(e){return e},void 0,void 0,function(e,t){return jm(e,t)}),Tm=Wg,jm=Tm,Am=new Fn("Application Initializer"),Vm=function(){var e=function(){function e(t){var n=this;g(this,e),this.appInits=t,this.resolve=Lf,this.reject=Lf,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return y(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Vr(cy))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}(),yy=function(){var e=function(){function e(){g(this,e),this._applications=new Map,wy.addToWindow(this)}return y(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return wy.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}();function by(e){wy=e}var _y,wy=new(function(){function e(){g(this,e)}return y(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),ky=Cy;function Cy(e,t,n){var r=new Bv(n);return Promise.resolve(r)}var xy=$y;function $y(e){return e.isBoundToModule}var Sy=new Fn("AllowMultipleToken"),Ey=function e(t,n){g(this,e),this.name=t,this.token=n};function Oy(e){if(_y&&!_y.destroyed&&!_y.injector.get(Sy,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");_y=e.get(Vy);var t=e.get(Rm,null);return t&&t.forEach(function(e){return e()}),_y}function Iy(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: "+t,i=new Fn(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Ay();if(!o||o.injector.get(Sy,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0},{provide:fu,useValue:"platform"});Oy(Ou.create({providers:a,name:r}))}return Ty(i)}}function Ty(e){var t=Ay();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function jy(){_y&&!_y.destroyed&&_y.destroy()}function Ay(){return _y&&!_y.destroyed?_y:null}var Vy=function(){var e=function(){function e(t){g(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return y(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new gy:("zone.js"===n?void 0:n)||new cy({enableLongStackTrace:ii(),shouldCoalesceEventChangeDetection:r})),a=[{provide:cy,useValue:o}];return o.run(function(){var t=Ou.create({providers:a,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(zi,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Ny(i._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})}),function(e,t,r){try{var o=((a=n.injector.get(Vm)).runInitializers(),a.donePromise.then(function(){return Qm&&xd(n.injector.get(Um,yd)||yd),i._moduleDoBootstrap(n),n}));return $l(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(u){throw t.runOutsideAngular(function(){return e.handleError(u)}),u}var a}(r,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Py({},n);return ky(this.injector,r,e).then(function(e){return t.bootstrapModuleFactory(e,r)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(My);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(k(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Vr(Ou))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}();function Py(e,t){return Array.isArray(t)?t.reduce(Py,e):Object.assign(Object.assign({},e),t)}var My=function(){var e=function(){function e(t,n,r,i,o,a){var u=this;g(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ii(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var s=new p.a(function(e){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){e.next(u._stable),e.complete()})}),l=new p.a(function(e){var t;u._zone.runOutsideAngular(function(){t=u._zone.onStable.subscribe(function(){cy.assertNotInAngularZone(),ly(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,e.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){cy.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(m.a)(s,l.pipe(Object(b.a)()))}return y(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Vf?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=xy(n)?void 0:this._injector.get(Oh),o=n.create(Ou.NULL,[],t||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var a=o.injector.get(my,null);return a&&o.injector.get(yy).registerApplication(o.location.nativeElement,a),this._loadComponent(o),ii()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=i(this._views);try{for(n.s();!(t=n.n()).done;){t.value.detectChanges()}}catch(a){n.e(a)}finally{n.f()}if(this._enforceNoNewChanges){var r,o=i(this._views);try{for(o.s();!(r=o.n()).done;){r.value.checkNoChanges()}}catch(a){o.e(a)}finally{o.f()}}}catch(u){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(u)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Ny(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Lm,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),Ny(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()})}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Vr(cy),Vr(Hm),Vr(Ou),Vr(zi),Vr(Df),Vr(Vm))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}();function Ny(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Dy=function e(){g(this,e)};function Ry(e){var t=Fv(e);if(!t)throw By(e);return t}function Fy(e){var t=Fv(e);if(!t)throw By(e);return new Bv(t)}var Ly=Fy;function By(e){return new Error("No module with ID ".concat(e," loaded"))}var Hy=function e(){g(this,e)},Uy={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},qy=function(){var e=function(){function e(t,n){g(this,e),this._compiler=t,this._config=n||Uy}return y(e,[{key:"load",value:function(e){return!Qm&&this._compiler instanceof oy?this.loadFactory(e):this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var n=this,r=t(e.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),u("crnd")(i).then(function(e){return e[o]}).then(function(e){return Wy(e,i,o)}).then(function(e){return n._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var n=t(e.split("#"),2),r=n[0],i=n[1],o="NgFactory";return void 0===i&&(i="default",o=""),u("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[i+o]}).then(function(e){return Wy(e,r,i)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Vr(oy),Vr(Hy,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}();function Wy(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var zy=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return n}(mh),Gy=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return n}(zy),Ky=function e(t,n){g(this,e),this.name=t,this.callback=n},Qy=function(){function e(t,n,r){g(this,e),this.listeners=[],this.parent=null,this._debugContext=r,this.nativeNode=t,n&&n instanceof Zy&&n.addChild(this)}return y(e,[{key:"injector",get:function(){return this._debugContext.injector}},{key:"componentInstance",get:function(){return this._debugContext.component}},{key:"context",get:function(){return this._debugContext.context}},{key:"references",get:function(){return this._debugContext.references}},{key:"providerTokens",get:function(){return this._debugContext.providerTokens}}]),e}(),Zy=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e,r,i)).properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return y(n,[{key:"addChild",value:function(e){e&&(this.childNodes.push(e),e.parent=this)}},{key:"removeChild",value:function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}},{key:"insertChildrenAfter",value:function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(o(t))),t.forEach(function(t){t.parent&&t.parent.removeChild(t),e.parent=r}))}},{key:"insertBefore",value:function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}},{key:"query",value:function(e){return this.queryAll(e)[0]||null}},{key:"queryAll",value:function(e){var t=[];return Yy(this,e,t),t}},{key:"queryAllNodes",value:function(e){var t=[];return Jy(this,e,t),t}},{key:"triggerEventHandler",value:function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})}},{key:"children",get:function(){return this.childNodes.filter(function(e){return e instanceof n})}}]),n}(Qy);function Xy(e){return e.map(function(e){return e.nativeElement})}function Yy(e,t,n){e.childNodes.forEach(function(e){e instanceof Zy&&(t(e)&&n.push(e),Yy(e,t,n))})}function Jy(e,t,n){e instanceof Zy&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof Zy&&Jy(e,t,n)})}var eb=function(){function e(t){g(this,e),this.nativeNode=t}return y(e,[{key:"parent",get:function(){var e=this.nativeNode.parentNode;return e?new tb(e):null}},{key:"injector",get:function(){return Vu(this.nativeNode)}},{key:"componentInstance",get:function(){var e=this.nativeNode;return e&&(Iu(e)||ju(e))}},{key:"context",get:function(){return Iu(this.nativeNode)||Tu(this.nativeNode)}},{key:"listeners",get:function(){return Du(this.nativeNode).filter(function(e){return"dom"===e.type})}},{key:"references",get:function(){return e=this.nativeNode,null===(t=Mu(e,!1))?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){var n=e[1].data[t];if(n&&n.localNames){for(var r={},i=n.index+1,o=0;o1){for(var l=u[1],c=1;c6&&void 0!==arguments[6]?arguments[6]:[],l=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,d=arguments.length>9?arguments[9]:void 0,f=arguments.length>10?arguments[10]:void 0,h=arguments.length>11?arguments[11]:void 0;d||(d=Zh);var p=pp(r),v=p.matchedQueries,g=p.references,m=p.matchedQueryIds,y=null,b=null;a&&(y=(u=t($p(a),2))[0],b=u[1]),l=l||[];for(var _=[],w=0;w0)l=v,Wb(v)||(c=v);else for(;l&&p===l.nodeIndex+l.childCount;){var y=l.parent;y&&(y.childFlags|=l.childFlags,y.childMatchedQueries|=l.childMatchedQueries),c=(l=y)&&Wb(l)?l.renderParent:l}}return{factory:null,nodeFlags:a,rootNodeFlags:u,nodeMatchedQueries:s,flags:e,nodes:t,updateDirectives:n||Zh,updateRenderer:r||Zh,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:h}}function Wb(e){return 0!=(1&e.flags)&&null===e.element.name}function zb(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index ".concat(t.nodeIndex,"!"))}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ".concat(t.nodeIndex,"!"));if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index ".concat(t.nodeIndex,"!"));if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index ".concat(t.nodeIndex,"!"))}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index ".concat(t.nodeIndex,"!"))}}function Gb(e,t,n,r){var i=Zb(e.root,e.renderer,e,t,n);return Xb(i,e.component,r),Yb(i),i}function Kb(e,t,n){var r=Zb(e,e.renderer,null,null,t);return Xb(r,n,n),Yb(r),r}function Qb(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,Zb(e.root,i,e,t.element.componentProvider,n)}function Zb(e,t,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function Xb(e,t,n){e.component=t,e.context=n}function Yb(e){var t;dp(e)&&(t=qh(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i0&&Ib(e,t,0,n)&&(h=!0),f>1&&Ib(e,t,1,r)&&(h=!0),f>2&&Ib(e,t,2,i)&&(h=!0),f>3&&Ib(e,t,3,o)&&(h=!0),f>4&&Ib(e,t,4,a)&&(h=!0),f>5&&Ib(e,t,5,u)&&(h=!0),f>6&&Ib(e,t,6,s)&&(h=!0),f>7&&Ib(e,t,7,l)&&(h=!0),f>8&&Ib(e,t,8,c)&&(h=!0),f>9&&Ib(e,t,9,d)&&(h=!0),h}(e,t,n,r,i,o,a,u,s,l,c,d);case 2:return function(e,t,n,r,i,o,a,u,s,l,c,d){var f=!1,h=t.bindings,p=h.length;if(p>0&&rp(e,t,0,n)&&(f=!0),p>1&&rp(e,t,1,r)&&(f=!0),p>2&&rp(e,t,2,i)&&(f=!0),p>3&&rp(e,t,3,o)&&(f=!0),p>4&&rp(e,t,4,a)&&(f=!0),p>5&&rp(e,t,5,u)&&(f=!0),p>6&&rp(e,t,6,s)&&(f=!0),p>7&&rp(e,t,7,l)&&(f=!0),p>8&&rp(e,t,8,c)&&(f=!0),p>9&&rp(e,t,9,d)&&(f=!0),f){var v=t.text.prefix;p>0&&(v+=Ub(n,h[0])),p>1&&(v+=Ub(r,h[1])),p>2&&(v+=Ub(i,h[2])),p>3&&(v+=Ub(o,h[3])),p>4&&(v+=Ub(a,h[4])),p>5&&(v+=Ub(u,h[5])),p>6&&(v+=Ub(s,h[6])),p>7&&(v+=Ub(l,h[7])),p>8&&(v+=Ub(c,h[8])),p>9&&(v+=Ub(d,h[9]));var g=Uh(e,t.nodeIndex).renderText;e.renderer.setValue(g,v)}return f}(e,t,n,r,i,o,a,u,s,l,c,d);case 16384:return function(e,t,n,r,i,o,a,u,s,l,c,d){var f=Wh(e,t.nodeIndex),h=f.instance,p=!1,v=void 0,g=t.bindings.length;return g>0&&np(e,t,0,n)&&(p=!0,v=$v(e,f,t,0,n,v)),g>1&&np(e,t,1,r)&&(p=!0,v=$v(e,f,t,1,r,v)),g>2&&np(e,t,2,i)&&(p=!0,v=$v(e,f,t,2,i,v)),g>3&&np(e,t,3,o)&&(p=!0,v=$v(e,f,t,3,o,v)),g>4&&np(e,t,4,a)&&(p=!0,v=$v(e,f,t,4,a,v)),g>5&&np(e,t,5,u)&&(p=!0,v=$v(e,f,t,5,u,v)),g>6&&np(e,t,6,s)&&(p=!0,v=$v(e,f,t,6,s,v)),g>7&&np(e,t,7,l)&&(p=!0,v=$v(e,f,t,7,l,v)),g>8&&np(e,t,8,c)&&(p=!0,v=$v(e,f,t,8,c,v)),g>9&&np(e,t,9,d)&&(p=!0,v=$v(e,f,t,9,d,v)),v&&h.ngOnChanges(v),65536&t.flags&&Hh(e,256,t.nodeIndex)&&h.ngOnInit(),262144&t.flags&&h.ngDoCheck(),p}(e,t,n,r,i,o,a,u,s,l,c,d);case 32:case 64:case 128:return function(e,t,n,r,i,o,a,u,s,l,c,d){var f=t.bindings,h=!1,p=f.length;if(p>0&&rp(e,t,0,n)&&(h=!0),p>1&&rp(e,t,1,r)&&(h=!0),p>2&&rp(e,t,2,i)&&(h=!0),p>3&&rp(e,t,3,o)&&(h=!0),p>4&&rp(e,t,4,a)&&(h=!0),p>5&&rp(e,t,5,u)&&(h=!0),p>6&&rp(e,t,6,s)&&(h=!0),p>7&&rp(e,t,7,l)&&(h=!0),p>8&&rp(e,t,8,c)&&(h=!0),p>9&&rp(e,t,9,d)&&(h=!0),h){var v,g=zh(e,t.nodeIndex);switch(201347067&t.flags){case 32:v=[],p>0&&v.push(n),p>1&&v.push(r),p>2&&v.push(i),p>3&&v.push(o),p>4&&v.push(a),p>5&&v.push(u),p>6&&v.push(s),p>7&&v.push(l),p>8&&v.push(c),p>9&&v.push(d);break;case 64:v={},p>0&&(v[f[0].name]=n),p>1&&(v[f[1].name]=r),p>2&&(v[f[2].name]=i),p>3&&(v[f[3].name]=o),p>4&&(v[f[4].name]=a),p>5&&(v[f[5].name]=u),p>6&&(v[f[6].name]=s),p>7&&(v[f[7].name]=l),p>8&&(v[f[8].name]=c),p>9&&(v[f[9].name]=d);break;case 128:var m=n;switch(p){case 1:v=m.transform(n);break;case 2:v=m.transform(r);break;case 3:v=m.transform(r,i);break;case 4:v=m.transform(r,i,o);break;case 5:v=m.transform(r,i,o,a);break;case 6:v=m.transform(r,i,o,a,u);break;case 7:v=m.transform(r,i,o,a,u,s);break;case 8:v=m.transform(r,i,o,a,u,s,l);break;case 9:v=m.transform(r,i,o,a,u,s,l,c);break;case 10:v=m.transform(r,i,o,a,u,s,l,c,d)}}g.value=v}return h}(e,t,n,r,i,o,a,u,s,l,c,d);default:throw"unreachable"}}(e,t,r,i,a,u,s,l,c,d,f,h):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i0&&ip(e,t,0,n),f>1&&ip(e,t,1,r),f>2&&ip(e,t,2,i),f>3&&ip(e,t,3,o),f>4&&ip(e,t,4,a),f>5&&ip(e,t,5,u),f>6&&ip(e,t,6,s),f>7&&ip(e,t,7,l),f>8&&ip(e,t,8,c),f>9&&ip(e,t,9,d)}(e,t,r,i,o,a,u,s,l,c,d,f):function(e,t,n){for(var r=0;r0){var o=new Set(e.modules);w_.forEach(function(t,n){if(o.has(A(n).providedIn)){var i={token:n,flags:t.flags|(r?4096:0),deps:vp(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[Yh(n)]=i}})}}(e=e.factory(function(){return Zh})),e):e}(r))}var __=new Map,w_=new Map,k_=new Map;function C_(e){var t;__.set(e.token,e),"function"==typeof e.token&&(t=A(e.token))&&"function"==typeof t.providedIn&&w_.set(e.token,e)}function x_(e,t){var n=yp(Wp(t)),r=yp(n.nodes[0].element.componentView);k_.set(e,r)}function $_(){__.clear(),w_.clear(),k_.clear()}function S_(e){if(0===__.size)return e;var t=function(e){for(var t=[],n=null,r=0;r3?o-3:0),u=3;u3?o-3:0),u=3;u1?t-1:0),r=1;rs;)r.f(e,n=a[s++],t[n]);return e}},g3Qq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("fElF")},gRHU:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("2fFW"),i=n("NJ4a"),o={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete:function(){}}},gvyg:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPresent=function(e){return null!=e},t.isDate=function(e){return!/Invalid|NaN/.test(new Date(e).toString())}},hDam:function(e,t){e.exports=function(){}},hGZq:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("uY1Z")),r(n("fWoD"))},hQsY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.base64=function(e){return i.isPresent(r.Validators.required(e))||/^(?:[A-Z0-9+\/]{4})*(?:[A-Z0-9+\/]{2}==|[A-Z0-9+\/]{3}=|[A-Z0-9+\/]{4})$/i.test(e.value)?null:{base64:!0}}},"haF/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("jhFA"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.equal(this.equal)},e.prototype.ngOnChanges=function(e){for(var t in e)"equal"===t&&(this.validator=o.equal(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={equal:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","equal","","formControlName",""],["","equal","","formControl",""],["","equal","","ngModel",""]],inputs:{equal:"equal"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.EqualValidator=s},hen0:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("fjK8")),r(n("y9jv"))},iCc5:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},itXk:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return f});var r=n("z+Ro"),i=n("DH7j"),o=n("l7GE"),a=n("ZUHj"),u=n("yCtX"),s={};function c(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return g(this,n),(e=t.call(this)).scheduler=o,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=r<1?1:r,e._windowTime=i<1?1:i,i===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return y(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}s(v(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new h(this._getNow(),e)),this._trimBufferThenGetEvents()),s(v(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=r.length;if(this.closed)throw new u.a;if(this.isStopped||this.hasError?t=o.a.EMPTY:(this.observers.push(e),t=new c.a(this,e)),i&&e.add(e=new a.a(e,i)),n)for(var l=0;lt&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r}}]),n}(r.a),h=function e(t,n){g(this,e),this.time=t,this.value=n}},"k/8l":function(e,t,n){e.exports={default:n("VKFn"),__esModule:!0}},"k7/t":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("O0EG"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.equalTo(this.equalTo)},e.prototype.validate=function(e){return this.validator(e)},e.propDecorators={equalTo:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","equalTo","","formControlName",""],["","equalTo","","formControl",""],["","equalTo","","ngModel",""]],inputs:{equalTo:"equalTo"},features:[a.\u0275\u0275ProvidersFeature([u])]}),e}();t.EqualToValidator=s},kJWO:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},kTiW:function(e,t,n){e.exports=n("NegM")},kU1M:function(e,t,n){"use strict";n.r(t),n.d(t,"audit",function(){return i}),n.d(t,"auditTime",function(){return p}),n.d(t,"buffer",function(){return m}),n.d(t,"bufferCount",function(){return k}),n.d(t,"bufferTime",function(){return E}),n.d(t,"bufferToggle",function(){return D}),n.d(t,"bufferWhen",function(){return L}),n.d(t,"catchError",function(){return U.a}),n.d(t,"combineAll",function(){return q.a}),n.d(t,"combineLatest",function(){return K}),n.d(t,"concat",function(){return Z}),n.d(t,"concatAll",function(){return X.a}),n.d(t,"concatMap",function(){return Y.a}),n.d(t,"concatMapTo",function(){return J}),n.d(t,"count",function(){return ee}),n.d(t,"debounce",function(){return re}),n.d(t,"debounceTime",function(){return ae}),n.d(t,"defaultIfEmpty",function(){return ce.a}),n.d(t,"delay",function(){return he}),n.d(t,"delayWhen",function(){return ye}),n.d(t,"dematerialize",function(){return Ce}),n.d(t,"distinct",function(){return Se}),n.d(t,"distinctUntilChanged",function(){return Ie}),n.d(t,"distinctUntilKeyChanged",function(){return Ae}),n.d(t,"elementAt",function(){return De}),n.d(t,"endWith",function(){return Fe}),n.d(t,"every",function(){return Le}),n.d(t,"exhaust",function(){return Ue}),n.d(t,"exhaustMap",function(){return Ge}),n.d(t,"expand",function(){return Ze}),n.d(t,"filter",function(){return Pe.a}),n.d(t,"finalize",function(){return Je.a}),n.d(t,"find",function(){return et}),n.d(t,"findIndex",function(){return rt}),n.d(t,"first",function(){return it.a}),n.d(t,"groupBy",function(){return ot.b}),n.d(t,"ignoreElements",function(){return at}),n.d(t,"isEmpty",function(){return lt}),n.d(t,"last",function(){return ft.a}),n.d(t,"map",function(){return ze.a}),n.d(t,"mapTo",function(){return ht}),n.d(t,"materialize",function(){return gt}),n.d(t,"max",function(){return _t}),n.d(t,"merge",function(){return kt}),n.d(t,"mergeAll",function(){return Ct.a}),n.d(t,"mergeMap",function(){return xt.b}),n.d(t,"flatMap",function(){return xt.a}),n.d(t,"mergeMapTo",function(){return $t}),n.d(t,"mergeScan",function(){return St}),n.d(t,"min",function(){return It}),n.d(t,"multicast",function(){return Tt.a}),n.d(t,"observeOn",function(){return jt.b}),n.d(t,"onErrorResumeNext",function(){return At}),n.d(t,"pairwise",function(){return Mt}),n.d(t,"partition",function(){return Ft}),n.d(t,"pluck",function(){return Lt}),n.d(t,"publish",function(){return Ht}),n.d(t,"publishBehavior",function(){return qt}),n.d(t,"publishLast",function(){return zt}),n.d(t,"publishReplay",function(){return Kt}),n.d(t,"race",function(){return Zt}),n.d(t,"reduce",function(){return bt.a}),n.d(t,"repeat",function(){return Yt}),n.d(t,"repeatWhen",function(){return tn}),n.d(t,"retry",function(){return on}),n.d(t,"retryWhen",function(){return sn}),n.d(t,"refCount",function(){return dn.a}),n.d(t,"sample",function(){return fn}),n.d(t,"sampleTime",function(){return vn}),n.d(t,"scan",function(){return bn.a}),n.d(t,"sequenceEqual",function(){return _n}),n.d(t,"share",function(){return xn.a}),n.d(t,"shareReplay",function(){return $n}),n.d(t,"single",function(){return En}),n.d(t,"skip",function(){return Tn}),n.d(t,"skipLast",function(){return Vn}),n.d(t,"skipUntil",function(){return Nn}),n.d(t,"skipWhile",function(){return Fn}),n.d(t,"startWith",function(){return Hn.a}),n.d(t,"subscribeOn",function(){return zn}),n.d(t,"switchAll",function(){return Zn}),n.d(t,"switchMap",function(){return Kn.a}),n.d(t,"switchMapTo",function(){return Xn}),n.d(t,"take",function(){return Ne.a}),n.d(t,"takeLast",function(){return Yn.a}),n.d(t,"takeUntil",function(){return Jn}),n.d(t,"takeWhile",function(){return nr}),n.d(t,"tap",function(){return or.a}),n.d(t,"throttle",function(){return ur}),n.d(t,"throttleTime",function(){return cr}),n.d(t,"throwIfEmpty",function(){return Me.a}),n.d(t,"timeInterval",function(){return vr}),n.d(t,"timeout",function(){return kr}),n.d(t,"timeoutWith",function(){return yr}),n.d(t,"timestamp",function(){return Cr}),n.d(t,"toArray",function(){return $r.a}),n.d(t,"window",function(){return Sr}),n.d(t,"windowCount",function(){return Ir}),n.d(t,"windowTime",function(){return Ar}),n.d(t,"windowToggle",function(){return Fr}),n.d(t,"windowWhen",function(){return Hr}),n.d(t,"withLatestFrom",function(){return Wr}),n.d(t,"zip",function(){return Qr}),n.d(t,"zipAll",function(){return Zr});var r=n("zx2A");function i(e){return function(t){return t.lift(new a(e))}}var a=function(){function e(t){g(this,e),this.durationSelector=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.durationSelector))}}]),e}(),u=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).durationSelector=r,i.hasValue=!1,i}return y(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=Object(r.c)(t,new r.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(r.b),c=n("D0XW"),f=n("PqYM");function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.a;return i(function(){return Object(f.a)(e,t)})}function m(e){return function(t){return t.lift(new b(e))}}var b=function(){function e(t){g(this,e),this.closingNotifier=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new _(e,this.closingNotifier))}}]),e}(),_=function(e){l(n,e);var t=d(n);function n(e,i){var o;return g(this,n),(o=t.call(this,e)).buffer=[],o.add(Object(r.c)(i,new r.a(h(o)))),o}return y(n,[{key:"_next",value:function(e){this.buffer.push(e)}},{key:"notifyNext",value:function(){var e=this.buffer;this.buffer=[],this.destination.next(e)}}]),n}(r.b),w=n("7o/Q");function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n){return n.lift(new C(e,t))}}var C=function(){function e(t,n){g(this,e),this.bufferSize=t,this.startBufferEvery=n,this.subscriberClass=n&&t!==n?$:x}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))}}]),e}(),x=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).bufferSize=r,i.buffer=[],i}return y(n,[{key:"_next",value:function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])}},{key:"_complete",value:function(){var e=this.buffer;e.length>0&&this.destination.next(e),s(v(n.prototype),"_complete",this).call(this)}}]),n}(w.a),$=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).bufferSize=r,o.startBufferEvery=i,o.buffers=[],o.count=0,o}return y(n,[{key:"_next",value:function(e){var t=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var a=r[o];a.push(e),a.length===t&&(r.splice(o,1),this.destination.next(a))}}},{key:"_complete",value:function(){for(var e=this.buffers,t=this.destination;e.length>0;){var r=e.shift();r.length>0&&t.next(r)}s(v(n.prototype),"_complete",this).call(this)}}]),n}(w.a),S=n("z+Ro");function E(e){var t=arguments.length,n=c.a;Object(S.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var r=null;t>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new O(e,r,i,n))}}var O=function(){function e(t,n,r,i){g(this,e),this.bufferTimeSpan=t,this.bufferCreationInterval=n,this.maxBufferSize=r,this.scheduler=i}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new T(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),e}(),I=function e(){g(this,e),this.buffer=[]},T=function(e){l(n,e);var t=d(n);function n(e,r,i,o,a){var u;g(this,n),(u=t.call(this,e)).bufferTimeSpan=r,u.bufferCreationInterval=i,u.maxBufferSize=o,u.scheduler=a,u.contexts=[];var s=u.openContext();if(u.timespanOnly=null==i||i<0,u.timespanOnly)u.add(s.closeAction=a.schedule(j,r,{subscriber:h(u),context:s,bufferTimeSpan:r}));else{var l={bufferTimeSpan:r,bufferCreationInterval:i,subscriber:h(u),scheduler:a};u.add(s.closeAction=a.schedule(V,r,{subscriber:h(u),context:s})),u.add(a.schedule(A,i,l))}return u}return y(n,[{key:"_next",value:function(e){for(var t,n=this.contexts,r=n.length,i=0;i0;){var r=e.shift();t.next(r.buffer)}s(v(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.contexts=null}},{key:"onBufferFull",value:function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan;this.add(e.closeAction=this.scheduler.schedule(j,n,{subscriber:this,context:e,bufferTimeSpan:n}))}}},{key:"openContext",value:function(){var e=new I;return this.contexts.push(e),e}},{key:"closeContext",value:function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)}}]),n}(w.a);function j(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function A(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(V,n,{subscriber:r,context:o})),this.schedule(e,t))}function V(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var P=n("quSY"),M=n("ZUHj"),N=n("l7GE");function D(e,t){return function(n){return n.lift(new R(e,t))}}var R=function(){function e(t,n){g(this,e),this.openings=t,this.closingSelector=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new F(e,this.openings,this.closingSelector))}}]),e}(),F=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).closingSelector=i,o.contexts=[],o.add(Object(M.a)(h(o),r)),o}return y(n,[{key:"_next",value:function(e){for(var t=this.contexts,n=t.length,r=0;r0;){var r=t.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,s(v(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){for(var e=this.contexts;e.length>0;){var t=e.shift();this.destination.next(t.buffer),t.subscription.unsubscribe(),t.buffer=null,t.subscription=null}this.contexts=null,s(v(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t){e?this.closeBuffer(e):this.openBuffer(t)}},{key:"notifyComplete",value:function(e){this.closeBuffer(e.context)}},{key:"openBuffer",value:function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(n){this._error(n)}}},{key:"closeBuffer",value:function(e){var t=this.contexts;if(t&&e){var n=e.buffer,r=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(r),r.unsubscribe()}}},{key:"trySubscribe",value:function(e){var t=this.contexts,n=new P.a,r={buffer:[],subscription:n};t.push(r);var i=Object(M.a)(this,e,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))}}]),n}(N.a);function L(e){return function(t){return t.lift(new B(e))}}var B=function(){function e(t){g(this,e),this.closingSelector=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new H(e,this.closingSelector))}}]),e}(),H=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).closingSelector=r,i.subscribing=!1,i.openBuffer(),i}return y(n,[{key:"_next",value:function(e){this.buffer.push(e)}},{key:"_complete",value:function(){var e=this.buffer;e&&this.destination.next(e),s(v(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.buffer=void 0,this.subscribing=!1}},{key:"notifyNext",value:function(){this.openBuffer()}},{key:"notifyComplete",value:function(){this.subscribing?this.complete():this.openBuffer()}},{key:"openBuffer",value:function(){var e,t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{e=(0,this.closingSelector)()}catch(n){return this.error(n)}t=new P.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(r.c)(e,new r.a(this))),this.subscribing=!1}}]),n}(r.b),U=n("JIr8"),q=n("7wxJ"),W=n("DH7j"),z=n("itXk"),G=n("Cfvw");function K(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:c.a;return function(n){return n.lift(new ue(e,t))}}var ue=function(){function e(t,n){g(this,e),this.dueTime=t,this.scheduler=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new se(e,this.dueTime,this.scheduler))}}]),e}(),se=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).dueTime=r,o.scheduler=i,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return y(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(le,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(w.a);function le(e){e.debouncedNext()}var ce=n("xbPD");function de(e){return e instanceof Date&&!isNaN(+e)}var fe=n("WMd4");function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.a,n=de(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new pe(n,t))}}var pe=function(){function e(t,n){g(this,e),this.delay=t,this.scheduler=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new ve(e,this.delay,this.scheduler))}}]),e}(),ve=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).delay=r,o.scheduler=i,o.queue=[],o.active=!1,o.errored=!1,o}return y(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new ge(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(fe.a.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(fe.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,r=e.scheduler,i=e.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(w.a),ge=function e(t,n){g(this,e),this.time=t,this.notification=n},me=n("HDdC");function ye(e,t){return t?function(n){return new we(n,t).lift(new be(e))}:function(t){return t.lift(new be(e))}}var be=function(){function e(t){g(this,e),this.delayDurationSelector=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new _e(e,this.delayDurationSelector))}}]),e}(),_e=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).delayDurationSelector=r,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return y(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(e),this.removeSubscription(i),this.tryComplete()}},{key:"notifyError",value:function(e,t){this._error(e)}},{key:"notifyComplete",value:function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()}},{key:"_next",value:function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(r){this.destination.error(r)}}},{key:"_complete",value:function(){this.completed=!0,this.tryComplete(),this.unsubscribe()}},{key:"removeSubscription",value:function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue}},{key:"tryDelay",value:function(e,t){var n=Object(M.a)(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))}},{key:"tryComplete",value:function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}]),n}(N.a),we=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this)).source=e,i.subscriptionDelay=r,i}return y(n,[{key:"_subscribe",value:function(e){this.subscriptionDelay.subscribe(new ke(e,this.source))}}]),n}(me.a),ke=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this)).parent=e,i.source=r,i.sourceSubscribed=!1,i}return y(n,[{key:"_next",value:function(e){this.subscribeToSource()}},{key:"_error",value:function(e){this.unsubscribe(),this.parent.error(e)}},{key:"_complete",value:function(){this.unsubscribe(),this.subscribeToSource()}},{key:"subscribeToSource",value:function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}]),n}(w.a);function Ce(){return function(e){return e.lift(new xe)}}var xe=function(){function e(){g(this,e)}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new $e(e))}}]),e}(),$e=function(e){l(n,e);var t=d(n);function n(e){return g(this,n),t.call(this,e)}return y(n,[{key:"_next",value:function(e){e.observe(this.destination)}}]),n}(w.a);function Se(e,t){return function(n){return n.lift(new Ee(e,t))}}var Ee=function(){function e(t,n){g(this,e),this.keySelector=t,this.flushes=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new Oe(e,this.keySelector,this.flushes))}}]),e}(),Oe=function(e){l(n,e);var t=d(n);function n(e,i,o){var a;return g(this,n),(a=t.call(this,e)).keySelector=i,a.values=new Set,o&&a.add(Object(r.c)(o,new r.a(h(a)))),a}return y(n,[{key:"notifyNext",value:function(){this.values.clear()}},{key:"notifyError",value:function(e){this._error(e)}},{key:"_next",value:function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)}},{key:"_useKeySelector",value:function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(r){return void n.error(r)}this._finalizeNext(t,e)}},{key:"_finalizeNext",value:function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))}}]),n}(r.b);function Ie(e,t){return function(n){return n.lift(new Te(e,t))}}var Te=function(){function e(t,n){g(this,e),this.compare=t,this.keySelector=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new je(e,this.compare,this.keySelector))}}]),e}(),je=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).keySelector=i,o.hasKey=!1,"function"==typeof r&&(o.compare=r),o}return y(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))}}]),n}(w.a);function Ae(e,t){return Ie(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})}var Ve=n("4I5i"),Pe=n("pLZG"),Me=n("XDbj"),Ne=n("IzEk");function De(e,t){if(e<0)throw new Ve.a;var n=arguments.length>=2;return function(r){return r.pipe(Object(Pe.a)(function(t,n){return n===e}),Object(Ne.a)(1),n?Object(ce.a)(t):Object(Me.a)(function(){return new Ve.a}))}}var Re=n("LRne");function Fe(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,n=arguments.length>2?arguments[2]:void 0;return t=(t||0)<1?Number.POSITIVE_INFINITY:t,function(r){return r.lift(new Xe(e,t,n))}}var Xe=function(){function e(t,n,r){g(this,e),this.project=t,this.concurrent=n,this.scheduler=r}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new Ye(e,this.project,this.concurrent,this.scheduler))}}]),e}(),Ye=function(e){l(n,e);var t=d(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e)).project=r,a.concurrent=i,a.scheduler=o,a.index=0,a.active=0,a.hasCompleted=!1,i0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}],[{key:"dispatch",value:function(e){var t=e.subscriber,n=e.result,r=e.value,i=e.index;t.subscribeToProjection(n,r,i)}}]),n}(r.b),Je=n("nYR2");function et(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new tt(e,n,!1,t))}}var tt=function(){function e(t,n,r,i){g(this,e),this.predicate=t,this.source=n,this.yieldIndex=r,this.thisArg=i}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new nt(e,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),e}(),nt=function(e){l(n,e);var t=d(n);function n(e,r,i,o,a){var u;return g(this,n),(u=t.call(this,e)).predicate=r,u.source=i,u.yieldIndex=o,u.thisArg=a,u.index=0,u}return y(n,[{key:"notifyComplete",value:function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()}},{key:"_next",value:function(e){var t=this.predicate,n=this.thisArg,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(i){this.destination.error(i)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}]),n}(w.a);function rt(e,t){return function(n){return n.lift(new tt(e,n,!0,t))}}var it=n("SxV6"),ot=n("OQgR");function at(){return function(e){return e.lift(new ut)}}var ut=function(){function e(){g(this,e)}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new st(e))}}]),e}(),st=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"_next",value:function(e){}}]),n}(w.a);function lt(){return function(e){return e.lift(new ct)}}var ct=function(){function e(){g(this,e)}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new dt(e))}}]),e}(),dt=function(e){l(n,e);var t=d(n);function n(e){return g(this,n),t.call(this,e)}return y(n,[{key:"notifyComplete",value:function(e){var t=this.destination;t.next(e),t.complete()}},{key:"_next",value:function(e){this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),n}(w.a),ft=n("NJ9Y");function ht(e){return function(t){return t.lift(new pt(e))}}var pt=function(){function e(t){g(this,e),this.value=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new vt(e,this.value))}}]),e}(),vt=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).value=r,i}return y(n,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),n}(w.a);function gt(){return function(e){return e.lift(new mt)}}var mt=function(){function e(){g(this,e)}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new yt(e))}}]),e}(),yt=function(e){l(n,e);var t=d(n);function n(e){return g(this,n),t.call(this,e)}return y(n,[{key:"_next",value:function(e){this.destination.next(fe.a.createNext(e))}},{key:"_error",value:function(e){var t=this.destination;t.next(fe.a.createError(e)),t.complete()}},{key:"_complete",value:function(){var e=this.destination;e.next(fe.a.createComplete()),e.complete()}}]),n}(w.a),bt=n("128B");function _t(e){var t="function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t};return Object(bt.a)(t)}var wt=n("VRyK");function kt(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?Object(xt.b)(function(){return e},t,n):("number"==typeof t&&(n=t),Object(xt.b)(function(){return e},n))}function St(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(r){return r.lift(new Et(e,t,n))}}var Et=function(){function e(t,n,r){g(this,e),this.accumulator=t,this.seed=n,this.concurrent=r}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new Ot(e,this.accumulator,this.seed,this.concurrent))}}]),e}(),Ot=function(e){l(n,e);var t=d(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e)).accumulator=r,a.acc=i,a.concurrent=o,a.hasValue=!1,a.hasCompleted=!1,a.buffer=[],a.active=0,a.index=0,a}return y(n,[{key:"_next",value:function(e){if(this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}]),n}(r.b);function It(e){var t="function"==typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e0&&void 0!==arguments[0]?arguments[0]:-1;return function(t){return 0===e?Object(Xt.b)():t.lift(new Jt(e<0?-1:e-1,t))}}var Jt=function(){function e(t,n){g(this,e),this.count=t,this.source=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new en(e,this.count,this.source))}}]),e}(),en=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).count=r,o.source=i,o}return y(n,[{key:"complete",value:function(){if(!this.isStopped){var e=this.source,t=this.count;if(0===t)return s(v(n.prototype),"complete",this).call(this);t>-1&&(this.count=t-1),e.subscribe(this._unsubscribeAndRecycle())}}}]),n}(w.a);function tn(e){return function(t){return t.lift(new nn(e))}}var nn=function(){function e(t){g(this,e),this.notifier=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new rn(e,this.notifier,t))}}]),e}(),rn=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).notifier=r,o.source=i,o.sourceIsBeingSubscribedTo=!0,o}return y(n,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return s(v(n.prototype),"complete",this).call(this)}},{key:"complete",value:function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return s(v(n.prototype),"complete",this).call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}},{key:"_unsubscribe",value:function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._unsubscribe;return this._unsubscribe=null,s(v(n.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=e,this}},{key:"subscribeToRetries",value:function(){var e;this.notifications=new Bt.a;try{e=(0,this.notifier)(this.notifications)}catch(t){return s(v(n.prototype),"complete",this).call(this)}this.retries=e,this.retriesSubscription=Object(r.c)(e,new r.a(this))}}]),n}(r.b);function on(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(t){return t.lift(new an(e,t))}}var an=function(){function e(t,n){g(this,e),this.count=t,this.source=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new un(e,this.count,this.source))}}]),e}(),un=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).count=r,o.source=i,o}return y(n,[{key:"error",value:function(e){if(!this.isStopped){var t=this.source,r=this.count;if(0===r)return s(v(n.prototype),"error",this).call(this,e);r>-1&&(this.count=r-1),t.subscribe(this._unsubscribeAndRecycle())}}}]),n}(w.a);function sn(e){return function(t){return t.lift(new ln(e,t))}}var ln=function(){function e(t,n){g(this,e),this.notifier=t,this.source=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new cn(e,this.notifier,this.source))}}]),e}(),cn=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).notifier=r,o.source=i,o}return y(n,[{key:"error",value:function(e){if(!this.isStopped){var t=this.errors,i=this.retries,o=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{t=new Bt.a;try{i=(0,this.notifier)(t)}catch(a){return s(v(n.prototype),"error",this).call(this,a)}o=Object(r.c)(i,new r.a(this))}this._unsubscribeAndRecycle(),this.errors=t,this.retries=i,this.retriesSubscription=o,t.next(e)}}},{key:"_unsubscribe",value:function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var e=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)}}]),n}(r.b),dn=n("x+ZX");function fn(e){return function(t){return t.lift(new hn(e))}}var hn=function(){function e(t){g(this,e),this.notifier=t}return y(e,[{key:"call",value:function(e,t){var n=new pn(e),i=t.subscribe(n);return i.add(Object(r.c)(this.notifier,new r.a(n))),i}}]),e}(),pn=function(e){l(n,e);var t=d(n);function n(){var e;return g(this,n),(e=t.apply(this,arguments)).hasValue=!1,e}return y(n,[{key:"_next",value:function(e){this.value=e,this.hasValue=!0}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}]),n}(r.b);function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.a;return function(n){return n.lift(new gn(e,t))}}var gn=function(){function e(t,n){g(this,e),this.period=t,this.scheduler=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new mn(e,this.period,this.scheduler))}}]),e}(),mn=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).period=r,o.scheduler=i,o.hasValue=!1,o.add(i.schedule(yn,r,{subscriber:h(o),period:r})),o}return y(n,[{key:"_next",value:function(e){this.lastValue=e,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}]),n}(w.a);function yn(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}var bn=n("Kqap");function _n(e,t){return function(n){return n.lift(new wn(e,t))}}var wn=function(){function e(t,n){g(this,e),this.compareTo=t,this.comparator=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new kn(e,this.compareTo,this.comparator))}}]),e}(),kn=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).compareTo=r,o.comparator=i,o._a=[],o._b=[],o._oneComplete=!1,o.destination.add(r.subscribe(new Cn(e,h(o)))),o}return y(n,[{key:"_next",value:function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())}},{key:"_complete",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}},{key:"checkValues",value:function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var r=e.shift(),i=t.shift(),o=!1;try{o=n?n(r,i):r===i}catch(a){this.destination.error(a)}o||this.emit(!1)}}},{key:"emit",value:function(e){var t=this.destination;t.next(e),t.complete()}},{key:"nextB",value:function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}]),n}(w.a),Cn=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).parent=r,i}return y(n,[{key:"_next",value:function(e){this.parent.nextB(e)}},{key:"_error",value:function(e){this.parent.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.completeB(),this.unsubscribe()}}]),n}(w.a),xn=n("w1tV");function $n(e,t,n){var r;return r=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,r=e.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=e.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,u=e.refCount,s=e.scheduler,l=0,c=!1,d=!1;return function(e){var r;l++,!t||c?(c=!1,t=new Gt.a(i,a,s),r=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){c=!0,t.error(e)},complete:function(){d=!0,n=void 0,t.complete()}})):r=t.subscribe(this),this.add(function(){l--,r.unsubscribe(),n&&!d&&u&&0===l&&(n.unsubscribe(),n=void 0,t=void 0)})}}(r))}}var Sn=n("sVev");function En(e){return function(t){return t.lift(new On(e,t))}}var On=function(){function e(t,n){g(this,e),this.predicate=t,this.source=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new In(e,this.predicate,this.source))}}]),e}(),In=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).predicate=r,o.source=i,o.seenValue=!1,o.index=0,o}return y(n,[{key:"applySingleValue",value:function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)}},{key:"_next",value:function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)}},{key:"tryNext",value:function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(n){this.destination.error(n)}}},{key:"_complete",value:function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new Sn.a)}}]),n}(w.a);function Tn(e){return function(t){return t.lift(new jn(e))}}var jn=function(){function e(t){g(this,e),this.total=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new An(e,this.total))}}]),e}(),An=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).total=r,i.count=0,i}return y(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(w.a);function Vn(e){return function(t){return t.lift(new Pn(e))}}var Pn=function(){function e(t){if(g(this,e),this._skipCount=t,this._skipCount<0)throw new Ve.a}return y(e,[{key:"call",value:function(e,t){return t.subscribe(0===this._skipCount?new w.a(e):new Mn(e,this._skipCount))}}]),e}(),Mn=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e))._skipCount=r,i._count=0,i._ring=new Array(r),i}return y(n,[{key:"_next",value:function(e){var t=this._skipCount,n=this._count++;if(n1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Un.a;return g(this,n),(r=t.call(this)).source=e,r.delayTime=i,r.scheduler=o,(!Object(qn.a)(i)||i<0)&&(r.delayTime=0),o&&"function"==typeof o.schedule||(r.scheduler=Un.a),r}return y(n,[{key:"_subscribe",value:function(e){return this.scheduler.schedule(n.dispatch,this.delayTime,{source:this.source,subscriber:e})}}],[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Un.a;return new n(e,t,r)}},{key:"dispatch",value:function(e){var t=e.source,n=e.subscriber;return this.add(t.subscribe(n))}}]),n}(me.a);function zn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new Gn(e,t))}}var Gn=function(){function e(t,n){g(this,e),this.scheduler=t,this.delay=n}return y(e,[{key:"call",value:function(e,t){return new Wn(t,this.delay,this.scheduler).subscribe(e)}}]),e}(),Kn=n("eIep"),Qn=n("SpAZ");function Zn(){return Object(Kn.a)(Qn.a)}function Xn(e,t){return t?Object(Kn.a)(function(){return e},t):Object(Kn.a)(function(){return e})}var Yn=n("BFxc");function Jn(e){return function(t){return t.lift(new er(e))}}var er=function(){function e(t){g(this,e),this.notifier=t}return y(e,[{key:"call",value:function(e,t){var n=new tr(e),i=Object(r.c)(this.notifier,new r.a(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),tr=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this,e)).seenValue=!1,r}return y(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(r.b);function nr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new rr(e,t))}}var rr=function(){function e(t,n){g(this,e),this.predicate=t,this.inclusive=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new ir(e,this.predicate,this.inclusive))}}]),e}(),ir=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).predicate=r,o.inclusive=i,o.index=0,o}return y(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(r){return void n.error(r)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(w.a),or=n("vkgz"),ar={leading:!0,trailing:!1};function ur(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ar;return function(n){return n.lift(new sr(e,!!t.leading,!!t.trailing))}}var sr=function(){function e(t,n,r){g(this,e),this.durationSelector=t,this.leading=n,this.trailing=r}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new lr(e,this.durationSelector,this.leading,this.trailing))}}]),e}(),lr=function(e){l(n,e);var t=d(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e)).destination=e,a.durationSelector=r,a._leading=i,a._trailing=o,a._hasValue=!1,a}return y(n,[{key:"_next",value:function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))}},{key:"send",value:function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=void 0}},{key:"throttle",value:function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=Object(r.c)(t,new r.a(this)))}},{key:"tryDurationSelector",value:function(e){try{return this.durationSelector(e)}catch(t){return this.destination.error(t),null}}},{key:"throttlingDone",value:function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=void 0,t&&this.send()}},{key:"notifyNext",value:function(){this.throttlingDone()}},{key:"notifyComplete",value:function(){this.throttlingDone()}}]),n}(r.b);function cr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ar;return function(r){return r.lift(new dr(e,t,n.leading,n.trailing))}}var dr=function(){function e(t,n,r,i){g(this,e),this.duration=t,this.scheduler=n,this.leading=r,this.trailing=i}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new fr(e,this.duration,this.scheduler,this.leading,this.trailing))}}]),e}(),fr=function(e){l(n,e);var t=d(n);function n(e,r,i,o,a){var u;return g(this,n),(u=t.call(this,e)).duration=r,u.scheduler=i,u.leading=o,u.trailing=a,u._hasTrailingValue=!1,u._trailingValue=null,u}return y(n,[{key:"_next",value:function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(hr,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}},{key:"_complete",value:function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}},{key:"clearThrottle",value:function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}]),n}(w.a);function hr(e){e.subscriber.clearThrottle()}var pr=n("NXyV");function vr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.a;return function(t){return Object(pr.a)(function(){return t.pipe(Object(bn.a)(function(t,n){var r=t.current;return{value:n,current:e.now(),last:r}},{current:e.now(),value:void 0,last:void 0}),Object(ze.a)(function(e){var t=e.current,n=e.last,r=e.value;return new gr(r,t-n)}))})}}var gr=function e(t,n){g(this,e),this.value=t,this.interval=n},mr=n("Y6u4");function yr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.a;return function(r){var i=de(e),o=i?+e-n.now():Math.abs(e);return r.lift(new br(o,i,t,n))}}var br=function(){function e(t,n,r,i){g(this,e),this.waitFor=t,this.absoluteTimeout=n,this.withObservable=r,this.scheduler=i}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new _r(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),e}(),_r=function(e){l(n,e);var t=d(n);function n(e,r,i,o,a){var u;return g(this,n),(u=t.call(this,e)).absoluteTimeout=r,u.waitFor=i,u.withObservable=o,u.scheduler=a,u.scheduleTimeout(),u}return y(n,[{key:"scheduleTimeout",value:function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(n.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(e){this.absoluteTimeout||this.scheduleTimeout(),s(v(n.prototype),"_next",this).call(this,e)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(Object(r.c)(t,new r.a(e)))}}]),n}(r.b),wr=n("z6cu");function kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.a;return yr(e,Object(wr.a)(new mr.a),t)}function Cr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.a;return Object(ze.a)(function(t){return new xr(t,e.now())})}var xr=function e(t,n){g(this,e),this.value=t,this.timestamp=n},$r=n("IAdc");function Sr(e){return function(t){return t.lift(new Er(e))}}var Er=function(){function e(t){g(this,e),this.windowBoundaries=t}return y(e,[{key:"call",value:function(e,t){var n=new Or(e),i=t.subscribe(n);return i.closed||n.add(Object(r.c)(this.windowBoundaries,new r.a(n))),i}}]),e}(),Or=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this,e)).window=new Bt.a,e.next(r.window),r}return y(n,[{key:"notifyNext",value:function(){this.openWindow()}},{key:"notifyError",value:function(e){this._error(e)}},{key:"notifyComplete",value:function(){this._complete()}},{key:"_next",value:function(e){this.window.next(e)}},{key:"_error",value:function(e){this.window.error(e),this.destination.error(e)}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete()}},{key:"_unsubscribe",value:function(){this.window=null}},{key:"openWindow",value:function(){var e=this.window;e&&e.complete();var t=this.destination,n=this.window=new Bt.a;t.next(n)}}]),n}(r.b);function Ir(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new Tr(e,t))}}var Tr=function(){function e(t,n){g(this,e),this.windowSize=t,this.startWindowEvery=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new jr(e,this.windowSize,this.startWindowEvery))}}]),e}(),jr=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).destination=e,o.windowSize=r,o.startWindowEvery=i,o.windows=[new Bt.a],o.count=0,e.next(o.windows[0]),o}return y(n,[{key:"_next",value:function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,a=0;a=0&&u%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){var s=new Bt.a;i.push(s),n.next(s)}}},{key:"_error",value:function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)}},{key:"_complete",value:function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()}},{key:"_unsubscribe",value:function(){this.count=0,this.windows=null}}]),n}(w.a);function Ar(e){var t=c.a,n=null,r=Number.POSITIVE_INFINITY;return Object(S.a)(arguments[3])&&(t=arguments[3]),Object(S.a)(arguments[2])?t=arguments[2]:Object(qn.a)(arguments[2])&&(r=Number(arguments[2])),Object(S.a)(arguments[1])?t=arguments[1]:Object(qn.a)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new Vr(e,n,r,t))}}var Vr=function(){function e(t,n,r,i){g(this,e),this.windowTimeSpan=t,this.windowCreationInterval=n,this.maxWindowSize=r,this.scheduler=i}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new Mr(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),e}(),Pr=function(e){l(n,e);var t=d(n);function n(){var e;return g(this,n),(e=t.apply(this,arguments))._numberOfNextedValues=0,e}return y(n,[{key:"next",value:function(e){this._numberOfNextedValues++,s(v(n.prototype),"next",this).call(this,e)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),n}(Bt.a),Mr=function(e){l(n,e);var t=d(n);function n(e,r,i,o,a){var u;g(this,n),(u=t.call(this,e)).destination=e,u.windowTimeSpan=r,u.windowCreationInterval=i,u.maxWindowSize=o,u.scheduler=a,u.windows=[];var s=u.openWindow();if(null!==i&&i>=0){var l={windowTimeSpan:r,windowCreationInterval:i,subscriber:h(u),scheduler:a};u.add(a.schedule(Rr,r,{subscriber:h(u),window:s,context:null})),u.add(a.schedule(Dr,i,l))}else u.add(a.schedule(Nr,r,{subscriber:h(u),window:s,windowTimeSpan:r}));return u}return y(n,[{key:"_next",value:function(e){for(var t=this.windows,n=t.length,r=0;r=this.maxWindowSize&&this.closeWindow(i))}}},{key:"_error",value:function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)}},{key:"_complete",value:function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var e=new Pr;return this.windows.push(e),this.destination.next(e),e}},{key:"closeWindow",value:function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)}}]),n}(w.a);function Nr(e){var t=e.subscriber,n=e.windowTimeSpan,r=e.window;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function Dr(e){var t=e.windowTimeSpan,n=e.subscriber,r=e.scheduler,i=e.windowCreationInterval,o=n.openWindow(),a={action:this,subscription:null};a.subscription=r.schedule(Rr,t,{subscriber:n,window:o,context:a}),this.add(a.subscription),this.schedule(e,i)}function Rr(e){var t=e.subscriber,n=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}function Fr(e,t){return function(n){return n.lift(new Lr(e,t))}}var Lr=function(){function e(t,n){g(this,e),this.openings=t,this.closingSelector=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new Br(e,this.openings,this.closingSelector))}}]),e}(),Br=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).openings=r,o.closingSelector=i,o.contexts=[],o.add(o.openSubscription=Object(M.a)(h(o),r,r)),o}return y(n,[{key:"_next",value:function(e){var t=this.contexts;if(t)for(var n=t.length,r=0;r0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.remove(e),e.unsubscribe());var t=this.window;t&&t.complete();var n,r=this.window=new Bt.a;this.destination.next(r);try{var i=this.closingSelector;n=i()}catch(o){return this.destination.error(o),void this.window.error(o)}this.add(this.closingNotification=Object(M.a)(this,n))}}]),n}(N.a);function Wr(){for(var e=arguments.length,t=new Array(e),n=0;n0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(e){if(0===this.toRespond.length){var t=[e].concat(o(this.values));this.project?this._tryProject(t):this.destination.next(t)}}},{key:"_tryProject",value:function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(N.a),Kr=n("1uah");function Qr(){for(var e=arguments.length,t=new Array(e),n=0;nc;)for(var h,p=s(arguments[c++]),v=d?i(p).concat(d(p)):i(p),g=v.length,m=0;g>m;)h=v[m++],r&&!f.call(p,h)||(n[h]=p[h]);return n}:l},l7GE:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(n("7o/Q").a)},lJxs:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){function e(t,n){g(this,e),this.project=t,this.thisArg=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))}}]),e}(),a=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).project=r,o.count=0,o.thisArg=i||h(o),o}return y(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(r.a)},ldVq:function(e,t,n){var r=n("QMMT"),i=n("UWiX")("iterator"),o=n("SBuE");e.exports=n("WEpk").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},mCNh:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n("SpAZ");function i(){for(var e=arguments.length,t=new Array(e),n=0;ndocument.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s.prototype[o[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[a]=e):n=s(),void 0===t?n:i(n,t)}},ofXK:function(e,n,r){"use strict";r.d(n,"a",function(){return E}),r.d(n,"b",function(){return J}),r.d(n,"c",function(){return h}),r.d(n,"d",function(){return Y}),r.d(n,"e",function(){return I}),r.d(n,"f",function(){return X}),r.d(n,"g",function(){return m}),r.d(n,"h",function(){return T}),r.d(n,"i",function(){return $}),r.d(n,"j",function(){return U}),r.d(n,"k",function(){return W}),r.d(n,"l",function(){return G}),r.d(n,"m",function(){return Z}),r.d(n,"n",function(){return O}),r.d(n,"o",function(){return p}),r.d(n,"p",function(){return te}),r.d(n,"q",function(){return c}),r.d(n,"r",function(){return ee}),r.d(n,"s",function(){return u}),r.d(n,"t",function(){return H}),r.d(n,"u",function(){return s});var o=r("fXoL"),a=null;function u(){return a}function s(e){a||(a=e)}var c=function e(){g(this,e)},h=new o.InjectionToken("DocumentToken"),p=function(){var e=function e(){g(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(o["\u0275\u0275defineInjectable"])({factory:v,token:e,providedIn:"platform"}),e}();function v(){return Object(o["\u0275\u0275inject"])(b)}var m=new o.InjectionToken("Location Initialized"),b=function(){var e=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this))._doc=e,r._init(),r}return y(n,[{key:"_init",value:function(){this.location=u().getLocation(),this._history=u().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return u().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){u().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){u().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){_()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){_()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(p);return e.\u0275fac=function(t){return new(t||e)(o["\u0275\u0275inject"](h))},e.\u0275prov=Object(o["\u0275\u0275defineInjectable"])({factory:w,token:e,providedIn:"platform"}),e}();function _(){return!!window.history.pushState}function w(){return new b(Object(o["\u0275\u0275inject"])(h))}function k(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function C(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function x(e){return e&&"?"!==e[0]?"?"+e:e}var $=function(){var e=function e(){g(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(o["\u0275\u0275defineInjectable"])({factory:S,token:e,providedIn:"root"}),e}();function S(e){var t=Object(o["\u0275\u0275inject"])(h).location;return new O(Object(o["\u0275\u0275inject"])(p),t&&t.origin||"")}var E=new o.InjectionToken("appBaseHref"),O=function(){var e=function(e){l(n,e);var t=d(n);function n(e,r){var i;if(g(this,n),(i=t.call(this))._platformLocation=e,null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=r,f(i)}return y(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return k(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+x(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+x(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+x(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}($);return e.\u0275fac=function(t){return new(t||e)(o["\u0275\u0275inject"](p),o["\u0275\u0275inject"](E,8))},e.\u0275prov=o["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e}(),I=function(){var e=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this))._platformLocation=e,i._baseHref="",null!=r&&(i._baseHref=r),i}return y(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=k(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+x(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+x(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}($);return e.\u0275fac=function(t){return new(t||e)(o["\u0275\u0275inject"](p),o["\u0275\u0275inject"](E,8))},e.\u0275prov=o["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e}(),T=function(){var e=function(){function e(t,n){var r=this;g(this,e),this._subject=new o.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=C(A(i)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return y(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+x(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,A(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+x(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+x(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o["\u0275\u0275inject"]($),o["\u0275\u0275inject"](p))},e.normalizeQueryParams=x,e.joinWithSlash=k,e.stripTrailingSlash=C,e.\u0275prov=Object(o["\u0275\u0275defineInjectable"])({factory:j,token:e,providedIn:"root"}),e}();function j(){return new T(Object(o["\u0275\u0275inject"])($),Object(o["\u0275\u0275inject"])(p))}function A(e){return e.replace(/\/index.html$/,"")}var V=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),P=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),M=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function N(e,t){var n=Object(o["\u0275findLocaleData"])(e),r=n[o["\u0275LocaleDataIndex"].NumberSymbols][t];if(void 0===r){if(t===M.CurrencyDecimal)return n[o["\u0275LocaleDataIndex"].NumberSymbols][M.Decimal];if(t===M.CurrencyGroup)return n[o["\u0275LocaleDataIndex"].NumberSymbols][M.Group]}return r}var D=o["\u0275getLocalePluralCase"],R=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function F(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}var L=function e(){g(this,e)},B=function(){var e=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this)).locale=e,r}return y(n,[{key:"getPluralCategory",value:function(e,t){switch(D(t||this.locale)(e)){case P.Zero:return"zero";case P.One:return"one";case P.Two:return"two";case P.Few:return"few";case P.Many:return"many";default:return"other"}}}]),n}(L);return e.\u0275fac=function(t){return new(t||e)(o["\u0275\u0275inject"](o.LOCALE_ID))},e.\u0275prov=o["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e}();function H(e,n){n=encodeURIComponent(n);var r,o=i(e.split(";"));try{for(o.s();!(r=o.n()).done;){var a=r.value,u=a.indexOf("="),s=t(-1==u?[a,""]:[a.slice(0,u),a.slice(u+1)],2),l=s[0],c=s[1];if(l.trim()===n)return decodeURIComponent(c)}}catch(d){o.e(d)}finally{o.f()}return null}var U=function(){var e=function(){function e(t,n,r,i){g(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return y(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(o["\u0275stringify"])(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(o["\u0275isListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o["\u0275\u0275directiveInject"](o.IterableDiffers),o["\u0275\u0275directiveInject"](o.KeyValueDiffers),o["\u0275\u0275directiveInject"](o.ElementRef),o["\u0275\u0275directiveInject"](o.Renderer2))},e.\u0275dir=o["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),q=function(){function e(t,n,r,i){g(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return y(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),W=function(){var e=function(){function e(t,n,r){g(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return y(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new q(null,t._ngForOf,-1,-1),null===i?void 0:i),a=new z(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var u=t._viewContainer.get(r);t._viewContainer.move(u,i);var s=new z(e,u);n.push(s)}});for(var r=0;r6&&void 0!==arguments[6]&&arguments[6],u="",s=!1;if(isFinite(e)){var l=function(e){var t,n,r,i,o,a=Math.abs(e)+"",u=0;for((n=a.indexOf("."))>-1&&(a=a.replace(".","")),(r=a.search(/e/i))>0?(n<0&&(n=r),n+=+a.slice(r+1),a=a.substring(0,r)):n<0&&(n=a.length),r=0;"0"===a.charAt(r);r++);if(r===(o=a.length))t=[0],n=1;else{for(o--;"0"===a.charAt(o);)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=Number(a.charAt(r))}return n>22&&(t=t.splice(0,21),u=n-1,n=1),{digits:t,exponent:u,integerLen:n}}(e);a&&(l=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(l));var c=t.minInt,d=t.minFrac,f=t.maxFrac;if(o){var h=o.match(R);if(null===h)throw new Error(o+" is not a valid digit info");var p=h[1],v=h[3],g=h[5];null!=p&&(c=F(p)),null!=v&&(d=F(v)),null!=g?f=F(g):null!=v&&d>f&&(f=d)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction (".concat(t,") is higher than the maximum (").concat(n,")."));var r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(t,i),n),a=o+e.integerLen,u=r[a];if(a>0){r.splice(Math.max(e.integerLen,a));for(var s=a;s=5)if(a-1<0){for(var c=0;c>a;c--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[a-1]++;for(;i=f?r.pop():d=!1),t>=10?1:0},0);h&&(r.unshift(h),e.integerLen++)}(l,d,f);var m=l.digits,y=l.integerLen,b=l.exponent,_=[];for(s=m.every(function(e){return!e});y0?_=m.splice(y,m.length):(_=m,m=[0]);var w=[];for(m.length>=t.lgSize&&w.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)w.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&w.unshift(m.join("")),u=w.join(N(n,r)),_.length&&(u+=N(n,i)+_.join("")),b&&(u+=N(n,M.Exponential)+"+"+b)}else u=N(n,M.Infinity);return u=e<0&&!s?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}(e,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),i=r[0],o=r[1],a=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],u=a[0],s=a[1]||"";n.posPre=u.substr(0,u.indexOf("#"));for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new a(e,t))}}var a=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;g(this,e),this.scheduler=t,this.delay=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.scheduler,this.delay))}}]),e}(),u=function(e){l(n,e);var t=d(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return g(this,n),(i=t.call(this,e)).scheduler=r,i.delay=o,i}return y(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new s(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(i.a.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(i.a.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(i.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(r.a),s=function e(t,n){g(this,e),this.notification=t,this.destination=n}},qCKp:function(e,t,n){"use strict";n.r(t),n.d(t,"Observable",function(){return i.a}),n.d(t,"ConnectableObservable",function(){return a.a}),n.d(t,"GroupedObservable",function(){return u.a}),n.d(t,"observable",function(){return c.a}),n.d(t,"Subject",function(){return f.a}),n.d(t,"BehaviorSubject",function(){return h.a}),n.d(t,"ReplaySubject",function(){return p.a}),n.d(t,"AsyncSubject",function(){return m.a}),n.d(t,"asap",function(){return b.a}),n.d(t,"asapScheduler",function(){return b.b}),n.d(t,"async",function(){return _.a}),n.d(t,"asyncScheduler",function(){return _.b}),n.d(t,"queue",function(){return w.a}),n.d(t,"queueScheduler",function(){return w.b}),n.d(t,"animationFrame",function(){return S}),n.d(t,"animationFrameScheduler",function(){return $}),n.d(t,"VirtualTimeScheduler",function(){return E}),n.d(t,"VirtualAction",function(){return O}),n.d(t,"Scheduler",function(){return I.a}),n.d(t,"Subscription",function(){return T.a}),n.d(t,"Subscriber",function(){return j.a}),n.d(t,"Notification",function(){return A.a}),n.d(t,"NotificationKind",function(){return A.b}),n.d(t,"pipe",function(){return V.a}),n.d(t,"noop",function(){return P.a}),n.d(t,"identity",function(){return M.a}),n.d(t,"isObservable",function(){return N}),n.d(t,"ArgumentOutOfRangeError",function(){return D.a}),n.d(t,"EmptyError",function(){return R.a}),n.d(t,"ObjectUnsubscribedError",function(){return F.a}),n.d(t,"UnsubscriptionError",function(){return L.a}),n.d(t,"TimeoutError",function(){return B.a}),n.d(t,"bindCallback",function(){return z}),n.d(t,"bindNodeCallback",function(){return Q}),n.d(t,"combineLatest",function(){return J.b}),n.d(t,"concat",function(){return ee.a}),n.d(t,"defer",function(){return te.a}),n.d(t,"empty",function(){return ne.b}),n.d(t,"forkJoin",function(){return re.a}),n.d(t,"from",function(){return ie.a}),n.d(t,"fromEvent",function(){return ae}),n.d(t,"fromEventPattern",function(){return se}),n.d(t,"generate",function(){return le}),n.d(t,"iif",function(){return de}),n.d(t,"interval",function(){return he}),n.d(t,"merge",function(){return ve.a}),n.d(t,"never",function(){return me}),n.d(t,"of",function(){return ye.a}),n.d(t,"onErrorResumeNext",function(){return be}),n.d(t,"pairs",function(){return _e}),n.d(t,"partition",function(){return $e}),n.d(t,"race",function(){return Se.a}),n.d(t,"range",function(){return Ee}),n.d(t,"throwError",function(){return Ie.a}),n.d(t,"timer",function(){return Te.a}),n.d(t,"using",function(){return je}),n.d(t,"zip",function(){return Ae.b}),n.d(t,"scheduled",function(){return Ve.a}),n.d(t,"EMPTY",function(){return ne.a}),n.d(t,"NEVER",function(){return ge}),n.d(t,"config",function(){return Pe.a});var r,i=n("HDdC"),a=n("EQ5u"),u=n("OQgR"),c=n("kJWO"),f=n("XNiG"),h=n("2Vo4"),p=n("jtHE"),m=n("NHP+"),b=n("7Hc7"),_=n("D0XW"),w=n("qgXg"),k=n("3N8a"),C=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i}return y(n,[{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?s(v(n.prototype),"requestAsyncId",this).call(this,e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return s(v(n.prototype),"recycleAsyncId",this).call(this,e,t,r);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(k.a),x=n("IjjT"),$=new(function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r0&&void 0!==arguments[0]?arguments[0]:O,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return g(this,n),(e=t.call(this,r,function(){return e.frame})).maxFrames=i,e.frame=0,e.index=-1,e}return y(n,[{key:"flush",value:function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n[0])&&t.delay<=r&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}}}]),n}(x.a)).frameTimeFactor=10,r),O=function(e){l(n,e);var t=d(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.index+=1;return g(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i.index=o,i.active=!0,i.index=e.index=o,i}return y(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return s(v(n.prototype),"schedule",this).call(this,e,t);this.active=!1;var r=new n(this.scheduler,this.work);return this.add(r),r.schedule(e,t)}},{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(n.sortActions),!0}},{key:"recycleAsyncId",value:function(e,t){}},{key:"_execute",value:function(e,t){if(!0===this.active)return s(v(n.prototype),"_execute",this).call(this,e,t)}}],[{key:"sortActions",value:function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1}}]),n}(k.a),I=n("Y/cZ"),T=n("quSY"),j=n("7o/Q"),A=n("WMd4"),V=n("mCNh"),P=n("KqfI"),M=n("SpAZ");function N(e){return!!e&&(e instanceof i.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var D=n("4I5i"),R=n("sVev"),F=n("9ppp"),L=n("pjAE"),B=n("Y6u4"),H=n("lJxs"),U=n("8Qeq"),q=n("DH7j"),W=n("z+Ro");function z(e,t,n){if(t){if(!Object(W.a)(t))return function(){return z(e,n).apply(void 0,arguments).pipe(Object(H.a)(function(e){return Object(q.a)(e)?t.apply(void 0,o(e)):t(e)}))};n=t}return function(){for(var t=arguments.length,r=new Array(t),o=0;o1?Array.prototype.slice.call(arguments):e)},r,n)})}function ue(e,t,n,r,i){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,i),o=function(){return a.removeEventListener(t,n,i)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var u=e;e.on(t,n),o=function(){return u.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var s=e;e.addListener(t,n),o=function(){return s.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,c=e.length;l1&&void 0!==arguments[1]?arguments[1]:ne.a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.a;return Object(te.a)(function(){return e()?t:n})}var fe=n("Y7HM");function he(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.a;return(!Object(fe.a)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=_.a),new i.a(function(n){return n.add(t.schedule(pe,e,{subscriber:n,counter:0,period:e})),n})}function pe(e){var t=e.subscriber,n=e.counter,r=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}var ve=n("VRyK"),ge=new i.a(P.a);function me(){return ge}var ye=n("LRne");function be(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return new i.a(function(r){void 0===t&&(t=e,e=0);var i=0,o=e;if(n)return n.schedule(Oe,0,{index:i,count:t,start:e,subscriber:r});for(;;){if(i++>=t){r.complete();break}if(r.next(o++),r.closed)break}})}function Oe(e){var t=e.start,n=e.index,r=e.count,i=e.subscriber;n>=r?i.complete():(i.next(t),i.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}var Ie=n("z6cu"),Te=n("PqYM");function je(e,t){return new i.a(function(n){var r,i;try{r=e()}catch(a){return void n.error(a)}try{i=t(r)}catch(a){return void n.error(a)}var o=(i?Object(ie.a)(i):ne.a).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}})}var Ae=n("1uah"),Ve=n("7HRe"),Pe=n("2fFW")},qLGE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("R4Bc"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.notEqualTo(this.notEqualTo)},e.prototype.validate=function(e){return this.validator(e)},e.propDecorators={notEqualTo:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","notEqualTo","","formControlName",""],["","notEqualTo","","formControl",""],["","notEqualTo","","ngModel",""]],inputs:{notEqualTo:"notEqualTo"},features:[a.\u0275\u0275ProvidersFeature([u])]}),e}();t.NotEqualToValidator=s},qgXg:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return o});var r=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i}return y(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?s(v(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?s(v(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?s(v(n.prototype),"requestAsyncId",this).call(this,e,t,r):e.flush(this)}}]),n}(n("3N8a").a),i=new(function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return n}(n("IjjT").a))(r),o=i},qmJw:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("wCLq")),r(n("OSZS"))},quSY:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("DH7j"),i=n("XoHu"),o=n("n6bG"),a=n("pjAE"),u=function(){var e,t=function(){function e(t){g(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return y(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,u=this._ctorUnsubscribe,l=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var d=0;d0?i(r(e),9007199254740991):0}},uBVG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.gte=function(e){return function(t){return i.isPresent(e)?i.isPresent(r.Validators.required(t))||+t.value>=+e?null:{gte:!0}:null}}},uOPS:function(e,t){e.exports=!0},uY1Z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("hGZq"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.lte(this.lte)},e.prototype.ngOnChanges=function(e){for(var t in e)"lte"===t&&(this.validator=o.lte(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={lte:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","lte","","formControlName",""],["","lte","","formControl",""],["","lte","","ngModel",""]],inputs:{lte:"lte"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.LessThanEqualValidator=s},vkgz:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("7o/Q"),i=n("KqfI"),o=n("n6bG");function a(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(t,n,r){g(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),s=function(e){l(n,e);var t=d(n);function n(e,r,a,u){var s;return g(this,n),(s=t.call(this,e))._tapNext=i.a,s._tapError=i.a,s._tapComplete=i.a,s._tapError=a||i.a,s._tapComplete=u||i.a,Object(o.a)(r)?(s._context=h(s),s._tapNext=r):r&&(s._context=r,s._tapNext=r.next||i.a,s._tapError=r.error||i.a,s._tapComplete=r.complete||i.a),s}return y(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(r.a)},w1tV:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("oB13"),i=n("x+ZX"),o=n("XNiG");function a(){return new o.a}function u(){return function(e){return Object(i.a)()(Object(r.a)(a)(e))}}},"w2d+":function(e,t,n){"use strict";var r=n("hDam"),i=n("UO39"),o=n("SBuE"),a=n("NsO/");e.exports=n("MPFp")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},w6GO:function(e,t,n){var r=n("5vMV"),i=n("FpHa");e.exports=Object.keys||function(e){return r(e,i)}},wCLq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("qmJw"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.gt(this.gt)},e.prototype.ngOnChanges=function(e){for(var t in e)"gt"===t&&(this.validator=o.gt(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={gt:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","gt","","formControlName",""],["","gt","","formControl",""],["","gt","","ngModel",""]],inputs:{gt:"gt"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.GreaterThanValidator=s},wXh8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("r7id"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.rangeLength(this.rangeLength)},e.prototype.ngOnChanges=function(e){for(var t in e)"rangeLength"===t&&(this.validator=o.rangeLength(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={rangeLength:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","rangeLength","","formControlName",""],["","rangeLength","","formControl",""],["","rangeLength","","ngModel",""]],inputs:{rangeLength:"rangeLength"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.RangeLengthValidator=s},wdEZ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("9uV+"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.phone(this.phone)},e.prototype.ngOnChanges=function(e){for(var t in e)"phone"===t&&(this.validator=o.phone(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={phone:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","phone","","formControlName",""],["","phone","","formControl",""],["","phone","","ngModel",""]],inputs:{phone:"phone"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.PhoneValidator=s},"x+ZX":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(){return function(e){return e.lift(new o(e))}}var o=function(){function e(t){g(this,e),this.connectable=t}return y(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new a(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),a=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).connectable=r,i}return y(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(r.a)},x9wY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.lt=function(e){return function(t){return i.isPresent(e)?i.isPresent(r.Validators.required(t))||+t.value<+e?null:{lt:!0}:null}}},xbPD:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new o(e))}}var o=function(){function e(t){g(this,e),this.defaultValue=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.defaultValue))}}]),e}(),a=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}return y(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(r.a)},y9jv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.date=function(e){return i.isPresent(r.Validators.required(e))||i.isDate(e.value)?null:{date:!0}}},yAwA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("8f/L"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.validate=function(e){return o.base64(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","base64","","formControlName",""],["","base64","","formControl",""],["","base64","","ngModel",""]],features:[a.\u0275\u0275ProvidersFeature([u])]}),e}();t.Base64Validator=s},yCtX:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),i=n("ngJS"),o=n("jZKg");function a(e,t){return t?Object(o.a)(e,t):new r.a(Object(i.a)(e))}},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return r})},z6cu:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("HDdC");function i(e,t){return new r.a(t?function(n){return t.schedule(o,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function o(e){var t=e.error;e.subscriber.error(t)}},zUnb:function(n,r,a){"use strict";a.r(r);var u,c,f,p,m=a("fXoL"),b=a("ofXK"),_=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=w||(w=document.querySelector("base"))?w.getAttribute("href"):null;return null==n?null:(t=n,u||(u=document.createElement("a")),u.setAttribute("href",t),"/"===u.pathname.charAt(0)?u.pathname:"/"+u.pathname)}},{key:"resetBaseElement",value:function(){w=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return Object(b.t)(document.cookie,e)}}],[{key:"makeCurrent",value:function(){Object(b.u)(new n)}}]),n}(function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.call(this)}return y(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(b.q)),w=null,k=new m.InjectionToken("TRANSITION_ID"),C=[{provide:m.APP_INITIALIZER,useFactory:function(e,t,n){return function(){n.get(m.ApplicationInitStatus).donePromise.then(function(){var n=Object(b.s)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[k,b.c,m.Injector],multi:!0}],x=function(){function e(){g(this,e)}return y(e,[{key:"addToWindow",value:function(e){m["\u0275global"].getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},m["\u0275global"].getAllAngularTestabilities=function(){return e.getAllTestabilities()},m["\u0275global"].getAllAngularRootElements=function(){return e.getAllRootElements()},m["\u0275global"].frameworkStabilizers||(m["\u0275global"].frameworkStabilizers=[]),m["\u0275global"].frameworkStabilizers.push(function(e){var t=m["\u0275global"].getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Object(b.s)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){Object(m.setTestabilityGetter)(new e)}}]),e}(),$=new m.InjectionToken("EventManagerPlugins"),S=((c=function(){function e(t,n){var r=this;g(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=r}),this._plugins=t.slice().reverse()}return y(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),o+=e+".")}),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&W.hasOwnProperty(t)&&(t=W[t]))}return q[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),U.forEach(function(r){r!=n&&(0,z[r])(e)&&(t+=r+".")}),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded(function(){return t(i)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(E)).\u0275fac=function(e){return new(e||N)(m["\u0275\u0275inject"](b.c))},N.\u0275prov=m["\u0275\u0275defineInjectable"]({token:N,factory:N.\u0275fac}),N),K=[{provide:m.PLATFORM_ID,useValue:b.r},{provide:m.PLATFORM_INITIALIZER,useValue:function(){_.makeCurrent(),x.init()},multi:!0},{provide:b.c,useFactory:function(){return Object(m["\u0275setDocument"])(document),document},deps:[]}],Q=Object(m.createPlatformFactory)(m.platformCore,"browser",K),Z=[[],{provide:m["\u0275INJECTOR_SCOPE"],useValue:"root"},{provide:m.ErrorHandler,useFactory:function(){return new m.ErrorHandler},deps:[]},{provide:$,useClass:H,multi:!0,deps:[b.c,m.NgZone,m.PLATFORM_ID]},{provide:$,useClass:G,multi:!0,deps:[b.c]},[],{provide:R,useClass:R,deps:[S,I,m.APP_ID]},{provide:m.RendererFactory2,useExisting:R},{provide:O,useExisting:I},{provide:I,useClass:I,deps:[b.c]},{provide:m.Testability,useClass:m.Testability,deps:[m.NgZone]},{provide:S,useClass:S,deps:[$,m.NgZone]},[]],X=((D=function(){function e(t){if(g(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return y(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:m.APP_ID,useValue:t.appId},{provide:k,useExisting:m.APP_ID},C]}}}]),e}()).\u0275mod=m["\u0275\u0275defineNgModule"]({type:D}),D.\u0275inj=m["\u0275\u0275defineInjector"]({factory:function(e){return new(e||D)(m["\u0275\u0275inject"](D,12))},providers:Z,imports:[b.b,m.ApplicationModule]}),D);"undefined"!=typeof window&&window;var Y=a("LRne"),J=a("HDdC"),ee=a("bOdf"),te=a("pLZG"),ne=a("lJxs"),re=function e(){g(this,e)},ie=function e(){g(this,e)},oe=function(){function e(t){var n=this;g(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var r=e.slice(0,t),i=r.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var r=t[e],i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(e,i))})}:this.headers=new Map}return y(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,o(n)),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var a=this.headers.get(t);if(!a)return;0===(a=a.filter(function(e){return-1===i.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),ae=function(){function e(){g(this,e)}return y(e,[{key:"encodeKey",value:function(e){return ue(e)}},{key:"encodeValue",value:function(e){return ue(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function ue(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var se=function(){function e(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(g(this,e),this.updates=null,this.cloneFrom=null,this.encoder=r.encoder||new ae,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,n){var r=new Map;return e.length>0&&e.split("&").forEach(function(e){var i=e.indexOf("="),o=t(-1==i?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,i)),n.decodeValue(e.slice(i+1))],2),a=o[0],u=o[1],s=r.get(a)||[];s.push(u),r.set(a,s)}),r}(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(function(e){var t=r.fromObject[e];n.map.set(e,Array.isArray(t)?t:[t])})):this.map=null}return y(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}();function le(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function ce(e){return"undefined"!=typeof Blob&&e instanceof Blob}function de(e){return"undefined"!=typeof FormData&&e instanceof FormData}var fe=function(){function e(t,n,r,i){var o;if(g(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new oe),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var u=n.indexOf("?");this.urlWithParams=n+(-1===u?"?":u0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,u=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,s=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(s=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},s)),t.setParams&&(l=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},l)),new e(n,r,o,{params:l,headers:s,reportProgress:u,responseType:i,withCredentials:a})}}]),e}(),he=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),pe=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";g(this,e),this.headers=t.headers||new oe,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},ve=function(e){l(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return g(this,n),(e=t.call(this,r)).type=he.ResponseHeader,e}return y(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(pe),ge=function(e){l(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return g(this,n),(e=t.call(this,r)).type=he.Response,e.body=void 0!==r.body?r.body:null,e}return y(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(pe),me=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),r.error=e.error||null,r}return n}(pe);function ye(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var be,_e,we,ke,Ce,xe,$e,Se,Ee,Oe=((be=function(){function e(t){g(this,e),this.handler=t}return y(e,[{key:"request",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof fe)n=e;else{var o=void 0;o=i.headers instanceof oe?i.headers:new oe(i.headers);var a=void 0;i.params&&(a=i.params instanceof se?i.params:new se({fromObject:i.params})),n=new fe(e,t,void 0!==i.body?i.body:null,{headers:o,params:a,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}var u=Object(Y.a)(n).pipe(Object(ee.a)(function(e){return r.handler.handle(e)}));if(e instanceof fe||"events"===i.observe)return u;var s=u.pipe(Object(te.a)(function(e){return e instanceof ge}));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return s.pipe(Object(ne.a)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return s.pipe(Object(ne.a)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return s.pipe(Object(ne.a)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return s.pipe(Object(ne.a)(function(e){return e.body}))}case"response":return s;default:throw new Error("Unreachable: unhandled observe type ".concat(i.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new se).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,ye(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,ye(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,ye(n,t))}}]),e}()).\u0275fac=function(e){return new(e||be)(m["\u0275\u0275inject"](re))},be.\u0275prov=m["\u0275\u0275defineInjectable"]({token:be,factory:be.\u0275fac}),be),Ie=function(){function e(t,n){g(this,e),this.next=t,this.interceptor=n}return y(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Te=new m.InjectionToken("HTTP_INTERCEPTORS"),je=((_e=function(){function e(){g(this,e)}return y(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||_e)},_e.\u0275prov=m["\u0275\u0275defineInjectable"]({token:_e,factory:_e.\u0275fac}),_e),Ae=/^\)\]\}',?\n/,Ve=function e(){g(this,e)},Pe=((ke=function(){function e(){g(this,e)}return y(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||ke)},ke.\u0275prov=m["\u0275\u0275defineInjectable"]({token:ke,factory:ke.\u0275fac}),ke),Me=((we=function(){function e(t){g(this,e),this.xhrFactory=t}return y(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new J.a(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=e.serializeBody(),u=null,s=function(){if(null!==u)return u;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new oe(r.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return u=new ve({headers:i,status:t,statusText:n,url:o})},l=function(){var t=s(),i=t.headers,o=t.status,a=t.statusText,u=t.url,l=null;204!==o&&(l=void 0===r.response?r.responseText:r.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof l){var d=l;l=l.replace(Ae,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=d,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new ge({body:l,headers:i,status:o,statusText:a,url:u||void 0})),n.complete()):n.error(new me({error:l,headers:i,status:o,statusText:a,url:u||void 0}))},c=function(e){var t=s().url,i=new me({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});n.error(i)},d=!1,f=function(t){d||(n.next(s()),d=!0);var i={type:he.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},h=function(e){var t={type:he.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",l),r.addEventListener("error",c),e.reportProgress&&(r.addEventListener("progress",f),null!==a&&r.upload&&r.upload.addEventListener("progress",h)),r.send(a),n.next({type:he.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",l),e.reportProgress&&(r.removeEventListener("progress",f),null!==a&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}]),e}()).\u0275fac=function(e){return new(e||we)(m["\u0275\u0275inject"](Ve))},we.\u0275prov=m["\u0275\u0275defineInjectable"]({token:we,factory:we.\u0275fac}),we),Ne=new m.InjectionToken("XSRF_COOKIE_NAME"),De=new m.InjectionToken("XSRF_HEADER_NAME"),Re=function e(){g(this,e)},Fe=((Ee=function(){function e(t,n,r){g(this,e),this.doc=t,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return y(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(b.t)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||Ee)(m["\u0275\u0275inject"](b.c),m["\u0275\u0275inject"](m.PLATFORM_ID),m["\u0275\u0275inject"](Ne))},Ee.\u0275prov=m["\u0275\u0275defineInjectable"]({token:Ee,factory:Ee.\u0275fac}),Ee),Le=((Se=function(){function e(t,n){g(this,e),this.tokenService=t,this.headerName=n}return y(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Se)(m["\u0275\u0275inject"](Re),m["\u0275\u0275inject"](De))},Se.\u0275prov=m["\u0275\u0275defineInjectable"]({token:Se,factory:Se.\u0275fac}),Se),Be=(($e=function(){function e(t,n){g(this,e),this.backend=t,this.injector=n,this.chain=null}return y(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Te,[]);this.chain=t.reduceRight(function(e,t){return new Ie(e,t)},this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||$e)(m["\u0275\u0275inject"](ie),m["\u0275\u0275inject"](m.Injector))},$e.\u0275prov=m["\u0275\u0275defineInjectable"]({token:$e,factory:$e.\u0275fac}),$e),He=((xe=function(){function e(){g(this,e)}return y(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Le,useClass:je}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:Ne,useValue:t.cookieName}:[],t.headerName?{provide:De,useValue:t.headerName}:[]]}}}]),e}()).\u0275mod=m["\u0275\u0275defineNgModule"]({type:xe}),xe.\u0275inj=m["\u0275\u0275defineInjector"]({factory:function(e){return new(e||xe)},providers:[Le,{provide:Te,useExisting:Le,multi:!0},{provide:Re,useClass:Fe},{provide:Ne,useValue:"XSRF-TOKEN"},{provide:De,useValue:"X-XSRF-TOKEN"}]}),xe),Ue=((Ce=function e(){g(this,e)}).\u0275mod=m["\u0275\u0275defineNgModule"]({type:Ce}),Ce.\u0275inj=m["\u0275\u0275defineInjector"]({factory:function(e){return new(e||Ce)},providers:[Oe,{provide:re,useClass:Be},Me,{provide:ie,useExisting:Me},Pe,{provide:Ve,useExisting:Pe}],imports:[[He.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Ce),qe=a("3Pt+"),We=a("Cfvw"),ze=a("2Vo4"),Ge=a("itXk"),Ke=a("sVev"),Qe=a("NXyV"),Ze=a("EY2u"),Xe=a("XNiG"),Ye=a("0EUg"),Je=a("NJ9Y"),et=a("eIep"),tt=a("IzEk"),nt=a("JX91"),rt=a("Kqap"),it=a("JIr8"),ot=a("SxV6"),at=a("7wxJ"),ut=a("5+tZ"),st=a("vkgz"),lt=a("BFxc"),ct=a("nYR2"),dt=a("bHdf"),ft=function e(t,n){g(this,e),this.id=t,this.url=n},ht=function(e){l(n,e);var t=d(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return g(this,n),(i=t.call(this,e,r)).navigationTrigger=o,i.restoredState=a,i}return y(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(ft),pt=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o}return y(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(ft),vt=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e,r)).reason=i,o}return y(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(ft),gt=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e,r)).error=i,o}return y(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(ft),mt=function(e){l(n,e);var t=d(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(ft),yt=function(e){l(n,e);var t=d(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(ft),bt=function(e){l(n,e);var t=d(n);function n(e,r,i,o,a){var u;return g(this,n),(u=t.call(this,e,r)).urlAfterRedirects=i,u.state=o,u.shouldActivate=a,u}return y(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(ft),_t=function(e){l(n,e);var t=d(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(ft),wt=function(e){l(n,e);var t=d(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(ft),kt=function(){function e(t){g(this,e),this.route=t}return y(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),Ct=function(){function e(t){g(this,e),this.route=t}return y(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),xt=function(){function e(t){g(this,e),this.snapshot=t}return y(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),$t=function(){function e(t){g(this,e),this.snapshot=t}return y(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),St=function(){function e(t){g(this,e),this.snapshot=t}return y(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Et=function(){function e(t){g(this,e),this.snapshot=t}return y(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Ot=function(){function e(t,n,r){g(this,e),this.routerEvent=t,this.position=n,this.anchor=r}return y(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),It=function(){function e(t){g(this,e),this.params=t||{}}return y(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function Tt(e){return new It(e)}function jt(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function At(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function Dt(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Rt(e){return Object(m["\u0275isObservable"])(e)?e:Object(m["\u0275isPromise"])(e)?Object(We.a)(Promise.resolve(e)):Object(Y.a)(e)}function Ft(e,t,n){return n?function(e,t){return Vt(e,t)}(e.queryParams,t.queryParams)&&Lt(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return Pt(e[n],t[n])})}(e.queryParams,t.queryParams)&&Bt(e.root,t.root)}function Lt(e,t){if(!zt(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!Lt(e.children[n],t.children[n]))return!1}return!0}function Bt(e,t){return Ht(e,t,t.segments)}function Ht(e,t,n){if(e.segments.length>n.length)return!!zt(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!zt(e.segments,n))return!1;for(var r in t.children){if(!e.children[r])return!1;if(!Bt(e.children[r],t.children[r]))return!1}return!0}var i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!zt(e.segments,i)&&!!e.children.primary&&Ht(e.children.primary,t,o)}var Ut=function(){function e(t,n,r){g(this,e),this.root=t,this.queryParams=n,this.fragment=r}return y(e,[{key:"toString",value:function(){return Zt.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Tt(this.queryParams)),this._queryParamMap}}]),e}(),qt=function(){function e(t,n){var r=this;g(this,e),this.segments=t,this.children=n,this.parent=null,Dt(n,function(e,t){return e.parent=r})}return y(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Xt(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),Wt=function(){function e(t,n){g(this,e),this.path=t,this.parameters=n}return y(e,[{key:"toString",value:function(){return on(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Tt(this.parameters)),this._parameterMap}}]),e}();function zt(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function Gt(e,t){var n=[];return Dt(e.children,function(e,r){"primary"===r&&(n=n.concat(t(e,r)))}),Dt(e.children,function(e,r){"primary"!==r&&(n=n.concat(t(e,r)))}),n}var Kt=function e(){g(this,e)},Qt=function(){function e(){g(this,e)}return y(e,[{key:"parse",value:function(e){var t=new cn(e);return new Ut(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/"+Yt(e.root,!0)).concat((t=e.queryParams,n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(en(e),"=").concat(en(t))}).join("&"):"".concat(en(e),"=").concat(en(n))}),n.length?"?"+n.join("&"):"")).concat("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"");var t,n}}]),e}(),Zt=new Qt;function Xt(e){return e.segments.map(function(e){return on(e)}).join("/")}function Yt(e,t){if(!e.hasChildren())return Xt(e);if(t){var n=e.children.primary?Yt(e.children.primary,!1):"",r=[];return Dt(e.children,function(e,t){"primary"!==t&&r.push("".concat(t,":").concat(Yt(e,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var i=Gt(e,function(t,n){return"primary"===n?[Yt(e.children.primary,!1)]:["".concat(n,":").concat(Yt(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(Xt(e),"/").concat(i[0]):"".concat(Xt(e),"/(").concat(i.join("//"),")")}function Jt(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function en(e){return Jt(e).replace(/%3B/gi,";")}function tn(e){return Jt(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function nn(e){return decodeURIComponent(e)}function rn(e){return nn(e.replace(/\+/g,"%20"))}function on(e){return"".concat(tn(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(tn(e),"=").concat(tn(t[e]))}).join("")));var t}var an=/^[^\/()?;=#]+/;function un(e){var t=e.match(an);return t?t[0]:""}var sn=/^[^=?&#]+/,ln=/^[^?&#]+/,cn=function(){function e(t){g(this,e),this.url=t,this.remaining=t}return y(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new qt(e,t)),n}},{key:"parseSegment",value:function(){var e=un(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Wt(nn(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=un(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=un(this.remaining);r&&(n=r,this.capture(n))}e[nn(t)]=nn(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(sn);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(ln);return t?t[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=rn(t),o=rn(n);if(e.hasOwnProperty(i)){var a=e[i];Array.isArray(a)||(a=[a],e[i]=a),a.push(o)}else e[i]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=un(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i="primary");var o=this.parseChildren();t[i]=1===Object.keys(o).length?o.primary:new qt([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),dn=function(){function e(t){g(this,e),this._root=t}return y(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=fn(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=fn(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=hn(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return hn(e,this._root).map(function(e){return e.value})}},{key:"root",get:function(){return this._root.value}}]),e}();function fn(e,t){if(e===t.value)return t;var n,r=i(t.children);try{for(r.s();!(n=r.n()).done;){var o=fn(e,n.value);if(o)return o}}catch(a){r.e(a)}finally{r.f()}return null}function hn(e,t){if(e===t.value)return[t];var n,r=i(t.children);try{for(r.s();!(n=r.n()).done;){var o=hn(e,n.value);if(o.length)return o.unshift(t),o}}catch(a){r.e(a)}finally{r.f()}return[]}var pn=function(){function e(t,n){g(this,e),this.value=t,this.children=n}return y(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function vn(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var gn=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).snapshot=r,kn(h(i),e),i}return y(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(dn);function mn(e,t){var n=function(e,t){var n=new _n([],{},{},"",{},"primary",t,null,e.root,-1,{});return new wn("",new pn(n,[]))}(e,t),r=new ze.a([new Wt("",{})]),i=new ze.a({}),o=new ze.a({}),a=new ze.a({}),u=new ze.a(""),s=new yn(r,i,a,u,o,"primary",t,n.root);return s.snapshot=n.root,new gn(new pn(s,[]),n)}var yn=function(){function e(t,n,r,i,o,a,u,s){g(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=u,this._futureSnapshot=s}return y(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(ne.a)(function(e){return Tt(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(ne.a)(function(e){return Tt(e)}))),this._queryParamMap}}]),e}();function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var _n=function(){function e(t,n,r,i,o,a,u,s,l,c,d){g(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=u,this.routeConfig=s,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}return y(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Tt(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Tt(this.queryParams)),this._queryParamMap}}]),e}(),wn=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,r)).url=e,kn(h(i),r),i}return y(n,[{key:"toString",value:function(){return Cn(this._root)}}]),n}(dn);function kn(e,t){t.value._routerState=e,t.children.forEach(function(t){return kn(e,t)})}function Cn(e){var t=e.children.length>0?" { ".concat(e.children.map(Cn).join(", ")," } "):"";return"".concat(e.value).concat(t)}function xn(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Vt(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Vt(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&On(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find(In);if(i&&i!==Nt(r))throw new Error("{outlets:{}} has to be the last command")}return y(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),Vn=function e(t,n,r){g(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r};function Pn(e,t,n){if(e||(e=new qt([],{})),0===e.segments.length&&e.hasChildren())return Mn(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=e.segments[i],u=n[r];if(In(u))break;var s=""+u,l=r0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!Fn(s,l,a))return o;r+=2}else{if(!Fn(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0?new qt([],{primary:e}):e;return new Ut(r,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(ne.a)(function(e){return new qt([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Object(Y.a)({});var o=[],a=[],u={};return Dt(n,function(n,i){var s,l,c=(s=i,l=n,r.expandSegmentGroup(e,t,l,s)).pipe(Object(ne.a)(function(e){return u[i]=e}));"primary"===i?o.push(c):a.push(c)}),Y.a.apply(null,o.concat(a)).pipe(Object(Ye.a)(),Object(Je.a)(),Object(ne.a)(function(){return u}))}(n.children)}},{key:"expandSegment",value:function(e,n,r,i,o,a){var u=this,s=function(e){return e.reduce(function(e,t){var n=Jn(t);return e.has(n)?e.get(n).push(t):e.set(n,[t]),e},new Map)}(r);s.has(o)||s.set(o,[]);var l=Array.from(s.entries()).map(function(r){var s=t(r,2),l=s[0],c=function(t){return Object(We.a)(t).pipe(Object(ee.a)(function(r){return u.expandSegmentAgainstRoute(e,n,t,r,i,o,a).pipe(Object(it.a)(function(e){if(e instanceof er)return Object(Y.a)(null);throw e}))}),Object(ot.a)(function(e){return null!==e}),Object(it.a)(function(e){if(e instanceof Ke.a||"EmptyError"===e.name){if(u.noLeftoversInUrl(n,i,o))return Object(Y.a)(new qt([],{}));throw new er(n)}throw e}))}(s[1]);return l===o?c:c.pipe(Object(ne.a)(function(){return null}),Object(it.a)(function(){return Object(Y.a)(null)}))});return Object(We.a)(l).pipe(Object(at.a)(),Object(ot.a)(),Object(ne.a)(function(e){return e.find(function(e){return null!==e})}))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,i,o,a){return Jn(r)!==o&&""!==r.path?nr(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):nr(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?rr(o):this.lineralizeSegments(n,o).pipe(Object(ut.b)(function(n){var o=new qt(n,{});return i.expandSegment(e,o,t,n,r,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){var a=this,u=ar(t,r,i),s=u.matched,l=u.consumedSegments,c=u.lastChild,d=u.positionalParamSegments;if(!s)return nr(t);var f=this.applyRedirectCommands(l,r.redirectTo,d);return r.redirectTo.startsWith("/")?rr(f):this.lineralizeSegments(r,f).pipe(Object(ut.b)(function(r){return a.expandSegment(e,t,n,r.concat(i.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(ne.a)(function(e){return n._loadedConfig=e,new qt(r,{})})):Object(Y.a)(new qt(r,{}));var a=ar(t,n,r),u=a.matched,s=a.consumedSegments,l=a.lastChild;if(!u)return nr(t);var c=r.slice(l);return this.getChildConfig(e,n,r).pipe(Object(ut.b)(function(e){var n=e.module,r=e.routes,a=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some(function(n){return sr(e,t,n)&&"primary"!==Jn(n)})}(e,n,r)?{segmentGroup:ur(new qt(t,function(e,t){var n={};n.primary=t;var r,o=i(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;""===a.path&&"primary"!==Jn(a)&&(n[Jn(a)]=new qt([],{}))}}catch(u){o.e(u)}finally{o.f()}return n}(r,new qt(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(function(n){return sr(e,t,n)})}(e,n,r)?{segmentGroup:ur(new qt(e.segments,function(e,t,n,r){var o,a={},u=i(n);try{for(u.s();!(o=u.n()).done;){var s=o.value;sr(e,t,s)&&!r[Jn(s)]&&(a[Jn(s)]=new qt([],{}))}}catch(l){u.e(l)}finally{u.f()}return Object.assign(Object.assign({},r),a)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,s,c,r),u=a.segmentGroup,l=a.slicedSegments;return 0===l.length&&u.hasChildren()?o.expandChildren(n,r,u).pipe(Object(ne.a)(function(e){return new qt(s,e)})):0===r.length&&0===l.length?Object(Y.a)(new qt(s,{})):o.expandSegment(n,u,r,l,"primary",!0).pipe(Object(ne.a)(function(e){return new qt(s.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?Object(Y.a)(new Hn(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(Y.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(ut.b)(function(n){return n?r.configLoader.load(e.injector,t).pipe(Object(ne.a)(function(e){return t._loadedConfig=e,e})):function(e){return new J.a(function(t){return t.error(jt("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):Object(Y.a)(new Hn([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var r=this,i=t.canLoad;if(!i||0===i.length)return Object(Y.a)(!0);var o=i.map(function(r){var i,o=e.get(r);if(function(e){return e&&Un(e.canLoad)}(o))i=o.canLoad(t,n);else{if(!Un(o))throw new Error("Invalid CanLoad guard");i=o(t,n)}return Rt(i)});return Object(Y.a)(o).pipe(zn(),Object(st.a)(function(e){if(qn(e)){var t=jt('Redirecting to "'.concat(r.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),Object(ne.a)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(Y.a)(n);if(r.numberOfChildren>1||!r.children.primary)return ir(e.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new Ut(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Dt(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),a={};return Dt(t.children,function(t,o){a[o]=i.createSegmentGroup(e,t,n,r)}),new qt(o,a)}},{key:"createSegments",value:function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var n,r=0,o=i(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.path===e.path)return t.splice(r),a;r++}}catch(u){o.e(u)}finally{o.f()}return e}}]),e}();function ar(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||At)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function ur(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new qt(e.segments.concat(t.segments),t.children)}return e}function sr(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}var lr=function e(t){g(this,e),this.path=t,this.route=this.path[this.path.length-1]},cr=function e(t,n){g(this,e),this.component=t,this.route=n};function dr(e,t,n){var r=e._root;return hr(r,t?t._root:null,n,[r.value])}function fr(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function hr(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=vn(t);return e.children.forEach(function(e){!function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,u=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var s=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!zt(e.url,t.url);case"pathParamsOrQueryParamsChange":return!zt(e.url,t.url)||!Vt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$n(e,t)||!Vt(e.queryParams,t.queryParams);case"paramsChange":default:return!$n(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new lr(r)):(o.data=a.data,o._resolvedData=a._resolvedData),hr(e,t,o.component?u?u.children:null:n,r,i),s&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new cr(u.outlet.component,a))}else a&&pr(t,u,i),i.canActivateChecks.push(new lr(r)),hr(e,null,o.component?u?u.children:null:n,r,i)}(e,o[e.value.outlet],n,r.concat([e.value]),i),delete o[e.value.outlet]}),Dt(o,function(e,t){return pr(e,n.getContext(t),i)}),i}function pr(e,t,n){var r=vn(e),i=e.value;Dt(r,function(e,r){pr(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new cr(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function vr(e,t){return null!==e&&t&&t(new St(e)),Object(Y.a)(!0)}function gr(e,t){return null!==e&&t&&t(new xt(e)),Object(Y.a)(!0)}function mr(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Object(Y.a)(!0);var i=r.map(function(r){return Object(Qe.a)(function(){var i,o=fr(r,t,n);if(function(e){return e&&Un(e.canActivate)}(o))i=Rt(o.canActivate(t,e));else{if(!Un(o))throw new Error("Invalid CanActivate guard");i=Rt(o(t,e))}return i.pipe(Object(ot.a)())})});return Object(Y.a)(i).pipe(zn())}function yr(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return Object(Qe.a)(function(){var i=t.guards.map(function(i){var o,a=fr(i,t.node,n);if(function(e){return e&&Un(e.canActivateChild)}(a))o=Rt(a.canActivateChild(r,e));else{if(!Un(a))throw new Error("Invalid CanActivateChild guard");o=Rt(a(r,e))}return o.pipe(Object(ot.a)())});return Object(Y.a)(i).pipe(zn())})});return Object(Y.a)(i).pipe(zn())}var br=function e(){g(this,e)},_r=function(){function e(t,n,r,i,o,a){g(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return y(e,[{key:"recognize",value:function(){try{var e=Cr(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new _n([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new pn(n,t),i=new wn(this.url,r);return this.inheritParamsAndData(i._root),Object(Y.a)(i)}catch(o){return new J.a(function(e){return e.error(o)})}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=bn(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){var n,r=this,i=Gt(t,function(t,n){return r.processSegmentGroup(e,t,n)});return n={},i.forEach(function(e){var t=n[e.value.outlet];if(t){var r=t.url.map(function(e){return e.toString()}).join("/"),i=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(r,"' and '").concat(i,"'."))}n[e.value.outlet]=e.value}),i.sort(function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)}),i}},{key:"processSegment",value:function(e,t,n,r){var o,a=i(e);try{for(a.s();!(o=a.n()).done;){var u=o.value;try{return this.processSegmentAgainstRoute(u,t,n,r)}catch(s){if(!(s instanceof br))throw s}}}catch(l){a.e(l)}finally{a.f()}if(this.noLeftoversInUrl(t,n,r))return[];throw new br}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,r){if(e.redirectTo)throw new br;if((e.outlet||"primary")!==r)throw new br;var i,o=[],a=[];if("**"===e.path){var u=n.length>0?Nt(n).parameters:{};i=new _n(n,u,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$r(e),r,e.component,e,wr(t),kr(t)+n.length,Sr(e))}else{var s=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new br;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||At)(n,e,t);if(!r)throw new br;var i={};Dt(r.posParams,function(e,t){i[t]=e.path});var o=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(t,e,n);o=s.consumedSegments,a=n.slice(s.lastChild),i=new _n(o,s.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$r(e),r,e.component,e,wr(t),kr(t)+o.length,Sr(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=Cr(t,o,a,l,this.relativeLinkResolution),d=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&d.hasChildren()){var h=this.processChildren(l,d);return[new pn(i,h)]}if(0===l.length&&0===f.length)return[new pn(i,[])];var p=this.processSegment(l,d,f,"primary");return[new pn(i,p)]}}]),e}();function wr(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function kr(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Cr(e,t,n,r,o){if(n.length>0&&function(e,t,n){return n.some(function(n){return xr(e,t,n)&&"primary"!==Jn(n)})}(e,n,r)){var a=new qt(t,function(e,t,n,r){var o={};o.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var a,u=i(n);try{for(u.s();!(a=u.n()).done;){var s=a.value;if(""===s.path&&"primary"!==Jn(s)){var l=new qt([],{});l._sourceSegment=e,l._segmentIndexShift=t.length,o[Jn(s)]=l}}}catch(c){u.e(c)}finally{u.f()}return o}(e,t,r,new qt(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return xr(e,t,n)})}(e,n,r)){var u=new qt(e.segments,function(e,t,n,r,o,a){var u,s={},l=i(r);try{for(l.s();!(u=l.n()).done;){var c=u.value;if(xr(e,n,c)&&!o[Jn(c)]){var d=new qt([],{});d._sourceSegment=e,d._segmentIndexShift="legacy"===a?e.segments.length:t.length,s[Jn(c)]=d}}}catch(f){l.e(f)}finally{l.f()}return Object.assign(Object.assign({},o),s)}(e,t,n,r,e.children,o));return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}var s=new qt(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function xr(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function $r(e){return e.data||{}}function Sr(e){return e.resolve||{}}function Er(e){return function(t){return t.pipe(Object(et.a)(function(t){var n=e(t);return n?Object(We.a)(n).pipe(Object(ne.a)(function(){return t})):Object(We.a)([t])}))}}var Or=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return n}(function(){function e(){g(this,e)}return y(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),Ir=new m.InjectionToken("ROUTES"),Tr=function(){function e(t,n,r,i){g(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return y(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(ne.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new Hn(Mt(i.injector.get(Ir)).map(Yn),i)}))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Object(We.a)(this.loader.load(e)):Rt(e()).pipe(Object(ut.b)(function(e){return e instanceof m.NgModuleFactory?Object(Y.a)(e):Object(We.a)(t.compiler.compileModuleAsync(e))}))}}]),e}(),jr=function e(){g(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new Ar,this.attachRef=null},Ar=function(){function e(){g(this,e),this.contexts=new Map}return y(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new jr,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),Vr=function(){function e(){g(this,e)}return y(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Pr(e){throw e}function Mr(e,t,n){return t.parse("/")}function Nr(e,t){return Object(Y.a)(null)}var Dr,Rr,Fr=((Rr=function(){function e(t,n,r,i,o,a,u,s){var l=this;g(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Xe.a,this.errorHandler=Pr,this.malformedUriErrorHandler=Mr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Nr,afterPreactivation:Nr},this.urlHandlingStrategy=new Vr,this.routeReuseStrategy=new Or,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(m.NgModuleRef),this.console=o.get(m["\u0275Console"]);var c=o.get(m.NgZone);this.isNgZoneEnabled=c instanceof m.NgZone,this.resetConfig(s),this.currentUrlTree=new Ut(new qt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Tr(a,u,function(e){return l.triggerEvent(new kt(e))},function(e){return l.triggerEvent(new Ct(e))}),this.routerState=mn(this.currentUrlTree,this.rootComponentType),this.transitions=new ze.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return y(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Object(te.a)(function(e){return 0!==e.id}),Object(ne.a)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Object(et.a)(function(e){var r,i,o,a=!1,u=!1;return Object(Y.a)(e).pipe(Object(st.a)(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(et.a)(function(e){var r,i,o,a,u=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||u)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(Y.a)(e).pipe(Object(et.a)(function(e){var r=t.transitions.getValue();return n.next(new ht(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?Ze.a:[e]}),Object(et.a)(function(e){return Promise.resolve(e)}),(r=t.ngModule.injector,i=t.configLoader,o=t.urlSerializer,a=t.config,function(e){return e.pipe(Object(et.a)(function(e){return function(e,t,n,r,i){return new or(e,t,n,r,i).apply()}(r,i,o,e.extractedUrl,a).pipe(Object(ne.a)(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))}))}),Object(st.a)(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,r,i,o){return function(r){return r.pipe(Object(ut.b)(function(r){return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new _r(e,t,n,r,i,o).recognize()}(e,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,t.serializeUrl(a)),i,o).pipe(Object(ne.a)(function(e){return Object.assign(Object.assign({},r),{targetSnapshot:e})}));var a}))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Object(st.a)(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),Object(st.a)(function(e){var r=new mt(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(u&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var s=e.id,l=e.extractedUrl,c=e.source,d=e.restoredState,f=e.extras,h=new ht(s,t.serializeUrl(l),c,d);n.next(h);var p=mn(l,t.rootComponentType).snapshot;return Object(Y.a)(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:l,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Ze.a}),Er(function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,u=a.skipLocationChange,s=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!u,replaceUrl:!!s})}),Object(st.a)(function(e){var n=new yt(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(ne.a)(function(e){return Object.assign(Object.assign({},e),{guards:dr(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return function(n){return n.pipe(Object(ut.b)(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,u=o.canDeactivateChecks;return 0===u.length&&0===a.length?Object(Y.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return Object(We.a)(e).pipe(Object(ut.b)(function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(Y.a)(!0);var a=o.map(function(o){var a,u=fr(o,t,i);if(function(e){return e&&Un(e.canDeactivate)}(u))a=Rt(u.canDeactivate(e,t,n,r));else{if(!Un(u))throw new Error("Invalid CanDeactivate guard");a=Rt(u(e,t,n,r))}return a.pipe(Object(ot.a)())});return Object(Y.a)(a).pipe(zn())}(e.component,e.route,n,t,r)}),Object(ot.a)(function(e){return!0!==e},!0))}(u,r,i,e).pipe(Object(ut.b)(function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return Object(We.a)(t).pipe(Object(ee.a)(function(t){return Object(We.a)([gr(t.route.parent,r),vr(t.route,r),yr(e,t.path,n),mr(e,t.route,n)]).pipe(Object(Ye.a)(),Object(ot.a)(function(e){return!0!==e},!0))}),Object(ot.a)(function(e){return!0!==e},!0))}(r,a,e,t):Object(Y.a)(n)}),Object(ne.a)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))}))}}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Object(st.a)(function(e){if(qn(e.guardsResult)){var n=jt('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}}),Object(st.a)(function(e){var n=new bt(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)}),Object(te.a)(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new vt(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0}),Er(function(e){if(e.guards.canActivateChecks.length)return Object(Y.a)(e).pipe(Object(st.a)(function(e){var n=new _t(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(et.a)(function(e){var r,i,o=!1;return Object(Y.a)(e).pipe((r=t.paramsInheritanceStrategy,i=t.ngModule.injector,function(e){return e.pipe(Object(ut.b)(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return Object(Y.a)(e);var o=0;return Object(We.a)(n).pipe(Object(ee.a)(function(e){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return Object(Y.a)({});var o={};return Object(We.a)(i).pipe(Object(ut.b)(function(i){return function(e,t,n,r){var i=fr(e,t,r);return Rt(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe(Object(st.a)(function(e){o[i]=e}))}),Object(lt.a)(1),Object(ut.b)(function(){return Object.keys(o).length===i.length?Object(Y.a)(o):Ze.a}))}(e._resolve,e,t,r).pipe(Object(ne.a)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),bn(e,n).resolve),null}))}(e.route,t,r,i)}),Object(st.a)(function(){return o++}),Object(lt.a)(1),Object(ut.b)(function(t){return o===n.length?Object(Y.a)(e):Ze.a}))}))}),Object(st.a)({next:function(){return o=!0},complete:function(){if(!o){var r=new vt(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(r),e.resolve(!1)}}}))}),Object(st.a)(function(e){var n=new wt(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),Er(function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,u=a.skipLocationChange,s=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!u,replaceUrl:!!s})}),Object(ne.a)(function(e){var n=function(e,t,n){var r=Sn(e,t._root,n?n._root:void 0);return new gn(r,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Object(st.a)(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(r=t.rootContexts,i=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},Object(ne.a)(function(e){return new Ln(i,e.targetRouterState,e.currentRouterState,o).activate(r),e})),Object(st.a)({next:function(){a=!0},complete:function(){a=!0}}),Object(ct.a)(function(){if(!a&&!u){t.resetUrlToCurrentUrlTree();var r=new vt(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(r),e.resolve(!1)}t.currentNavigation=null}),Object(it.a)(function(r){if(u=!0,(s=r)&&s.ngNavigationCancelingError){var i=qn(r.url);i||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new vt(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(o),i?setTimeout(function(){var n=t.urlHandlingStrategy.merge(r.url,t.rawUrlTree);return t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new gt(e.id,t.serializeUrl(e.extractedUrl),r);n.next(a);try{e.resolve(t.errorHandler(r))}catch(l){e.reject(l)}}var s;return Ze.a}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,r=n.state,i=n.urlTree,o={replaceUrl:!0};if(r){var a=Object.assign({},r);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(i,t,r,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){Qn(e),this.config=e.map(Yn),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,r=t.queryParams,i=t.fragment,a=t.queryParamsHandling,u=t.preserveFragment,s=n||this.routerState.root,l=u?this.currentUrlTree.fragment:i,c=null;switch(a){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,i){if(0===n.length)return Tn(t.root,t.root,t,r,i);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new An(!0,0,e);var t=0,n=!1,r=e.reduce(function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var a={};return Dt(r.outlets,function(e,t){a[t]="string"==typeof e?e.split("/"):e}),[].concat(o(e),[{outlets:a}])}if(r.segmentPath)return[].concat(o(e),[r.segmentPath])}return"string"!=typeof r?[].concat(o(e),[r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[].concat(o(e),[r])},[]);return new An(n,t,r)}(n);if(a.toRoot())return Tn(t.root,new qt([],{}),t,r,i);var u=function(e,t,n){if(e.isAbsolute)return new Vn(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new Vn(r,r===t.root,0)}var i=On(e.commands[0])?0:1;return function(e,t,n){for(var r=e,i=t,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Vn(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(a,t,e),s=u.processChildren?Mn(u.segmentGroup,u.index,a.commands):Pn(u.segmentGroup,u.index,a.commands);return Tn(u.segmentGroup,s,t,r,i)}(s,this.currentUrlTree,e,c,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=qn(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};g(this,e),this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return y(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof ht?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof pt&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Ot&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new Ot(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||Ur)(m["\u0275\u0275inject"](Fr),m["\u0275\u0275inject"](b.p),m["\u0275\u0275inject"](void 0))},Ur.\u0275prov=m["\u0275\u0275defineInjectable"]({token:Ur,factory:Ur.\u0275fac}),Ur),Xr=new m.InjectionToken("ROUTER_CONFIGURATION"),Yr=new m.InjectionToken("ROUTER_FORROOT_GUARD"),Jr=[b.h,{provide:Kt,useClass:Qt},{provide:Fr,useFactory:function(e,t,n,r,i,o,a){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},s=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new Fr(null,e,t,n,r,i,o,Mt(a));if(s&&(c.urlHandlingStrategy=s),l&&(c.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(u,c),u.enableTracing){var d=Object(b.s)();c.events.subscribe(function(e){d.logGroup("Router Event: "+e.constructor.name),d.log(e.toString()),d.log(e),d.logGroupEnd()})}return c},deps:[Kt,Ar,b.h,m.Injector,m.NgModuleFactoryLoader,m.Compiler,Ir,Xr,[function(){return function e(){g(this,e)}}(),new m.Optional],[function(){return function e(){g(this,e)}}(),new m.Optional]]},Ar,{provide:yn,useFactory:function(e){return e.routerState.root},deps:[Fr]},{provide:m.NgModuleFactoryLoader,useClass:m.SystemJsNgModuleLoader},Qr,Kr,function(){function e(){g(this,e)}return y(e,[{key:"preload",value:function(e,t){return t().pipe(Object(it.a)(function(){return Object(Y.a)(null)}))}}]),e}(),{provide:Xr,useValue:{enableTracing:!1}}];function ei(){return new m.NgProbeToken("Router",Fr)}var ti,ni=((ti=function(){function e(t,n){g(this,e)}return y(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Jr,ai(t),{provide:Yr,useFactory:oi,deps:[[Fr,new m.Optional,new m.SkipSelf]]},{provide:Xr,useValue:n||{}},{provide:b.i,useFactory:ii,deps:[b.o,[new m.Inject(b.a),new m.Optional],Xr]},{provide:Zr,useFactory:ri,deps:[Fr,b.p,Xr]},{provide:Gr,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Kr},{provide:m.NgProbeToken,multi:!0,useFactory:ei},[si,{provide:m.APP_INITIALIZER,multi:!0,useFactory:li,deps:[si]},{provide:pi,useFactory:ci,deps:[si]},{provide:m.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:pi}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[ai(t)]}}}]),e}()).\u0275mod=m["\u0275\u0275defineNgModule"]({type:ti}),ti.\u0275inj=m["\u0275\u0275defineInjector"]({factory:function(e){return new(e||ti)(m["\u0275\u0275inject"](Yr,8),m["\u0275\u0275inject"](Fr,8))}}),ti);function ri(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Zr(e,t,n)}function ii(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new b.e(e,t):new b.n(e,t)}function oi(e){return"guarded"}function ai(e){return[{provide:m.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:e},{provide:Ir,multi:!0,useValue:e}]}var ui,si=((ui=function(){function e(t){g(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Xe.a}return y(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(b.g,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),r=e.injector.get(Fr),i=e.injector.get(Xr);return"disabled"===i.initialNavigation?(r.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(r.hooks.afterPreactivation=function(){return e.initNavigation?Object(Y.a)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Xr),n=this.injector.get(Qr),r=this.injector.get(Zr),i=this.injector.get(Fr),o=this.injector.get(m.ApplicationRef);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||ui)(m["\u0275\u0275inject"](m.Injector))},ui.\u0275prov=m["\u0275\u0275defineInjectable"]({token:ui,factory:ui.\u0275fac}),ui);function li(e){return e.appInitializer.bind(e)}function ci(e){return e.bootstrapListener.bind(e)}var di,fi,hi,pi=new m.InjectionToken("Router Initializer"),vi=a("jn5B"),gi=a("VRyK"),mi=a("GyhO"),yi=a("w1tV"),bi=a("IAdc"),_i=function e(){g(this,e)},wi=((di=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"getTranslation",value:function(e){return Object(Y.a)({})}}]),n}(_i)).\u0275fac=function(e){return ki(e||di)},di.\u0275prov=m["\u0275\u0275defineInjectable"]({token:di,factory:di.\u0275fac}),di),ki=m["\u0275\u0275getInheritedFactory"](wi),Ci=function e(){g(this,e)},xi=((fi=function(){function e(){g(this,e)}return y(e,[{key:"handle",value:function(e){return e.key}}]),e}()).\u0275fac=function(e){return new(e||fi)},fi.\u0275prov=m["\u0275\u0275defineInjectable"]({token:fi,factory:fi.\u0275fac}),fi),$i=function e(){g(this,e)},Si=((hi=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"compile",value:function(e,t){return e}},{key:"compileTranslations",value:function(e,t){return e}}]),n}($i)).\u0275fac=function(e){return Ei(e||hi)},hi.\u0275prov=m["\u0275\u0275defineInjectable"]({token:hi,factory:hi.\u0275fac}),hi),Ei=m["\u0275\u0275getInheritedFactory"](Si);function Oi(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,r,i,o=typeof e;if(o==typeof t&&"object"==o){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(r in i=Object.create(null),e){if(!Oi(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&void 0!==t[r])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(r=0;r5&&void 0!==arguments[5])||arguments[5],u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];g(this,e),this.store=t,this.currentLoader=n,this.compiler=r,this.parser=i,this.missingTranslationHandler=o,this.useDefaultLang=a,this.isolate=u,this.pending=!1,this._onTranslationChange=new m.EventEmitter,this._onLangChange=new m.EventEmitter,this._onDefaultLangChange=new m.EventEmitter,this._langs=[],this._translations={},this._translationRequests={}}return y(e,[{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var n=this.retrieveTranslations(e);void 0!==n?(this.defaultLang||(this.defaultLang=e),n.pipe(Object(tt.a)(1)).subscribe(function(n){t.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return Object(Y.a)(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe(Object(tt.a)(1)).subscribe(function(n){t.changeLang(e)}),n):(this.changeLang(e),Object(Y.a)(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return void 0===this.translations[e]&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var n=this.currentLoader.getTranslation(e).pipe(Object(yi.a)());return this.loadingTranslations=n.pipe(Object(tt.a)(1),Object(ne.a)(function(n){return t.compiler.compileTranslations(n,e)}),Object(yi.a)()),this.loadingTranslations.subscribe(function(n){t.translations[e]=n,t.updateLangs(),t.pending=!1},function(e){t.pending=!1}),n}},{key:"setTranslation",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=this.compiler.compileTranslations(t,e),this.translations[e]=n&&this.translations[e]?ji(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach(function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,n){var r;if(t instanceof Array){var o,a={},u=!1,s=i(t);try{for(s.s();!(o=s.n()).done;){var l=o.value;a[l]=this.getParsedResult(e,l,n),"function"==typeof a[l].subscribe&&(u=!0)}}catch(g){s.e(g)}finally{s.f()}if(u){var c,d,f=i(t);try{for(f.s();!(d=f.n()).done;){var h=d.value,p="function"==typeof a[h].subscribe?a[h]:Object(Y.a)(a[h]);c=void 0===c?p:Object(gi.a)(c,p)}}catch(g){f.e(g)}finally{f.f()}return c.pipe(Object(bi.a)(),Object(ne.a)(function(e){var n={};return e.forEach(function(e,r){n[t[r]]=e}),n}))}return a}if(e&&(r=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===r&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===r){var v={key:t,translateService:this};void 0!==n&&(v.interpolateParams=n),r=this.missingTranslationHandler.handle(v)}return void 0!==r?r:t}},{key:"get",value:function(e,t){var n=this;if(!Ii(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return J.a.create(function(r){var i=function(e){r.next(e),r.complete()},o=function(e){r.error(e)};n.loadingTranslations.subscribe(function(r){"function"==typeof(r=n.getParsedResult(r,e,t)).subscribe?r.subscribe(i,o):i(r)},o)});var r=this.getParsedResult(this.translations[this.currentLang],e,t);return"function"==typeof r.subscribe?r:Object(Y.a)(r)}},{key:"stream",value:function(e,t){var n=this;if(!Ii(e)||!e.length)throw new Error('Parameter "key" required');return Object(mi.a)(this.get(e,t),this.onLangChange.pipe(Object(et.a)(function(r){var i=n.getParsedResult(r.translations,e,t);return"function"==typeof i.subscribe?i:Object(Y.a)(i)})))}},{key:"instant",value:function(e,t){if(!Ii(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(void 0!==n.subscribe){if(e instanceof Array){var r={};return e.forEach(function(t,n){r[e[n]]=e[n]}),r}return e}return n}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang||this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return-1!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage).indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}},{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}}]),e}()).\u0275fac=function(e){return new(e||Ni)(m["\u0275\u0275inject"](Ui),m["\u0275\u0275inject"](_i),m["\u0275\u0275inject"]($i),m["\u0275\u0275inject"](Li),m["\u0275\u0275inject"](Ci),m["\u0275\u0275inject"](Wi),m["\u0275\u0275inject"](qi))},Ni.\u0275prov=m["\u0275\u0275defineInjectable"]({token:Ni,factory:Ni.\u0275fac}),Ni),Gi=((Mi=function(){function e(t,n,r){var i=this;g(this,e),this.translateService=t,this.element=n,this._ref=r,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(function(e){e.lang===i.translateService.currentLang&&i.checkNodes(!0,e.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(function(e){i.checkNodes(!0,e.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(function(e){i.checkNodes(!0)}))}return y(e,[{key:"ngAfterViewChecked",value:function(){this.checkNodes()}},{key:"checkNodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this.element.nativeElement.childNodes;n.length||(this.setContent(this.element.nativeElement,this.key),n=this.element.nativeElement.childNodes);for(var r=0;r1?r-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:_i,useClass:wi},t.compiler||{provide:$i,useClass:Si},t.parser||{provide:Li,useClass:Bi},t.missingTranslationHandler||{provide:Ci,useClass:xi},Ui,{provide:qi,useValue:t.isolate},{provide:Wi,useValue:t.useDefaultLang},zi]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:_i,useClass:wi},t.compiler||{provide:$i,useClass:Si},t.parser||{provide:Li,useClass:Bi},t.missingTranslationHandler||{provide:Ci,useClass:xi},{provide:qi,useValue:t.isolate},{provide:Wi,useValue:t.useDefaultLang},zi]}}}]),e}()).\u0275mod=m["\u0275\u0275defineNgModule"]({type:Vi}),Vi.\u0275inj=m["\u0275\u0275defineInjector"]({factory:function(e){return new(e||Vi)}}),Vi),Zi=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";g(this,e),this.http=t,this.prefix=n,this.suffix=r}return y(e,[{key:"getTranslation",value:function(e){return this.http.get("".concat(this.prefix).concat(e).concat(this.suffix))}}]),e}(),Xi=((Di=function(){function e(t){g(this,e),t.setDefaultLang("en"),console.log("Browser language is: "+t.getBrowserLang()),t.use(t.getBrowserLang())}return y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Di)(m["\u0275\u0275directiveInject"](zi))},Di.\u0275cmp=m["\u0275\u0275defineComponent"]({type:Di,selectors:[["app-navbar"]],decls:3,vars:1,consts:[[1,"navbar","navbar-dark","bg-dark"],["href","",1,"navbar-brand",3,"translate"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"nav",0),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"HoneyPi"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","brand"))},directives:[Gi],styles:[""]}),Di),Yi=a("kiQV").version,Ji=((Fi=function(){function e(t){g(this,e),this.translate=t,this.appVersion=Yi}return y(e,[{key:"ngOnInit",value:function(){}},{key:"useLanguage",value:function(e){this.translate.use(e)}},{key:"currentYear",get:function(){return(new Date).getFullYear()}}]),e}()).\u0275fac=function(e){return new(e||Fi)(m["\u0275\u0275directiveInject"](zi))},Fi.\u0275cmp=m["\u0275\u0275defineComponent"]({type:Fi,selectors:[["app-footer"]],decls:16,vars:1,consts:[[1,"footer"],[1,"container"],[1,"text-muted"],["href","https://www.honey-pi.de","target","_blank"],[1,"float-right","text-muted",2,"padding-left","10px"],["routerLink","",3,"click"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"footer",0),m["\u0275\u0275elementStart"](1,"div",1),m["\u0275\u0275elementStart"](2,"span",2),m["\u0275\u0275text"](3,"\xa9 "),m["\u0275\u0275elementStart"](4,"a",3),m["\u0275\u0275text"](5,"HoneyPi.de"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](6),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"span",4),m["\u0275\u0275elementStart"](8,"a",5),m["\u0275\u0275listener"]("click",function(){return t.useLanguage("de")}),m["\u0275\u0275text"](9,"Deutsch"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](10," | "),m["\u0275\u0275elementStart"](11,"a",5),m["\u0275\u0275listener"]("click",function(){return t.useLanguage("en")}),m["\u0275\u0275text"](12,"English"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](13," | "),m["\u0275\u0275elementStart"](14,"a",5),m["\u0275\u0275listener"]("click",function(){return t.useLanguage("el_GR")}),m["\u0275\u0275text"](15,"Greek"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](6),m["\u0275\u0275textInterpolate1"](" 2018-",t.currentYear,""))},directives:[Lr],styles:[""]}),Fi),eo=((Ri=function e(){g(this,e)}).\u0275fac=function(e){return new(e||Ri)},Ri.\u0275cmp=m["\u0275\u0275defineComponent"]({type:Ri,selectors:[["app-root"]],decls:3,vars:0,template:function(e,t){1&e&&(m["\u0275\u0275element"](0,"app-navbar"),m["\u0275\u0275element"](1,"router-outlet"),m["\u0275\u0275element"](2,"app-footer"))},directives:[Xi,Wr,Ji],styles:['.ng-invalid:not(form){border-left:5px solid #a94442}@-webkit-keyframes spinner{to{transform:rotate(1turn)}}@keyframes spinner{to{transform:rotate(1turn)}} .spinner:before{content:"";box-sizing:border-box;position:absolute;top:50%;left:50%;width:50px;height:50px;margin-top:-10px;margin-left:-10px;border-radius:50%;border:6px solid #f7f7f7;border-top-color:#ffc107;-webkit-animation:spinner .8s linear infinite;animation:spinner .8s linear infinite}']}),Ri);a("4XzM");var to,no=((to=function(){function e(t){g(this,e),this.http=t}return y(e,[{key:"getSettings",value:function(){var e="t="+(new Date).getTime();return this.http.get("./backend/settings.php?getSettings&"+e,{responseType:"json"})}},{key:"setSettings",value:function(e){return this.http.post("./backend/settings.php?setSettings",JSON.stringify(e)).map(function(e){return e})}},{key:"getTemperatureSensors",value:function(){var e="t="+(new Date).getTime();return this.http.get("./backend/ds18b20.php?"+e).map(function(e){if(e)return e})}},{key:"getLog",value:function(){var e="t="+(new Date).getTime();return this.http.get("./backend/log.php?"+e,{responseType:"text"})}},{key:"deleteLog",value:function(){var e="t="+(new Date).getTime();return this.http.get("./backend/log.php?delete&"+e,{responseType:"text"})}},{key:"deleteCsv",value:function(e){var t="t="+(new Date).getTime();return this.http.get("./backend/offlinecsv.php?delete&channelId="+e+"&"+t,{responseType:"text"})}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="t="+(new Date).getTime();return this.http.get("./backend/update.php?mode="+e+"&stable="+(t?0:1)+n+"&"+r,{responseType:"json"})}},{key:"getMeasurement",value:function(){var e="t="+(new Date).getTime();return this.http.get("./backend/measurement.php?"+e).map(function(e){if(e)return e})}},{key:"checkInternet",value:function(){var e="t="+(new Date).getTime();return this.http.get("./backend/check_internet.php?"+e).map(function(e){if(e)return e})}},{key:"checkDiag",value:function(){var e="t="+(new Date).getTime();return this.http.get("./backend/check_diag.php?"+e,{responseType:"text"}).map(function(e){return e})}},{key:"checkThingSpeakChannel",value:function(e){return this.http.post("./backend/check_thingspeak.php",e).map(function(e){if(e)return e})}},{key:"getWeight",value:function(e){return this.http.post("./backend/weight.php",e,{responseType:"text"}).map(function(e){return e})}},{key:"boot",value:function(e){var t="t="+(new Date).getTime();return this.http.get("./backend/boot.php?"+e+"&"+t)}}]),e}()).\u0275fac=function(e){return new(e||to)(m["\u0275\u0275inject"](Oe))},to.\u0275prov=m["\u0275\u0275defineInjectable"]({token:to,factory:to.\u0275fac,providedIn:"root"}),to),ro=function e(){g(this,e),this.router=new io,this.honeypi=new io,this.modem=new oo},io=function e(){g(this,e)},oo=function e(){g(this,e)},ao=function e(){g(this,e),this.enabled=!1,this.version=2,this.dummyload=!1,this.voltagecheck_enabled=!1,this.low=new uo,this.normal=new uo},uo=function e(){g(this,e),this.enabled=!1,this.schedule=""},so=function e(){g(this,e),this.ts_channels=[],this.ts_channels.push(new lo),this.sensors=[],this.internet=new ro,this.wittyPi=new ao},lo=function e(){g(this,e),this.ts_write_key="",this.ts_channel_id=void 0};function co(e,t){1&e&&m["\u0275\u0275element"](0,"br")}a("g3Qq");var fo=function(){return{field:"Write-API-Key"}};function ho(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",29),m["\u0275\u0275elementStart"](1,"a",30),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](3),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](4,1,"error.spaces",m["\u0275\u0275pureFunction0"](4,fo))," "))}var po=function(){return{field:"Channel-ID"}};function vo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.required",m["\u0275\u0275pureFunction0"](4,po))," "))}function go(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.length",m["\u0275\u0275pureFunction0"](4,po))," "))}function mo(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",31),m["\u0275\u0275template"](1,vo,3,5,"div",10),m["\u0275\u0275template"](2,go,3,5,"div",10),m["\u0275\u0275elementEnd"]()),2&e){m["\u0275\u0275nextContext"]();var n=m["\u0275\u0275reference"](20);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",(null==n?null:n.errors.min)||(null==n?null:n.errors.max))}}function yo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.required",m["\u0275\u0275pureFunction0"](4,fo))," "))}function bo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.length",m["\u0275\u0275pureFunction0"](4,fo))," "))}function _o(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",31),m["\u0275\u0275template"](1,yo,3,5,"div",10),m["\u0275\u0275template"](2,bo,3,5,"div",10),m["\u0275\u0275elementEnd"]()),2&e){m["\u0275\u0275nextContext"]();var n=m["\u0275\u0275reference"](29);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",(null==n?null:n.errors.minlength)||(null==n?null:n.errors.maxlength))}}function wo(e,t){1&e&&m["\u0275\u0275element"](0,"br")}var ko=function(e){return{"my-bg-ts":e}};function Co(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",8),m["\u0275\u0275elementStart"](1,"div",9),m["\u0275\u0275template"](2,co,1,0,"br",10),m["\u0275\u0275elementStart"](3,"div",11),m["\u0275\u0275elementStart"](4,"button",12),m["\u0275\u0275listener"]("click",function(){m["\u0275\u0275restoreView"](n);var e=t.index;return m["\u0275\u0275nextContext"]().removeChannel(e)}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275text"](6,"\u232b"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"h5",13),m["\u0275\u0275text"](8),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"div",0),m["\u0275\u0275elementStart"](10,"label",14),m["\u0275\u0275text"](11,"Channel-Name "),m["\u0275\u0275elementStart"](12,"i"),m["\u0275\u0275text"](13,"(optional)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](14,"input",15,16),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.$implicit.name=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](16,"div",0),m["\u0275\u0275elementStart"](17,"label",17),m["\u0275\u0275text"](18,"ThingSpeak Channel-ID"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"input",18,19),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.$implicit.ts_channel_id=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"div",0),m["\u0275\u0275elementStart"](22,"label",20),m["\u0275\u0275text"](23,"ThingSpeak "),m["\u0275\u0275elementStart"](24,"strong"),m["\u0275\u0275text"](25,"Write"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](26,"-API-Key"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](27,"div",21),m["\u0275\u0275elementStart"](28,"input",22,23),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.$implicit.ts_write_key=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](30,"span",24),m["\u0275\u0275elementStart"](31,"button",25,26),m["\u0275\u0275listener"]("click",function(){m["\u0275\u0275restoreView"](n);var e=t.$implicit,r=m["\u0275\u0275reference"](32);return m["\u0275\u0275nextContext"]().checkThingSpeakChannel(e.ts_channel_id,e.ts_write_key,r)}),m["\u0275\u0275pipe"](33,"translate"),m["\u0275\u0275text"](34,"\u2713"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](35,ho,5,5,"div",27),m["\u0275\u0275template"](36,mo,3,2,"div",28),m["\u0275\u0275template"](37,_o,3,2,"div",28),m["\u0275\u0275template"](38,wo,1,0,"br",10),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=t.$implicit,i=t.index,o=t.last,a=t.first,u=m["\u0275\u0275reference"](20),s=m["\u0275\u0275reference"](29),l=m["\u0275\u0275reference"](32),c=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275classProp"]("spinner",l.disabled),m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](23,ko,i%2!=0)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",!a),m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("title",m["\u0275\u0275pipeBind1"](5,19,"settings.thingspeak.removeChannel")),m["\u0275\u0275property"]("disabled",c.isRemovingDisabled),m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate1"]("ThingSpeak Channel #",i+1,""),m["\u0275\u0275advance"](6),m["\u0275\u0275property"]("ngModel",r.name),m["\u0275\u0275advance"](5),m["\u0275\u0275property"]("ngModel",r.ts_channel_id)("min",0)("max",9999999),m["\u0275\u0275advance"](9),m["\u0275\u0275property"]("ngModel",r.ts_write_key),m["\u0275\u0275advance"](3),m["\u0275\u0275classProp"]("disabled",!r.ts_channel_id||!r.ts_write_key),m["\u0275\u0275propertyInterpolate"]("title",m["\u0275\u0275pipeBind1"](33,21,"settings.thingspeak.checkConnection")),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("ngIf",(null==s?null:s.value)&&-1!==(null==s||null==s.value?null:s.value.indexOf(" "))),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",u.invalid&&(u.dirty||u.touched)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",s.invalid&&(s.dirty||s.touched)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",!o)}}var xo,$o=((xo=function(){function e(t,n){g(this,e),this.appService=t,this.translate=n,this.thingspeakUrlPattern="^(?:(?:(?:[a-zA-z\\-]+)\\:\\/{1,3})?(?:[a-zA-Z0-9])(?:[a-zA-Z0-9-\\.]){1,61}[a-zA-Z0-9](?:\\.[a-zA-Z]{2,})+|\\[(?:(?:(?:[a-fA-F0-9]){1,4})(?::(?:[a-fA-F0-9]){1,4}){7}|::1|::)\\]|(?:(?:[0-9]{1,3})(?:\\.[0-9]{1,3}){3}))(?:\\:[0-9]{1,5})?$",this.settingsChange=new m.EventEmitter}return y(e,[{key:"ngOnInit",value:function(){}},{key:"addChannel",value:function(){this.settings.ts_channels.push({ts_channel_id:void 0,ts_write_key:""})}},{key:"removeChannel",value:function(e){this.settings.ts_channels.splice(e,1)}},{key:"checkThingSpeakChannel",value:function(e,t,n){var r=this;this.translate.get("settings.thingspeak.confirmCheck").subscribe(function(i){window.confirm(i)&&(n.setAttribute("disabled","disabled"),r.appService.checkThingSpeakChannel({ts_channel_id:e,ts_write_key:t}).timeout(15e3).finally(function(){n.removeAttribute("disabled")}).subscribe(function(e){n.classList.remove("btn-danger","btn-warning"),n.classList.add("btn-success")},function(e){console.log(e),n.classList.remove("btn-success","btn-warning"),n.classList.add("btn-danger")}))})}},{key:"settings",set:function(e){this.settingsChange.emit(e),this._settings=e},get:function(){return this._settings}},{key:"isAddingDisabled",get:function(){return this.settings.ts_channels.length>=10}},{key:"isRemovingDisabled",get:function(){return this.settings.ts_channels.length<=1}}]),e}()).\u0275fac=function(e){return new(e||xo)(m["\u0275\u0275directiveInject"](no),m["\u0275\u0275directiveInject"](zi))},xo.\u0275cmp=m["\u0275\u0275defineComponent"]({type:xo,selectors:[["app-thingspeak"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:12,vars:7,consts:[[1,"form-group"],["for","ts_server_url"],["type","text","id","ts_server_url","name","ts_server_url","placeholder","http://api.thingspeak.com",1,"form-control",3,"ngModel","pattern","ngModelChange"],["ts_server_url","ngModel"],["class","rounded row",4,"ngFor","ngForOf"],[1,"row"],[1,"col-12"],["type","button",1,"btn","btn-primary","btn-sm","float-left","shadow-sm",3,"disabled","click"],[1,"rounded","row"],[1,"col-12",3,"ngClass"],[4,"ngIf"],["role","group",1,"btn-group","btn-group-sm","float-right"],["type","button",1,"btn","btn-danger","btn-sm",2,"margin-bottom","10px",3,"disabled","title","click"],[1,"h5"],["for","ts_name"],["type","text","id","ts_name","name","ts_name","placeholder","Name",1,"form-control",3,"ngModel","ngModelChange"],["ts_name","ngModel"],["for","ts_channel_id"],["type","number","id","ts_channel_id","name","ts_channel_id","placeholder","Channel-ID","required","",1,"form-control",3,"ngModel","min","max","ngModelChange"],["ts_channel_id","ngModel"],["for","ts_write_key"],[1,"input-group"],["type","text","id","ts_write_key","name","ts_write_key","placeholder","Write-API-Key","required","","minlength","16","maxlength","16",1,"form-control",3,"ngModel","ngModelChange"],["ts_write_key","ngModel"],[1,"input-group-btn"],["type","button",1,"btn","btn-warning",3,"title","click"],["checkElement",""],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-danger",4,"ngIf"],["role","alert",1,"alert","alert-warning"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[1,"alert","alert-danger"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"label",1),m["\u0275\u0275text"](2,"ThingSpeak Server-URL"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](3,"input",2,3),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.ts_server_url=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](5,Co,39,25,"div",4),m["\u0275\u0275elementStart"](6,"div",5),m["\u0275\u0275elementStart"](7,"div",6),m["\u0275\u0275element"](8,"br"),m["\u0275\u0275elementStart"](9,"button",7),m["\u0275\u0275listener"]("click",function(){return t.addChannel()}),m["\u0275\u0275text"](10),m["\u0275\u0275pipe"](11,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngModel",t.settings.ts_server_url)("pattern",t.thingspeakUrlPattern),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngForOf",t.settings.ts_channels),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("disabled",t.isAddingDisabled),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"]("+ ",m["\u0275\u0275pipeBind1"](11,5,"settings.thingspeak.addChannel"),""))},directives:[qe.DefaultValueAccessor,qe.NgControlStatus,qe.NgModel,qe.PatternValidator,b.k,b.j,b.l,qe.NumberValueAccessor,qe.RequiredValidator,vi.MinValidator,vi.MaxValidator,qe.MinLengthValidator,qe.MaxLengthValidator],pipes:[Ki],styles:[".my-bg-ts[_ngcontent-%COMP%]{background-color:#e9ecef}"]}),xo),So=function(e){return{field:e}};function Eo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",36),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](3),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](4,1,"error.spaces",m["\u0275\u0275pureFunction1"](6,So,m["\u0275\u0275pipeBind1"](5,4,"settings.internet.ssid")))," "))}function Oo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",36),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](3),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](4,1,"error.spaces",m["\u0275\u0275pureFunction1"](6,So,m["\u0275\u0275pipeBind1"](5,4,"settings.internet.password")))," "))}function Io(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.required",m["\u0275\u0275pureFunction1"](6,So,m["\u0275\u0275pipeBind1"](3,4,"settings.internet.ssid")))," "))}function To(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.length",m["\u0275\u0275pureFunction1"](6,So,m["\u0275\u0275pipeBind1"](3,4,"settings.internet.ssid")))," "))}function jo(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",37),m["\u0275\u0275template"](1,Io,4,8,"div",8),m["\u0275\u0275template"](2,To,4,8,"div",8),m["\u0275\u0275elementEnd"]()),2&e){m["\u0275\u0275nextContext"]();var n=m["\u0275\u0275reference"](4);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.maxlength)}}function Ao(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.required",m["\u0275\u0275pureFunction1"](6,So,m["\u0275\u0275pipeBind1"](3,4,"settings.internet.password")))," "))}function Vo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.length",m["\u0275\u0275pureFunction1"](6,So,m["\u0275\u0275pipeBind1"](3,4,"settings.internet.password")))," "))}function Po(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.specialchar",m["\u0275\u0275pureFunction1"](6,So,m["\u0275\u0275pipeBind1"](3,4,"settings.internet.password")))," "))}function Mo(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",37),m["\u0275\u0275template"](1,Ao,4,8,"div",8),m["\u0275\u0275template"](2,Vo,4,8,"div",8),m["\u0275\u0275template"](3,Po,4,8,"div",8),m["\u0275\u0275elementEnd"]()),2&e){m["\u0275\u0275nextContext"]();var n=m["\u0275\u0275reference"](9);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",(null==n?null:n.errors.minlength)||(null==n?null:n.errors.maxlength)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.pattern)}}var No=function(e){return{value:e}};function Do(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",13),m["\u0275\u0275elementStart"](1,"div",22),m["\u0275\u0275element"](2,"label",23),m["\u0275\u0275elementStart"](3,"input",24,25),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().wifi.router.ssid=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",26),m["\u0275\u0275element"](7,"label",27),m["\u0275\u0275elementStart"](8,"input",28,29),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().wifi.router.password=e}),m["\u0275\u0275pipe"](10,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](11,"div",22),m["\u0275\u0275element"](12,"label",30),m["\u0275\u0275elementStart"](13,"select",31),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().wifi.router.wpa_type=e}),m["\u0275\u0275element"](14,"option",32),m["\u0275\u0275pipe"](15,"translate"),m["\u0275\u0275pipe"](16,"translate"),m["\u0275\u0275elementStart"](17,"option",33),m["\u0275\u0275text"](18,"WPA2 (default)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"option",33),m["\u0275\u0275text"](20,"No Password"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](21,Eo,6,8,"div",34),m["\u0275\u0275template"](22,Oo,6,8,"div",34),m["\u0275\u0275template"](23,jo,3,2,"div",35),m["\u0275\u0275template"](24,Mo,4,3,"div",35),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275reference"](4),i=m["\u0275\u0275reference"](9),o=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.internet.ssid"),m["\u0275\u0275advance"](1),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](5,21,"settings.internet.ssid")),m["\u0275\u0275property"]("ngModel",o.wifi.router.ssid)("maxlength",32),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("hidden",2===o.wifi.router.wpa_type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.internet.password"),m["\u0275\u0275advance"](1),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](10,23,"settings.internet.password")),m["\u0275\u0275property"]("ngModel",o.wifi.router.password)("minlength",8)("maxlength",63)("pattern",o.disallowedChars),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("translate","settings.internet.wpa_type"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",o.wifi.router.wpa_type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](15,25,"buttons.select",m["\u0275\u0275pureFunction1"](30,No,m["\u0275\u0275pipeBind1"](16,28,"settings.internet.wpa_type")))),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngValue",0),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",2),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",(null==r?null:r.value)&&-1!==(null==r||null==r.value?null:r.value.indexOf(" "))),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",(null==i?null:i.value)&&-1!==(null==i||null==i.value?null:i.value.indexOf(" "))),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",r.invalid&&(r.dirty||r.touched)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",i.invalid&&(i.dirty||i.touched))}}function Ro(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",40),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",41),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"settings.internet.testSuccess"),m["\u0275\u0275sanitizeHtml"]))}function Fo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",42),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",41),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"settings.internet.testError"),m["\u0275\u0275sanitizeHtml"]))}function Lo(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"pre",43),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"json"),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](2,1,n.checkInternetResponse.content))}}function Bo(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275template"](1,Ro,5,3,"div",38),m["\u0275\u0275template"](2,Fo,5,3,"div",39),m["\u0275\u0275template"](3,Lo,3,3,"pre",21),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",n.checkInternetResponse.connected),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",!n.checkInternetResponse.connected),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",!n.checkInternetResponse.connected&&n.checkInternetResponse.content)}}function Ho(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275elementStart"](1,"div",13),m["\u0275\u0275elementStart"](2,"div",14),m["\u0275\u0275elementStart"](3,"label",44),m["\u0275\u0275text"](4),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"input",45),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().wifi.modem.apn=e}),m["\u0275\u0275pipe"](7,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](8,"div",14),m["\u0275\u0275elementStart"](9,"label",46),m["\u0275\u0275text"](10,">"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](11,"select",47),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().wifi.modem.ttyUSB=e}),m["\u0275\u0275element"](12,"option",32),m["\u0275\u0275pipe"](13,"translate"),m["\u0275\u0275pipe"](14,"translate"),m["\u0275\u0275elementStart"](15,"option",33),m["\u0275\u0275text"](16,"ttyUSB0 (default)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](17,"option",33),m["\u0275\u0275text"](18,"ttyUSB1"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"option",33),m["\u0275\u0275text"](20,"ttyUSB2"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](5,10,"settings.internet.apn")),m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](7,12,"settings.internet.apn")),m["\u0275\u0275property"]("ngModel",r.wifi.modem.apn),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.internet.ttyUSB"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",r.wifi.modem.ttyUSB),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](13,14,"buttons.select",m["\u0275\u0275pureFunction1"](19,No,m["\u0275\u0275pipeBind1"](14,17,"settings.internet.ttyUSB")))),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngValue",0),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",1),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",2)}}function Uo(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"pre",43),m["\u0275\u0275text"](1),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](n.checkSurfstickResponse)}}var qo,Wo,zo=((qo=function(){function e(t){g(this,e),this.appService=t,this.isLoading=!1,this.isLoadingAP=!1,this.disallowedChars="[^/]+",this.wifiChange=new m.EventEmitter}return y(e,[{key:"ngOnInit",value:function(){}},{key:"checkInternet",value:function(){var e=this;this.isLoading=!0,this.checkInternetResponse=null,this.appService.checkInternet().timeout(15e3).finally(function(){return e.isLoading=!1}).subscribe(function(t){e.checkInternetResponse=t},function(t){console.log(t),e.checkInternetResponse=t.name&&"TimeoutError"===t.name?{connected:!1,content:"Timeout after 15 Seconds."}:t.name&&"HttpErrorResponse"===t.name?{connected:!1,content:null}:{connected:!1,content:t}})}},{key:"checkDiag",value:function(){var e=this;this.isLoadingAP=!0,this.checkSurfstickResponse=null,this.appService.checkDiag().timeout(15e3).finally(function(){return e.isLoadingAP=!1}).subscribe(function(t){e.checkSurfstickResponse=t},function(t){console.error(t),e.checkSurfstickResponse=JSON.stringify(t)})}},{key:"wifi",set:function(e){this.wifiChange.emit(e),this._wifi=e},get:function(){return this._wifi}}]),e}()).\u0275fac=function(e){return new(e||qo)(m["\u0275\u0275directiveInject"](no))},qo.\u0275cmp=m["\u0275\u0275defineComponent"]({type:qo,selectors:[["app-internet"]],inputs:{wifi:"wifi"},outputs:{wifiChange:"wifiChange"},decls:46,vars:40,consts:[["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[1,"h5",3,"translate"],[1,"form-check"],["type","checkbox","id","enabledWifi",1,"form-check-input",3,"ngModel","ngModelChange"],["for","enabledWifi",1,"form-check-label",3,"translate"],["class","row",4,"ngIf"],["type","button","role","button",1,"btn","btn-warning","btn-sm",3,"disabled","translate","click"],[4,"ngIf"],["data-toggle","collapse","href","#collapseAP","role","button","aria-expanded","false","aria-controls","collapseAP",1,"text-danger",3,"translate"],["id","collapseAP",1,"collapse"],[1,"card","card-body"],[3,"translate"],[1,"row"],[1,"form-group","col-12","col-sm-6"],["for","honeypiWifissid"],["type","text","id","honeypiWifissid","name","honeypiWifissid",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","honeypiWifipassword"],["type","text","id","honeypiWifipassword","name","honeypiWifipassword",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["type","checkbox","id","enabledModem",1,"form-check-input",3,"ngModel","ngModelChange"],["for","enabledModem",1,"form-check-label",3,"translate"],["class","pre-scrollable",4,"ngIf"],[1,"form-group","col-12","col-sm-4"],["for","ssid",3,"translate"],["type","text","id","ssid","name","ssid","required","",1,"form-control",3,"ngModel","placeholder","maxlength","ngModelChange"],["router_ssid","ngModel"],[1,"form-group","col-12","col-sm-4",3,"hidden"],["for","password",3,"translate"],["type","text","id","password","name","password","required","",1,"form-control",3,"ngModel","placeholder","minlength","maxlength","pattern","ngModelChange"],["router_password","ngModel"],["for","wpa_type",3,"translate"],["id","wpa_type","name","wpa_type","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue","translate"],[3,"ngValue"],["class","alert alert-warning col-12","role","alert",4,"ngIf"],["class","alert alert-danger col-12","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-warning","col-12"],["role","alert",1,"alert","alert-danger","col-12"],["class","alert alert-success","role","alert",4,"ngIf"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-success"],[3,"innerHTML"],["role","alert",1,"alert","alert-danger"],[1,"pre-scrollable"],["for","honeypiModemApn"],["type","text","id","honeypiModemApn","name","honeypiModemApn","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","ttyUSB",3,"translate"],["id","ttyUSB","name","ttyUSB","required","",1,"custom-select",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](3),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](5,"h5",2),m["\u0275\u0275elementStart"](6,"div",3),m["\u0275\u0275elementStart"](7,"input",4),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.wifi.router.enabled=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](8,"label",5),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](9,Do,25,32,"div",6),m["\u0275\u0275element"](10,"hr"),m["\u0275\u0275element"](11,"h5",2),m["\u0275\u0275elementStart"](12,"p"),m["\u0275\u0275elementStart"](13,"button",7),m["\u0275\u0275listener"]("click",function(){return t.checkInternet()}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](14,Bo,4,3,"div",8),m["\u0275\u0275element"](15,"hr"),m["\u0275\u0275elementStart"](16,"p"),m["\u0275\u0275element"](17,"a",9),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](18,"div",10),m["\u0275\u0275elementStart"](19,"div",11),m["\u0275\u0275element"](20,"h5",2),m["\u0275\u0275element"](21,"p",12),m["\u0275\u0275elementStart"](22,"div",13),m["\u0275\u0275elementStart"](23,"div",14),m["\u0275\u0275elementStart"](24,"label",15),m["\u0275\u0275text"](25),m["\u0275\u0275pipe"](26,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](27,"input",16),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.wifi.honeypi.ssid=e}),m["\u0275\u0275pipe"](28,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](29,"div",14),m["\u0275\u0275elementStart"](30,"label",17),m["\u0275\u0275text"](31),m["\u0275\u0275pipe"](32,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](33,"input",18),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.wifi.honeypi.password=e}),m["\u0275\u0275pipe"](34,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](35,"hr"),m["\u0275\u0275element"](36,"h5",2),m["\u0275\u0275elementStart"](37,"div",3),m["\u0275\u0275elementStart"](38,"input",19),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.wifi.modem.enabled=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](39,"label",20),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](40,Ho,21,21,"div",8),m["\u0275\u0275element"](41,"hr"),m["\u0275\u0275element"](42,"h5",2),m["\u0275\u0275elementStart"](43,"p"),m["\u0275\u0275elementStart"](44,"button",7),m["\u0275\u0275listener"]("click",function(){return t.checkDiag()}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](45,Uo,2,1,"pre",21),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](4,30,"alerts.afterSave"),"\n"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.internet.wifi"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",t.wifi.router.enabled),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.internet.connectWifi"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.wifi.router.enabled),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.internet.isMobileConnected"),m["\u0275\u0275advance"](2),m["\u0275\u0275classProp"]("spinner",t.isLoading),m["\u0275\u0275property"]("disabled",t.isLoading)("translate","settings.internet.testConnection"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.checkInternetResponse),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.internet.collapseAP"),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.internet.honeypiAP"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.internet.honeypiAPtext"),m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](26,32,"settings.internet.ssid")),m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](28,34,"settings.internet.ssid")),m["\u0275\u0275property"]("ngModel",t.wifi.honeypi.ssid),m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](32,36,"settings.internet.password")),m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](34,38,"settings.internet.password")),m["\u0275\u0275property"]("ngModel",t.wifi.honeypi.password),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.internet.honeypiModem"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",t.wifi.modem.enabled),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.internet.connectModem"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.wifi.modem.enabled),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.internet.isSurfstickConnected"),m["\u0275\u0275advance"](2),m["\u0275\u0275classProp"]("spinner",t.isLoadingAP),m["\u0275\u0275property"]("disabled",t.isLoadingAP)("translate","settings.internet.testDiag"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.checkSurfstickResponse))},directives:[Gi,qe.CheckboxControlValueAccessor,qe.NgControlStatus,qe.NgModel,b.l,qe.DefaultValueAccessor,qe.RequiredValidator,qe.MaxLengthValidator,qe.MinLengthValidator,qe.PatternValidator,qe.SelectControlValueAccessor,qe.NgSelectOption,qe["\u0275angular_packages_forms_forms_x"]],pipes:[Ki,b.f],styles:[""]}),qo),Go=function e(){g(this,e),this.offset=0,this.reference_unit=1},Ko=function(){return{value:"GPIO"}},Qo=((Wo=function(){function e(){g(this,e),this.label="GPIO",this.field_id="w1gpio",this.fieldChanged=new m.EventEmitter,this.required=!1}return y(e,[{key:"onChange",value:function(e){this.fieldChanged.emit(this.field)}},{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Wo)},Wo.\u0275cmp=m["\u0275\u0275defineComponent"]({type:Wo,selectors:[["settings-gpio-field"]],inputs:{label:"label",field_id:"field_id",field:"field",required:"required",disabled_pins:"disabled_pins"},outputs:{fieldChanged:"fieldChanged"},decls:57,vars:62,consts:[[3,"for"],[1,"custom-select",3,"ngModel","id","name","required","ngModelChange"],[3,"ngValue","translate"],["disabled","",3,"value"],[3,"value","disabled"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"label",0),m["\u0275\u0275text"](1),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](2,"select",1),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.field=e})("ngModelChange",function(e){return t.onChange(e)}),m["\u0275\u0275element"](3,"option",2),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementStart"](5,"option",3),m["\u0275\u0275text"](6,"GPIO2 (reserved I2C SDI/SDA)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"option",3),m["\u0275\u0275text"](8,"GPIO3 (reserved I2C SCL/SCK)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"option",4),m["\u0275\u0275text"](10,"GPIO4 (reserved WittyPi)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](11,"option",4),m["\u0275\u0275text"](12,"GPIO5 (Default: HX711_1 DT)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"option",4),m["\u0275\u0275text"](14,"GPIO6 (Default: HX711_1 SCK)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](15,"option",4),m["\u0275\u0275text"](16,"GPIO7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](17,"option",4),m["\u0275\u0275text"](18,"GPIO8"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"option",4),m["\u0275\u0275text"](20,"GPIO9 (Default: DHT22 / DS18b20 3.3V source)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"option",4),m["\u0275\u0275text"](22,"GPIO10"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](23,"option",4),m["\u0275\u0275text"](24,"GPIO11 (Default: DS18b20 1-Wire)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](25,"option",4),m["\u0275\u0275text"](26,"GPIO12 (Default: HX711_2 DT)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](27,"option",4),m["\u0275\u0275text"](28,"GPIO13 (Default: HX711_2 SCK)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](29,"option",4),m["\u0275\u0275text"](30,"GPIO14 (reserved UART TX)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](31,"option",4),m["\u0275\u0275text"](32,"GPIO15 (reserved UART RX)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](33,"option",4),m["\u0275\u0275text"](34,"GPIO16 (Default: Button)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](35,"option",4),m["\u0275\u0275text"](36,"GPIO17 (reserved WittyPi)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](37,"option",4),m["\u0275\u0275text"](38,"GPIO18 (Default: MAX CLK)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](39,"option",4),m["\u0275\u0275text"](40,"GPIO19 (Default: MAX MISO)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](41,"option",4),m["\u0275\u0275text"](42,"GPIO20"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](43,"option",4),m["\u0275\u0275text"](44,"GPIO21 (Default: LED)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](45,"option",4),m["\u0275\u0275text"](46,"GPIO22 (Default: HX711_3 SCK)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](47,"option",4),m["\u0275\u0275text"](48,"GPIO23 (Default: HX711_4 DT)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](49,"option",4),m["\u0275\u0275text"](50,"GPIO24 (Default: HX711_4 SCK)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](51,"option",4),m["\u0275\u0275text"](52,"GPIO25 (Default: HX711_5 DT)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](53,"option",4),m["\u0275\u0275text"](54,"GPIO26 (Default: HX711_5 SCK / MAX CS)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](55,"option",4),m["\u0275\u0275text"](56,"GPIO27 (Default: HX711_3 DT / MAX CS2)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275propertyInterpolate"]("for",t.field_id),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](t.label),m["\u0275\u0275advance"](1),m["\u0275\u0275propertyInterpolate"]("id",t.field_id),m["\u0275\u0275propertyInterpolate"]("name",t.field_id),m["\u0275\u0275property"]("ngModel",t.field)("required",t.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](4,58,"buttons.select",m["\u0275\u0275pureFunction0"](61,Ko))),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",2),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",3),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",4)("disabled",t.disabled_pins.includes(4)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",5)("disabled",t.disabled_pins.includes(5)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",6)("disabled",t.disabled_pins.includes(6)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",7)("disabled",t.disabled_pins.includes(7)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",8)("disabled",t.disabled_pins.includes(8)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",9)("disabled",t.disabled_pins.includes(9)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",10)("disabled",t.disabled_pins.includes(10)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",11)("disabled",t.disabled_pins.includes(11)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",12)("disabled",t.disabled_pins.includes(12)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",13)("disabled",t.disabled_pins.includes(13)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",14)("disabled",t.disabled_pins.includes(14)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",15)("disabled",t.disabled_pins.includes(15)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",16)("disabled",t.disabled_pins.includes(16)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",17)("disabled",t.disabled_pins.includes(17)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",18)("disabled",t.disabled_pins.includes(18)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",19)("disabled",t.disabled_pins.includes(19)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",20)("disabled",t.disabled_pins.includes(20)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",21)("disabled",t.disabled_pins.includes(21)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",22)("disabled",t.disabled_pins.includes(22)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",23)("disabled",t.disabled_pins.includes(23)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",24)("disabled",t.disabled_pins.includes(24)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",25)("disabled",t.disabled_pins.includes(25)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",26)("disabled",t.disabled_pins.includes(26)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",27)("disabled",t.disabled_pins.includes(27)))},directives:[qe.SelectControlValueAccessor,qe.NgControlStatus,qe.NgModel,qe.RequiredValidator,qe.NgSelectOption,qe["\u0275angular_packages_forms_forms_x"],Gi],pipes:[Ki],styles:[".line[_ngcontent-%COMP%]{text-decoration:line-through}"]}),Wo);function Zo(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"option",6),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementEnd"]()),2&e){var n=t.$implicit,r=m["\u0275\u0275nextContext"]().index;m["\u0275\u0275propertyInterpolate1"]("value","field",n+8*r,""),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate3"]("",m["\u0275\u0275pipeBind1"](2,4,"settings.thingspeak.field")," ",n," - Channel #",r+1,"")}}var Xo=function(){return[1,2,3,4,5,6,7,8]};function Yo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"optgroup",4),m["\u0275\u0275template"](1,Zo,3,6,"option",5),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275propertyInterpolate2"]("label","ThingSpeak Channel #",t.index+1," ",t.$implicit.name,""),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngForOf",m["\u0275\u0275pureFunction0"](3,Xo)))}var Jo,ea=function(e){return{value:e}},ta=((Jo=function(){function e(){g(this,e),this.ts_field_id="ts_field",this.ts_fieldChanged=new m.EventEmitter,this.required=!1}return y(e,[{key:"onChange",value:function(e){this.ts_fieldChanged.emit(this.ts_field),console.log("Selected Field: "+this.ts_field)}},{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Jo)},Jo.\u0275cmp=m["\u0275\u0275defineComponent"]({type:Jo,selectors:[["settings-ts-field"]],inputs:{label:"label",ts_field_id:"ts_field_id",ts_field:"ts_field",required:"required",channels:"channels"},outputs:{ts_fieldChanged:"ts_fieldChanged"},decls:7,vars:16,consts:[[3,"for"],[1,"custom-select",3,"ngModel","id","name","required","ngModelChange"],[3,"ngValue","translate"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"label",0),m["\u0275\u0275text"](1),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](2,"select",1),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.ts_field=e})("ngModelChange",function(e){return t.onChange(e)}),m["\u0275\u0275element"](3,"option",2),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275template"](6,Yo,2,4,"optgroup",3),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275propertyInterpolate"]("for",t.ts_field_id),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](t.label),m["\u0275\u0275advance"](1),m["\u0275\u0275propertyInterpolate"]("id",t.ts_field_id),m["\u0275\u0275propertyInterpolate"]("name",t.ts_field_id),m["\u0275\u0275property"]("ngModel",t.ts_field)("required",t.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](4,9,"buttons.select",m["\u0275\u0275pureFunction1"](14,ea,m["\u0275\u0275pipeBind1"](5,12,"settings.thingspeak.field")))),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngForOf",t.channels))},directives:[qe.SelectControlValueAccessor,qe.NgControlStatus,qe.NgModel,qe.RequiredValidator,qe.NgSelectOption,qe["\u0275angular_packages_forms_forms_x"],Gi,b.k],pipes:[Ki],styles:[""]}),Jo);function na(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275element"](1,"div",14),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementStart"](3,"button",15),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().next_step()}),m["\u0275\u0275text"](4),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](2,2,"settings.sensors.calibration.step0"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate1"](" \u2b46 ",m["\u0275\u0275pipeBind1"](5,4,"settings.sensors.calibration.btnNext")," "))}function ra(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275element"](1,"div",14),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementStart"](3,"button",16),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().next_step()}),m["\u0275\u0275text"](4),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](2,3,"settings.sensors.calibration.step1"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("disabled",r.isLoading),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" \u2b46 ",m["\u0275\u0275pipeBind1"](5,5,"settings.sensors.calibration.btnNext")," ")}}function ia(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275element"](1,"div",14),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementStart"](3,"p"),m["\u0275\u0275elementStart"](4,"input",17),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().calibration_weight=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"button",16),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().next_step()}),m["\u0275\u0275text"](7),m["\u0275\u0275pipe"](8,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](2,7,"settings.sensors.calibration.step2"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](5,9,"settings.sensors.calibration.weightPlaceholder")),m["\u0275\u0275property"]("min",0)("max",3e5)("ngModel",r.calibration_weight),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("disabled",r.isLoading),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" \u2b46 ",m["\u0275\u0275pipeBind1"](8,11,"settings.sensors.calibration.btnNext")," ")}}function oa(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275element"](1,"div",14),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementStart"](3,"button",15),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().next_step()}),m["\u0275\u0275text"](4),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](2,2,"settings.sensors.calibration.step3"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate1"](" \u2b46 ",m["\u0275\u0275pipeBind1"](5,4,"settings.sensors.calibration.btnFinish")," "))}function aa(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275element"](1,"br"),m["\u0275\u0275text"](2,"Output: "),m["\u0275\u0275elementStart"](3,"pre",18),m["\u0275\u0275text"](4),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate"](n.result)}}function ua(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"button",11),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().step_back()}),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("disabled",r.isLoading),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"]("\u2b45 ",m["\u0275\u0275pipeBind1"](2,2,"settings.sensors.calibration.btnBack"),"")}}var sa,la=((sa=function(){function e(t){g(this,e),this.appService=t,this.isLoading=!1,this.step=0,this.calibration_weight=5e3,this.weight1=0,this.weight2=0,this.offset=0,this.reference_unit=1,this.calibrationChange=new m.EventEmitter,this.closeModal=new m.EventEmitter}return y(e,[{key:"ngOnInit",value:function(){}},{key:"round",value:function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}},{key:"step_back",value:function(){this.step--,this.step<=0&&(this.step=0),this.result=null}},{key:"next_step",value:function(){this.result=null,this.step<=0?this.step++:1===this.step||2===this.step?this.measure_weight():this.step>=3&&(this.finish_calibration(),this.step++),this.step>3&&(this.step=0)}},{key:"measure_weight",value:function(){var e=this;this.isLoading=!0,this.result=null,this.appService.getWeight(this.sensor).timeout(12e4).finally(function(){e.isLoading=!1,e.step++}).subscribe(function(t){e.result=t;var n=parseFloat(t);n=isNaN(n)?0:n,1===e.step?(e.weight1=n,e.offset=e.round(e.weight1,0)):2===e.step&&(e.weight2=n,e.reference_unit=e.round((e.weight2-e.offset)/e.calibration_weight,4)),e.reference_unit||(e.reference_unit=1),e.reference_unit<0&&(e.reference_unit=-1*e.reference_unit),e.offset||(e.offset=0),console.log("weight:"+n+" calibration_weight:"+e.calibration_weight+" offset:"+e.offset+" reference_unit:"+e.reference_unit)},function(e){console.error(e)})}},{key:"finish_calibration",value:function(){this.calibrationChange.emit({offset:this.offset,reference_unit:this.reference_unit}),this.close_modal()}},{key:"close_modal",value:function(){this.step=0,this.closeModal.emit(!1)}}]),e}()).\u0275fac=function(e){return new(e||sa)(m["\u0275\u0275directiveInject"](no))},sa.\u0275cmp=m["\u0275\u0275defineComponent"]({type:sa,selectors:[["sensors-weight-calibration"]],inputs:{sensor:"sensor"},outputs:{calibrationChange:"calibrationChange",closeModal:"closeModal"},decls:24,vars:15,consts:[["tabindex","0","role","dialog",1,"modal","fade","show",2,"display","block"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[4,"ngIf"],[1,"modal-footer"],["type","button","class","btn btn-sm btn-primary",3,"disabled","click",4,"ngIf"],["type","button",1,"btn","btn-sm","btn-primary",3,"disabled","click"],["type","button","data-dismiss","modal",1,"btn","btn-sm","btn-secondary",3,"click"],[1,"modal-backdrop","fade","show"],[3,"innerHTML"],[1,"btn","btn-primary",3,"click"],[1,"btn","btn-primary",3,"disabled","click"],["type","number","step","1","required","",1,"form-control",2,"max-width","200px",3,"min","max","ngModel","placeholder","ngModelChange"],[1,"pre-scrollable"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"div",1),m["\u0275\u0275elementStart"](2,"div",2),m["\u0275\u0275elementStart"](3,"div",3),m["\u0275\u0275elementStart"](4,"h5",4),m["\u0275\u0275text"](5),m["\u0275\u0275pipe"](6,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"button",5),m["\u0275\u0275listener"]("click",function(){return t.close_modal()}),m["\u0275\u0275elementStart"](8,"span",6),m["\u0275\u0275text"](9,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"div",7),m["\u0275\u0275template"](11,na,6,6,"div",8),m["\u0275\u0275template"](12,ra,6,7,"div",8),m["\u0275\u0275template"](13,ia,9,13,"div",8),m["\u0275\u0275template"](14,oa,6,6,"div",8),m["\u0275\u0275template"](15,aa,5,1,"ng-container",8),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](16,"div",9),m["\u0275\u0275template"](17,ua,3,4,"button",10),m["\u0275\u0275elementStart"](18,"button",11),m["\u0275\u0275listener"]("click",function(){return t.next_step()}),m["\u0275\u0275text"](19),m["\u0275\u0275pipe"](20,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"button",12),m["\u0275\u0275listener"]("click",function(){return t.close_modal()}),m["\u0275\u0275text"](22,"Close"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](23,"div",13)),2&e&&(m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](6,11,"settings.sensors.calibration.title")),m["\u0275\u0275advance"](5),m["\u0275\u0275classProp"]("spinner",t.isLoading),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",0===t.step),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",1===t.step),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",2===t.step),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",3===t.step),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.result),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",t.step>0),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("disabled",t.isLoading),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"]("",m["\u0275\u0275pipeBind1"](20,13,"settings.sensors.calibration.btnNext")," \u2b46"))},directives:[b.l,qe.NumberValueAccessor,qe.DefaultValueAccessor,qe.RequiredValidator,vi.MinValidator,vi.MaxValidator,qe.NgControlStatus,qe.NgModel],pipes:[Ki],styles:[""]}),sa);function ca(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"option",34),m["\u0275\u0275text"](2),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=t.$implicit;m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",n),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](n)}}var da=function(e,t,n){return[e,t,n]};function fa(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"settings-gpio-field",17),m["\u0275\u0275listener"]("fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).$implicit.pin=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementContainerEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](2).$implicit,i=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("label","3.3V GPIO")("field_id","ds18b20_3Vpin")("field",r.pin)("required",!1)("disabled_pins",m["\u0275\u0275pureFunction3"](5,da,i.settings.w1gpio,i.settings.led_pin,i.settings.button_pin))}}function ha(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",35),m["\u0275\u0275elementStart"](1,"a",6),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",7),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.deviceId"),m["\u0275\u0275sanitizeHtml"]))}function pa(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",36),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275element"](3,"br"),m["\u0275\u0275text"](4),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementStart"](6,"a",37),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](3).getTemperatureSensors()}),m["\u0275\u0275text"](7),m["\u0275\u0275pipe"](8,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](9),m["\u0275\u0275pipe"](10,"translate"),m["\u0275\u0275elementEnd"]()}2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](2,4,"alerts.noTempSensorFound"),""),m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](5,6,"settings.sensors.checkWires")," "),m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](8,8,"buttons.refresh")),m["\u0275\u0275advance"](2),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](10,10,"settings.sensors.checkWiresSuffix")," "))}var va=function(e){return{"my-bg":e}},ga=function(){return{value:"Device-ID"}},ma=function(e,t){return[e,t]};function ya(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",18),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",11),m["\u0275\u0275elementStart"](3,"div",23),m["\u0275\u0275elementStart"](4,"label",24),m["\u0275\u0275text"](5,"Sensor Device-ID"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"select",25),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.device_id=e}),m["\u0275\u0275element"](7,"option",20),m["\u0275\u0275pipe"](8,"translate"),m["\u0275\u0275template"](9,ca,3,2,"ng-container",2),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"div",23),m["\u0275\u0275elementStart"](11,"settings-ts-field",26),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field=e}),m["\u0275\u0275pipe"](12,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"div",11),m["\u0275\u0275elementStart"](14,"div",23),m["\u0275\u0275elementStart"](15,"settings-gpio-field",17),m["\u0275\u0275listener"]("fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).settings.w1gpio=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](16,"div",23),m["\u0275\u0275elementStart"](17,"label",27),m["\u0275\u0275text"](18),m["\u0275\u0275pipe"](19,"translate"),m["\u0275\u0275pipe"](20,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"input",28),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.offset=e}),m["\u0275\u0275pipe"](22,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](23,"div",11),m["\u0275\u0275elementStart"](24,"div",23),m["\u0275\u0275elementStart"](25,"div",13),m["\u0275\u0275elementStart"](26,"input",29),m["\u0275\u0275listener"]("change",function(e){m["\u0275\u0275restoreView"](n);var t=m["\u0275\u0275nextContext"]().$implicit,r=m["\u0275\u0275nextContext"]();return t.pin=r.changeCheck(e)}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](27,"label",30),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](28,fa,2,9,"ng-container",31),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](29,"div",11),m["\u0275\u0275elementStart"](30,"div",12),m["\u0275\u0275template"](31,ha,5,3,"div",32),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](32,"div",11),m["\u0275\u0275elementStart"](33,"div",12),m["\u0275\u0275template"](34,pa,11,12,"div",33),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](),i=r.index,o=r.$implicit,a=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](33,va,i%2==0)),m["\u0275\u0275advance"](6),m["\u0275\u0275property"]("ngModel",o.device_id),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](8,22,"buttons.select",m["\u0275\u0275pureFunction0"](35,ga))),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngForOf",a.temperatureSensors),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](12,25,"settings.thingspeak.field"))("ts_field",o.ts_field)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","1-WIRE GPIO")("field_id","w1gpio")("field",a.settings.w1gpio)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction2"](36,ma,a.settings.led_pin,a.settings.button_pin)),m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate2"]("",m["\u0275\u0275pipeBind1"](19,27,"settings.sensors.temperature")," ",m["\u0275\u0275pipeBind1"](20,29,"settings.sensors.offset")," [\xb0C]"),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](22,31,"settings.sensors.offset")),m["\u0275\u0275property"]("ngModel",o.offset),m["\u0275\u0275advance"](5),m["\u0275\u0275property"]("checked",a.isChecked(o)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.sensors.use3V"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",a.isChecked(o)),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",a.temperatureSensorWasFiltered&&0==a.temperatureSensors.length),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",0==a.temperatureSensors.length)}}function ba(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",18),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",11),m["\u0275\u0275elementStart"](3,"div",23),m["\u0275\u0275elementStart"](4,"settings-ts-field",38),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",23),m["\u0275\u0275elementStart"](7,"settings-ts-field",38),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_humidity=e}),m["\u0275\u0275pipe"](8,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"div",11),m["\u0275\u0275elementStart"](10,"div",23),m["\u0275\u0275elementStart"](11,"settings-ts-field",38),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_air_pressure=e}),m["\u0275\u0275pipe"](12,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"div",23),m["\u0275\u0275elementStart"](14,"settings-ts-field",38),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_air_quality=e}),m["\u0275\u0275pipe"](15,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](16,"div",11),m["\u0275\u0275elementStart"](17,"div",23),m["\u0275\u0275elementStart"](18,"label",39),m["\u0275\u0275text"](19),m["\u0275\u0275pipe"](20,"translate"),m["\u0275\u0275pipe"](21,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](22,"input",40),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.offset=e}),m["\u0275\u0275pipe"](23,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](),i=r.index,o=r.$implicit,a=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](35,va,i%2==0)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](5,21,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",o.ts_field_temperature)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](8,23,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",o.ts_field_humidity)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](12,25,"settings.sensors.pressure"))("ts_field_id","ts_field_air_pressure")("ts_field",o.ts_field_air_pressure)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](15,27,"settings.sensors.quality"))("ts_field_id","ts_field_air_quality")("ts_field",o.ts_field_air_quality)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate2"]("",m["\u0275\u0275pipeBind1"](20,29,"settings.sensors.temperature")," ",m["\u0275\u0275pipeBind1"](21,31,"settings.sensors.offset")," [\xb0C]"),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](23,33,"settings.sensors.offset")),m["\u0275\u0275property"]("ngModel",o.offset)}}function _a(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"sensors-weight-calibration",60),m["\u0275\u0275listener"]("closeModal",function(e){m["\u0275\u0275restoreView"](n);var t=m["\u0275\u0275nextContext"](2).index;return m["\u0275\u0275nextContext"]().showCalibration[t]=e})("calibrationChange",function(e){m["\u0275\u0275restoreView"](n);var t=m["\u0275\u0275nextContext"](2).$implicit;return t.offset=e.offset,t.reference_unit=e.reference_unit}),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](2).$implicit;m["\u0275\u0275property"]("sensor",r)}}var wa=function(e){return{field:e}};function ka(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.required",m["\u0275\u0275pureFunction1"](6,wa,m["\u0275\u0275pipeBind1"](3,4,"settings.sensors.scale")))," "))}function Ca(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.length",m["\u0275\u0275pureFunction1"](6,wa,m["\u0275\u0275pipeBind1"](3,4,"settings.sensors.scale")))," "))}function xa(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",61),m["\u0275\u0275template"](1,ka,4,8,"div",31),m["\u0275\u0275template"](2,Ca,4,8,"div",31),m["\u0275\u0275elementEnd"]()),2&e){m["\u0275\u0275nextContext"]();var n=m["\u0275\u0275reference"](40);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",(null==n?null:n.errors.min)||(null==n?null:n.errors.max))}}function $a(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",10),m["\u0275\u0275elementStart"](1,"div",11),m["\u0275\u0275elementStart"](2,"div",23),m["\u0275\u0275element"](3,"label",62),m["\u0275\u0275elementStart"](4,"input",63),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).$implicit.compensation_value=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",23),m["\u0275\u0275element"](7,"label",64),m["\u0275\u0275elementStart"](8,"input",65),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).$implicit.compensation_temp=e}),m["\u0275\u0275pipe"](9,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"div",11),m["\u0275\u0275elementStart"](11,"div",66),m["\u0275\u0275elementStart"](12,"settings-ts-field",67),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).$implicit.ts_field_temperature=e}),m["\u0275\u0275pipe"](13,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](2).$implicit,i=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.sensors.compensationValue"),m["\u0275\u0275advance"](1),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](5,11,"settings.sensors.compensationValuePlaceholder")),m["\u0275\u0275property"]("ngModel",r.compensation_value),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.sensors.compensationTemp"),m["\u0275\u0275advance"](1),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](9,13,"settings.sensors.compensationTempPlaceholder")),m["\u0275\u0275property"]("ngModel",r.compensation_temp),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label",m["\u0275\u0275pipeBind1"](13,15,"settings.sensors.compensationSelectTemp"))("ts_field_id","ts_field_temperature")("ts_field",r.ts_field_temperature)("channels",i.settings.ts_channels)("required",!0)}}var Sa=function(){return{value:"Channel"}};function Ea(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",18),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",11),m["\u0275\u0275elementStart"](3,"div",23),m["\u0275\u0275elementStart"](4,"settings-gpio-field",17),m["\u0275\u0275listener"]("fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.pin_dt=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](5,"div",23),m["\u0275\u0275elementStart"](6,"settings-gpio-field",17),m["\u0275\u0275listener"]("fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.pin_sck=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"div",11),m["\u0275\u0275elementStart"](8,"div",23),m["\u0275\u0275elementStart"](9,"label",41),m["\u0275\u0275text"](10,"HX711 Channel"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](11,"select",42),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.channel=e}),m["\u0275\u0275element"](12,"option",20),m["\u0275\u0275pipe"](13,"translate"),m["\u0275\u0275elementStart"](14,"option",34),m["\u0275\u0275text"](15,"Channel A"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](16,"option",34),m["\u0275\u0275text"](17,"Channel B"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](18,"div",23),m["\u0275\u0275elementStart"](19,"settings-ts-field",26),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field=e}),m["\u0275\u0275pipe"](20,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"div",11),m["\u0275\u0275elementStart"](22,"div",43),m["\u0275\u0275elementStart"](23,"button",44),m["\u0275\u0275listener"]("click",function(){m["\u0275\u0275restoreView"](n);var e=m["\u0275\u0275nextContext"]().index;return m["\u0275\u0275nextContext"]().showCalibration[e]=!0}),m["\u0275\u0275text"](24),m["\u0275\u0275pipe"](25,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](26,_a,1,1,"sensors-weight-calibration",45),m["\u0275\u0275elementStart"](27,"div",23),m["\u0275\u0275elementStart"](28,"label",46),m["\u0275\u0275text"](29),m["\u0275\u0275pipe"](30,"translate"),m["\u0275\u0275pipe"](31,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](32,"input",47),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.offset=e}),m["\u0275\u0275pipe"](33,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](34,"div",23),m["\u0275\u0275elementStart"](35,"label",48),m["\u0275\u0275text"](36),m["\u0275\u0275pipe"](37,"translate"),m["\u0275\u0275pipe"](38,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](39,"input",49,50),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.reference_unit=e}),m["\u0275\u0275pipe"](41,"number"),m["\u0275\u0275pipe"](42,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](43,xa,3,2,"div",51),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](44,"div",11),m["\u0275\u0275elementStart"](45,"div",52),m["\u0275\u0275element"](46,"div",53),m["\u0275\u0275pipe"](47,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](48,"div",52),m["\u0275\u0275element"](49,"div",53),m["\u0275\u0275pipe"](50,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](51,"div",11),m["\u0275\u0275elementStart"](52,"div",12),m["\u0275\u0275elementStart"](53,"div",13),m["\u0275\u0275elementStart"](54,"input",54),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.invert=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](55,"label",55),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](56,"div",11),m["\u0275\u0275elementStart"](57,"div",12),m["\u0275\u0275elementStart"](58,"div",56),m["\u0275\u0275elementStart"](59,"input",57),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.compensation=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](60,"label",58),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](61,"div",12),m["\u0275\u0275template"](62,$a,14,17,"div",59),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275reference"](40),i=m["\u0275\u0275nextContext"](),o=i.index,a=i.$implicit,u=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](66,va,o%2==0)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","GPIO DT")("field_id","pin_dt")("field",a.pin_dt)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction3"](68,da,u.settings.led_pin,u.settings.button_pin,u.settings.w1gpio)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("label","GPIO SCK")("field_id","pin_sck")("field",a.pin_sck)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction3"](72,da,u.settings.led_pin,u.settings.button_pin,u.settings.w1gpio)),m["\u0275\u0275advance"](5),m["\u0275\u0275property"]("ngModel",a.channel),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](13,40,"buttons.select",m["\u0275\u0275pureFunction0"](76,Sa))),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue","A"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue","B"),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](20,43,"settings.thingspeak.field"))("ts_field",a.ts_field)("channels",u.settings.ts_channels),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("disabled",!(a.pin_dt&&a.pin_sck&&a.channel)),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](25,45,"settings.sensors.calibration.guidedTour")," "),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",!0===u.showCalibration[o]),m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate2"]("",m["\u0275\u0275pipeBind1"](30,47,"settings.sensors.weightcell")," ",m["\u0275\u0275pipeBind1"](31,49,"settings.sensors.offset"),""),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](33,51,"settings.sensors.offset")),m["\u0275\u0275property"]("ngModel",a.offset),m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate2"]("",m["\u0275\u0275pipeBind1"](37,53,"settings.sensors.weightcell")," ",m["\u0275\u0275pipeBind1"](38,55,"settings.sensors.scale"),""),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](42,60,"settings.sensors.scale")),m["\u0275\u0275property"]("ngModel",m["\u0275\u0275pipeBind2"](41,57,a.reference_unit,"1.0-4"))("min",1e-4)("max",999.9999),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("ngIf",r.invalid&&(r.dirty||r.touched)),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](47,62,"alerts.hx711.offset"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](50,64,"alerts.hx711.scale"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](5),m["\u0275\u0275property"]("ngModel",a.invert),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.sensors.invert"),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("ngModel",a.compensation),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.sensors.enableCompensation"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",a.compensation)}}var Oa=function(){return{value:"DHT"}};function Ia(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",18),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",11),m["\u0275\u0275elementStart"](3,"div",23),m["\u0275\u0275elementStart"](4,"settings-ts-field",38),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",23),m["\u0275\u0275elementStart"](7,"settings-ts-field",38),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_humidity=e}),m["\u0275\u0275pipe"](8,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"div",11),m["\u0275\u0275elementStart"](10,"div",23),m["\u0275\u0275elementStart"](11,"settings-gpio-field",17),m["\u0275\u0275listener"]("fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.pin=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](12,"div",23),m["\u0275\u0275element"](13,"label",68),m["\u0275\u0275elementStart"](14,"select",69),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.dht_type=e}),m["\u0275\u0275element"](15,"option",20),m["\u0275\u0275pipe"](16,"translate"),m["\u0275\u0275elementStart"](17,"option",34),m["\u0275\u0275text"](18,"DHT11"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"option",34),m["\u0275\u0275text"](20,"DHT22"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"option",34),m["\u0275\u0275text"](22,"AM2302"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](23,"div",11),m["\u0275\u0275elementStart"](24,"div",23),m["\u0275\u0275elementStart"](25,"label",70),m["\u0275\u0275text"](26),m["\u0275\u0275pipe"](27,"translate"),m["\u0275\u0275pipe"](28,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](29,"input",71),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.offset=e}),m["\u0275\u0275pipe"](30,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](),i=r.index,o=r.$implicit,a=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](38,va,i%2==0)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](5,25,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",o.ts_field_temperature)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](8,27,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",o.ts_field_humidity)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","GPIO")("field_id","pin")("field",o.pin)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction3"](40,da,a.settings.led_pin,a.settings.button_pin,a.settings.w1gpio)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.sensors.selectType"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",o.dht_type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](16,29,"buttons.select",m["\u0275\u0275pureFunction0"](44,Oa))),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",11),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",22),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",2302),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate2"]("",m["\u0275\u0275pipeBind1"](27,32,"settings.sensors.temperature")," ",m["\u0275\u0275pipeBind1"](28,34,"settings.sensors.offset")," [\xb0C]"),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](30,36,"settings.sensors.offset")),m["\u0275\u0275property"]("ngModel",o.offset)}}var Ta=function(){return{value:"MAX"}};function ja(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",18),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",11),m["\u0275\u0275elementStart"](3,"div",23),m["\u0275\u0275elementStart"](4,"settings-gpio-field",17),m["\u0275\u0275listener"]("fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.pin_cs=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](5,"div",23),m["\u0275\u0275elementStart"](6,"settings-gpio-field",17),m["\u0275\u0275listener"]("fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.pin_clock=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"div",11),m["\u0275\u0275elementStart"](8,"div",23),m["\u0275\u0275elementStart"](9,"settings-gpio-field",17),m["\u0275\u0275listener"]("fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.pin=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"div",23),m["\u0275\u0275element"](11,"label",68),m["\u0275\u0275elementStart"](12,"select",72),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.max_type=e}),m["\u0275\u0275element"](13,"option",20),m["\u0275\u0275pipe"](14,"translate"),m["\u0275\u0275elementStart"](15,"option",34),m["\u0275\u0275text"](16,"MAX6675"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](17,"option",34),m["\u0275\u0275text"](18,"MAX31855"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"div",11),m["\u0275\u0275elementStart"](20,"div",23),m["\u0275\u0275elementStart"](21,"label",73),m["\u0275\u0275text"](22),m["\u0275\u0275pipe"](23,"translate"),m["\u0275\u0275pipe"](24,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](25,"input",74),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.offset=e}),m["\u0275\u0275pipe"](26,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](27,"div",23),m["\u0275\u0275elementStart"](28,"settings-ts-field",38),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field=e}),m["\u0275\u0275pipe"](29,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](),i=r.index,o=r.$implicit,a=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](41,va,i%2==0)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","Chip-Select (CS)-GPIO")("field_id","pin_cs")("field",o.pin_cs)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction3"](43,da,a.settings.led_pin,a.settings.button_pin,a.settings.w1gpio)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("label","Clock (CLK)-GPIO")("field_id","pin_clock")("field",o.pin_clock)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction3"](47,da,a.settings.led_pin,a.settings.button_pin,a.settings.w1gpio)),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","Daten (MISO)-GPIO")("field_id","pin_miso")("field",o.pin)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction3"](51,da,a.settings.led_pin,a.settings.button_pin,a.settings.w1gpio)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.sensors.selectType"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",o.max_type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](14,30,"buttons.select",m["\u0275\u0275pureFunction0"](55,Ta))),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",6675),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",31855),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate2"]("",m["\u0275\u0275pipeBind1"](23,33,"settings.sensors.temperature")," ",m["\u0275\u0275pipeBind1"](24,35,"settings.sensors.offset")," [\xb0C]"),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](26,37,"settings.sensors.offset")),m["\u0275\u0275property"]("ngModel",o.offset),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](29,39,"settings.thingspeak.field"))("ts_field_id","ts_field")("ts_field",o.ts_field)("channels",a.settings.ts_channels)}}function Aa(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",18),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",11),m["\u0275\u0275elementStart"](3,"div",23),m["\u0275\u0275elementStart"](4,"settings-ts-field",38),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",23),m["\u0275\u0275elementStart"](7,"settings-ts-field",38),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_humidity=e}),m["\u0275\u0275pipe"](8,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"div",11),m["\u0275\u0275elementStart"](10,"div",23),m["\u0275\u0275elementStart"](11,"settings-ts-field",38),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_air_pressure=e}),m["\u0275\u0275pipe"](12,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"div",11),m["\u0275\u0275elementStart"](14,"div",23),m["\u0275\u0275elementStart"](15,"label",75),m["\u0275\u0275text"](16),m["\u0275\u0275pipe"](17,"translate"),m["\u0275\u0275pipe"](18,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"input",76),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.offset=e}),m["\u0275\u0275pipe"](20,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](),i=r.index,o=r.$implicit,a=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](29,va,i%2==0)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](5,17,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",o.ts_field_temperature)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](8,19,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",o.ts_field_humidity)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](12,21,"settings.sensors.pressure"))("ts_field_id","ts_field_air_pressure")("ts_field",o.ts_field_air_pressure)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate2"]("",m["\u0275\u0275pipeBind1"](17,23,"settings.sensors.temperature")," ",m["\u0275\u0275pipeBind1"](18,25,"settings.sensors.offset")," [\xb0C]"),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](20,27,"settings.sensors.offset")),m["\u0275\u0275property"]("ngModel",o.offset)}}var Va=function(){return{value:"VCC"}};function Pa(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"select",81),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).$implicit.I2CVoltage=e}),m["\u0275\u0275element"](2,"option",79),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementStart"](4,"option",34),m["\u0275\u0275text"](5,"Max. 16.5V 3.3V\xd7(30k\u2126\xf77.5k\u2126+1) (default)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"option",34),m["\u0275\u0275text"](7,"Max. 25V 5V\xd7(30k\u2126\xf77.5k\u2126+1)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](8,"option",34),m["\u0275\u0275text"](9,"Max. 29.7V 3.3V\xd7(40k\u2126\xf75k\u2126+1)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"option",82),m["\u0275\u0275elementStart"](11,"em"),m["\u0275\u0275text"](12),m["\u0275\u0275pipe"](13,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementContainerEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](2).$implicit;m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",r.I2CVoltage),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](3,8,"buttons.select",m["\u0275\u0275pureFunction0"](13,Va))),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",16.5),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",25),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",29.7),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",null),m["\u0275\u0275advance"](2),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](13,11,"settings.sensors.customValue"))}}function Ma(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"div",83),m["\u0275\u0275elementStart"](2,"input",84),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).$implicit.I2CVoltage=e}),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](4,"div",85),m["\u0275\u0275elementStart"](5,"button",86),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).$implicit.I2CVoltage=void 0}),m["\u0275\u0275text"](6,"X"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementContainerEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](2).$implicit;m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](3,2,"settings.sensors.selectI2CVoltage_c")),m["\u0275\u0275property"]("ngModel",r.I2CVoltage)}}var Na=function(){return{value:"PIN"}},Da=function(){return[void 0,16.5,25,29.7]};function Ra(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",18),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",11),m["\u0275\u0275elementStart"](3,"div",23),m["\u0275\u0275elementStart"](4,"settings-ts-field",38),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",23),m["\u0275\u0275element"](7,"label",77),m["\u0275\u0275elementStart"](8,"select",78),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.pin=e}),m["\u0275\u0275element"](9,"option",79),m["\u0275\u0275pipe"](10,"translate"),m["\u0275\u0275elementStart"](11,"option",34),m["\u0275\u0275text"](12,"AIN0"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"option",34),m["\u0275\u0275text"](14,"AIN1"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](15,"option",34),m["\u0275\u0275text"](16,"AIN2 (default)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](17,"option",34),m["\u0275\u0275text"](18,"AIN3"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"div",11),m["\u0275\u0275elementStart"](20,"div",23),m["\u0275\u0275element"](21,"label",80),m["\u0275\u0275template"](22,Pa,14,14,"ng-container",31),m["\u0275\u0275template"](23,Ma,7,4,"ng-container",31),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](),i=r.index,o=r.$implicit,a=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](21,va,i%2==0)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](5,16,"settings.thingspeak.field"))("ts_field_id","ts_field")("ts_field",o.ts_field)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.sensors.selectPin"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",o.pin),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](10,18,"buttons.select",m["\u0275\u0275pureFunction0"](23,Na))),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",0),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",1),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",2),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",3),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("translate","settings.sensors.selectI2CVoltage"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",m["\u0275\u0275pureFunction0"](24,Da).includes(o.I2CVoltage)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",!m["\u0275\u0275pureFunction0"](25,Da).includes(o.I2CVoltage))}}function Fa(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",18),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",11),m["\u0275\u0275elementStart"](3,"div",23),m["\u0275\u0275elementStart"](4,"settings-ts-field",38),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",11),m["\u0275\u0275elementStart"](7,"div",23),m["\u0275\u0275elementStart"](8,"settings-ts-field",38),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=e}),m["\u0275\u0275pipe"](9,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"div",23),m["\u0275\u0275elementStart"](11,"settings-ts-field",38),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_air_pressure=e}),m["\u0275\u0275pipe"](12,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](),i=r.index,o=r.$implicit,a=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](19,va,i%2==0)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](5,13,"settings.sensors.co2"))("ts_field_id","ts_field_temperature")("ts_field",o.ts_field)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](9,15,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",o.ts_field_temperature)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](12,17,"settings.sensors.pressure"))("ts_field_id","ts_field_air_pressure")("ts_field",o.ts_field_air_pressure)("channels",a.settings.ts_channels)}}var La=function(e){return{value:e}};function Ba(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"tr",18),m["\u0275\u0275elementStart"](2,"td"),m["\u0275\u0275elementStart"](3,"select",19),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.$implicit.type=e}),m["\u0275\u0275element"](4,"option",20),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275pipe"](6,"translate"),m["\u0275\u0275elementStart"](7,"option",20),m["\u0275\u0275text"](8,"Temperatursensor (DS18b20)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"option",20),m["\u0275\u0275text"](10,"BME680 (Temperatur+Luftfeuchtigkeit+Luftdruck+Qualit\xe4t)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](11,"option",20),m["\u0275\u0275text"](12,"BME280 (Temperatur+Luftfeuchtigkeit+Luftdruck)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"option",20),m["\u0275\u0275text"](14,"Gewichtssensor (A/D: HX711)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](15,"option",20),m["\u0275\u0275text"](16,"Luftfeuchtigkeit und Temperatur (DHT)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](17,"option",20),m["\u0275\u0275text"](18,"Temperatursensor (MAX6675/MAX31855)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"option",20),m["\u0275\u0275text"](20,"Voltmeter (A/D: PCF8591)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"option",20),m["\u0275\u0275text"](22,"CO2, Temp, Luftdruck (EE895)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](23,"td"),m["\u0275\u0275elementStart"](24,"button",21),m["\u0275\u0275listener"]("click",function(){m["\u0275\u0275restoreView"](n);var e=t.index;return m["\u0275\u0275nextContext"]().removeSensor(e)}),m["\u0275\u0275pipe"](25,"translate"),m["\u0275\u0275text"](26," \u232b "),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](27,ya,35,39,"tr",22),m["\u0275\u0275template"](28,ba,24,37,"tr",22),m["\u0275\u0275template"](29,Ea,63,77,"tr",22),m["\u0275\u0275template"](30,Ia,31,45,"tr",22),m["\u0275\u0275template"](31,ja,30,56,"tr",22),m["\u0275\u0275template"](32,Aa,21,31,"tr",22),m["\u0275\u0275template"](33,Ra,24,26,"tr",22),m["\u0275\u0275template"](34,Fa,13,21,"tr",22),m["\u0275\u0275elementContainerEnd"]()}if(2&e){var r=t.$implicit,i=t.index;m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](36,va,i%2==0)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](5,29,"buttons.select",m["\u0275\u0275pureFunction1"](38,La,m["\u0275\u0275pipeBind1"](6,32,"settings.sensors.sensor")))),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngValue",0)("translate","settings.sensors.sensor_0"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",1)("translate","settings.sensors.sensor_1"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",5)("translate","settings.sensors.sensor_5"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",2)("translate","settings.sensors.sensor_2"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",3)("translate","settings.sensors.sensor_3"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",4)("translate","settings.sensors.sensor_4"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",6)("translate","settings.sensors.sensor_6"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",7)("translate","settings.sensors.sensor_7"),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("title",m["\u0275\u0275pipeBind1"](25,34,"buttons.remove")),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",0==r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",1==r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",2==r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",3==r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",4==r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",5==r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",6==r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",7==r.type)}}var Ha,Ua=((Ha=function(){function e(t){g(this,e),this.appService=t,this.temperatureSensors=[],this.temperatureSensorWasFiltered=!1,this.showCalibration=[],this.settingsChange=new m.EventEmitter}return y(e,[{key:"ngOnInit",value:function(){this.getTemperatureSensors()}},{key:"addSensor",value:function(){this.settings.sensors.push(new Go)}},{key:"removeSensor",value:function(e){this.settings.sensors.splice(e,1)}},{key:"filterTemperatureSensors",value:function(e){var t=e.filter(function(e,t,n){return-1===e.indexOf("00000000")});return this.temperatureSensorWasFiltered=e.length!==t.length,t}},{key:"getTemperatureSensors",value:function(){var e=this;this.appService.getTemperatureSensors().subscribe(function(t){t&&(console.log("unfiltered",t),e.temperatureSensors=e.filterTemperatureSensors(t),console.log("filtered",e.temperatureSensors))},function(e){console.error(e)})}},{key:"isChecked",value:function(e){return e.pin>0}},{key:"changeCheck",value:function(e){return e.target.checked?9:0}},{key:"settings",set:function(e){this.settingsChange.emit(e),this._settings=e},get:function(){return this._settings}}]),e}()).\u0275fac=function(e){return new(e||Ha)(m["\u0275\u0275directiveInject"](no))},Ha.\u0275cmp=m["\u0275\u0275defineComponent"]({type:Ha,selectors:[["app-sensors"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:38,vars:40,consts:[[1,"table","table-bordered","table-sm",2,"position","relative","overflow-x","hidden","overflow-y","auto"],["id","sensors"],[4,"ngFor","ngForOf"],["colspan","2"],[1,"btn","btn-primary",3,"title","click"],["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["data-toggle","collapse","href","#collapseSensor","role","button","aria-expanded","false","aria-controls","collapseSensor",1,"text-danger"],["id","collapseSensor",1,"collapse"],[1,"card","card-body"],[1,"row"],[1,"col-12"],[1,"form-group","form-check"],["type","checkbox","name","debug","id","debug",1,"form-check-input",3,"ngModel","ngModelChange"],["for","debug",1,"form-check-label",3,"innerHTML"],[1,"form-group"],[3,"label","field_id","field","required","disabled_pins","fieldChanged"],[3,"ngClass"],["name","sensor-type","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue","translate"],[1,"btn","btn-danger","float-right",3,"title","click"],[3,"ngClass",4,"ngIf"],[1,"form-group","col-12","col-sm-6"],["for","device_id"],["id","device_id","name","device_id","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"label","ts_field","channels","ts_fieldChanged"],["for","offset_ds18b20"],["type","number","step","0.1","id","offset_ds18b20","name","offset_ds18b20",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["type","checkbox","id","use_3V","name","use_3V",1,"form-check-input",3,"checked","change"],["for","use_3V",1,"form-check-label",3,"translate"],[4,"ngIf"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-info",4,"ngIf"],[3,"ngValue"],["role","alert",1,"alert","alert-warning"],[1,"alert","alert-info"],[3,"routerLink","click"],[3,"label","ts_field_id","ts_field","channels","ts_fieldChanged"],["for","offset_bme680"],["type","number","step","0.1","id","offset_bme680","name","offset_bme680",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","channel"],["name","channel","id","channel","required","",1,"custom-select",3,"ngModel","ngModelChange"],[1,"form-group","col-12"],[1,"btn","btn-sm","btn-outline-primary",2,"width","100%",3,"disabled","click"],["style","z-index:9999;position:absolute",3,"sensor","closeModal","calibrationChange",4,"ngIf"],["for","offset"],["type","number","step","1","id","offset","name","offset","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","reference_unit"],["type","number","step","0.0001","id","reference_unit","name","reference_unit","required","",1,"form-control",3,"ngModel","placeholder","min","max","ngModelChange"],["ref_unit","ngModel"],["class","alert alert-danger col-12","role","alert","style","margin-top:5px",4,"ngIf"],[1,"col-12","col-md-6"],[1,"alert","alert-info",3,"innerHTML"],["type","checkbox","name","invert","id","invert",1,"form-check-input",3,"ngModel","ngModelChange"],["for","invert",1,"form-check-label",3,"translate"],[1,"form-check"],["type","checkbox","id","compensation",1,"form-check-input",3,"ngModel","ngModelChange"],["for","compensation",1,"form-check-label",3,"translate"],["class","card card-body",4,"ngIf"],[2,"z-index","9999","position","absolute",3,"sensor","closeModal","calibrationChange"],["role","alert",1,"alert","alert-danger","col-12",2,"margin-top","5px"],["for","compensation_value",3,"translate"],["type","number","step","0.01","id","compensation_value","name","compensation_value","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","compensation_temp",3,"translate"],["type","number","step","0.01","id","compensation_temp","name","compensation_temp","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],[1,"col-12","col-sm-6"],[3,"label","ts_field_id","ts_field","channels","required","ts_fieldChanged"],["for","dht_type",3,"translate"],["id","dht_type","name","dht_type","required","",1,"custom-select",3,"ngModel","ngModelChange"],["for","offset_dht"],["type","number","step","0.1","id","offset_dht","name","offset_dht",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["id","max_type","name","max_type","required","",1,"custom-select",3,"ngModel","ngModelChange"],["for","offset_max"],["type","number","step","0.1","id","offset_max","name","offset",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","offset_bme280"],["type","number","step","0.1","id","offset_bme280","name","offset_bme280",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","pcf8591_pin",3,"translate"],["id","pcf8591_pin","name","pcf8591_pin","required","",1,"custom-select",3,"ngModel","ngModelChange"],["disabled","",3,"ngValue","translate"],["for","ic2_voltage",3,"translate"],["id","ic2_voltage","name","ic2_voltage","required","",1,"custom-select",3,"ngModel","ngModelChange"],[2,"font-style","italic",3,"ngValue"],[1,"input-group","mb-3"],["type","number","step","0.01","id","ic2_voltage_c","name","ic2_voltage_c",1,"form-control",3,"ngModel","placeholder","ngModelChange"],[1,"input-group-append"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"table",0),m["\u0275\u0275elementStart"](1,"tbody",1),m["\u0275\u0275template"](2,Ba,35,40,"ng-container",2),m["\u0275\u0275elementStart"](3,"tr"),m["\u0275\u0275elementStart"](4,"td",3),m["\u0275\u0275elementStart"](5,"button",4),m["\u0275\u0275listener"]("click",function(){return t.addSensor()}),m["\u0275\u0275pipe"](6,"translate"),m["\u0275\u0275text"](7),m["\u0275\u0275pipe"](8,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"div",5),m["\u0275\u0275elementStart"](10,"a",6),m["\u0275\u0275text"](11,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](12,"span",7),m["\u0275\u0275pipe"](13,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](14,"p"),m["\u0275\u0275elementStart"](15,"a",8),m["\u0275\u0275text"](16),m["\u0275\u0275pipe"](17,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](18,"div",9),m["\u0275\u0275elementStart"](19,"div",10),m["\u0275\u0275elementStart"](20,"div",11),m["\u0275\u0275elementStart"](21,"div",12),m["\u0275\u0275elementStart"](22,"div",13),m["\u0275\u0275elementStart"](23,"input",14),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.debug=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](24,"label",15),m["\u0275\u0275pipe"](25,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](26,"hr"),m["\u0275\u0275elementStart"](27,"div",16),m["\u0275\u0275elementStart"](28,"settings-gpio-field",17),m["\u0275\u0275listener"]("fieldChanged",function(e){return t.settings.led_pin=e}),m["\u0275\u0275pipe"](29,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](30,"div",16),m["\u0275\u0275elementStart"](31,"settings-gpio-field",17),m["\u0275\u0275listener"]("fieldChanged",function(e){return t.settings.button_pin=e}),m["\u0275\u0275pipe"](32,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](33,"div",5),m["\u0275\u0275elementStart"](34,"a",6),m["\u0275\u0275text"](35,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](36),m["\u0275\u0275pipe"](37,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngForOf",t.settings.sensors),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("title",m["\u0275\u0275pipeBind1"](6,18,"buttons.add")),m["\u0275\u0275advance"](2),m["\u0275\u0275textInterpolate1"](" + ",m["\u0275\u0275pipeBind1"](8,20,"settings.sensors.addSensor")," "),m["\u0275\u0275advance"](5),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](13,22,"alerts.gpio"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](17,24,"settings.sensors.advancedSettings")," "),m["\u0275\u0275advance"](7),m["\u0275\u0275property"]("ngModel",t.settings.debug),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](25,26,"settings.sensors.debug"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label",m["\u0275\u0275pipeBind1"](29,28,"settings.sensors.ledPin"))("field_id","led_pin")("field",t.settings.led_pin)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction2"](34,ma,t.settings.button_pin,t.settings.w1gpio)),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label",m["\u0275\u0275pipeBind1"](32,30,"settings.sensors.buttonPin"))("field_id","button_pin")("field",t.settings.button_pin)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction2"](37,ma,t.settings.led_pin,t.settings.w1gpio)),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](37,32,"alerts.afterSave")," "))},directives:[b.k,qe.CheckboxControlValueAccessor,qe.NgControlStatus,qe.NgModel,Qo,b.j,qe.SelectControlValueAccessor,qe.RequiredValidator,qe.NgSelectOption,qe["\u0275angular_packages_forms_forms_x"],Gi,b.l,ta,qe.NumberValueAccessor,qe.DefaultValueAccessor,Lr,vi.MinValidator,vi.MaxValidator,la],pipes:[Ki,b.d],styles:[""]}),Ha);function qa(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"pre",8),m["\u0275\u0275text"](1),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](n.debugInfo)}}function Wa(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"li",12),m["\u0275\u0275elementStart"](1,"strong"),m["\u0275\u0275text"](2),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](4),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](),r=n.$implicit,i=n.index,o=m["\u0275\u0275nextContext"](3);m["\u0275\u0275propertyInterpolate1"]("id","abc_",r,""),m["\u0275\u0275advance"](2),m["\u0275\u0275textInterpolate2"]("",m["\u0275\u0275pipeBind1"](3,4,"settings.thingspeak.field")," ",i+1,""),m["\u0275\u0275advance"](2),m["\u0275\u0275textInterpolate1"](": ",o.thingSpeakFields["field"+(i+1)]," ")}}function za(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275template"](1,Wa,5,6,"li",11),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=t.index,r=m["\u0275\u0275nextContext"](3);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",r.thingSpeakFields["field"+(n+1)]||0===r.thingSpeakFields["field"+(n+1)])}}function Ga(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"ul",9),m["\u0275\u0275template"](1,za,2,1,"ng-container",10),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngForOf",n.numbers)}}function Ka(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275template"](1,qa,2,1,"pre",6),m["\u0275\u0275template"](2,Ga,2,1,"ul",7),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",n.debugInfo),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",n.thingSpeakFields)}}a("Xs6s");var Qa=function(e){return{tab:e}};function Za(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",13),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",2),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind2"](4,1,"settings.measurement.noData",m["\u0275\u0275pureFunction1"](6,Qa,m["\u0275\u0275pipeBind1"](5,4,"settings.sensors.title"))),m["\u0275\u0275sanitizeHtml"]))}function Xa(e,t){1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"div",14),m["\u0275\u0275elementStart"](2,"div",15),m["\u0275\u0275elementStart"](3,"div",15),m["\u0275\u0275elementStart"](4,"div",15),m["\u0275\u0275element"](5,"div",15),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementContainerEnd"]())}var Ya,Ja=((Ya=function(){function e(t){g(this,e),this.appService=t,this.isLoading=!1,this.noData=!1,this.numbers=Array(80).fill(0).map(function(e,t){return t})}return y(e,[{key:"ngOnInit",value:function(){}},{key:"getMeasurement",value:function(){var e=this;this.measurement=null,this.isLoading=!0,this.appService.getMeasurement().finally(function(){return e.isLoading=!1}).subscribe(function(t){console.log(t),t?(e.measurement=t,e.noData=!1):e.noData=!0},function(e){console.error(e)})}},{key:"debugInfo",get:function(){return this.measurement&&this.measurement.includes("{")?this.measurement.split("{")[0]:null}},{key:"thingSpeakFields",get:function(){if(this.measurement&&this.measurement.includes("{")){var e=this.measurement.split("{");return e="{"+e[e.length-1],JSON.parse(e)}return null}}]),e}()).\u0275fac=function(e){return new(e||Ya)(m["\u0275\u0275directiveInject"](no))},Ya.\u0275cmp=m["\u0275\u0275defineComponent"]({type:Ya,selectors:[["app-measurement"]],decls:11,vars:13,consts:[["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],[4,"ngIf"],["class","alert alert-warning","role","alert",4,"ngIf"],["type","button","role","button",1,"btn","btn-primary","btn-sm",3,"disabled","translate","click"],["class","pre-scrollable",4,"ngIf"],["class","list-group",4,"ngIf"],[1,"pre-scrollable"],[1,"list-group"],[4,"ngFor","ngForOf"],["class","list-group-item",3,"id",4,"ngIf"],[1,"list-group-item",3,"id"],["role","alert",1,"alert","alert-warning"],["id","circle"],[1,"loader"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",2),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](6,Ka,3,2,"ng-container",3),m["\u0275\u0275template"](7,Za,6,8,"div",4),m["\u0275\u0275template"](8,Xa,6,0,"ng-container",3),m["\u0275\u0275element"](9,"br"),m["\u0275\u0275elementStart"](10,"button",5),m["\u0275\u0275listener"]("click",function(){return t.getMeasurement()}),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind2"](4,6,"settings.measurement.info",m["\u0275\u0275pureFunction1"](11,Qa,m["\u0275\u0275pipeBind1"](5,9,"settings.sensors.title"))),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",t.measurement),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.noData&&!t.measurement),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.isLoading),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("disabled",t.isLoading)("translate","settings.measurement.get"))},directives:[b.l,Gi,b.k],pipes:[Ki],styles:["#circle[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:150px;height:150px}.loader[_ngcontent-%COMP%]{width:calc(100% - 0px);height:calc(100% - 0px);border:8px solid #f7f7f7;border-top-color:#ffc107;border-radius:50%;-webkit-animation:rotate 5s linear infinite;animation:rotate 5s linear infinite}@-webkit-keyframes rotate{to{transform:rotate(1turn)}}@keyframes rotate{to{transform:rotate(1turn)}}"]}),Ya),eu=function(e){return{tab:e}};function tu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",17),m["\u0275\u0275elementStart"](1,"a",3),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",4),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind2"](4,1,"settings.offline.noData",m["\u0275\u0275pureFunction1"](6,eu,m["\u0275\u0275pipeBind1"](5,4,"settings.thingspeak.title"))),m["\u0275\u0275sanitizeHtml"]))}function nu(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"div",19),m["\u0275\u0275elementStart"](2,"div",20),m["\u0275\u0275elementStart"](3,"a",21),m["\u0275\u0275text"](4),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"button",22),m["\u0275\u0275listener"]("click",function(){m["\u0275\u0275restoreView"](n);var e=m["\u0275\u0275nextContext"]().$implicit;return m["\u0275\u0275nextContext"]().deleteCsv(e.ts_channel_id)}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]().$implicit,i=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate2"]("href","",i.apiURL,"offlinecsv.php?channelId=",r.ts_channel_id,"",m["\u0275\u0275sanitizeUrl"]),m["\u0275\u0275propertyInterpolate1"]("download","HoneyPi-",r.ts_channel_id,"-export.csv"),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate3"](" ",m["\u0275\u0275pipeBind1"](5,7,"settings.offline.exportButton")," #",r.ts_channel_id," ",r.name," "),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.offline.delete")}}function ru(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275template"](1,nu,7,9,"div",18),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=t.$implicit;m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",n.ts_channel_id)}}var iu,ou=((iu=function(){function e(t){g(this,e),this.appService=t,this.settingsChange=new m.EventEmitter}return y(e,[{key:"ngOnInit",value:function(){this.apiURL="./backend/"}},{key:"deleteCsv",value:function(e){this.appService.deleteCsv(e).subscribe(function(e){},function(e){console.error(e)})}},{key:"settings",set:function(e){this.settingsChange.emit(e),this._settings=e},get:function(){return this._settings}},{key:"isThingSpeakDefined",get:function(){return 0===this.settings.ts_channels.filter(function(e){return e.ts_channel_id>0}).length}}]),e}()).\u0275fac=function(e){return new(e||iu)(m["\u0275\u0275directiveInject"](no))},iu.\u0275cmp=m["\u0275\u0275defineComponent"]({type:iu,selectors:[["app-offline"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:23,vars:22,consts:[[1,"row"],[1,"col-12"],["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],[1,"form-check"],["type","radio","name","offline","id","offline0",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline0",1,"form-check-label",3,"translate"],["type","radio","name","offline","id","offline1",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline1",1,"form-check-label",3,"translate"],["type","radio","name","offline","id","offline2",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline2",1,"form-check-label",3,"translate"],["type","radio","name","offline","id","offline3",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline3",1,"form-check-label",3,"translate"],[1,"h5",3,"translate"],["class","alert alert-warning","role","alert",4,"ngIf"],[4,"ngFor","ngForOf"],["role","alert",1,"alert","alert-warning"],["class","row",4,"ngIf"],[1,"col-12",2,"padding-bottom","15px"],["role","group",1,"btn-group","btn-group-sm"],["target","_blank",1,"btn","btn-primary","btn-sm",3,"href","download"],["type","button","role","button",1,"btn","btn-danger","btn-sm",3,"translate","click"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"div",1),m["\u0275\u0275elementStart"](2,"div",2),m["\u0275\u0275elementStart"](3,"a",3),m["\u0275\u0275text"](4,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](5,"span",4),m["\u0275\u0275pipe"](6,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"div",5),m["\u0275\u0275elementStart"](8,"input",6),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.offline=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](9,"label",7),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"div",5),m["\u0275\u0275elementStart"](11,"input",8),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.offline=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](12,"label",9),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"div",5),m["\u0275\u0275elementStart"](14,"input",10),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.offline=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](15,"label",11),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](16,"div",5),m["\u0275\u0275elementStart"](17,"input",12),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.offline=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](18,"label",13),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](19,"hr"),m["\u0275\u0275element"](20,"h5",14),m["\u0275\u0275template"](21,tu,6,8,"div",15),m["\u0275\u0275template"](22,ru,2,1,"ng-container",16)),2&e&&(m["\u0275\u0275advance"](5),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](6,20,"settings.offline.infoExport"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("value",0)("ngModel",t.settings.offline)("checked",0==t.settings.offline||null==t.settings.offline),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.offline.radio0"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",1)("ngModel",t.settings.offline)("checked",1==t.settings.offline),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.offline.radio1"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",2)("ngModel",t.settings.offline)("checked",2==t.settings.offline),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.offline.radio2"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",3)("ngModel",t.settings.offline)("checked",3==t.settings.offline),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.offline.radio3"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.offline.export"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.isThingSpeakDefined),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngForOf",t.settings.ts_channels))},directives:[qe.RadioControlValueAccessor,qe.DefaultValueAccessor,qe.NgControlStatus,qe.NgModel,Gi,b.l,b.k],pipes:[Ki],styles:[""]}),iu);function au(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"pre",5),m["\u0275\u0275text"](1),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](n.log)}}function uu(e,t){1&e&&m["\u0275\u0275element"](0,"div",6),2&e&&m["\u0275\u0275property"]("translate","settings.log.nofile")}function su(e,t){1&e&&m["\u0275\u0275element"](0,"div",6),2&e&&m["\u0275\u0275property"]("translate","settings.log.empty")}var lu,cu=((lu=function(){function e(t){g(this,e),this.appService=t,this.log=null}return y(e,[{key:"ngOnInit",value:function(){this.getLog()}},{key:"getLog",value:function(){var e=this;this.log=null,this.appService.getLog().subscribe(function(t){e.log=t},function(e){console.error(e)})}},{key:"deleteLog",value:function(){var e=this;this.appService.deleteLog().subscribe(function(t){e.log=t},function(e){console.error(e)})}}]),e}()).\u0275fac=function(e){return new(e||lu)(m["\u0275\u0275directiveInject"](no))},lu.\u0275cmp=m["\u0275\u0275defineComponent"]({type:lu,selectors:[["app-log"]],decls:6,vars:5,consts:[["class","pre-scrollable",4,"ngIf"],["class","alert alert-info",3,"translate",4,"ngIf"],["role","group",1,"btn-group","btn-group-sm"],["type","button","role","button",1,"btn","btn-primary","btn-sm",3,"translate","click"],["type","button","role","button",1,"btn","btn-danger","btn-sm",3,"translate","click"],[1,"pre-scrollable"],[1,"alert","alert-info",3,"translate"]],template:function(e,t){1&e&&(m["\u0275\u0275template"](0,au,2,1,"pre",0),m["\u0275\u0275template"](1,uu,1,1,"div",1),m["\u0275\u0275template"](2,su,1,1,"div",1),m["\u0275\u0275elementStart"](3,"div",2),m["\u0275\u0275elementStart"](4,"button",3),m["\u0275\u0275listener"]("click",function(){return t.getLog()}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](5,"button",4),m["\u0275\u0275listener"]("click",function(){return t.deleteLog()}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275property"]("ngIf",t.log&&"NOFILE"!==t.log),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf","NOFILE"===t.log),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",""==t.log),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.log.get"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.log.delete"))},directives:[b.l,Gi],styles:[""]}),lu);function du(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",23),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",2),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.updateAP"),m["\u0275\u0275sanitizeHtml"]))}function fu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",24),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",2),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.updateNotAP"),m["\u0275\u0275sanitizeHtml"]))}function hu(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"pre",25),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"json"),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"]("Error-Code: ",m["\u0275\u0275pipeBind1"](2,1,n.log),"")}}function pu(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275text"](1),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate2"]("rpi-scripts ",n.versionInfo.result.scripts.tag_name,"\nChangelog:\n",n.versionInfo.result.scripts.body,"")}}function vu(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275text"](1),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate2"]("\nrpi-webinterface ",n.versionInfo.result.webinterface.tag_name,"\nChangelog:\n",n.versionInfo.result.webinterface.body,"")}}function gu(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"pre",25),m["\u0275\u0275text"](2),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"br"),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](3);m["\u0275\u0275advance"](2),m["\u0275\u0275textInterpolate"](n.versionInfo.result.currentVersion)}}function mu(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",26),m["\u0275\u0275elementStart"](1,"b"),m["\u0275\u0275text"](2,"Derzeit installierte Version:"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](3,gu,4,1,"ng-container",22),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",n.versionInfo.result.currentVersion)}}function yu(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",8),m["\u0275\u0275elementStart"](1,"div",26),m["\u0275\u0275elementStart"](2,"b"),m["\u0275\u0275text"](3,"Vef\xfcgbare Versionen:"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](4,"br"),m["\u0275\u0275elementStart"](5,"pre",25),m["\u0275\u0275template"](6,pu,2,2,"ng-container",22),m["\u0275\u0275text"](7,"\n"),m["\u0275\u0275template"](8,vu,2,2,"ng-container",22),m["\u0275\u0275text"](9,"\n"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](10,mu,4,1,"div",27),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](6),m["\u0275\u0275property"]("ngIf",n.versionInfo.result.scripts),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",n.versionInfo.result.webinterface),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",n.versionInfo.result.currentVersion)}}function bu(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"button",28),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().update("update")}),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("disabled",r.isLoading)("translate","settings.update.update")}}function _u(e,t){1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"div",29),m["\u0275\u0275elementStart"](2,"div",30),m["\u0275\u0275elementStart"](3,"div",30),m["\u0275\u0275elementStart"](4,"div",30),m["\u0275\u0275element"](5,"div",30),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementContainerEnd"]())}var wu,ku=((wu=function(){function e(t){g(this,e),this.appService=t,this.log=null,this.isLoading=!1,this.versionInfo=null,this.usePreVersion=!1}return y(e,[{key:"ngOnInit",value:function(){this.apiURL="./backend/"}},{key:"update",value:function(e){var t=this;this.log=null,this.isLoading=!0,this.appService.checkInternet().timeout(15e3).subscribe(function(n){!0===n.connected?t.appService.update(e,t.usePreVersion).finally(function(){return t.isLoading=!1}).subscribe(function(e){console.log(e),t.log=e,window.confirm("Erfolgreich aktualisiert. Die Seite muss aktualisiert werden. Jetzt neuladen?")&&location.reload(!0)},function(e){console.error(e)}):(t.isLoading=!1,alert("No internet connection. Try again with internet connection."))},function(e){console.log(e),t.isLoading=!1,alert("No internet connection. Try again with internet connection.")})}},{key:"getVersionInfo",value:function(){var e=this;this.versionInfo=null,this.log=null,this.isLoading=!0,this.appService.checkInternet().timeout(15e3).subscribe(function(t){!0===t.connected?e.appService.update("versionInfo",e.usePreVersion).finally(function(){return e.isLoading=!1}).subscribe(function(t){try{if(e.versionInfo=t,e.log=null,e.versionInfo.error)throw new Error("Exception occured: "+e.versionInfo.error)}catch(n){console.error(n),e.log=n,e.versionInfo=null}},function(t){e.versionInfo=null,console.error(t),e.log=t,t.name&&"TimeoutError"===t.name?e.log="TimeoutError.":t.name&&"HttpErrorResponse"===t.name&&(e.log="HttpErrorResponse.")}):(e.isLoading=!1,alert("No internet connection. Try again with internet connection."))},function(t){console.log(t),e.isLoading=!1,alert("No internet connection. Try again with internet connection.")})}},{key:"onFileChanged",value:function(e){var t=this,n=e.target.files[0];if(console.log(n),n){var r=new FileReader;r.readAsText(n,"UTF-8"),r.onload=function(e){var n=JSON.parse(e.target.result);n&&window.confirm("Soll die Datei jetzt importiert werden?")&&t.appService.setSettings(n).subscribe(function(e){e&&(console.log(e),window.confirm("Erfolgreich gespeichert. Die Seite muss aktualisiert werden. Jetzt neuladen?")&&location.reload(!0))})},r.onerror=function(e){window.alert("Error reading file.")}}}},{key:"isAccessPoint",get:function(){return"192.168.4.1"===window.location.hostname}}]),e}()).\u0275fac=function(e){return new(e||wu)(m["\u0275\u0275directiveInject"](no))},wu.\u0275cmp=m["\u0275\u0275defineComponent"]({type:wu,selectors:[["app-update"]],decls:28,vars:18,consts:[["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-success","role","alert",4,"ngIf"],[1,"h5",3,"translate"],["class","pre-scrollable",4,"ngIf"],["class","row",4,"ngIf"],[1,"row"],[1,"col-12"],[1,"form-group","form-check"],["type","checkbox","name","usePreVersion","id","usePreVersion",1,"form-check-input",3,"ngModel","ngModelChange"],["for","usePreVersion",1,"form-check-label",3,"translate"],["type","button","role","button",1,"btn","btn-primary","btn-sm","mr-1","mt-1",3,"disabled","translate","click"],["class","btn btn-warning btn-sm mt-1","type","button","role","button",3,"disabled","translate","click",4,"ngIf"],[1,"form-group"],["for","settingsFile",3,"translate"],["type","file","id","settingsFile","name","settingsFile","accept","application/json,.json",1,"form-control-file",3,"change"],["fileInput",""],["role","group",1,"btn-group","btn-group-sm"],["href","./backend/settings.json","target","_blank","download","settings-backup.json",1,"btn","btn-primary","btn-sm",3,"translate"],["type","button","role","button",1,"btn","btn-warning","btn-sm",3,"translate","click"],[4,"ngIf"],["role","alert",1,"alert","alert-warning"],["role","alert",1,"alert","alert-success"],[1,"pre-scrollable"],[1,"col-12","col-sm-6"],["class","col-12 col-sm-6",4,"ngIf"],["type","button","role","button",1,"btn","btn-warning","btn-sm","mt-1",3,"disabled","translate","click"],["id","circle"],[1,"loader"]],template:function(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",2),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](5,du,5,3,"div",3),m["\u0275\u0275template"](6,fu,5,3,"div",4),m["\u0275\u0275element"](7,"h5",5),m["\u0275\u0275template"](8,hu,3,3,"pre",6),m["\u0275\u0275template"](9,yu,11,3,"div",7),m["\u0275\u0275elementStart"](10,"div",8),m["\u0275\u0275elementStart"](11,"div",9),m["\u0275\u0275elementStart"](12,"div",10),m["\u0275\u0275elementStart"](13,"input",11),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.usePreVersion=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](14,"label",12),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](15,"p"),m["\u0275\u0275elementStart"](16,"button",13),m["\u0275\u0275listener"]("click",function(){return t.getVersionInfo()}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](17,bu,1,2,"button",14),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](18,"hr"),m["\u0275\u0275element"](19,"h5",5),m["\u0275\u0275elementStart"](20,"div",15),m["\u0275\u0275element"](21,"label",16),m["\u0275\u0275elementStart"](22,"input",17,18),m["\u0275\u0275listener"]("change",function(e){return t.onFileChanged(e)}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](24,"div",19),m["\u0275\u0275element"](25,"a",20),m["\u0275\u0275elementStart"](26,"button",21),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275reference"](23).click()}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](27,_u,6,0,"ng-container",22)}2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,16,"alerts.updateInfo"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",t.isAccessPoint),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",!t.isAccessPoint),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.update.title"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.log),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.versionInfo),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("ngModel",t.usePreVersion),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.update.usePreVersion"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("disabled",t.isLoading)("translate","settings.update.preupdate"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.versionInfo),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.update.export"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.log.importSettings"),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("translate","settings.log.export"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.log.import"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.isLoading))},directives:[b.l,Gi,qe.CheckboxControlValueAccessor,qe.NgControlStatus,qe.NgModel],pipes:[Ki,b.f],styles:["#circle[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:150px;height:150px}.loader[_ngcontent-%COMP%]{width:calc(100% - 0px);height:calc(100% - 0px);border:8px solid #f7f7f7;border-top-color:#ffc107;border-radius:50%;-webkit-animation:rotate 5s linear infinite;animation:rotate 5s linear infinite}@-webkit-keyframes rotate{to{transform:rotate(1turn)}}@keyframes rotate{to{transform:rotate(1turn)}}"]}),wu);function Cu(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",11),m["\u0275\u0275elementStart"](1,"input",12),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().settings.wittyPi.normal.shutdownAfterTransfer=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](2,"label",13),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",r.settings.wittyPi.normal.shutdownAfterTransfer),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](3,2,"settings.sensors.shutdownAfterTransfer"),m["\u0275\u0275sanitizeHtml"])}}function xu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",14),m["\u0275\u0275elementStart"](1,"a",15),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",16),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.shutdownAfterTransfer"),m["\u0275\u0275sanitizeHtml"]))}function $u(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"button",27),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).installWittyPi(2)}),m["\u0275\u0275text"](1,"WittyPi 2 installieren"),m["\u0275\u0275elementEnd"]()}}function Su(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"button",27),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).installWittyPi(3)}),m["\u0275\u0275text"](1,"WittyPi 3 installieren"),m["\u0275\u0275elementEnd"]()}}function Eu(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"option",4),m["\u0275\u0275text"](1),m["\u0275\u0275elementEnd"]()),2&e){var n=t.$implicit;m["\u0275\u0275property"]("ngValue",n.script),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](n.name)}}function Ou(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",35),m["\u0275\u0275elementStart"](1,"a",15),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",16),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"error.wittypinotwait"),m["\u0275\u0275sanitizeHtml"]))}function Iu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",35),m["\u0275\u0275elementStart"](1,"a",15),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",16),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"error.wittypiwait"),m["\u0275\u0275sanitizeHtml"]))}function Tu(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"div",19),m["\u0275\u0275elementStart"](2,"div",28),m["\u0275\u0275elementStart"](3,"select",29),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).selectedExampleNormal=e})("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).settings.wittyPi.normal.schedule=e}),m["\u0275\u0275element"](4,"option",30),m["\u0275\u0275template"](5,Eu,2,2,"option",31),m["\u0275\u0275element"](6,"option",32),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"div",0),m["\u0275\u0275elementStart"](8,"textarea",33),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).settings.wittyPi.normal.schedule=e}),m["\u0275\u0275pipe"](9,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](10,Ou,5,3,"div",34),m["\u0275\u0275template"](11,Iu,5,3,"div",34),m["\u0275\u0275elementContainerEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngModel",r.selectedExampleNormal),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("value",null)("translate","settings.wittypi.loadexample"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngForOf",r.exampleScriptsNormal),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("value","")("translate","settings.wittypi.empty"),m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](9,10,"settings.wittypi.script")),m["\u0275\u0275property"]("ngModel",r.settings.wittyPi.normal.schedule),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",r.showWarningForMissingWait(r.settings.wittyPi.normal)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",r.showWarningForWait(r.settings.wittyPi.normal))}}var ju=function(e){return{field:e}};function Au(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.required",m["\u0275\u0275pureFunction1"](6,ju,m["\u0275\u0275pipeBind1"](3,4,"settings.wittypi.voltageLow")))," "))}function Vu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.length",m["\u0275\u0275pureFunction1"](6,ju,m["\u0275\u0275pipeBind1"](3,4,"settings.wittypi.voltageLow")))," "))}function Pu(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",51),m["\u0275\u0275template"](1,Au,4,8,"div",10),m["\u0275\u0275template"](2,Vu,4,8,"div",10),m["\u0275\u0275elementEnd"]()),2&e){m["\u0275\u0275nextContext"]();var n=m["\u0275\u0275reference"](8);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",(null==n?null:n.errors.min)||(null==n?null:n.errors.max))}}function Mu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.required",m["\u0275\u0275pureFunction1"](6,ju,m["\u0275\u0275pipeBind1"](3,4,"settings.wittypi.voltageNormal")))," "))}function Nu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.length",m["\u0275\u0275pureFunction1"](6,ju,m["\u0275\u0275pipeBind1"](3,4,"settings.wittypi.voltageNormal")))," "))}function Du(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",51),m["\u0275\u0275template"](1,Mu,4,8,"div",10),m["\u0275\u0275template"](2,Nu,4,8,"div",10),m["\u0275\u0275elementEnd"]()),2&e){m["\u0275\u0275nextContext"]();var n=m["\u0275\u0275reference"](15);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",(null==n?null:n.errors.min)||(null==n?null:n.errors.max))}}function Ru(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"option",4),m["\u0275\u0275text"](1),m["\u0275\u0275elementEnd"]()),2&e){var n=t.$implicit;m["\u0275\u0275property"]("ngValue",n.script),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](n.name)}}function Fu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",35),m["\u0275\u0275elementStart"](1,"a",15),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",16),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"error.wittypinotwait"),m["\u0275\u0275sanitizeHtml"]))}function Lu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",35),m["\u0275\u0275elementStart"](1,"a",15),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",16),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"error.wittypiwait"),m["\u0275\u0275sanitizeHtml"]))}function Bu(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"div",19),m["\u0275\u0275elementStart"](2,"div",28),m["\u0275\u0275elementStart"](3,"select",29),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](3).selectedExampleLow=e})("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](3).settings.wittyPi.low.schedule=e}),m["\u0275\u0275element"](4,"option",30),m["\u0275\u0275template"](5,Ru,2,2,"option",31),m["\u0275\u0275element"](6,"option",32),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"div",0),m["\u0275\u0275elementStart"](8,"textarea",52),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](3).settings.wittyPi.low.schedule=e}),m["\u0275\u0275pipe"](9,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](10,Fu,5,3,"div",34),m["\u0275\u0275template"](11,Lu,5,3,"div",34),m["\u0275\u0275elementContainerEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](3);m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngModel",r.selectedExampleLow),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("value",null)("translate","settings.wittypi.loadexample"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngForOf",r.exampleScriptsLow),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("value","")("translate","settings.wittypi.empty"),m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](9,10,"settings.wittypi.script")),m["\u0275\u0275property"]("ngModel",r.settings.wittyPi.low.schedule),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",r.showWarningForMissingWait(r.settings.wittyPi.low)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",r.showWarningForWait(r.settings.wittyPi.low))}}function Hu(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",11),m["\u0275\u0275elementStart"](1,"input",53),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](3).settings.wittyPi.low.shutdownAfterTransfer=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](2,"label",54),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](3);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",r.settings.wittyPi.low.shutdownAfterTransfer),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](3,2,"settings.sensors.shutdownAfterTransfer"),m["\u0275\u0275sanitizeHtml"])}}function Uu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",14),m["\u0275\u0275elementStart"](1,"a",15),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",16),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.shutdownAfterTransfer"),m["\u0275\u0275sanitizeHtml"]))}var qu=function(e){return{value:e}};function Wu(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",36),m["\u0275\u0275elementStart"](1,"div",37),m["\u0275\u0275elementStart"](2,"div",38),m["\u0275\u0275elementStart"](3,"div",39),m["\u0275\u0275elementStart"](4,"label",40),m["\u0275\u0275text"](5),m["\u0275\u0275pipe"](6,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"input",41,42),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).settings.wittyPi.low.voltage=e}),m["\u0275\u0275pipe"](9,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"div",39),m["\u0275\u0275elementStart"](11,"label",43),m["\u0275\u0275text"](12),m["\u0275\u0275pipe"](13,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](14,"input",44,45),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).settings.wittyPi.normal.voltage=e}),m["\u0275\u0275pipe"](16,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](17,Pu,3,2,"div",46),m["\u0275\u0275template"](18,Du,3,2,"div",46),m["\u0275\u0275elementStart"](19,"div",7),m["\u0275\u0275elementStart"](20,"input",47),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).settings.wittyPi.low.enabled=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](21,"label",48),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](22,Bu,12,12,"ng-container",10),m["\u0275\u0275element"](23,"hr"),m["\u0275\u0275elementStart"](24,"div",0),m["\u0275\u0275elementStart"](25,"label",49),m["\u0275\u0275text"](26,">"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](27,"select",50),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).settings.wittyPi.low.interval=e}),m["\u0275\u0275element"](28,"option",3),m["\u0275\u0275pipe"](29,"translate"),m["\u0275\u0275pipe"](30,"translate"),m["\u0275\u0275elementStart"](31,"option",4),m["\u0275\u0275text"](32,"1min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](33,"option",4),m["\u0275\u0275text"](34,"5min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](35,"option",4),m["\u0275\u0275text"](36,"10min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](37,"option",4),m["\u0275\u0275text"](38,"15min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](39,"option",4),m["\u0275\u0275text"](40,"30min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](41,"option",4),m["\u0275\u0275text"](42,"60min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](43,"option",4),m["\u0275\u0275text"](44,"2h"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](45,"option",4),m["\u0275\u0275text"](46,"3h"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](47,"option",4),m["\u0275\u0275text"](48,"4h"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](49,"option",4),m["\u0275\u0275text"](50),m["\u0275\u0275pipe"](51,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](52,"option",4),m["\u0275\u0275text"](53),m["\u0275\u0275pipe"](54,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](55,Hu,4,4,"div",5),m["\u0275\u0275template"](56,Uu,5,3,"div",6),m["\u0275\u0275elementStart"](57,"div",14),m["\u0275\u0275elementStart"](58,"a",15),m["\u0275\u0275text"](59,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](60),m["\u0275\u0275pipe"](61,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275reference"](8),i=m["\u0275\u0275reference"](15),o=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate1"]("",m["\u0275\u0275pipeBind1"](6,35,"settings.wittypi.voltageLow")," [V]"),m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](9,37,"settings.wittypi.voltage")),m["\u0275\u0275property"]("min",0)("max",o.settings.wittyPi.normal.voltage)("ngModel",o.settings.wittyPi.low.voltage),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate1"]("",m["\u0275\u0275pipeBind1"](13,39,"settings.wittypi.voltageNormal")," [V]"),m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](16,41,"settings.wittypi.voltage")),m["\u0275\u0275property"]("min",o.settings.wittyPi.low.voltage)("max",100)("ngModel",o.settings.wittyPi.normal.voltage),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",r.invalid&&(r.dirty||r.touched)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",i.invalid&&(i.dirty||i.touched)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",o.settings.wittyPi.low.enabled),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.wittypi.enableLowMode"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",o.settings.wittyPi.low.enabled),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.wittypi.voltageLowInterval"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",o.settings.wittyPi.low.interval),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](29,43,"buttons.select",m["\u0275\u0275pureFunction1"](54,qu,m["\u0275\u0275pipeBind1"](30,46,"settings.sensors.interval")))),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngValue",60),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",300),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",600),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",900),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",1800),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",3600),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",7200),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",10800),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",14400),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",1),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](51,48,"settings.sensors.measurementOnce")),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",0),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](54,50,"settings.sensors.measurementNone")),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",1===o.settings.wittyPi.low.interval),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",1===o.settings.wittyPi.low.interval&&!0===o.settings.wittyPi.low.shutdownAfterTransfer),m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](61,52,"alerts.afterSaveOrManualStart")," ")}}function zu(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",11),m["\u0275\u0275elementStart"](1,"input",55),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).settings.wittyPi.dummyload=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](2,"label",56),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",r.settings.wittyPi.dummyload),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](3,2,"settings.sensors.dummyload"),m["\u0275\u0275sanitizeHtml"])}}function Gu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",14),m["\u0275\u0275elementStart"](1,"a",15),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",16),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.dummyload"),m["\u0275\u0275sanitizeHtml"]))}function Ku(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275elementStart"](1,"div",14),m["\u0275\u0275elementStart"](2,"a",15),m["\u0275\u0275text"](3,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](4,"span",16),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",0),m["\u0275\u0275elementStart"](7,"label",17),m["\u0275\u0275text"](8,">"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"select",18),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().settings.wittyPi.version=e}),m["\u0275\u0275element"](10,"option",3),m["\u0275\u0275pipe"](11,"translate"),m["\u0275\u0275pipe"](12,"translate"),m["\u0275\u0275elementStart"](13,"option",4),m["\u0275\u0275text"](14,"WittyPi Version 2"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](15,"option",4),m["\u0275\u0275text"](16,"WittyPi Version 3"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](17,"div",19),m["\u0275\u0275elementStart"](18,"div",20),m["\u0275\u0275template"](19,$u,2,0,"button",21),m["\u0275\u0275template"](20,Su,2,0,"button",21),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"div",7),m["\u0275\u0275elementStart"](22,"input",22),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().settings.wittyPi.normal.enabled=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](23,"label",23),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](24,Tu,12,12,"ng-container",10),m["\u0275\u0275elementStart"](25,"div",7),m["\u0275\u0275elementStart"](26,"input",24),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().settings.wittyPi.voltagecheck_enabled=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](27,"label",25),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](28,Wu,62,56,"div",26),m["\u0275\u0275template"](29,zu,4,4,"div",5),m["\u0275\u0275template"](30,Gu,5,3,"div",6),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](5,19,"alerts.wittypi"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.wittypi.version"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",r.settings.wittyPi.version),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](11,21,"buttons.select",m["\u0275\u0275pureFunction1"](26,qu,m["\u0275\u0275pipeBind1"](12,24,"settings.sensors.version")))),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngValue",2),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",3),m["\u0275\u0275advance"](2),m["\u0275\u0275classProp"]("spinner",r.isLoading),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",2===r.settings.wittyPi.version),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",3===r.settings.wittyPi.version),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",r.settings.wittyPi.normal.enabled),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.wittypi.enableNormalMode"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",r.settings.wittyPi.normal.enabled),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",r.settings.wittyPi.voltagecheck_enabled),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.wittypi.enableVoltageCheck"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",r.settings.wittyPi.voltagecheck_enabled),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",3===r.settings.wittyPi.version),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",3===r.settings.wittyPi.version)}}var Qu,Zu=((Qu=function(){function e(t,n){g(this,e),this.appService=t,this.translate=n,this.exampleScriptsNormal=[{name:"Anschalten alle 30Minuten",script:"BEGIN 2015-08-01 08:00:00\nEND 2025-07-31 18:00:00\nON M5 WAIT\nOFF M25"},{name:"Anschalten alle 15min",script:"BEGIN 2015-08-01 00:00:00 \nEND 2025-07-31 23:59:59 \nON M5 WAIT\nOFF M10"},{name:"7-19Uhr alle 30min, 19-7h st\xfcndliches Anschalten",script:"BEGIN 2015-08-01 07:00:00\nEND 2025-07-31 23:59:59\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\n"}],this.exampleScriptsLow=[{name:"T\xe4glich um 6 Uhr anschalten",script:"BEGIN 2020-03-01 06:00:00\nEND 2025-12-31 00:00:00\nON M5 WAIT\nOFF H23 M55"},{name:"Alle 8h anschalten",script:"BEGIN 2020-03-01 06:00:00\nEND 2025-12-31 00:00:00\nON M5 WAIT\nOFF H7 M55\nON M5 WAIT\nOFF H7 M55\nON M5 WAIT\nOFF H7 M55"}],this.selectedExampleNormal=null,this.selectedExampleLow=null,this.settingsChange=new m.EventEmitter}return y(e,[{key:"ngOnInit",value:function(){}},{key:"installWittyPi",value:function(e){var t=this;this.isLoading=!0,this.translate.get("settings.confirm.installWittyPi").subscribe(function(n){window.confirm(n)?t.appService.checkInternet().timeout(15e3).subscribe(function(n){!0===n.connected?t.appService.update("installWittyPi",!1,"&version="+e).finally(function(){return t.isLoading=!1}).subscribe(function(e){console.log(e),alert("Erfolgreich. Der Raspberry muss jetzt von dir neugestartet werden.")},function(e){console.error(e),alert("Error while installing WittyPi. Try again.")}):(t.isLoading=!1,alert("No internet connection. Try again with internet connection."))},function(e){console.log(e),t.isLoading=!1,alert("No internet connection. Try again with internet connection.")}):t.isLoading=!1})}},{key:"showWarningForMissingWait",value:function(e){return 1===e.interval&&!0===e.shutdownAfterTransfer&&-1===e.schedule.indexOf("WAIT")}},{key:"showWarningForWait",value:function(e){return(!0!==e.shutdownAfterTransfer||1!==e.interval)&&-1!==e.schedule.indexOf("WAIT")}},{key:"settings",set:function(e){this.settingsChange.emit(e),this._settings=e},get:function(){return this._settings}}]),e}()).\u0275fac=function(e){return new(e||Qu)(m["\u0275\u0275directiveInject"](no),m["\u0275\u0275directiveInject"](zi))},Qu.\u0275cmp=m["\u0275\u0275defineComponent"]({type:Qu,selectors:[["app-wittypi"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:37,vars:33,consts:[[1,"form-group"],["for","interval",3,"translate"],["id","interval","name","interval","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue","translate"],[3,"ngValue"],["class","form-group form-check",4,"ngIf"],["class","alert alert-info","role","alert",4,"ngIf"],[1,"form-check"],["type","checkbox","id","wittyPi",1,"form-check-input",3,"ngModel","ngModelChange"],["for","wittyPi",1,"form-check-label",3,"translate"],[4,"ngIf"],[1,"form-group","form-check"],["type","checkbox","name","shutdownAfterTransfer","id","shutdownAfterTransfer",1,"form-check-input",3,"ngModel","ngModelChange"],["for","shutdownAfterTransfer",1,"form-check-label",3,"innerHTML"],["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["for","version",3,"translate"],["id","version","name","version","required","",1,"custom-select",3,"ngModel","ngModelChange"],[1,"clearfix"],["role","group",1,"btn-group","btn-group-sm","float-right"],["class","btn btn-outline-warning btn-sm","type","button","role","button",3,"click",4,"ngIf"],["type","checkbox","id","normal_enabled",1,"form-check-input",3,"ngModel","ngModelChange"],["for","normal_enabled",1,"form-check-label",3,"translate"],["type","checkbox","id","wittyPi_voltage",1,"form-check-input",3,"ngModel","ngModelChange"],["for","wittyPi_voltage",1,"form-check-label",3,"translate"],["class","collapse show","id","collapseVolltageCheck",4,"ngIf"],["type","button","role","button",1,"btn","btn-outline-warning","btn-sm",3,"click"],[1,"form-group","float-right"],[1,"form-control",2,"max-width","250px",3,"ngModel","ngModelChange"],["disabled","",2,"display","none",3,"value","translate"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"value","translate"],["id","normal_schedule","rows","5","name","normal_schedule",1,"form-control","pre-scrollable",3,"placeholder","ngModel","ngModelChange"],["class","alert alert-warning","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-warning"],["id","collapseVolltageCheck",1,"collapse","show"],[1,"card","card-body"],[1,"row"],[1,"form-group","col-12","col-sm-6"],["for","low_voltage"],["type","number","step","0.1","id","low_voltage","name","low_voltage","required","",1,"form-control",3,"min","max","ngModel","placeholder","ngModelChange"],["lowVoltage","ngModel"],["for","normal_voltage"],["type","number","step","0.1","id","normal_voltage","name","normal_voltage","required","",1,"form-control",3,"min","max","ngModel","placeholder","ngModelChange"],["normalVoltage","ngModel"],["class","alert alert-danger",4,"ngIf"],["type","checkbox","id","low_enabled",1,"form-check-input",3,"ngModel","ngModelChange"],["for","low_enabled",1,"form-check-label",3,"translate"],["for","low_interval",3,"translate"],["id","low_interval","name","low_interval","required","",1,"custom-select",3,"ngModel","ngModelChange"],[1,"alert","alert-danger"],["id","low_schedule","rows","5","name","low_schedule",1,"form-control","pre-scrollable",3,"placeholder","ngModel","ngModelChange"],["type","checkbox","name","low_shutdownAfterTransfer","id","low_shutdownAfterTransfer",1,"form-check-input",3,"ngModel","ngModelChange"],["for","low_shutdownAfterTransfer",1,"form-check-label",3,"innerHTML"],["type","checkbox","name","dummyload","id","dummyload",1,"form-check-input",3,"ngModel","ngModelChange"],["for","dummyload",1,"form-check-label",3,"innerHTML"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"label",1),m["\u0275\u0275text"](2,">"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](3,"select",2),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.wittyPi.normal.interval=e}),m["\u0275\u0275element"](4,"option",3),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275pipe"](6,"translate"),m["\u0275\u0275elementStart"](7,"option",4),m["\u0275\u0275text"](8,"1min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"option",4),m["\u0275\u0275text"](10,"5min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](11,"option",4),m["\u0275\u0275text"](12,"10min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"option",4),m["\u0275\u0275text"](14,"15min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](15,"option",4),m["\u0275\u0275text"](16,"30min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](17,"option",4),m["\u0275\u0275text"](18,"60min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"option",4),m["\u0275\u0275text"](20,"2h"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"option",4),m["\u0275\u0275text"](22,"3h"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](23,"option",4),m["\u0275\u0275text"](24,"4h"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](25,"option",4),m["\u0275\u0275text"](26),m["\u0275\u0275pipe"](27,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](28,"option",4),m["\u0275\u0275text"](29),m["\u0275\u0275pipe"](30,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](31,Cu,4,4,"div",5),m["\u0275\u0275template"](32,xu,5,3,"div",6),m["\u0275\u0275elementStart"](33,"div",7),m["\u0275\u0275elementStart"](34,"input",8),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.wittyPi.enabled=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](35,"label",9),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](36,Ku,31,28,"div",10)),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.sensors.measurementInterval"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",t.settings.wittyPi.normal.interval),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](5,22,"buttons.select",m["\u0275\u0275pureFunction1"](31,qu,m["\u0275\u0275pipeBind1"](6,25,"settings.sensors.interval")))),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngValue",60),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",300),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",600),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",900),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",1800),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",3600),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",7200),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",10800),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",14400),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",1),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](27,27,"settings.sensors.measurementOnce")),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",0),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](30,29,"settings.sensors.measurementNone")),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",1===t.settings.wittyPi.normal.interval),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",1===t.settings.wittyPi.normal.interval&&!0===t.settings.wittyPi.normal.shutdownAfterTransfer),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",t.settings.wittyPi.enabled),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.wittypi.enableWitty"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.settings.wittyPi.enabled))},directives:[Gi,qe.SelectControlValueAccessor,qe.RequiredValidator,qe.NgControlStatus,qe.NgModel,qe.NgSelectOption,qe["\u0275angular_packages_forms_forms_x"],b.l,qe.CheckboxControlValueAccessor,b.k,qe.DefaultValueAccessor,qe.NumberValueAccessor,vi.MinValidator,vi.MaxValidator],pipes:[Ki],styles:[""]}),Qu);function Xu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",42),m["\u0275\u0275elementStart"](1,"a",43),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",44),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.notAP"),m["\u0275\u0275sanitizeHtml"]))}function Yu(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",45),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementStart"](3,"div",46),m["\u0275\u0275elementStart"](4,"button",6),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().saveSettings()}),m["\u0275\u0275text"](5,"Speichern"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"button",47),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().undoChanges()}),m["\u0275\u0275text"](7,"\xc4nderungen verwerfen"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](8,"div",8),m["\u0275\u0275elementEnd"]()}2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](2,3,"alerts.changedSettings")," "),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","buttons.save"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","buttons.undo"))}function Ju(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",48),m["\u0275\u0275elementStart"](1,"a",43),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",44),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.saved"),m["\u0275\u0275sanitizeHtml"]))}function es(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",49),m["\u0275\u0275elementStart"](1,"a",43),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",44),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.errorSaving"),m["\u0275\u0275sanitizeHtml"]))}function ts(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",14),m["\u0275\u0275elementStart"](1,"div",50),m["\u0275\u0275elementStart"](2,"h5",16),m["\u0275\u0275elementStart"](3,"button",51),m["\u0275\u0275text"](4),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",52),m["\u0275\u0275elementStart"](7,"div",19),m["\u0275\u0275elementStart"](8,"app-wittypi",20),m["\u0275\u0275listener"]("settingsChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().settings=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](5,2,"settings.wittypi.title")," "),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("settings",r.settings)}}function ns(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"p"),m["\u0275\u0275element"](1,"img",62),m["\u0275\u0275elementEnd"]())}function rs(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"p"),m["\u0275\u0275element"](1,"img",63),m["\u0275\u0275elementEnd"]())}function is(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275element"](1,"p",44),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275template"](3,ns,2,0,"p",41),m["\u0275\u0275template"](4,rs,2,0,"p",41),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](2,3,"settings.connectionerror.stayconnectedAP"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf","Android"===n.getMobileOperatingSystem()),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf","iOS"===n.getMobileOperatingSystem())}}function os(e,t){1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275element"](1,"p",44),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementContainerEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](2,1,"settings.connectionerror.stayconnectedNotAP"),m["\u0275\u0275sanitizeHtml"]))}function as(e,t){1&e&&m["\u0275\u0275element"](0,"div",64)}var us=function(){return{display:"block"}};function ss(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"div",53),m["\u0275\u0275elementStart"](2,"div",54),m["\u0275\u0275elementStart"](3,"div",55),m["\u0275\u0275elementStart"](4,"div",56),m["\u0275\u0275elementStart"](5,"h5",57),m["\u0275\u0275text"](6,"Verbindung fehlgeschlagen"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"div",58),m["\u0275\u0275elementStart"](8,"div",44),m["\u0275\u0275pipe"](9,"translate"),m["\u0275\u0275text"](10," Die Bienenstockwaage ist gerade nicht erreichbar. "),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](11,is,5,5,"ng-container",41),m["\u0275\u0275template"](12,os,3,3,"ng-container",41),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"div",59),m["\u0275\u0275elementStart"](14,"button",60),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().getSettings()}),m["\u0275\u0275text"](15,"Erneut versuchen"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](16,as,1,0,"div",61),m["\u0275\u0275elementContainerEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngStyle",!r.isConnected&&m["\u0275\u0275pureFunction0"](12,us)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("translate","settings.connectionerror.title"),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](9,10,"settings.connectionerror.body"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",r.isAccessPoint),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",!r.isAccessPoint),m["\u0275\u0275advance"](2),m["\u0275\u0275classProp"]("spinner",r.isLoading),m["\u0275\u0275property"]("disabled",r.isLoading)("translate","buttons.tryagain"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",!r.isConnected)}}var ls=function(e){return{container:e}};function cs(e){return new Zi(e,"./assets/i18n/translations_",".json")}var ds,fs,hs=[{path:"",component:(ds=function(){function e(t,n){g(this,e),this.appService=t,this.translate=n,this.settings=new so,this.settingsSaved=!1,this.settingsError=!1,this.isConnected=!0,this.isLoading=!1,this.enableWittyPi=!0,this.modalEnabled=!0}return y(e,[{key:"processSettings",value:function(t){this.settings=e.validateSettings(t),this.saveSettingsBackup(this.settings)}},{key:"saveSettingsBackup",value:function(t){this.settingsBackup=e.deepCopy(t),console.log(this.settingsBackup)}},{key:"undoChanges",value:function(){this.settings=e.deepCopy(this.settingsBackup)}},{key:"getMobileOperatingSystem",value:function(){var e=navigator.userAgent||navigator.vendor||window.opera;return/windows phone/i.test(e)?"Windows Phone":/android/i.test(e)?"Android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"iOS":"unknown"}},{key:"ngOnInit",value:function(){this.getSettings(),this.innerWidth=window.innerWidth}},{key:"hideAlertsTimer",value:function(){var e=this;this.n&&clearTimeout(this.n),this.n=window.setTimeout(function(){e.settingsSaved=!1,e.settingsError=!1},4e3)}},{key:"getSettings",value:function(){var e=this;this.isLoading=!0,this.appService.getSettings().timeout(3e3).finally(function(){return e.isLoading=!1}).subscribe(function(t){t&&(e.processSettings(t),e.isConnected=!0)},function(t){console.error(t,t.name),!t.name||"TimeoutError"!==t.name&&"HttpErrorResponse"!==t.name||(e.isConnected=!1)})}},{key:"saveSettings",value:function(){var e=this;this.appService.setSettings(this.settings).timeout(5e3).subscribe(function(t){console.log(t),t&&e.processSettings(t),e.settingsSaved=!0,e.settingsError=!1,e.hideAlertsTimer(),e.isAccessPoint||e.translate.get("settings.confirm.savedAP").subscribe(function(t){window.confirm(t)&&e.boot("reboot")})},function(t){console.error(t),!t.name||"TimeoutError"!==t.name&&"HttpErrorResponse"!==t.name||(e.isConnected=!1),e.settingsError=!0,e.hideAlertsTimer()})}},{key:"askForReboot",value:function(){var e=this;this.translate.get("settings.confirm.reboot").subscribe(function(t){window.confirm(t)&&e.boot("reboot")})}},{key:"askForShutdown",value:function(){var e=this;this.translate.get("settings.confirm.shutdown").subscribe(function(t){window.confirm(t)&&e.boot("shutdown")})}},{key:"boot",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"reboot";this.isConnected=!1,this.appService.boot(t).timeout(3e3).subscribe(function(e){console.log(e)},function(t){console.error(t,t.name),!t.name||"TimeoutError"!==t.name&&"HttpErrorResponse"!==t.name||(console.log("Boot: Connection timeout."),e.isConnected=!1)},function(){window.location.reload(!0)})}},{key:"onResize",value:function(e){this.innerWidth=window.innerWidth}},{key:"isAccessPoint",get:function(){return"192.168.4.1"===window.location.hostname}},{key:"isSettingsChanged",get:function(){return JSON.stringify(this.settings)!==JSON.stringify(this.settingsBackup)}}],[{key:"validateSettings",value:function(e){return e.ts_channels||(e.ts_channels=[],e.ts_channels.push(new lo)),e.internet||(e.internet=new ro),e.sensors||(e.sensors=[]),e}},{key:"deepCopy",value:function(e){return JSON.parse(JSON.stringify(e))}}]),e}(),ds.\u0275fac=function(e){return new(e||ds)(m["\u0275\u0275directiveInject"](no),m["\u0275\u0275directiveInject"](zi))},ds.\u0275cmp=m["\u0275\u0275defineComponent"]({type:ds,selectors:[["app-settings"]],hostBindings:function(e,t){1&e&&m["\u0275\u0275listener"]("resize",function(e){return t.onResize(e)},!1,m["\u0275\u0275resolveWindow"])},decls:83,vars:38,consts:[["role","main",3,"ngClass"],[1,"jumbotron"],[1,"float-right"],["role","group","aria-label","Controls",1,"btn-group","btn-group-sm"],["type","button",1,"btn","btn-sm","btn-secondary",3,"translate","click"],["type","button",1,"btn","btn-sm","btn-warning",3,"translate","click"],["type","button",1,"btn","btn-sm","btn-primary",3,"translate","click"],[1,"h1",3,"translate"],[1,"clearfix"],["class","alert alert-warning","role","alert","style","margin-top:5px",4,"ngIf"],["class","alert alert-info","role","alert",4,"ngIf"],["class","alert alert-success myAlert-top","role","alert",4,"ngIf"],["class","alert alert-danger myAlert-top","role","alert",4,"ngIf"],["id","accordion"],[1,"card"],["id","headingOne",1,"card-header"],[1,"mb-0"],["data-toggle","collapse","data-target","#collapseOne","aria-expanded","true","aria-controls","collapseOne",1,"btn","btn-link","collapsed"],["id","collapseOne","aria-labelledby","headingOne","data-parent","#accordion",1,"collapse"],[1,"card-body"],[3,"settings","settingsChange"],["id","headingTwo",1,"card-header"],["data-toggle","collapse","data-target","#collapseTwo","aria-expanded","false","aria-controls","collapseTwo",1,"btn","btn-link","collapsed"],["id","collapseTwo","aria-labelledby","headingTwo","data-parent","#accordion",1,"collapse"],[3,"wifi","wifiChange"],["id","headingThree",1,"card-header"],["data-toggle","collapse","data-target","#collapseThree","aria-expanded","false","aria-controls","collapseThree",1,"btn","btn-link","collapsed"],["id","collapseThree","aria-labelledby","headingThree","data-parent","#accordion",1,"collapse"],["id","headingFour",1,"card-header"],["data-toggle","collapse","data-target","#collapseFour","aria-expanded","false","aria-controls","collapseFour",1,"btn","btn-link","collapsed"],["id","collapseFour","aria-labelledby","headingFour","data-parent","#accordion",1,"collapse"],["id","headingEight",1,"card-header"],["data-toggle","collapse","data-target","#collapseEight","aria-expanded","false","aria-controls","collapseEight",1,"btn","btn-link","collapsed"],["id","collapseEight","aria-labelledby","headingEight","data-parent","#accordion",1,"collapse"],["id","headingFive",1,"card-header"],["data-toggle","collapse","data-target","#collapseFive","aria-expanded","false","aria-controls","collapseFive",1,"btn","btn-link","collapsed"],["id","collapseFive","aria-labelledby","headingFive","data-parent","#accordion",1,"collapse"],["id","headingSeven",1,"card-header"],["data-toggle","collapse","data-target","#collapseSeven","aria-expanded","false","aria-controls","collapseSeven",1,"btn","btn-link","collapsed"],["id","collapseSeven","aria-labelledby","headingSeven","data-parent","#accordion",1,"collapse"],["class","card",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-warning",2,"margin-top","5px"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["role","alert",1,"alert","alert-info"],["role","group","aria-label","Controls",1,"btn-group","btn-group-sm","float-right"],["type","button",1,"btn","btn-sm","btn-info",3,"translate","click"],["role","alert",1,"alert","alert-success","myAlert-top"],["role","alert",1,"alert","alert-danger","myAlert-top"],["id","headingSix",1,"card-header"],["data-toggle","collapse","data-target","#collapseSix","aria-expanded","false","aria-controls","collapseSix",1,"btn","btn-link","collapsed"],["id","collapseSix","aria-labelledby","headingSix","data-parent","#accordion",1,"collapse"],["tabindex","0","role","dialog",1,"modal","fade","show",3,"ngStyle"],["role","document",1,"modal-dialog",2,"overflow-y","initial"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"translate"],[1,"modal-body",2,"max-height","250px","overflow-y","auto"],[1,"modal-footer"],["type","button",1,"btn","btn-primary",3,"disabled","translate","click"],["class","modal-backdrop fade show",4,"ngIf"],["src","assets/images/screenshot-stayconnected-Android.png","alt","Screenshot",1,"rounded","img-fluid"],["src","assets/images/screenshot-stayconnected-iOS.jpeg","alt","Screenshot",1,"rounded","img-fluid"],[1,"modal-backdrop","fade","show"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"main",0),m["\u0275\u0275elementStart"](1,"div",1),m["\u0275\u0275elementStart"](2,"div",2),m["\u0275\u0275elementStart"](3,"div",3),m["\u0275\u0275elementStart"](4,"button",4),m["\u0275\u0275listener"]("click",function(){return t.askForReboot()}),m["\u0275\u0275text"](5,"Neustarten"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"button",5),m["\u0275\u0275listener"]("click",function(){return t.askForShutdown()}),m["\u0275\u0275text"](7,"Ausschalten"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](8,"button",6),m["\u0275\u0275listener"]("click",function(){return t.saveSettings()}),m["\u0275\u0275text"](9,"Speichern"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"h1",7),m["\u0275\u0275text"](11,"Wartungsmodus"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](12,"div",8),m["\u0275\u0275template"](13,Xu,5,3,"div",9),m["\u0275\u0275template"](14,Yu,9,5,"div",10),m["\u0275\u0275template"](15,Ju,5,3,"div",11),m["\u0275\u0275template"](16,es,5,3,"div",12),m["\u0275\u0275elementStart"](17,"div",13),m["\u0275\u0275elementStart"](18,"div",14),m["\u0275\u0275elementStart"](19,"div",15),m["\u0275\u0275elementStart"](20,"h5",16),m["\u0275\u0275elementStart"](21,"button",17),m["\u0275\u0275text"](22),m["\u0275\u0275pipe"](23,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](24,"div",18),m["\u0275\u0275elementStart"](25,"div",19),m["\u0275\u0275elementStart"](26,"app-thingspeak",20),m["\u0275\u0275listener"]("settingsChange",function(e){return t.settings=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](27,"div",14),m["\u0275\u0275elementStart"](28,"div",21),m["\u0275\u0275elementStart"](29,"h5",16),m["\u0275\u0275elementStart"](30,"button",22),m["\u0275\u0275text"](31),m["\u0275\u0275pipe"](32,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](33,"div",23),m["\u0275\u0275elementStart"](34,"div",19),m["\u0275\u0275elementStart"](35,"app-internet",24),m["\u0275\u0275listener"]("wifiChange",function(e){return t.settings.internet=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](36,"div",14),m["\u0275\u0275elementStart"](37,"div",25),m["\u0275\u0275elementStart"](38,"h5",16),m["\u0275\u0275elementStart"](39,"button",26),m["\u0275\u0275text"](40),m["\u0275\u0275pipe"](41,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](42,"div",27),m["\u0275\u0275elementStart"](43,"div",19),m["\u0275\u0275elementStart"](44,"app-sensors",20),m["\u0275\u0275listener"]("settingsChange",function(e){return t.settings=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](45,"div",14),m["\u0275\u0275elementStart"](46,"div",28),m["\u0275\u0275elementStart"](47,"h5",16),m["\u0275\u0275elementStart"](48,"button",29),m["\u0275\u0275text"](49),m["\u0275\u0275pipe"](50,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](51,"div",30),m["\u0275\u0275elementStart"](52,"div",19),m["\u0275\u0275element"](53,"app-measurement"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](54,"div",14),m["\u0275\u0275elementStart"](55,"div",31),m["\u0275\u0275elementStart"](56,"h5",16),m["\u0275\u0275elementStart"](57,"button",32),m["\u0275\u0275text"](58),m["\u0275\u0275pipe"](59,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](60,"div",33),m["\u0275\u0275elementStart"](61,"div",19),m["\u0275\u0275elementStart"](62,"app-offline",20),m["\u0275\u0275listener"]("settingsChange",function(e){return t.settings=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](63,"div",14),m["\u0275\u0275elementStart"](64,"div",34),m["\u0275\u0275elementStart"](65,"h5",16),m["\u0275\u0275elementStart"](66,"button",35),m["\u0275\u0275text"](67),m["\u0275\u0275pipe"](68,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](69,"div",36),m["\u0275\u0275elementStart"](70,"div",19),m["\u0275\u0275element"](71,"app-log"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](72,"div",14),m["\u0275\u0275elementStart"](73,"div",37),m["\u0275\u0275elementStart"](74,"h5",16),m["\u0275\u0275elementStart"](75,"button",38),m["\u0275\u0275text"](76),m["\u0275\u0275pipe"](77,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](78,"div",39),m["\u0275\u0275elementStart"](79,"div",19),m["\u0275\u0275element"](80,"app-update"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](81,ts,9,4,"div",40),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](82,ss,17,13,"ng-container",41)),2&e&&(m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](36,ls,t.innerWidth>600)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("translate","buttons.reboot"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","buttons.shutdown"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","buttons.save"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","title"),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",!t.isAccessPoint),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.isSettingsChanged),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.settingsSaved),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.settingsError),m["\u0275\u0275advance"](6),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](23,22,"settings.thingspeak.title")," "),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("settings",t.settings),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](32,24,"settings.internet.title")," "),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("wifi",t.settings.internet),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](41,26,"settings.sensors.title")," "),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("settings",t.settings),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](50,28,"settings.measurement.title")," "),m["\u0275\u0275advance"](9),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](59,30,"settings.offline.title")," "),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("settings",t.settings),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](68,32,"settings.log.title")," "),m["\u0275\u0275advance"](9),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](77,34,"settings.update.title")," "),m["\u0275\u0275advance"](5),m["\u0275\u0275property"]("ngIf",t.enableWittyPi),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.modalEnabled))},directives:[b.j,Gi,b.l,$o,zo,Ua,Ja,ou,cu,ku,Zu,b.m],pipes:[Ki],styles:[".myAlert-top[_ngcontent-%COMP%]{top:5px}.myAlert-bottom[_ngcontent-%COMP%], .myAlert-top[_ngcontent-%COMP%]{position:fixed;left:2%;width:96%;z-index:99}.myAlert-bottom[_ngcontent-%COMP%]{bottom:5px}"]}),ds)},{path:"**",redirectTo:"/"}],ps=((fs=function e(){g(this,e)}).\u0275mod=m["\u0275\u0275defineNgModule"]({type:fs,bootstrap:[eo]}),fs.\u0275inj=m["\u0275\u0275defineInjector"]({factory:function(e){return new(e||fs)},providers:[Ue],imports:[[X,Ue,qe.FormsModule,qe.ReactiveFormsModule,vi.CustomFormsModule,Qi.forRoot({loader:{provide:_i,useFactory:cs,deps:[Oe]}}),ni.forRoot(hs,{relativeLinkResolution:"legacy"})]]}),fs);Object(m.enableProdMode)(),Q().bootstrapModule(ps).catch(function(e){return console.log(e)})},zx2A:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return u}),n.d(t,"c",function(){return s});var r=n("7o/Q"),i=n("HDdC"),o=n("SeVD"),a=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this)).parent=e,r}return y(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(r.a),u=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(r.a);function s(e,t){if(!t.closed)return e instanceof i.a?e.subscribe(t):Object(o.a)(e)(t)}}},[[0,0]]])}(); \ No newline at end of file +!function(){function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e){var t="function"==typeof Map?new Map:void 0;return(n=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return r(e,arguments,v(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),c(i,e)})(e)}function r(e,t,n){return(r=p()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i}).apply(null,arguments)}function i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,o=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw o}}}}function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;s--)n=t.substring(s,s+1),o=parseInt(n,10),u+=a&&(o*=2)>=10?o%10+1:o,a=!a;return Boolean(u%10==0&&t)?null:{creditCard:!0}}},"128B":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("Kqap"),i=n("BFxc"),o=n("xbPD"),a=n("mCNh");function u(e,t){return arguments.length>=2?function(n){return Object(a.a)(Object(r.a)(e,t),Object(i.a)(1),Object(o.a)(t))(n)}:function(t){return Object(a.a)(Object(r.a)(function(t,n,r){return e(t,n,r+1)}),Object(i.a)(1))(t)}}},"1gPL":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.equal=function(e){return function(t){return i.isPresent(r.Validators.required(t))||e===t.value?null:{equal:!0}}}},"1uah":function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return c});var r=n("yCtX"),i=n("DH7j"),o=n("7o/Q"),a=n("Lhse"),u=n("zx2A");function s(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]||Object.create(null);return g(this,n),(i=t.call(this,e)).resultSelector=r,i.iterators=[],i.active=0,i.resultSelector="function"==typeof r?r:void 0,i}return y(n,[{key:"_next",value:function(e){var t=this.iterators;Object(i.a)(e)?t.push(new p(e)):t.push("function"==typeof e[a.a]?new h(e[a.a]()):new v(this.destination,this,e))}},{key:"_complete",value:function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var n=0;nthis.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}]),e}(),v=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).parent=r,o.observable=i,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return y(n,[{key:a.a,value:function(){return this}},{key:"next",value:function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(e){this.buffer.push(e),this.parent.checkIterators()}},{key:"subscribe",value:function(){return Object(u.c)(this.observable,new u.a(this))}}]),n}(u.b)},"29s/":function(e,t,n){var r=n("WEpk"),i=n("5T2Y"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("uOPS")?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},"2GTP":function(e,t,n){var r=n("eaoh");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("XNiG"),i=n("9ppp"),o=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this))._value=e,r}return y(n,[{key:"_subscribe",value:function(e){var t=s(v(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value}},{key:"next",value:function(e){s(v(n.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),n}(r.a)},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},"2faE":function(e,t,n){var r=n("5K7Z"),i=n("eUtF"),o=n("G8Mo"),a=Object.defineProperty;t.f=n("jmDH")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"35yN":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("6Axs"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.validate=function(e){return o.dateISO(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","dateISO","","formControlName",""],["","dateISO","","formControl",""],["","dateISO","","ngModel",""]],features:[a.\u0275\u0275ProvidersFeature([u])]}),e}();t.DateISOValidator=s},"3N8a":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i.pending=!1,i}return y(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){l(n,e);var t=d(n);function n(e,r){return g(this,n),t.call(this)}return y(n,[{key:"schedule",value:function(e){return this}}]),n}(n("quSY").a))},"3Pt+":function(e,t,n){"use strict";n.r(t),n.d(t,"AbstractControl",function(){return Ce}),n.d(t,"AbstractControlDirective",function(){return N}),n.d(t,"AbstractFormGroupDirective",function(){return Te}),n.d(t,"COMPOSITION_BUFFER_MODE",function(){return m}),n.d(t,"CheckboxControlValueAccessor",function(){return p}),n.d(t,"CheckboxRequiredValidator",function(){return Je}),n.d(t,"ControlContainer",function(){return D}),n.d(t,"DefaultValueAccessor",function(){return b}),n.d(t,"EmailValidator",function(){return nt}),n.d(t,"FormArray",function(){return Se}),n.d(t,"FormArrayName",function(){return ze}),n.d(t,"FormBuilder",function(){return ht}),n.d(t,"FormControl",function(){return xe}),n.d(t,"FormControlDirective",function(){return Le}),n.d(t,"FormControlName",function(){return Qe}),n.d(t,"FormGroup",function(){return $e}),n.d(t,"FormGroupDirective",function(){return He}),n.d(t,"FormGroupName",function(){return qe}),n.d(t,"FormsModule",function(){return vt}),n.d(t,"MaxLengthValidator",function(){return at}),n.d(t,"MinLengthValidator",function(){return it}),n.d(t,"NG_ASYNC_VALIDATORS",function(){return C}),n.d(t,"NG_VALIDATORS",function(){return k}),n.d(t,"NG_VALUE_ACCESSOR",function(){return f}),n.d(t,"NgControl",function(){return F}),n.d(t,"NgControlStatus",function(){return H}),n.d(t,"NgControlStatusGroup",function(){return U}),n.d(t,"NgForm",function(){return Ie}),n.d(t,"NgModel",function(){return Ne}),n.d(t,"NgModelGroup",function(){return Ae}),n.d(t,"NgSelectOption",function(){return ee}),n.d(t,"NumberValueAccessor",function(){return W}),n.d(t,"PatternValidator",function(){return st}),n.d(t,"RadioControlValueAccessor",function(){return K}),n.d(t,"RangeValueAccessor",function(){return Z}),n.d(t,"ReactiveFormsModule",function(){return gt}),n.d(t,"RequiredValidator",function(){return Ye}),n.d(t,"SelectControlValueAccessor",function(){return J}),n.d(t,"SelectMultipleControlValueAccessor",function(){return re}),n.d(t,"VERSION",function(){return pt}),n.d(t,"Validators",function(){return $}),n.d(t,"\u0275InternalFormsSharedModule",function(){return ft}),n.d(t,"\u0275NgNoValidate",function(){return De}),n.d(t,"\u0275NgSelectMultipleOption",function(){return ie}),n.d(t,"\u0275angular_packages_forms_forms_a",function(){return lt}),n.d(t,"\u0275angular_packages_forms_forms_b",function(){return ct}),n.d(t,"\u0275angular_packages_forms_forms_ba",function(){return Xe}),n.d(t,"\u0275angular_packages_forms_forms_bb",function(){return tt}),n.d(t,"\u0275angular_packages_forms_forms_bc",function(){return rt}),n.d(t,"\u0275angular_packages_forms_forms_bd",function(){return ot}),n.d(t,"\u0275angular_packages_forms_forms_be",function(){return ut}),n.d(t,"\u0275angular_packages_forms_forms_c",function(){return dt}),n.d(t,"\u0275angular_packages_forms_forms_d",function(){return ft}),n.d(t,"\u0275angular_packages_forms_forms_e",function(){return h}),n.d(t,"\u0275angular_packages_forms_forms_f",function(){return v}),n.d(t,"\u0275angular_packages_forms_forms_g",function(){return L}),n.d(t,"\u0275angular_packages_forms_forms_h",function(){return B}),n.d(t,"\u0275angular_packages_forms_forms_i",function(){return Ee}),n.d(t,"\u0275angular_packages_forms_forms_j",function(){return Pe}),n.d(t,"\u0275angular_packages_forms_forms_k",function(){return Ve}),n.d(t,"\u0275angular_packages_forms_forms_l",function(){return q}),n.d(t,"\u0275angular_packages_forms_forms_m",function(){return z}),n.d(t,"\u0275angular_packages_forms_forms_n",function(){return G}),n.d(t,"\u0275angular_packages_forms_forms_o",function(){return Q}),n.d(t,"\u0275angular_packages_forms_forms_p",function(){return Re}),n.d(t,"\u0275angular_packages_forms_forms_q",function(){return Fe}),n.d(t,"\u0275angular_packages_forms_forms_r",function(){return Ke}),n.d(t,"\u0275angular_packages_forms_forms_s",function(){return Be}),n.d(t,"\u0275angular_packages_forms_forms_t",function(){return Ue}),n.d(t,"\u0275angular_packages_forms_forms_u",function(){return We}),n.d(t,"\u0275angular_packages_forms_forms_v",function(){return X}),n.d(t,"\u0275angular_packages_forms_forms_w",function(){return te}),n.d(t,"\u0275angular_packages_forms_forms_x",function(){return ie}),n.d(t,"\u0275angular_packages_forms_forms_y",function(){return De}),n.d(t,"\u0275angular_packages_forms_forms_z",function(){return Ze});var r=n("fXoL"),a=n("ofXK"),u=n("cp0P"),s=n("Cfvw"),c=n("lJxs"),f=new r.InjectionToken("NgValueAccessor"),h={provide:f,useExisting:Object(r.forwardRef)(function(){return p}),multi:!0},p=function(){var e=function(){function e(t,n){g(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return y(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([h])]}),e}(),v={provide:f,useExisting:Object(r.forwardRef)(function(){return b}),multi:!0},m=new r.InjectionToken("CompositionEventMode"),b=function(){var e=function(){function e(t,n,r){var i;g(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=r,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=Object(a.s)()?Object(a.s)().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return y(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](m,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[r["\u0275\u0275ProvidersFeature"]([v])]}),e}();function _(e){return null==e||0===e.length}function w(e){return null!=e&&"number"==typeof e.length}var k=new r.InjectionToken("NgValidators"),C=new r.InjectionToken("NgAsyncValidators"),x=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,$=function(){function e(){g(this,e)}return y(e,null,[{key:"min",value:function(e){return function(t){if(_(t.value)||_(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&ne?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return _(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return _(e.value)||x.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return _(t.value)||!w(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(_(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(S);return 0==t.length?null:function(e){return O(I(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(S);return 0==t.length?null:function(e){var n=I(e,t).map(E);return Object(u.a)(n).pipe(Object(c.a)(O))}}}]),e}();function S(e){return null!=e}function E(e){var t=Object(r["\u0275isPromise"])(e)?Object(s.a)(e):e;return Object(r["\u0275isObservable"])(t),t}function O(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function I(e,t){return t.map(function(t){return t(e)})}function T(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function j(e){return null!=e?$.compose(T(e)):null}function V(e){return null!=e?$.composeAsync(T(e)):null}function A(e,t){return null===e?[t]:Array.isArray(e)?[].concat(o(e),[t]):[e,t]}function P(e){return e._rawValidators}function M(e){return e._rawAsyncValidators}var N=function(){var e=function(){function e(){g(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return y(e,[{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=j(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=V(this._rawAsyncValidators)}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e}),e}(),D=function(){var e=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(N);return e.\u0275fac=function(t){return R(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e}(),R=r["\u0275\u0275getInheritedFactory"](D),F=function(e){l(n,e);var t=d(n);function n(){var e;return g(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(N),L=function(){function e(t){g(this,e),this._cd=t}return y(e,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),e}(),B={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},H=function(){var e=function(e){l(n,e);var t=d(n);function n(e){return g(this,n),t.call(this,e)}return n}(L);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](F,2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e}(),U=function(){var e=function(e){l(n,e);var t=d(n);function n(e){return g(this,n),t.call(this,e)}return n}(L);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](D,2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e}(),q={provide:f,useExisting:Object(r.forwardRef)(function(){return W}),multi:!0},W=function(){var e=function(){function e(t,n){g(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return y(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([q])]}),e}(),z={provide:f,useExisting:Object(r.forwardRef)(function(){return K}),multi:!0},G=function(){var e=function(){function e(){g(this,e),this._accessors=[]}return y(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e}(),K=function(){var e=function(){function e(t,n,r,i){g(this,e),this._renderer=t,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return y(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(F),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](G),r["\u0275\u0275directiveInject"](r.Injector))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r["\u0275\u0275ProvidersFeature"]([z])]}),e}(),Q={provide:f,useExisting:Object(r.forwardRef)(function(){return Z}),multi:!0},Z=function(){var e=function(){function e(t,n){g(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return y(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([Q])]}),e}(),X={provide:f,useExisting:Object(r.forwardRef)(function(){return J}),multi:!0};function Y(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var J=function(){var e=function(){function e(t,n){g(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return y(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=Y(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o0&&e.setValidators(r.filter(function(e){return e!==t.validator}))}if(null!==t.asyncValidator){var i=M(e);Array.isArray(i)&&i.length>0&&e.setAsyncValidators(i.filter(function(e){return e!==t.asyncValidator}))}}if(n){var o=function(){};ue(t._rawValidators,o),ue(t._rawAsyncValidators,o)}}function ce(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function de(e,t){se(e,t,!1)}function fe(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}var he=[p,Z,W,J,re,K];function pe(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function ve(e,t){if(!t)return null;Array.isArray(t);var n=void 0,r=void 0,i=void 0;return t.forEach(function(e){var t;e.constructor===b?n=e:(t=e,he.some(function(e){return t.constructor===e})?r=e:i=e)}),i||r||n||null}function ge(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function me(e,t,n,i){Object(r.isDevMode)()&&"never"!==i&&((null!==i&&"once"!==i||t._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(t._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function ye(e){return(ke(e)?e.validators:e)||null}function be(e){return Array.isArray(e)?j(e):e||null}function _e(e,t){return(ke(t)?t.asyncValidators:e)||null}function we(e){return Array.isArray(e)?V(e):e||null}function ke(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Ce=function(){function e(t,n){g(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=be(this._rawValidators),this._composedAsyncValidatorFn=we(this._rawAsyncValidators)}return y(e,[{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=be(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=we(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=E(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var r=e;return t.forEach(function(e){r=r instanceof $e?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof Se&&r.at(e)||null}),r}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new r.EventEmitter,this.statusChanges=new r.EventEmitter}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){ke(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),xe=function(e){l(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return g(this,n),(e=t.call(this,ye(i),_e(o,i)))._onChange=[],e._applyFormState(r),e._setUpdateStrategy(i),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),e}return y(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){ge(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){ge(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Ce),$e=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,ye(r),_e(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return y(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach(function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof xe?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Ce),Se=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,ye(r),_e(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return y(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,r){t._throwIfControlMissing(r),t.at(r).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach(function(e,r){t.at(r)&&t.at(r).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof xe?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=i(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(Ce),Ee={provide:D,useExisting:Object(r.forwardRef)(function(){return Ie})},Oe=Promise.resolve(null),Ie=function(){var e=function(e){l(n,e);var t=d(n);function n(e,i){var o;return g(this,n),(o=t.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new r.EventEmitter,o.form=new $e({},j(e),V(i)),o}return y(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;Oe.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),ae(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Oe.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),ge(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;Oe.then(function(){var n=t._findContainer(e.path),r=new $e({});de(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;Oe.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Oe.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,pe(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](k,10),r["\u0275\u0275directiveInject"](C,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Ee]),r["\u0275\u0275InheritDefinitionFeature"]]}),e}(),Te=function(){var e=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return oe(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}}]),n}(D);return e.\u0275fac=function(t){return je(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e}(),je=r["\u0275\u0275getInheritedFactory"](Te),Ve={provide:D,useExisting:Object(r.forwardRef)(function(){return Ae})},Ae=function(){var e=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this))._parent=e,o._setValidators(r),o._setAsyncValidators(i),o}return y(n,[{key:"_checkParentType",value:function(){}}]),n}(Te);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](D,5),r["\u0275\u0275directiveInject"](k,10),r["\u0275\u0275directiveInject"](C,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[r["\u0275\u0275ProvidersFeature"]([Ve]),r["\u0275\u0275InheritDefinitionFeature"]]}),e}(),Pe={provide:F,useExisting:Object(r.forwardRef)(function(){return Ne})},Me=Promise.resolve(null),Ne=function(){var e=function(e){l(n,e);var t=d(n);function n(e,i,o,a){var u;return g(this,n),(u=t.call(this)).control=new xe,u._registered=!1,u.update=new r.EventEmitter,u._parent=e,u._setValidators(i),u._setAsyncValidators(o),u.valueAccessor=ve(0,a),u}return y(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),fe(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){ae(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Me.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;Me.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})}},{key:"path",get:function(){return this._parent?oe(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}}]),n}(F);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](D,9),r["\u0275\u0275directiveInject"](k,10),r["\u0275\u0275directiveInject"](C,10),r["\u0275\u0275directiveInject"](f,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r["\u0275\u0275ProvidersFeature"]([Pe]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e}(),De=function(){var e=function e(){g(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),Re=new r.InjectionToken("NgModelWithFormControlWarning"),Fe={provide:F,useExisting:Object(r.forwardRef)(function(){return Le})},Le=function(){var e=function(e){l(n,e);var t=d(n);function n(e,i,o,a){var u;return g(this,n),(u=t.call(this))._ngModelWarningConfig=a,u.update=new r.EventEmitter,u._ngModelWarningSent=!1,u._setValidators(e),u._setAsyncValidators(i),u.valueAccessor=ve(0,o),u}return y(n,[{key:"ngOnChanges",value:function(e){this._isControlChanged(e)&&(ae(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),fe(e,this.viewModel)&&(me(0,n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}},{key:"isDisabled",set:function(e){}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}}]),n}(F);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](k,10),r["\u0275\u0275directiveInject"](C,10),r["\u0275\u0275directiveInject"](f,10),r["\u0275\u0275directiveInject"](Re,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Fe]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e._ngModelWarningSentOnce=!1,e}(),Be={provide:D,useExisting:Object(r.forwardRef)(function(){return He})},He=function(){var e=function(e){l(n,e);var t=d(n);function n(e,i){var o;return g(this,n),(o=t.call(this)).validators=e,o.asyncValidators=i,o.submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new r.EventEmitter,o._setValidators(e),o._setAsyncValidators(i),o}return y(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return ae(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){ge(this.directives,e)}},{key:"addFormGroup",value:function(e){var t=this.form.get(e.path);de(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(e){}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){var t=this.form.get(e.path);de(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(e){}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,pe(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){var n=function(){};t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n),le(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}(t.control||null,t),n&&ae(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){se(this.form,this,!1),this._oldForm&&le(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](k,10),r["\u0275\u0275directiveInject"](C,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Be]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e}(),Ue={provide:D,useExisting:Object(r.forwardRef)(function(){return qe})},qe=function(){var e=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this))._parent=e,o._setValidators(r),o._setAsyncValidators(i),o}return y(n,[{key:"_checkParentType",value:function(){Ge(this._parent)}}]),n}(Te);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](D,13),r["\u0275\u0275directiveInject"](k,10),r["\u0275\u0275directiveInject"](C,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[r["\u0275\u0275ProvidersFeature"]([Ue]),r["\u0275\u0275InheritDefinitionFeature"]]}),e}(),We={provide:D,useExisting:Object(r.forwardRef)(function(){return ze})},ze=function(){var e=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this))._parent=e,o._setValidators(r),o._setAsyncValidators(i),o}return y(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){Ge(this._parent)}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return oe(null==this.name?this.name:this.name.toString(),this._parent)}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](D,13),r["\u0275\u0275directiveInject"](k,10),r["\u0275\u0275directiveInject"](C,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[r["\u0275\u0275ProvidersFeature"]([We]),r["\u0275\u0275InheritDefinitionFeature"]]}),e}();function Ge(e){return!(e instanceof qe||e instanceof He||e instanceof ze)}var Ke={provide:F,useExisting:Object(r.forwardRef)(function(){return Qe})},Qe=function(){var e=function(e){l(n,e);var t=d(n);function n(e,i,o,a,u){var s;return g(this,n),(s=t.call(this))._ngModelWarningConfig=u,s._added=!1,s.update=new r.EventEmitter,s._ngModelWarningSent=!1,s._parent=e,s._setValidators(i),s._setAsyncValidators(o),s.valueAccessor=ve(0,a),s}return y(n,[{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),fe(e,this.viewModel)&&(me(0,n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}},{key:"isDisabled",set:function(e){}},{key:"path",get:function(){return oe(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}}]),n}(F);return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](D,13),r["\u0275\u0275directiveInject"](k,10),r["\u0275\u0275directiveInject"](C,10),r["\u0275\u0275directiveInject"](f,10),r["\u0275\u0275directiveInject"](Re,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r["\u0275\u0275ProvidersFeature"]([Ke]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e._ngModelWarningSentOnce=!1,e}(),Ze={provide:k,useExisting:Object(r.forwardRef)(function(){return Ye}),multi:!0},Xe={provide:k,useExisting:Object(r.forwardRef)(function(){return Je}),multi:!0},Ye=function(){var e=function(){function e(){g(this,e),this._required=!1}return y(e,[{key:"validate",value:function(e){return this.required?$.required(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("required",t.required?"":null)},inputs:{required:"required"},features:[r["\u0275\u0275ProvidersFeature"]([Ze])]}),e}(),Je=function(){var e=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"validate",value:function(e){return this.required?$.requiredTrue(e):null}}]),n}(Ye);return e.\u0275fac=function(t){return et(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("required",t.required?"":null)},features:[r["\u0275\u0275ProvidersFeature"]([Xe]),r["\u0275\u0275InheritDefinitionFeature"]]}),e}(),et=r["\u0275\u0275getInheritedFactory"](Je),tt={provide:k,useExisting:Object(r.forwardRef)(function(){return nt}),multi:!0},nt=function(){var e=function(){function e(){g(this,e),this._enabled=!1}return y(e,[{key:"validate",value:function(e){return this._enabled?$.email(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"email",set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[r["\u0275\u0275ProvidersFeature"]([tt])]}),e}(),rt={provide:k,useExisting:Object(r.forwardRef)(function(){return it}),multi:!0},it=function(){var e=function(){function e(){g(this,e),this._validator=$.nullValidator}return y(e,[{key:"ngOnChanges",value:function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null==this.minlength?null:this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=$.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("minlength",t.minlength?t.minlength:null)},inputs:{minlength:"minlength"},features:[r["\u0275\u0275ProvidersFeature"]([rt]),r["\u0275\u0275NgOnChangesFeature"]]}),e}(),ot={provide:k,useExisting:Object(r.forwardRef)(function(){return at}),multi:!0},at=function(){var e=function(){function e(){g(this,e),this._validator=$.nullValidator}return y(e,[{key:"ngOnChanges",value:function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null!=this.maxlength?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=$.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[r["\u0275\u0275ProvidersFeature"]([ot]),r["\u0275\u0275NgOnChangesFeature"]]}),e}(),ut={provide:k,useExisting:Object(r.forwardRef)(function(){return st}),multi:!0},st=function(){var e=function(){function e(){g(this,e),this._validator=$.nullValidator}return y(e,[{key:"ngOnChanges",value:function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=$.pattern(this.pattern)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[r["\u0275\u0275ProvidersFeature"]([ut]),r["\u0275\u0275NgOnChangesFeature"]]}),e}(),lt=[De,ee,ie,b,W,Z,p,J,re,K,H,U,Ye,it,at,st,Je,nt],ct=[Ne,Ae,Ie],dt=[Le,He,Qe,qe,ze],ft=function(){var e=function e(){g(this,e)};return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)}}),e}(),ht=function(){var e=function(){function e(){g(this,e)}return y(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),r=null,i=null,o=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(r=null!=t.validators?t.validators:null,i=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,i=null!=t.asyncValidator?t.asyncValidator:null)),new $e(n,{asyncValidators:i,updateOn:o,validators:r})}},{key:"control",value:function(e,t,n){return new xe(e,t,n)}},{key:"array",value:function(e,t,n){var r=this,i=e.map(function(e){return r._createControl(e)});return new Se(i,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n}},{key:"_createControl",value:function(e){return e instanceof xe||e instanceof $e||e instanceof Se?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e}(),pt=new r.Version("11.0.3"),vt=function(){var e=function e(){g(this,e)};return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[G],imports:[ft]}),e}(),gt=function(){var e=function(){function e(){g(this,e)}return y(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Re,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}();return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[ht,G],imports:[ft]}),e}()},"48ZK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.range=function(e){return function(t){if(!i.isPresent(e))return null;if(i.isPresent(r.Validators.required(t)))return null;var n=+t.value;return n>=e[0]&&n<=e[1]?null:{actualValue:n,requiredValue:e,range:!0}}}},"4I5i":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},"4XzM":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("89kA")},"4hzb":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("T5KR"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.max(this.max)},e.prototype.ngOnChanges=function(e){for(var t in e)"max"===t&&(this.validator=o.max(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={max:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","max","","formControlName",""],["","max","","formControl",""],["","max","","ngModel",""]],inputs:{max:"max"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.MaxValidator=s},"5+tZ":function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return c});var r=n("lJxs"),i=n("Cfvw"),o=n("zx2A");function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(o){return o.pipe(a(function(n,o){return Object(i.a)(e(n,o)).pipe(Object(r.a)(function(e,r){return t(n,e,o,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new u(e,n))})}var u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;g(this,e),this.project=t,this.concurrent=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.project,this.concurrent))}}]),e}(),s=function(e){l(n,e);var t=d(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return g(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return y(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(o.b),c=a},"5K7Z":function(e,t,n){var r=n("93I4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"5T2Y":function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"5vMV":function(e,t,n){var r=n("B+OT"),i=n("NsO/"),o=n("W070")(!1),a=n("VVlx")("IE_PROTO");e.exports=function(e,t){var n,u=i(e),s=0,l=[];for(n in u)n!=a&&r(u,n)&&l.push(n);for(;t.length>s;)r(u,n=t[s++])&&(~o(l,n)||l.push(n));return l}},"6Axs":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("35yN")),r(n("nlsq"))},"6RPL":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.rangeLength=function(e){return function(t){if(!i.isPresent(e))return null;if(i.isPresent(r.Validators.required(t)))return null;var n=t.value;return n.length>=e[0]&&n.length<=e[1]?null:{rangeLength:!0}}}},"7HRe":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("HDdC"),i=n("quSY"),o=n("kJWO"),a=n("jZKg"),u=n("Lhse"),s=n("c2HN"),l=n("I55L");function c(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[o.a]}(e))return function(e,t){return new r.a(function(n){var r=new i.a;return r.add(t.schedule(function(){var i=e[o.a]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r})}(e,t);if(Object(s.a)(e))return function(e,t){return new r.a(function(n){var r=new i.a;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r})}(e,t);if(Object(l.a)(e))return Object(a.a)(e,t);if(function(e){return e&&"function"==typeof e[u.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(function(n){var r,o=new i.a;return o.add(function(){r&&"function"==typeof r.return&&r.return()}),o.add(t.schedule(function(){r=e[u.a](),o.add(t.schedule(function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),o})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}},"7Hc7":function(e,t,n){"use strict";n.d(t,"b",function(){return h}),n.d(t,"a",function(){return p});var r=1,i=Promise.resolve(),o={};function a(e){return e in o&&(delete o[e],!0)}var u=function(e){var t=r++;return o[t]=!0,i.then(function(){return a(t)&&e()}),t},c=function(e){a(e)},f=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i}return y(n,[{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?s(v(n.prototype),"requestAsyncId",this).call(this,e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=u(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return s(v(n.prototype),"recycleAsyncId",this).call(this,e,t,r);0===e.actions.length&&(c(t),e.scheduled=void 0)}}]),n}(n("3N8a").a),h=new(function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},FpHa:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},FyfS:function(e,t,n){e.exports={default:n("Rp86"),__esModule:!0}},G8Mo:function(e,t,n){var r=n("93I4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},GkNK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("+UwR"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.validate=function(e){return o.number(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","number","","formControlName",""],["","number","","formControl",""],["","number","","ngModel",""]],features:[a.\u0275\u0275ProvidersFeature([u])]}),e}();t.NumberValidator=s},GyhO:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("LRne"),i=n("0EUg");function o(){return Object(i.a)()(Object(r.a).apply(void 0,arguments))}},HDAp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.json=function(e){if(i.isPresent(r.Validators.required(e)))return null;var t=e.value;try{var n=JSON.parse(t);if(Boolean(n)&&"object"==typeof n)return null}catch(o){}return{json:!0}}},HDdC:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r,i=n("8Qeq"),o=n("7o/Q"),a=n("2QA8"),u=n("gRHU"),s=n("kJWO"),l=n("mCNh"),c=n("2fFW"),d=((r=function(){function e(t){g(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return y(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var r=this.operator,i=function(e,t,n){if(e){if(e instanceof o.a)return e;if(e[a.a])return e[a.a]()}return e||t||n?new o.a(e,t,n):new o.a(u.a)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),c.a.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),Object(i.a)(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=f(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}},r,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:s.a,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:r.a.now;return g(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==h(i)?n.delegate.now():o()})).actions=[],i.active=!1,i.scheduled=void 0,i}return y(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,r):s(v(n.prototype),"schedule",this).call(this,e,t,r)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(r.a)},IzEk:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("7o/Q"),i=n("4I5i"),o=n("EY2u");function a(e){return function(t){return 0===e?Object(o.b)():t.lift(new u(e))}}var u=function(){function e(t){if(g(this,e),this.total=t,this.total<0)throw new i.a}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.total))}}]),e}(),s=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).total=r,i.count=0,i}return y(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(r.a)},JB68:function(e,t,n){var r=n("Jes0");e.exports=function(e){return Object(r(e))}},JIED:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("YLEk"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.notEqual(this.notEqual)},e.prototype.ngOnChanges=function(e){for(var t in e)"notEqual"===t&&(this.validator=o.notEqual(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={notEqual:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","notEqual","","formControlName",""],["","notEqual","","formControl",""],["","notEqual","","ngModel",""]],inputs:{notEqual:"notEqual"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.NotEqualValidator=s},JIr8:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("zx2A");function i(e){return function(t){var n=new o(e),r=t.lift(n);return n.caught=r}}var o=function(){function e(t){g(this,e),this.selector=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.selector,this.caught))}}]),e}(),a=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).selector=r,o.caught=i,o}return y(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(a){return void s(v(n.prototype),"error",this).call(this,a)}this._unsubscribeAndRecycle();var i=new r.a(this);this.add(i);var o=Object(r.c)(t,i);o!==i&&this.add(o)}}}]),n}(r.b)},JX91:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("GyhO"),i=n("z+Ro");function o(){for(var e=arguments.length,t=new Array(e),n=0;n=2&&(n=!0),function(r){return r.lift(new o(e,t,n))}}var o=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];g(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),a=function(e){l(n,e);var t=d(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return y(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(r.a)},KqfI:function(e,t,n){"use strict";function r(){}n.d(t,"a",function(){return r})},Kucq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("nKcR"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.minDate(this.minDate)},e.prototype.ngOnChanges=function(e){for(var t in e)"minDate"===t&&(this.validator=o.minDate(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={minDate:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","minDate","","formControlName",""],["","minDate","","formControl",""],["","minDate","","ngModel",""]],inputs:{minDate:"minDate"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.MinDateValidator=s},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("z+Ro"),i=n("yCtX"),o=n("jZKg");function a(){for(var e=arguments.length,t=new Array(e),n=0;n()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e.value)?null:{email:!0}}},M1xp:function(e,t,n){var r=n("a0xu");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},M6P7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t._finally=function(e){return r.finalize(e)(this)}},MPFp:function(e,t,n){"use strict";var r=n("uOPS"),i=n("Y7ZC"),o=n("kTiW"),a=n("NegM"),u=n("SBuE"),s=n("j2DC"),l=n("RfKB"),c=n("U+KD"),d=n("UWiX")("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,v,g,m){s(n,t,p);var y,b,_,w=function(e){if(!f&&e in $)return $[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",C="values"==v,x=!1,$=e.prototype,S=$[d]||$["@@iterator"]||v&&$[v],E=S||w(v),O=v?C?w("entries"):E:void 0,I="Array"==t&&$.entries||S;if(I&&(_=c(I.call(new e)))!==Object.prototype&&_.next&&(l(_,k,!0),r||"function"==typeof _[d]||a(_,d,h)),C&&S&&"values"!==S.name&&(x=!0,E=function(){return S.call(this)}),r&&!m||!f&&!x&&$[d]||a($,d,E),u[t]=E,u[k]=h,v)if(y={values:C?E:w("values"),keys:g?E:w("keys"),entries:O},m)for(b in y)b in $||o($,b,y[b]);else i(i.P+i.F*(f||x),t,y);return y}},MvwC:function(e,t,n){var r=n("5T2Y").document;e.exports=r&&r.documentElement},"NHP+":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("XNiG"),i=n("quSY"),o=function(e){l(n,e);var t=d(n);function n(){var e;return g(this,n),(e=t.apply(this,arguments)).value=null,e.hasNext=!1,e.hasCompleted=!1,e}return y(n,[{key:"_subscribe",value:function(e){return this.hasError?(e.error(this.thrownError),i.a.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),i.a.EMPTY):s(v(n.prototype),"_subscribe",this).call(this,e)}},{key:"next",value:function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)}},{key:"error",value:function(e){this.hasCompleted||s(v(n.prototype),"error",this).call(this,e)}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&s(v(n.prototype),"next",this).call(this,this.value),s(v(n.prototype),"complete",this).call(this)}}]),n}(r.a)},NJ4a:function(e,t,n){"use strict";function r(e){setTimeout(function(){throw e},0)}n.d(t,"a",function(){return r})},NJ9Y:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("sVev"),i=n("pLZG"),o=n("BFxc"),a=n("XDbj"),u=n("xbPD"),s=n("SpAZ");function l(e,t){var n=arguments.length>=2;return function(l){return l.pipe(e?Object(i.a)(function(t,n){return e(t,n,l)}):s.a,Object(o.a)(1),n?Object(u.a)(t):Object(a.a)(function(){return new r.a}))}}},NV0k:function(e,t){t.f={}.propertyIsEnumerable},NXyV:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),i=n("Cfvw"),o=n("EY2u");function a(e){return new r.a(function(t){var n;try{n=e()}catch(r){return void t.error(r)}return(n?Object(i.a)(n):Object(o.b)()).subscribe(t)})}},NegM:function(e,t,n){var r=n("2faE"),i=n("rr1i");e.exports=n("jmDH")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"NsO/":function(e,t,n){var r=n("M1xp"),i=n("Jes0");e.exports=function(e){return r(i(e))}},Nv8m:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("DH7j"),i=n("yCtX"),o=n("l7GE"),a=n("ZUHj");function u(){for(var e=arguments.length,t=new Array(e),n=0;n+e?null:{gt:!0}:null}}},Ojgd:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},P2sY:function(e,t,n){e.exports={default:n("UbbE"),__esModule:!0}},PoRY:function(e,t,n){"use strict";n.r(t),n.d(t,"parse",function(){return ve}),n.d(t,"format",function(){return ge}),n.d(t,"getNumberType",function(){return me}),n.d(t,"get_number_type",function(){return ye}),n.d(t,"isValidNumber",function(){return be}),n.d(t,"is_valid_number",function(){return _e}),n.d(t,"AsYouType",function(){return we}),n.d(t,"as_you_type",function(){return ke}),n.d(t,"asYouType",function(){return Ce}),n.d(t,"parseCustom",function(){return q}),n.d(t,"DIGITS",function(){return H}),n.d(t,"formatCustom",function(){return E}),n.d(t,"isValidNumberCustom",function(){return Y}),n.d(t,"getNumberTypeCustom",function(){return V}),n.d(t,"AsYouTypeCustom",function(){return fe}),n.d(t,"asYouTypeCustom",function(){return fe}),n.d(t,"DIGIT_PLACEHOLDER",function(){return oe}),n.d(t,"getPhoneCode",function(){return xe}),n.d(t,"getPhoneCodeCustom",function(){return $e});var r=n("YHbO"),i=n("QbLZ"),o=n.n(i),a=n("sk9p"),u=n.n(a),s=n("FyfS"),l=n.n(s);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1];"string"==typeof t&&(t="^(?:"+t+")$");var n=e.match(t);return null!==n&&n[0].length===e.length}function d(e){return e[0]}function f(e){return e[1]}function h(e){return e[2]||[]}function p(e){return e[8]}function v(e){return e[0]}function g(e){return e[1]}function m(e){return e[2]||[]}function y(e,t){return e[3]||function(e){return e[4]}(t)}function b(e,t){return e[4]||function(e){return e[7]}(t)}function _(e){return"$1"!==e&&/\d/.test(e.replace("$1",""))}function w(e){return e[5]||g(e)}function k(e,t){return t.countries[t.country_phone_code_to_countries[e][0]]}function C(e){return e[9]}function x(e,t){return C(e)?C(e)[t]:void 0}function $(e){return x(e,1)}var S={formatExtension:function(e,t){return e+" ext. "+t}};function E(e,t,n,r,i){var a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1],n=arguments[2],r=arguments[3],i=arguments[4],a=void 0,u=void 0,s=void 0,l=void 0;if("string"==typeof e)if("string"==typeof n)a={phone:e,country:t},u=n,i?(s=r,l=i):l=r;else{if(a={phone:e},"string"!=typeof t)throw new Error("Format type argument not passed for `format()`");u=t,r?(s=n,l=r):l=n}else a=e,u=t,r?(s=n,l=r):l=n;if(!l)throw new Error("Metadata is required");switch(u){case"International":case"E.164":case"International_plaintext":case"National":case"RFC3966":break;default:throw new Error('Unknown format type argument passed to "format()": "'+u+'"')}return{input:a,format_type:u,options:s=s?o()({},S,s):S,metadata:l}}(e,t,n,r,i),u=a.input,s=a.format_type,l=a.options,c=a.metadata,f=void 0;u.country&&(f=c.countries[u.country]);var h=Q(u.phone,c),p=h.country_phone_code,v=h.number;if(p){if(u.country&&f&&p!==d(f))return u.phone;f=k(p,c)}if(!f)return u.phone;switch(s){case"International":if(!v)return"+"+d(f);var g=T(v,"International",!1,f),m="+"+d(f)+" "+g;return u.ext||0===u.ext?l.formatExtension(m,u.ext):m;case"E.164":case"International_plaintext":return"+"+d(f)+u.phone;case"RFC3966":return"+"+d(f)+u.phone+(u.ext||0===u.ext?";ext="+u.ext:"");case"National":if(!v)return"";var y=T(v,"National",!1,f);return u.ext||0===u.ext?l.formatExtension(y,u.ext):y}}var O=/(\$\d)/;function I(e,t,n,r,i){var o=new RegExp(v(t)),a=y(t,i),u=!a||a&&b(t,i)&&!r;if(!n&&!u)return e.replace(o,g(t).replace(O,a));var s=e.replace(o,n?w(t):g(t));return n?j(s):s}function T(e,t,n,r){var i=function(e,t){var n=!0,r=!1,i=void 0;try{for(var o,a=l()(e);!(n=(o=a.next()).done);n=!0){var u=o.value;if(m(u).length>0){var s=m(u)[m(u).length-1];if(0!==t.search(s))continue}if(c(t,new RegExp(v(u))))return u}}catch(d){r=!0,i=d}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}(h(r),e);return i?I(e,i,"International"===t,n,r):e}function j(e){return e.replace(new RegExp("["+M+"]+","g")," ").trim()}function V(e,t,n){var r=P(e,t,n),i=r.input;if(i&&i.country){var o=i.phone,a=r.metadata.countries[i.country];if(A(o,f(a)))return A(o,function(e){return x(e,3)}(a))?"PREMIUM_RATE":A(o,function(e){return x(e,2)}(a))?"TOLL_FREE":A(o,function(e){return x(e,9)}(a))?"SHARED_COST":A(o,function(e){return x(e,8)}(a))?"VOIP":A(o,function(e){return x(e,4)}(a))?"PERSONAL_NUMBER":A(o,function(e){return x(e,7)}(a))?"PAGER":A(o,function(e){return x(e,6)}(a))?"UAN":A(o,function(e){return x(e,5)}(a))?"VOICEMAIL":A(o,function(e){return x(e,0)}(a))?$(a)?A(o,$(a))?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE":A(o,$(a))?"MOBILE":void 0}}function A(e,t){return c(e,t)}function P(e,t,n){var r=void 0,i=void 0;if("number"==typeof e&&(e=String(e)),"string"==typeof e?"string"==typeof t||void 0===t?(i=n,z(e)&&(r=q(e,t,i))):(i=t,z(e)&&(r=q(e,i))):(e&&e.phone&&z(e.phone)&&(r=e),i=t),!i||!i.countries)throw new Error("Metadata is required");return{input:r,metadata:i}}var M="-\u2010-\u2015\u2212\u30fc\uff0d\uff0f/\uff0e. \xa0\xad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d\\[\\]~\u2053\u223c\uff5e",N=";ext=([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})|[ \xa0\\t,]*(?:e?xt(?:ensi(?:o\u0301?|\xf3))?n?|\uff45?\uff58\uff54\uff4e?|[;,x\uff58#\uff03~\uff5e]|int|anexo|\uff49\uff4e\uff54)[:\\.\uff0e]?[ \xa0\\t,-]*([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})#?|[- ]+([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,5})#",D=new RegExp("(?:"+N+")$","i"),R=new RegExp("^[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{2}$|^[+\uff0b]{0,1}(?:["+M+"]*[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]){3,}["+M+"0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]*(?:"+N+")?$","i"),F=new RegExp("[+\uff0b0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]"),L=new RegExp("[^0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]+$"),B=new RegExp("^[+\uff0b]+"),H={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","\uff10":"0","\uff11":"1","\uff12":"2","\uff13":"3","\uff14":"4","\uff15":"5","\uff16":"6","\uff17":"7","\uff18":"8","\uff19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9"},U={country:{}};function q(e,t,n){var r=function(e,t,n){var r=void 0,i=void 0,a=void 0;if("number"==typeof e&&(e=String(e)),"string"==typeof e&&(r=e),"string"==typeof t?(i={country:{restrict:t}},a=n):n?(i=t,a=n):a=t,!a||!a.countries)throw new Error("Metadata is required");return{text:r,options:i=i?o()({},U,i):U,metadata:a}}(e,t,n),i=r.text,a=r.options,s=r.metadata;if(a.country.default&&!s.countries[a.country.default])throw new Error("Unknown country code: "+a.country.default);if(a.country.restrict&&!s.countries[a.country.restrict])throw new Error("Unknown country code: "+a.country.restrict);var h=void 0,p=void 0;if(i&&0===i.indexOf("tel:")){var v=!0,g=!1,m=void 0;try{for(var y,b=l()(i.split(";"));!(v=(y=b.next()).done);v=!0){var _=y.value.split(":"),w=u()(_,2),C=w[1];switch(w[0]){case"tel":h=C;break;case"ext":p=C;break;case"phone-context":"+"===C[0]&&(h=C+h)}}}catch(A){g=!0,m=A}finally{try{!v&&b.return&&b.return()}finally{if(g)throw m}}}else h=G(i);if(!z(h))return{};var x=function(e){var t=e.search(D);if(t<0)return{};var n=e.slice(0,t);if(!z(n))return{};for(var r=e.match(D),i=1;i0)return{number:n,extension:r[i]};i++}}(h);x.extension&&(h=x.number,p=x.extension);var $=Q(h,s),S=$.country_phone_code,E=$.number;if(!E)return{};var O=void 0,I=void 0,T=!1;if(S){if(T=!0,a.country.restrict&&S!==d(s.countries[a.country.restrict]))return{};I=k(S,s)}else(a.country.restrict||a.country.default)&&(I=s.countries[O=a.country.restrict||a.country.default],E=W(h));if(!I)return{};var j=E;if(T||(j=Z(E,I)),!O){if(!(O=X(S,j,s)))return{};I=s.countries[O]}if(j.length>17)return{};if(!c(j,new RegExp(f(I))))return{};var V={country:O,phone:j};return p&&(V.ext=p),V}function W(e){return function(e,t){var n="",r=!0,i=!1,o=void 0;try{for(var a,u=l()(e);!(r=(a=u.next()).done);r=!0){var s=t[a.value.toUpperCase()];void 0!==s&&(n+=s)}}catch(c){i=!0,o=c}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,H)}function z(e){return e.length>=2&&c(e,R)}function G(e){if(!e||e.length>250)return"";var t=e.search(F);return t<0?"":e.slice(t).replace(L,"")}function K(e){if(!e)return"";var t=B.test(e);return e=W(e),t?"+"+e:e}function Q(e,t){if(!(e=K(e)))return{};if("+"!==e[0])return{number:e};if("0"===(e=e.slice(1))[0])return{};for(var n=1;n<=3&&n<=e.length;){var r=e.slice(0,n);if(t.country_phone_code_to_countries[r])return{country_phone_code:r,number:e.slice(n)};n++}return{}}function Z(e,t){var n=function(e){var t=e[5];return t||(t=function(e){return e[3]}(e)),t}(t);if(!e||!n)return e;var r=new RegExp("^(?:"+n+")"),i=r.exec(e);if(!i)return e;var o,a=i[i.length-1],u=function(e){return e[6]}(t);o=u&&a?e.replace(r,u):e.slice(i[0].length);var s=new RegExp(f(t));return c(e,s)&&!c(o,s)?e:o}function X(e,t,n){var r=n.country_phone_code_to_countries[e];if(1===r.length)return r[0];var i=!0,o=!1,a=void 0;try{for(var u,s=l()(r);!(i=(u=s.next()).done);i=!0){var c=u.value,d=n.countries[c];if(p(d)){if(t&&0===t.search(p(d)))return c}else if(V({phone:t,country:c},n))return c}}catch(f){o=!0,a=f}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}}function Y(e,t,n){var r=P(e,t,n),i=r.input,o=r.metadata;return!(!i||!i.country||C(o.countries[i.country])&&!V(i,o))}var J=n("iCc5"),ee=n.n(J),te=n("V7oC"),ne=n.n(te),re=new RegExp("9","g"),ie=pe("9",15),oe="x",ae=new RegExp(oe),ue=new RegExp(oe,"g"),se=/\[([^\[\]])*\]/g,le=/\d(?=[^,}][^,}])/g,ce=new RegExp("^["+M+"]*(\\$\\d["+M+"]*)+$"),de=new RegExp("^[+\uff0b]{0,1}["+M+"0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]*$","i"),fe=function(){function e(t,n){if(ee()(this,e),!n||!n.countries)throw new Error("Metadata is required");t&&n.countries[t]&&(this.default_country=t),this.metadata=n,this.reset()}return ne()(e,[{key:"input",value:function(e){var t=G(e);return t||e&&e.indexOf("+")>=0&&(t="+"),c(t,de)?this.process_input(K(t)):this.current_output}},{key:"process_input",value:function(e){if("+"===e[0]&&(this.parsed_input||(this.parsed_input+="+",this.reset_countriness()),e=e.slice(1)),this.parsed_input+=e,this.national_number+=e,this.is_international())if(this.country_phone_code)this.country||this.determine_the_country();else{if(!this.extract_country_phone_code())return this.parsed_input;this.initialize_phone_number_formats_for_this_country_phone_code(),this.reset_format(),this.determine_the_country()}else{var t=this.national_prefix;this.national_number=this.national_prefix+this.national_number,this.extract_national_prefix(),this.national_prefix!==t&&(this.matching_formats=this.available_formats,this.reset_format())}if(!this.should_format())return this.format_as_non_formatted_number();this.match_formats_by_leading_digits();var n=this.format_national_phone_number(e);return n?this.full_phone_number(n):this.parsed_input}},{key:"format_as_non_formatted_number",value:function(){return this.is_international()&&this.country_phone_code?this.national_number?(this.template=oe+pe(oe,this.country_phone_code.length)+" "+pe(oe,this.national_number.length),"+"+this.country_phone_code+" "+this.national_number):"+"+this.country_phone_code:this.parsed_input}},{key:"format_national_phone_number",value:function(e){var t=void 0;return this.chosen_format&&(t=this.format_next_national_number_digits(e)),this.attempt_to_format_complete_phone_number()||(this.choose_another_format()?this.reformat_national_number():t)}},{key:"reset",value:function(){return this.parsed_input="",this.current_output="",this.national_prefix="",this.national_number="",this.reset_countriness(),this.reset_format(),this}},{key:"reset_country",value:function(){this.country=this.default_country&&!this.is_international()?this.default_country:void 0}},{key:"reset_countriness",value:function(){this.reset_country(),this.default_country&&!this.is_international()?(this.country_metadata=this.metadata.countries[this.default_country],this.country_phone_code=d(this.country_metadata),this.initialize_phone_number_formats_for_this_country_phone_code()):(this.country_metadata=void 0,this.country_phone_code=void 0,this.available_formats=[],this.matching_formats=this.available_formats)}},{key:"reset_format",value:function(){this.chosen_format=void 0,this.template=void 0,this.partially_populated_template=void 0,this.last_match_position=-1}},{key:"reformat_national_number",value:function(){return this.format_next_national_number_digits(this.national_number)}},{key:"initialize_phone_number_formats_for_this_country_phone_code",value:function(){this.available_formats=h(this.country_metadata).filter(function(e){return ce.test(w(e))}),this.matching_formats=this.available_formats}},{key:"match_formats_by_leading_digits",value:function(){var e=this.national_number,t=e.length-3;t<0&&(t=0),this.matching_formats=this.matching_formats.filter(function(n){var r=m(n).length;if(0===r)return!0;var i=Math.min(t,r-1),o=m(n)[i];return new RegExp("^("+o+")").test(e)}),this.chosen_format&&-1===this.matching_formats.indexOf(this.chosen_format)&&this.reset_format()}},{key:"should_format",value:function(){return this.national_number>=3}},{key:"attempt_to_format_complete_phone_number",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=l()(this.matching_formats);!(e=(r=i.next()).done);e=!0){var o=r.value;if(new RegExp("^(?:"+v(o)+")$").test(this.national_number)&&this.validate_format(o)){this.reset_format(),this.chosen_format=o;var a=I(this.national_number,o,this.is_international(),this.national_prefix.length>0,this.country_metadata);if(this.create_formatting_template(o))this.reformat_national_number();else{var u=this.full_phone_number(a);this.template=u.replace(/[\d\+]/g,oe),this.partially_populated_template=u}return a}}}catch(s){t=!0,n=s}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}}},{key:"full_phone_number",value:function(e){return this.is_international()?"+"+this.country_phone_code+" "+e:e}},{key:"extract_country_phone_code",value:function(){if(this.national_number){var e=Q(this.parsed_input,this.metadata),t=e.country_phone_code,n=e.number;if(t)return this.country_phone_code=t,this.national_number=n,this.country_metadata=k(t,this.metadata)}}},{key:"extract_national_prefix",value:function(){if(this.national_prefix="",this.country_metadata){var e=Z(this.national_number,this.country_metadata);return e!==this.national_number&&(this.national_prefix=this.national_number.slice(0,this.national_number.length-e.length),this.national_number=e),this.national_prefix}}},{key:"choose_another_format",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=l()(this.matching_formats);!(e=(r=i.next()).done);e=!0){var o=r.value;if(this.chosen_format===o)return;if(this.validate_format(o)&&this.create_formatting_template(o))return this.chosen_format=o,this.last_match_position=-1,!0}}catch(a){t=!0,n=a}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}this.reset_country(),this.reset_format()}},{key:"validate_format",value:function(e){var t,n,r;if(this.is_international()||this.national_prefix||!(r=y(t=e,n=this.country_metadata))||!_(r)||b(t,n))return!0}},{key:"create_formatting_template",value:function(e){if(!(v(e).indexOf("|")>=0)){var t=this.get_template_for_phone_number_format_pattern(e);if(t)return this.partially_populated_template=t,this.template=this.is_international()?oe+pe(oe,this.country_phone_code.length)+" "+t:t.replace(/\d/g,oe),this.template}}},{key:"get_template_for_phone_number_format_pattern",value:function(e){var t=y(e,this.country_metadata),n=v(e).replace(se,"\\d").replace(le,"\\d"),r=ie.match(n)[0];if(!(this.national_number.length>r.length)){var i=this.get_format_format(e,t),o=new RegExp("^"+n+"$"),a=this.national_number.replace(/\d/g,"9");return o.test(a)&&(r=a),r.replace(new RegExp(n),i).replace(re,oe)}}},{key:"format_next_national_number_digits",value:function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=l()(e);!(t=(i=o.next()).done);t=!0){var a=i.value;if(-1===this.partially_populated_template.slice(this.last_match_position+1).search(ae))return this.chosen_format=void 0,this.template=void 0,void(this.partially_populated_template=void 0);this.last_match_position=this.partially_populated_template.search(ae),this.partially_populated_template=this.partially_populated_template.replace(ae,a)}}catch(u){n=!0,r=u}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}return function(e,t){for(var n=e.slice(0,t),r=he("(",n)-he(")",n);r>0&&t1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function ve(){var e=Array.prototype.slice.call(arguments);return e.push(r),q.apply(this,e)}function ge(){var e=Array.prototype.slice.call(arguments);return e.push(r),E.apply(this,e)}function me(){var e=Array.prototype.slice.call(arguments);return e.push(r),V.apply(this,e)}function ye(){return me.apply(this,arguments)}function be(){var e=Array.prototype.slice.call(arguments);return e.push(r),Y.apply(this,e)}function _e(){return be.apply(this,arguments)}function we(e){fe.call(this,e,r)}function ke(e){fe.call(this,e,r)}function Ce(e){fe.call(this,e,r)}function xe(e){return $e(e,r)}function $e(e,t){if(!t.countries[e])throw new Error('Unknown country: "'+e+'"');return d(t.countries[e])}(we.prototype=Object.create(fe.prototype,{})).constructor=we,(ke.prototype=Object.create(fe.prototype,{})).constructor=ke,(Ce.prototype=Object.create(fe.prototype,{})).constructor=Ce},PqYM:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("HDdC"),i=n("D0XW"),o=n("Y7HM"),a=n("z+Ro");function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,u=-1;return Object(o.a)(t)?u=Number(t)<1?1:Number(t):Object(a.a)(t)&&(n=t),Object(a.a)(n)||(n=i.a),new r.a(function(t){var r=Object(o.a)(e)?e:+e-n.now();return n.schedule(s,r,{index:0,period:u,subscriber:t})})}function s(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}},QMMT:function(e,t,n){var r=n("a0xu"),i=n("UWiX")("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},QbLZ:function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n("P2sY"))&&r.__esModule?r:{default:r};t.default=i.default||function(e){for(var t=1;t=2;return function(l){return l.pipe(e?Object(i.a)(function(t,n){return e(t,n,l)}):s.a,Object(o.a)(1),n?Object(a.a)(t):Object(u.a)(function(){return new r.a}))}}},T5KR:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("4hzb")),r(n("9vJG"))},TFLp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("PoRY"),o=n("gvyg");t.phone=function(e){return function(t){return o.isPresent(r.Validators.required(t))||i.isValidNumber(t.value,e)?null:{phone:!0}}}},TwXH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.min=function(e){return function(t){if(!i.isPresent(e))return null;if(i.isPresent(r.Validators.required(t)))return null;var n=+t.value;return n>=+e?null:{actualValue:n,requiredValue:+e,min:!0}}}},"U+KD":function(e,t,n){var r=n("B+OT"),i=n("JB68"),o=n("VVlx")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},UO39:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},UWiX:function(e,t,n){var r=n("29s/")("wks"),i=n("YqAc"),o=n("5T2Y").Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},UbbE:function(e,t,n){n("o8NH"),e.exports=n("WEpk").Object.assign},V7oC:function(e,t,n){"use strict";t.__esModule=!0;var r,i=(r=n("SEkw"))&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n1&&"number"==typeof t[t.length-1]&&(u=t.pop())):"number"==typeof l&&(u=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(u)(Object(a.a)(t,s))}},VVlx:function(e,t,n){var r=n("29s/")("keys"),i=n("YqAc");e.exports=function(e){return r[e]||(r[e]=i(e))}},"W/SZ":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("QgIP")),r(n("Jdkh"))},W070:function(e,t,n){var r=n("NsO/"),i=n("tEej"),o=n("D8kY");e.exports=function(e){return function(t,n,a){var u,s=r(t),l=i(s.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if((u=s[c++])!=u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},WEpk:function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},WMd4:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return u});var r=n("EY2u"),i=n("LRne"),o=n("z6cu"),a=function(e){return e.NEXT="N",e.ERROR="E",e.COMPLETE="C",e}({}),u=function(){var e=function(){function e(t,n,r){g(this,e),this.kind=t,this.value=n,this.error=r,this.hasValue="N"===t}return y(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return Object(o.a)(this.error);case"C":return Object(r.b)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},WQkh:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("afP1"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.range(this.range)},e.prototype.ngOnChanges=function(e){for(var t in e)"range"===t&&(this.validator=o.range(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={range:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","range","","formControlName",""],["","range","","formControl",""],["","range","","ngModel",""]],inputs:{range:"range"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.RangeValidator=s},XDbj:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("sVev"),i=n("7o/Q");function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(t){return t.lift(new a(e))}}var a=function(){function e(t){g(this,e),this.errorFactory=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.errorFactory))}}]),e}(),u=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).errorFactory=r,i.hasValue=!1,i}return y(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(i.a);function s(){return new r.a}},XNiG:function(e,t,n){"use strict";n.d(t,"b",function(){return f}),n.d(t,"a",function(){return h});var r=n("HDdC"),i=n("7o/Q"),o=n("quSY"),a=n("9ppp"),u=n("Ylt2"),c=n("2QA8"),f=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this,e)).destination=e,r}return n}(i.a),h=function(){var e=function(e){l(n,e);var t=d(n);function n(){var e;return g(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return y(n,[{key:c.a,value:function(){return new f(this)}},{key:"lift",value:function(e){var t=new p(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new a.a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i1&&void 0!==arguments[1]?arguments[1]:e.now;g(this,e),this.SchedulerAction=t,this.now=n}return y(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}()},Y6u4:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}()},Y7HM:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("DH7j");function i(e){return!Object(r.a)(e)&&e-parseFloat(e)+1>=0}},Y7ZC:function(e,t,n){var r=n("5T2Y"),i=n("WEpk"),o=n("2GTP"),a=n("NegM"),u=n("B+OT"),s=function e(t,n,s){var l,c,d,f=t&e.F,h=t&e.G,p=t&e.S,v=t&e.P,g=t&e.B,m=t&e.W,y=h?i:i[n]||(i[n]={}),b=y.prototype,_=h?r:p?r[n]:(r[n]||{}).prototype;for(l in h&&(s=n),s)(c=!f&&_&&void 0!==_[l])&&u(y,l)||(d=c?_[l]:s[l],y[l]=h&&"function"!=typeof _[l]?s[l]:g&&c?o(d,r):m&&_[l]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):v&&"function"==typeof d?o(Function.call,d):d,v&&((y.virtual||(y.virtual={}))[l]=d,t&e.R&&b&&!b[l]&&a(b,l,d)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},YHbO:function(e){e.exports=JSON.parse('{"country_phone_code_to_countries":{"1":["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],"7":["RU","KZ"],"20":["EG"],"27":["ZA"],"30":["GR"],"31":["NL"],"32":["BE"],"33":["FR"],"34":["ES"],"36":["HU"],"39":["IT","VA"],"40":["RO"],"41":["CH"],"43":["AT"],"44":["GB","GG","IM","JE"],"45":["DK"],"46":["SE"],"47":["NO","SJ"],"48":["PL"],"49":["DE"],"51":["PE"],"52":["MX"],"53":["CU"],"54":["AR"],"55":["BR"],"56":["CL"],"57":["CO"],"58":["VE"],"60":["MY"],"61":["AU","CC","CX"],"62":["ID"],"63":["PH"],"64":["NZ"],"65":["SG"],"66":["TH"],"81":["JP"],"82":["KR"],"84":["VN"],"86":["CN"],"90":["TR"],"91":["IN"],"92":["PK"],"93":["AF"],"94":["LK"],"95":["MM"],"98":["IR"],"211":["SS"],"212":["MA","EH"],"213":["DZ"],"216":["TN"],"218":["LY"],"220":["GM"],"221":["SN"],"222":["MR"],"223":["ML"],"224":["GN"],"225":["CI"],"226":["BF"],"227":["NE"],"228":["TG"],"229":["BJ"],"230":["MU"],"231":["LR"],"232":["SL"],"233":["GH"],"234":["NG"],"235":["TD"],"236":["CF"],"237":["CM"],"238":["CV"],"239":["ST"],"240":["GQ"],"241":["GA"],"242":["CG"],"243":["CD"],"244":["AO"],"245":["GW"],"246":["IO"],"247":["AC"],"248":["SC"],"249":["SD"],"250":["RW"],"251":["ET"],"252":["SO"],"253":["DJ"],"254":["KE"],"255":["TZ"],"256":["UG"],"257":["BI"],"258":["MZ"],"260":["ZM"],"261":["MG"],"262":["RE","YT"],"263":["ZW"],"264":["NA"],"265":["MW"],"266":["LS"],"267":["BW"],"268":["SZ"],"269":["KM"],"290":["SH","TA"],"291":["ER"],"297":["AW"],"298":["FO"],"299":["GL"],"350":["GI"],"351":["PT"],"352":["LU"],"353":["IE"],"354":["IS"],"355":["AL"],"356":["MT"],"357":["CY"],"358":["FI","AX"],"359":["BG"],"370":["LT"],"371":["LV"],"372":["EE"],"373":["MD"],"374":["AM"],"375":["BY"],"376":["AD"],"377":["MC"],"378":["SM"],"380":["UA"],"381":["RS"],"382":["ME"],"385":["HR"],"386":["SI"],"387":["BA"],"389":["MK"],"420":["CZ"],"421":["SK"],"423":["LI"],"500":["FK"],"501":["BZ"],"502":["GT"],"503":["SV"],"504":["HN"],"505":["NI"],"506":["CR"],"507":["PA"],"508":["PM"],"509":["HT"],"590":["GP","BL","MF"],"591":["BO"],"592":["GY"],"593":["EC"],"594":["GF"],"595":["PY"],"596":["MQ"],"597":["SR"],"598":["UY"],"599":["CW","BQ"],"670":["TL"],"672":["NF"],"673":["BN"],"674":["NR"],"675":["PG"],"676":["TO"],"677":["SB"],"678":["VU"],"679":["FJ"],"680":["PW"],"681":["WF"],"682":["CK"],"683":["NU"],"685":["WS"],"686":["KI"],"687":["NC"],"688":["TV"],"689":["PF"],"690":["TK"],"691":["FM"],"692":["MH"],"800":["001"],"808":["001"],"850":["KP"],"852":["HK"],"853":["MO"],"855":["KH"],"856":["LA"],"870":["001"],"878":["001"],"880":["BD"],"881":["001"],"882":["001"],"883":["001"],"886":["TW"],"888":["001"],"960":["MV"],"961":["LB"],"962":["JO"],"963":["SY"],"964":["IQ"],"965":["KW"],"966":["SA"],"967":["YE"],"968":["OM"],"970":["PS"],"971":["AE"],"972":["IL"],"973":["BH"],"974":["QA"],"975":["BT"],"976":["MN"],"977":["NP"],"979":["001"],"992":["TJ"],"993":["TM"],"994":["AZ"],"995":["GE"],"996":["KG"],"998":["UZ"]},"countries":{"AC":["247","[46]\\\\d{4}|[01589]\\\\d{5}"],"AD":["376","[16]\\\\d{5,8}|[37-9]\\\\d{5}",[["(\\\\d{3})(\\\\d{3})","$1 $2",["[137-9]|6[0-8]"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["180","180[02]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["690"]]]],"AE":["971","[2-79]\\\\d{7,8}|800\\\\d{2,9}",[["([2-4679])(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2-4679][2-8]"]],["(5\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["5"]],["([479]00)(\\\\d)(\\\\d{5})","$1 $2 $3",["[479]00"],"$1"],["([68]00)(\\\\d{2,9})","$1 $2",["[68]00"],"$1"]],"0","0$1"],"AF":["93","[2-7]\\\\d{8}",[["([2-7]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2-7]"]]],"0","0$1"],"AG":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"268"],"AI":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"264"],"AL":["355","[2-57]\\\\d{7}|6\\\\d{8}|8\\\\d{5,7}|9\\\\d{5}",[["(4)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["4[0-6]"]],["(6\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["6"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2358][2-5]|4[7-9]"]],["(\\\\d{3})(\\\\d{3,5})","$1 $2",["[235][16-9]|[79]|8[016-9]"]]],"0","0$1"],"AM":["374","[1-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{6})","$1 $2",["1|47"]],["(\\\\d{2})(\\\\d{6})","$1 $2",["4[1349]|[5-7]|88|9[1-9]"],"0$1"],["(\\\\d{3})(\\\\d{5})","$1 $2",["[23]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["8|90"],"0 $1"]],"0","(0$1)"],"AO":["244","[29]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3"]]],"AR":["54","11\\\\d{8}|[2368]\\\\d{9}|9\\\\d{10}",[["([68]\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[68]"]],["(9)(11)(\\\\d{4})(\\\\d{4})","$2 15-$3-$4",["911"],null,null,"$1 $2 $3-$4"],["(9)(\\\\d{3})(\\\\d{3})(\\\\d{4})","$2 15-$3-$4",["9(?:2[2-4689]|3[3-8])","9(?:2(?:2[013]|3[067]|49|6[01346]|8|9[147-9])|3(?:36|4[1-358]|5[138]|6|7[069]|8[013578]))","9(?:2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3[4-6]|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45])))","9(?:2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3(?:4|5[014]|6[1-39])|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45])))"],null,null,"$1 $2 $3-$4"],["(9)(\\\\d{4})(\\\\d{2})(\\\\d{4})","$2 15-$3-$4",["9[23]"],null,null,"$1 $2 $3-$4"],["(11)(\\\\d{4})(\\\\d{4})","$1 $2-$3",["11"],null,"true"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2-$3",["2(?:2[013]|3[067]|49|6[01346]|8|9[147-9])|3(?:36|4[1-358]|5[138]|6|7[069]|8[013578])","2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3[4-6]|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45]))","2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3(?:4|5[014]|6[1-39])|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45]))"],null,"true"],["(\\\\d{4})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["[23]"],null,"true"]],"0","0$1","0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))?15)?","9$1"],"AS":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"684"],"AT":["43","[1-9]\\\\d{3,12}",[["(116\\\\d{3})","$1",["116"],"$1"],["(1)(\\\\d{3,12})","$1 $2",["1"]],["(5\\\\d)(\\\\d{3,5})","$1 $2",["5[079]"]],["(5\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["5[079]"]],["(5\\\\d)(\\\\d{4})(\\\\d{4,7})","$1 $2 $3",["5[079]"]],["(\\\\d{3})(\\\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:[28]0|32)|[89]"]],["(\\\\d{4})(\\\\d{3,9})","$1 $2",["2|3(?:1[1-578]|[3-8])|4[2378]|5[2-6]|6(?:[12]|4[1-9]|5[468])|7(?:[24][1-8]|35|[5-79])"]]],"0","0$1"],"AU":["61","1\\\\d{4,9}|[2-578]\\\\d{8}",[["([2378])(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(16)(\\\\d{3,4})","$1 $2",["16"],"0$1"],["(16)(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(1[389]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[389]0","1(?:[38]0|9)0"]],["(180)(2\\\\d{3})","$1 $2",["180","1802"]],["(19\\\\d)(\\\\d{3})","$1 $2",["19[13]"]],["(19\\\\d{2})(\\\\d{4})","$1 $2",["19[679]"]],["(13)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["13[1-9]"]]],"0",null,null,null,null,null,["[237]\\\\d{8}|8(?:51(?:0(?:0[03-9]|[1247]\\\\d|3[2-9]|5[0-8]|6[1-9]|8[0-6])|1(?:1[69]|[23]\\\\d|4[0-4]))|[6-8]\\\\d{4}|9(?:[02-9]\\\\d{3}|1(?:[0-57-9]\\\\d{2}|6[0135-9]\\\\d)))\\\\d{3}","14(?:5\\\\d|71)\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[6-9]|7[02-9]|8[12457-9]|9[017-9])\\\\d{6}","180(?:0\\\\d{3}|2)\\\\d{3}","19(?:0[0126]\\\\d|[679])\\\\d{5}","500\\\\d{6}",null,null,"16\\\\d{3,7}","550\\\\d{6}","13(?:00\\\\d{3}|45[0-4]|\\\\d)\\\\d{3}"]],"AW":["297","[25-9]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"AX":["358","1\\\\d{5,11}|[35]\\\\d{5,9}|2\\\\d{4,9}|4\\\\d{5,10}|6\\\\d{7,9}|7\\\\d{4,9}|8\\\\d{6,9}",[["(\\\\d{3})(\\\\d{3,7})","$1 $2",["(?:[1-3]0|[6-8])0"]],["(75\\\\d{3})","$1",["75[12]"]],["(116\\\\d{3})","$1",["116"],"$1"],["(\\\\d{2})(\\\\d{4,10})","$1 $2",["[14]|2[09]|50|7[135]"]],["(\\\\d)(\\\\d{4,11})","$1 $2",["[25689][1-8]|3"]]],"0",null,null,null,null,null,["18[1-8]\\\\d{3,9}","4\\\\d{5,10}|50\\\\d{4,8}","800\\\\d{4,7}","[67]00\\\\d{5,6}",null,null,"[13]0\\\\d{4,8}|2(?:0(?:[016-8]\\\\d{3,7}|[2-59]\\\\d{2,7})|9\\\\d{4,8})|60(?:[12]\\\\d{5,6}|6\\\\d{7})|7(?:1\\\\d{7}|3\\\\d{8}|5[03-9]\\\\d{2,7})"]],"AZ":["994","[1-9]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["1[28]|2(?:[0-36]|[45]2)|365"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[4-8]"],"0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["9"],"0$1"]],"0","(0$1)"],"BA":["387","[3-9]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2-$3",["[3-5]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6[1-356]|[7-9]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["6[047]"]]],"0","0$1"],"BB":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"246"],"BD":["880","[2-79]\\\\d{5,9}|1\\\\d{9}|8[0-7]\\\\d{4,8}",[["(2)(\\\\d{7,8})","$1-$2",["2"]],["(\\\\d{2})(\\\\d{4,6})","$1-$2",["[3-79]1"]],["(\\\\d{4})(\\\\d{3,6})","$1-$2",["1|3(?:0|[2-58]2)|4(?:0|[25]2|3[23]|[4689][25])|5(?:[02-578]2|6[25])|6(?:[0347-9]2|[26][25])|7[02-9]2|8(?:[023][23]|[4-7]2)|9(?:[02][23]|[458]2|6[016])"]],["(\\\\d{3})(\\\\d{3,7})","$1-$2",["[3-79][2-9]|8"]]],"0","0$1"],"BE":["32","[1-9]\\\\d{7,8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["4[6-9]"]],["(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[23]|4[23]|9[2-4]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[156]|7[018]|8(?:0[1-9]|[1-79])"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["(?:80|9)0"]]],"0","0$1"],"BF":["226","[25-7]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"BG":["359","[23567]\\\\d{5,7}|[489]\\\\d{6,8}",[["(2)(\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["2"]],["(2)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["43[124-7]|70[1-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1 $2 $3",["43[124-7]|70[1-9]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[78]00"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["99[69]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["48|8[7-9]|9[08]"]]],"0","0$1"],"BH":["973","[136-9]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"BI":["257","[267]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"BJ":["229","[2689]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2689]"]]]],"BL":["590","[56]\\\\d{8}",[["([56]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["590|69[01]"]]],"0",null,null,null,null,null,["590(?:2[7-9]|5[12]|87)\\\\d{4}","69(?:0\\\\d{2}|1(?:2[29]|3[0-5]))\\\\d{4}"]],"BM":["1","[4589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"441"],"BN":["673","[2-578]\\\\d{6}",[["([2-578]\\\\d{2})(\\\\d{4})","$1 $2",["[2-578]"]]]],"BO":["591","[23467]\\\\d{7}|8\\\\d{8}",[["([234])(\\\\d{7})","$1 $2",["[2-4]"]],["([67]\\\\d{7})","$1",["[67]"]],["(800)(\\\\d{2})(\\\\d{4})","$1 $2 $3",["800"]]],"0",null,"0(1\\\\d)?"],"BQ":["599","[347]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[13-7]"]],["(9)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["9"]]],null,null,null,null,null,null,["(?:318[023]|41(?:6[023]|70)|7(?:1[578]|50)\\\\d)\\\\d{3}","(?:31(?:8[14-8]|9[14578])|416[145-9]|7(?:0[01]|7[07]|8\\\\d|9[056])\\\\d)\\\\d{3}"]],"BR":["55","[1-46-9]\\\\d{7,10}|5(?:[0-4]\\\\d{7,9}|5(?:[2-8]\\\\d{7}|9\\\\d{7,8}))",[["(\\\\d{4})(\\\\d{4})","$1-$2",["300|40[02]","300|40(?:0|20)"]],["([3589]00)(\\\\d{2,3})(\\\\d{4})","$1 $2 $3",["[3589]00"],"0$1"],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2-$3",["[1-9][1-9]"],"($1)"],["(\\\\d{2})(\\\\d{5})(\\\\d{4})","$1 $2-$3",["[1-9][1-9]9"],"($1)"]],"0",null,"0(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\\\d{10,11}))?","$2"],"BS":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"242"],"BT":["975","[1-8]\\\\d{6,7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["1|77"]],["([2-8])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-68]|7[246]"]]]],"BW":["267","[2-79]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[2-6]"]],["(7\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7"]],["(90)(\\\\d{5})","$1 $2",["90"]]]],"BY":["375","[1-4]\\\\d{8}|8(?:0(?:0\\\\d{3,7}|[13]\\\\d{7})|(?:10|20\\\\d)\\\\d{7})|9\\\\d{9,10}",[["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["17[0-3589]|2[4-9]|[34]","17(?:[02358]|1[0-2]|9[0189])|2[4-9]|[34]"],"8 0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["1(?:5[24]|6[235]|7[467])|2(?:1[246]|2[25]|3[26])","1(?:5[24]|6(?:2|3[04-9]|5[0346-9])|7(?:[46]|7[37-9]))|2(?:1[246]|2[25]|3[26])"],"8 0$1"],["(\\\\d{4})(\\\\d{2})(\\\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["([89]\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8[01]|9"],"8 $1"],["(82\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["82"],"8 $1"],["(800)(\\\\d{3})","$1 $2",["800"],"8 $1"],["(800)(\\\\d{2})(\\\\d{2,4})","$1 $2 $3",["800"],"8 $1"]],"8",null,"8?0?"],"BZ":["501","[2-8]\\\\d{6}|0\\\\d{10}",[["(\\\\d{3})(\\\\d{4})","$1-$2",["[2-8]"]],["(0)(800)(\\\\d{4})(\\\\d{3})","$1-$2-$3-$4",["080","0800"]]]],"CA":["1","[2-9]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,null,["(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|65)|4(?:03|1[68]|3[178]|50)|5(?:06|1[49]|48|79|8[17])|6(?:0[04]|13|22|39|47)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\\\d{6}",null,"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}","900[2-9]\\\\d{6}","5(?:(?:00|22|33|44|66|77|88)[2-9]|21[23])\\\\d{6}"]],"CC":["61","[1458]\\\\d{5,9}",[["([2378])(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(16)(\\\\d{3,4})","$1 $2",["16"],"0$1"],["(16)(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(1[389]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[389]0","1(?:[38]0|9)0"]],["(180)(2\\\\d{3})","$1 $2",["180","1802"]],["(19\\\\d)(\\\\d{3})","$1 $2",["19[13]"]],["(19\\\\d{2})(\\\\d{4})","$1 $2",["19[679]"]],["(13)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["13[1-9]"]]],"0",null,null,null,null,null,["8(?:51(?:0(?:02|31|60)|118)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:08|22|68)|4[29]8|62\\\\d|70[23]|959))\\\\d{3}","14(?:5\\\\d|71)\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[6-9]|7[02-9]|8[12547-9]|9[017-9])\\\\d{6}","180(?:0\\\\d{3}|2)\\\\d{3}","19(?:0[0126]\\\\d|[679])\\\\d{5}","500\\\\d{6}",null,null,null,"550\\\\d{6}","13(?:00\\\\d{2})?\\\\d{4}"]],"CD":["243","[2-6]\\\\d{6}|[18]\\\\d{6,8}|9\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["12"]],["([89]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8[0-2459]|9"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["88"]],["(\\\\d{2})(\\\\d{5})","$1 $2",["[1-6]"]]],"0","0$1"],"CF":["236","[278]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"CG":["242","[028]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["801"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[02]"]],["(\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["800"]]]],"CH":["41","[2-9]\\\\d{8}|860\\\\d{9}",[["([2-9]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-7]|[89]1"]],["([89]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8[047]|90"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["860"]]],"0","0$1"],"CI":["225","[02-8]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"CK":["682","[2-8]\\\\d{4}",[["(\\\\d{2})(\\\\d{3})","$1 $2"]]],"CL":["56","1230\\\\d{7}|[2-46-9]\\\\d{8,10}|5[1-3578]\\\\d{7}",[["(\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2[23]"],"($1)"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[357]|4[1-35]|6[13-57]"],"($1)"],["(9)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["9"]],["(44)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["44"]],["([68]00)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[68]00"],"$1"],["(600)(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["600"],"$1"],["(1230)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["123","1230"],"$1"],["(\\\\d{5})(\\\\d{4})","$1 $2",["219"],"($1)"]],"0","0$1","0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))"],"CM":["237","[2368]\\\\d{7,8}",[["([26])(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["[26]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[23]|88"]]]],"CN":["86","[1-7]\\\\d{6,11}|8[0-357-9]\\\\d{6,9}|9\\\\d{7,10}",[["([48]00)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[48]00"]],["(\\\\d{2})(\\\\d{5,6})","$1 $2",["(?:10|2\\\\d)[19]","(?:10|2\\\\d)(?:10|9[56])","(?:10|2\\\\d)(?:100|9[56])"],"0$1"],["(\\\\d{3})(\\\\d{5,6})","$1 $2",["[3-9]","[3-9]\\\\d\\\\d[19]","[3-9]\\\\d\\\\d(?:10|9[56])"],"0$1"],["(21)(\\\\d{4})(\\\\d{4,6})","$1 $2 $3",["21"],"0$1","true"],["([12]\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["10[1-9]|2[02-9]","10[1-9]|2[02-9]","10(?:[1-79]|8(?:0[1-9]|[1-9]))|2[02-9]"],"0$1","true"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["3(?:1[02-9]|35|49|5|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|[35][2-9]|6[47-9]|7|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[04-9]|4[3-6]|6[2368])|8(?:1[236-8]|2[5-7]|3|5[1-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])"],"0$1","true"],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["3(?:11|7[179])|4(?:[15]1|3[1-35])|5(?:1|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[457]|6[09])|8(?:[57]1|98)"],"0$1","true"],["(\\\\d{4})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["807","8078"],"0$1","true"],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["1(?:[3-57-9]|66)"]],["(10800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["108","1080","10800"]],["(\\\\d{3})(\\\\d{7,8})","$1 $2",["950"]]],"0",null,"(1(?:[129]\\\\d{3}|79\\\\d{2}))|0"],"CO":["57","(?:[13]\\\\d{0,3}|[24-8])\\\\d{7}",[["(\\\\d)(\\\\d{7})","$1 $2",["1(?:[2-7]|8[2-9]|9[0-3])|[24-8]","1(?:[2-7]|8[2-9]|9(?:09|[1-3]))|[24-8]"],"($1)"],["(\\\\d{3})(\\\\d{7})","$1 $2",["3"]],["(1)(\\\\d{3})(\\\\d{7})","$1-$2-$3",["1(?:80|9[04])","1(?:800|9(?:0[01]|4[78]))"],"0$1",null,"$1 $2 $3"]],"0",null,"0([3579]|4(?:44|56))?"],"CR":["506","[24-9]\\\\d{7,9}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[24-7]|8[3-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[89]0"]]],null,null,"(19(?:0[012468]|1[09]|20|66|77|99))"],"CU":["53","[2-57]\\\\d{5,7}",[["(\\\\d)(\\\\d{6,7})","$1 $2",["7"]],["(\\\\d{2})(\\\\d{4,6})","$1 $2",["[2-4]"]],["(\\\\d)(\\\\d{7})","$1 $2",["5"],"0$1"]],"0","(0$1)"],"CV":["238","[259]\\\\d{6}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"CW":["599","[134679]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[13-7]"]],["(9)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["9"]]],null,null,null,null,null,null,["9(?:[48]\\\\d{2}|50\\\\d|7(?:2[0-24]|[34]\\\\d|6[35-7]|77|8[7-9]))\\\\d{4}","9(?:5(?:[12467]\\\\d|3[01])|6(?:[15-9]\\\\d|3[01]))\\\\d{4}",null,null,null,null,null,"955\\\\d{5}",null,"60[0-2]\\\\d{4}"]],"CX":["61","[1458]\\\\d{5,9}",[["([2378])(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["14|[45]"],"0$1"],["(16)(\\\\d{3,4})","$1 $2",["16"],"0$1"],["(16)(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(1[389]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[389]0","1(?:[38]0|9)0"]],["(180)(2\\\\d{3})","$1 $2",["180","1802"]],["(19\\\\d)(\\\\d{3})","$1 $2",["19[13]"]],["(19\\\\d{2})(\\\\d{4})","$1 $2",["19[679]"]],["(13)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["13[1-9]"]]],"0",null,null,null,null,null,["8(?:51(?:0(?:01|30|59)|117)|91(?:00[6-9]|1(?:21|49|78|81)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\\\d|7(?:0[01]|1[0-2])|958))\\\\d{3}","14(?:5\\\\d|71)\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[6-9]|7[02-9]|8[12547-9]|9[017-9])\\\\d{6}","180(?:0\\\\d{3}|2)\\\\d{3}","19(?:0[0126]\\\\d|[679])\\\\d{5}","500\\\\d{6}",null,null,null,"550\\\\d{6}","13(?:00\\\\d{2})?\\\\d{4}"]],"CY":["357","[257-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{6})","$1 $2"]]],"CZ":["420","[2-8]\\\\d{8}|9\\\\d{8,11}",[["([2-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(96\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["96"]],["(9\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["9[36]"]]]],"DE":["49","[1-35-9]\\\\d{3,14}|4(?:[0-8]\\\\d{3,12}|9(?:[0-37]\\\\d|4(?:[1-35-8]|4\\\\d?)|5\\\\d{1,2}|6[1-8]\\\\d?)\\\\d{2,8})",[["(1\\\\d{2})(\\\\d{7,8})","$1 $2",["1[67]"]],["(15\\\\d{3})(\\\\d{6})","$1 $2",["15[0568]"]],["(1\\\\d{3})(\\\\d{7})","$1 $2",["15"]],["(\\\\d{2})(\\\\d{3,11})","$1 $2",["3[02]|40|[68]9"]],["(\\\\d{3})(\\\\d{3,11})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14]|[4-9]1)|3(?:[35-9][15]|4[015])|[4-8][1-9]1|9(?:06|[1-9]1)"]],["(\\\\d{4})(\\\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|[7-9](?:0[1-9]|[1-9])","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|[46][1246]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|3[1357]|4[13578]|6[1246]|7[1356]|9[1346])|5(?:0[14]|2[1-3589]|3[1357]|[49][1246]|6[1-4]|7[1346]|8[13568])|6(?:0[356]|2[1-489]|3[124-6]|4[1347]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|3[1357]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|4[1347]|6[0135-9]|7[1467]|8[136])|9(?:0[12479]|2[1358]|3[1357]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|[7-9](?:0[1-9]|[1-9])"]],["(3\\\\d{4})(\\\\d{1,10})","$1 $2",["3"]],["(800)(\\\\d{7,12})","$1 $2",["800"]],["(\\\\d{3})(\\\\d)(\\\\d{4,10})","$1 $2 $3",["1(?:37|80)|900","1(?:37|80)|900[1359]"]],["(1\\\\d{2})(\\\\d{5,11})","$1 $2",["181"]],["(18\\\\d{3})(\\\\d{6})","$1 $2",["185","1850","18500"]],["(18\\\\d{2})(\\\\d{7})","$1 $2",["18[68]"]],["(18\\\\d)(\\\\d{8})","$1 $2",["18[2-579]"]],["(700)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["700"]],["(138)(\\\\d{4})","$1 $2",["138"]],["(15[013-68])(\\\\d{2})(\\\\d{8})","$1 $2 $3",["15[013-68]"]],["(15[279]\\\\d)(\\\\d{2})(\\\\d{7})","$1 $2 $3",["15[279]"]],["(1[67]\\\\d)(\\\\d{2})(\\\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"]]],"0","0$1"],"DJ":["253","[27]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"DK":["45","[2-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"DM":["1","[57-9]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"767"],"DO":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"8[024]9"],"DZ":["213","(?:[1-4]|[5-9]\\\\d)\\\\d{7}",[["([1-4]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[1-4]"]],["([5-8]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[5-8]"]],["(9\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["9"]]],"0","0$1"],"EC":["593","1\\\\d{9,10}|[2-8]\\\\d{7}|9\\\\d{8}",[["(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2-$3",["[247]|[356][2-8]"],null,null,"$1-$2-$3"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["9"],"0$1"],["(1800)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["180","1800"],"$1"]],"0","(0$1)"],"EE":["372","[3-9]\\\\d{6,7}|800\\\\d{6,7}",[["([3-79]\\\\d{2})(\\\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]"]],["(70)(\\\\d{2})(\\\\d{4})","$1 $2 $3",["70"]],["(8000)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["800","8000"]],["([458]\\\\d{3})(\\\\d{3,4})","$1 $2",["40|5|8(?:00|[1-5])","40|5|8(?:00[1-9]|[1-5])"]]]],"EG":["20","1\\\\d{4,9}|[24-6]\\\\d{8}|3\\\\d{7}|[89]\\\\d{8,9}",[["(\\\\d)(\\\\d{7,8})","$1 $2",["[23]"]],["(\\\\d{2})(\\\\d{6,7})","$1 $2",["1(?:3|5[239])|[4-6]|[89][2-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[0-25]|[89]00"]]],"0","0$1"],"EH":["212","[5-9]\\\\d{8}",[["([5-7]\\\\d{2})(\\\\d{6})","$1-$2",["5(?:2[015-7]|3[0-4])|[67]"]],["([58]\\\\d{3})(\\\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|92)|892","5(?:2(?:[2-48]|9[0-7])|3(?:[5-79]|8[0-7])|924)|892"]],["(5\\\\d{4})(\\\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]"]],["([5]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5(?:4[067]|5[03])"]],["(8[09])(\\\\d{7})","$1-$2",["8(?:0|9[013-9])"]]],"0",null,null,null,null,"528[89]"],"ER":["291","[178]\\\\d{6}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3"]],"0","0$1"],"ES":["34","[5-9]\\\\d{8}",[["([89]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[89]00"]],["([5-9]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[568]|[79][0-8]"]]]],"ET":["251","[1-59]\\\\d{8}",[["([1-59]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1-59]"]]],"0","0$1"],"FI":["358","1\\\\d{4,11}|[2-9]\\\\d{4,10}",[["(\\\\d{3})(\\\\d{3,7})","$1 $2",["(?:[1-3]0|[6-8])0"]],["(75\\\\d{3})","$1",["75[12]"]],["(116\\\\d{3})","$1",["116"],"$1"],["(\\\\d{2})(\\\\d{4,10})","$1 $2",["[14]|2[09]|50|7[135]"]],["(\\\\d)(\\\\d{4,11})","$1 $2",["[25689][1-8]|3"]]],"0","0$1",null,null,null,null,["1(?:[3569][1-8]\\\\d{3,9}|[47]\\\\d{5,10})|2[1-8]\\\\d{3,9}|3(?:[1-8]\\\\d{3,9}|9\\\\d{4,8})|[5689][1-8]\\\\d{3,9}","4(?:[0-8]\\\\d{4,9}|9\\\\d{3,8})|50\\\\d{4,8}","800\\\\d{4,7}","[67]00\\\\d{5,6}",null,null,"[13]0\\\\d{4,8}|2(?:0(?:[016-8]\\\\d{3,7}|[2-59]\\\\d{2,7})|9\\\\d{4,8})|60(?:[12]\\\\d{5,6}|6\\\\d{7})|7(?:1\\\\d{7}|3\\\\d{8}|5[03-9]\\\\d{3,7})"]],"FJ":["679","[2-9]\\\\d{6}|0\\\\d{10}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[2-9]"]],["(\\\\d{4})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["0"]]]],"FK":["500","[2-7]\\\\d{4}"],"FM":["691","[39]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"FO":["298","[2-9]\\\\d{5}",[["(\\\\d{6})","$1"]],null,null,"(10(?:01|[12]0|88))"],"FR":["33","[1-9]\\\\d{8}",[["([1-79])(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["[1-79]"]],["(8\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["8"],"0 $1"]],"0","0$1"],"GA":["241","0?\\\\d{7}",[["(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["0"]]]],"GB":["44","\\\\d{7,10}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0","0$1",null,null,null,null,["2(?:0[01378]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\\\d{7}|1(?:1(?:3[0-48]|[46][0-4]|5[0-26-9]|[78][0-49])|21[0-7]|31[0-8]|[4-69]1\\\\d)\\\\d{6}|1(?:2(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\\\d)|3(?:0\\\\d|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[28][02-57-9]|[37]\\\\d|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|2[024-9]|3[015689]|4[02-9]|5[03-9]|6\\\\d|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0124578])|7(?:0[0246-9]|2\\\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\\\d|8[02-9]|9[02569])|9(?:0[02-589]|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|8\\\\d|9[2-57]))\\\\d{6}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[345])))|3(?:638[2-5]|647[23]|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[123]))|5(?:24(?:3[2-79]|6\\\\d)|276\\\\d|6(?:26[06-9]|686))|6(?:06(?:4\\\\d|7[4-79])|295[567]|35[34]\\\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|955[0-4])|7(?:26(?:6[13-9]|7[0-7])|442\\\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\\\d|37(?:5[2-5]|8[239])|84(?:3[2-58]))|9(?:0(?:0(?:6[1-8]|85)|52\\\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\\\d{3}|176888[2-46-8]\\\\d{2}|16977[23]\\\\d{3}","7(?:[1-3]\\\\d{3}|4(?:[0-46-9]\\\\d{2}|5(?:[0-689]\\\\d|7[0-57-9]))|5(?:0[0-8]|[13-9]\\\\d|2[0-35-9])\\\\d|7(?:0(?:0[01]|[1-9]\\\\d)|[1-7]\\\\d{2}|8[02-9]\\\\d|9[0-689]\\\\d)|8(?:[014-9]\\\\d|[23][0-8])\\\\d|9(?:[024-9]\\\\d{2}|1(?:[02-9]\\\\d|1[028])|3[0-689]\\\\d))\\\\d{5}","80(?:0(?:1111|\\\\d{6,7})|8\\\\d{7})","(?:87[123]|9(?:[01]\\\\d|8[2349]))\\\\d{7}","70\\\\d{8}",null,"(?:3[0347]|55)\\\\d{8}","76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}","56\\\\d{8}","8(?:4(?:5464\\\\d|[2-5]\\\\d{7})|70\\\\d{7})"]],"GD":["1","[4589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"473"],"GE":["995","[34578]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7"],"0$1"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5"]]],"0"],"GF":["594","[56]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]],"0","0$1"],"GG":["44","[135789]\\\\d{6,9}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0",null,null,null,null,null,["1481[25-9]\\\\d{5}","7(?:781\\\\d|839\\\\d|911[17])\\\\d{5}","80(?:0(?:1111|\\\\d{6,7})|8\\\\d{7})","(?:87[123]|9(?:[01]\\\\d|8[0-3]))\\\\d{7}","70\\\\d{8}",null,"(?:3[0347]|55)\\\\d{8}","76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}","56\\\\d{8}","8(?:4(?:5464\\\\d|[2-5]\\\\d{7})|70\\\\d{7})"]],"GH":["233","[235]\\\\d{8}|8\\\\d{7}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[235]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["8"]]],"0","0$1"],"GI":["350","[256]\\\\d{7}",[["(\\\\d{3})(\\\\d{5})","$1 $2",["2"]]]],"GL":["299","[1-689]\\\\d{5}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"GM":["220","[2-9]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"GN":["224","[367]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["3"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[67]"]]]],"GP":["590","[56]\\\\d{8}",[["([56]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["590|69[01]"]]],"0","0$1",null,null,null,null,["590(?:0[1-68]|1[0-2]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\\\d)\\\\d{4}","69(?:0\\\\d{2}|1(?:2[29]|3[0-5]))\\\\d{4}"]],"GQ":["240","[23589]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[235]"]],["(\\\\d{3})(\\\\d{6})","$1 $2",["[89]"]]]],"GR":["30","[26-9]\\\\d{9}",[["([27]\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["21|7"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2[2-9]1|[689]"]],["(2\\\\d{3})(\\\\d{6})","$1 $2",["2[2-9][02-9]"]]]],"GT":["502","[2-7]\\\\d{7}|1[89]\\\\d{9}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[2-7]"]],["(\\\\d{4})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]]]],"GU":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"671"],"GW":["245","(?:4(?:0\\\\d{5}|4\\\\d{7})|9\\\\d{8})",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["44|9[5-7]"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["40"]]]],"GY":["592","[2-46-9]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"HK":["852","[2-7]\\\\d{7}|8[0-3]\\\\d{6,7}|9\\\\d{4,10}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[2-7]|[89](?:0[1-9]|[1-9])"]],["(800)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["800"]],["(900)(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["900"]],["(900)(\\\\d{2,5})","$1 $2",["900"]]]],"HN":["504","[237-9]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1-$2"]]],"HR":["385","[1-7]\\\\d{5,8}|[89]\\\\d{6,8}",[["(1)(\\\\d{4})(\\\\d{3})","$1 $2 $3",["1"]],["([2-5]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[2-5]"]],["(9\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["9"]],["(6[01])(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["6[01]"]],["([67]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[67]"]],["(80[01])(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["80[01]"]],["(80[01])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["80[01]"]]],"0","0$1"],"HT":["509","[2-489]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2 $3"]]],"HU":["36","[1-9]\\\\d{7,8}",[["(1)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[2-9]"]]],"06","($1)"],"ID":["62","(?:[1-79]\\\\d{6,10}|8\\\\d{7,11})",[["(\\\\d{2})(\\\\d{5,8})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\\\d{3})(\\\\d{5,8})","$1 $2",["2[035-9]|[36][02-9]|[4579]"],"(0$1)"],["(8\\\\d{2})(\\\\d{3,4})(\\\\d{3})","$1-$2-$3",["8[1-35-9]"]],["(8\\\\d{2})(\\\\d{4})(\\\\d{4,5})","$1-$2-$3",["8[1-35-9]"]],["(1)(500)(\\\\d{3})","$1 $2 $3",["150","1500"],"$1"],["(177)(\\\\d{6,8})","$1 $2",["177"]],["(800)(\\\\d{5,7})","$1 $2",["800"]],["(804)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["804"]],["(80\\\\d)(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["80[79]"]]],"0","0$1"],"IE":["353","[124-9]\\\\d{6,9}",[["(1)(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["1"]],["(\\\\d{2})(\\\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["40[24]|50[45]"]],["(48)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["48"]],["(818)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["818"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[24-69]|7[14]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["76|8[35-9]"],"0$1"],["(8\\\\d)(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3 $4",["8[35-9]5"],"0$1"],["(700)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["700"],"0$1"],["(\\\\d{4})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1(?:5|8[059])","1(?:5|8[059]0)"],"$1"]],"0","(0$1)"],"IL":["972","1\\\\d{6,11}|[2-589]\\\\d{3}(?:\\\\d{3,6})?|6\\\\d{3}|7\\\\d{6,9}",[["([2-489])(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["([57]\\\\d)(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(153)(\\\\d{1,2})(\\\\d{3})(\\\\d{4})","$1 $2 $3 $4",["153"]],["(1)([7-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(1255)(\\\\d{3})","$1-$2",["125","1255"]],["(1200)(\\\\d{3})(\\\\d{3})","$1-$2-$3",["120","1200"]],["(1212)(\\\\d{2})(\\\\d{2})","$1-$2-$3",["121","1212"]],["(1599)(\\\\d{6})","$1-$2",["159","1599"]],["(151)(\\\\d{1,2})(\\\\d{3})(\\\\d{4})","$1-$2 $3-$4",["151"]],["(\\\\d{4})","*$1",["[2-689]"]]],"0"],"IM":["44","[135789]\\\\d{6,9}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0",null,null,null,null,null,["1624[5-8]\\\\d{5}","7(?:4576|[59]24\\\\d|624[0-4689])\\\\d{5}","808162\\\\d{4}","(?:872299|90[0167]624)\\\\d{4}","70\\\\d{8}",null,"3(?:08162\\\\d|3\\\\d{5}|4(?:40[49]06|5624\\\\d)|7(?:0624\\\\d|2299\\\\d))\\\\d{3}|55\\\\d{8}",null,"56\\\\d{8}","8(?:4(?:40[49]06|5624\\\\d)|70624\\\\d)\\\\d{3}"]],"IN":["91","008\\\\d{9}|1\\\\d{7,12}|[2-9]\\\\d{9,10}",[["(\\\\d{8})","$1",["561","5616","56161"],"$1"],["(\\\\d{5})(\\\\d{5})","$1 $2",["6(?:[09]0|2[03689]|3[05-9])|7(?:[02-8]|19|9[037-9])|8(?:0[015-9]|[1-9])|9","6(?:[09]0|2(?:0[01]|39|60|8[0-2]|9[04])|3(?:0[01]|5[0-2]|60|7[05]|81|9[03-5]))|7(?:[07]|19[0-5]|2(?:[0235-9]|[14][017-9])|3(?:[025-9]|[134][017-9])|4(?:[0-35689]|[47][017-9])|5(?:[02-46-9]|[15][017-9])|6(?:[02-9]|1[0-257-9])|8(?:[0-79]|8[0189])|9(?:[089]|31|7[02-9]))|8(?:0(?:[01589]|6[67]|7[02-9])|1(?:[0-57-9]|6[07-9])|2(?:[014][07-9]|[235-9])|3(?:[03-57-9]|[126][07-9])|[45]|6(?:[02457-9]|[136][07-9])|7(?:[078][07-9]|[1-69])|8(?:[0-25-9]|3[07-9]|4[047-9])|9(?:[02-9]|1[027-9]))|9","6(?:[09]0|2(?:0[01]|39|60|8[0-2]|9[04])|3(?:0[01]|5[0-2]|60|7[05]|81|9[03-5]))|7(?:0|19[0-5]|2(?:[0235-79]|[14][017-9]|8(?:[0-69]|[78][089]))|3(?:[05-8]|1(?:[0189]|7[5-9])|2(?:[0-49][089]|[5-8])|3[017-9]|4(?:[07-9]|11)|9(?:[01689]|[2-5][089]|7[0189]))|4(?:[056]|1(?:[0135-9]|[24][089])|[29](?:[0-7][089]|[89])|3(?:[0-8][089]|9)|[47](?:[089]|11|7[02-8])|8(?:[0-24-7][089]|[389]))|5(?:[0346-9]|[15][017-9]|2(?:[03-9]|[12][089]))|6(?:[0346-9]|1[0-257-9]|2(?:[0-4]|[5-9][089])|5(?:[0-367][089]|[4589]))|7(?:0(?:[02-9]|1[089])|[1-9])|8(?:[0-79]|8(?:0[0189]|11|8[013-9]|9))|9(?:[089]|313|7(?:[02-8]|9[07-9])))|8(?:0(?:[01589]|6[67]|7(?:[02-8]|9[05-9]))|1(?:[02-57-9]|1(?:[0-35-9]|4[0-46-9])|6(?:[089]|7[02-8]))|2(?:0(?:[089]|7[02])|[14](?:[089]|7[02-8])|[235-9])|3(?:[03-57-9]|1(?:[089]|7[02-6])|2(?:[09]|77|8[0-689])|6(?:[089]|7[02-7]))|[45]|6(?:[02457-9]|[136](?:[089]|7[02-8]))|7(?:0[07-9]|[1-69]|[78](?:[089]|7[02-8]))|8(?:[0-25-9]|3(?:[089]|7[02-8])|4(?:[0489]|7[02-68]))|9(?:[02-9]|1(?:[0289]|7[2-6])))|9"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-9]|80[2-46]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[59][14]|[68][1-9]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1|9[15])|6(?:12|[2-4]1|5[17]|6[13]|7[14]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)"]],["(\\\\d{4})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1(?:[23579]|[468][1-9])|[2-8]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})(\\\\d{3})","$1 $2 $3 $4",["008"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["140"],"$1"],["(\\\\d{4})(\\\\d{2})(\\\\d{4})","$1 $2 $3",["160","1600"],"$1"],["(\\\\d{4})(\\\\d{4,5})","$1 $2",["180","1800"],"$1"],["(\\\\d{4})(\\\\d{2,4})(\\\\d{4})","$1 $2 $3",["180","1800"],"$1"],["(\\\\d{4})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["186","1860"],"$1"],["(\\\\d{4})(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["18[06]"],"$1"]],"0","0$1",null,null,true],"IO":["246","3\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"IQ":["964","[1-7]\\\\d{7,9}",[["(1)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]],["([2-6]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[2-6]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"0","0$1"],"IR":["98","[1-8]\\\\d{5,9}|9(?:[0-4]\\\\d{8}|9\\\\d{8})",[["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[1-8]"]],["(\\\\d{2})(\\\\d{4,5})","$1 $2",["[1-8]"]],["(\\\\d{4,5})","$1",["96"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["9"]]],"0","0$1"],"IS":["354","[4-9]\\\\d{6}|38\\\\d{7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[4-9]"]],["(3\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["3"]]]],"IT":["39","[01589]\\\\d{5,10}|3(?:[12457-9]\\\\d{8}|[36]\\\\d{7,9})",[["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[26]|55"]],["(0[26])(\\\\d{4})(\\\\d{5})","$1 $2 $3",["0[26]"]],["(0[26])(\\\\d{4,6})","$1 $2",["0[26]"]],["(0\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[13-57-9][0159]"]],["(\\\\d{3})(\\\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]],["(0\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["0[13-57-9][2-46-8]"]],["(0\\\\d{3})(\\\\d{2,6})","$1 $2",["0[13-57-9][2-46-8]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[13]|8(?:00|4[08]|9[59])","[13]|8(?:00|4[08]|9(?:5[5-9]|9))"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["894","894[5-9]"]],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["3"]]],null,null,null,null,null,null,["0(?:[26]\\\\d{4,9}|(?:1(?:[0159]\\\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|3(?:[0159]\\\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|7(?:[0159]\\\\d|2[12]|3[1-7]|4[2346]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\\\d|2[34578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\\\d{2,7})","3(?:[12457-9]\\\\d{8}|6\\\\d{7,8}|3\\\\d{7,9})","80(?:0\\\\d{6}|3\\\\d{3})","0878\\\\d{5}|1(?:44|6[346])\\\\d{6}|89(?:2\\\\d{3}|4(?:[0-4]\\\\d{2}|[5-9]\\\\d{4})|5(?:[0-4]\\\\d{2}|[5-9]\\\\d{6})|9\\\\d{6})","1(?:78\\\\d|99)\\\\d{6}",null,null,null,"55\\\\d{8}","84(?:[08]\\\\d{6}|[17]\\\\d{3})"]],"JE":["44","[135789]\\\\d{6,9}",[["(7\\\\d{3})(\\\\d{6})","$1 $2",["7(?:[1-57-9]|62)","7(?:[1-57-9]|624)"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2|5[56]|7[06]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[02-9]1|1)|3|9[018]"]],["(\\\\d{5})(\\\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"]],["(1\\\\d{3})(\\\\d{5,6})","$1 $2",["1"]],["(800)(\\\\d{4})","$1 $2",["800","8001","80011","800111","8001111"]],["(845)(46)(4\\\\d)","$1 $2 $3",["845","8454","84546","845464"]],["(8\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"]],["(80\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["80"]],["(800)(\\\\d{6})","$1 $2",["800"]]],"0",null,null,null,null,null,["1534[0-24-8]\\\\d{5}","7(?:509\\\\d|7(?:00[378]|97[7-9])|829\\\\d|937\\\\d)\\\\d{5}","80(?:07(?:35|81)|8901)\\\\d{4}","(?:871206|90(?:066[59]|1810|71(?:07|55)))\\\\d{4}","701511\\\\d{4}",null,"3(?:0(?:07(?:35|81)|8901)|3\\\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))\\\\d{4}|55\\\\d{8}","76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}","56\\\\d{8}","8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|70002)\\\\d{4}"]],"JM":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"876"],"JO":["962","[235-9]\\\\d{7,8}",[["(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(7)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["7[457-9]"]],["(\\\\d{2})(\\\\d{7})","$1 $2",["70"]],["(\\\\d{3})(\\\\d{5,6})","$1 $2",["8[0158]|9"]]],"0","0$1"],"JP":["81","[1-9]\\\\d{8,9}|00(?:[36]\\\\d{7,14}|7\\\\d{5,7}|8\\\\d{7})",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1-$2-$3",["(?:12|57|99)0"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["800"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1-$2-$3",["[2579]0|80[1-9]"]],["(\\\\d{4})(\\\\d)(\\\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[78]|96)|477|51[24]|636)|9(?:496|802|9(?:1[23]|69))","1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[78]|96[2457-9])|477|51[24]|636[2-57-9])|9(?:496|802|9(?:1[23]|69))"]],["(\\\\d{3})(\\\\d{2})(\\\\d{4})","$1-$2-$3",["1(?:2[3-6]|3[3-9]|4[2-6]|5[2-8]|[68][2-7]|7[2-689]|9[1-578])|2(?:2[03-689]|3[3-58]|4[0-468]|5[04-8]|6[013-8]|7[06-9]|8[02-57-9]|9[13])|4(?:2[28]|3[689]|6[035-7]|7[05689]|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9[4-9])|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9[014-9])|8(?:2[49]|3[3-8]|4[5-8]|5[2-9]|6[35-9]|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9[3-7])","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:[0468][2-9]|5[78]|7[2-4])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[4-7]|[89][2-8]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9[2-8])|3(?:[3-6][2-9]|7[2-6]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5[4-7]|6[2-9]|8[2-8]|9[236-9])|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3[34]|4[2-69]|[5-7]))","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:[0468][2-9]|5[78]|7[2-4])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[4-7]|[89][2-8]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:20|[3578]|4[04-9]|6[56]))|3(?:[3-6][2-9]|7(?:[2-5]|6[0-59])|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:[0468][2-9]|5[78]|7[2-4])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[4-7]|[89][2-8]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:20|[3578]|4[04-9]|6(?:5[25]|60)))|3(?:[3-6][2-9]|7(?:[2-5]|6[0-59])|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["1|2(?:2[37]|5[5-9]|64|78|8[39]|91)|4(?:2[2689]|64|7[347])|5[2-589]|60|8(?:2[124589]|3[279]|[46-9])|9(?:[235-8]|93)","1|2(?:2[37]|5(?:[57]|[68]0|9[19])|64|78|8[39]|917)|4(?:2(?:20|[68]|9[178])|64|7[347])|5[2-589]|60|8(?:2[124589]|3[279]|[46-9])|9(?:[235-8]|93[34])","1|2(?:2[37]|5(?:[57]|[68]0|9(?:17|99))|64|78|8[39]|917)|4(?:2(?:20|[68]|9[178])|64|7[347])|5[2-589]|60|8(?:2[124589]|3[279]|[46-9])|9(?:[235-8]|93(?:31|4))"]],["(\\\\d{3})(\\\\d{2})(\\\\d{4})","$1-$2-$3",["2(?:[34]7|[56]9|74|9[14-79])|82|993"]],["(\\\\d)(\\\\d{4})(\\\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["[2479][1-9]"]]],"0","0$1"],"KE":["254","20\\\\d{6,7}|[4-9]\\\\d{6,9}",[["(\\\\d{2})(\\\\d{5,7})","$1 $2",["[24-6]"]],["(\\\\d{3})(\\\\d{6})","$1 $2",["7"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[89]"]]],"0","0$1","005|0"],"KG":["996","[235-8]\\\\d{8,9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[25-7]|31[25]"]],["(\\\\d{4})(\\\\d{5})","$1 $2",["3(?:1[36]|[2-9])"]],["(\\\\d{3})(\\\\d{3})(\\\\d)(\\\\d{3})","$1 $2 $3 $4",["8"]]],"0","0$1"],"KH":["855","[1-9]\\\\d{7,9}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["1\\\\d[1-9]|[2-9]"],"0$1"],["(1[89]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[89]0","1[89]00"]]],"0"],"KI":["686","[2458]\\\\d{4}|3\\\\d{4,7}|[67]\\\\d{7}",[],null,null,"0"],"KM":["269","[3478]\\\\d{6}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"KN":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"869"],"KP":["850","1\\\\d{9}|[28]\\\\d{7}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1"]],["(\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["8"]]],"0","0$1"],"KR":["82","00(?:3\\\\d{8,9}|7\\\\d{9,11})|[1-7]\\\\d{4,9}|8\\\\d{8}",[["(\\\\d{2})(\\\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"]],["(\\\\d{4})(\\\\d{4})","$1-$2",["1(?:5[246-9]|6[046-8]|8[03579])","1(?:5(?:22|44|66|77|88|99)|6(?:[07]0|44|6[16]|88)|8(?:00|33|55|77|99))"],"$1"],["(\\\\d{5})","$1",["1[016-9]1","1[016-9]11","1[016-9]114"]],["(\\\\d)(\\\\d{3,4})(\\\\d{4})","$1-$2-$3",["2[1-9]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1-$2-$3",["60[2-9]|80"]],["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1-$2-$3",["1[0-25-9]|(?:3[1-3]|[46][1-4]|5[1-5])[1-9]"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1-$2-$3",["[57]0"]]],"0","0$1","0(8[1-46-8]|85\\\\d{2})?"],"KW":["965","[12569]\\\\d{6,7}",[["(\\\\d{4})(\\\\d{3,4})","$1 $2",["[16]|2(?:[0-35-9]|4[0-35-9])|52[25]|9[024-9]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["244|5(?:[015]|6[56])"]]]],"KY":["1","[3589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"345"],"KZ":["7","(?:33\\\\d|7\\\\d{2}|80[089])\\\\d{7}",[["([3489]\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["[3489]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"8",null,null,null,null,null,["33622\\\\d{5}|7(?:1(?:0(?:[23]\\\\d|4[0-3]|59|63)|1(?:[23]\\\\d|4[0-79]|59)|2(?:[23]\\\\d|59)|3(?:2\\\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\\\d|3[013-9]|5[1-9])|5(?:2\\\\d|3[1-9]|4[0-7]|59)|6(?:[234]\\\\d|5[19]|61)|72\\\\d|8(?:[27]\\\\d|3[1-46-9]|4[0-5]))|2(?:1(?:[23]\\\\d|4[46-9]|5[3469])|2(?:2\\\\d|3[0679]|46|5[12679])|3(?:[234]\\\\d|5[139])|4(?:2\\\\d|3[1235-9]|59)|5(?:[23]\\\\d|4[01246-8]|59|61)|6(?:2\\\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\\\d|40|5[279])|8(?:[23]\\\\d|4[0-3]|59)|9(?:2\\\\d|3[124578]|59)))\\\\d{5}","7(?:0[012578]|47|6[02-4]|7[15-8]|85)\\\\d{7}","800\\\\d{7}","809\\\\d{7}","808\\\\d{7}",null,null,null,"751\\\\d{7}"]],"LA":["856","[2-8]\\\\d{7,9}",[["(20)(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["20"]],["([2-8]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"]],["(30)(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["30"]]],"0","0$1"],"LB":["961","[13-9]\\\\d{6,7}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["([7-9]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7(?:[01]|6[013-9]|8[89]|9[1-3])|[89][01]"]]],"0"],"LC":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"758"],"LI":["423","6\\\\d{8}|[23789]\\\\d{6}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["[237-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6[56]"]],["(69)(7\\\\d{2})(\\\\d{4})","$1 $2 $3",["697"]]],"0",null,"0|10(?:01|20|66)"],"LK":["94","[1-9]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[1-689]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"0","0$1"],"LR":["231","2\\\\d{7,8}|[378]\\\\d{8}|4\\\\d{6}|5\\\\d{6,8}",[["(2\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2"]],["([4-5])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[45]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[23578]"]]],"0","0$1"],"LS":["266","[2568]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"LT":["370","[3-9]\\\\d{7}",[["([34]\\\\d)(\\\\d{6})","$1 $2",["37|4(?:1|5[45]|6[2-4])"]],["([3-6]\\\\d{2})(\\\\d{5})","$1 $2",["3[148]|4(?:[24]|6[09])|528|6"]],["([7-9]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[7-9]"],"8 $1"],["(5)(2\\\\d{2})(\\\\d{4})","$1 $2 $3",["52[0-79]"]]],"8","(8-$1)","[08]",null,true],"LU":["352","[24-9]\\\\d{3,10}|3(?:[0-46-9]\\\\d{2,9}|5[013-9]\\\\d{1,8})",[["(\\\\d{2})(\\\\d{3})","$1 $2",["[2-5]|7[1-9]|[89](?:0[2-9]|[1-9])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["[2-5]|7[1-9]|[89](?:0[2-9]|[1-9])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["20"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3 $4",["20"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,4})","$1 $2 $3 $4",["2(?:[12589]|4[12])|[3-5]|7[1-9]|8(?:0[2-9]|[1-9])|9(?:0[2-46-9]|[1-9])"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["70|80[01]|90[015]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["6"]]],null,null,"(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\\\\d)"],"LV":["371","[2689]\\\\d{7}",[["([2689]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2689]"]]]],"LY":["218","[25679]\\\\d{8}",[["([25-79]\\\\d)(\\\\d{7})","$1-$2",["[25-79]"]]],"0","0$1"],"MA":["212","[5-9]\\\\d{8}",[["([5-7]\\\\d{2})(\\\\d{6})","$1-$2",["5(?:2[015-7]|3[0-4])|[67]"]],["([58]\\\\d{3})(\\\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|92)|892","5(?:2(?:[2-48]|9[0-7])|3(?:[5-79]|8[0-7])|924)|892"]],["(5\\\\d{4})(\\\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]"]],["([5]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5(?:4[067]|5[03])"]],["(8[09])(\\\\d{7})","$1-$2",["8(?:0|9[013-9])"]]],"0","0$1",null,null,null,null,["5(?:2(?:[015-79]\\\\d|2[02-9]|3[2-57]|4[2-8]|8[235-7])\\\\d|3(?:[0-48]\\\\d|[57][2-9]|6[2-8]|9[3-9])\\\\d|4[067]\\\\d{2}|5[03]\\\\d{2})\\\\d{4}","(?:6(?:[0-79]\\\\d|8[0-247-9])|7(?:0[067]|6[1267]|7[07]))\\\\d{6}","80\\\\d{7}","89\\\\d{7}",null,null,null,null,"5924[01]\\\\d{4}"]],"MC":["377","[34689]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[39]"],"$1"],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["4"]],["(6)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4 $5",["6"]],["(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1 $2 $3",["8"],"$1"]],"0","0$1"],"MD":["373","[235-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["22|3"]],["([25-7]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["2[13-9]|[5-7]"]],["([89]\\\\d{2})(\\\\d{5})","$1 $2",["[89]"]]],"0","0$1"],"ME":["382","[2-9]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-57-9]|6[036-9]"]]],"0","0$1"],"MF":["590","[56]\\\\d{8}",[["([56]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2-$3",["590|69[01]"]]],"0",null,null,null,null,null,["590(?:0[079]|13|2[79]|30|43|5[0-268]|7[79]|87)\\\\d{4}","69(?:0\\\\d{2}|1(?:2[29]|3[0-5]))\\\\d{4}"]],"MG":["261","[23]\\\\d{8}",[["([23]\\\\d)(\\\\d{2})(\\\\d{3})(\\\\d{2})","$1 $2 $3 $4",["[23]"]]],"0","0$1"],"MH":["692","[2-6]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1-$2"]],"1"],"MK":["389","[2-578]\\\\d{7}",[["(2)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"]],["([347]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[347]"]],["([58]\\\\d{2})(\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[58]"]]],"0","0$1"],"ML":["223","[246-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[246-9]"]]]],"MM":["95","[178]\\\\d{5,7}|[24-6]\\\\d{5,8}|9(?:[279]\\\\d{0,2}|5|[34]\\\\d{1,2}|6(?:\\\\d{1,2})?|8(?:\\\\d{2})?)\\\\d{6}",[["(\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["1|2[245]"]],["(2)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["251"]],["(\\\\d)(\\\\d{2})(\\\\d{3})","$1 $2 $3",["16|2"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["432|67|81"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3,4})","$1 $2 $3",["[4-8]"]],["(9)(\\\\d{3})(\\\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"]],["(9)([34]\\\\d{4})(\\\\d{4})","$1 $2 $3",["9(?:3[0-36]|4[0-57-9])"]],["(9)(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["92[56]"]],["(9)(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1 $2 $3 $4",["93"]]],"0","0$1"],"MN":["976","[12]\\\\d{7,9}|[57-9]\\\\d{7}",[["([12]\\\\d)(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[12]1"]],["([12]2\\\\d)(\\\\d{5,6})","$1 $2",["[12]2[1-3]"]],["([12]\\\\d{3})(\\\\d{5})","$1 $2",["[12](?:27|[3-5])","[12](?:27|[3-5]\\\\d)2"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["[57-9]"],"$1"],["([12]\\\\d{4})(\\\\d{4,5})","$1 $2",["[12](?:27|[3-5])","[12](?:27|[3-5]\\\\d)[4-9]"]]],"0","0$1"],"MO":["853","[268]\\\\d{7}",[["([268]\\\\d{3})(\\\\d{4})","$1 $2",["[268]"]]]],"MP":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"670"],"MQ":["596","[56]\\\\d{8}",[["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]],"0","0$1"],"MR":["222","[2-48]\\\\d{7}",[["([2-48]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],"MS":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"664"],"MT":["356","[2357-9]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"MU":["230","[2-9]\\\\d{6,7}",[["([2-46-9]\\\\d{2})(\\\\d{4})","$1 $2",["[2-46-9]"]],["(5\\\\d{3})(\\\\d{4})","$1 $2",["5"]]]],"MV":["960","[346-8]\\\\d{6,9}|9(?:00\\\\d{7}|\\\\d{6})",[["(\\\\d{3})(\\\\d{4})","$1-$2",["[3467]|9(?:0[1-9]|[1-9])"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[89]00"]]]],"MW":["265","(?:1(?:\\\\d{2})?|[2789]\\\\d{2})\\\\d{6}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1"]],["(2\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[17-9]"]]],"0","0$1"],"MX":["52","[1-9]\\\\d{9,10}",[["([358]\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["33|55|81"]],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[2467]|3[0-2457-9]|5[089]|8[02-9]|9[0-35-9]"]],["(1)([358]\\\\d)(\\\\d{4})(\\\\d{4})","044 $2 $3 $4",["1(?:33|55|81)"],"$1",null,"$1 $2 $3 $4"],["(1)(\\\\d{3})(\\\\d{3})(\\\\d{4})","044 $2 $3 $4",["1(?:[2467]|3[0-2457-9]|5[089]|8[2-9]|9[1-35-9])"],"$1",null,"$1 $2 $3 $4"]],"01","01 $1","0[12]|04[45](\\\\d{10})","1$1",true],"MY":["60","[13-9]\\\\d{7,9}",[["([4-79])(\\\\d{3})(\\\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(3)(\\\\d{4})(\\\\d{4})","$1-$2 $3",["3"],"0$1"],["([18]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1-$2 $3",["1[02-46-9][1-9]|8"],"0$1"],["(1)([36-8]00)(\\\\d{2})(\\\\d{4})","$1-$2-$3-$4",["1[36-8]0","1[36-8]00"]],["(11)(\\\\d{4})(\\\\d{4})","$1-$2 $3",["11"],"0$1"],["(15[49])(\\\\d{3})(\\\\d{4})","$1-$2 $3",["15[49]"],"0$1"]],"0"],"MZ":["258","[28]\\\\d{7,8}",[["([28]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2|8[2-7]"]],["(80\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["80"]]]],"NA":["264","[68]\\\\d{7,8}",[["(8\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["8[1-35]"]],["(6\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["6"]],["(88)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["88"]],["(870)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["870"]]],"0","0$1"],"NC":["687","[2-57-9]\\\\d{5}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1.$2.$3",["[2-46-9]|5[0-4]"]]]],"NE":["227","[0289]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["09|[289]"]],["(08)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["08"]]]],"NF":["672","[13]\\\\d{5}",[["(\\\\d{2})(\\\\d{4})","$1 $2",["1"]],["(\\\\d)(\\\\d{5})","$1 $2",["3"]]]],"NG":["234","[1-6]\\\\d{5,8}|9\\\\d{5,9}|[78]\\\\d{5,13}",[["(\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2,3})","$1 $2 $3",["[3-6]|7(?:0[1-9]|[1-79])|8[2-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["70|8[01]|90[235-9]"]],["([78]00)(\\\\d{4})(\\\\d{4,5})","$1 $2 $3",["[78]00"]],["([78]00)(\\\\d{5})(\\\\d{5,6})","$1 $2 $3",["[78]00"]],["(78)(\\\\d{2})(\\\\d{3})","$1 $2 $3",["78"]]],"0","0$1"],"NI":["505","[125-8]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2"]]],"NL":["31","1\\\\d{4,8}|[2-7]\\\\d{8}|[89]\\\\d{6,9}",[["([1-578]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[035]|2[0346]|3[03568]|4[0356]|5[0358]|7|8[4578]"]],["([1-5]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"]],["(6)(\\\\d{8})","$1 $2",["6[0-57-9]"]],["(66)(\\\\d{7})","$1 $2",["66"]],["(14)(\\\\d{3,4})","$1 $2",["14"],"$1"],["([89]0\\\\d)(\\\\d{4,7})","$1 $2",["[89]0"]]],"0","0$1"],"NO":["47","0\\\\d{4}|[2-9]\\\\d{7}",[["([489]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[489]"]],["([235-7]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[235-7]"]]],null,null,null,null,null,null,["(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\\\d{6}","(?:4[015-8]|5[89]|87|9\\\\d)\\\\d{6}","80[01]\\\\d{5}","82[09]\\\\d{5}","880\\\\d{5}",null,"0\\\\d{4}|81(?:0(?:0[7-9]|1\\\\d)|5\\\\d{2})\\\\d{3}",null,"85[0-5]\\\\d{5}","810(?:0[0-6]|[2-8]\\\\d)\\\\d{3}"]],"NP":["977","[1-8]\\\\d{7}|9(?:[1-69]\\\\d{6,8}|7[2-6]\\\\d{5,7}|8\\\\d{8})",[["(1)(\\\\d{7})","$1-$2",["1[2-6]"]],["(\\\\d{2})(\\\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-69]|7[15-9])"]],["(9\\\\d{2})(\\\\d{7})","$1-$2",["9(?:6[013]|7[245]|8)"],"$1"]],"0","0$1"],"NR":["674","[458]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"NU":["683","[1-5]\\\\d{3}"],"NZ":["64","6[235-9]\\\\d{6}|[2-57-9]\\\\d{7,9}",[["(\\\\d)(\\\\d{3})(\\\\d{4})","$1-$2 $3",["240|[346]|7[2-57-9]|9[1-9]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["21"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3,5})","$1 $2 $3",["2(?:1[1-9]|[69]|7[0-35-9])|70|86"]],["(2\\\\d)(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["2[028]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["90"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2(?:10|74)|5|[89]0"]]],"0","0$1"],"OM":["968","(?:5|[279]\\\\d)\\\\d{6}|800\\\\d{5,6}",[["(2\\\\d)(\\\\d{6})","$1 $2",["2"]],["([79]\\\\d{3})(\\\\d{4})","$1 $2",["[79]"]],["([58]00)(\\\\d{4,6})","$1 $2",["[58]00"]]]],"PA":["507","[1-9]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1-$2",["[1-57-9]"]],["(\\\\d{4})(\\\\d{4})","$1-$2",["6"]]]],"PE":["51","[14-9]\\\\d{7,8}",[["(1)(\\\\d{7})","$1 $2",["1"]],["([4-8]\\\\d)(\\\\d{6})","$1 $2",["[4-7]|8[2-4]"]],["(\\\\d{3})(\\\\d{5})","$1 $2",["80"]],["(9\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9"],"$1"]],"0","(0$1)"],"PF":["689","4\\\\d{5,7}|8\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["4[09]|8[79]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3",["44"]]]],"PG":["675","[1-9]\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[13-689]|27"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["20|7"]]]],"PH":["63","1\\\\d{10,12}|2\\\\d{5,7}|[3-7]\\\\d{8}|8\\\\d{7,9}|9\\\\d{9}",[["(2)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(2)(\\\\d{5})","$1 $2",["2"],"(0$1)"],["(\\\\d{4})(\\\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|5(?:22|44)|642|8(?:62|8[245])","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\\\d{5})(\\\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["([3-8]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[3-8]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["81|9"],"0$1"],["(1800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["180","1800"]],["(1800)(\\\\d{1,2})(\\\\d{3})(\\\\d{4})","$1 $2 $3 $4",["180","1800"]]],"0"],"PK":["92","1\\\\d{8}|[2-8]\\\\d{5,11}|9(?:[013-9]\\\\d{4,10}|2\\\\d(?:111\\\\d{6}|\\\\d{3,7}))",[["([89]00)(\\\\d{3})(\\\\d{2})","$1 $2 $3",["[89]00"],"0$1"],["(1\\\\d{3})(\\\\d{5})","$1 $2",["1"],"$1"],["(\\\\d{2})(\\\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"]],["(\\\\d{3})(\\\\d{6,7})","$1 $2",["2[349]|45|54|60|72|8[2-5]|9[2-469]","(?:2[349]|45|54|60|72|8[2-5]|9[2-469])\\\\d[2-9]"]],["(58\\\\d{3})(\\\\d{5})","$1 $2",["58[126]"]],["(3\\\\d{2})(\\\\d{7})","$1 $2",["3"],"0$1"],["(\\\\d{2})(111)(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)1","(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)11","(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)111"]],["(\\\\d{3})(111)(\\\\d{3})(\\\\d{3})","$1 $2 $3 $4",["2[349]|45|54|60|72|8[2-5]|9[2-9]","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\\\d1","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\\\d11","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\\\d111"]]],"0","(0$1)"],"PL":["48","[1-57-9]\\\\d{6,8}|6\\\\d{5,8}",[["(\\\\d{3})(\\\\d{3})","$1 $2",["11[68]|64"]],["(\\\\d{5})","$1",["19"]],["(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["64"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["26|39|45|5[0137]|6[0469]|7[02389]|8[08]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[14]|2[0-57-9]|3[2-4]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145]"]]]],"PM":["508","[45]\\\\d{5}",[["([45]\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2 $3",["[45]"]]],"0","0$1"],"PR":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"787|939"],"PS":["970","1\\\\d{9}|[24589]\\\\d{7,8}",[["([2489])(2\\\\d{2})(\\\\d{4})","$1 $2 $3",["[2489]2"]],["(5[69]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["5[69]"]],["(1[78]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[78]0","1[78]00"],"$1"]],"0","0$1"],"PT":["351","[2-46-9]\\\\d{8}",[["(2\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2[12]"]],["([2-46-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2[3-9]|[346-9]"]]]],"PW":["680","[2-8]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"PY":["595","5[0-5]\\\\d{4,7}|[2-46-9]\\\\d{5,8}",[["(\\\\d{2})(\\\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\\\d{3})(\\\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\\\d{3})(\\\\d{6})","$1 $2",["9[1-9]"],"0$1"],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["870","8700"]],["(\\\\d{3})(\\\\d{4,5})","$1 $2",["[2-8][1-9]"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[2-8][1-9]"],"0$1"]],"0"],"QA":["974","[2-8]\\\\d{6,7}",[["([28]\\\\d{2})(\\\\d{4})","$1 $2",["[28]"]],["([3-7]\\\\d{3})(\\\\d{4})","$1 $2",["[3-7]"]]]],"RE":["262","[268]\\\\d{8}",[["([268]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[268]"]]],"0","0$1",null,null,null,"262|69|8"],"RO":["40","[23]\\\\d{5,8}|[7-9]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[23]1"]],["(\\\\d{2})(\\\\d{4})","$1 $2",["[23]1"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[23][3-7]|[7-9]"]],["(2\\\\d{2})(\\\\d{3})","$1 $2",["2[3-6]"]]],"0","0$1"],"RS":["381","[126-9]\\\\d{4,11}|3(?:[0-79]\\\\d{3,10}|8[2-9]\\\\d{2,9})",[["([23]\\\\d{2})(\\\\d{4,9})","$1 $2",["(?:2[389]|39)0"]],["([1-3]\\\\d)(\\\\d{5,10})","$1 $2",["1|2(?:[0-24-7]|[389][1-9])|3(?:[0-8]|9[1-9])"]],["(6\\\\d)(\\\\d{6,8})","$1 $2",["6"]],["([89]\\\\d{2})(\\\\d{3,9})","$1 $2",["[89]"]],["(7[26])(\\\\d{4,9})","$1 $2",["7[26]"]],["(7[08]\\\\d)(\\\\d{4,9})","$1 $2",["7[08]"]]],"0","0$1"],"RU":["7","[347-9]\\\\d{9}",[["([3489]\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["[3489]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]]],"8","8 ($1)",null,null,true,null,["(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15]|6[1-35-79]|7[1-37-9]))\\\\d{7}","9\\\\d{9}","80[04]\\\\d{7}","80[39]\\\\d{7}","808\\\\d{7}"]],"RW":["250","[027-9]\\\\d{7,8}",[["(2\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["2"]],["([7-9]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(0\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["0"]]],"0"],"SA":["966","1\\\\d{7,8}|(?:[2-467]|92)\\\\d{7}|5\\\\d{8}|8\\\\d{9}",[["([1-467])(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1-467]"]],["(1\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[1-467]"]],["(5\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["5"]],["(92\\\\d{2})(\\\\d{5})","$1 $2",["92"],"$1"],["(800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["800"],"$1"],["(811)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["811"]]],"0","0$1"],"SB":["677","[1-9]\\\\d{4,6}",[["(\\\\d{2})(\\\\d{5})","$1 $2",["[7-9]"]]]],"SC":["248","[24689]\\\\d{5,6}",[["(\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[246]"]]]],"SD":["249","[19]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3"]],"0","0$1"],"SE":["46","[1-35-9]\\\\d{5,11}|4\\\\d{6,8}",[["(8)(\\\\d{2,3})(\\\\d{2,3})(\\\\d{2})","$1-$2 $3 $4",["8"],null,null,"$1 $2 $3 $4"],["([1-69]\\\\d)(\\\\d{2,3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["1[013689]|2[0136]|3[1356]|4[0246]|54|6[03]|90"],null,null,"$1 $2 $3 $4"],["([1-469]\\\\d)(\\\\d{3})(\\\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90"],null,null,"$1 $2 $3"],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[0-5]|4[0-3])"],null,null,"$1 $2 $3 $4"],["(\\\\d{3})(\\\\d{2,3})(\\\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[0-5]|4[0-3])"],null,null,"$1 $2 $3"],["(7\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4",["7"],null,null,"$1 $2 $3 $4"],["(77)(\\\\d{2})(\\\\d{2})","$1-$2$3",["77"],null,null,"$1 $2 $3"],["(20)(\\\\d{2,3})(\\\\d{2})","$1-$2 $3",["20"],null,null,"$1 $2 $3"],["(9[034]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{3})","$1-$2 $3 $4",["9[034]"],null,null,"$1 $2 $3 $4"],["(9[034]\\\\d)(\\\\d{4})","$1-$2",["9[034]"],null,null,"$1 $2"],["(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1-$2 $3 $4 $5",["25[245]|67[3-6]"],null,null,"$1 $2 $3 $4 $5"]],"0","0$1"],"SG":["65","[36]\\\\d{7}|[17-9]\\\\d{7,10}",[["([3689]\\\\d{3})(\\\\d{4})","$1 $2",["[369]|8[1-9]"]],["(1[89]00)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1[89]0","1[89]00"]],["(7000)(\\\\d{4})(\\\\d{3})","$1 $2 $3",["700","7000"]],["(800)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["800"]]]],"SH":["290","[256]\\\\d{4}|8\\\\d{3}",[],null,null,null,null,null,null,["2(?:[0-57-9]\\\\d|6[4-9])\\\\d{2}","[56]\\\\d{4}",null,null,null,null,null,null,"262\\\\d{2}"]],"SI":["386","[1-7]\\\\d{6,7}|[89]\\\\d{4,7}",[["(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[12]|[34][24-8]|5[2-8]|7[3-8]"],"(0$1)"],["([3-7]\\\\d)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"]],["([89][09])(\\\\d{3,6})","$1 $2",["[89][09]"]],["([58]\\\\d{2})(\\\\d{5})","$1 $2",["59|8[1-3]"]]],"0","0$1"],"SJ":["47","0\\\\d{4}|[45789]\\\\d{7}",[["([489]\\\\d{2})(\\\\d{2})(\\\\d{3})","$1 $2 $3",["[489]"]],["([235-7]\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[235-7]"]]],null,null,null,null,null,null,["79\\\\d{6}","(?:4[015-8]|5[89]|9\\\\d)\\\\d{6}","80[01]\\\\d{5}","82[09]\\\\d{5}","880\\\\d{5}",null,"0\\\\d{4}|81(?:0(?:0[7-9]|1\\\\d)|5\\\\d{2})\\\\d{3}",null,"85[0-5]\\\\d{5}","810(?:0[0-6]|[2-8]\\\\d)\\\\d{3}"]],"SK":["421","(?:[2-68]\\\\d{5,8}|9\\\\d{6,8})",[["(2)(1[67])(\\\\d{3,4})","$1 $2 $3",["21[67]"]],["([3-5]\\\\d)(\\\\d{2})(\\\\d{2,3})","$1 $2 $3",["[3-5]"]],["(2)(\\\\d{3})(\\\\d{3})(\\\\d{2})","$1/$2 $3 $4",["2"]],["([3-5]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1/$2 $3 $4",["[3-5]"]],["([689]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[689]"]],["(9090)(\\\\d{3})","$1 $2",["909","9090"]]],"0","0$1"],"SL":["232","[2-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{6})","$1 $2"]],"0","(0$1)"],"SM":["378","[05-7]\\\\d{7,9}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(0549)(\\\\d{6})","$1 $2",["054","0549"],null,null,"($1) $2"],["(\\\\d{6})","0549 $1",["[89]"],null,null,"(0549) $1"]],null,null,"([89]\\\\d{5})","0549$1"],"SN":["221","[3789]\\\\d{8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[379]"]],["(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["8"]]]],"SO":["252","[1-9]\\\\d{5,8}",[["(\\\\d{6})","$1",["[134]"]],["(\\\\d)(\\\\d{6})","$1 $2",["[13-5]|2[0-79]"]],["(\\\\d)(\\\\d{7})","$1 $2",["24|[67]"]],["(\\\\d{2})(\\\\d{4})","$1 $2",["8[125]"]],["(\\\\d{2})(\\\\d{5,7})","$1 $2",["15|28|6[1-35-9]|799|9[2-9]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["3[59]|4[89]|6[24-6]|79|8[08]|90"]]],"0"],"SR":["597","[2-8]\\\\d{5,6}",[["(\\\\d{3})(\\\\d{3})","$1-$2",["[2-4]|5[2-58]"]],["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1-$2-$3",["56"]],["(\\\\d{3})(\\\\d{4})","$1-$2",["[6-8]"]]]],"SS":["211","[19]\\\\d{8}",[["(\\\\d{3})(\\\\d{3})(\\\\d{3})","$1 $2 $3",null,"0$1"]],"0"],"ST":["239","[29]\\\\d{6}",[["(\\\\d{3})(\\\\d{4})","$1 $2"]]],"SV":["503","[267]\\\\d{7}|[89]\\\\d{6}(?:\\\\d{4})?",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[267]"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["[89]"]],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["[89]"]]]],"SX":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"721"],"SY":["963","[1-59]\\\\d{7,8}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[1-5]"]],["(9\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9"]]],"0","0$1",null,null,true],"SZ":["268","[027]\\\\d{7}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[027]"]]]],"TA":["290","8\\\\d{3}",[],null,null,null,null,null,null,["8\\\\d{3}"]],"TC":["1","[5689]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"649"],"TD":["235","[2679]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4"]]],"TG":["228","[279]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[279]"]]]],"TH":["66","1\\\\d{8,9}|[2-9]\\\\d{7,8}",[["(2)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["2"]],["([13-9]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["14|[3-9]"]],["(1[89]00)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["1[89]0","1[89]00"],"$1"]],"0","0$1"],"TJ":["992","[3-57-9]\\\\d{8}",[["([349]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[34]7|91[78]"]],["([457-9]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["4[148]|[578]|9(?:[0235-9]|1[59])"]],["(331700)(\\\\d)(\\\\d{2})","$1 $2 $3",["331","3317","33170","331700"]],["(\\\\d{4})(\\\\d)(\\\\d{4})","$1 $2 $3",["3[1-5]","3(?:[1245]|3(?:[02-9]|1[0-589]))"]]],"8",null,null,null,true],"TK":["690","[2-47]\\\\d{3,6}"],"TL":["670","[2-489]\\\\d{6}|7\\\\d{6,7}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[2-489]|70"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["7[3-8]"]]]],"TM":["993","[1-6]\\\\d{7}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["12"]],["(\\\\d{2})(\\\\d{6})","$1 $2",["6"],"8 $1"],["(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})","$1 $2-$3-$4",["13|[2-5]"]]],"8","(8 $1)"],"TN":["216","[2-57-9]\\\\d{7}",[["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3"]]],"TO":["676","[02-8]\\\\d{4,6}",[["(\\\\d{2})(\\\\d{3})","$1-$2",["[1-6]|7[0-4]|8[05]"]],["(\\\\d{3})(\\\\d{4})","$1 $2",["7[5-9]|8[47-9]"]],["(\\\\d{4})(\\\\d{3})","$1 $2",["0"]]]],"TR":["90","[2-589]\\\\d{9}|444\\\\d{4}",[["(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[23]|4(?:[0-35-9]|4[0-35-9])"],"(0$1)"],["(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["5[02-69]"],"0$1"],["(\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["51|[89]"],"0$1"],["(444)(\\\\d{1})(\\\\d{3})","$1 $2 $3",["444"]]],"0",null,null,null,true],"TT":["1","[589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"868"],"TV":["688","[279]\\\\d{4,6}"],"TW":["886","2\\\\d{6,8}|[3-689]\\\\d{7,8}|7\\\\d{7,9}",[["(20)(\\\\d)(\\\\d{4})","$1 $2 $3",["202"]],["([258]0)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["20[013-9]|50[0-46-9]|80[0-79]"]],["([2-8])(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["[25][2-8]|[346]|[78][1-9]"]],["(9\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9"]],["(70)(\\\\d{4})(\\\\d{4})","$1 $2 $3",["70"]]],"0","0$1"],"TZ":["255","\\\\d{9}",[["([24]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[24]"]],["([67]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["[67]"]],["([89]\\\\d{2})(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[89]"]]],"0","0$1"],"UA":["380","[3-9]\\\\d{8}",[["([3-9]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[38]9|4(?:[45][0-5]|87)|5(?:0|[67][37])|6[36-8]|7|9[1-9]","[38]9|4(?:[45][0-5]|87)|5(?:0|6(?:3[14-7]|7)|7[37])|6[36-8]|7|9[1-9]"]],["([3-689]\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["(?:3[1-8]|4[136-8])2|5(?:[12457]2|6[24])|6(?:[12][29]|[49]2|5[24])|8[0-8]|90","3(?:[1-46-8]2[013-9]|52)|4(?:[1378]2|62[013-9])|5(?:[12457]2|6[24])|6(?:[12][29]|[49]2|5[24])|8[0-8]|90"]],["([3-6]\\\\d{3})(\\\\d{5})","$1 $2",["3(?:[1-46-8]|5[013-9])|4(?:[137][013-9]|[45][6-9]|6|8[4-6])|5(?:[1245][013-9]|3|6[0135689]|7[4-6])|6(?:[12][13-8]|[49][013-9]|5[0135-9])","3(?:[1-46-8](?:[013-9]|22)|5[013-9])|4(?:[137][013-9]|[45][6-9]|6(?:[013-9]|22)|8[4-6])|5(?:[1245][013-9]|3|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][13-8]|[49][013-9]|5[0135-9])"]]],"0","0$1"],"UG":["256","\\\\d{9}",[["(\\\\d{3})(\\\\d{6})","$1 $2",["20[0-8]|4(?:6[45]|[7-9])|[7-9]","20(?:[013-8]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"]],["(\\\\d{2})(\\\\d{7})","$1 $2",["3|4(?:[1-5]|6[0-36-9])"]],["(2024)(\\\\d{5})","$1 $2",["202","2024"]]],"0","0$1"],"US":["1","[2-9]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,true,null,["(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[026]|8[13])|3(?:0[1-57-9]|1[02-9]|2[0135]|3[0-24679]|4[67]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[0235]|58|6[39]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[013-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[16]|5[017]|6[0-279]|78|8[012])|7(?:0[1-46-8]|1[02-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|28|3[0-258]|4[3578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[014678]|4[0179]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\\\d{6}",null,"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}","900[2-9]\\\\d{6}","5(?:(?:00|22|33|44|66|77|88)[2-9]|21[23])\\\\d{6}"]],"UY":["598","[2489]\\\\d{6,7}",[["(\\\\d{4})(\\\\d{4})","$1 $2",["[24]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["9[1-9]"],"0$1"],["(\\\\d{3})(\\\\d{4})","$1 $2",["[89]0"],"0$1"]],"0"],"UZ":["998","[679]\\\\d{8}",[["([679]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[679]"]]],"8","8 $1"],"VA":["39","(?:0(?:878\\\\d{5}|6698\\\\d{5})|[1589]\\\\d{5,10}|3(?:[12457-9]\\\\d{8}|[36]\\\\d{7,9}))",[["(\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[26]|55"]],["(0[26])(\\\\d{4})(\\\\d{5})","$1 $2 $3",["0[26]"]],["(0[26])(\\\\d{4,6})","$1 $2",["0[26]"]],["(0\\\\d{2})(\\\\d{3,4})(\\\\d{4})","$1 $2 $3",["0[13-57-9][0159]"]],["(\\\\d{3})(\\\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]],["(0\\\\d{3})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["0[13-57-9][2-46-8]"]],["(0\\\\d{3})(\\\\d{2,6})","$1 $2",["0[13-57-9][2-46-8]"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[13]|8(?:00|4[08]|9[59])","[13]|8(?:00|4[08]|9(?:5[5-9]|9))"]],["(\\\\d{4})(\\\\d{4})","$1 $2",["894","894[5-9]"]],["(\\\\d{3})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["3"]]],null,null,null,null,null,null,["06698\\\\d{5}","3(?:[12457-9]\\\\d{8}|6\\\\d{7,8}|3\\\\d{7,9})","80(?:0\\\\d{6}|3\\\\d{3})","0878\\\\d{5}|1(?:44|6[346])\\\\d{6}|89(?:2\\\\d{3}|4(?:[0-4]\\\\d{2}|[5-9]\\\\d{4})|5(?:[0-4]\\\\d{2}|[5-9]\\\\d{6})|9\\\\d{6})","1(?:78\\\\d|99)\\\\d{6}",null,null,null,"55\\\\d{8}","84(?:[08]\\\\d{6}|[17]\\\\d{3})"]],"VC":["1","[5789]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"784"],"VE":["58","[24589]\\\\d{9}",[["(\\\\d{3})(\\\\d{7})","$1-$2"]],"0","0$1"],"VG":["1","[2589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"284"],"VI":["1","[3589]\\\\d{9}",[["(\\\\d{3})(\\\\d{3})(\\\\d{4})","($1) $2-$3",null,null,null,"$1-$2-$3"]],"1",null,null,null,null,"340"],"VN":["84","1\\\\d{6,9}|2\\\\d{9}|6\\\\d{6,7}|7\\\\d{6}|8\\\\d{6,8}|9\\\\d{8}",[["([17]99)(\\\\d{4})","$1 $2",["[17]99"]],["(\\\\d{2})(\\\\d{4})(\\\\d{4})","$1 $2 $3",["2[48]"]],["(80)(\\\\d{5})","$1 $2",["80"]],["(69\\\\d)(\\\\d{4,5})","$1 $2",["69"]],["(\\\\d{3})(\\\\d{4})(\\\\d{3})","$1 $2 $3",["2[0-35-79]"]],["([89]\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["8(?:8|9[89])|9"]],["(1[2689]\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["1(?:[26]|8[68]|99)"]],["(86[89])(\\\\d{3})(\\\\d{3})","$1 $2 $3",["86[89]"]],["(1[89]00)(\\\\d{4,6})","$1 $2",["1[89]0","1[89]00"],"$1"]],"0","0$1",null,null,true],"VU":["678","[2-57-9]\\\\d{4,6}",[["(\\\\d{3})(\\\\d{4})","$1 $2",["[579]"]]]],"WF":["681","[4-8]\\\\d{5}",[["(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3"]]],"WS":["685","[2-8]\\\\d{4,6}",[["(8\\\\d{2})(\\\\d{3,4})","$1 $2",["8"]],["(7\\\\d)(\\\\d{5})","$1 $2",["7"]],["(\\\\d{5})","$1",["[2-6]"]]]],"YE":["967","[1-7]\\\\d{6,8}",[["([1-7])(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"]],["(7\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["7[0137]"]]],"0","0$1"],"YT":["262","[268]\\\\d{8}",[["([268]\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})","$1 $2 $3 $4",["[268]"]]],"0",null,null,null,null,"269|63"],"ZA":["27","[1-79]\\\\d{8}|8\\\\d{4,8}",[["(860)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["860"]],["(\\\\d{2})(\\\\d{3,4})","$1 $2",["8[1-4]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{2,3})","$1 $2 $3",["8[1-4]"]],["(\\\\d{2})(\\\\d{3})(\\\\d{4})","$1 $2 $3",["[1-79]|8(?:[0-57]|6[1-9])"]]],"0","0$1"],"ZM":["260","[289]\\\\d{8}",[["(\\\\d{2})(\\\\d{4})","$1 $2",null,"$1"],["([1-8])(\\\\d{2})(\\\\d{4})","$1 $2 $3",["[1-8]"],"$1"],["([29]\\\\d)(\\\\d{7})","$1 $2",["[29]"]],["(800)(\\\\d{3})(\\\\d{3})","$1 $2 $3",["800"]]],"0","0$1"],"ZW":["263","2(?:[0-57-9]\\\\d{3,8}|6(?:[14]\\\\d{7}|\\\\d{4}))|[13-69]\\\\d{4,9}|7\\\\d{8}|8[06]\\\\d{5,8}",[["([49])(\\\\d{3})(\\\\d{2,4})","$1 $2 $3",["4|9[2-9]"]],["(7\\\\d)(\\\\d{3})(\\\\d{4})","$1 $2 $3",["7"]],["(86\\\\d{2})(\\\\d{3})(\\\\d{3})","$1 $2 $3",["86[24]"]],["([2356]\\\\d{2})(\\\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8|[78])|3(?:[09]8|17|3[78]|7[1569]|8[37])|5[15][78]|6(?:[29]8|37|[68][78]|75)"]],["(\\\\d{3})(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|31|[56][14]|7[35]|84)|329"]],["([1-356]\\\\d)(\\\\d{3,5})","$1 $2",["1[3-9]|2[02569]|3[0-69]|5[05689]|6"]],["([235]\\\\d)(\\\\d{3})(\\\\d{3,4})","$1 $2 $3",["[23]9|54"]],["([25]\\\\d{3})(\\\\d{3,5})","$1 $2",["(?:25|54)8","258[23]|5483"]],["(8\\\\d{3})(\\\\d{6})","$1 $2",["86"]],["(80\\\\d)(\\\\d{4})","$1 $2",["80"]]],"0","0$1"],"001":["979","\\\\d{9}",[["(\\\\d)(\\\\d{4})(\\\\d{4})","$1 $2 $3"]]]}}')},YLEk:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("JIED")),r(n("OSYy"))},Ylt2:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this)).subject=e,i.subscriber=r,i.closed=!1,i}return y(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(n("quSY").a)},YqAc:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},ZF92:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.minDate=function(e){if(!(i.isDate(e)||e instanceof Function))throw Error("minDate value must be or return a formatted date");return function(t){if(i.isPresent(r.Validators.required(t)))return null;var n=new Date(t.value);return i.isDate(n)?(e instanceof Function&&(e=e()),n>=new Date(e)?null:{minDate:!0}):{minDate:!0}}}},ZR4w:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("kU1M");t.map=function(e,t){return r.map(e,t)(this)}},ZUHj:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this)).parent=e,o.outerValue=r,o.outerIndex=i,o.index=0,o}return y(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(n("7o/Q").a),i=n("SeVD"),o=n("HDdC");function a(e,t,n,a){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new r(e,n,a);if(!u.closed)return t instanceof o.a?t.subscribe(u):Object(i.a)(t)(u)}},Zb1L:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("XQZo")),r(n("b2M7"))},a0xu:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},aP66:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qCKp"),i=n("kU1M");t.timeout=function(e,t){return void 0===t&&(t=r.asyncScheduler),i.timeout(e,t)(this)}},afP1:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("WQkh")),r(n("48ZK"))},b2M7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.digits=function(e){return i.isPresent(r.Validators.required(e))||/^\d+$/.test(e.value)?null:{digits:!0}}},bBy9:function(e,t,n){n("w2d+");for(var r=n("5T2Y"),i=n("NegM"),o=n("SBuE"),a=n("UWiX")("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(r.b)(i.a,e)}},bOdf:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("5+tZ");function i(e,t){return Object(r.b)(e,t,1)}},c2HN:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return r})},"cN+o":function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("Cjah")),r(n("TwXH"))},ccE7:function(e,t,n){var r=n("Ojgd"),i=n("Jes0");e.exports=function(e){return function(t,n){var o,a,u=String(i(t)),s=r(n),l=u.length;return s<0||s>=l?e?"":void 0:(o=u.charCodeAt(s))<55296||o>56319||s+1===l||(a=u.charCodeAt(s+1))<56320||a>57343?e?u.charAt(s):o:e?u.slice(s,s+2):a-56320+(o-55296<<10)+65536}}},cp0P:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("HDdC"),i=n("DH7j"),a=n("lJxs"),u=n("XoHu"),s=n("Cfvw");function l(){for(var e=arguments.length,t=new Array(e),n=0;n ".concat(n," ").concat(r," ").concat(t," <=Actual]")))}function I(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var T=I;function j(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function V(e){return A(e,N)||A(e,R)}function A(e,t){return e.hasOwnProperty(t)?e[t]:null}function P(e){return e&&(e.hasOwnProperty(D)||e.hasOwnProperty(F))?e[D]:null}var M,N=_({"\u0275prov":_}),D=_({"\u0275inj":_}),R=_({ngInjectableDef:_}),F=_({ngInjectorDef:_}),L=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function B(){return M}function H(e){var t=M;return M=e,t}function U(e,t,n){var r=V(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&L.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(k(e),"]"))}function q(e){return{toString:e}.toString()}var W=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),z=function(e){return e[e.CheckOnce=0]="CheckOnce",e[e.Checked=1]="Checked",e[e.CheckAlways=2]="CheckAlways",e[e.Detached=3]="Detached",e[e.Errored=4]="Errored",e[e.Destroyed=5]="Destroyed",e}({});function G(e){return null==e||e===W.Default}var K=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Q="undefined"!=typeof globalThis&&globalThis,Z="undefined"!=typeof window&&window,X="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Y="undefined"!=typeof global&&global,J=Q||Y||Z||X,ee={},te=[],ne=_({"\u0275cmp":_}),re=_({"\u0275dir":_}),ie=_({"\u0275pipe":_}),oe=_({"\u0275mod":_}),ae=_({"\u0275loc":_}),ue=_({"\u0275fac":_}),se=_({__NG_ELEMENT_ID__:_}),le=0;function ce(e){return q(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===W.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||te,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||K.Emulated,id:"c",styles:e.styles||te,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,o=e.pipes;return n.id+=le++,n.inputs=me(e.inputs,t),n.outputs=me(e.outputs),i&&i.forEach(function(e){return e(n)}),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(fe)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(he)}:null,n})}function de(e,t,n){var r=e.\u0275cmp;r.directiveDefs=function(){return t.map(fe)},r.pipeDefs=function(){return n.map(he)}}function fe(e){return _e(e)||we(e)}function he(e){return ke(e)}var pe={};function ve(e){var t={type:e.type,bootstrap:e.bootstrap||te,declarations:e.declarations||te,imports:e.imports||te,exports:e.exports||te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&q(function(){pe[e.id]=e.type}),t}function ge(e,t){return q(function(){var n=Ce(e,!0);n.declarations=t.declarations||te,n.imports=t.imports||te,n.exports=t.exports||te})}function me(e,t){if(null==e)return ee;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var ye=ce;function be(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function _e(e){return e[ne]||null}function we(e){return e[re]||null}function ke(e){return e[ie]||null}function Ce(e,t){var n=e[oe]||null;if(!n&&!0===t)throw new Error("Type ".concat(k(e)," does not have '\u0275mod' property."));return n}function xe(e){return Array.isArray(e)&&"object"==typeof e[1]}function $e(e){return Array.isArray(e)&&!0===e[1]}function Se(e){return 0!=(8&e.flags)}function Ee(e){return 2==(2&e.flags)}function Oe(e){return 1==(1&e.flags)}function Ie(e){return null!==e.template}function Te(e,t){return e.hasOwnProperty(ue)?e[ue]:null}var je=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,r))).code=e,i}return n}(n(Error));function Ve(e){return"string"==typeof e?e:null==e?"":String(e)}function Ae(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ve(e)}function Pe(e,t){var n=t?" in "+t:"";throw new je("201","No provider for ".concat(Ae(e)," found").concat(n))}var Me=function(){function e(t,n,r){g(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return y(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Ne(){return De}function De(e){return e.type.prototype.ngOnChanges&&(e.setInput=Fe),Re}function Re(){var e=Le(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===ee)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Fe(e,t,n,r){var i=Le(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:ee,current:null}),o=i.current||(i.current={}),a=i.previous,u=this.declaredInputs[n],s=a[u];o[u]=new Me(s&&s.currentValue,t,a===ee),e[r]=t}function Le(e){return e.__ngSimpleChanges__||null}Ne.ngInherit=!0;var Be=void 0;function He(e){Be=e}function Ue(){return void 0!==Be?Be:"undefined"!=typeof document?document:void 0}function qe(e){return!!e.listen}var We={createRenderer:function(e,t){return Ue()}};function ze(e){for(;Array.isArray(e);)e=e[0];return e}function Ge(e,t){return ze(t[e])}function Ke(e,t){return ze(t[e.index])}function Qe(e,t){return e.data[t]}function Ze(e,t){return e[t]}function Xe(e,t){var n=t[e];return xe(n)?n:n[0]}function Ye(e){return e.__ngContext__||null}function Je(e){var t=Ye(e);return t?Array.isArray(t)?t:t.lView:null}function et(e){return 4==(4&e[2])}function tt(e){return 128==(128&e[2])}function nt(e,t){return null==t?null:e[t]}function rt(e){e[18]=0}function it(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var ot={lFrame:Pt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function at(){return ot.bindingsEnabled}function ut(){ot.bindingsEnabled=!0}function st(){ot.bindingsEnabled=!1}function lt(){return ot.lFrame.lView}function ct(){return ot.lFrame.tView}function dt(e){ot.lFrame.contextLView=e}function ft(){for(var e=ht();null!==e&&64===e.type;)e=e.parent;return e}function ht(){return ot.lFrame.currentTNode}function pt(){var e=ot.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function vt(e,t){var n=ot.lFrame;n.currentTNode=e,n.isParent=t}function gt(){return ot.lFrame.isParent}function mt(){ot.lFrame.isParent=!1}function yt(){return ot.isInCheckNoChangesMode}function bt(e){ot.isInCheckNoChangesMode=e}function _t(){var e=ot.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function wt(){return ot.lFrame.bindingIndex}function kt(e){return ot.lFrame.bindingIndex=e}function Ct(){return ot.lFrame.bindingIndex++}function xt(e){var t=ot.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function $t(e){ot.lFrame.inI18n=e}function St(e){ot.lFrame.currentDirectiveIndex=e}function Et(e){var t=ot.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Ot(){return ot.lFrame.currentQueryIndex}function It(e){ot.lFrame.currentQueryIndex=e}function Tt(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function jt(e,t,n){if(n&L.SkipSelf){for(var r=t,i=e;!(null!==(r=r.parent)||n&L.Host||(r=Tt(i),null===r)||(i=i[15],10&r.type)););if(null===r)return!1;t=r,e=i}var o=ot.lFrame=At();return o.currentTNode=t,o.lView=e,!0}function Vt(e){var t=At(),n=e[1];ot.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function At(){var e=ot.lFrame,t=null===e?null:e.child;return null===t?Pt(e):t}function Pt(e){var 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 Mt(){var e=ot.lFrame;return ot.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Nt=Mt;function Dt(){var e=Mt();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 Rt(e){return(ot.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,ot.lFrame.contextLView))[8]}function Ft(){return ot.lFrame.selectedIndex}function Lt(e){ot.lFrame.selectedIndex=e}function Bt(){var e=ot.lFrame;return Qe(e.tView,e.selectedIndex)}function Ht(){ot.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Ut(){ot.lFrame.currentNamespace="http://www.w3.org/1998/MathML/"}function qt(){ot.lFrame.currentNamespace=null}function Wt(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[a]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var Xt=function e(t,n,r){g(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function Yt(e,t,n){for(var r=qe(e),i=0;it){a=o-1;break}}}for(;o>16,r=t;n>0;)r=r[15],n--;return r}var un=!0;function sn(e){var t=un;return un=e,t}var ln=0;function cn(e,t){var n=fn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,dn(r.data,e),dn(t,null),dn(r.blueprint,null));var i=hn(e,t),o=e.injectorIndex;if(rn(i))for(var a=on(i),u=an(i,t),s=u[1].data,l=0;l<8;l++)t[o+l]=u[a+l]|s[a+l];return t[o+8]=i,o}function dn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function fn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function hn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,r=null,i=t;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function pn(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(se)&&(r=n[se]),null==r&&(r=n[se]=ln++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:L.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(se)?e[se]:void 0;return"number"==typeof t?t>=0?255&t:_n:t}(n);if("function"==typeof o){if(!jt(t,e,r))return r&L.Host?gn(i,n,r):mn(t,n,r,i);try{var a=o();if(null!=a||r&L.Optional)return a;Pe(n)}finally{Nt()}}else if("number"==typeof o){var u=null,s=fn(e,t),l=-1,c=r&L.Host?t[16][6]:null;for((-1===s||r&L.SkipSelf)&&(-1!==(l=-1===s?hn(e,t):t[s+8])&&$n(r,!1)?(u=t[1],s=on(l),t=an(l,t)):s=-1);-1!==s;){var d=t[1];if(xn(o,s,d.data)){var f=wn(s,t,n,u,r,c);if(f!==bn)return f}-1!==(l=t[s+8])&&$n(r,t[1].data[s+8]===c)&&xn(o,s,t)?(u=d,s=on(l),t=an(l,t)):s=-1}}}return mn(t,n,r,i)}var bn={};function _n(){return new Sn(ft(),lt())}function wn(e,t,n,r,i,o){var a=t[1],u=a.data[e+8],s=kn(u,a,n,null==r?Ee(u)&&un:r!=a&&0!=(3&u.type),i&L.Host&&o===u);return null!==s?Cn(t,a,s,u):bn}function kn(e,t,n,r,i){for(var o=e.providerIndexes,a=t.data,u=1048575&o,s=e.directiveStart,l=o>>20,c=i?u+l:e.directiveEnd,d=r?u:u+l;d=s&&f.type===n)return d}if(i){var h=a[s];if(h&&Ie(h)&&h.type===n)return s}return null}function Cn(e,t,n,r){var i=e[n],o=t.data;if(i instanceof Xt){var a=i;a.resolving&&function(e,t){throw new je("200","Circular dependency in DI detected for "+e)}(Ae(o[n]));var u=sn(a.canSeeViewProviders);a.resolving=!0;var s=a.injectImpl?H(a.injectImpl):null;jt(e,r,L.Default);try{i=e[n]=a.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.type.prototype,i=r.ngOnChanges,o=r.ngOnInit,a=r.ngDoCheck;if(i){var u=De(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==s&&H(s),sn(u),a.resolving=!1,Nt()}}return i}function xn(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1},t)},Bn),Un=Nn("ContentChild",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)},Bn),qn=Nn("ViewChildren",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0},t)},Bn),Wn=Nn("ViewChild",function(e,t){return Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)},Bn),zn=function(e){return e[e.Token=0]="Token",e[e.Attribute=1]="Attribute",e[e.ChangeDetectorRef=2]="ChangeDetectorRef",e[e.Invalid=3]="Invalid",e}({});function Gn(){var e=J.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}var Kn=Function;function Qn(e){return"function"==typeof e}function Zn(e,t){void 0===t&&(t=e);for(var n=0;n=e.length?e.push(n):e.splice(t,0,n)}function Jn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function er(e,t){for(var n=[],r=0;r=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function nr(e,t){var n=rr(e,t);if(n>=0)return e[1|n]}function rr(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),a=e[o<<1];if(t===a)return o<<1;a>t?i=o:r=o+1}return~(i<<1)}(e,t)}var ir=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|[^()]+\(arguments\))\)/,or=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,ar=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,ur=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/,sr=function(){function e(t){g(this,e),this._reflect=t||J.Reflect}return y(e,[{key:"isReflectionEnabled",value:function(){return!0}},{key:"factory",value:function(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i0)for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:L.Default;if(void 0===Tr)throw new Error("inject() must be called from an injection context");return null===Tr?U(e,void 0,t):Tr.get(e,t&L.Optional?null:void 0,t)}function Ar(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L.Default;return(B()||Vr)(S(e),t)}function Pr(e){throw new Error("invalid")}var Mr,Nr=Ar;function Dr(e){for(var t=[],n=0;n"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();_i.hasOwnProperty(t)&&!gi.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(Oi(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}]),e}(),Si=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ei=/([^\#-~ |!])/g;function Oi(e){return e.replace(/&/g,"&").replace(Si,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ei,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function Ii(e,t){var n=null;try{vi=vi||ai(e);var r=t?String(t):"";n=vi.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=vi.getInertBodyElement(r)}while(r!==o);var a=new $i,u=a.sanitizeChildren(Ti(n)||n);return ii()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see https://g.co/ng/security#xss"),u}finally{if(n)for(var s=Ti(n)||n;s.firstChild;)s.removeChild(s.firstChild)}}function Ti(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ji=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Vi(e){var t=Hi();return t?t.sanitize(ji.HTML,e)||"":Qr(e,"HTML")?Kr(e):Ii(Ue(),Ve(e))}function Ai(e){var t=Hi();return t?t.sanitize(ji.STYLE,e)||"":Qr(e,"Style")?Kr(e):Ve(e)}function Pi(e){var t=Hi();return t?t.sanitize(ji.URL,e)||"":Qr(e,"URL")?Kr(e):di(Ve(e))}function Mi(e){var t=Hi();if(t)return t.sanitize(ji.RESOURCE_URL,e)||"";if(Qr(e,"ResourceURL"))return Kr(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Ni(e){var t=Hi();if(t)return t.sanitize(ji.SCRIPT,e)||"";if(Qr(e,"Script"))return Kr(e);throw new Error("unsafe value used in a script context")}function Di(e){return Fr(e)}function Ri(e){return Lr(e)}function Fi(e){return Br(e)}function Li(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Mi:Pi}function Bi(e,t,n){return Li(t,n)(e)}function Hi(){var e=lt();return e&&e[12]}function Ui(e){return e.ngDebugContext}function qi(e){return e.ngOriginalError}function Wi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0){var g=ze(p[v]),m=Yi(p,v,g);eo(g,m),n=m;break}}}return n||null}function Yi(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Ji(e){var t,n=Ye(e);if(Array.isArray(n)){var r=ro(n,e),i=Yi(n,r,(t=Xe(r,n))[0]);i.component=e,eo(e,i),eo(i.native,i)}else t=Xe(n.nodeIndex,n.lView);return t}function eo(e,t){e.__ngContext__=t}function to(e,t){for(var n=e[1],r=20;r0&&(e[r-1][4]=i[4]);var a=Jn(e,10+t);qo(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var u=a[19];null!==u&&u.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function So(e,t){if(!(256&t[2])){var n=t[11];qe(n)&&n.destroyNode&&qo(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Eo(e[1],e);for(;t;){var n=null;if(xe(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)xe(t)&&Eo(t[1],t),t=t[3];null===t&&(t=e),xe(t)&&Eo(t[1],t),n=t&&t[4]}t=n}}(t)}}function Eo(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t),1===t[1].type&&qe(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&$e(t[3])){n!==t[3]&&xo(n,t);var r=t[19];null!==r&&r.detachView(e)}}}function Oo(e,t,n){return Io(e,t.parent,n)}function Io(e,t,n){for(var r=t;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){var i=e.data[r.directiveStart].encapsulation;if(i===K.None||i===K.Emulated)return null}return Ke(r,n)}function To(e,t,n,r,i){qe(e)?e.insertBefore(t,n,r,i):t.insertBefore(n,r,i)}function jo(e,t,n){qe(e)?e.appendChild(t,n):t.appendChild(n)}function Vo(e,t,n,r,i){null!==r?To(e,t,n,r,i):jo(e,t,n)}function Ao(e,t){return qe(e)?e.parentNode(t):t.parentNode}function Po(e,t,n){return Do(e,t,n)}function Mo(e,t,n){return 40&e.type?Ke(e,n):null}var No,Do=Mo;function Ro(e,t){Do=e,No=t}function Fo(e,t,n,r){var i=Oo(e,r,t),o=t[11],a=Po(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(var u=0;uo?"":i[c+1].toLowerCase();var f=8&r?d:null;if(f&&-1!==Ko(f,l,0)||2&r&&l!==d){if(Jo(r))return!1;a=!0}}}}else{if(!a&&!Jo(r)&&!Jo(s))return!1;if(a&&Jo(s))continue;a=!1,r=s|1&r}}return Jo(r)||a}function Jo(e){return 0==(1&e)}function ea(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+u+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||Jo(a)||(t+=ra(o,i),i=""),r=a,o=o||!Jo(r);n++}return""!==i&&(t+=ra(o,i)),t}var oa={};function aa(e){ua(ct(),lt(),Ft()+e,yt())}function ua(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&zt(t,i,n)}else{var o=e.preOrderHooks;null!==o&&Gt(t,o,0,n)}Lt(n)}function sa(e,t){return e<<17|t<<2}function la(e){return e>>17&32767}function ca(e){return 2|e}function da(e){return(131068&e)>>2}function fa(e,t){return-131069&e|t<<2}function ha(e){return 1|e}var pa=Promise.resolve(null);function va(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r20&&ua(e,t,20,yt()),n(r,i)}finally{Lt(o)}}function xa(e,t,n){if(Se(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:Ke,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(u)!=s&&u.push(s),u.push(r,i,a)}}function Ma(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Na(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Da(e,t,n){if(n){if(t.exportAs)for(var r=0;r0&&Ga(n)}}function Ga(e){for(var t=go(e);null!==t;t=mo(t))for(var n=10;n0&&Ga(r)}var o=e[1].components;if(null!==o)for(var a=0;a0&&Ga(u)}}function Ka(e,t){var n=Xe(t,e),r=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:Er;if(t===Er){var n=new Error("NullInjectorError: No provider for ".concat(k(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),fu=new Fn("Set Injector scope."),hu={},pu={},vu=[],gu=void 0;function mu(){return void 0===gu&&(gu=new du),gu}function yu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=bu(e,t,n,r);return i._resolveInjectorDefTypes(),i}function bu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new _u(e,n,t||mu(),r)}var _u=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;g(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Xn(n,function(e){return i.processProvider(e,t,n)}),Xn([t],function(e){return i.processInjectorType(e,[],a)}),this.records.set(cu,Cu(void 0,this));var u=this.records.get(fu);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof t?null:k(t))}return y(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Er,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L.Default;this.assertNotDestroyed();var r,i=jr(this);try{if(!(n&L.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Fn)&&V(e);o=a&&this.injectableDefInScope(a)?Cu(wu(e),hu):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&L.Self?mu():this.parent).get(e,t=n&L.Optional&&t===Er?null:t)}catch(u){if("NullInjectorError"===u.name){if((u.ngTempTokenPath=u.ngTempTokenPath||[]).unshift(k(e)),i)throw u;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=k(t);if(Array.isArray(t))i=t.map(k).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var u=t[a];o.push(a+":"+("string"==typeof u?JSON.stringify(u):k(u)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Or,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(u,e,0,this.source)}throw u}finally{jr(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(k(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=S(e)))return!1;var i=P(e),o=null==i&&e.ngModule||void 0,a=void 0===o?e:o,u=-1!==n.indexOf(a);if(void 0!==o&&(i=P(o)),null==i)return!1;if(null!=i.imports&&!u){var s;n.push(a);try{Xn(i.imports,function(e){r.processInjectorType(e,t,n)&&(void 0===s&&(s=[]),s.push(e))})}finally{}if(void 0!==s)for(var l=function(e){var t=s[e],n=t.ngModule,i=t.providers;Xn(i,function(e){return r.processProvider(e,n,i||vu)})},c=0;c0){var n=er(t,"?");throw new Error("Can't resolve all parameters for ".concat(k(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[N]||e[R]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function ku(e,t,n){var i,a=void 0;if($u(e)){var u=S(e);return Te(u)||wu(u)}if(xu(e))a=function(){return S(e.useValue)};else if((i=e)&&i.useFactory)a=function(){return e.useFactory.apply(e,o(Dr(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))a=function(){return Ar(S(e.useExisting))};else{var s=S(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Te(s)||wu(s);a=function(){return r(s,o(Dr(e.deps)))}}return a}function Cu(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function xu(e){return null!==e&&"object"==typeof e&&Ir in e}function $u(e){return"function"==typeof e}function Su(e,t,n){return yu({name:n},t,e,n)}var Eu=Su,Ou=function(){var e=function(){function e(){g(this,e)}return y(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Eu(e,t,""):Eu(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Er,e.NULL=new du,e.\u0275prov=I({token:e,providedIn:"any",factory:function(){return Ar(cu)}}),e.__NG_ELEMENT_ID__=-1,e}();function Iu(e){Fu(e);var t,n,r,i=Mu(e,!1);return null===i?null:(void 0===i.component&&(i.component=(t=i.nodeIndex,n=i.lView,2&(r=n[1].data[t]).flags?n[r.directiveStart]:null)),i.component)}function Tu(e){Fu(e);var t=Mu(e,!1);return null===t?null:t.lView[8]}function ju(e){var t=Mu(e,!1);if(null===t)return null;for(var n,r=t.lView;2===r[1].type&&(n=po(r));)r=n;return 512&r[2]?null:r[8]}function Vu(e){return o(vo(e).components)}function Au(e){var t=Mu(e,!1);return null===t?Ou.NULL:new Sn(t.lView[1].data[t.nodeIndex],t.lView)}function Pu(e){var t=Mu(e);return void 0===t.directives&&(t.directives=io(t.nodeIndex,t.lView,!1)),null===t.directives?[]:o(t.directives)}function Mu(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Xi(e);if(!n&&t)throw new Error("Invalid ng target");return n}function Nu(e){return Xi(e).native}function Du(e){Fu(e);var t=Mu(e,!1);if(null===t)return[];var n=t.lView,r=n[7],i=n[1].cleanup,o=[];if(i&&r)for(var a=0;a=0?"dom":"output",p="boolean"==typeof f&&f;e==c&&o.push({element:e,name:l,callback:d,useCapture:p,type:h})}}return o.sort(Ru),o}function Ru(e,t){return e.name==t.name?0:e.name1&&void 0!==arguments[1]?arguments[1]:{},n=t.rendererFactory||We,r=t.sanitizer||null,i=_e(e);i.type!=e&&(i.type=e);var o,a=i.selectors[0][0],u=Ia(n.createRenderer(null,null),t.host||a,i.encapsulation),s=i.onPush?576:528,l=Gu(t.scheduler,t.playerHandler),c=n.createRenderer(u,i),d=Oa(0,null,null,1,0,null,null,null,null,null),f=ga(null,d,l,s,null,null,n,c,null,t.injector||null);Vt(f);try{n.begin&&n.begin(),o=zu(Wu(u,i,f,n,c,r),i,f,l,t.hostFeatures||null),_a(d,f,null),wa(d,f,null,null)}finally{Dt(),n.end&&n.end()}return o}function Wu(e,t,n,r,i,o){var a=n[1];n[20]=e;var u=ma(a,20,2,"#host",null),s=u.mergedAttrs=t.hostAttrs;null!==s&&(uu(u,s,!0),null!==e&&(Yt(i,e,s),null!==u.classes&&Go(i,e,u.classes),null!==u.styles&&zo(i,e,u.styles)));var l=r.createRenderer(e,t),c=ga(n,Ea(t),null,t.onPush?64:16,n[20],u,r,l,o||null,null);return a.firstCreatePass&&(pn(cn(u,n),a,t.type),Na(a,u),Ra(u,n.length,1)),Qa(n,c),n[20]=c}function zu(e,t,n,r,i){var o=n[1],a=function(e,t,n){var r=ft();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Fa(e,r,t,ba(e,t,1,null),n));var i=Cn(t,e,r.directiveStart,r);eo(i,t);var o=Ke(r,t);return o&&eo(o,t),i}(o,n,t);if(r.components.push(a),e[8]=a,i&&i.forEach(function(e){return e(a,t)}),t.contentQueries){var u=ft();t.contentQueries(1,a,u.directiveStart)}var s=ft();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Lt(s.index),Pa(n[1],s,0,s.directiveStart,s.directiveEnd,t),Ma(t,a)),a}function Gu(e,t){return{components:[],scheduler:e||oo,clean:tu,playerHandler:t||null,flags:0}}function Ku(e,t){Wt(Je(e)[1],ft())}function Qu(e){return vo(e).clean}function Zu(e){return Object.getPrototypeOf(e.prototype).constructor}function Xu(e){for(var t=Zu(e.type),n=!0,r=[e];t;){var i=void 0;if(Ie(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);var o=e;o.inputs=Yu(e.inputs),o.declaredInputs=Yu(e.declaredInputs),o.outputs=Yu(e.outputs);var a=i.hostBindings;a&&ts(e,a);var u=i.viewQuery,s=i.contentQueries;if(u&&Ju(e,u),s&&es(e,s),w(e.inputs,i.inputs),w(e.declaredInputs,i.declaredInputs),w(e.outputs,i.outputs),Ie(i)&&i.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}var c=i.features;if(c)for(var d=0;d=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=tn(i.hostAttrs,n=tn(n,i.hostAttrs))}}(r)}function Yu(e){return e===ee?{}:e===te?[]:e}function Ju(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function es(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function ts(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var ns=["providersResolver"],rs=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function is(e){var t,n=Zu(e.type);t=Ie(e)?n.\u0275cmp:n.\u0275dir;var r,o=e,a=i(ns);try{for(a.s();!(r=a.n()).done;){var u=r.value;o[u]=t[u]}}catch(d){a.e(d)}finally{a.f()}if(Ie(t)){var s,l=i(rs);try{for(l.s();!(s=l.n()).done;){var c=s.value;o[c]=t[c]}}catch(d){l.e(d)}finally{l.f()}}}var os=null;function as(){if(!os){var e=J.Symbol;if(e&&e.iterator)os=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Rs(e){return Ze(ot.lFrame.contextLView,20+e)}var Fs={"\u0275\u0275defineInjectable":I,"\u0275\u0275defineInjector":j,"\u0275\u0275inject":Ar,"\u0275\u0275getFactoryOf":function e(t){var n=t;if(E(t))return function(){var t=e(S(n));return t?t():null};var r=V(n)||P(n);return r&&void 0!==r.factory?r.factory:null},"\u0275\u0275invalidFactoryDep":Pr},Ls=_({provide:String,useValue:_});function Bs(e){return void 0!==e.useClass}function Hs(e){return void 0!==e.useFactory}function Us(e,t){var n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn,userDeps:void 0};return(Bs(n)||Hs(n))&&void 0!==n.deps&&(r.userDeps=_r(n.deps)),Bs(n)?r.useClass=S(n.useClass):function(e){return Ls in e}(n)?r.useValue=S(n.useValue):Hs(n)?r.useFactory=n.useFactory:function(e){return void 0!==e.useExisting}(n)&&(r.useExisting=S(n.useExisting)),r}var qs=An("Injectable",void 0,void 0,void 0,function(e,t){return zs(e,t)}),Ws=function(e,t){var n=null,r=null;e.hasOwnProperty(N)||Object.defineProperty(e,N,{get:function(){return null===n&&(n=Gn().compileInjectable(Fs,"ng:///".concat(e.name,"/\u0275prov.js"),Us(e,t))),n}}),e.hasOwnProperty(ue)||Object.defineProperty(e,ue,{get:function(){if(null===r){var n=Us(e,t),i=Gn();r=i.compileFactory(Fs,"ng:///".concat(e.name,"/\u0275fac.js"),{name:n.name,type:n.type,typeArgumentCount:n.typeArgumentCount,deps:br(e),injectFn:"inject",target:i.R3FactoryTarget.Injectable})}return r},configurable:!0})},zs=Ws;function Gs(e){return e.length>1?" ("+function(e){for(var t=[],n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(function(e){return k(e.token)}).join(" -> ")+")":""}function Ks(e,t,n,r){var i=[t],o=n(i),a=r?function(e,t){var n="".concat(e," caused by: ").concat(t instanceof Error?t.message:t),r=Error(n);return r.ngOriginalError=t,r}(o,r):Error(o);return a.addKey=Qs,a.keys=i,a.injectors=[e],a.constructResolvingMessage=n,a.ngOriginalError=r,a}function Qs(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Zs(e,t){for(var n=[],r=0,i=t.length;r1&&void 0!==arguments[1]?arguments[1]:Er;return this._getByKey(Xs.get(e),null,t)}},{key:"resolveAndCreateChild",value:function(e){var t=fl.resolve(e);return this.createChildFromResolved(t)}},{key:"createChildFromResolved",value:function(t){var n=new e(t);return n.parent=this,n}},{key:"resolveAndInstantiate",value:function(e){return this.instantiateResolved(fl.resolve([e])[0])}},{key:"instantiateResolved",value:function(e){return this._instantiateProvider(e)}},{key:"getProviderAtIndex",value:function(e){if(e<0||e>=this._providers.length)throw function(e){return Error("Index ".concat(e," is out-of-bounds."))}(e);return this._providers[e]}},{key:"_new",value:function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw Ks(this,e.key,function(e){return"Cannot instantiate cyclic dependency!"+Gs(e)});return this._instantiateProvider(e)}},{key:"_getMaxNumberOfObjects",value:function(){return this.objs.length}},{key:"_instantiateProvider",value:function(e){if(e.multiProvider){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:L.Default,n=lt();return null===n?Ar(e,t):yn(ft(),n,S(e),t)}function vl(){throw new Error("invalid")}function gl(e,t,n){var r=lt();return hs(r,Ct(),t)&&Va(ct(),Bt(),r,e,t,r[11],n,!1),gl}function ml(e,t,n,r,i){var o=i?"class":"style";ou(e,n,t.inputs[o],o,r)}function yl(e,t,n,r){var i=lt(),o=ct(),a=20+e,u=i[11],s=i[a]=Co(u,t,ot.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,r,i,o,a){var u=t.consts,s=ma(t,e,2,i,nt(u,o));return Aa(t,n,s,nt(u,a)),null!==s.attrs&&uu(s,s.attrs,!1),null!==s.mergedAttrs&&uu(s,s.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,s),s}(a,o,i,0,t,n,r):o.data[a];vt(l,!0);var c=l.mergedAttrs;null!==c&&Yt(u,s,c);var d=l.classes;null!==d&&Go(u,s,d);var f=l.styles;null!==f&&zo(u,s,f),64!=(64&l.flags)&&Fo(o,i,s,l),0===ot.lFrame.elementDepthCount&&eo(s,i),ot.lFrame.elementDepthCount++,Oe(l)&&($a(o,i,l),xa(o,l,i)),null!==r&&Sa(i,l)}function bl(){var e=ft();gt()?mt():vt(e=e.parent,!1);var t=e;ot.lFrame.elementDepthCount--;var n=ct();n.firstCreatePass&&(Wt(n,e),Se(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&ml(n,t,lt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&ml(n,t,lt(),t.stylesWithoutHost,!1)}function _l(e,t,n,r){yl(e,t,n,r),bl()}function wl(e,t,n){var r=lt(),i=ct(),o=e+20,a=i.firstCreatePass?function(e,t,n,r,i){var o=t.consts,a=nt(o,r),u=ma(t,e,8,"ng-container",a);return null!==a&&uu(u,a,!0),Aa(t,n,u,nt(o,i)),null!==t.queries&&t.queries.elementStart(t,u),u}(o,i,r,t,n):i.data[o];vt(a,!0);var u=r[o]=r[11].createComment("");Fo(i,r,u,a),eo(u,r),Oe(a)&&($a(i,r,a),xa(i,a,r)),null!=n&&Sa(r,a)}function kl(){var e=ft(),t=ct();gt()?mt():vt(e=e.parent,!1),t.firstCreatePass&&(Wt(t,e),Se(e)&&t.queries.elementEnd(e))}function Cl(e,t,n){wl(e,t,n),kl()}function xl(){return lt()}function $l(e){return!!e&&"function"==typeof e.then}function Sl(e){return!!e&&"function"==typeof e.subscribe}function El(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=lt(),o=ct(),a=ft();return Il(o,i,i[11],a,e,t,n,r),El}function Ol(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=ft(),o=lt(),a=ct();return Il(a,o,ru(Et(a.data),i,o),i,e,t,n,r),Ol}function Il(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7?arguments[7]:void 0,s=Oe(r),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=nu(t),d=!0;if(3&r.type){var f=Ke(r,t),h=u?u(f):ee,p=h.target||f,v=c.length,g=u?function(e){return u(ze(e[r.index])).target}:r.index;if(qe(n)){var m=null;if(!u&&s&&(m=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;os?u[s]:null}"string"==typeof a&&(o+=2)}return null}(e,t,i,r.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,d=!1;else{o=jl(r,t,o,!1);var y=n.listen(h.name||p,i,o);c.push(o,y),l&&l.push(i,g,v,v+1)}}else o=jl(r,t,o,!0),p.addEventListener(i,o,a),c.push(o),l&&l.push(i,g,v,a)}else o=jl(r,t,o,!1);var b,_=r.outputs;if(d&&null!==_&&(b=_[i])){var w=b.length;if(w)for(var k=0;k0&&void 0!==arguments[0]?arguments[0]:1;return Rt(e)}function Al(e,t){for(var n=null,r=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=lt(),i=ct(),o=ma(i,20+e,16,null,n||null);null===o.projection&&(o.projection=t),mt(),64!=(64&o.flags)&&function(e,t,n){Wo(t[11],0,t,n,Oo(e,n,t),Po(n.parent||t[6],n,t))}(i,r,o)}function Nl(e,t,n){return Dl(e,"",t,"",n),Nl}function Dl(e,t,n,r,i){var o=lt(),a=bs(o,t,n,r);return a!==oa&&Va(ct(),Bt(),o,e,a,o[11],i,!1),Dl}function Rl(e,t,n,r,i,o,a){var u=lt(),s=_s(u,t,n,r,i,o);return s!==oa&&Va(ct(),Bt(),u,e,s,u[11],a,!1),Rl}function Fl(e,t,n,r,i,o,a,u,s){var l=lt(),c=ws(l,t,n,r,i,o,a,u);return c!==oa&&Va(ct(),Bt(),l,e,c,l[11],s,!1),Fl}function Ll(e,t,n,r,i,o,a,u,s,l,c){var d=lt(),f=ks(d,t,n,r,i,o,a,u,s,l);return f!==oa&&Va(ct(),Bt(),d,e,f,d[11],c,!1),Ll}function Bl(e,t,n,r,i,o,a,u,s,l,c,d,f){var h=lt(),p=Cs(h,t,n,r,i,o,a,u,s,l,c,d);return p!==oa&&Va(ct(),Bt(),h,e,p,h[11],f,!1),Bl}function Hl(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p){var v=lt(),g=xs(v,t,n,r,i,o,a,u,s,l,c,d,f,h);return g!==oa&&Va(ct(),Bt(),v,e,g,v[11],p,!1),Hl}function Ul(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g){var m=lt(),y=$s(m,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v);return y!==oa&&Va(ct(),Bt(),m,e,y,m[11],g,!1),Ul}function ql(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g,m,y){var b=lt(),_=Ss(b,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g,m);return _!==oa&&Va(ct(),Bt(),b,e,_,b[11],y,!1),ql}function Wl(e,t,n){var r=lt(),i=ys(r,t);return i!==oa&&Va(ct(),Bt(),r,e,i,r[11],n,!1),Wl}var zl=[];function Gl(e,t,n,r,i){for(var o=e[n+1],a=null===t,u=r?la(o):da(o),s=!1;0!==u&&(!1===s||a);){var l=e[u+1];Kl(e[u],t)&&(s=!0,e[u+1]=r?ha(l):ca(l)),u=r?la(l):da(l)}s&&(e[n+1]=r?ca(o):ha(o))}function Kl(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&rr(e,t)>=0}var Ql={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Zl(e){return e.substring(Ql.key,Ql.keyEnd)}function Xl(e){return e.substring(Ql.value,Ql.valueEnd)}function Yl(e,t){var n=Ql.textEnd;return n===t?-1:(t=Ql.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Ql.key=t,n),tc(e,t,n))}function Jl(e,t){var n=Ql.textEnd,r=Ql.key=tc(e,t,n);return n===r?-1:(r=Ql.keyEnd=function(e,t,n){for(var r;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=nc(e,r,n),r=Ql.value=tc(e,r,n),r=Ql.valueEnd=function(e,t,n){for(var r=-1,i=-1,o=-1,a=t,u=a;a32&&(u=a),o=i,i=r,r=-33&s}return u}(e,r,n),nc(e,r,n))}function ec(e){Ql.key=0,Ql.keyEnd=0,Ql.value=0,Ql.valueEnd=0,Ql.textEnd=e.length}function tc(e,t,n){for(;t=0;n=Jl(t,n))gc(e,Zl(t),Xl(t))}function sc(e){dc(tr,lc,e,!0)}function lc(e,t){for(var n=function(e){return ec(e),Yl(e,tc(e,0,Ql.textEnd))}(t);n>=0;n=Yl(t,n))tr(e,Zl(t),!0)}function cc(e,t,n,r){var i=lt(),o=ct(),a=xt(2);o.firstUpdatePass&&hc(o,e,a,r),t!==oa&&hs(i,a,t)&&mc(o,o.data[Ft()],i,i[11],e,i[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=k(Kr(e)))),e}(t,n),r,a)}function dc(e,t,n,r){var i=ct(),o=xt(2);i.firstUpdatePass&&hc(i,null,o,r);var a=lt();if(n!==oa&&hs(a,o,n)){var u=i.data[Ft()];if(_c(u,r)&&!fc(i,o)){var s=r?u.classesWithoutHost:u.stylesWithoutHost;null!==s&&(n=C(s,n||"")),ml(i,u,a,n,r)}else!function(e,t,n,r,i,o,a,u){i===oa&&(i=zl);for(var s=0,l=0,c=0=e.expandoStartIndex}function hc(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[Ft()],a=fc(e,n);_c(o,r)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){var i=Et(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=vc(n=pc(null,e,t,n,r),t.attrs,r),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=pc(i,e,t,n,r),null===o){var u=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==da(r))return e[la(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&function(e,t,n,r){e[la(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u=vc(u=pc(null,e,t,u[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(i)if(0!==s){var f=la(e[u+1]);e[r+1]=sa(f,u),0!==f&&(e[f+1]=fa(e[f+1],r)),e[u+1]=131071&e[u+1]|r<<17}else e[r+1]=sa(u,0),0!==u&&(e[u+1]=fa(e[u+1],r)),u=r;else e[r+1]=sa(s,0),0===u?u=r:e[s+1]=fa(e[s+1],r),s=r;c&&(e[r+1]=ca(e[r+1])),Gl(e,l,r,!0),Gl(e,l,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&rr(o,t)>=0&&(n[r+1]=ha(n[r+1]))}(t,l,e,r,o),a=sa(u,s),o?t.classBindings=a:t.styleBindings=a}(i,o,t,n,a,r)}}function pc(e,t,n,r,i){var o=null,a=n.directiveEnd,u=n.directiveStylingLast;for(-1===u?u=n.directiveStart:u++;u0;){var s=e[i],l=Array.isArray(s),c=l?s[1]:s,d=null===c,f=n[i+1];f===oa&&(f=d?zl:void 0);var h=d?nr(f,r):c===r?f:void 0;if(l&&!bc(h)&&(h=nr(s,r)),bc(h)&&(u=h,a))return u;var p=e[i+1];i=a?la(p):da(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(u=nr(v,r))}return u}function bc(e){return void 0!==e}function _c(e,t){return 0!=(e.flags&(t?16:32))}function wc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=lt(),r=ct(),i=e+20,o=r.firstCreatePass?ma(r,i,1,t,null):r.data[i],a=n[i]=_o(n[11],t);Fo(r,n,a,o),vt(o,!1)}function kc(e){return Cc("",e,""),kc}function Cc(e,t,n){var r=lt(),i=bs(r,e,t,n);return i!==oa&&au(r,Ft(),i),Cc}function xc(e,t,n,r,i){var o=lt(),a=_s(o,e,t,n,r,i);return a!==oa&&au(o,Ft(),a),xc}function $c(e,t,n,r,i,o,a){var u=lt(),s=ws(u,e,t,n,r,i,o,a);return s!==oa&&au(u,Ft(),s),$c}function Sc(e,t,n,r,i,o,a,u,s){var l=lt(),c=ks(l,e,t,n,r,i,o,a,u,s);return c!==oa&&au(l,Ft(),c),Sc}function Ec(e,t,n,r,i,o,a,u,s,l,c){var d=lt(),f=Cs(d,e,t,n,r,i,o,a,u,s,l,c);return f!==oa&&au(d,Ft(),f),Ec}function Oc(e,t,n,r,i,o,a,u,s,l,c,d,f){var h=lt(),p=xs(h,e,t,n,r,i,o,a,u,s,l,c,d,f);return p!==oa&&au(h,Ft(),p),Oc}function Ic(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p){var v=lt(),g=$s(v,e,t,n,r,i,o,a,u,s,l,c,d,f,h,p);return g!==oa&&au(v,Ft(),g),Ic}function Tc(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g){var m=lt(),y=Ss(m,e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g);return y!==oa&&au(m,Ft(),y),Tc}function jc(e){var t=lt(),n=ys(t,e);return n!==oa&&au(t,Ft(),n),jc}function Vc(e,t,n){dc(tr,lc,bs(lt(),e,t,n),!0)}function Ac(e,t,n,r,i){dc(tr,lc,_s(lt(),e,t,n,r,i),!0)}function Pc(e,t,n,r,i,o,a){dc(tr,lc,ws(lt(),e,t,n,r,i,o,a),!0)}function Mc(e,t,n,r,i,o,a,u,s){dc(tr,lc,ks(lt(),e,t,n,r,i,o,a,u,s),!0)}function Nc(e,t,n,r,i,o,a,u,s,l,c){dc(tr,lc,Cs(lt(),e,t,n,r,i,o,a,u,s,l,c),!0)}function Dc(e,t,n,r,i,o,a,u,s,l,c,d,f){dc(tr,lc,xs(lt(),e,t,n,r,i,o,a,u,s,l,c,d,f),!0)}function Rc(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p){dc(tr,lc,$s(lt(),e,t,n,r,i,o,a,u,s,l,c,d,f,h,p),!0)}function Fc(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g){dc(tr,lc,Ss(lt(),e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g),!0)}function Lc(e){dc(tr,lc,ys(lt(),e),!0)}function Bc(e,t,n){ac(bs(lt(),e,t,n))}function Hc(e,t,n,r,i){ac(_s(lt(),e,t,n,r,i))}function Uc(e,t,n,r,i,o,a){ac(ws(lt(),e,t,n,r,i,o,a))}function qc(e,t,n,r,i,o,a,u,s){ac(ks(lt(),e,t,n,r,i,o,a,u,s))}function Wc(e,t,n,r,i,o,a,u,s,l,c){ac(Cs(lt(),e,t,n,r,i,o,a,u,s,l,c))}function zc(e,t,n,r,i,o,a,u,s,l,c,d,f){ac(xs(lt(),e,t,n,r,i,o,a,u,s,l,c,d,f))}function Gc(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p){ac($s(lt(),e,t,n,r,i,o,a,u,s,l,c,d,f,h,p))}function Kc(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g){ac(Ss(lt(),e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g))}function Qc(e){ac(ys(lt(),e))}function Zc(e,t,n,r,i){return cc(e,bs(lt(),t,n,r),i,!1),Zc}function Xc(e,t,n,r,i,o,a){return cc(e,_s(lt(),t,n,r,i,o),a,!1),Xc}function Yc(e,t,n,r,i,o,a,u,s){return cc(e,ws(lt(),t,n,r,i,o,a,u),s,!1),Yc}function Jc(e,t,n,r,i,o,a,u,s,l,c){return cc(e,ks(lt(),t,n,r,i,o,a,u,s,l),c,!1),Jc}function ed(e,t,n,r,i,o,a,u,s,l,c,d,f){return cc(e,Cs(lt(),t,n,r,i,o,a,u,s,l,c,d),f,!1),ed}function td(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p){return cc(e,xs(lt(),t,n,r,i,o,a,u,s,l,c,d,f,h),p,!1),td}function nd(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g){return cc(e,$s(lt(),t,n,r,i,o,a,u,s,l,c,d,f,h,p,v),g,!1),nd}function rd(e,t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g,m,y){return cc(e,Ss(lt(),t,n,r,i,o,a,u,s,l,c,d,f,h,p,v,g,m),y,!1),rd}function id(e,t,n){return cc(e,ys(lt(),t),n,!1),id}function od(e,t,n){var r=lt();return hs(r,Ct(),t)&&Va(ct(),Bt(),r,e,t,r[11],n,!0),od}function ad(e,t,n){var r=lt();if(hs(r,Ct(),t)){var i=ct(),o=Bt();Va(i,o,r,e,t,ru(Et(i.data),o,r),n,!0)}return ad}var ud=void 0,sd=["en",[["a","p"],["AM","PM"],ud],[["AM","PM"],ud,ud],[["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"]],ud,[["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"]],ud,[["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}",ud,"{1} 'at' {0}",ud],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],ld={};function cd(e,t,n){"string"!=typeof t&&(n=t,t=e[gd.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),ld[t]=e,n&&(ld[t][gd.ExtraData]=n)}function dd(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=pd(t);if(n)return n;var r=t.split("-")[0];if(n=pd(r))return n;if("en"===r)return sd;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function fd(e){return dd(e)[gd.CurrencyCode]||null}function hd(e){return dd(e)[gd.PluralCase]}function pd(e){return e in ld||(ld[e]=J.ng&&J.ng.common&&J.ng.common.locales&&J.ng.common.locales[e]),ld[e]}function vd(){ld={}}var gd=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}({}),md=["zero","one","two","few","many"],yd="en-US",bd="USD",_d={marker:"element"},wd={marker:"ICU"},kd=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}({}),Cd=yd;function xd(e){var t;null==(t=e)&&O("Expected localeId to be defined",t,null,"!="),"string"==typeof e&&(Cd=e.toLowerCase().replace(/_/g,"-"))}function $d(e,t,n){var r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?Mo(e,0,n):ze(n[i])}function Sd(e,t,n,r,i){var o=t.insertBeforeIndex;if(Array.isArray(o)){var a=r,u=null;if(3&t.type||(u=a,a=i),null!==a&&0==(2&t.flags))for(var s=1;s1)for(var n=e.length-2;n>=0;n--){var r=e[n];Od(r)||Id(r,t)&&null===(i=void 0,i=r.insertBeforeIndex,Array.isArray(i)?i[0]:i)&&Td(r,t.index)}var i}function Od(e){return!(64&e.type)}function Id(e,t){return Od(t)||e.index>t.index}function Td(e,t){var n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(Ro($d,Sd),e.insertBeforeIndex=t)}function jd(e,t){var n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function Vd(e,t,n){var r=ya(e,n,64,null,null);return Ed(t,r),r}function Ad(e,t){var n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}var Pd=0,Md=0;function Nd(e,t,n,r){for(var i,o=n[11],a=null,u=0;u>>17,d=void 0,f=void 0;if(null===a&&(a=c,i=Ao(o,r)),c===a?(d=r,f=i):(d=null,f=ze(n[c])),null!==f){var h=(131070&s)>>>1;To(o,f,n[h],d,!1);var p=jd(e,h);if(null!==p&&"object"==typeof p){var v=Ad(p,n);null!==v&&Nd(e,p.create[v],n,n[p.anchorIdx])}}break;case 1:var g=t[++u],m=t[++u];Ha(o,Ge(s>>>1,n),null,null,g,m,null);break;default:throw new Error('Unable to determine the type of mutate operation for "'.concat(s,'"'))}else switch(s){case wd:var y=t[++u],b=t[++u];null===n[b]&&eo(n[b]=ko(o,y),n);break;case _d:var _=t[++u],w=t[++u];null===n[w]&&eo(n[w]=Co(o,_,null),n)}}}function Dd(e,t,n,r,i){for(var o=0;o>>2;switch(3&c){case 1:var f=n[++l],h=n[++l],p=e.data[d];"string"==typeof p?Ha(t[11],t[d],null,p,f,s,h):Va(e,p,t,f,s,t[11],h,!1);break;case 0:var v=t[d];null!==v&&wo(t[11],v,s);break;case 2:Fd(e,jd(e,d),t,s);break;case 3:Rd(e,jd(e,d),r,t)}}}else{var g=n[o+1];if(g>0&&3==(3&g)){var m=jd(e,g>>>2);t[m.currentCaseLViewIndex]<0&&Rd(e,m,r,t)}}o+=u}}function Rd(e,t,n,r){var i=r[t.currentCaseLViewIndex];if(null!==i){var o=Pd;i<0&&(i=r[t.currentCaseLViewIndex]=~i,o=-1),Dd(e,r,t.update[i],n,o)}}function Fd(e,t,n,r){var i=function(e,t){var n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:var r=function(e,t){var n=hd(t)(parseInt(e,10)),r=md[n];return void 0!==r?r:"other"}(t,Cd);-1===(n=e.cases.indexOf(r))&&"other"!==r&&(n=e.cases.indexOf("other"));break;case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(Ad(t,n)!==i&&(Ld(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){var o=n[t.anchorIdx];o&&Nd(e,t.create[i],n,o)}}function Ld(e,t,n){var r=Ad(t,n);if(null!==r)for(var i=t.remove[r],o=0;o0){var u=Ge(a,n);null!==u&&Ho(n[11],u)}else Ld(e,jd(e,~a),n)}}var Bd=/\ufffd(\d+):?\d*\ufffd/gi,Hd=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Ud=/\ufffd(\d+)\ufffd/,qd=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Wd=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,zd=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Gd=/\uE500/g;function Kd(e,t,n,r,i,o,a){var u=ba(e,r,1,null),s=u<0?e[a]:(n.push(r,t),i(e[1].data[~a],e),o())}return 0===n.length?null:(t=n.pop(),r=n.pop(),o())}return function(t,r){for(e=r;n.length;)n.pop();return i(t.value,r),o}}())),i.push(s,null===o?"":o);var c=ya(e,u,a?32:1,null===o?"":o,null);Ed(n,c);var d=c.index;return vt(c,!1),null!==l&&t!==l&&function(e,t){var n,r=e.insertBeforeIndex;null===r?(Ro($d,Sd),r=e.insertBeforeIndex=[null,t]):(1!=(n=Array.isArray(r))&&O("Expecting array here",n,!0,"=="),r.push(t))}(l,d),c}function Qd(e,t,n,r,i,o,a){var u=a.match(Bd),s=Kd(e,t,n,o,r,u?null:a,!1);u&&Zd(i,a,s.index)}function Zd(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=e.length,a=o+1;e.push(null,null);for(var u=o+2,s=t.split(Bd),l=0,c=0;cn.length&&n.push(s)}return{type:r,mainBinding:i,cases:t,values:n}}function tf(e){if(!e)return[];var t,n=0,r=[],i=[],o=/[{}]/g;for(o.lastIndex=0;t=o.exec(e);){var a=t.index;if("}"==t[0]){if(r.pop(),0==r.length){var u=e.substring(n,a);qd.test(u)?i.push(ef(u)):i.push(u),n=a+1}}else{if(0==r.length){var s=e.substring(n,a);i.push(s),n=a+1}r.push("{")}}var l=e.substring(n);return i.push(l),i}function nf(e,t,n,r,i,o,a,u){var s=[],l=[],c=[];t.cases.push(o),t.create.push(s),t.remove.push(l),t.update.push(c);var d=ai(Ue()).getInertBodyElement(a),f=Ti(d)||d;return f?rf(e,t,n,r,s,l,c,f,i,u,0):0}function rf(e,t,n,r,i,o,a,u,s,l,c){for(var d=0,f=u.firstChild;f;){var h=ba(e,n,1,null);switch(f.nodeType){case Node.ELEMENT_NODE:var p=f,v=p.tagName.toLowerCase();if(_i.hasOwnProperty(v)){uf(i,_d,v,s,h),e.data[h]=v;for(var g=p.attributes,m=0;m1&&void 0!==arguments[1]?arguments[1]:{},r=e;if(lf.test(e)){var i={},o=[0];r=r.replace(cf,function(e,n,r){var a=n||r,u=i[a]||[];if(u.length||(a.split("|").forEach(function(e){var t=e.match(vf),n=t?parseInt(t[1],10):0,r=pf.test(e);u.push([n,r,e])}),i[a]=u),!u.length)throw new Error("i18n postprocess: unmatched placeholder - "+a);for(var s=o[o.length-1],l=0,c=0;c2&&void 0!==arguments[2]?arguments[2]:-1,r=ct(),i=lt(),o=20+e,a=nt(r.consts,t),u=pt();r.firstCreatePass&&function(e,t,n,r,i,o){for(var a,u=pt(),s=[],l=[],c=[[]],d=(a=i=function(e,t){if(function(e){return-1===e}(t))return Yd(e);var n=e.indexOf(":".concat(t,"\ufffd"))+2+t.toString().length,r=e.search(new RegExp("\ufffd\\/\\*\\d+:".concat(t,"\ufffd")));return Yd(e.substring(n,r))}(i,o),a.replace(Gd," ")).split(zd),f=0;f>>kd.SHIFT,d=e[c];null===d&&(d=e[c]=s?i.createComment(u):_o(i,u)),l&&null!==n&&To(i,n,d,r,!1)}}(i,s.create,l,u&&8&u.type?i[u.index]:null),$t(!0)}function yf(){$t(!1)}function bf(e,t,n){mf(e,t,n),yf()}function _f(e,t){var n=ct();!function(e,t,n){var r=ft().index,i=[];if(e.firstCreatePass&&null===e.data[t]){for(var o=0;o0){var r=e.data[n];Dd(e,t,Array.isArray(r)?r:r.update,wt()-Md-1,Pd)}Pd=0,Md=0}(ct(),lt(),e+20)}function Cf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return gf(e,t)}function xf(e,t,n,r,i){if(e=S(e),Array.isArray(e))for(var o=0;o>20;if($u(e)||!e.multi){var p=new Xt(l,i,pl),v=Ef(s,t,i?d:d+h,f);-1===v?(pn(cn(c,u),a,s),$f(a,e,t.length),t.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(p),u.push(p)):(n[v]=p,u[v]=p)}else{var g=Ef(s,t,d+h,f),m=Ef(s,t,d,d+h),y=g>=0&&n[g],b=m>=0&&n[m];if(i&&!b||!i&&!y){pn(cn(c,u),a,s);var _=function(e,t,n,r,i){var o=new Xt(e,n,pl);return o.multi=[],o.index=t,o.componentProviders=0,Sf(o,i,r&&!n),o}(i?If:Of,n.length,i,r,l);!i&&b&&(n[m].providerFactory=_),$f(a,e,t.length,0),t.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(_),u.push(_)}else $f(a,e,g>-1?g:m,Sf(n[i?m:g],l,!i&&r));!i&&r&&b&&n[m].componentProviders++}}}function $f(e,t,n,r){var i=$u(t);if(i||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var u=a.indexOf(n);-1===u?a.push(n,[r,o]):a[u+1].push(r,o)}else a.push(n,o)}}}function Sf(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ef(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=ct();if(r.firstCreatePass){var i=Ie(e);xf(n,r.data,r.blueprint,i,!0),xf(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}}var Vf=function e(){g(this,e)},Af=function e(){g(this,e)};function Pf(e){var t=Error("No component factory found for ".concat(k(e),". Did you add it to @NgModule.entryComponents?"));return t[Mf]=e,t}var Mf="ngComponent",Nf=function(){function e(){g(this,e)}return y(e,[{key:"resolveComponentFactory",value:function(e){throw Pf(e)}}]),e}(),Df=function(){var e=function e(){g(this,e)};return e.NULL=new Nf,e}(),Rf=function(){function e(t,n,r){g(this,e),this._parent=n,this._ngModule=r,this._factories=new Map;for(var i=0;i4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=t[n.index];if(null!==a&&r.push(ze(a)),$e(a))for(var u=10;u-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}So(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Ta(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Za(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Ya(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){bt(!0);try{Ya(e,t,n)}finally{bt(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,qo(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return fh(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),ph=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this,e))._view=e,r}return y(n,[{key:"detectChanges",value:function(){Ja(this._view)}},{key:"checkNoChanges",value:function(){!function(e){bt(!0);try{Ja(e)}finally{bt(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(hh),vh=yh,gh=vh,mh=function(){var e=function e(){g(this,e)};return e.__NG_ELEMENT_ID__=gh,e.__ChangeDetectorRef__=!0,e}();function yh(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Ee(e)){var r=Xe(e.index,t);return new hh(r,r)}return 47&e.type?new hh(t[16],t):null}(ft(),lt(),e)}var bh=[new uh],_h=new ch([new eh]),wh=new dh(bh),kh=Sh,Ch=kh,xh=function(){var e=function e(){g(this,e)};return e.__NG_ELEMENT_ID__=Ch,e}(),$h=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=r,o.elementRef=i,o}return y(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=ga(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),_a(t,n,e),new hh(n)}}]),n}(xh);function Sh(){return Eh(ft(),lt())}function Eh(e,t){return 4&e.type?new $h(t,e,Hf(e,t)):null}var Oh=function e(){g(this,e)},Ih=function e(){g(this,e)},Th=Ah,jh=Th,Vh=function(){var e=function e(){g(this,e)};return e.__NG_ELEMENT_ID__=jh,e}();function Ah(){return Dh(ft(),lt())}var Ph=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=r,o._hostLView=i,o}return y(n,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=Mh(this._lContainer);return null!==t&&t[e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var a=o.get(Oh,null);a&&(i=a)}var u=e.create(o,r,void 0,i);return this.insert(u.hostView,t),u}},{key:"insert",value:function(e,t){var r=e._lView,i=r[1];if($e(r[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=r[3],u=new n(a,a[6],a[3]);u.detach(u.indexOf(e))}}var s=this._adjustIndex(t),l=this._lContainer;!function(e,t,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"element",get:function(){return Hf(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Sn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=hn(this._hostTNode,this._hostLView);if(rn(e)){var t=an(e,this._hostLView),n=on(e);return new Sn(t[1].data[n+8],t)}return new Sn(null,this._hostLView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),n}(Vh);function Mh(e){return e[8]}function Nh(e){return e[8]||(e[8]=[])}function Dh(e,t){var n,r=t[e.index];if($e(r))n=r;else{var i;if(8&e.type)i=ze(r);else{var o=t[11];i=o.createComment("");var a=Ke(e,t);To(o,Ao(o,a),i,function(e,t){return qe(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=Wa(r,t,i,e),Qa(t,n)}return new Ph(n,e,t)}function Rh(e,t,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '".concat(t,"'. Current value: '").concat(n,"'.");return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return Fh(n,t),n}(i,e)}function Fh(e,t){e.ngDebugContext=t,e.ngErrorLogger=t.logError.bind(t)}function Lh(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}function Bh(e,t,n){var r=e.state,i=1792&r;return i===t?(e.state=-1793&r|n,e.initIndex=-1,!0):i===n}function Hh(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Uh(e,t){return e.nodes[t]}function qh(e,t){return e.nodes[t]}function Wh(e,t){return e.nodes[t]}function zh(e,t){return e.nodes[t]}function Gh(e,t){return e.nodes[t]}var Kh=function e(){g(this,e)},Qh={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Zh=function(){},Xh=new Map;function Yh(e){var t=Xh.get(e);return t||(t=k(e)+"_"+Xh.size,Xh.set(e,t)),t}function Jh(e,t,n,r){if(ss.isWrapped(r)){r=ss.unwrap(r);var i=e.def.nodes[t].bindingIndex+n,o=ss.unwrap(e.oldValues[i]);e.oldValues[i]=new ss(o)}return r}function ep(e){return{id:"$$undefined",styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var tp=0;function np(e,t,n,r){return!(!(2&e.state)&&Object.is(e.oldValues[t.bindingIndex+n],r))}function rp(e,t,n,r){return!!np(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function ip(e,t,n,r){var i=e.oldValues[t.bindingIndex+n];if(1&e.state||!us(i,r)){var o=t.bindings[n].name;throw Rh(Qh.createDebugContext(e,t.nodeIndex),"".concat(o,": ").concat(i),"".concat(o,": ").concat(r),0!=(1&e.state))}}function op(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function ap(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function up(e,t,n,r){try{return op(33554432&e.def.nodes[t].flags?qh(e,t).componentView:e),Qh.handleEvent(e,t,n,r)}catch(i){e.root.errorHandler.handleError(i)}}function sp(e){return e.parent?qh(e.parent,e.parentNodeDef.nodeIndex):null}function lp(e){return e.parent?e.parentNodeDef.parent:null}function cp(e,t){switch(201347067&t.flags){case 1:return qh(e,t.nodeIndex).renderElement;case 2:return Uh(e,t.nodeIndex).renderText}}function dp(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function fp(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function hp(e){return 1<2&&void 0!==arguments[2]?arguments[2]:Ou.THROW_IF_NOT_FOUND,o=jr(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(i=null),1&t.flags)return e._parent.get(t.token,i);var a=t.tokenKey;switch(a){case Ap:case Pp:case Mp:return e}var u,s=e._def.providersByKey[a];if(s){var l=e._providers[s.index];return void 0===l&&(l=e._providers[s.index]=Fp(e,s)),l===Vp?void 0:l}if((u=V(t.token))&&(n=e,null!=(r=u.providedIn)&&("any"===r||r===n._def.scope||function(e,t){return e._def.modules.indexOf(t)>-1}(n,r)))){var c=e._providers.length;return e._def.providers[c]=e._def.providersByKey[t.tokenKey]={flags:5120,value:u.factory,deps:[],index:c,token:t.token},e._providers[c]=Vp,e._providers[c]=Fp(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?i:e._parent.get(t.token,i)}finally{jr(o)}}function Fp(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var i=n.length;switch(i){case 0:return new t;case 1:return new t(Rp(e,n[0]));case 2:return new t(Rp(e,n[0]),Rp(e,n[1]));case 3:return new t(Rp(e,n[0]),Rp(e,n[1]),Rp(e,n[2]));default:for(var o=[],a=0;a=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Jn(n,t),Qh.dirtyParentQueries(r),Hp(r),r}function Bp(e,t,n){var r=t?cp(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);bp(n,2,i,o,void 0)}function Hp(e){bp(e,3,null,null,void 0)}var Up={};function qp(e,t,n,r,i,o){return new zp(e,t,n,r,i,o)}function Wp(e){return e.viewDefFactory}var zp=function(e){l(n,e);var t=d(n);function n(e,r,i,o,a,u){var s;return g(this,n),(s=t.call(this)).selector=e,s.componentType=r,s._inputs=o,s._outputs=a,s.ngContentSelectors=u,s.viewDefFactory=i,s}return y(n,[{key:"create",value:function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=yp(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=Qh.createRootView(e,t||[],n,i,r,Up),u=Wh(a,o).instance;return n&&a.renderer.setAttribute(qh(a,0).renderElement,"ng-version",Jf.full),new Gp(a,new Xp(a),u)}},{key:"inputs",get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e}},{key:"outputs",get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}}]),n}(Af),Gp=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this))._view=e,o._viewRef=r,o._component=i,o._elDef=o._view.def.nodes[0],o.hostView=r,o.changeDetectorRef=r,o.instance=i,o}return y(n,[{key:"destroy",value:function(){this._viewRef.destroy()}},{key:"onDestroy",value:function(e){this._viewRef.onDestroy(e)}},{key:"location",get:function(){return new Wf(qh(this._view,this._elDef.nodeIndex).renderElement)}},{key:"injector",get:function(){return new tv(this._view,this._elDef)}},{key:"componentType",get:function(){return this._component.constructor}}]),n}(Vf);function Kp(e,t,n){return new Qp(e,t,n)}var Qp=function(){function e(t,n,r){g(this,e),this._view=t,this._elDef=n,this._data=r,this._embeddedViews=[]}return y(e,[{key:"clear",value:function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Lp(this._data,e);Qh.destroyView(t)}}},{key:"get",value:function(e){var t=this._embeddedViews[e];if(t){var n=new Xp(t);return n.attachToViewContainerRef(this),n}return null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;i||e instanceof Ff||(i=o.get(Oh));var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a}},{key:"insert",value:function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,a,u=e;return n=this._view,r=this._data,i=t,o=u._view,a=r.viewContainer._embeddedViews,null==i&&(i=a.length),o.viewContainerParent=n,Yn(a,i,o),function(e,t){var n=sp(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(!(4&t.flags)){e.nodeFlags|=4,t.flags|=4;for(var n=t.parent;n;)n.childFlags|=4,n=n.parent}}(t.parent.def,t.parentNodeDef)}}(r,o),Qh.dirtyParentQueries(o),Bp(r,i>0?a[i-1]:null,o),u.attachToViewContainerRef(this),e}},{key:"move",value:function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,u=this._embeddedViews.indexOf(e._view);return n=this._data,r=u,i=t,o=n.viewContainer._embeddedViews,a=o[r],Jn(o,r),null==i&&(i=o.length),Yn(o,i,a),Qh.dirtyParentQueries(a),Hp(a),Bp(n,i>0?o[i-1]:null,a),e}},{key:"indexOf",value:function(e){return this._embeddedViews.indexOf(e._view)}},{key:"remove",value:function(e){var t=Lp(this._data,e);t&&Qh.destroyView(t)}},{key:"detach",value:function(e){var t=Lp(this._data,e);return t?new Xp(t):null}},{key:"element",get:function(){return new Wf(this._data.renderElement)}},{key:"injector",get:function(){return new tv(this._view,this._elDef)}},{key:"parentInjector",get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=lp(e),e=e.parent;return e?new tv(e,t):new tv(this._view,null)}},{key:"length",get:function(){return this._embeddedViews.length}}]),e}();function Zp(e){return new Xp(e)}var Xp=function(){function e(t){g(this,e),this._view=t,this._viewContainerRef=null,this._appRef=null}return y(e,[{key:"markForCheck",value:function(){op(this._view)}},{key:"detach",value:function(){this._view.state&=-5}},{key:"detectChanges",value:function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Qh.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}},{key:"checkNoChanges",value:function(){Qh.checkNoChangesView(this._view)}},{key:"reattach",value:function(){this._view.state|=4}},{key:"onDestroy",value:function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}},{key:"destroy",value:function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Qh.destroyView(this._view)}},{key:"detachFromAppRef",value:function(){this._appRef=null,Hp(this._view),Qh.dirtyParentQueries(this._view)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"rootNodes",get:function(){return bp(this._view,0,void 0,void 0,e=[]),e;var e}},{key:"context",get:function(){return this._view.context}},{key:"destroyed",get:function(){return 0!=(128&this._view.state)}}]),e}();function Yp(e,t){return new Jp(e,t)}var Jp=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this))._parentView=e,i._def=r,i}return y(n,[{key:"createEmbeddedView",value:function(e){return new Xp(Qh.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}},{key:"elementRef",get:function(){return new Wf(qh(this._parentView,this._def.nodeIndex).renderElement)}}]),n}(xh);function ev(e,t){return new tv(e,t)}var tv=function(){function e(t,n){g(this,e),this.view=t,this.elDef=n}return y(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ou.THROW_IF_NOT_FOUND;return Qh.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Yh(e)},t)}}]),e}();function nv(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=qh(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Uh(e,n.nodeIndex).renderText;if(20240&n.flags)return Wh(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function rv(e,t,n,r){return new iv(e,t,n,r)}var iv=function(){function e(t,n,r,i){g(this,e),this._moduleType=t,this._parent=n,this._bootstrapComponents=r,this._def=i,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=er(t.providers.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:Ou.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L.Default,r=0;return n&L.SkipSelf?r|=1:n&L.Self&&(r|=4),Rp(this,{token:e,tokenKey:Yh(e),flags:r},t)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The ng module ".concat(k(this.instance.constructor)," has already been destroyed."));this._destroyed=!0,function(e,t){for(var n=e._def,r=new Set,i=0;i0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return wv(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(Cv(e,t,n,i[0]));case 2:return r(Cv(e,t,n,i[0]),Cv(e,t,n,i[1]));case 3:return r(Cv(e,t,n,i[0]),Cv(e,t,n,i[1]),Cv(e,t,n,i[2]));default:for(var a=[],u=0;u4&&void 0!==arguments[4]?arguments[4]:Ou.THROW_IF_NOT_FOUND;if(8&r.flags)return r.token;var o=e;2&r.flags&&(i=null);var a=r.tokenKey;a===lv&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);for(var u=e;u;){if(t)switch(a){case ov:return xv(u,t,n).renderer;case av:return new Wf(qh(u,t.nodeIndex).renderElement);case uv:return qh(u,t.nodeIndex).viewContainer;case sv:if(t.element.template)return qh(u,t.nodeIndex).template;break;case lv:return Zp(xv(u,t,n));case cv:case dv:return ev(u,t);default:var s=(n?t.element.allProviders:t.element.publicProviders)[a];if(s){var l=Wh(u,s.nodeIndex);return l||(l={instance:_v(u,s)},u.nodes[s.nodeIndex]=l),l.instance}}n=dp(u),t=lp(u),u=u.parent,4&r.flags&&(u=null)}var c=o.root.injector.get(r.token,kv);return c!==kv||i===kv?c:o.root.ngModule.injector.get(r.token,i)}function xv(e,t,n){var r;if(n)r=qh(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!dp(r);)r=r.parent;return r}function $v(e,t,n,r,i,o){if(32768&n.flags){var a=qh(e,n.parent.nodeIndex).componentView;2&a.def.flags&&(a.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var u=ss.unwrap(e.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new Me(u,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,o}function Sv(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,i=0;i0&&Go(l,d,b.join(" "))}if(o=Qe(p,20),void 0!==t)for(var _=o.projection=[],w=0;w1&&void 0!==arguments[1]?arguments[1]:Ou.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L.Default;return e===Ou||e===Oh||e===cu?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Oh),Bv=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this)).moduleType=e,null!==Ce(e)&&Rv(e),r}return y(n,[{key:"create",value:function(e){return new Lv(this.moduleType,e)}}]),n}(Ih);function Hv(e,t,n){var r=_t()+e,i=lt();return i[r]===oa?ds(i,r,n?t.call(n):t()):fs(i,r)}function Uv(e,t,n,r){return Jv(lt(),_t(),e,t,n,r)}function qv(e,t,n,r,i){return eg(lt(),_t(),e,t,n,r,i)}function Wv(e,t,n,r,i,o){return tg(lt(),_t(),e,t,n,r,i,o)}function zv(e,t,n,r,i,o,a){return ng(lt(),_t(),e,t,n,r,i,o,a)}function Gv(e,t,n,r,i,o,a,u){var s=_t()+e,l=lt(),c=gs(l,s,n,r,i,o);return hs(l,s+4,a)||c?ds(l,s+5,u?t.call(u,n,r,i,o,a):t(n,r,i,o,a)):fs(l,s+5)}function Kv(e,t,n,r,i,o,a,u,s){var l=_t()+e,c=lt(),d=gs(c,l,n,r,i,o);return ps(c,l+4,a,u)||d?ds(c,l+6,s?t.call(s,n,r,i,o,a,u):t(n,r,i,o,a,u)):fs(c,l+6)}function Qv(e,t,n,r,i,o,a,u,s,l){var c=_t()+e,d=lt(),f=gs(d,c,n,r,i,o);return vs(d,c+4,a,u,s)||f?ds(d,c+7,l?t.call(l,n,r,i,o,a,u,s):t(n,r,i,o,a,u,s)):fs(d,c+7)}function Zv(e,t,n,r,i,o,a,u,s,l,c){var d=_t()+e,f=lt(),h=gs(f,d,n,r,i,o);return gs(f,d+4,a,u,s,l)||h?ds(f,d+8,c?t.call(c,n,r,i,o,a,u,s,l):t(n,r,i,o,a,u,s,l)):fs(f,d+8)}function Xv(e,t,n,r){return rg(lt(),_t(),e,t,n,r)}function Yv(e,t){var n=e[t];return n===oa?void 0:n}function Jv(e,t,n,r,i,o){var a=t+n;return hs(e,a,i)?ds(e,a+1,o?r.call(o,i):r(i)):Yv(e,a+1)}function eg(e,t,n,r,i,o,a){var u=t+n;return ps(e,u,i,o)?ds(e,u+2,a?r.call(a,i,o):r(i,o)):Yv(e,u+2)}function tg(e,t,n,r,i,o,a,u){var s=t+n;return vs(e,s,i,o,a)?ds(e,s+3,u?r.call(u,i,o,a):r(i,o,a)):Yv(e,s+3)}function ng(e,t,n,r,i,o,a,u,s){var l=t+n;return gs(e,l,i,o,a,u)?ds(e,l+4,s?r.call(s,i,o,a,u):r(i,o,a,u)):Yv(e,l+4)}function rg(e,t,n,r,i,o){for(var a=t+n,u=!1,s=0;s=0;n--){var r=t[n];if(e===r.name)return r}throw new je("302","The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=Te(n.type)),a=H(pl);try{var u=sn(!1),s=o();return sn(u),Ds(r,lt(),i,s),s}finally{H(a)}}function og(e,t,n){var r=e+20,i=lt(),o=Ze(i,r);return dg(i,cg(i,r)?Jv(i,_t(),t,o.transform,n,o):o.transform(n))}function ag(e,t,n,r){var i=e+20,o=lt(),a=Ze(o,i);return dg(o,cg(o,i)?eg(o,_t(),t,a.transform,n,r,a):a.transform(n,r))}function ug(e,t,n,r,i){var o=e+20,a=lt(),u=Ze(a,o);return dg(a,cg(a,o)?tg(a,_t(),t,u.transform,n,r,i,u):u.transform(n,r,i))}function sg(e,t,n,r,i,o){var a=e+20,u=lt(),s=Ze(u,a);return dg(u,cg(u,a)?ng(u,_t(),t,s.transform,n,r,i,o,s):s.transform(n,r,i,o))}function lg(e,t,n){var r=e+20,i=lt(),o=Ze(i,r);return dg(i,cg(i,r)?rg(i,_t(),t,o.transform,n,o):o.transform.apply(o,n))}function cg(e,t){return e[1].data[t].pure}function dg(e,t){return ss.isWrapped(t)&&(t=ss.unwrap(t),e[wt()]=oa),t}var fg=function(e){l(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g(this,n),(e=t.call(this)).__isAsync=r,e}return y(n,[{key:"emit",value:function(e){s(v(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var i,o=function(e){return null},a=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var u=s(v(n.prototype),"subscribe",this).call(this,i,o,a);return e instanceof f.a&&e.add(u),u}}]),n}(c.a);function hg(){return this._results[as()]()}var pg=function(){function e(){g(this,e),this.dirty=!0,this._results=[],this.changes=new fg,this.length=0;var t=as(),n=e.prototype;n[t]||(n[t]=hg)}return y(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=Zn(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),vg=function(){function e(t){g(this,e),this.queryList=t,this.matches=null}return y(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),gg=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];g(this,e),this.queries=t}return y(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;g(this,e),this.predicate=t,this.descendants=n,this.isStatic=r,this.read=i},yg=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];g(this,e),this.queries=t}return y(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;g(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return y(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r0)r.push(a[u/2]);else{for(var l=o[u+1],c=t[-s],d=10;d0&&void 0!==arguments[0]?arguments[0]:L.Default,t=yh(!0);if(null!=t||e&L.Optional)return t;Pe("ChangeDetectorRef")}var Dg={"\u0275\u0275attribute":ms,"\u0275\u0275attributeInterpolate1":Es,"\u0275\u0275attributeInterpolate2":Os,"\u0275\u0275attributeInterpolate3":Is,"\u0275\u0275attributeInterpolate4":Ts,"\u0275\u0275attributeInterpolate5":js,"\u0275\u0275attributeInterpolate6":Vs,"\u0275\u0275attributeInterpolate7":As,"\u0275\u0275attributeInterpolate8":Ps,"\u0275\u0275attributeInterpolateV":Ms,"\u0275\u0275defineComponent":ce,"\u0275\u0275defineDirective":ye,"\u0275\u0275defineInjectable":I,"\u0275\u0275defineInjector":j,"\u0275\u0275defineNgModule":ve,"\u0275\u0275definePipe":be,"\u0275\u0275directiveInject":pl,"\u0275\u0275getFactoryOf":En,"\u0275\u0275getInheritedFactory":On,"\u0275\u0275inject":Ar,"\u0275\u0275injectAttribute":In,"\u0275\u0275invalidFactory":vl,"\u0275\u0275invalidFactoryDep":Pr,"\u0275\u0275injectPipeChangeDetectorRef":Ng,"\u0275\u0275templateRefExtractor":Mg,"\u0275\u0275NgOnChangesFeature":Ne,"\u0275\u0275ProvidersFeature":jf,"\u0275\u0275CopyDefinitionFeature":is,"\u0275\u0275InheritDefinitionFeature":Xu,"\u0275\u0275nextContext":Vl,"\u0275\u0275namespaceHTML":qt,"\u0275\u0275namespaceMathML":Ut,"\u0275\u0275namespaceSVG":Ht,"\u0275\u0275enableBindings":ut,"\u0275\u0275disableBindings":st,"\u0275\u0275elementStart":yl,"\u0275\u0275elementEnd":bl,"\u0275\u0275element":_l,"\u0275\u0275elementContainerStart":wl,"\u0275\u0275elementContainerEnd":kl,"\u0275\u0275elementContainer":Cl,"\u0275\u0275pureFunction0":Hv,"\u0275\u0275pureFunction1":Uv,"\u0275\u0275pureFunction2":qv,"\u0275\u0275pureFunction3":Wv,"\u0275\u0275pureFunction4":zv,"\u0275\u0275pureFunction5":Gv,"\u0275\u0275pureFunction6":Kv,"\u0275\u0275pureFunction7":Qv,"\u0275\u0275pureFunction8":Zv,"\u0275\u0275pureFunctionV":Xv,"\u0275\u0275getCurrentView":xl,"\u0275\u0275restoreView":dt,"\u0275\u0275listener":El,"\u0275\u0275projection":Ml,"\u0275\u0275syntheticHostProperty":ad,"\u0275\u0275syntheticHostListener":Ol,"\u0275\u0275pipeBind1":og,"\u0275\u0275pipeBind2":ag,"\u0275\u0275pipeBind3":ug,"\u0275\u0275pipeBind4":sg,"\u0275\u0275pipeBindV":lg,"\u0275\u0275projectionDef":Pl,"\u0275\u0275hostProperty":od,"\u0275\u0275property":gl,"\u0275\u0275propertyInterpolate":Nl,"\u0275\u0275propertyInterpolate1":Dl,"\u0275\u0275propertyInterpolate2":Rl,"\u0275\u0275propertyInterpolate3":Fl,"\u0275\u0275propertyInterpolate4":Ll,"\u0275\u0275propertyInterpolate5":Bl,"\u0275\u0275propertyInterpolate6":Hl,"\u0275\u0275propertyInterpolate7":Ul,"\u0275\u0275propertyInterpolate8":ql,"\u0275\u0275propertyInterpolateV":Wl,"\u0275\u0275pipe":ig,"\u0275\u0275queryRefresh":xg,"\u0275\u0275viewQuery":Sg,"\u0275\u0275staticViewQuery":$g,"\u0275\u0275staticContentQuery":Ig,"\u0275\u0275loadQuery":jg,"\u0275\u0275contentQuery":Og,"\u0275\u0275reference":Rs,"\u0275\u0275classMap":sc,"\u0275\u0275classMapInterpolate1":Vc,"\u0275\u0275classMapInterpolate2":Ac,"\u0275\u0275classMapInterpolate3":Pc,"\u0275\u0275classMapInterpolate4":Mc,"\u0275\u0275classMapInterpolate5":Nc,"\u0275\u0275classMapInterpolate6":Dc,"\u0275\u0275classMapInterpolate7":Rc,"\u0275\u0275classMapInterpolate8":Fc,"\u0275\u0275classMapInterpolateV":Lc,"\u0275\u0275styleMap":ac,"\u0275\u0275styleMapInterpolate1":Bc,"\u0275\u0275styleMapInterpolate2":Hc,"\u0275\u0275styleMapInterpolate3":Uc,"\u0275\u0275styleMapInterpolate4":qc,"\u0275\u0275styleMapInterpolate5":Wc,"\u0275\u0275styleMapInterpolate6":zc,"\u0275\u0275styleMapInterpolate7":Gc,"\u0275\u0275styleMapInterpolate8":Kc,"\u0275\u0275styleMapInterpolateV":Qc,"\u0275\u0275styleProp":ic,"\u0275\u0275stylePropInterpolate1":Zc,"\u0275\u0275stylePropInterpolate2":Xc,"\u0275\u0275stylePropInterpolate3":Yc,"\u0275\u0275stylePropInterpolate4":Jc,"\u0275\u0275stylePropInterpolate5":ed,"\u0275\u0275stylePropInterpolate6":td,"\u0275\u0275stylePropInterpolate7":nd,"\u0275\u0275stylePropInterpolate8":rd,"\u0275\u0275stylePropInterpolateV":id,"\u0275\u0275classProp":oc,"\u0275\u0275advance":aa,"\u0275\u0275template":Ns,"\u0275\u0275text":wc,"\u0275\u0275textInterpolate":kc,"\u0275\u0275textInterpolate1":Cc,"\u0275\u0275textInterpolate2":xc,"\u0275\u0275textInterpolate3":$c,"\u0275\u0275textInterpolate4":Sc,"\u0275\u0275textInterpolate5":Ec,"\u0275\u0275textInterpolate6":Oc,"\u0275\u0275textInterpolate7":Ic,"\u0275\u0275textInterpolate8":Tc,"\u0275\u0275textInterpolateV":jc,"\u0275\u0275i18n":bf,"\u0275\u0275i18nAttributes":_f,"\u0275\u0275i18nExp":wf,"\u0275\u0275i18nStart":mf,"\u0275\u0275i18nEnd":yf,"\u0275\u0275i18nApply":kf,"\u0275\u0275i18nPostprocess":Cf,"\u0275\u0275resolveWindow":ao,"\u0275\u0275resolveDocument":uo,"\u0275\u0275resolveBody":so,"\u0275\u0275setComponentScope":de,"\u0275\u0275setNgModuleScope":ge,"\u0275\u0275sanitizeHtml":Vi,"\u0275\u0275sanitizeStyle":Ai,"\u0275\u0275sanitizeResourceUrl":Mi,"\u0275\u0275sanitizeScript":Ni,"\u0275\u0275sanitizeUrl":Pi,"\u0275\u0275sanitizeUrlOrResourceUrl":Bi,"\u0275\u0275trustConstantHtml":Di,"\u0275\u0275trustConstantScript":Ri,"\u0275\u0275trustConstantResourceUrl":Fi},Rg=null;function Fg(){Rg=null}var Lg=[],Bg=[],Hg=!1;function Ug(){if(!Hg){Hg=!0;try{for(var e=Bg.length-1;e>=0;e--){var t=Bg[e],n=t.moduleType,r=t.ngModule;r.declarations&&r.declarations.every(qg)&&(Bg.splice(e,1),Kg(n,r))}}finally{Hg=!1}}}function qg(e){return Array.isArray(e)?e.every(qg):!!S(e)}function Wg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zg(e,t),function(e,t){Bg.push({moduleType:e,ngModule:t})}(e,t)}function zg(e,t){var n=Zn(t.declarations||Lg),r=null;Object.defineProperty(e,oe,{configurable:!0,get:function(){return null===r&&((r=Gn().compileNgModule(Dg,"ng:///".concat(e.name,"/\u0275mod.js"),{type:e,bootstrap:Zn(t.bootstrap||Lg).map(S),declarations:n.map(S),imports:Zn(t.imports||Lg).map(S).map(Xg),exports:Zn(t.exports||Lg).map(S).map(Xg),schemas:t.schemas?Zn(t.schemas):null,id:t.id||null})).schemas||(r.schemas=[])),r}});var i=null;Object.defineProperty(e,D,{get:function(){if(null===i){var n={name:e.name,type:e,deps:br(e),providers:t.providers||Lg,imports:[(t.imports||Lg).map(S),(t.exports||Lg).map(S)]};i=Gn().compileInjector(Dg,"ng:///".concat(e.name,"/\u0275inj.js"),n)}return i},configurable:!1})}new Map,new Map;function Gg(){new Map,new Map,Bg.length=0}function Kg(e,t){var n=Zn(t.declarations||Lg),r=Zg(e);n.forEach(function(t){t.hasOwnProperty(ne)?Qg(_e(t),r):t.hasOwnProperty(re)||t.hasOwnProperty(ie)||(t.ngSelectorScope=e)})}function Qg(e,t){e.directiveDefs=function(){return Array.from(t.compilation.directives).map(function(e){return e.hasOwnProperty(ne)?_e(e):we(e)}).filter(function(e){return!!e})},e.pipeDefs=function(){return Array.from(t.compilation.pipes).map(function(e){return ke(e)})},e.schemas=t.schemas,e.tView=null}function Zg(e){if(!Yg(e))throw new Error(e.name+" does not have a module def (\u0275mod property)");var t=Ce(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;var n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return lo(t.imports).forEach(function(e){var t=e;if(!Yg(t))throw new Error("Importing ".concat(t.name," which does not have a \u0275mod property"));var r=Zg(t);r.exported.directives.forEach(function(e){return n.compilation.directives.add(e)}),r.exported.pipes.forEach(function(e){return n.compilation.pipes.add(e)})}),lo(t.declarations).forEach(function(e){ke(e)?n.compilation.pipes.add(e):n.compilation.directives.add(e)}),lo(t.exports).forEach(function(e){var t=e;if(Yg(t)){var r=Zg(t);r.exported.directives.forEach(function(e){n.compilation.directives.add(e),n.exported.directives.add(e)}),r.exported.pipes.forEach(function(e){n.compilation.pipes.add(e),n.exported.pipes.add(e)})}else ke(t)?n.exported.pipes.add(t):n.exported.directives.add(t)}),t.transitiveCompileScopes=n,n}function Xg(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function Yg(e){return!!Ce(e)}var Jg=0;function em(e,t){var n=null;!function(e,t){xr(t)&&(kr.set(e,t),Cr.add(e))}(e,t),rm(e,t),Object.defineProperty(e,ne,{get:function(){if(null===n){var r=Gn();if(xr(t)){var i=["Component '".concat(e.name,"' is not resolved:")];throw t.templateUrl&&i.push(" - templateUrl: "+t.templateUrl),t.styleUrls&&t.styleUrls.length&&i.push(" - styleUrls: "+JSON.stringify(t.styleUrls)),i.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(i.join("\n"))}var o=Rg,a=t.preserveWhitespaces;void 0===a&&(a=null!==o&&void 0!==o.preserveWhitespaces&&o.preserveWhitespaces);var u=t.encapsulation;void 0===u&&(u=null!==o&&void 0!==o.defaultEncapsulation?o.defaultEncapsulation:K.Emulated);var s=t.templateUrl||"ng:///".concat(e.name,"/template.html"),l=Object.assign(Object.assign({},om(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,s),template:t.template||"",preserveWhitespaces:a,styles:t.styles||te,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:u,interpolation:t.interpolation,viewProviders:t.viewProviders||null});Jg++;try{l.usesInheritance&&am(e),n=r.compileComponent(Dg,s,l)}finally{Jg--}if(0===Jg&&Ug(),void 0!==e.ngSelectorScope){var c=Zg(e.ngSelectorScope);Qg(n,c)}}return n},configurable:!1})}function tm(e,t){var n=null;rm(e,t||{}),Object.defineProperty(e,re,{get:function(){if(null===n){var r=nm(e,t||{});n=Gn().compileDirective(Dg,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function nm(e,t){var n=e&&e.name,r="ng:///".concat(n,"/\u0275dir.js"),i=Gn(),o=om(e,t);return o.typeSourceSpan=i.createParseSourceSpan("Directive",n,r),o.usesInheritance&&am(e),{metadata:o,sourceMapUrl:r}}function rm(e,t){var n=null;Object.defineProperty(e,ue,{get:function(){if(null===n){var r=nm(e,t),i=Gn();n=i.compileFactory(Dg,"ng:///".concat(e.name,"/\u0275fac.js"),Object.assign(Object.assign({},r.metadata),{injectFn:"directiveInject",target:i.R3FactoryTarget.Directive}))}return n},configurable:!1})}function im(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function om(e,t){var n,r=yr(),i=r.ownPropMetadata(e);return{name:e.name,type:e,typeArgumentCount:0,selector:void 0!==t.selector?t.selector:null,deps:br(e),host:t.host||ee,propMetadata:i,inputs:t.inputs||te,outputs:t.outputs||te,queries:um(e,i,sm),lifecycle:{usesOnChanges:r.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!im(e),exportAs:(n=t.exportAs,void 0===n?null:dm(n)),providers:t.providers||null,viewQueries:um(e,i,lm)}}function am(e){for(var t=Object.prototype,n=Object.getPrototypeOf(e.prototype).constructor;n&&n!==t;)we(n)||_e(n)||!hm(n)||tm(n,null),n=Object.getPrototypeOf(n)}function um(e,t,n){var r=[],i=function(i){if(t.hasOwnProperty(i)){var o=t[i];o.forEach(function(t){if(n(t)){if(!t.selector)throw new Error("Can't construct a query for the property \"".concat(i,'" of "').concat(Ae(e),"\" since the query selector wasn't defined."));if(o.some(cm))throw new Error("Cannot combine @Input decorators with query decorators");r.push(function(e,t){return{propertyName:e,predicate:(n=t.selector,"string"==typeof n?dm(n):S(n)),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static};var n}(i,t))}})}};for(var o in t)i(o);return r}function sm(e){var t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function lm(e){var t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function cm(e){return"Input"===e.ngMetadataName}function dm(e){return e.split(",").map(function(e){return e.trim()})}var fm=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function hm(e){var t=yr();if(fm.some(function(n){return t.hasLifecycleHook(e,n)}))return!0;var n=t.propMetadata(e);for(var r in n)for(var i=n[r],o=0;o0&&void 0!==arguments[0]?arguments[0]:{};return e},void 0,void 0,function(e,t){return Em(e,t)}),mm=An("Component",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({changeDetection:W.Default},e)},gm,void 0,function(e,t){return Sm(e,t)}),ym=An("Pipe",function(e){return Object.assign({pure:!0},e)},void 0,void 0,function(e,t){return Om(e,t)}),bm=Nn("Input",function(e){return{bindingPropertyName:e}}),_m=Nn("Output",function(e){return{bindingPropertyName:e}}),wm=Nn("HostBinding",function(e){return{hostPropertyName:e}}),km=Nn("HostListener",function(e,t){return{eventName:e,args:t}}),Cm=em,xm=tm,$m=pm,Sm=Cm,Em=xm,Om=$m,Im=An("NgModule",function(e){return e},void 0,void 0,function(e,t){return jm(e,t)}),Tm=Wg,jm=Tm,Vm=new Fn("Application Initializer"),Am=function(){var e=function(){function e(t){var n=this;g(this,e),this.appInits=t,this.resolve=Lf,this.reject=Lf,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return y(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ar(cy))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}(),yy=function(){var e=function(){function e(){g(this,e),this._applications=new Map,wy.addToWindow(this)}return y(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return wy.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}();function by(e){wy=e}var _y,wy=new(function(){function e(){g(this,e)}return y(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),ky=Cy;function Cy(e,t,n){var r=new Bv(n);return Promise.resolve(r)}var xy=$y;function $y(e){return e.isBoundToModule}var Sy=new Fn("AllowMultipleToken"),Ey=function e(t,n){g(this,e),this.name=t,this.token=n};function Oy(e){if(_y&&!_y.destroyed&&!_y.injector.get(Sy,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");_y=e.get(Ay);var t=e.get(Rm,null);return t&&t.forEach(function(e){return e()}),_y}function Iy(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: "+t,i=new Fn(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Vy();if(!o||o.injector.get(Sy,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0},{provide:fu,useValue:"platform"});Oy(Ou.create({providers:a,name:r}))}return Ty(i)}}function Ty(e){var t=Vy();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function jy(){_y&&!_y.destroyed&&_y.destroy()}function Vy(){return _y&&!_y.destroyed?_y:null}var Ay=function(){var e=function(){function e(t){g(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return y(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new gy:("zone.js"===n?void 0:n)||new cy({enableLongStackTrace:ii(),shouldCoalesceEventChangeDetection:r})),a=[{provide:cy,useValue:o}];return o.run(function(){var t=Ou.create({providers:a,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(zi,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Ny(i._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})}),function(e,t,r){try{var o=((a=n.injector.get(Am)).runInitializers(),a.donePromise.then(function(){return Qm&&xd(n.injector.get(Um,yd)||yd),i._moduleDoBootstrap(n),n}));return $l(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(u){throw t.runOutsideAngular(function(){return e.handleError(u)}),u}var a}(r,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Py({},n);return ky(this.injector,r,e).then(function(e){return t.bootstrapModuleFactory(e,r)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(My);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(k(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ar(Ou))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}();function Py(e,t){return Array.isArray(t)?t.reduce(Py,e):Object.assign(Object.assign({},e),t)}var My=function(){var e=function(){function e(t,n,r,i,o,a){var u=this;g(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ii(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var s=new p.a(function(e){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){e.next(u._stable),e.complete()})}),l=new p.a(function(e){var t;u._zone.runOutsideAngular(function(){t=u._zone.onStable.subscribe(function(){cy.assertNotInAngularZone(),ly(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,e.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){cy.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(m.a)(s,l.pipe(Object(b.a)()))}return y(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Af?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=xy(n)?void 0:this._injector.get(Oh),o=n.create(Ou.NULL,[],t||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var a=o.injector.get(my,null);return a&&o.injector.get(yy).registerApplication(o.location.nativeElement,a),this._loadComponent(o),ii()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=i(this._views);try{for(n.s();!(t=n.n()).done;){t.value.detectChanges()}}catch(a){n.e(a)}finally{n.f()}if(this._enforceNoNewChanges){var r,o=i(this._views);try{for(o.s();!(r=o.n()).done;){r.value.checkNoChanges()}}catch(a){o.e(a)}finally{o.f()}}}catch(u){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(u)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Ny(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Lm,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),Ny(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()})}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ar(cy),Ar(Hm),Ar(Ou),Ar(zi),Ar(Df),Ar(Am))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}();function Ny(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Dy=function e(){g(this,e)};function Ry(e){var t=Fv(e);if(!t)throw By(e);return t}function Fy(e){var t=Fv(e);if(!t)throw By(e);return new Bv(t)}var Ly=Fy;function By(e){return new Error("No module with ID ".concat(e," loaded"))}var Hy=function e(){g(this,e)},Uy={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},qy=function(){var e=function(){function e(t,n){g(this,e),this._compiler=t,this._config=n||Uy}return y(e,[{key:"load",value:function(e){return!Qm&&this._compiler instanceof oy?this.loadFactory(e):this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var n=this,r=t(e.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),u("crnd")(i).then(function(e){return e[o]}).then(function(e){return Wy(e,i,o)}).then(function(e){return n._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var n=t(e.split("#"),2),r=n[0],i=n[1],o="NgFactory";return void 0===i&&(i="default",o=""),u("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[i+o]}).then(function(e){return Wy(e,r,i)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ar(oy),Ar(Hy,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}();function Wy(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var zy=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return n}(mh),Gy=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return n}(zy),Ky=function e(t,n){g(this,e),this.name=t,this.callback=n},Qy=function(){function e(t,n,r){g(this,e),this.listeners=[],this.parent=null,this._debugContext=r,this.nativeNode=t,n&&n instanceof Zy&&n.addChild(this)}return y(e,[{key:"injector",get:function(){return this._debugContext.injector}},{key:"componentInstance",get:function(){return this._debugContext.component}},{key:"context",get:function(){return this._debugContext.context}},{key:"references",get:function(){return this._debugContext.references}},{key:"providerTokens",get:function(){return this._debugContext.providerTokens}}]),e}(),Zy=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e,r,i)).properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return y(n,[{key:"addChild",value:function(e){e&&(this.childNodes.push(e),e.parent=this)}},{key:"removeChild",value:function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}},{key:"insertChildrenAfter",value:function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(o(t))),t.forEach(function(t){t.parent&&t.parent.removeChild(t),e.parent=r}))}},{key:"insertBefore",value:function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}},{key:"query",value:function(e){return this.queryAll(e)[0]||null}},{key:"queryAll",value:function(e){var t=[];return Yy(this,e,t),t}},{key:"queryAllNodes",value:function(e){var t=[];return Jy(this,e,t),t}},{key:"triggerEventHandler",value:function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})}},{key:"children",get:function(){return this.childNodes.filter(function(e){return e instanceof n})}}]),n}(Qy);function Xy(e){return e.map(function(e){return e.nativeElement})}function Yy(e,t,n){e.childNodes.forEach(function(e){e instanceof Zy&&(t(e)&&n.push(e),Yy(e,t,n))})}function Jy(e,t,n){e instanceof Zy&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof Zy&&Jy(e,t,n)})}var eb=function(){function e(t){g(this,e),this.nativeNode=t}return y(e,[{key:"parent",get:function(){var e=this.nativeNode.parentNode;return e?new tb(e):null}},{key:"injector",get:function(){return Au(this.nativeNode)}},{key:"componentInstance",get:function(){var e=this.nativeNode;return e&&(Iu(e)||ju(e))}},{key:"context",get:function(){return Iu(this.nativeNode)||Tu(this.nativeNode)}},{key:"listeners",get:function(){return Du(this.nativeNode).filter(function(e){return"dom"===e.type})}},{key:"references",get:function(){return e=this.nativeNode,null===(t=Mu(e,!1))?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){var n=e[1].data[t];if(n&&n.localNames){for(var r={},i=n.index+1,o=0;o1){for(var l=u[1],c=1;c6&&void 0!==arguments[6]?arguments[6]:[],l=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,d=arguments.length>9?arguments[9]:void 0,f=arguments.length>10?arguments[10]:void 0,h=arguments.length>11?arguments[11]:void 0;d||(d=Zh);var p=pp(r),v=p.matchedQueries,g=p.references,m=p.matchedQueryIds,y=null,b=null;a&&(y=(u=t($p(a),2))[0],b=u[1]),l=l||[];for(var _=[],w=0;w0)l=v,Wb(v)||(c=v);else for(;l&&p===l.nodeIndex+l.childCount;){var y=l.parent;y&&(y.childFlags|=l.childFlags,y.childMatchedQueries|=l.childMatchedQueries),c=(l=y)&&Wb(l)?l.renderParent:l}}return{factory:null,nodeFlags:a,rootNodeFlags:u,nodeMatchedQueries:s,flags:e,nodes:t,updateDirectives:n||Zh,updateRenderer:r||Zh,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:h}}function Wb(e){return 0!=(1&e.flags)&&null===e.element.name}function zb(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index ".concat(t.nodeIndex,"!"))}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ".concat(t.nodeIndex,"!"));if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index ".concat(t.nodeIndex,"!"));if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index ".concat(t.nodeIndex,"!"))}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index ".concat(t.nodeIndex,"!"))}}function Gb(e,t,n,r){var i=Zb(e.root,e.renderer,e,t,n);return Xb(i,e.component,r),Yb(i),i}function Kb(e,t,n){var r=Zb(e,e.renderer,null,null,t);return Xb(r,n,n),Yb(r),r}function Qb(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,Zb(e.root,i,e,t.element.componentProvider,n)}function Zb(e,t,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function Xb(e,t,n){e.component=t,e.context=n}function Yb(e){var t;dp(e)&&(t=qh(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i0&&Ib(e,t,0,n)&&(h=!0),f>1&&Ib(e,t,1,r)&&(h=!0),f>2&&Ib(e,t,2,i)&&(h=!0),f>3&&Ib(e,t,3,o)&&(h=!0),f>4&&Ib(e,t,4,a)&&(h=!0),f>5&&Ib(e,t,5,u)&&(h=!0),f>6&&Ib(e,t,6,s)&&(h=!0),f>7&&Ib(e,t,7,l)&&(h=!0),f>8&&Ib(e,t,8,c)&&(h=!0),f>9&&Ib(e,t,9,d)&&(h=!0),h}(e,t,n,r,i,o,a,u,s,l,c,d);case 2:return function(e,t,n,r,i,o,a,u,s,l,c,d){var f=!1,h=t.bindings,p=h.length;if(p>0&&rp(e,t,0,n)&&(f=!0),p>1&&rp(e,t,1,r)&&(f=!0),p>2&&rp(e,t,2,i)&&(f=!0),p>3&&rp(e,t,3,o)&&(f=!0),p>4&&rp(e,t,4,a)&&(f=!0),p>5&&rp(e,t,5,u)&&(f=!0),p>6&&rp(e,t,6,s)&&(f=!0),p>7&&rp(e,t,7,l)&&(f=!0),p>8&&rp(e,t,8,c)&&(f=!0),p>9&&rp(e,t,9,d)&&(f=!0),f){var v=t.text.prefix;p>0&&(v+=Ub(n,h[0])),p>1&&(v+=Ub(r,h[1])),p>2&&(v+=Ub(i,h[2])),p>3&&(v+=Ub(o,h[3])),p>4&&(v+=Ub(a,h[4])),p>5&&(v+=Ub(u,h[5])),p>6&&(v+=Ub(s,h[6])),p>7&&(v+=Ub(l,h[7])),p>8&&(v+=Ub(c,h[8])),p>9&&(v+=Ub(d,h[9]));var g=Uh(e,t.nodeIndex).renderText;e.renderer.setValue(g,v)}return f}(e,t,n,r,i,o,a,u,s,l,c,d);case 16384:return function(e,t,n,r,i,o,a,u,s,l,c,d){var f=Wh(e,t.nodeIndex),h=f.instance,p=!1,v=void 0,g=t.bindings.length;return g>0&&np(e,t,0,n)&&(p=!0,v=$v(e,f,t,0,n,v)),g>1&&np(e,t,1,r)&&(p=!0,v=$v(e,f,t,1,r,v)),g>2&&np(e,t,2,i)&&(p=!0,v=$v(e,f,t,2,i,v)),g>3&&np(e,t,3,o)&&(p=!0,v=$v(e,f,t,3,o,v)),g>4&&np(e,t,4,a)&&(p=!0,v=$v(e,f,t,4,a,v)),g>5&&np(e,t,5,u)&&(p=!0,v=$v(e,f,t,5,u,v)),g>6&&np(e,t,6,s)&&(p=!0,v=$v(e,f,t,6,s,v)),g>7&&np(e,t,7,l)&&(p=!0,v=$v(e,f,t,7,l,v)),g>8&&np(e,t,8,c)&&(p=!0,v=$v(e,f,t,8,c,v)),g>9&&np(e,t,9,d)&&(p=!0,v=$v(e,f,t,9,d,v)),v&&h.ngOnChanges(v),65536&t.flags&&Hh(e,256,t.nodeIndex)&&h.ngOnInit(),262144&t.flags&&h.ngDoCheck(),p}(e,t,n,r,i,o,a,u,s,l,c,d);case 32:case 64:case 128:return function(e,t,n,r,i,o,a,u,s,l,c,d){var f=t.bindings,h=!1,p=f.length;if(p>0&&rp(e,t,0,n)&&(h=!0),p>1&&rp(e,t,1,r)&&(h=!0),p>2&&rp(e,t,2,i)&&(h=!0),p>3&&rp(e,t,3,o)&&(h=!0),p>4&&rp(e,t,4,a)&&(h=!0),p>5&&rp(e,t,5,u)&&(h=!0),p>6&&rp(e,t,6,s)&&(h=!0),p>7&&rp(e,t,7,l)&&(h=!0),p>8&&rp(e,t,8,c)&&(h=!0),p>9&&rp(e,t,9,d)&&(h=!0),h){var v,g=zh(e,t.nodeIndex);switch(201347067&t.flags){case 32:v=[],p>0&&v.push(n),p>1&&v.push(r),p>2&&v.push(i),p>3&&v.push(o),p>4&&v.push(a),p>5&&v.push(u),p>6&&v.push(s),p>7&&v.push(l),p>8&&v.push(c),p>9&&v.push(d);break;case 64:v={},p>0&&(v[f[0].name]=n),p>1&&(v[f[1].name]=r),p>2&&(v[f[2].name]=i),p>3&&(v[f[3].name]=o),p>4&&(v[f[4].name]=a),p>5&&(v[f[5].name]=u),p>6&&(v[f[6].name]=s),p>7&&(v[f[7].name]=l),p>8&&(v[f[8].name]=c),p>9&&(v[f[9].name]=d);break;case 128:var m=n;switch(p){case 1:v=m.transform(n);break;case 2:v=m.transform(r);break;case 3:v=m.transform(r,i);break;case 4:v=m.transform(r,i,o);break;case 5:v=m.transform(r,i,o,a);break;case 6:v=m.transform(r,i,o,a,u);break;case 7:v=m.transform(r,i,o,a,u,s);break;case 8:v=m.transform(r,i,o,a,u,s,l);break;case 9:v=m.transform(r,i,o,a,u,s,l,c);break;case 10:v=m.transform(r,i,o,a,u,s,l,c,d)}}g.value=v}return h}(e,t,n,r,i,o,a,u,s,l,c,d);default:throw"unreachable"}}(e,t,r,i,a,u,s,l,c,d,f,h):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i0&&ip(e,t,0,n),f>1&&ip(e,t,1,r),f>2&&ip(e,t,2,i),f>3&&ip(e,t,3,o),f>4&&ip(e,t,4,a),f>5&&ip(e,t,5,u),f>6&&ip(e,t,6,s),f>7&&ip(e,t,7,l),f>8&&ip(e,t,8,c),f>9&&ip(e,t,9,d)}(e,t,r,i,o,a,u,s,l,c,d,f):function(e,t,n){for(var r=0;r0){var o=new Set(e.modules);w_.forEach(function(t,n){if(o.has(V(n).providedIn)){var i={token:n,flags:t.flags|(r?4096:0),deps:vp(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[Yh(n)]=i}})}}(e=e.factory(function(){return Zh})),e):e}(r))}var __=new Map,w_=new Map,k_=new Map;function C_(e){var t;__.set(e.token,e),"function"==typeof e.token&&(t=V(e.token))&&"function"==typeof t.providedIn&&w_.set(e.token,e)}function x_(e,t){var n=yp(Wp(t)),r=yp(n.nodes[0].element.componentView);k_.set(e,r)}function $_(){__.clear(),w_.clear(),k_.clear()}function S_(e){if(0===__.size)return e;var t=function(e){for(var t=[],n=null,r=0;r3?o-3:0),u=3;u3?o-3:0),u=3;u1?t-1:0),r=1;rs;)r.f(e,n=a[s++],t[n]);return e}},g3Qq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("fElF")},gRHU:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("2fFW"),i=n("NJ4a"),o={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete:function(){}}},gvyg:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPresent=function(e){return null!=e},t.isDate=function(e){return!/Invalid|NaN/.test(new Date(e).toString())}},hDam:function(e,t){e.exports=function(){}},hGZq:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("uY1Z")),r(n("fWoD"))},hQsY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.base64=function(e){return i.isPresent(r.Validators.required(e))||/^(?:[A-Z0-9+\/]{4})*(?:[A-Z0-9+\/]{2}==|[A-Z0-9+\/]{3}=|[A-Z0-9+\/]{4})$/i.test(e.value)?null:{base64:!0}}},"haF/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("jhFA"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.equal(this.equal)},e.prototype.ngOnChanges=function(e){for(var t in e)"equal"===t&&(this.validator=o.equal(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={equal:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","equal","","formControlName",""],["","equal","","formControl",""],["","equal","","ngModel",""]],inputs:{equal:"equal"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.EqualValidator=s},hen0:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("fjK8")),r(n("y9jv"))},iCc5:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},itXk:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return f});var r=n("z+Ro"),i=n("DH7j"),o=n("l7GE"),a=n("ZUHj"),u=n("yCtX"),s={};function c(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return g(this,n),(e=t.call(this)).scheduler=o,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=r<1?1:r,e._windowTime=i<1?1:i,i===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return y(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}s(v(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new h(this._getNow(),e)),this._trimBufferThenGetEvents()),s(v(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=r.length;if(this.closed)throw new u.a;if(this.isStopped||this.hasError?t=o.a.EMPTY:(this.observers.push(e),t=new c.a(this,e)),i&&e.add(e=new a.a(e,i)),n)for(var l=0;lt&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r}}]),n}(r.a),h=function e(t,n){g(this,e),this.time=t,this.value=n}},"k/8l":function(e,t,n){e.exports={default:n("VKFn"),__esModule:!0}},"k7/t":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("O0EG"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.equalTo(this.equalTo)},e.prototype.validate=function(e){return this.validator(e)},e.propDecorators={equalTo:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","equalTo","","formControlName",""],["","equalTo","","formControl",""],["","equalTo","","ngModel",""]],inputs:{equalTo:"equalTo"},features:[a.\u0275\u0275ProvidersFeature([u])]}),e}();t.EqualToValidator=s},kJWO:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},kTiW:function(e,t,n){e.exports=n("NegM")},kU1M:function(e,t,n){"use strict";n.r(t),n.d(t,"audit",function(){return i}),n.d(t,"auditTime",function(){return p}),n.d(t,"buffer",function(){return m}),n.d(t,"bufferCount",function(){return k}),n.d(t,"bufferTime",function(){return E}),n.d(t,"bufferToggle",function(){return D}),n.d(t,"bufferWhen",function(){return L}),n.d(t,"catchError",function(){return U.a}),n.d(t,"combineAll",function(){return q.a}),n.d(t,"combineLatest",function(){return K}),n.d(t,"concat",function(){return Z}),n.d(t,"concatAll",function(){return X.a}),n.d(t,"concatMap",function(){return Y.a}),n.d(t,"concatMapTo",function(){return J}),n.d(t,"count",function(){return ee}),n.d(t,"debounce",function(){return re}),n.d(t,"debounceTime",function(){return ae}),n.d(t,"defaultIfEmpty",function(){return ce.a}),n.d(t,"delay",function(){return he}),n.d(t,"delayWhen",function(){return ye}),n.d(t,"dematerialize",function(){return Ce}),n.d(t,"distinct",function(){return Se}),n.d(t,"distinctUntilChanged",function(){return Ie}),n.d(t,"distinctUntilKeyChanged",function(){return Ve}),n.d(t,"elementAt",function(){return De}),n.d(t,"endWith",function(){return Fe}),n.d(t,"every",function(){return Le}),n.d(t,"exhaust",function(){return Ue}),n.d(t,"exhaustMap",function(){return Ge}),n.d(t,"expand",function(){return Ze}),n.d(t,"filter",function(){return Pe.a}),n.d(t,"finalize",function(){return Je.a}),n.d(t,"find",function(){return et}),n.d(t,"findIndex",function(){return rt}),n.d(t,"first",function(){return it.a}),n.d(t,"groupBy",function(){return ot.b}),n.d(t,"ignoreElements",function(){return at}),n.d(t,"isEmpty",function(){return lt}),n.d(t,"last",function(){return ft.a}),n.d(t,"map",function(){return ze.a}),n.d(t,"mapTo",function(){return ht}),n.d(t,"materialize",function(){return gt}),n.d(t,"max",function(){return _t}),n.d(t,"merge",function(){return kt}),n.d(t,"mergeAll",function(){return Ct.a}),n.d(t,"mergeMap",function(){return xt.b}),n.d(t,"flatMap",function(){return xt.a}),n.d(t,"mergeMapTo",function(){return $t}),n.d(t,"mergeScan",function(){return St}),n.d(t,"min",function(){return It}),n.d(t,"multicast",function(){return Tt.a}),n.d(t,"observeOn",function(){return jt.b}),n.d(t,"onErrorResumeNext",function(){return Vt}),n.d(t,"pairwise",function(){return Mt}),n.d(t,"partition",function(){return Ft}),n.d(t,"pluck",function(){return Lt}),n.d(t,"publish",function(){return Ht}),n.d(t,"publishBehavior",function(){return qt}),n.d(t,"publishLast",function(){return zt}),n.d(t,"publishReplay",function(){return Kt}),n.d(t,"race",function(){return Zt}),n.d(t,"reduce",function(){return bt.a}),n.d(t,"repeat",function(){return Yt}),n.d(t,"repeatWhen",function(){return tn}),n.d(t,"retry",function(){return on}),n.d(t,"retryWhen",function(){return sn}),n.d(t,"refCount",function(){return dn.a}),n.d(t,"sample",function(){return fn}),n.d(t,"sampleTime",function(){return vn}),n.d(t,"scan",function(){return bn.a}),n.d(t,"sequenceEqual",function(){return _n}),n.d(t,"share",function(){return xn.a}),n.d(t,"shareReplay",function(){return $n}),n.d(t,"single",function(){return En}),n.d(t,"skip",function(){return Tn}),n.d(t,"skipLast",function(){return An}),n.d(t,"skipUntil",function(){return Nn}),n.d(t,"skipWhile",function(){return Fn}),n.d(t,"startWith",function(){return Hn.a}),n.d(t,"subscribeOn",function(){return zn}),n.d(t,"switchAll",function(){return Zn}),n.d(t,"switchMap",function(){return Kn.a}),n.d(t,"switchMapTo",function(){return Xn}),n.d(t,"take",function(){return Ne.a}),n.d(t,"takeLast",function(){return Yn.a}),n.d(t,"takeUntil",function(){return Jn}),n.d(t,"takeWhile",function(){return nr}),n.d(t,"tap",function(){return or.a}),n.d(t,"throttle",function(){return ur}),n.d(t,"throttleTime",function(){return cr}),n.d(t,"throwIfEmpty",function(){return Me.a}),n.d(t,"timeInterval",function(){return vr}),n.d(t,"timeout",function(){return kr}),n.d(t,"timeoutWith",function(){return yr}),n.d(t,"timestamp",function(){return Cr}),n.d(t,"toArray",function(){return $r.a}),n.d(t,"window",function(){return Sr}),n.d(t,"windowCount",function(){return Ir}),n.d(t,"windowTime",function(){return Vr}),n.d(t,"windowToggle",function(){return Fr}),n.d(t,"windowWhen",function(){return Hr}),n.d(t,"withLatestFrom",function(){return Wr}),n.d(t,"zip",function(){return Qr}),n.d(t,"zipAll",function(){return Zr});var r=n("zx2A");function i(e){return function(t){return t.lift(new a(e))}}var a=function(){function e(t){g(this,e),this.durationSelector=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.durationSelector))}}]),e}(),u=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).durationSelector=r,i.hasValue=!1,i}return y(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=Object(r.c)(t,new r.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(r.b),c=n("D0XW"),f=n("PqYM");function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.a;return i(function(){return Object(f.a)(e,t)})}function m(e){return function(t){return t.lift(new b(e))}}var b=function(){function e(t){g(this,e),this.closingNotifier=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new _(e,this.closingNotifier))}}]),e}(),_=function(e){l(n,e);var t=d(n);function n(e,i){var o;return g(this,n),(o=t.call(this,e)).buffer=[],o.add(Object(r.c)(i,new r.a(h(o)))),o}return y(n,[{key:"_next",value:function(e){this.buffer.push(e)}},{key:"notifyNext",value:function(){var e=this.buffer;this.buffer=[],this.destination.next(e)}}]),n}(r.b),w=n("7o/Q");function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n){return n.lift(new C(e,t))}}var C=function(){function e(t,n){g(this,e),this.bufferSize=t,this.startBufferEvery=n,this.subscriberClass=n&&t!==n?$:x}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))}}]),e}(),x=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).bufferSize=r,i.buffer=[],i}return y(n,[{key:"_next",value:function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])}},{key:"_complete",value:function(){var e=this.buffer;e.length>0&&this.destination.next(e),s(v(n.prototype),"_complete",this).call(this)}}]),n}(w.a),$=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).bufferSize=r,o.startBufferEvery=i,o.buffers=[],o.count=0,o}return y(n,[{key:"_next",value:function(e){var t=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var a=r[o];a.push(e),a.length===t&&(r.splice(o,1),this.destination.next(a))}}},{key:"_complete",value:function(){for(var e=this.buffers,t=this.destination;e.length>0;){var r=e.shift();r.length>0&&t.next(r)}s(v(n.prototype),"_complete",this).call(this)}}]),n}(w.a),S=n("z+Ro");function E(e){var t=arguments.length,n=c.a;Object(S.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var r=null;t>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new O(e,r,i,n))}}var O=function(){function e(t,n,r,i){g(this,e),this.bufferTimeSpan=t,this.bufferCreationInterval=n,this.maxBufferSize=r,this.scheduler=i}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new T(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),e}(),I=function e(){g(this,e),this.buffer=[]},T=function(e){l(n,e);var t=d(n);function n(e,r,i,o,a){var u;g(this,n),(u=t.call(this,e)).bufferTimeSpan=r,u.bufferCreationInterval=i,u.maxBufferSize=o,u.scheduler=a,u.contexts=[];var s=u.openContext();if(u.timespanOnly=null==i||i<0,u.timespanOnly)u.add(s.closeAction=a.schedule(j,r,{subscriber:h(u),context:s,bufferTimeSpan:r}));else{var l={bufferTimeSpan:r,bufferCreationInterval:i,subscriber:h(u),scheduler:a};u.add(s.closeAction=a.schedule(A,r,{subscriber:h(u),context:s})),u.add(a.schedule(V,i,l))}return u}return y(n,[{key:"_next",value:function(e){for(var t,n=this.contexts,r=n.length,i=0;i0;){var r=e.shift();t.next(r.buffer)}s(v(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.contexts=null}},{key:"onBufferFull",value:function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan;this.add(e.closeAction=this.scheduler.schedule(j,n,{subscriber:this,context:e,bufferTimeSpan:n}))}}},{key:"openContext",value:function(){var e=new I;return this.contexts.push(e),e}},{key:"closeContext",value:function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)}}]),n}(w.a);function j(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function V(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(A,n,{subscriber:r,context:o})),this.schedule(e,t))}function A(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var P=n("quSY"),M=n("ZUHj"),N=n("l7GE");function D(e,t){return function(n){return n.lift(new R(e,t))}}var R=function(){function e(t,n){g(this,e),this.openings=t,this.closingSelector=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new F(e,this.openings,this.closingSelector))}}]),e}(),F=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).closingSelector=i,o.contexts=[],o.add(Object(M.a)(h(o),r)),o}return y(n,[{key:"_next",value:function(e){for(var t=this.contexts,n=t.length,r=0;r0;){var r=t.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,s(v(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){for(var e=this.contexts;e.length>0;){var t=e.shift();this.destination.next(t.buffer),t.subscription.unsubscribe(),t.buffer=null,t.subscription=null}this.contexts=null,s(v(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t){e?this.closeBuffer(e):this.openBuffer(t)}},{key:"notifyComplete",value:function(e){this.closeBuffer(e.context)}},{key:"openBuffer",value:function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(n){this._error(n)}}},{key:"closeBuffer",value:function(e){var t=this.contexts;if(t&&e){var n=e.buffer,r=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(r),r.unsubscribe()}}},{key:"trySubscribe",value:function(e){var t=this.contexts,n=new P.a,r={buffer:[],subscription:n};t.push(r);var i=Object(M.a)(this,e,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))}}]),n}(N.a);function L(e){return function(t){return t.lift(new B(e))}}var B=function(){function e(t){g(this,e),this.closingSelector=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new H(e,this.closingSelector))}}]),e}(),H=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).closingSelector=r,i.subscribing=!1,i.openBuffer(),i}return y(n,[{key:"_next",value:function(e){this.buffer.push(e)}},{key:"_complete",value:function(){var e=this.buffer;e&&this.destination.next(e),s(v(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.buffer=void 0,this.subscribing=!1}},{key:"notifyNext",value:function(){this.openBuffer()}},{key:"notifyComplete",value:function(){this.subscribing?this.complete():this.openBuffer()}},{key:"openBuffer",value:function(){var e,t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{e=(0,this.closingSelector)()}catch(n){return this.error(n)}t=new P.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(r.c)(e,new r.a(this))),this.subscribing=!1}}]),n}(r.b),U=n("JIr8"),q=n("7wxJ"),W=n("DH7j"),z=n("itXk"),G=n("Cfvw");function K(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:c.a;return function(n){return n.lift(new ue(e,t))}}var ue=function(){function e(t,n){g(this,e),this.dueTime=t,this.scheduler=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new se(e,this.dueTime,this.scheduler))}}]),e}(),se=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).dueTime=r,o.scheduler=i,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return y(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(le,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(w.a);function le(e){e.debouncedNext()}var ce=n("xbPD");function de(e){return e instanceof Date&&!isNaN(+e)}var fe=n("WMd4");function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.a,n=de(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new pe(n,t))}}var pe=function(){function e(t,n){g(this,e),this.delay=t,this.scheduler=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new ve(e,this.delay,this.scheduler))}}]),e}(),ve=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).delay=r,o.scheduler=i,o.queue=[],o.active=!1,o.errored=!1,o}return y(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new ge(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(fe.a.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(fe.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,r=e.scheduler,i=e.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(w.a),ge=function e(t,n){g(this,e),this.time=t,this.notification=n},me=n("HDdC");function ye(e,t){return t?function(n){return new we(n,t).lift(new be(e))}:function(t){return t.lift(new be(e))}}var be=function(){function e(t){g(this,e),this.delayDurationSelector=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new _e(e,this.delayDurationSelector))}}]),e}(),_e=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).delayDurationSelector=r,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return y(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(e),this.removeSubscription(i),this.tryComplete()}},{key:"notifyError",value:function(e,t){this._error(e)}},{key:"notifyComplete",value:function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()}},{key:"_next",value:function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(r){this.destination.error(r)}}},{key:"_complete",value:function(){this.completed=!0,this.tryComplete(),this.unsubscribe()}},{key:"removeSubscription",value:function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue}},{key:"tryDelay",value:function(e,t){var n=Object(M.a)(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))}},{key:"tryComplete",value:function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}]),n}(N.a),we=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this)).source=e,i.subscriptionDelay=r,i}return y(n,[{key:"_subscribe",value:function(e){this.subscriptionDelay.subscribe(new ke(e,this.source))}}]),n}(me.a),ke=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this)).parent=e,i.source=r,i.sourceSubscribed=!1,i}return y(n,[{key:"_next",value:function(e){this.subscribeToSource()}},{key:"_error",value:function(e){this.unsubscribe(),this.parent.error(e)}},{key:"_complete",value:function(){this.unsubscribe(),this.subscribeToSource()}},{key:"subscribeToSource",value:function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}]),n}(w.a);function Ce(){return function(e){return e.lift(new xe)}}var xe=function(){function e(){g(this,e)}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new $e(e))}}]),e}(),$e=function(e){l(n,e);var t=d(n);function n(e){return g(this,n),t.call(this,e)}return y(n,[{key:"_next",value:function(e){e.observe(this.destination)}}]),n}(w.a);function Se(e,t){return function(n){return n.lift(new Ee(e,t))}}var Ee=function(){function e(t,n){g(this,e),this.keySelector=t,this.flushes=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new Oe(e,this.keySelector,this.flushes))}}]),e}(),Oe=function(e){l(n,e);var t=d(n);function n(e,i,o){var a;return g(this,n),(a=t.call(this,e)).keySelector=i,a.values=new Set,o&&a.add(Object(r.c)(o,new r.a(h(a)))),a}return y(n,[{key:"notifyNext",value:function(){this.values.clear()}},{key:"notifyError",value:function(e){this._error(e)}},{key:"_next",value:function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)}},{key:"_useKeySelector",value:function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(r){return void n.error(r)}this._finalizeNext(t,e)}},{key:"_finalizeNext",value:function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))}}]),n}(r.b);function Ie(e,t){return function(n){return n.lift(new Te(e,t))}}var Te=function(){function e(t,n){g(this,e),this.compare=t,this.keySelector=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new je(e,this.compare,this.keySelector))}}]),e}(),je=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).keySelector=i,o.hasKey=!1,"function"==typeof r&&(o.compare=r),o}return y(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))}}]),n}(w.a);function Ve(e,t){return Ie(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})}var Ae=n("4I5i"),Pe=n("pLZG"),Me=n("XDbj"),Ne=n("IzEk");function De(e,t){if(e<0)throw new Ae.a;var n=arguments.length>=2;return function(r){return r.pipe(Object(Pe.a)(function(t,n){return n===e}),Object(Ne.a)(1),n?Object(ce.a)(t):Object(Me.a)(function(){return new Ae.a}))}}var Re=n("LRne");function Fe(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,n=arguments.length>2?arguments[2]:void 0;return t=(t||0)<1?Number.POSITIVE_INFINITY:t,function(r){return r.lift(new Xe(e,t,n))}}var Xe=function(){function e(t,n,r){g(this,e),this.project=t,this.concurrent=n,this.scheduler=r}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new Ye(e,this.project,this.concurrent,this.scheduler))}}]),e}(),Ye=function(e){l(n,e);var t=d(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e)).project=r,a.concurrent=i,a.scheduler=o,a.index=0,a.active=0,a.hasCompleted=!1,i0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}],[{key:"dispatch",value:function(e){var t=e.subscriber,n=e.result,r=e.value,i=e.index;t.subscribeToProjection(n,r,i)}}]),n}(r.b),Je=n("nYR2");function et(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new tt(e,n,!1,t))}}var tt=function(){function e(t,n,r,i){g(this,e),this.predicate=t,this.source=n,this.yieldIndex=r,this.thisArg=i}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new nt(e,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),e}(),nt=function(e){l(n,e);var t=d(n);function n(e,r,i,o,a){var u;return g(this,n),(u=t.call(this,e)).predicate=r,u.source=i,u.yieldIndex=o,u.thisArg=a,u.index=0,u}return y(n,[{key:"notifyComplete",value:function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()}},{key:"_next",value:function(e){var t=this.predicate,n=this.thisArg,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(i){this.destination.error(i)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}]),n}(w.a);function rt(e,t){return function(n){return n.lift(new tt(e,n,!0,t))}}var it=n("SxV6"),ot=n("OQgR");function at(){return function(e){return e.lift(new ut)}}var ut=function(){function e(){g(this,e)}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new st(e))}}]),e}(),st=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"_next",value:function(e){}}]),n}(w.a);function lt(){return function(e){return e.lift(new ct)}}var ct=function(){function e(){g(this,e)}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new dt(e))}}]),e}(),dt=function(e){l(n,e);var t=d(n);function n(e){return g(this,n),t.call(this,e)}return y(n,[{key:"notifyComplete",value:function(e){var t=this.destination;t.next(e),t.complete()}},{key:"_next",value:function(e){this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),n}(w.a),ft=n("NJ9Y");function ht(e){return function(t){return t.lift(new pt(e))}}var pt=function(){function e(t){g(this,e),this.value=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new vt(e,this.value))}}]),e}(),vt=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).value=r,i}return y(n,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),n}(w.a);function gt(){return function(e){return e.lift(new mt)}}var mt=function(){function e(){g(this,e)}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new yt(e))}}]),e}(),yt=function(e){l(n,e);var t=d(n);function n(e){return g(this,n),t.call(this,e)}return y(n,[{key:"_next",value:function(e){this.destination.next(fe.a.createNext(e))}},{key:"_error",value:function(e){var t=this.destination;t.next(fe.a.createError(e)),t.complete()}},{key:"_complete",value:function(){var e=this.destination;e.next(fe.a.createComplete()),e.complete()}}]),n}(w.a),bt=n("128B");function _t(e){var t="function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t};return Object(bt.a)(t)}var wt=n("VRyK");function kt(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?Object(xt.b)(function(){return e},t,n):("number"==typeof t&&(n=t),Object(xt.b)(function(){return e},n))}function St(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(r){return r.lift(new Et(e,t,n))}}var Et=function(){function e(t,n,r){g(this,e),this.accumulator=t,this.seed=n,this.concurrent=r}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new Ot(e,this.accumulator,this.seed,this.concurrent))}}]),e}(),Ot=function(e){l(n,e);var t=d(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e)).accumulator=r,a.acc=i,a.concurrent=o,a.hasValue=!1,a.hasCompleted=!1,a.buffer=[],a.active=0,a.index=0,a}return y(n,[{key:"_next",value:function(e){if(this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}]),n}(r.b);function It(e){var t="function"==typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e0&&void 0!==arguments[0]?arguments[0]:-1;return function(t){return 0===e?Object(Xt.b)():t.lift(new Jt(e<0?-1:e-1,t))}}var Jt=function(){function e(t,n){g(this,e),this.count=t,this.source=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new en(e,this.count,this.source))}}]),e}(),en=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).count=r,o.source=i,o}return y(n,[{key:"complete",value:function(){if(!this.isStopped){var e=this.source,t=this.count;if(0===t)return s(v(n.prototype),"complete",this).call(this);t>-1&&(this.count=t-1),e.subscribe(this._unsubscribeAndRecycle())}}}]),n}(w.a);function tn(e){return function(t){return t.lift(new nn(e))}}var nn=function(){function e(t){g(this,e),this.notifier=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new rn(e,this.notifier,t))}}]),e}(),rn=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).notifier=r,o.source=i,o.sourceIsBeingSubscribedTo=!0,o}return y(n,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return s(v(n.prototype),"complete",this).call(this)}},{key:"complete",value:function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return s(v(n.prototype),"complete",this).call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}},{key:"_unsubscribe",value:function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._unsubscribe;return this._unsubscribe=null,s(v(n.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=e,this}},{key:"subscribeToRetries",value:function(){var e;this.notifications=new Bt.a;try{e=(0,this.notifier)(this.notifications)}catch(t){return s(v(n.prototype),"complete",this).call(this)}this.retries=e,this.retriesSubscription=Object(r.c)(e,new r.a(this))}}]),n}(r.b);function on(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(t){return t.lift(new an(e,t))}}var an=function(){function e(t,n){g(this,e),this.count=t,this.source=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new un(e,this.count,this.source))}}]),e}(),un=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).count=r,o.source=i,o}return y(n,[{key:"error",value:function(e){if(!this.isStopped){var t=this.source,r=this.count;if(0===r)return s(v(n.prototype),"error",this).call(this,e);r>-1&&(this.count=r-1),t.subscribe(this._unsubscribeAndRecycle())}}}]),n}(w.a);function sn(e){return function(t){return t.lift(new ln(e,t))}}var ln=function(){function e(t,n){g(this,e),this.notifier=t,this.source=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new cn(e,this.notifier,this.source))}}]),e}(),cn=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).notifier=r,o.source=i,o}return y(n,[{key:"error",value:function(e){if(!this.isStopped){var t=this.errors,i=this.retries,o=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{t=new Bt.a;try{i=(0,this.notifier)(t)}catch(a){return s(v(n.prototype),"error",this).call(this,a)}o=Object(r.c)(i,new r.a(this))}this._unsubscribeAndRecycle(),this.errors=t,this.retries=i,this.retriesSubscription=o,t.next(e)}}},{key:"_unsubscribe",value:function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var e=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)}}]),n}(r.b),dn=n("x+ZX");function fn(e){return function(t){return t.lift(new hn(e))}}var hn=function(){function e(t){g(this,e),this.notifier=t}return y(e,[{key:"call",value:function(e,t){var n=new pn(e),i=t.subscribe(n);return i.add(Object(r.c)(this.notifier,new r.a(n))),i}}]),e}(),pn=function(e){l(n,e);var t=d(n);function n(){var e;return g(this,n),(e=t.apply(this,arguments)).hasValue=!1,e}return y(n,[{key:"_next",value:function(e){this.value=e,this.hasValue=!0}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}]),n}(r.b);function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.a;return function(n){return n.lift(new gn(e,t))}}var gn=function(){function e(t,n){g(this,e),this.period=t,this.scheduler=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new mn(e,this.period,this.scheduler))}}]),e}(),mn=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).period=r,o.scheduler=i,o.hasValue=!1,o.add(i.schedule(yn,r,{subscriber:h(o),period:r})),o}return y(n,[{key:"_next",value:function(e){this.lastValue=e,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}]),n}(w.a);function yn(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}var bn=n("Kqap");function _n(e,t){return function(n){return n.lift(new wn(e,t))}}var wn=function(){function e(t,n){g(this,e),this.compareTo=t,this.comparator=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new kn(e,this.compareTo,this.comparator))}}]),e}(),kn=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).compareTo=r,o.comparator=i,o._a=[],o._b=[],o._oneComplete=!1,o.destination.add(r.subscribe(new Cn(e,h(o)))),o}return y(n,[{key:"_next",value:function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())}},{key:"_complete",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}},{key:"checkValues",value:function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var r=e.shift(),i=t.shift(),o=!1;try{o=n?n(r,i):r===i}catch(a){this.destination.error(a)}o||this.emit(!1)}}},{key:"emit",value:function(e){var t=this.destination;t.next(e),t.complete()}},{key:"nextB",value:function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}]),n}(w.a),Cn=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).parent=r,i}return y(n,[{key:"_next",value:function(e){this.parent.nextB(e)}},{key:"_error",value:function(e){this.parent.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.completeB(),this.unsubscribe()}}]),n}(w.a),xn=n("w1tV");function $n(e,t,n){var r;return r=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,r=e.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=e.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,u=e.refCount,s=e.scheduler,l=0,c=!1,d=!1;return function(e){var r;l++,!t||c?(c=!1,t=new Gt.a(i,a,s),r=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){c=!0,t.error(e)},complete:function(){d=!0,n=void 0,t.complete()}})):r=t.subscribe(this),this.add(function(){l--,r.unsubscribe(),n&&!d&&u&&0===l&&(n.unsubscribe(),n=void 0,t=void 0)})}}(r))}}var Sn=n("sVev");function En(e){return function(t){return t.lift(new On(e,t))}}var On=function(){function e(t,n){g(this,e),this.predicate=t,this.source=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new In(e,this.predicate,this.source))}}]),e}(),In=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).predicate=r,o.source=i,o.seenValue=!1,o.index=0,o}return y(n,[{key:"applySingleValue",value:function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)}},{key:"_next",value:function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)}},{key:"tryNext",value:function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(n){this.destination.error(n)}}},{key:"_complete",value:function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new Sn.a)}}]),n}(w.a);function Tn(e){return function(t){return t.lift(new jn(e))}}var jn=function(){function e(t){g(this,e),this.total=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new Vn(e,this.total))}}]),e}(),Vn=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).total=r,i.count=0,i}return y(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(w.a);function An(e){return function(t){return t.lift(new Pn(e))}}var Pn=function(){function e(t){if(g(this,e),this._skipCount=t,this._skipCount<0)throw new Ae.a}return y(e,[{key:"call",value:function(e,t){return t.subscribe(0===this._skipCount?new w.a(e):new Mn(e,this._skipCount))}}]),e}(),Mn=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e))._skipCount=r,i._count=0,i._ring=new Array(r),i}return y(n,[{key:"_next",value:function(e){var t=this._skipCount,n=this._count++;if(n1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Un.a;return g(this,n),(r=t.call(this)).source=e,r.delayTime=i,r.scheduler=o,(!Object(qn.a)(i)||i<0)&&(r.delayTime=0),o&&"function"==typeof o.schedule||(r.scheduler=Un.a),r}return y(n,[{key:"_subscribe",value:function(e){return this.scheduler.schedule(n.dispatch,this.delayTime,{source:this.source,subscriber:e})}}],[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Un.a;return new n(e,t,r)}},{key:"dispatch",value:function(e){var t=e.source,n=e.subscriber;return this.add(t.subscribe(n))}}]),n}(me.a);function zn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new Gn(e,t))}}var Gn=function(){function e(t,n){g(this,e),this.scheduler=t,this.delay=n}return y(e,[{key:"call",value:function(e,t){return new Wn(t,this.delay,this.scheduler).subscribe(e)}}]),e}(),Kn=n("eIep"),Qn=n("SpAZ");function Zn(){return Object(Kn.a)(Qn.a)}function Xn(e,t){return t?Object(Kn.a)(function(){return e},t):Object(Kn.a)(function(){return e})}var Yn=n("BFxc");function Jn(e){return function(t){return t.lift(new er(e))}}var er=function(){function e(t){g(this,e),this.notifier=t}return y(e,[{key:"call",value:function(e,t){var n=new tr(e),i=Object(r.c)(this.notifier,new r.a(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),tr=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this,e)).seenValue=!1,r}return y(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(r.b);function nr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new rr(e,t))}}var rr=function(){function e(t,n){g(this,e),this.predicate=t,this.inclusive=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new ir(e,this.predicate,this.inclusive))}}]),e}(),ir=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).predicate=r,o.inclusive=i,o.index=0,o}return y(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(r){return void n.error(r)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(w.a),or=n("vkgz"),ar={leading:!0,trailing:!1};function ur(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ar;return function(n){return n.lift(new sr(e,!!t.leading,!!t.trailing))}}var sr=function(){function e(t,n,r){g(this,e),this.durationSelector=t,this.leading=n,this.trailing=r}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new lr(e,this.durationSelector,this.leading,this.trailing))}}]),e}(),lr=function(e){l(n,e);var t=d(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e)).destination=e,a.durationSelector=r,a._leading=i,a._trailing=o,a._hasValue=!1,a}return y(n,[{key:"_next",value:function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))}},{key:"send",value:function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=void 0}},{key:"throttle",value:function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=Object(r.c)(t,new r.a(this)))}},{key:"tryDurationSelector",value:function(e){try{return this.durationSelector(e)}catch(t){return this.destination.error(t),null}}},{key:"throttlingDone",value:function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=void 0,t&&this.send()}},{key:"notifyNext",value:function(){this.throttlingDone()}},{key:"notifyComplete",value:function(){this.throttlingDone()}}]),n}(r.b);function cr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ar;return function(r){return r.lift(new dr(e,t,n.leading,n.trailing))}}var dr=function(){function e(t,n,r,i){g(this,e),this.duration=t,this.scheduler=n,this.leading=r,this.trailing=i}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new fr(e,this.duration,this.scheduler,this.leading,this.trailing))}}]),e}(),fr=function(e){l(n,e);var t=d(n);function n(e,r,i,o,a){var u;return g(this,n),(u=t.call(this,e)).duration=r,u.scheduler=i,u.leading=o,u.trailing=a,u._hasTrailingValue=!1,u._trailingValue=null,u}return y(n,[{key:"_next",value:function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(hr,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}},{key:"_complete",value:function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}},{key:"clearThrottle",value:function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}]),n}(w.a);function hr(e){e.subscriber.clearThrottle()}var pr=n("NXyV");function vr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.a;return function(t){return Object(pr.a)(function(){return t.pipe(Object(bn.a)(function(t,n){var r=t.current;return{value:n,current:e.now(),last:r}},{current:e.now(),value:void 0,last:void 0}),Object(ze.a)(function(e){var t=e.current,n=e.last,r=e.value;return new gr(r,t-n)}))})}}var gr=function e(t,n){g(this,e),this.value=t,this.interval=n},mr=n("Y6u4");function yr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.a;return function(r){var i=de(e),o=i?+e-n.now():Math.abs(e);return r.lift(new br(o,i,t,n))}}var br=function(){function e(t,n,r,i){g(this,e),this.waitFor=t,this.absoluteTimeout=n,this.withObservable=r,this.scheduler=i}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new _r(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),e}(),_r=function(e){l(n,e);var t=d(n);function n(e,r,i,o,a){var u;return g(this,n),(u=t.call(this,e)).absoluteTimeout=r,u.waitFor=i,u.withObservable=o,u.scheduler=a,u.scheduleTimeout(),u}return y(n,[{key:"scheduleTimeout",value:function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(n.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(e){this.absoluteTimeout||this.scheduleTimeout(),s(v(n.prototype),"_next",this).call(this,e)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(Object(r.c)(t,new r.a(e)))}}]),n}(r.b),wr=n("z6cu");function kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.a;return yr(e,Object(wr.a)(new mr.a),t)}function Cr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.a;return Object(ze.a)(function(t){return new xr(t,e.now())})}var xr=function e(t,n){g(this,e),this.value=t,this.timestamp=n},$r=n("IAdc");function Sr(e){return function(t){return t.lift(new Er(e))}}var Er=function(){function e(t){g(this,e),this.windowBoundaries=t}return y(e,[{key:"call",value:function(e,t){var n=new Or(e),i=t.subscribe(n);return i.closed||n.add(Object(r.c)(this.windowBoundaries,new r.a(n))),i}}]),e}(),Or=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this,e)).window=new Bt.a,e.next(r.window),r}return y(n,[{key:"notifyNext",value:function(){this.openWindow()}},{key:"notifyError",value:function(e){this._error(e)}},{key:"notifyComplete",value:function(){this._complete()}},{key:"_next",value:function(e){this.window.next(e)}},{key:"_error",value:function(e){this.window.error(e),this.destination.error(e)}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete()}},{key:"_unsubscribe",value:function(){this.window=null}},{key:"openWindow",value:function(){var e=this.window;e&&e.complete();var t=this.destination,n=this.window=new Bt.a;t.next(n)}}]),n}(r.b);function Ir(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new Tr(e,t))}}var Tr=function(){function e(t,n){g(this,e),this.windowSize=t,this.startWindowEvery=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new jr(e,this.windowSize,this.startWindowEvery))}}]),e}(),jr=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).destination=e,o.windowSize=r,o.startWindowEvery=i,o.windows=[new Bt.a],o.count=0,e.next(o.windows[0]),o}return y(n,[{key:"_next",value:function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,a=0;a=0&&u%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){var s=new Bt.a;i.push(s),n.next(s)}}},{key:"_error",value:function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)}},{key:"_complete",value:function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()}},{key:"_unsubscribe",value:function(){this.count=0,this.windows=null}}]),n}(w.a);function Vr(e){var t=c.a,n=null,r=Number.POSITIVE_INFINITY;return Object(S.a)(arguments[3])&&(t=arguments[3]),Object(S.a)(arguments[2])?t=arguments[2]:Object(qn.a)(arguments[2])&&(r=Number(arguments[2])),Object(S.a)(arguments[1])?t=arguments[1]:Object(qn.a)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new Ar(e,n,r,t))}}var Ar=function(){function e(t,n,r,i){g(this,e),this.windowTimeSpan=t,this.windowCreationInterval=n,this.maxWindowSize=r,this.scheduler=i}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new Mr(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),e}(),Pr=function(e){l(n,e);var t=d(n);function n(){var e;return g(this,n),(e=t.apply(this,arguments))._numberOfNextedValues=0,e}return y(n,[{key:"next",value:function(e){this._numberOfNextedValues++,s(v(n.prototype),"next",this).call(this,e)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),n}(Bt.a),Mr=function(e){l(n,e);var t=d(n);function n(e,r,i,o,a){var u;g(this,n),(u=t.call(this,e)).destination=e,u.windowTimeSpan=r,u.windowCreationInterval=i,u.maxWindowSize=o,u.scheduler=a,u.windows=[];var s=u.openWindow();if(null!==i&&i>=0){var l={windowTimeSpan:r,windowCreationInterval:i,subscriber:h(u),scheduler:a};u.add(a.schedule(Rr,r,{subscriber:h(u),window:s,context:null})),u.add(a.schedule(Dr,i,l))}else u.add(a.schedule(Nr,r,{subscriber:h(u),window:s,windowTimeSpan:r}));return u}return y(n,[{key:"_next",value:function(e){for(var t=this.windows,n=t.length,r=0;r=this.maxWindowSize&&this.closeWindow(i))}}},{key:"_error",value:function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)}},{key:"_complete",value:function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var e=new Pr;return this.windows.push(e),this.destination.next(e),e}},{key:"closeWindow",value:function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)}}]),n}(w.a);function Nr(e){var t=e.subscriber,n=e.windowTimeSpan,r=e.window;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function Dr(e){var t=e.windowTimeSpan,n=e.subscriber,r=e.scheduler,i=e.windowCreationInterval,o=n.openWindow(),a={action:this,subscription:null};a.subscription=r.schedule(Rr,t,{subscriber:n,window:o,context:a}),this.add(a.subscription),this.schedule(e,i)}function Rr(e){var t=e.subscriber,n=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}function Fr(e,t){return function(n){return n.lift(new Lr(e,t))}}var Lr=function(){function e(t,n){g(this,e),this.openings=t,this.closingSelector=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new Br(e,this.openings,this.closingSelector))}}]),e}(),Br=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).openings=r,o.closingSelector=i,o.contexts=[],o.add(o.openSubscription=Object(M.a)(h(o),r,r)),o}return y(n,[{key:"_next",value:function(e){var t=this.contexts;if(t)for(var n=t.length,r=0;r0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.remove(e),e.unsubscribe());var t=this.window;t&&t.complete();var n,r=this.window=new Bt.a;this.destination.next(r);try{var i=this.closingSelector;n=i()}catch(o){return this.destination.error(o),void this.window.error(o)}this.add(this.closingNotification=Object(M.a)(this,n))}}]),n}(N.a);function Wr(){for(var e=arguments.length,t=new Array(e),n=0;n0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(e){if(0===this.toRespond.length){var t=[e].concat(o(this.values));this.project?this._tryProject(t):this.destination.next(t)}}},{key:"_tryProject",value:function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(N.a),Kr=n("1uah");function Qr(){for(var e=arguments.length,t=new Array(e),n=0;nc;)for(var h,p=s(arguments[c++]),v=d?i(p).concat(d(p)):i(p),g=v.length,m=0;g>m;)h=v[m++],r&&!f.call(p,h)||(n[h]=p[h]);return n}:l},l7GE:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(n("7o/Q").a)},lJxs:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){function e(t,n){g(this,e),this.project=t,this.thisArg=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))}}]),e}(),a=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e)).project=r,o.count=0,o.thisArg=i||h(o),o}return y(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(r.a)},ldVq:function(e,t,n){var r=n("QMMT"),i=n("UWiX")("iterator"),o=n("SBuE");e.exports=n("WEpk").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},mCNh:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n("SpAZ");function i(){for(var e=arguments.length,t=new Array(e),n=0;ndocument.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s.prototype[o[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[a]=e):n=s(),void 0===t?n:i(n,t)}},ofXK:function(e,n,r){"use strict";r.d(n,"a",function(){return E}),r.d(n,"b",function(){return J}),r.d(n,"c",function(){return h}),r.d(n,"d",function(){return Y}),r.d(n,"e",function(){return I}),r.d(n,"f",function(){return X}),r.d(n,"g",function(){return m}),r.d(n,"h",function(){return T}),r.d(n,"i",function(){return $}),r.d(n,"j",function(){return U}),r.d(n,"k",function(){return W}),r.d(n,"l",function(){return G}),r.d(n,"m",function(){return Z}),r.d(n,"n",function(){return O}),r.d(n,"o",function(){return p}),r.d(n,"p",function(){return te}),r.d(n,"q",function(){return c}),r.d(n,"r",function(){return ee}),r.d(n,"s",function(){return u}),r.d(n,"t",function(){return H}),r.d(n,"u",function(){return s});var o=r("fXoL"),a=null;function u(){return a}function s(e){a||(a=e)}var c=function e(){g(this,e)},h=new o.InjectionToken("DocumentToken"),p=function(){var e=function e(){g(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(o["\u0275\u0275defineInjectable"])({factory:v,token:e,providedIn:"platform"}),e}();function v(){return Object(o["\u0275\u0275inject"])(b)}var m=new o.InjectionToken("Location Initialized"),b=function(){var e=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this))._doc=e,r._init(),r}return y(n,[{key:"_init",value:function(){this.location=u().getLocation(),this._history=u().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return u().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){u().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){u().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){_()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){_()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(p);return e.\u0275fac=function(t){return new(t||e)(o["\u0275\u0275inject"](h))},e.\u0275prov=Object(o["\u0275\u0275defineInjectable"])({factory:w,token:e,providedIn:"platform"}),e}();function _(){return!!window.history.pushState}function w(){return new b(Object(o["\u0275\u0275inject"])(h))}function k(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function C(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function x(e){return e&&"?"!==e[0]?"?"+e:e}var $=function(){var e=function e(){g(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(o["\u0275\u0275defineInjectable"])({factory:S,token:e,providedIn:"root"}),e}();function S(e){var t=Object(o["\u0275\u0275inject"])(h).location;return new O(Object(o["\u0275\u0275inject"])(p),t&&t.origin||"")}var E=new o.InjectionToken("appBaseHref"),O=function(){var e=function(e){l(n,e);var t=d(n);function n(e,r){var i;if(g(this,n),(i=t.call(this))._platformLocation=e,null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=r,f(i)}return y(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return k(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+x(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+x(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+x(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}($);return e.\u0275fac=function(t){return new(t||e)(o["\u0275\u0275inject"](p),o["\u0275\u0275inject"](E,8))},e.\u0275prov=o["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e}(),I=function(){var e=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this))._platformLocation=e,i._baseHref="",null!=r&&(i._baseHref=r),i}return y(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=k(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+x(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+x(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}($);return e.\u0275fac=function(t){return new(t||e)(o["\u0275\u0275inject"](p),o["\u0275\u0275inject"](E,8))},e.\u0275prov=o["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e}(),T=function(){var e=function(){function e(t,n){var r=this;g(this,e),this._subject=new o.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=C(V(i)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return y(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+x(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,V(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+x(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+x(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o["\u0275\u0275inject"]($),o["\u0275\u0275inject"](p))},e.normalizeQueryParams=x,e.joinWithSlash=k,e.stripTrailingSlash=C,e.\u0275prov=Object(o["\u0275\u0275defineInjectable"])({factory:j,token:e,providedIn:"root"}),e}();function j(){return new T(Object(o["\u0275\u0275inject"])($),Object(o["\u0275\u0275inject"])(p))}function V(e){return e.replace(/\/index.html$/,"")}var A=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),P=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),M=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function N(e,t){var n=Object(o["\u0275findLocaleData"])(e),r=n[o["\u0275LocaleDataIndex"].NumberSymbols][t];if(void 0===r){if(t===M.CurrencyDecimal)return n[o["\u0275LocaleDataIndex"].NumberSymbols][M.Decimal];if(t===M.CurrencyGroup)return n[o["\u0275LocaleDataIndex"].NumberSymbols][M.Group]}return r}var D=o["\u0275getLocalePluralCase"],R=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function F(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}var L=function e(){g(this,e)},B=function(){var e=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this)).locale=e,r}return y(n,[{key:"getPluralCategory",value:function(e,t){switch(D(t||this.locale)(e)){case P.Zero:return"zero";case P.One:return"one";case P.Two:return"two";case P.Few:return"few";case P.Many:return"many";default:return"other"}}}]),n}(L);return e.\u0275fac=function(t){return new(t||e)(o["\u0275\u0275inject"](o.LOCALE_ID))},e.\u0275prov=o["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e}();function H(e,n){n=encodeURIComponent(n);var r,o=i(e.split(";"));try{for(o.s();!(r=o.n()).done;){var a=r.value,u=a.indexOf("="),s=t(-1==u?[a,""]:[a.slice(0,u),a.slice(u+1)],2),l=s[0],c=s[1];if(l.trim()===n)return decodeURIComponent(c)}}catch(d){o.e(d)}finally{o.f()}return null}var U=function(){var e=function(){function e(t,n,r,i){g(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return y(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(o["\u0275stringify"])(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(o["\u0275isListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o["\u0275\u0275directiveInject"](o.IterableDiffers),o["\u0275\u0275directiveInject"](o.KeyValueDiffers),o["\u0275\u0275directiveInject"](o.ElementRef),o["\u0275\u0275directiveInject"](o.Renderer2))},e.\u0275dir=o["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),q=function(){function e(t,n,r,i){g(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return y(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),W=function(){var e=function(){function e(t,n,r){g(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return y(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new q(null,t._ngForOf,-1,-1),null===i?void 0:i),a=new z(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var u=t._viewContainer.get(r);t._viewContainer.move(u,i);var s=new z(e,u);n.push(s)}});for(var r=0;r6&&void 0!==arguments[6]&&arguments[6],u="",s=!1;if(isFinite(e)){var l=function(e){var t,n,r,i,o,a=Math.abs(e)+"",u=0;for((n=a.indexOf("."))>-1&&(a=a.replace(".","")),(r=a.search(/e/i))>0?(n<0&&(n=r),n+=+a.slice(r+1),a=a.substring(0,r)):n<0&&(n=a.length),r=0;"0"===a.charAt(r);r++);if(r===(o=a.length))t=[0],n=1;else{for(o--;"0"===a.charAt(o);)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=Number(a.charAt(r))}return n>22&&(t=t.splice(0,21),u=n-1,n=1),{digits:t,exponent:u,integerLen:n}}(e);a&&(l=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(l));var c=t.minInt,d=t.minFrac,f=t.maxFrac;if(o){var h=o.match(R);if(null===h)throw new Error(o+" is not a valid digit info");var p=h[1],v=h[3],g=h[5];null!=p&&(c=F(p)),null!=v&&(d=F(v)),null!=g?f=F(g):null!=v&&d>f&&(f=d)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction (".concat(t,") is higher than the maximum (").concat(n,")."));var r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(t,i),n),a=o+e.integerLen,u=r[a];if(a>0){r.splice(Math.max(e.integerLen,a));for(var s=a;s=5)if(a-1<0){for(var c=0;c>a;c--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[a-1]++;for(;i=f?r.pop():d=!1),t>=10?1:0},0);h&&(r.unshift(h),e.integerLen++)}(l,d,f);var m=l.digits,y=l.integerLen,b=l.exponent,_=[];for(s=m.every(function(e){return!e});y0?_=m.splice(y,m.length):(_=m,m=[0]);var w=[];for(m.length>=t.lgSize&&w.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)w.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&w.unshift(m.join("")),u=w.join(N(n,r)),_.length&&(u+=N(n,i)+_.join("")),b&&(u+=N(n,M.Exponential)+"+"+b)}else u=N(n,M.Infinity);return u=e<0&&!s?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}(e,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),i=r[0],o=r[1],a=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],u=a[0],s=a[1]||"";n.posPre=u.substr(0,u.indexOf("#"));for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new a(e,t))}}var a=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;g(this,e),this.scheduler=t,this.delay=n}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.scheduler,this.delay))}}]),e}(),u=function(e){l(n,e);var t=d(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return g(this,n),(i=t.call(this,e)).scheduler=r,i.delay=o,i}return y(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new s(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(i.a.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(i.a.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(i.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(r.a),s=function e(t,n){g(this,e),this.notification=t,this.destination=n}},qCKp:function(e,t,n){"use strict";n.r(t),n.d(t,"Observable",function(){return i.a}),n.d(t,"ConnectableObservable",function(){return a.a}),n.d(t,"GroupedObservable",function(){return u.a}),n.d(t,"observable",function(){return c.a}),n.d(t,"Subject",function(){return f.a}),n.d(t,"BehaviorSubject",function(){return h.a}),n.d(t,"ReplaySubject",function(){return p.a}),n.d(t,"AsyncSubject",function(){return m.a}),n.d(t,"asap",function(){return b.a}),n.d(t,"asapScheduler",function(){return b.b}),n.d(t,"async",function(){return _.a}),n.d(t,"asyncScheduler",function(){return _.b}),n.d(t,"queue",function(){return w.a}),n.d(t,"queueScheduler",function(){return w.b}),n.d(t,"animationFrame",function(){return S}),n.d(t,"animationFrameScheduler",function(){return $}),n.d(t,"VirtualTimeScheduler",function(){return E}),n.d(t,"VirtualAction",function(){return O}),n.d(t,"Scheduler",function(){return I.a}),n.d(t,"Subscription",function(){return T.a}),n.d(t,"Subscriber",function(){return j.a}),n.d(t,"Notification",function(){return V.a}),n.d(t,"NotificationKind",function(){return V.b}),n.d(t,"pipe",function(){return A.a}),n.d(t,"noop",function(){return P.a}),n.d(t,"identity",function(){return M.a}),n.d(t,"isObservable",function(){return N}),n.d(t,"ArgumentOutOfRangeError",function(){return D.a}),n.d(t,"EmptyError",function(){return R.a}),n.d(t,"ObjectUnsubscribedError",function(){return F.a}),n.d(t,"UnsubscriptionError",function(){return L.a}),n.d(t,"TimeoutError",function(){return B.a}),n.d(t,"bindCallback",function(){return z}),n.d(t,"bindNodeCallback",function(){return Q}),n.d(t,"combineLatest",function(){return J.b}),n.d(t,"concat",function(){return ee.a}),n.d(t,"defer",function(){return te.a}),n.d(t,"empty",function(){return ne.b}),n.d(t,"forkJoin",function(){return re.a}),n.d(t,"from",function(){return ie.a}),n.d(t,"fromEvent",function(){return ae}),n.d(t,"fromEventPattern",function(){return se}),n.d(t,"generate",function(){return le}),n.d(t,"iif",function(){return de}),n.d(t,"interval",function(){return he}),n.d(t,"merge",function(){return ve.a}),n.d(t,"never",function(){return me}),n.d(t,"of",function(){return ye.a}),n.d(t,"onErrorResumeNext",function(){return be}),n.d(t,"pairs",function(){return _e}),n.d(t,"partition",function(){return $e}),n.d(t,"race",function(){return Se.a}),n.d(t,"range",function(){return Ee}),n.d(t,"throwError",function(){return Ie.a}),n.d(t,"timer",function(){return Te.a}),n.d(t,"using",function(){return je}),n.d(t,"zip",function(){return Ve.b}),n.d(t,"scheduled",function(){return Ae.a}),n.d(t,"EMPTY",function(){return ne.a}),n.d(t,"NEVER",function(){return ge}),n.d(t,"config",function(){return Pe.a});var r,i=n("HDdC"),a=n("EQ5u"),u=n("OQgR"),c=n("kJWO"),f=n("XNiG"),h=n("2Vo4"),p=n("jtHE"),m=n("NHP+"),b=n("7Hc7"),_=n("D0XW"),w=n("qgXg"),k=n("3N8a"),C=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i}return y(n,[{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?s(v(n.prototype),"requestAsyncId",this).call(this,e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return s(v(n.prototype),"recycleAsyncId",this).call(this,e,t,r);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(k.a),x=n("IjjT"),$=new(function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r0&&void 0!==arguments[0]?arguments[0]:O,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return g(this,n),(e=t.call(this,r,function(){return e.frame})).maxFrames=i,e.frame=0,e.index=-1,e}return y(n,[{key:"flush",value:function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n[0])&&t.delay<=r&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}}}]),n}(x.a)).frameTimeFactor=10,r),O=function(e){l(n,e);var t=d(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.index+=1;return g(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i.index=o,i.active=!0,i.index=e.index=o,i}return y(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return s(v(n.prototype),"schedule",this).call(this,e,t);this.active=!1;var r=new n(this.scheduler,this.work);return this.add(r),r.schedule(e,t)}},{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(n.sortActions),!0}},{key:"recycleAsyncId",value:function(e,t){}},{key:"_execute",value:function(e,t){if(!0===this.active)return s(v(n.prototype),"_execute",this).call(this,e,t)}}],[{key:"sortActions",value:function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1}}]),n}(k.a),I=n("Y/cZ"),T=n("quSY"),j=n("7o/Q"),V=n("WMd4"),A=n("mCNh"),P=n("KqfI"),M=n("SpAZ");function N(e){return!!e&&(e instanceof i.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var D=n("4I5i"),R=n("sVev"),F=n("9ppp"),L=n("pjAE"),B=n("Y6u4"),H=n("lJxs"),U=n("8Qeq"),q=n("DH7j"),W=n("z+Ro");function z(e,t,n){if(t){if(!Object(W.a)(t))return function(){return z(e,n).apply(void 0,arguments).pipe(Object(H.a)(function(e){return Object(q.a)(e)?t.apply(void 0,o(e)):t(e)}))};n=t}return function(){for(var t=arguments.length,r=new Array(t),o=0;o1?Array.prototype.slice.call(arguments):e)},r,n)})}function ue(e,t,n,r,i){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,i),o=function(){return a.removeEventListener(t,n,i)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var u=e;e.on(t,n),o=function(){return u.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var s=e;e.addListener(t,n),o=function(){return s.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,c=e.length;l1&&void 0!==arguments[1]?arguments[1]:ne.a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.a;return Object(te.a)(function(){return e()?t:n})}var fe=n("Y7HM");function he(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.a;return(!Object(fe.a)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=_.a),new i.a(function(n){return n.add(t.schedule(pe,e,{subscriber:n,counter:0,period:e})),n})}function pe(e){var t=e.subscriber,n=e.counter,r=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}var ve=n("VRyK"),ge=new i.a(P.a);function me(){return ge}var ye=n("LRne");function be(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return new i.a(function(r){void 0===t&&(t=e,e=0);var i=0,o=e;if(n)return n.schedule(Oe,0,{index:i,count:t,start:e,subscriber:r});for(;;){if(i++>=t){r.complete();break}if(r.next(o++),r.closed)break}})}function Oe(e){var t=e.start,n=e.index,r=e.count,i=e.subscriber;n>=r?i.complete():(i.next(t),i.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}var Ie=n("z6cu"),Te=n("PqYM");function je(e,t){return new i.a(function(n){var r,i;try{r=e()}catch(a){return void n.error(a)}try{i=t(r)}catch(a){return void n.error(a)}var o=(i?Object(ie.a)(i):ne.a).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}})}var Ve=n("1uah"),Ae=n("7HRe"),Pe=n("2fFW")},qLGE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("R4Bc"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.notEqualTo(this.notEqualTo)},e.prototype.validate=function(e){return this.validator(e)},e.propDecorators={notEqualTo:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","notEqualTo","","formControlName",""],["","notEqualTo","","formControl",""],["","notEqualTo","","ngModel",""]],inputs:{notEqualTo:"notEqualTo"},features:[a.\u0275\u0275ProvidersFeature([u])]}),e}();t.NotEqualToValidator=s},qgXg:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return o});var r=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i}return y(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?s(v(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?s(v(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?s(v(n.prototype),"requestAsyncId",this).call(this,e,t,r):e.flush(this)}}]),n}(n("3N8a").a),i=new(function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return n}(n("IjjT").a))(r),o=i},qmJw:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("wCLq")),r(n("OSZS"))},quSY:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("DH7j"),i=n("XoHu"),o=n("n6bG"),a=n("pjAE"),u=function(){var e,t=function(){function e(t){g(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return y(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,u=this._ctorUnsubscribe,l=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var d=0;d0?i(r(e),9007199254740991):0}},uBVG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.gte=function(e){return function(t){return i.isPresent(e)?i.isPresent(r.Validators.required(t))||+t.value>=+e?null:{gte:!0}:null}}},uOPS:function(e,t){e.exports=!0},uY1Z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("hGZq"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.lte(this.lte)},e.prototype.ngOnChanges=function(e){for(var t in e)"lte"===t&&(this.validator=o.lte(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={lte:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","lte","","formControlName",""],["","lte","","formControl",""],["","lte","","ngModel",""]],inputs:{lte:"lte"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.LessThanEqualValidator=s},vkgz:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("7o/Q"),i=n("KqfI"),o=n("n6bG");function a(e,t,n){return function(r){return r.lift(new u(e,t,n))}}var u=function(){function e(t,n,r){g(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),s=function(e){l(n,e);var t=d(n);function n(e,r,a,u){var s;return g(this,n),(s=t.call(this,e))._tapNext=i.a,s._tapError=i.a,s._tapComplete=i.a,s._tapError=a||i.a,s._tapComplete=u||i.a,Object(o.a)(r)?(s._context=h(s),s._tapNext=r):r&&(s._context=r,s._tapNext=r.next||i.a,s._tapError=r.error||i.a,s._tapComplete=r.complete||i.a),s}return y(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(r.a)},w1tV:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("oB13"),i=n("x+ZX"),o=n("XNiG");function a(){return new o.a}function u(){return function(e){return Object(i.a)()(Object(r.a)(a)(e))}}},"w2d+":function(e,t,n){"use strict";var r=n("hDam"),i=n("UO39"),o=n("SBuE"),a=n("NsO/");e.exports=n("MPFp")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},w6GO:function(e,t,n){var r=n("5vMV"),i=n("FpHa");e.exports=Object.keys||function(e){return r(e,i)}},wCLq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("qmJw"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.gt(this.gt)},e.prototype.ngOnChanges=function(e){for(var t in e)"gt"===t&&(this.validator=o.gt(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={gt:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","gt","","formControlName",""],["","gt","","formControl",""],["","gt","","ngModel",""]],inputs:{gt:"gt"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.GreaterThanValidator=s},wXh8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("r7id"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.rangeLength(this.rangeLength)},e.prototype.ngOnChanges=function(e){for(var t in e)"rangeLength"===t&&(this.validator=o.rangeLength(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={rangeLength:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","rangeLength","","formControlName",""],["","rangeLength","","formControl",""],["","rangeLength","","ngModel",""]],inputs:{rangeLength:"rangeLength"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.RangeLengthValidator=s},wdEZ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("9uV+"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.ngOnInit=function(){this.validator=o.phone(this.phone)},e.prototype.ngOnChanges=function(e){for(var t in e)"phone"===t&&(this.validator=o.phone(e[t].currentValue),this.onChange&&this.onChange())},e.prototype.validate=function(e){return this.validator(e)},e.prototype.registerOnValidatorChange=function(e){this.onChange=e},e.propDecorators={phone:[{type:r.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","phone","","formControlName",""],["","phone","","formControl",""],["","phone","","ngModel",""]],inputs:{phone:"phone"},features:[a.\u0275\u0275ProvidersFeature([u]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.PhoneValidator=s},"x+ZX":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(){return function(e){return e.lift(new o(e))}}var o=function(){function e(t){g(this,e),this.connectable=t}return y(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new a(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),a=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).connectable=r,i}return y(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(r.a)},x9wY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.lt=function(e){return function(t){return i.isPresent(e)?i.isPresent(r.Validators.required(t))||+t.value<+e?null:{lt:!0}:null}}},xbPD:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new o(e))}}var o=function(){function e(t){g(this,e),this.defaultValue=t}return y(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.defaultValue))}}]),e}(),a=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}return y(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(r.a)},y9jv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3Pt+"),i=n("gvyg");t.date=function(e){return i.isPresent(r.Validators.required(e))||i.isDate(e.value)?null:{date:!0}}},yAwA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fXoL"),i=n("3Pt+"),o=n("8f/L"),a=n("fXoL"),u={provide:i.NG_VALIDATORS,useExisting:r.forwardRef(function(){return s}),multi:!0},s=function(){function e(){}return e.prototype.validate=function(e){return o.base64(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","base64","","formControlName",""],["","base64","","formControl",""],["","base64","","ngModel",""]],features:[a.\u0275\u0275ProvidersFeature([u])]}),e}();t.Base64Validator=s},yCtX:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),i=n("ngJS"),o=n("jZKg");function a(e,t){return t?Object(o.a)(e,t):new r.a(Object(i.a)(e))}},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return r})},z6cu:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("HDdC");function i(e,t){return new r.a(t?function(n){return t.schedule(o,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function o(e){var t=e.error;e.subscriber.error(t)}},zUnb:function(n,r,a){"use strict";a.r(r);var u,c,f,p,m=a("fXoL"),b=a("ofXK"),_=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=w||(w=document.querySelector("base"))?w.getAttribute("href"):null;return null==n?null:(t=n,u||(u=document.createElement("a")),u.setAttribute("href",t),"/"===u.pathname.charAt(0)?u.pathname:"/"+u.pathname)}},{key:"resetBaseElement",value:function(){w=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return Object(b.t)(document.cookie,e)}}],[{key:"makeCurrent",value:function(){Object(b.u)(new n)}}]),n}(function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.call(this)}return y(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(b.q)),w=null,k=new m.InjectionToken("TRANSITION_ID"),C=[{provide:m.APP_INITIALIZER,useFactory:function(e,t,n){return function(){n.get(m.ApplicationInitStatus).donePromise.then(function(){var n=Object(b.s)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[k,b.c,m.Injector],multi:!0}],x=function(){function e(){g(this,e)}return y(e,[{key:"addToWindow",value:function(e){m["\u0275global"].getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},m["\u0275global"].getAllAngularTestabilities=function(){return e.getAllTestabilities()},m["\u0275global"].getAllAngularRootElements=function(){return e.getAllRootElements()},m["\u0275global"].frameworkStabilizers||(m["\u0275global"].frameworkStabilizers=[]),m["\u0275global"].frameworkStabilizers.push(function(e){var t=m["\u0275global"].getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Object(b.s)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){Object(m.setTestabilityGetter)(new e)}}]),e}(),$=new m.InjectionToken("EventManagerPlugins"),S=((c=function(){function e(t,n){var r=this;g(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=r}),this._plugins=t.slice().reverse()}return y(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),o+=e+".")}),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&W.hasOwnProperty(t)&&(t=W[t]))}return q[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),U.forEach(function(r){r!=n&&(0,z[r])(e)&&(t+=r+".")}),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded(function(){return t(i)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(E)).\u0275fac=function(e){return new(e||N)(m["\u0275\u0275inject"](b.c))},N.\u0275prov=m["\u0275\u0275defineInjectable"]({token:N,factory:N.\u0275fac}),N),K=[{provide:m.PLATFORM_ID,useValue:b.r},{provide:m.PLATFORM_INITIALIZER,useValue:function(){_.makeCurrent(),x.init()},multi:!0},{provide:b.c,useFactory:function(){return Object(m["\u0275setDocument"])(document),document},deps:[]}],Q=Object(m.createPlatformFactory)(m.platformCore,"browser",K),Z=[[],{provide:m["\u0275INJECTOR_SCOPE"],useValue:"root"},{provide:m.ErrorHandler,useFactory:function(){return new m.ErrorHandler},deps:[]},{provide:$,useClass:H,multi:!0,deps:[b.c,m.NgZone,m.PLATFORM_ID]},{provide:$,useClass:G,multi:!0,deps:[b.c]},[],{provide:R,useClass:R,deps:[S,I,m.APP_ID]},{provide:m.RendererFactory2,useExisting:R},{provide:O,useExisting:I},{provide:I,useClass:I,deps:[b.c]},{provide:m.Testability,useClass:m.Testability,deps:[m.NgZone]},{provide:S,useClass:S,deps:[$,m.NgZone]},[]],X=((D=function(){function e(t){if(g(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return y(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:m.APP_ID,useValue:t.appId},{provide:k,useExisting:m.APP_ID},C]}}}]),e}()).\u0275mod=m["\u0275\u0275defineNgModule"]({type:D}),D.\u0275inj=m["\u0275\u0275defineInjector"]({factory:function(e){return new(e||D)(m["\u0275\u0275inject"](D,12))},providers:Z,imports:[b.b,m.ApplicationModule]}),D);"undefined"!=typeof window&&window;var Y=a("LRne"),J=a("HDdC"),ee=a("bOdf"),te=a("pLZG"),ne=a("lJxs"),re=function e(){g(this,e)},ie=function e(){g(this,e)},oe=function(){function e(t){var n=this;g(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var r=e.slice(0,t),i=r.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var r=t[e],i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(e,i))})}:this.headers=new Map}return y(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,o(n)),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var a=this.headers.get(t);if(!a)return;0===(a=a.filter(function(e){return-1===i.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),ae=function(){function e(){g(this,e)}return y(e,[{key:"encodeKey",value:function(e){return ue(e)}},{key:"encodeValue",value:function(e){return ue(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function ue(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var se=function(){function e(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(g(this,e),this.updates=null,this.cloneFrom=null,this.encoder=r.encoder||new ae,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,n){var r=new Map;return e.length>0&&e.split("&").forEach(function(e){var i=e.indexOf("="),o=t(-1==i?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,i)),n.decodeValue(e.slice(i+1))],2),a=o[0],u=o[1],s=r.get(a)||[];s.push(u),r.set(a,s)}),r}(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(function(e){var t=r.fromObject[e];n.map.set(e,Array.isArray(t)?t:[t])})):this.map=null}return y(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}();function le(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function ce(e){return"undefined"!=typeof Blob&&e instanceof Blob}function de(e){return"undefined"!=typeof FormData&&e instanceof FormData}var fe=function(){function e(t,n,r,i){var o;if(g(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new oe),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var u=n.indexOf("?");this.urlWithParams=n+(-1===u?"?":u0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,u=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,s=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(s=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},s)),t.setParams&&(l=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},l)),new e(n,r,o,{params:l,headers:s,reportProgress:u,responseType:i,withCredentials:a})}}]),e}(),he=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),pe=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";g(this,e),this.headers=t.headers||new oe,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},ve=function(e){l(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return g(this,n),(e=t.call(this,r)).type=he.ResponseHeader,e}return y(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(pe),ge=function(e){l(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return g(this,n),(e=t.call(this,r)).type=he.Response,e.body=void 0!==r.body?r.body:null,e}return y(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(pe),me=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),r.error=e.error||null,r}return n}(pe);function ye(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var be,_e,we,ke,Ce,xe,$e,Se,Ee,Oe=((be=function(){function e(t){g(this,e),this.handler=t}return y(e,[{key:"request",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof fe)n=e;else{var o=void 0;o=i.headers instanceof oe?i.headers:new oe(i.headers);var a=void 0;i.params&&(a=i.params instanceof se?i.params:new se({fromObject:i.params})),n=new fe(e,t,void 0!==i.body?i.body:null,{headers:o,params:a,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}var u=Object(Y.a)(n).pipe(Object(ee.a)(function(e){return r.handler.handle(e)}));if(e instanceof fe||"events"===i.observe)return u;var s=u.pipe(Object(te.a)(function(e){return e instanceof ge}));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return s.pipe(Object(ne.a)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return s.pipe(Object(ne.a)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return s.pipe(Object(ne.a)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return s.pipe(Object(ne.a)(function(e){return e.body}))}case"response":return s;default:throw new Error("Unreachable: unhandled observe type ".concat(i.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new se).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,ye(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,ye(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,ye(n,t))}}]),e}()).\u0275fac=function(e){return new(e||be)(m["\u0275\u0275inject"](re))},be.\u0275prov=m["\u0275\u0275defineInjectable"]({token:be,factory:be.\u0275fac}),be),Ie=function(){function e(t,n){g(this,e),this.next=t,this.interceptor=n}return y(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Te=new m.InjectionToken("HTTP_INTERCEPTORS"),je=((_e=function(){function e(){g(this,e)}return y(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||_e)},_e.\u0275prov=m["\u0275\u0275defineInjectable"]({token:_e,factory:_e.\u0275fac}),_e),Ve=/^\)\]\}',?\n/,Ae=function e(){g(this,e)},Pe=((ke=function(){function e(){g(this,e)}return y(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||ke)},ke.\u0275prov=m["\u0275\u0275defineInjectable"]({token:ke,factory:ke.\u0275fac}),ke),Me=((we=function(){function e(t){g(this,e),this.xhrFactory=t}return y(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new J.a(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=e.serializeBody(),u=null,s=function(){if(null!==u)return u;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new oe(r.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return u=new ve({headers:i,status:t,statusText:n,url:o})},l=function(){var t=s(),i=t.headers,o=t.status,a=t.statusText,u=t.url,l=null;204!==o&&(l=void 0===r.response?r.responseText:r.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof l){var d=l;l=l.replace(Ve,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=d,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new ge({body:l,headers:i,status:o,statusText:a,url:u||void 0})),n.complete()):n.error(new me({error:l,headers:i,status:o,statusText:a,url:u||void 0}))},c=function(e){var t=s().url,i=new me({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});n.error(i)},d=!1,f=function(t){d||(n.next(s()),d=!0);var i={type:he.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},h=function(e){var t={type:he.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",l),r.addEventListener("error",c),e.reportProgress&&(r.addEventListener("progress",f),null!==a&&r.upload&&r.upload.addEventListener("progress",h)),r.send(a),n.next({type:he.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",l),e.reportProgress&&(r.removeEventListener("progress",f),null!==a&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}]),e}()).\u0275fac=function(e){return new(e||we)(m["\u0275\u0275inject"](Ae))},we.\u0275prov=m["\u0275\u0275defineInjectable"]({token:we,factory:we.\u0275fac}),we),Ne=new m.InjectionToken("XSRF_COOKIE_NAME"),De=new m.InjectionToken("XSRF_HEADER_NAME"),Re=function e(){g(this,e)},Fe=((Ee=function(){function e(t,n,r){g(this,e),this.doc=t,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return y(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(b.t)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||Ee)(m["\u0275\u0275inject"](b.c),m["\u0275\u0275inject"](m.PLATFORM_ID),m["\u0275\u0275inject"](Ne))},Ee.\u0275prov=m["\u0275\u0275defineInjectable"]({token:Ee,factory:Ee.\u0275fac}),Ee),Le=((Se=function(){function e(t,n){g(this,e),this.tokenService=t,this.headerName=n}return y(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Se)(m["\u0275\u0275inject"](Re),m["\u0275\u0275inject"](De))},Se.\u0275prov=m["\u0275\u0275defineInjectable"]({token:Se,factory:Se.\u0275fac}),Se),Be=(($e=function(){function e(t,n){g(this,e),this.backend=t,this.injector=n,this.chain=null}return y(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Te,[]);this.chain=t.reduceRight(function(e,t){return new Ie(e,t)},this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||$e)(m["\u0275\u0275inject"](ie),m["\u0275\u0275inject"](m.Injector))},$e.\u0275prov=m["\u0275\u0275defineInjectable"]({token:$e,factory:$e.\u0275fac}),$e),He=((xe=function(){function e(){g(this,e)}return y(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Le,useClass:je}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:Ne,useValue:t.cookieName}:[],t.headerName?{provide:De,useValue:t.headerName}:[]]}}}]),e}()).\u0275mod=m["\u0275\u0275defineNgModule"]({type:xe}),xe.\u0275inj=m["\u0275\u0275defineInjector"]({factory:function(e){return new(e||xe)},providers:[Le,{provide:Te,useExisting:Le,multi:!0},{provide:Re,useClass:Fe},{provide:Ne,useValue:"XSRF-TOKEN"},{provide:De,useValue:"X-XSRF-TOKEN"}]}),xe),Ue=((Ce=function e(){g(this,e)}).\u0275mod=m["\u0275\u0275defineNgModule"]({type:Ce}),Ce.\u0275inj=m["\u0275\u0275defineInjector"]({factory:function(e){return new(e||Ce)},providers:[Oe,{provide:re,useClass:Be},Me,{provide:ie,useExisting:Me},Pe,{provide:Ae,useExisting:Pe}],imports:[[He.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Ce),qe=a("3Pt+"),We=a("Cfvw"),ze=a("2Vo4"),Ge=a("itXk"),Ke=a("sVev"),Qe=a("NXyV"),Ze=a("EY2u"),Xe=a("XNiG"),Ye=a("0EUg"),Je=a("NJ9Y"),et=a("eIep"),tt=a("IzEk"),nt=a("JX91"),rt=a("Kqap"),it=a("JIr8"),ot=a("SxV6"),at=a("7wxJ"),ut=a("5+tZ"),st=a("vkgz"),lt=a("BFxc"),ct=a("nYR2"),dt=a("bHdf"),ft=function e(t,n){g(this,e),this.id=t,this.url=n},ht=function(e){l(n,e);var t=d(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return g(this,n),(i=t.call(this,e,r)).navigationTrigger=o,i.restoredState=a,i}return y(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(ft),pt=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o}return y(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(ft),vt=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e,r)).reason=i,o}return y(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(ft),gt=function(e){l(n,e);var t=d(n);function n(e,r,i){var o;return g(this,n),(o=t.call(this,e,r)).error=i,o}return y(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(ft),mt=function(e){l(n,e);var t=d(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(ft),yt=function(e){l(n,e);var t=d(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(ft),bt=function(e){l(n,e);var t=d(n);function n(e,r,i,o,a){var u;return g(this,n),(u=t.call(this,e,r)).urlAfterRedirects=i,u.state=o,u.shouldActivate=a,u}return y(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(ft),_t=function(e){l(n,e);var t=d(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(ft),wt=function(e){l(n,e);var t=d(n);function n(e,r,i,o){var a;return g(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(ft),kt=function(){function e(t){g(this,e),this.route=t}return y(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),Ct=function(){function e(t){g(this,e),this.route=t}return y(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),xt=function(){function e(t){g(this,e),this.snapshot=t}return y(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),$t=function(){function e(t){g(this,e),this.snapshot=t}return y(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),St=function(){function e(t){g(this,e),this.snapshot=t}return y(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Et=function(){function e(t){g(this,e),this.snapshot=t}return y(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Ot=function(){function e(t,n,r){g(this,e),this.routerEvent=t,this.position=n,this.anchor=r}return y(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),It=function(){function e(t){g(this,e),this.params=t||{}}return y(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function Tt(e){return new It(e)}function jt(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function Vt(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function Dt(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Rt(e){return Object(m["\u0275isObservable"])(e)?e:Object(m["\u0275isPromise"])(e)?Object(We.a)(Promise.resolve(e)):Object(Y.a)(e)}function Ft(e,t,n){return n?function(e,t){return At(e,t)}(e.queryParams,t.queryParams)&&Lt(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return Pt(e[n],t[n])})}(e.queryParams,t.queryParams)&&Bt(e.root,t.root)}function Lt(e,t){if(!zt(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!Lt(e.children[n],t.children[n]))return!1}return!0}function Bt(e,t){return Ht(e,t,t.segments)}function Ht(e,t,n){if(e.segments.length>n.length)return!!zt(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!zt(e.segments,n))return!1;for(var r in t.children){if(!e.children[r])return!1;if(!Bt(e.children[r],t.children[r]))return!1}return!0}var i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!zt(e.segments,i)&&!!e.children.primary&&Ht(e.children.primary,t,o)}var Ut=function(){function e(t,n,r){g(this,e),this.root=t,this.queryParams=n,this.fragment=r}return y(e,[{key:"toString",value:function(){return Zt.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Tt(this.queryParams)),this._queryParamMap}}]),e}(),qt=function(){function e(t,n){var r=this;g(this,e),this.segments=t,this.children=n,this.parent=null,Dt(n,function(e,t){return e.parent=r})}return y(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Xt(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),Wt=function(){function e(t,n){g(this,e),this.path=t,this.parameters=n}return y(e,[{key:"toString",value:function(){return on(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Tt(this.parameters)),this._parameterMap}}]),e}();function zt(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function Gt(e,t){var n=[];return Dt(e.children,function(e,r){"primary"===r&&(n=n.concat(t(e,r)))}),Dt(e.children,function(e,r){"primary"!==r&&(n=n.concat(t(e,r)))}),n}var Kt=function e(){g(this,e)},Qt=function(){function e(){g(this,e)}return y(e,[{key:"parse",value:function(e){var t=new cn(e);return new Ut(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/"+Yt(e.root,!0)).concat((t=e.queryParams,n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(en(e),"=").concat(en(t))}).join("&"):"".concat(en(e),"=").concat(en(n))}),n.length?"?"+n.join("&"):"")).concat("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"");var t,n}}]),e}(),Zt=new Qt;function Xt(e){return e.segments.map(function(e){return on(e)}).join("/")}function Yt(e,t){if(!e.hasChildren())return Xt(e);if(t){var n=e.children.primary?Yt(e.children.primary,!1):"",r=[];return Dt(e.children,function(e,t){"primary"!==t&&r.push("".concat(t,":").concat(Yt(e,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var i=Gt(e,function(t,n){return"primary"===n?[Yt(e.children.primary,!1)]:["".concat(n,":").concat(Yt(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(Xt(e),"/").concat(i[0]):"".concat(Xt(e),"/(").concat(i.join("//"),")")}function Jt(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function en(e){return Jt(e).replace(/%3B/gi,";")}function tn(e){return Jt(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function nn(e){return decodeURIComponent(e)}function rn(e){return nn(e.replace(/\+/g,"%20"))}function on(e){return"".concat(tn(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(tn(e),"=").concat(tn(t[e]))}).join("")));var t}var an=/^[^\/()?;=#]+/;function un(e){var t=e.match(an);return t?t[0]:""}var sn=/^[^=?&#]+/,ln=/^[^?&#]+/,cn=function(){function e(t){g(this,e),this.url=t,this.remaining=t}return y(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new qt(e,t)),n}},{key:"parseSegment",value:function(){var e=un(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Wt(nn(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=un(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=un(this.remaining);r&&(n=r,this.capture(n))}e[nn(t)]=nn(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(sn);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(ln);return t?t[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=rn(t),o=rn(n);if(e.hasOwnProperty(i)){var a=e[i];Array.isArray(a)||(a=[a],e[i]=a),a.push(o)}else e[i]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=un(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i="primary");var o=this.parseChildren();t[i]=1===Object.keys(o).length?o.primary:new qt([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),dn=function(){function e(t){g(this,e),this._root=t}return y(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=fn(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=fn(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=hn(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return hn(e,this._root).map(function(e){return e.value})}},{key:"root",get:function(){return this._root.value}}]),e}();function fn(e,t){if(e===t.value)return t;var n,r=i(t.children);try{for(r.s();!(n=r.n()).done;){var o=fn(e,n.value);if(o)return o}}catch(a){r.e(a)}finally{r.f()}return null}function hn(e,t){if(e===t.value)return[t];var n,r=i(t.children);try{for(r.s();!(n=r.n()).done;){var o=hn(e,n.value);if(o.length)return o.unshift(t),o}}catch(a){r.e(a)}finally{r.f()}return[]}var pn=function(){function e(t,n){g(this,e),this.value=t,this.children=n}return y(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function vn(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var gn=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,e)).snapshot=r,kn(h(i),e),i}return y(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(dn);function mn(e,t){var n=function(e,t){var n=new _n([],{},{},"",{},"primary",t,null,e.root,-1,{});return new wn("",new pn(n,[]))}(e,t),r=new ze.a([new Wt("",{})]),i=new ze.a({}),o=new ze.a({}),a=new ze.a({}),u=new ze.a(""),s=new yn(r,i,a,u,o,"primary",t,n.root);return s.snapshot=n.root,new gn(new pn(s,[]),n)}var yn=function(){function e(t,n,r,i,o,a,u,s){g(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=u,this._futureSnapshot=s}return y(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(ne.a)(function(e){return Tt(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(ne.a)(function(e){return Tt(e)}))),this._queryParamMap}}]),e}();function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var _n=function(){function e(t,n,r,i,o,a,u,s,l,c,d){g(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=u,this.routeConfig=s,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}return y(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Tt(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Tt(this.queryParams)),this._queryParamMap}}]),e}(),wn=function(e){l(n,e);var t=d(n);function n(e,r){var i;return g(this,n),(i=t.call(this,r)).url=e,kn(h(i),r),i}return y(n,[{key:"toString",value:function(){return Cn(this._root)}}]),n}(dn);function kn(e,t){t.value._routerState=e,t.children.forEach(function(t){return kn(e,t)})}function Cn(e){var t=e.children.length>0?" { ".concat(e.children.map(Cn).join(", ")," } "):"";return"".concat(e.value).concat(t)}function xn(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,At(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),At(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&On(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find(In);if(i&&i!==Nt(r))throw new Error("{outlets:{}} has to be the last command")}return y(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),An=function e(t,n,r){g(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r};function Pn(e,t,n){if(e||(e=new qt([],{})),0===e.segments.length&&e.hasChildren())return Mn(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=e.segments[i],u=n[r];if(In(u))break;var s=""+u,l=r0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!Fn(s,l,a))return o;r+=2}else{if(!Fn(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0?new qt([],{primary:e}):e;return new Ut(r,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(ne.a)(function(e){return new qt([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Object(Y.a)({});var o=[],a=[],u={};return Dt(n,function(n,i){var s,l,c=(s=i,l=n,r.expandSegmentGroup(e,t,l,s)).pipe(Object(ne.a)(function(e){return u[i]=e}));"primary"===i?o.push(c):a.push(c)}),Y.a.apply(null,o.concat(a)).pipe(Object(Ye.a)(),Object(Je.a)(),Object(ne.a)(function(){return u}))}(n.children)}},{key:"expandSegment",value:function(e,n,r,i,o,a){var u=this,s=function(e){return e.reduce(function(e,t){var n=Jn(t);return e.has(n)?e.get(n).push(t):e.set(n,[t]),e},new Map)}(r);s.has(o)||s.set(o,[]);var l=Array.from(s.entries()).map(function(r){var s=t(r,2),l=s[0],c=function(t){return Object(We.a)(t).pipe(Object(ee.a)(function(r){return u.expandSegmentAgainstRoute(e,n,t,r,i,o,a).pipe(Object(it.a)(function(e){if(e instanceof er)return Object(Y.a)(null);throw e}))}),Object(ot.a)(function(e){return null!==e}),Object(it.a)(function(e){if(e instanceof Ke.a||"EmptyError"===e.name){if(u.noLeftoversInUrl(n,i,o))return Object(Y.a)(new qt([],{}));throw new er(n)}throw e}))}(s[1]);return l===o?c:c.pipe(Object(ne.a)(function(){return null}),Object(it.a)(function(){return Object(Y.a)(null)}))});return Object(We.a)(l).pipe(Object(at.a)(),Object(ot.a)(),Object(ne.a)(function(e){return e.find(function(e){return null!==e})}))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,i,o,a){return Jn(r)!==o&&""!==r.path?nr(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):nr(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?rr(o):this.lineralizeSegments(n,o).pipe(Object(ut.b)(function(n){var o=new qt(n,{});return i.expandSegment(e,o,t,n,r,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){var a=this,u=ar(t,r,i),s=u.matched,l=u.consumedSegments,c=u.lastChild,d=u.positionalParamSegments;if(!s)return nr(t);var f=this.applyRedirectCommands(l,r.redirectTo,d);return r.redirectTo.startsWith("/")?rr(f):this.lineralizeSegments(r,f).pipe(Object(ut.b)(function(r){return a.expandSegment(e,t,n,r.concat(i.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(ne.a)(function(e){return n._loadedConfig=e,new qt(r,{})})):Object(Y.a)(new qt(r,{}));var a=ar(t,n,r),u=a.matched,s=a.consumedSegments,l=a.lastChild;if(!u)return nr(t);var c=r.slice(l);return this.getChildConfig(e,n,r).pipe(Object(ut.b)(function(e){var n=e.module,r=e.routes,a=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some(function(n){return sr(e,t,n)&&"primary"!==Jn(n)})}(e,n,r)?{segmentGroup:ur(new qt(t,function(e,t){var n={};n.primary=t;var r,o=i(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;""===a.path&&"primary"!==Jn(a)&&(n[Jn(a)]=new qt([],{}))}}catch(u){o.e(u)}finally{o.f()}return n}(r,new qt(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(function(n){return sr(e,t,n)})}(e,n,r)?{segmentGroup:ur(new qt(e.segments,function(e,t,n,r){var o,a={},u=i(n);try{for(u.s();!(o=u.n()).done;){var s=o.value;sr(e,t,s)&&!r[Jn(s)]&&(a[Jn(s)]=new qt([],{}))}}catch(l){u.e(l)}finally{u.f()}return Object.assign(Object.assign({},r),a)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,s,c,r),u=a.segmentGroup,l=a.slicedSegments;return 0===l.length&&u.hasChildren()?o.expandChildren(n,r,u).pipe(Object(ne.a)(function(e){return new qt(s,e)})):0===r.length&&0===l.length?Object(Y.a)(new qt(s,{})):o.expandSegment(n,u,r,l,"primary",!0).pipe(Object(ne.a)(function(e){return new qt(s.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?Object(Y.a)(new Hn(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(Y.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(ut.b)(function(n){return n?r.configLoader.load(e.injector,t).pipe(Object(ne.a)(function(e){return t._loadedConfig=e,e})):function(e){return new J.a(function(t){return t.error(jt("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):Object(Y.a)(new Hn([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var r=this,i=t.canLoad;if(!i||0===i.length)return Object(Y.a)(!0);var o=i.map(function(r){var i,o=e.get(r);if(function(e){return e&&Un(e.canLoad)}(o))i=o.canLoad(t,n);else{if(!Un(o))throw new Error("Invalid CanLoad guard");i=o(t,n)}return Rt(i)});return Object(Y.a)(o).pipe(zn(),Object(st.a)(function(e){if(qn(e)){var t=jt('Redirecting to "'.concat(r.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),Object(ne.a)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(Y.a)(n);if(r.numberOfChildren>1||!r.children.primary)return ir(e.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new Ut(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Dt(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),a={};return Dt(t.children,function(t,o){a[o]=i.createSegmentGroup(e,t,n,r)}),new qt(o,a)}},{key:"createSegments",value:function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var n,r=0,o=i(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.path===e.path)return t.splice(r),a;r++}}catch(u){o.e(u)}finally{o.f()}return e}}]),e}();function ar(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||Vt)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function ur(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new qt(e.segments.concat(t.segments),t.children)}return e}function sr(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}var lr=function e(t){g(this,e),this.path=t,this.route=this.path[this.path.length-1]},cr=function e(t,n){g(this,e),this.component=t,this.route=n};function dr(e,t,n){var r=e._root;return hr(r,t?t._root:null,n,[r.value])}function fr(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function hr(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=vn(t);return e.children.forEach(function(e){!function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,u=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var s=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!zt(e.url,t.url);case"pathParamsOrQueryParamsChange":return!zt(e.url,t.url)||!At(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$n(e,t)||!At(e.queryParams,t.queryParams);case"paramsChange":default:return!$n(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new lr(r)):(o.data=a.data,o._resolvedData=a._resolvedData),hr(e,t,o.component?u?u.children:null:n,r,i),s&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new cr(u.outlet.component,a))}else a&&pr(t,u,i),i.canActivateChecks.push(new lr(r)),hr(e,null,o.component?u?u.children:null:n,r,i)}(e,o[e.value.outlet],n,r.concat([e.value]),i),delete o[e.value.outlet]}),Dt(o,function(e,t){return pr(e,n.getContext(t),i)}),i}function pr(e,t,n){var r=vn(e),i=e.value;Dt(r,function(e,r){pr(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new cr(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function vr(e,t){return null!==e&&t&&t(new St(e)),Object(Y.a)(!0)}function gr(e,t){return null!==e&&t&&t(new xt(e)),Object(Y.a)(!0)}function mr(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Object(Y.a)(!0);var i=r.map(function(r){return Object(Qe.a)(function(){var i,o=fr(r,t,n);if(function(e){return e&&Un(e.canActivate)}(o))i=Rt(o.canActivate(t,e));else{if(!Un(o))throw new Error("Invalid CanActivate guard");i=Rt(o(t,e))}return i.pipe(Object(ot.a)())})});return Object(Y.a)(i).pipe(zn())}function yr(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return Object(Qe.a)(function(){var i=t.guards.map(function(i){var o,a=fr(i,t.node,n);if(function(e){return e&&Un(e.canActivateChild)}(a))o=Rt(a.canActivateChild(r,e));else{if(!Un(a))throw new Error("Invalid CanActivateChild guard");o=Rt(a(r,e))}return o.pipe(Object(ot.a)())});return Object(Y.a)(i).pipe(zn())})});return Object(Y.a)(i).pipe(zn())}var br=function e(){g(this,e)},_r=function(){function e(t,n,r,i,o,a){g(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return y(e,[{key:"recognize",value:function(){try{var e=Cr(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new _n([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new pn(n,t),i=new wn(this.url,r);return this.inheritParamsAndData(i._root),Object(Y.a)(i)}catch(o){return new J.a(function(e){return e.error(o)})}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=bn(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){var n,r=this,i=Gt(t,function(t,n){return r.processSegmentGroup(e,t,n)});return n={},i.forEach(function(e){var t=n[e.value.outlet];if(t){var r=t.url.map(function(e){return e.toString()}).join("/"),i=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(r,"' and '").concat(i,"'."))}n[e.value.outlet]=e.value}),i.sort(function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)}),i}},{key:"processSegment",value:function(e,t,n,r){var o,a=i(e);try{for(a.s();!(o=a.n()).done;){var u=o.value;try{return this.processSegmentAgainstRoute(u,t,n,r)}catch(s){if(!(s instanceof br))throw s}}}catch(l){a.e(l)}finally{a.f()}if(this.noLeftoversInUrl(t,n,r))return[];throw new br}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,r){if(e.redirectTo)throw new br;if((e.outlet||"primary")!==r)throw new br;var i,o=[],a=[];if("**"===e.path){var u=n.length>0?Nt(n).parameters:{};i=new _n(n,u,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$r(e),r,e.component,e,wr(t),kr(t)+n.length,Sr(e))}else{var s=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new br;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||Vt)(n,e,t);if(!r)throw new br;var i={};Dt(r.posParams,function(e,t){i[t]=e.path});var o=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(t,e,n);o=s.consumedSegments,a=n.slice(s.lastChild),i=new _n(o,s.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$r(e),r,e.component,e,wr(t),kr(t)+o.length,Sr(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=Cr(t,o,a,l,this.relativeLinkResolution),d=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&d.hasChildren()){var h=this.processChildren(l,d);return[new pn(i,h)]}if(0===l.length&&0===f.length)return[new pn(i,[])];var p=this.processSegment(l,d,f,"primary");return[new pn(i,p)]}}]),e}();function wr(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function kr(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Cr(e,t,n,r,o){if(n.length>0&&function(e,t,n){return n.some(function(n){return xr(e,t,n)&&"primary"!==Jn(n)})}(e,n,r)){var a=new qt(t,function(e,t,n,r){var o={};o.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var a,u=i(n);try{for(u.s();!(a=u.n()).done;){var s=a.value;if(""===s.path&&"primary"!==Jn(s)){var l=new qt([],{});l._sourceSegment=e,l._segmentIndexShift=t.length,o[Jn(s)]=l}}}catch(c){u.e(c)}finally{u.f()}return o}(e,t,r,new qt(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return xr(e,t,n)})}(e,n,r)){var u=new qt(e.segments,function(e,t,n,r,o,a){var u,s={},l=i(r);try{for(l.s();!(u=l.n()).done;){var c=u.value;if(xr(e,n,c)&&!o[Jn(c)]){var d=new qt([],{});d._sourceSegment=e,d._segmentIndexShift="legacy"===a?e.segments.length:t.length,s[Jn(c)]=d}}}catch(f){l.e(f)}finally{l.f()}return Object.assign(Object.assign({},o),s)}(e,t,n,r,e.children,o));return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}var s=new qt(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function xr(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function $r(e){return e.data||{}}function Sr(e){return e.resolve||{}}function Er(e){return function(t){return t.pipe(Object(et.a)(function(t){var n=e(t);return n?Object(We.a)(n).pipe(Object(ne.a)(function(){return t})):Object(We.a)([t])}))}}var Or=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return n}(function(){function e(){g(this,e)}return y(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),Ir=new m.InjectionToken("ROUTES"),Tr=function(){function e(t,n,r,i){g(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return y(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(ne.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new Hn(Mt(i.injector.get(Ir)).map(Yn),i)}))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Object(We.a)(this.loader.load(e)):Rt(e()).pipe(Object(ut.b)(function(e){return e instanceof m.NgModuleFactory?Object(Y.a)(e):Object(We.a)(t.compiler.compileModuleAsync(e))}))}}]),e}(),jr=function e(){g(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new Vr,this.attachRef=null},Vr=function(){function e(){g(this,e),this.contexts=new Map}return y(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new jr,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),Ar=function(){function e(){g(this,e)}return y(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Pr(e){throw e}function Mr(e,t,n){return t.parse("/")}function Nr(e,t){return Object(Y.a)(null)}var Dr,Rr,Fr=((Rr=function(){function e(t,n,r,i,o,a,u,s){var l=this;g(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Xe.a,this.errorHandler=Pr,this.malformedUriErrorHandler=Mr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Nr,afterPreactivation:Nr},this.urlHandlingStrategy=new Ar,this.routeReuseStrategy=new Or,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(m.NgModuleRef),this.console=o.get(m["\u0275Console"]);var c=o.get(m.NgZone);this.isNgZoneEnabled=c instanceof m.NgZone,this.resetConfig(s),this.currentUrlTree=new Ut(new qt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Tr(a,u,function(e){return l.triggerEvent(new kt(e))},function(e){return l.triggerEvent(new Ct(e))}),this.routerState=mn(this.currentUrlTree,this.rootComponentType),this.transitions=new ze.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return y(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Object(te.a)(function(e){return 0!==e.id}),Object(ne.a)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Object(et.a)(function(e){var r,i,o,a=!1,u=!1;return Object(Y.a)(e).pipe(Object(st.a)(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(et.a)(function(e){var r,i,o,a,u=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||u)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(Y.a)(e).pipe(Object(et.a)(function(e){var r=t.transitions.getValue();return n.next(new ht(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?Ze.a:[e]}),Object(et.a)(function(e){return Promise.resolve(e)}),(r=t.ngModule.injector,i=t.configLoader,o=t.urlSerializer,a=t.config,function(e){return e.pipe(Object(et.a)(function(e){return function(e,t,n,r,i){return new or(e,t,n,r,i).apply()}(r,i,o,e.extractedUrl,a).pipe(Object(ne.a)(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))}))}),Object(st.a)(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,r,i,o){return function(r){return r.pipe(Object(ut.b)(function(r){return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new _r(e,t,n,r,i,o).recognize()}(e,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,t.serializeUrl(a)),i,o).pipe(Object(ne.a)(function(e){return Object.assign(Object.assign({},r),{targetSnapshot:e})}));var a}))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Object(st.a)(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),Object(st.a)(function(e){var r=new mt(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(u&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var s=e.id,l=e.extractedUrl,c=e.source,d=e.restoredState,f=e.extras,h=new ht(s,t.serializeUrl(l),c,d);n.next(h);var p=mn(l,t.rootComponentType).snapshot;return Object(Y.a)(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:l,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Ze.a}),Er(function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,u=a.skipLocationChange,s=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!u,replaceUrl:!!s})}),Object(st.a)(function(e){var n=new yt(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(ne.a)(function(e){return Object.assign(Object.assign({},e),{guards:dr(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return function(n){return n.pipe(Object(ut.b)(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,u=o.canDeactivateChecks;return 0===u.length&&0===a.length?Object(Y.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return Object(We.a)(e).pipe(Object(ut.b)(function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(Y.a)(!0);var a=o.map(function(o){var a,u=fr(o,t,i);if(function(e){return e&&Un(e.canDeactivate)}(u))a=Rt(u.canDeactivate(e,t,n,r));else{if(!Un(u))throw new Error("Invalid CanDeactivate guard");a=Rt(u(e,t,n,r))}return a.pipe(Object(ot.a)())});return Object(Y.a)(a).pipe(zn())}(e.component,e.route,n,t,r)}),Object(ot.a)(function(e){return!0!==e},!0))}(u,r,i,e).pipe(Object(ut.b)(function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return Object(We.a)(t).pipe(Object(ee.a)(function(t){return Object(We.a)([gr(t.route.parent,r),vr(t.route,r),yr(e,t.path,n),mr(e,t.route,n)]).pipe(Object(Ye.a)(),Object(ot.a)(function(e){return!0!==e},!0))}),Object(ot.a)(function(e){return!0!==e},!0))}(r,a,e,t):Object(Y.a)(n)}),Object(ne.a)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))}))}}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Object(st.a)(function(e){if(qn(e.guardsResult)){var n=jt('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}}),Object(st.a)(function(e){var n=new bt(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)}),Object(te.a)(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new vt(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0}),Er(function(e){if(e.guards.canActivateChecks.length)return Object(Y.a)(e).pipe(Object(st.a)(function(e){var n=new _t(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(et.a)(function(e){var r,i,o=!1;return Object(Y.a)(e).pipe((r=t.paramsInheritanceStrategy,i=t.ngModule.injector,function(e){return e.pipe(Object(ut.b)(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return Object(Y.a)(e);var o=0;return Object(We.a)(n).pipe(Object(ee.a)(function(e){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return Object(Y.a)({});var o={};return Object(We.a)(i).pipe(Object(ut.b)(function(i){return function(e,t,n,r){var i=fr(e,t,r);return Rt(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe(Object(st.a)(function(e){o[i]=e}))}),Object(lt.a)(1),Object(ut.b)(function(){return Object.keys(o).length===i.length?Object(Y.a)(o):Ze.a}))}(e._resolve,e,t,r).pipe(Object(ne.a)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),bn(e,n).resolve),null}))}(e.route,t,r,i)}),Object(st.a)(function(){return o++}),Object(lt.a)(1),Object(ut.b)(function(t){return o===n.length?Object(Y.a)(e):Ze.a}))}))}),Object(st.a)({next:function(){return o=!0},complete:function(){if(!o){var r=new vt(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(r),e.resolve(!1)}}}))}),Object(st.a)(function(e){var n=new wt(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),Er(function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,u=a.skipLocationChange,s=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!u,replaceUrl:!!s})}),Object(ne.a)(function(e){var n=function(e,t,n){var r=Sn(e,t._root,n?n._root:void 0);return new gn(r,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Object(st.a)(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(r=t.rootContexts,i=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},Object(ne.a)(function(e){return new Ln(i,e.targetRouterState,e.currentRouterState,o).activate(r),e})),Object(st.a)({next:function(){a=!0},complete:function(){a=!0}}),Object(ct.a)(function(){if(!a&&!u){t.resetUrlToCurrentUrlTree();var r=new vt(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(r),e.resolve(!1)}t.currentNavigation=null}),Object(it.a)(function(r){if(u=!0,(s=r)&&s.ngNavigationCancelingError){var i=qn(r.url);i||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new vt(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(o),i?setTimeout(function(){var n=t.urlHandlingStrategy.merge(r.url,t.rawUrlTree);return t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new gt(e.id,t.serializeUrl(e.extractedUrl),r);n.next(a);try{e.resolve(t.errorHandler(r))}catch(l){e.reject(l)}}var s;return Ze.a}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,r=n.state,i=n.urlTree,o={replaceUrl:!0};if(r){var a=Object.assign({},r);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(i,t,r,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){Qn(e),this.config=e.map(Yn),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,r=t.queryParams,i=t.fragment,a=t.queryParamsHandling,u=t.preserveFragment,s=n||this.routerState.root,l=u?this.currentUrlTree.fragment:i,c=null;switch(a){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,i){if(0===n.length)return Tn(t.root,t.root,t,r,i);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Vn(!0,0,e);var t=0,n=!1,r=e.reduce(function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var a={};return Dt(r.outlets,function(e,t){a[t]="string"==typeof e?e.split("/"):e}),[].concat(o(e),[{outlets:a}])}if(r.segmentPath)return[].concat(o(e),[r.segmentPath])}return"string"!=typeof r?[].concat(o(e),[r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[].concat(o(e),[r])},[]);return new Vn(n,t,r)}(n);if(a.toRoot())return Tn(t.root,new qt([],{}),t,r,i);var u=function(e,t,n){if(e.isAbsolute)return new An(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new An(r,r===t.root,0)}var i=On(e.commands[0])?0:1;return function(e,t,n){for(var r=e,i=t,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new An(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(a,t,e),s=u.processChildren?Mn(u.segmentGroup,u.index,a.commands):Pn(u.segmentGroup,u.index,a.commands);return Tn(u.segmentGroup,s,t,r,i)}(s,this.currentUrlTree,e,c,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=qn(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};g(this,e),this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return y(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof ht?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof pt&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Ot&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new Ot(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||Ur)(m["\u0275\u0275inject"](Fr),m["\u0275\u0275inject"](b.p),m["\u0275\u0275inject"](void 0))},Ur.\u0275prov=m["\u0275\u0275defineInjectable"]({token:Ur,factory:Ur.\u0275fac}),Ur),Xr=new m.InjectionToken("ROUTER_CONFIGURATION"),Yr=new m.InjectionToken("ROUTER_FORROOT_GUARD"),Jr=[b.h,{provide:Kt,useClass:Qt},{provide:Fr,useFactory:function(e,t,n,r,i,o,a){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},s=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new Fr(null,e,t,n,r,i,o,Mt(a));if(s&&(c.urlHandlingStrategy=s),l&&(c.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(u,c),u.enableTracing){var d=Object(b.s)();c.events.subscribe(function(e){d.logGroup("Router Event: "+e.constructor.name),d.log(e.toString()),d.log(e),d.logGroupEnd()})}return c},deps:[Kt,Vr,b.h,m.Injector,m.NgModuleFactoryLoader,m.Compiler,Ir,Xr,[function(){return function e(){g(this,e)}}(),new m.Optional],[function(){return function e(){g(this,e)}}(),new m.Optional]]},Vr,{provide:yn,useFactory:function(e){return e.routerState.root},deps:[Fr]},{provide:m.NgModuleFactoryLoader,useClass:m.SystemJsNgModuleLoader},Qr,Kr,function(){function e(){g(this,e)}return y(e,[{key:"preload",value:function(e,t){return t().pipe(Object(it.a)(function(){return Object(Y.a)(null)}))}}]),e}(),{provide:Xr,useValue:{enableTracing:!1}}];function ei(){return new m.NgProbeToken("Router",Fr)}var ti,ni=((ti=function(){function e(t,n){g(this,e)}return y(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Jr,ai(t),{provide:Yr,useFactory:oi,deps:[[Fr,new m.Optional,new m.SkipSelf]]},{provide:Xr,useValue:n||{}},{provide:b.i,useFactory:ii,deps:[b.o,[new m.Inject(b.a),new m.Optional],Xr]},{provide:Zr,useFactory:ri,deps:[Fr,b.p,Xr]},{provide:Gr,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Kr},{provide:m.NgProbeToken,multi:!0,useFactory:ei},[si,{provide:m.APP_INITIALIZER,multi:!0,useFactory:li,deps:[si]},{provide:pi,useFactory:ci,deps:[si]},{provide:m.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:pi}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[ai(t)]}}}]),e}()).\u0275mod=m["\u0275\u0275defineNgModule"]({type:ti}),ti.\u0275inj=m["\u0275\u0275defineInjector"]({factory:function(e){return new(e||ti)(m["\u0275\u0275inject"](Yr,8),m["\u0275\u0275inject"](Fr,8))}}),ti);function ri(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Zr(e,t,n)}function ii(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new b.e(e,t):new b.n(e,t)}function oi(e){return"guarded"}function ai(e){return[{provide:m.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:e},{provide:Ir,multi:!0,useValue:e}]}var ui,si=((ui=function(){function e(t){g(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Xe.a}return y(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(b.g,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),r=e.injector.get(Fr),i=e.injector.get(Xr);return"disabled"===i.initialNavigation?(r.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(r.hooks.afterPreactivation=function(){return e.initNavigation?Object(Y.a)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Xr),n=this.injector.get(Qr),r=this.injector.get(Zr),i=this.injector.get(Fr),o=this.injector.get(m.ApplicationRef);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||ui)(m["\u0275\u0275inject"](m.Injector))},ui.\u0275prov=m["\u0275\u0275defineInjectable"]({token:ui,factory:ui.\u0275fac}),ui);function li(e){return e.appInitializer.bind(e)}function ci(e){return e.bootstrapListener.bind(e)}var di,fi,hi,pi=new m.InjectionToken("Router Initializer"),vi=a("jn5B"),gi=a("VRyK"),mi=a("GyhO"),yi=a("w1tV"),bi=a("IAdc"),_i=function e(){g(this,e)},wi=((di=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"getTranslation",value:function(e){return Object(Y.a)({})}}]),n}(_i)).\u0275fac=function(e){return ki(e||di)},di.\u0275prov=m["\u0275\u0275defineInjectable"]({token:di,factory:di.\u0275fac}),di),ki=m["\u0275\u0275getInheritedFactory"](wi),Ci=function e(){g(this,e)},xi=((fi=function(){function e(){g(this,e)}return y(e,[{key:"handle",value:function(e){return e.key}}]),e}()).\u0275fac=function(e){return new(e||fi)},fi.\u0275prov=m["\u0275\u0275defineInjectable"]({token:fi,factory:fi.\u0275fac}),fi),$i=function e(){g(this,e)},Si=((hi=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"compile",value:function(e,t){return e}},{key:"compileTranslations",value:function(e,t){return e}}]),n}($i)).\u0275fac=function(e){return Ei(e||hi)},hi.\u0275prov=m["\u0275\u0275defineInjectable"]({token:hi,factory:hi.\u0275fac}),hi),Ei=m["\u0275\u0275getInheritedFactory"](Si);function Oi(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,r,i,o=typeof e;if(o==typeof t&&"object"==o){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(r in i=Object.create(null),e){if(!Oi(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&void 0!==t[r])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(r=0;r5&&void 0!==arguments[5])||arguments[5],u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];g(this,e),this.store=t,this.currentLoader=n,this.compiler=r,this.parser=i,this.missingTranslationHandler=o,this.useDefaultLang=a,this.isolate=u,this.pending=!1,this._onTranslationChange=new m.EventEmitter,this._onLangChange=new m.EventEmitter,this._onDefaultLangChange=new m.EventEmitter,this._langs=[],this._translations={},this._translationRequests={}}return y(e,[{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var n=this.retrieveTranslations(e);void 0!==n?(this.defaultLang||(this.defaultLang=e),n.pipe(Object(tt.a)(1)).subscribe(function(n){t.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return Object(Y.a)(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe(Object(tt.a)(1)).subscribe(function(n){t.changeLang(e)}),n):(this.changeLang(e),Object(Y.a)(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return void 0===this.translations[e]&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var n=this.currentLoader.getTranslation(e).pipe(Object(yi.a)());return this.loadingTranslations=n.pipe(Object(tt.a)(1),Object(ne.a)(function(n){return t.compiler.compileTranslations(n,e)}),Object(yi.a)()),this.loadingTranslations.subscribe(function(n){t.translations[e]=n,t.updateLangs(),t.pending=!1},function(e){t.pending=!1}),n}},{key:"setTranslation",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=this.compiler.compileTranslations(t,e),this.translations[e]=n&&this.translations[e]?ji(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach(function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,n){var r;if(t instanceof Array){var o,a={},u=!1,s=i(t);try{for(s.s();!(o=s.n()).done;){var l=o.value;a[l]=this.getParsedResult(e,l,n),"function"==typeof a[l].subscribe&&(u=!0)}}catch(g){s.e(g)}finally{s.f()}if(u){var c,d,f=i(t);try{for(f.s();!(d=f.n()).done;){var h=d.value,p="function"==typeof a[h].subscribe?a[h]:Object(Y.a)(a[h]);c=void 0===c?p:Object(gi.a)(c,p)}}catch(g){f.e(g)}finally{f.f()}return c.pipe(Object(bi.a)(),Object(ne.a)(function(e){var n={};return e.forEach(function(e,r){n[t[r]]=e}),n}))}return a}if(e&&(r=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===r&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===r){var v={key:t,translateService:this};void 0!==n&&(v.interpolateParams=n),r=this.missingTranslationHandler.handle(v)}return void 0!==r?r:t}},{key:"get",value:function(e,t){var n=this;if(!Ii(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return J.a.create(function(r){var i=function(e){r.next(e),r.complete()},o=function(e){r.error(e)};n.loadingTranslations.subscribe(function(r){"function"==typeof(r=n.getParsedResult(r,e,t)).subscribe?r.subscribe(i,o):i(r)},o)});var r=this.getParsedResult(this.translations[this.currentLang],e,t);return"function"==typeof r.subscribe?r:Object(Y.a)(r)}},{key:"stream",value:function(e,t){var n=this;if(!Ii(e)||!e.length)throw new Error('Parameter "key" required');return Object(mi.a)(this.get(e,t),this.onLangChange.pipe(Object(et.a)(function(r){var i=n.getParsedResult(r.translations,e,t);return"function"==typeof i.subscribe?i:Object(Y.a)(i)})))}},{key:"instant",value:function(e,t){if(!Ii(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(void 0!==n.subscribe){if(e instanceof Array){var r={};return e.forEach(function(t,n){r[e[n]]=e[n]}),r}return e}return n}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang||this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return-1!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage).indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}},{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}}]),e}()).\u0275fac=function(e){return new(e||Ni)(m["\u0275\u0275inject"](Ui),m["\u0275\u0275inject"](_i),m["\u0275\u0275inject"]($i),m["\u0275\u0275inject"](Li),m["\u0275\u0275inject"](Ci),m["\u0275\u0275inject"](Wi),m["\u0275\u0275inject"](qi))},Ni.\u0275prov=m["\u0275\u0275defineInjectable"]({token:Ni,factory:Ni.\u0275fac}),Ni),Gi=((Mi=function(){function e(t,n,r){var i=this;g(this,e),this.translateService=t,this.element=n,this._ref=r,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(function(e){e.lang===i.translateService.currentLang&&i.checkNodes(!0,e.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(function(e){i.checkNodes(!0,e.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(function(e){i.checkNodes(!0)}))}return y(e,[{key:"ngAfterViewChecked",value:function(){this.checkNodes()}},{key:"checkNodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this.element.nativeElement.childNodes;n.length||(this.setContent(this.element.nativeElement,this.key),n=this.element.nativeElement.childNodes);for(var r=0;r1?r-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:_i,useClass:wi},t.compiler||{provide:$i,useClass:Si},t.parser||{provide:Li,useClass:Bi},t.missingTranslationHandler||{provide:Ci,useClass:xi},Ui,{provide:qi,useValue:t.isolate},{provide:Wi,useValue:t.useDefaultLang},zi]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:_i,useClass:wi},t.compiler||{provide:$i,useClass:Si},t.parser||{provide:Li,useClass:Bi},t.missingTranslationHandler||{provide:Ci,useClass:xi},{provide:qi,useValue:t.isolate},{provide:Wi,useValue:t.useDefaultLang},zi]}}}]),e}()).\u0275mod=m["\u0275\u0275defineNgModule"]({type:Ai}),Ai.\u0275inj=m["\u0275\u0275defineInjector"]({factory:function(e){return new(e||Ai)}}),Ai),Zi=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";g(this,e),this.http=t,this.prefix=n,this.suffix=r}return y(e,[{key:"getTranslation",value:function(e){return this.http.get("".concat(this.prefix).concat(e).concat(this.suffix))}}]),e}(),Xi=((Di=function(){function e(t){g(this,e),t.setDefaultLang("en"),console.log("Browser language is: "+t.getBrowserLang()),t.use(t.getBrowserLang())}return y(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Di)(m["\u0275\u0275directiveInject"](zi))},Di.\u0275cmp=m["\u0275\u0275defineComponent"]({type:Di,selectors:[["app-navbar"]],decls:3,vars:1,consts:[[1,"navbar","navbar-dark","bg-dark"],["href","",1,"navbar-brand",3,"translate"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"nav",0),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"HoneyPi"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","brand"))},directives:[Gi],styles:[""]}),Di),Yi=a("kiQV").version,Ji=((Fi=function(){function e(t){g(this,e),this.translate=t,this.appVersion=Yi}return y(e,[{key:"ngOnInit",value:function(){}},{key:"useLanguage",value:function(e){this.translate.use(e)}},{key:"currentYear",get:function(){return(new Date).getFullYear()}}]),e}()).\u0275fac=function(e){return new(e||Fi)(m["\u0275\u0275directiveInject"](zi))},Fi.\u0275cmp=m["\u0275\u0275defineComponent"]({type:Fi,selectors:[["app-footer"]],decls:16,vars:1,consts:[[1,"footer"],[1,"container"],[1,"text-muted"],["href","https://www.honey-pi.de","target","_blank"],[1,"float-right","text-muted",2,"padding-left","10px"],["routerLink","",3,"click"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"footer",0),m["\u0275\u0275elementStart"](1,"div",1),m["\u0275\u0275elementStart"](2,"span",2),m["\u0275\u0275text"](3,"\xa9 "),m["\u0275\u0275elementStart"](4,"a",3),m["\u0275\u0275text"](5,"HoneyPi.de"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](6),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"span",4),m["\u0275\u0275elementStart"](8,"a",5),m["\u0275\u0275listener"]("click",function(){return t.useLanguage("de")}),m["\u0275\u0275text"](9,"Deutsch"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](10," | "),m["\u0275\u0275elementStart"](11,"a",5),m["\u0275\u0275listener"]("click",function(){return t.useLanguage("en")}),m["\u0275\u0275text"](12,"English"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](13," | "),m["\u0275\u0275elementStart"](14,"a",5),m["\u0275\u0275listener"]("click",function(){return t.useLanguage("el_GR")}),m["\u0275\u0275text"](15,"Greek"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](6),m["\u0275\u0275textInterpolate1"](" 2018-",t.currentYear,""))},directives:[Lr],styles:[""]}),Fi),eo=((Ri=function e(){g(this,e)}).\u0275fac=function(e){return new(e||Ri)},Ri.\u0275cmp=m["\u0275\u0275defineComponent"]({type:Ri,selectors:[["app-root"]],decls:3,vars:0,template:function(e,t){1&e&&(m["\u0275\u0275element"](0,"app-navbar"),m["\u0275\u0275element"](1,"router-outlet"),m["\u0275\u0275element"](2,"app-footer"))},directives:[Xi,Wr,Ji],styles:['.ng-invalid:not(form){border-left:5px solid #a94442}@-webkit-keyframes spinner{to{transform:rotate(1turn)}}@keyframes spinner{to{transform:rotate(1turn)}} .spinner:before{content:"";box-sizing:border-box;position:absolute;top:50%;left:50%;width:50px;height:50px;margin-top:-10px;margin-left:-10px;border-radius:50%;border:6px solid #f7f7f7;border-top-color:#ffc107;-webkit-animation:spinner .8s linear infinite;animation:spinner .8s linear infinite}']}),Ri);a("4XzM");var to,no=((to=function(){function e(t){g(this,e),this.http=t}return y(e,[{key:"getSettings",value:function(){var e="t="+(new Date).getTime();return this.http.get("./backend/settings.php?getSettings&"+e,{responseType:"json"})}},{key:"setSettings",value:function(e){return this.http.post("./backend/settings.php?setSettings",JSON.stringify(e)).map(function(e){return e})}},{key:"getTemperatureSensors",value:function(){var e="t="+(new Date).getTime();return this.http.get("./backend/ds18b20.php?"+e).map(function(e){if(e)return e})}},{key:"getLog",value:function(){var e="t="+(new Date).getTime();return this.http.get("./backend/log.php?"+e,{responseType:"text"})}},{key:"deleteLog",value:function(){var e="t="+(new Date).getTime();return this.http.get("./backend/log.php?delete&"+e,{responseType:"text"})}},{key:"deleteCsv",value:function(e){var t="t="+(new Date).getTime();return this.http.get("./backend/offlinecsv.php?delete&channelId="+e+"&"+t,{responseType:"text"})}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="t="+(new Date).getTime();return this.http.get("./backend/update.php?mode="+e+"&stable="+(t?0:1)+n+"&"+r,{responseType:"json"})}},{key:"getMeasurement",value:function(){var e="t="+(new Date).getTime();return this.http.get("./backend/measurement.php?"+e).map(function(e){if(e)return e})}},{key:"checkInternet",value:function(){var e="t="+(new Date).getTime();return this.http.get("./backend/check_internet.php?"+e).map(function(e){if(e)return e})}},{key:"checkDiag",value:function(){var e="t="+(new Date).getTime();return this.http.get("./backend/check_diag.php?"+e,{responseType:"text"}).map(function(e){return e})}},{key:"checkThingSpeakChannel",value:function(e){return this.http.post("./backend/check_thingspeak.php",e).map(function(e){if(e)return e})}},{key:"getWeight",value:function(e){return this.http.post("./backend/weight.php",e,{responseType:"text"}).map(function(e){return e})}},{key:"boot",value:function(e){var t="t="+(new Date).getTime();return this.http.get("./backend/boot.php?"+e+"&"+t)}}]),e}()).\u0275fac=function(e){return new(e||to)(m["\u0275\u0275inject"](Oe))},to.\u0275prov=m["\u0275\u0275defineInjectable"]({token:to,factory:to.\u0275fac,providedIn:"root"}),to),ro=function e(){g(this,e),this.router=new io,this.honeypi=new io,this.modem=new oo},io=function e(){g(this,e)},oo=function e(){g(this,e)},ao=function e(){g(this,e),this.enabled=!1,this.version=2,this.dummyload=!1,this.voltagecheck_enabled=!1,this.low=new uo,this.normal=new uo},uo=function e(){g(this,e),this.enabled=!1,this.schedule=""},so=function e(){g(this,e),this.ts_channels=[],this.ts_channels.push(new lo),this.sensors=[],this.internet=new ro,this.wittyPi=new ao},lo=function e(){g(this,e),this.ts_write_key="",this.ts_channel_id=void 0};function co(e,t){1&e&&m["\u0275\u0275element"](0,"br")}a("g3Qq");var fo=function(){return{field:"Write-API-Key"}};function ho(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",29),m["\u0275\u0275elementStart"](1,"a",30),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](3),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](4,1,"error.spaces",m["\u0275\u0275pureFunction0"](4,fo))," "))}var po=function(){return{field:"Channel-ID"}};function vo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.required",m["\u0275\u0275pureFunction0"](4,po))," "))}function go(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.length",m["\u0275\u0275pureFunction0"](4,po))," "))}function mo(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",31),m["\u0275\u0275template"](1,vo,3,5,"div",10),m["\u0275\u0275template"](2,go,3,5,"div",10),m["\u0275\u0275elementEnd"]()),2&e){m["\u0275\u0275nextContext"]();var n=m["\u0275\u0275reference"](20);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",(null==n?null:n.errors.min)||(null==n?null:n.errors.max))}}function yo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.required",m["\u0275\u0275pureFunction0"](4,fo))," "))}function bo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.length",m["\u0275\u0275pureFunction0"](4,fo))," "))}function _o(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",31),m["\u0275\u0275template"](1,yo,3,5,"div",10),m["\u0275\u0275template"](2,bo,3,5,"div",10),m["\u0275\u0275elementEnd"]()),2&e){m["\u0275\u0275nextContext"]();var n=m["\u0275\u0275reference"](29);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",(null==n?null:n.errors.minlength)||(null==n?null:n.errors.maxlength))}}function wo(e,t){1&e&&m["\u0275\u0275element"](0,"br")}var ko=function(e){return{"my-bg-ts":e}};function Co(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",8),m["\u0275\u0275elementStart"](1,"div",9),m["\u0275\u0275template"](2,co,1,0,"br",10),m["\u0275\u0275elementStart"](3,"div",11),m["\u0275\u0275elementStart"](4,"button",12),m["\u0275\u0275listener"]("click",function(){m["\u0275\u0275restoreView"](n);var e=t.index;return m["\u0275\u0275nextContext"]().removeChannel(e)}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275text"](6,"\u232b"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"h5",13),m["\u0275\u0275text"](8),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"div",0),m["\u0275\u0275elementStart"](10,"label",14),m["\u0275\u0275text"](11,"Channel-Name "),m["\u0275\u0275elementStart"](12,"i"),m["\u0275\u0275text"](13,"(optional)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](14,"input",15,16),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.$implicit.name=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](16,"div",0),m["\u0275\u0275elementStart"](17,"label",17),m["\u0275\u0275text"](18,"ThingSpeak Channel-ID"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"input",18,19),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.$implicit.ts_channel_id=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"div",0),m["\u0275\u0275elementStart"](22,"label",20),m["\u0275\u0275text"](23,"ThingSpeak "),m["\u0275\u0275elementStart"](24,"strong"),m["\u0275\u0275text"](25,"Write"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](26,"-API-Key"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](27,"div",21),m["\u0275\u0275elementStart"](28,"input",22,23),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.$implicit.ts_write_key=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](30,"span",24),m["\u0275\u0275elementStart"](31,"button",25,26),m["\u0275\u0275listener"]("click",function(){m["\u0275\u0275restoreView"](n);var e=t.$implicit,r=m["\u0275\u0275reference"](32);return m["\u0275\u0275nextContext"]().checkThingSpeakChannel(e.ts_channel_id,e.ts_write_key,r)}),m["\u0275\u0275pipe"](33,"translate"),m["\u0275\u0275text"](34,"\u2713"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](35,ho,5,5,"div",27),m["\u0275\u0275template"](36,mo,3,2,"div",28),m["\u0275\u0275template"](37,_o,3,2,"div",28),m["\u0275\u0275template"](38,wo,1,0,"br",10),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=t.$implicit,i=t.index,o=t.last,a=t.first,u=m["\u0275\u0275reference"](20),s=m["\u0275\u0275reference"](29),l=m["\u0275\u0275reference"](32),c=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275classProp"]("spinner",l.disabled),m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](23,ko,i%2!=0)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",!a),m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("title",m["\u0275\u0275pipeBind1"](5,19,"settings.thingspeak.removeChannel")),m["\u0275\u0275property"]("disabled",c.isRemovingDisabled),m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate1"]("ThingSpeak Channel #",i+1,""),m["\u0275\u0275advance"](6),m["\u0275\u0275property"]("ngModel",r.name),m["\u0275\u0275advance"](5),m["\u0275\u0275property"]("ngModel",r.ts_channel_id)("min",0)("max",9999999),m["\u0275\u0275advance"](9),m["\u0275\u0275property"]("ngModel",r.ts_write_key),m["\u0275\u0275advance"](3),m["\u0275\u0275classProp"]("disabled",!r.ts_channel_id||!r.ts_write_key),m["\u0275\u0275propertyInterpolate"]("title",m["\u0275\u0275pipeBind1"](33,21,"settings.thingspeak.checkConnection")),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("ngIf",(null==s?null:s.value)&&-1!==(null==s||null==s.value?null:s.value.indexOf(" "))),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",u.invalid&&(u.dirty||u.touched)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",s.invalid&&(s.dirty||s.touched)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",!o)}}var xo,$o=((xo=function(){function e(t,n){g(this,e),this.appService=t,this.translate=n,this.thingspeakUrlPattern="^(?:(?:(?:[a-zA-z\\-]+)\\:\\/{1,3})?(?:[a-zA-Z0-9])(?:[a-zA-Z0-9-\\.]){1,61}[a-zA-Z0-9](?:\\.[a-zA-Z]{2,})+|\\[(?:(?:(?:[a-fA-F0-9]){1,4})(?::(?:[a-fA-F0-9]){1,4}){7}|::1|::)\\]|(?:(?:[0-9]{1,3})(?:\\.[0-9]{1,3}){3}))(?:\\:[0-9]{1,5})?$",this.settingsChange=new m.EventEmitter}return y(e,[{key:"ngOnInit",value:function(){}},{key:"addChannel",value:function(){this.settings.ts_channels.push({ts_channel_id:void 0,ts_write_key:""})}},{key:"removeChannel",value:function(e){this.settings.ts_channels.splice(e,1)}},{key:"checkThingSpeakChannel",value:function(e,t,n){var r=this;this.translate.get("settings.thingspeak.confirmCheck").subscribe(function(i){window.confirm(i)&&(n.setAttribute("disabled","disabled"),r.appService.checkThingSpeakChannel({ts_channel_id:e,ts_write_key:t}).timeout(15e3).finally(function(){n.removeAttribute("disabled")}).subscribe(function(e){n.classList.remove("btn-danger","btn-warning"),n.classList.add("btn-success")},function(e){console.log(e),n.classList.remove("btn-success","btn-warning"),n.classList.add("btn-danger")}))})}},{key:"settings",set:function(e){this.settingsChange.emit(e),this._settings=e},get:function(){return this._settings}},{key:"isAddingDisabled",get:function(){return this.settings.ts_channels.length>=10}},{key:"isRemovingDisabled",get:function(){return this.settings.ts_channels.length<=1}}]),e}()).\u0275fac=function(e){return new(e||xo)(m["\u0275\u0275directiveInject"](no),m["\u0275\u0275directiveInject"](zi))},xo.\u0275cmp=m["\u0275\u0275defineComponent"]({type:xo,selectors:[["app-thingspeak"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:12,vars:7,consts:[[1,"form-group"],["for","ts_server_url"],["type","text","id","ts_server_url","name","ts_server_url","placeholder","http://api.thingspeak.com",1,"form-control",3,"ngModel","pattern","ngModelChange"],["ts_server_url","ngModel"],["class","rounded row",4,"ngFor","ngForOf"],[1,"row"],[1,"col-12"],["type","button",1,"btn","btn-primary","btn-sm","float-left","shadow-sm",3,"disabled","click"],[1,"rounded","row"],[1,"col-12",3,"ngClass"],[4,"ngIf"],["role","group",1,"btn-group","btn-group-sm","float-right"],["type","button",1,"btn","btn-danger","btn-sm",2,"margin-bottom","10px",3,"disabled","title","click"],[1,"h5"],["for","ts_name"],["type","text","id","ts_name","name","ts_name","placeholder","Name",1,"form-control",3,"ngModel","ngModelChange"],["ts_name","ngModel"],["for","ts_channel_id"],["type","number","id","ts_channel_id","name","ts_channel_id","placeholder","Channel-ID","required","",1,"form-control",3,"ngModel","min","max","ngModelChange"],["ts_channel_id","ngModel"],["for","ts_write_key"],[1,"input-group"],["type","text","id","ts_write_key","name","ts_write_key","placeholder","Write-API-Key","required","","minlength","16","maxlength","16",1,"form-control",3,"ngModel","ngModelChange"],["ts_write_key","ngModel"],[1,"input-group-btn"],["type","button",1,"btn","btn-warning",3,"title","click"],["checkElement",""],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-danger",4,"ngIf"],["role","alert",1,"alert","alert-warning"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[1,"alert","alert-danger"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"label",1),m["\u0275\u0275text"](2,"ThingSpeak Server-URL"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](3,"input",2,3),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.ts_server_url=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](5,Co,39,25,"div",4),m["\u0275\u0275elementStart"](6,"div",5),m["\u0275\u0275elementStart"](7,"div",6),m["\u0275\u0275element"](8,"br"),m["\u0275\u0275elementStart"](9,"button",7),m["\u0275\u0275listener"]("click",function(){return t.addChannel()}),m["\u0275\u0275text"](10),m["\u0275\u0275pipe"](11,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngModel",t.settings.ts_server_url)("pattern",t.thingspeakUrlPattern),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngForOf",t.settings.ts_channels),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("disabled",t.isAddingDisabled),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"]("+ ",m["\u0275\u0275pipeBind1"](11,5,"settings.thingspeak.addChannel"),""))},directives:[qe.DefaultValueAccessor,qe.NgControlStatus,qe.NgModel,qe.PatternValidator,b.k,b.j,b.l,qe.NumberValueAccessor,qe.RequiredValidator,vi.MinValidator,vi.MaxValidator,qe.MinLengthValidator,qe.MaxLengthValidator],pipes:[Ki],styles:[".my-bg-ts[_ngcontent-%COMP%]{background-color:#e9ecef}"]}),xo),So=function(e){return{field:e}};function Eo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",36),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](3),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](4,1,"error.spaces",m["\u0275\u0275pureFunction1"](6,So,m["\u0275\u0275pipeBind1"](5,4,"settings.internet.ssid")))," "))}function Oo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",36),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](3),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](4,1,"error.spaces",m["\u0275\u0275pureFunction1"](6,So,m["\u0275\u0275pipeBind1"](5,4,"settings.internet.password")))," "))}function Io(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.required",m["\u0275\u0275pureFunction1"](6,So,m["\u0275\u0275pipeBind1"](3,4,"settings.internet.ssid")))," "))}function To(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.length",m["\u0275\u0275pureFunction1"](6,So,m["\u0275\u0275pipeBind1"](3,4,"settings.internet.ssid")))," "))}function jo(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",37),m["\u0275\u0275template"](1,Io,4,8,"div",9),m["\u0275\u0275template"](2,To,4,8,"div",9),m["\u0275\u0275elementEnd"]()),2&e){m["\u0275\u0275nextContext"]();var n=m["\u0275\u0275reference"](4);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.maxlength)}}function Vo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.required",m["\u0275\u0275pureFunction1"](6,So,m["\u0275\u0275pipeBind1"](3,4,"settings.internet.password")))," "))}function Ao(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.length",m["\u0275\u0275pureFunction1"](6,So,m["\u0275\u0275pipeBind1"](3,4,"settings.internet.password")))," "))}function Po(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.specialchar",m["\u0275\u0275pureFunction1"](6,So,m["\u0275\u0275pipeBind1"](3,4,"settings.internet.password")))," "))}function Mo(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",37),m["\u0275\u0275template"](1,Vo,4,8,"div",9),m["\u0275\u0275template"](2,Ao,4,8,"div",9),m["\u0275\u0275template"](3,Po,4,8,"div",9),m["\u0275\u0275elementEnd"]()),2&e){m["\u0275\u0275nextContext"]();var n=m["\u0275\u0275reference"](9);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",(null==n?null:n.errors.minlength)||(null==n?null:n.errors.maxlength)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.pattern)}}var No=function(e){return{value:e}};function Do(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",15),m["\u0275\u0275elementStart"](1,"div",22),m["\u0275\u0275element"](2,"label",23),m["\u0275\u0275elementStart"](3,"input",24,25),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().wifi.router.ssid=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",26),m["\u0275\u0275element"](7,"label",27),m["\u0275\u0275elementStart"](8,"input",28,29),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().wifi.router.password=e}),m["\u0275\u0275pipe"](10,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](11,"div",22),m["\u0275\u0275element"](12,"label",30),m["\u0275\u0275elementStart"](13,"select",31),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().wifi.router.wpa_type=e}),m["\u0275\u0275element"](14,"option",32),m["\u0275\u0275pipe"](15,"translate"),m["\u0275\u0275pipe"](16,"translate"),m["\u0275\u0275elementStart"](17,"option",33),m["\u0275\u0275text"](18,"WPA2 (default)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"option",33),m["\u0275\u0275text"](20,"No Password"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](21,Eo,6,8,"div",34),m["\u0275\u0275template"](22,Oo,6,8,"div",34),m["\u0275\u0275template"](23,jo,3,2,"div",35),m["\u0275\u0275template"](24,Mo,4,3,"div",35),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275reference"](4),i=m["\u0275\u0275reference"](9),o=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.internet.ssid"),m["\u0275\u0275advance"](1),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](5,21,"settings.internet.ssid")),m["\u0275\u0275property"]("ngModel",o.wifi.router.ssid)("maxlength",32),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("hidden",2===o.wifi.router.wpa_type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.internet.password"),m["\u0275\u0275advance"](1),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](10,23,"settings.internet.password")),m["\u0275\u0275property"]("ngModel",o.wifi.router.password)("minlength",8)("maxlength",63)("pattern",o.disallowedChars),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("translate","settings.internet.wpa_type"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",o.wifi.router.wpa_type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](15,25,"buttons.select",m["\u0275\u0275pureFunction1"](30,No,m["\u0275\u0275pipeBind1"](16,28,"settings.internet.wpa_type")))),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngValue",0),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",2),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",(null==r?null:r.value)&&-1!==(null==r||null==r.value?null:r.value.indexOf(" "))),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",(null==i?null:i.value)&&-1!==(null==i||null==i.value?null:i.value.indexOf(" "))),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",r.invalid&&(r.dirty||r.touched)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",i.invalid&&(i.dirty||i.touched))}}function Ro(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275elementStart"](1,"div",15),m["\u0275\u0275elementStart"](2,"div",16),m["\u0275\u0275elementStart"](3,"label",38),m["\u0275\u0275text"](4),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"input",39),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().wifi.modem.apn=e}),m["\u0275\u0275pipe"](7,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](8,"div",16),m["\u0275\u0275element"](9,"label",40),m["\u0275\u0275elementStart"](10,"select",41),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().wifi.modem.ttyUSB=e}),m["\u0275\u0275element"](11,"option",32),m["\u0275\u0275pipe"](12,"translate"),m["\u0275\u0275pipe"](13,"translate"),m["\u0275\u0275elementStart"](14,"option",33),m["\u0275\u0275text"](15,"ttyUSB0 (default)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](16,"option",33),m["\u0275\u0275text"](17,"ttyUSB1"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](18,"option",33),m["\u0275\u0275text"](19,"ttyUSB2"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](20,"option",33),m["\u0275\u0275text"](21,"ttyS0"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](22,"option",33),m["\u0275\u0275text"](23,"ttyS1"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](5,12,"settings.internet.apn")),m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](7,14,"settings.internet.apn")),m["\u0275\u0275property"]("ngModel",r.wifi.modem.apn),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.internet.ttyUSB"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",r.wifi.modem.ttyUSB),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](12,16,"buttons.select",m["\u0275\u0275pureFunction1"](21,No,m["\u0275\u0275pipeBind1"](13,19,"settings.internet.ttyUSB")))),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngValue","ttyUSB0"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue","ttyUSB1"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue","ttyUSB2"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue","ttyS0"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue","ttyS1")}}function Fo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",44),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",45),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"settings.internet.testSuccess"),m["\u0275\u0275sanitizeHtml"]))}function Lo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",46),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",45),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"settings.internet.testError"),m["\u0275\u0275sanitizeHtml"]))}function Bo(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"pre",47),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"json"),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](2,1,n.checkInternetResponse.content))}}function Ho(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275template"](1,Fo,5,3,"div",42),m["\u0275\u0275template"](2,Lo,5,3,"div",43),m["\u0275\u0275template"](3,Bo,3,3,"pre",21),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",n.checkInternetResponse.connected),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",!n.checkInternetResponse.connected),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",!n.checkInternetResponse.connected&&n.checkInternetResponse.content)}}function Uo(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"pre",47),m["\u0275\u0275text"](1),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](n.checkSurfstickResponse)}}var qo,Wo,zo=((qo=function(){function e(t){g(this,e),this.appService=t,this.isLoading=!1,this.isLoadingAP=!1,this.disallowedChars="[^/]+",this.wifiChange=new m.EventEmitter}return y(e,[{key:"ngOnInit",value:function(){}},{key:"checkInternet",value:function(){var e=this;this.isLoading=!0,this.checkInternetResponse=null,this.appService.checkInternet().timeout(15e3).finally(function(){return e.isLoading=!1}).subscribe(function(t){e.checkInternetResponse=t},function(t){console.log(t),e.checkInternetResponse=t.name&&"TimeoutError"===t.name?{connected:!1,content:"Timeout after 15 Seconds."}:t.name&&"HttpErrorResponse"===t.name?{connected:!1,content:null}:{connected:!1,content:t}})}},{key:"checkDiag",value:function(){var e=this;this.isLoadingAP=!0,this.checkSurfstickResponse=null,this.appService.checkDiag().timeout(15e3).finally(function(){return e.isLoadingAP=!1}).subscribe(function(t){e.checkSurfstickResponse=t},function(t){console.error(t),e.checkSurfstickResponse=JSON.stringify(t)})}},{key:"wifi",set:function(e){this.wifiChange.emit(e),this._wifi=e},get:function(){return this._wifi}}]),e}()).\u0275fac=function(e){return new(e||qo)(m["\u0275\u0275directiveInject"](no))},qo.\u0275cmp=m["\u0275\u0275defineComponent"]({type:qo,selectors:[["app-internet"]],inputs:{wifi:"wifi"},outputs:{wifiChange:"wifiChange"},decls:46,vars:40,consts:[["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[1,"h5",3,"translate"],[1,"form-check"],["type","checkbox","id","enabledWifi",1,"form-check-input",3,"ngModel","ngModelChange"],["for","enabledWifi",1,"form-check-label",3,"translate"],["class","row",4,"ngIf"],["type","checkbox","id","enabledModem",1,"form-check-input",3,"ngModel","ngModelChange"],["for","enabledModem",1,"form-check-label",3,"translate"],[4,"ngIf"],["type","button","role","button",1,"btn","btn-warning","btn-sm",3,"disabled","translate","click"],["data-toggle","collapse","href","#collapseAP","role","button","aria-expanded","false","aria-controls","collapseAP",1,"text-danger",3,"translate"],["id","collapseAP",1,"collapse"],[1,"card","card-body"],[3,"translate"],[1,"row"],[1,"form-group","col-12","col-sm-6"],["for","honeypiWifissid"],["type","text","id","honeypiWifissid","name","honeypiWifissid",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","honeypiWifipassword"],["type","text","id","honeypiWifipassword","name","honeypiWifipassword",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["class","pre-scrollable",4,"ngIf"],[1,"form-group","col-12","col-sm-4"],["for","ssid",3,"translate"],["type","text","id","ssid","name","ssid","required","",1,"form-control",3,"ngModel","placeholder","maxlength","ngModelChange"],["router_ssid","ngModel"],[1,"form-group","col-12","col-sm-4",3,"hidden"],["for","password",3,"translate"],["type","text","id","password","name","password","required","",1,"form-control",3,"ngModel","placeholder","minlength","maxlength","pattern","ngModelChange"],["router_password","ngModel"],["for","wpa_type",3,"translate"],["id","wpa_type","name","wpa_type","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue","translate"],[3,"ngValue"],["class","alert alert-warning col-12","role","alert",4,"ngIf"],["class","alert alert-danger col-12","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-warning","col-12"],["role","alert",1,"alert","alert-danger","col-12"],["for","honeypiModemApn"],["type","text","id","honeypiModemApn","name","honeypiModemApn","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","ttyUSB",3,"translate"],["id","ttyUSB","name","ttyUSB","required","",1,"custom-select",3,"ngModel","ngModelChange"],["class","alert alert-success","role","alert",4,"ngIf"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-success"],[3,"innerHTML"],["role","alert",1,"alert","alert-danger"],[1,"pre-scrollable"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](3),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](5,"h5",2),m["\u0275\u0275elementStart"](6,"div",3),m["\u0275\u0275elementStart"](7,"input",4),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.wifi.router.enabled=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](8,"label",5),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](9,Do,25,32,"div",6),m["\u0275\u0275element"](10,"hr"),m["\u0275\u0275element"](11,"h5",2),m["\u0275\u0275elementStart"](12,"div",3),m["\u0275\u0275elementStart"](13,"input",7),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.wifi.modem.enabled=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](14,"label",8),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](15,Ro,24,23,"div",9),m["\u0275\u0275element"](16,"hr"),m["\u0275\u0275element"](17,"h5",2),m["\u0275\u0275elementStart"](18,"p"),m["\u0275\u0275elementStart"](19,"button",10),m["\u0275\u0275listener"]("click",function(){return t.checkInternet()}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](20,Ho,4,3,"div",9),m["\u0275\u0275element"](21,"hr"),m["\u0275\u0275elementStart"](22,"p"),m["\u0275\u0275element"](23,"a",11),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](24,"div",12),m["\u0275\u0275elementStart"](25,"div",13),m["\u0275\u0275element"](26,"h5",2),m["\u0275\u0275element"](27,"p",14),m["\u0275\u0275elementStart"](28,"div",15),m["\u0275\u0275elementStart"](29,"div",16),m["\u0275\u0275elementStart"](30,"label",17),m["\u0275\u0275text"](31),m["\u0275\u0275pipe"](32,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](33,"input",18),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.wifi.honeypi.ssid=e}),m["\u0275\u0275pipe"](34,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](35,"div",16),m["\u0275\u0275elementStart"](36,"label",19),m["\u0275\u0275text"](37),m["\u0275\u0275pipe"](38,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](39,"input",20),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.wifi.honeypi.password=e}),m["\u0275\u0275pipe"](40,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](41,"hr"),m["\u0275\u0275element"](42,"h5",2),m["\u0275\u0275elementStart"](43,"p"),m["\u0275\u0275elementStart"](44,"button",10),m["\u0275\u0275listener"]("click",function(){return t.checkDiag()}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](45,Uo,2,1,"pre",21),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](4,30,"alerts.afterSave"),"\n"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.internet.wifi"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",t.wifi.router.enabled),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.internet.connectWifi"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.wifi.router.enabled),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.internet.honeypiModem"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",t.wifi.modem.enabled),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.internet.connectModem"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.wifi.modem.enabled),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.internet.isMobileConnected"),m["\u0275\u0275advance"](2),m["\u0275\u0275classProp"]("spinner",t.isLoading),m["\u0275\u0275property"]("disabled",t.isLoading)("translate","settings.internet.testConnection"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.checkInternetResponse),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.internet.collapseAP"),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.internet.honeypiAP"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.internet.honeypiAPtext"),m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](32,32,"settings.internet.ssid")),m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](34,34,"settings.internet.ssid")),m["\u0275\u0275property"]("ngModel",t.wifi.honeypi.ssid),m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](38,36,"settings.internet.password")),m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](40,38,"settings.internet.password")),m["\u0275\u0275property"]("ngModel",t.wifi.honeypi.password),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.internet.isSurfstickConnected"),m["\u0275\u0275advance"](2),m["\u0275\u0275classProp"]("spinner",t.isLoadingAP),m["\u0275\u0275property"]("disabled",t.isLoadingAP)("translate","settings.internet.testDiag"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.checkSurfstickResponse))},directives:[Gi,qe.CheckboxControlValueAccessor,qe.NgControlStatus,qe.NgModel,b.l,qe.DefaultValueAccessor,qe.RequiredValidator,qe.MaxLengthValidator,qe.MinLengthValidator,qe.PatternValidator,qe.SelectControlValueAccessor,qe.NgSelectOption,qe["\u0275angular_packages_forms_forms_x"]],pipes:[Ki,b.f],styles:[""]}),qo),Go=function e(){g(this,e),this.offset=0,this.reference_unit=1},Ko=function(){return{value:"GPIO"}},Qo=((Wo=function(){function e(){g(this,e),this.label="GPIO",this.field_id="w1gpio",this.fieldChanged=new m.EventEmitter,this.required=!1}return y(e,[{key:"onChange",value:function(e){this.fieldChanged.emit(this.field)}},{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Wo)},Wo.\u0275cmp=m["\u0275\u0275defineComponent"]({type:Wo,selectors:[["settings-gpio-field"]],inputs:{label:"label",field_id:"field_id",field:"field",required:"required",disabled_pins:"disabled_pins"},outputs:{fieldChanged:"fieldChanged"},decls:57,vars:62,consts:[[3,"for"],[1,"custom-select",3,"ngModel","id","name","required","ngModelChange"],[3,"ngValue","translate"],["disabled","",3,"value"],[3,"value","disabled"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"label",0),m["\u0275\u0275text"](1),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](2,"select",1),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.field=e})("ngModelChange",function(e){return t.onChange(e)}),m["\u0275\u0275element"](3,"option",2),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementStart"](5,"option",3),m["\u0275\u0275text"](6,"GPIO2 (reserved I2C SDI/SDA)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"option",3),m["\u0275\u0275text"](8,"GPIO3 (reserved I2C SCL/SCK)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"option",4),m["\u0275\u0275text"](10,"GPIO4 (reserved WittyPi)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](11,"option",4),m["\u0275\u0275text"](12,"GPIO5 (Default: HX711_1 DT)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"option",4),m["\u0275\u0275text"](14,"GPIO6 (Default: HX711_1 SCK)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](15,"option",4),m["\u0275\u0275text"](16,"GPIO7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](17,"option",4),m["\u0275\u0275text"](18,"GPIO8"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"option",4),m["\u0275\u0275text"](20,"GPIO9 (Default: DHT22 / DS18b20 3.3V source)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"option",4),m["\u0275\u0275text"](22,"GPIO10"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](23,"option",4),m["\u0275\u0275text"](24,"GPIO11 (Default: DS18b20 1-Wire)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](25,"option",4),m["\u0275\u0275text"](26,"GPIO12 (Default: HX711_2 DT)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](27,"option",4),m["\u0275\u0275text"](28,"GPIO13 (Default: HX711_2 SCK)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](29,"option",4),m["\u0275\u0275text"](30,"GPIO14 (reserved UART TX)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](31,"option",4),m["\u0275\u0275text"](32,"GPIO15 (reserved UART RX)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](33,"option",4),m["\u0275\u0275text"](34,"GPIO16 (Default: Button)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](35,"option",4),m["\u0275\u0275text"](36,"GPIO17 (reserved WittyPi)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](37,"option",4),m["\u0275\u0275text"](38,"GPIO18 (Default: MAX CLK)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](39,"option",4),m["\u0275\u0275text"](40,"GPIO19 (Default: MAX MISO)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](41,"option",4),m["\u0275\u0275text"](42,"GPIO20"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](43,"option",4),m["\u0275\u0275text"](44,"GPIO21 (Default: LED)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](45,"option",4),m["\u0275\u0275text"](46,"GPIO22 (Default: HX711_3 SCK)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](47,"option",4),m["\u0275\u0275text"](48,"GPIO23 (Default: HX711_4 DT)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](49,"option",4),m["\u0275\u0275text"](50,"GPIO24 (Default: HX711_4 SCK)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](51,"option",4),m["\u0275\u0275text"](52,"GPIO25 (Default: HX711_5 DT)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](53,"option",4),m["\u0275\u0275text"](54,"GPIO26 (Default: HX711_5 SCK / MAX CS)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](55,"option",4),m["\u0275\u0275text"](56,"GPIO27 (Default: HX711_3 DT / MAX CS2)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275propertyInterpolate"]("for",t.field_id),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](t.label),m["\u0275\u0275advance"](1),m["\u0275\u0275propertyInterpolate"]("id",t.field_id),m["\u0275\u0275propertyInterpolate"]("name",t.field_id),m["\u0275\u0275property"]("ngModel",t.field)("required",t.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](4,58,"buttons.select",m["\u0275\u0275pureFunction0"](61,Ko))),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",2),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",3),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",4)("disabled",t.disabled_pins.includes(4)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",5)("disabled",t.disabled_pins.includes(5)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",6)("disabled",t.disabled_pins.includes(6)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",7)("disabled",t.disabled_pins.includes(7)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",8)("disabled",t.disabled_pins.includes(8)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",9)("disabled",t.disabled_pins.includes(9)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",10)("disabled",t.disabled_pins.includes(10)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",11)("disabled",t.disabled_pins.includes(11)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",12)("disabled",t.disabled_pins.includes(12)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",13)("disabled",t.disabled_pins.includes(13)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",14)("disabled",t.disabled_pins.includes(14)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",15)("disabled",t.disabled_pins.includes(15)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",16)("disabled",t.disabled_pins.includes(16)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",17)("disabled",t.disabled_pins.includes(17)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",18)("disabled",t.disabled_pins.includes(18)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",19)("disabled",t.disabled_pins.includes(19)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",20)("disabled",t.disabled_pins.includes(20)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",21)("disabled",t.disabled_pins.includes(21)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",22)("disabled",t.disabled_pins.includes(22)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",23)("disabled",t.disabled_pins.includes(23)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",24)("disabled",t.disabled_pins.includes(24)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",25)("disabled",t.disabled_pins.includes(25)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",26)("disabled",t.disabled_pins.includes(26)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",27)("disabled",t.disabled_pins.includes(27)))},directives:[qe.SelectControlValueAccessor,qe.NgControlStatus,qe.NgModel,qe.RequiredValidator,qe.NgSelectOption,qe["\u0275angular_packages_forms_forms_x"],Gi],pipes:[Ki],styles:[".line[_ngcontent-%COMP%]{text-decoration:line-through}"]}),Wo);function Zo(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"option",6),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementEnd"]()),2&e){var n=t.$implicit,r=m["\u0275\u0275nextContext"]().index;m["\u0275\u0275propertyInterpolate1"]("value","field",n+8*r,""),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate3"]("",m["\u0275\u0275pipeBind1"](2,4,"settings.thingspeak.field")," ",n," - Channel #",r+1,"")}}var Xo=function(){return[1,2,3,4,5,6,7,8]};function Yo(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"optgroup",4),m["\u0275\u0275template"](1,Zo,3,6,"option",5),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275propertyInterpolate2"]("label","ThingSpeak Channel #",t.index+1," ",t.$implicit.name,""),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngForOf",m["\u0275\u0275pureFunction0"](3,Xo)))}var Jo,ea=function(e){return{value:e}},ta=((Jo=function(){function e(){g(this,e),this.ts_field_id="ts_field",this.ts_fieldChanged=new m.EventEmitter,this.required=!1}return y(e,[{key:"onChange",value:function(e){this.ts_fieldChanged.emit(this.ts_field),console.log("Selected Field: "+this.ts_field)}},{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Jo)},Jo.\u0275cmp=m["\u0275\u0275defineComponent"]({type:Jo,selectors:[["settings-ts-field"]],inputs:{label:"label",ts_field_id:"ts_field_id",ts_field:"ts_field",required:"required",channels:"channels"},outputs:{ts_fieldChanged:"ts_fieldChanged"},decls:7,vars:16,consts:[[3,"for"],[1,"custom-select",3,"ngModel","id","name","required","ngModelChange"],[3,"ngValue","translate"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"label",0),m["\u0275\u0275text"](1),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](2,"select",1),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.ts_field=e})("ngModelChange",function(e){return t.onChange(e)}),m["\u0275\u0275element"](3,"option",2),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275template"](6,Yo,2,4,"optgroup",3),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275propertyInterpolate"]("for",t.ts_field_id),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](t.label),m["\u0275\u0275advance"](1),m["\u0275\u0275propertyInterpolate"]("id",t.ts_field_id),m["\u0275\u0275propertyInterpolate"]("name",t.ts_field_id),m["\u0275\u0275property"]("ngModel",t.ts_field)("required",t.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](4,9,"buttons.select",m["\u0275\u0275pureFunction1"](14,ea,m["\u0275\u0275pipeBind1"](5,12,"settings.thingspeak.field")))),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngForOf",t.channels))},directives:[qe.SelectControlValueAccessor,qe.NgControlStatus,qe.NgModel,qe.RequiredValidator,qe.NgSelectOption,qe["\u0275angular_packages_forms_forms_x"],Gi,b.k],pipes:[Ki],styles:[""]}),Jo);function na(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275element"](1,"div",14),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementStart"](3,"button",15),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().next_step()}),m["\u0275\u0275text"](4),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](2,2,"settings.sensors.calibration.step0"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate1"](" \u2b46 ",m["\u0275\u0275pipeBind1"](5,4,"settings.sensors.calibration.btnNext")," "))}function ra(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275element"](1,"div",14),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementStart"](3,"button",16),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().next_step()}),m["\u0275\u0275text"](4),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](2,3,"settings.sensors.calibration.step1"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("disabled",r.isLoading),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" \u2b46 ",m["\u0275\u0275pipeBind1"](5,5,"settings.sensors.calibration.btnNext")," ")}}function ia(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275element"](1,"div",14),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementStart"](3,"p"),m["\u0275\u0275elementStart"](4,"input",17),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().calibration_weight=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"button",16),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().next_step()}),m["\u0275\u0275text"](7),m["\u0275\u0275pipe"](8,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](2,7,"settings.sensors.calibration.step2"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](5,9,"settings.sensors.calibration.weightPlaceholder")),m["\u0275\u0275property"]("min",0)("max",3e5)("ngModel",r.calibration_weight),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("disabled",r.isLoading),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" \u2b46 ",m["\u0275\u0275pipeBind1"](8,11,"settings.sensors.calibration.btnNext")," ")}}function oa(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275element"](1,"div",14),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementStart"](3,"button",15),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().next_step()}),m["\u0275\u0275text"](4),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](2,2,"settings.sensors.calibration.step3"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate1"](" \u2b46 ",m["\u0275\u0275pipeBind1"](5,4,"settings.sensors.calibration.btnFinish")," "))}function aa(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275element"](1,"br"),m["\u0275\u0275text"](2,"Output: "),m["\u0275\u0275elementStart"](3,"pre",18),m["\u0275\u0275text"](4),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate"](n.result)}}function ua(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"button",11),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().step_back()}),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("disabled",r.isLoading),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"]("\u2b45 ",m["\u0275\u0275pipeBind1"](2,2,"settings.sensors.calibration.btnBack"),"")}}var sa,la=((sa=function(){function e(t){g(this,e),this.appService=t,this.isLoading=!1,this.step=0,this.calibration_weight=5e3,this.weight1=0,this.weight2=0,this.offset=0,this.reference_unit=1,this.calibrationChange=new m.EventEmitter,this.closeModal=new m.EventEmitter}return y(e,[{key:"ngOnInit",value:function(){}},{key:"round",value:function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}},{key:"step_back",value:function(){this.step--,this.step<=0&&(this.step=0),this.result=null}},{key:"next_step",value:function(){this.result=null,this.step<=0?this.step++:1===this.step||2===this.step?this.measure_weight():this.step>=3&&(this.finish_calibration(),this.step++),this.step>3&&(this.step=0)}},{key:"measure_weight",value:function(){var e=this;this.isLoading=!0,this.result=null,this.appService.getWeight(this.sensor).timeout(12e4).finally(function(){e.isLoading=!1,e.step++}).subscribe(function(t){e.result=t;var n=parseFloat(t);n=isNaN(n)?0:n,1===e.step?(e.weight1=n,e.offset=e.round(e.weight1,0)):2===e.step&&(e.weight2=n,e.reference_unit=e.round((e.weight2-e.offset)/e.calibration_weight,4)),e.reference_unit||(e.reference_unit=1),e.reference_unit<0&&(e.reference_unit=-1*e.reference_unit),e.offset||(e.offset=0),console.log("weight:"+n+" calibration_weight:"+e.calibration_weight+" offset:"+e.offset+" reference_unit:"+e.reference_unit)},function(e){console.error(e)})}},{key:"finish_calibration",value:function(){this.calibrationChange.emit({offset:this.offset,reference_unit:this.reference_unit}),this.close_modal()}},{key:"close_modal",value:function(){this.step=0,this.closeModal.emit(!1)}}]),e}()).\u0275fac=function(e){return new(e||sa)(m["\u0275\u0275directiveInject"](no))},sa.\u0275cmp=m["\u0275\u0275defineComponent"]({type:sa,selectors:[["sensors-weight-calibration"]],inputs:{sensor:"sensor"},outputs:{calibrationChange:"calibrationChange",closeModal:"closeModal"},decls:24,vars:15,consts:[["tabindex","0","role","dialog",1,"modal","fade","show",2,"display","block"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[4,"ngIf"],[1,"modal-footer"],["type","button","class","btn btn-sm btn-primary",3,"disabled","click",4,"ngIf"],["type","button",1,"btn","btn-sm","btn-primary",3,"disabled","click"],["type","button","data-dismiss","modal",1,"btn","btn-sm","btn-secondary",3,"click"],[1,"modal-backdrop","fade","show"],[3,"innerHTML"],[1,"btn","btn-primary",3,"click"],[1,"btn","btn-primary",3,"disabled","click"],["type","number","step","1","required","",1,"form-control",2,"max-width","200px",3,"min","max","ngModel","placeholder","ngModelChange"],[1,"pre-scrollable"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"div",1),m["\u0275\u0275elementStart"](2,"div",2),m["\u0275\u0275elementStart"](3,"div",3),m["\u0275\u0275elementStart"](4,"h5",4),m["\u0275\u0275text"](5),m["\u0275\u0275pipe"](6,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"button",5),m["\u0275\u0275listener"]("click",function(){return t.close_modal()}),m["\u0275\u0275elementStart"](8,"span",6),m["\u0275\u0275text"](9,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"div",7),m["\u0275\u0275template"](11,na,6,6,"div",8),m["\u0275\u0275template"](12,ra,6,7,"div",8),m["\u0275\u0275template"](13,ia,9,13,"div",8),m["\u0275\u0275template"](14,oa,6,6,"div",8),m["\u0275\u0275template"](15,aa,5,1,"ng-container",8),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](16,"div",9),m["\u0275\u0275template"](17,ua,3,4,"button",10),m["\u0275\u0275elementStart"](18,"button",11),m["\u0275\u0275listener"]("click",function(){return t.next_step()}),m["\u0275\u0275text"](19),m["\u0275\u0275pipe"](20,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"button",12),m["\u0275\u0275listener"]("click",function(){return t.close_modal()}),m["\u0275\u0275text"](22,"Close"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](23,"div",13)),2&e&&(m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](6,11,"settings.sensors.calibration.title")),m["\u0275\u0275advance"](5),m["\u0275\u0275classProp"]("spinner",t.isLoading),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",0===t.step),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",1===t.step),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",2===t.step),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",3===t.step),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.result),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",t.step>0),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("disabled",t.isLoading),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"]("",m["\u0275\u0275pipeBind1"](20,13,"settings.sensors.calibration.btnNext")," \u2b46"))},directives:[b.l,qe.NumberValueAccessor,qe.DefaultValueAccessor,qe.RequiredValidator,vi.MinValidator,vi.MaxValidator,qe.NgControlStatus,qe.NgModel],pipes:[Ki],styles:[""]}),sa);function ca(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"option",32),m["\u0275\u0275text"](2),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=t.$implicit;m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",n),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](n)}}var da=function(e,t,n){return[e,t,n]};function fa(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"settings-gpio-field",12),m["\u0275\u0275listener"]("fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).$implicit.pin=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementContainerEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](2).$implicit,i=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("label","3.3V GPIO")("field_id","ds18b20_3Vpin")("field",r.pin)("required",!1)("disabled_pins",m["\u0275\u0275pureFunction3"](5,da,i.settings.w1gpio,i.settings.led_pin,i.settings.button_pin))}}function ha(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",33),m["\u0275\u0275elementStart"](1,"a",6),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",7),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.deviceId"),m["\u0275\u0275sanitizeHtml"]))}function pa(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",34),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275element"](3,"br"),m["\u0275\u0275text"](4),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementStart"](6,"a",35),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](3).getTemperatureSensors()}),m["\u0275\u0275text"](7),m["\u0275\u0275pipe"](8,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](9),m["\u0275\u0275pipe"](10,"translate"),m["\u0275\u0275elementEnd"]()}2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](2,4,"alerts.noTempSensorFound"),""),m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](5,6,"settings.sensors.checkWires")," "),m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](8,8,"buttons.refresh")),m["\u0275\u0275advance"](2),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](10,10,"settings.sensors.checkWiresSuffix")," "))}var va=function(e){return{"my-bg":e}},ga=function(){return{value:"Device-ID"}},ma=function(e,t){return[e,t]};function ya(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",13),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",18),m["\u0275\u0275elementStart"](3,"div",19),m["\u0275\u0275elementStart"](4,"label",20),m["\u0275\u0275text"](5,"Sensor Device-ID"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"select",21),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.device_id=e}),m["\u0275\u0275element"](7,"option",15),m["\u0275\u0275pipe"](8,"translate"),m["\u0275\u0275template"](9,ca,3,2,"ng-container",2),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"div",19),m["\u0275\u0275elementStart"](11,"settings-ts-field",22),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field=e}),m["\u0275\u0275pipe"](12,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"div",18),m["\u0275\u0275elementStart"](14,"div",19),m["\u0275\u0275elementStart"](15,"settings-gpio-field",12),m["\u0275\u0275listener"]("fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).settings.w1gpio=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](16,"div",19),m["\u0275\u0275elementStart"](17,"label",23),m["\u0275\u0275text"](18),m["\u0275\u0275pipe"](19,"translate"),m["\u0275\u0275pipe"](20,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"input",24),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.offset=e}),m["\u0275\u0275pipe"](22,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](23,"div",18),m["\u0275\u0275elementStart"](24,"div",19),m["\u0275\u0275elementStart"](25,"div",25),m["\u0275\u0275elementStart"](26,"input",26),m["\u0275\u0275listener"]("change",function(e){m["\u0275\u0275restoreView"](n);var t=m["\u0275\u0275nextContext"]().$implicit,r=m["\u0275\u0275nextContext"]();return t.pin=r.changeCheck(e)}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](27,"label",27),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](28,fa,2,9,"ng-container",28),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](29,"div",18),m["\u0275\u0275elementStart"](30,"div",29),m["\u0275\u0275template"](31,ha,5,3,"div",30),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](32,"div",18),m["\u0275\u0275elementStart"](33,"div",29),m["\u0275\u0275template"](34,pa,11,12,"div",31),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](),i=r.index,o=r.$implicit,a=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](33,va,i%2==0)),m["\u0275\u0275advance"](6),m["\u0275\u0275property"]("ngModel",o.device_id),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](8,22,"buttons.select",m["\u0275\u0275pureFunction0"](35,ga))),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngForOf",a.temperatureSensors),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](12,25,"settings.thingspeak.field"))("ts_field",o.ts_field)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","1-WIRE GPIO")("field_id","w1gpio")("field",a.settings.w1gpio)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction2"](36,ma,a.settings.led_pin,a.settings.button_pin)),m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate2"]("",m["\u0275\u0275pipeBind1"](19,27,"settings.sensors.temperature")," ",m["\u0275\u0275pipeBind1"](20,29,"settings.sensors.offset")," [\xb0C]"),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](22,31,"settings.sensors.offset")),m["\u0275\u0275property"]("ngModel",o.offset),m["\u0275\u0275advance"](5),m["\u0275\u0275property"]("checked",a.isChecked(o)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.sensors.use3V"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",a.isChecked(o)),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",a.temperatureSensorWasFiltered&&0==a.temperatureSensors.length),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",0==a.temperatureSensors.length)}}var ba=function(){return{value:"I2C-Address"}};function _a(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",13),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",18),m["\u0275\u0275elementStart"](3,"div",19),m["\u0275\u0275elementStart"](4,"settings-ts-field",36),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",19),m["\u0275\u0275elementStart"](7,"settings-ts-field",36),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_humidity=e}),m["\u0275\u0275pipe"](8,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"div",18),m["\u0275\u0275elementStart"](10,"div",19),m["\u0275\u0275elementStart"](11,"settings-ts-field",36),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_air_pressure=e}),m["\u0275\u0275pipe"](12,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"div",19),m["\u0275\u0275elementStart"](14,"settings-ts-field",36),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_air_quality=e}),m["\u0275\u0275pipe"](15,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](16,"div",18),m["\u0275\u0275elementStart"](17,"div",19),m["\u0275\u0275elementStart"](18,"label",37),m["\u0275\u0275text"](19),m["\u0275\u0275pipe"](20,"translate"),m["\u0275\u0275pipe"](21,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](22,"input",38),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.offset=e}),m["\u0275\u0275pipe"](23,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](24,"div",19),m["\u0275\u0275element"](25,"label",39),m["\u0275\u0275pipe"](26,"translate"),m["\u0275\u0275elementStart"](27,"select",40),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.i2c_addr=e}),m["\u0275\u0275element"](28,"option",15),m["\u0275\u0275pipe"](29,"translate"),m["\u0275\u0275elementStart"](30,"option",32),m["\u0275\u0275text"](31,"0x76"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](32,"option",32),m["\u0275\u0275text"](33,"0x77"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](),i=r.index,o=r.$implicit,a=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](46,va,i%2==0)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](5,27,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",o.ts_field_temperature)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](8,29,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",o.ts_field_humidity)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](12,31,"settings.sensors.pressure"))("ts_field_id","ts_field_air_pressure")("ts_field",o.ts_field_air_pressure)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](15,33,"settings.sensors.quality"))("ts_field_id","ts_field_air_quality")("ts_field",o.ts_field_air_quality)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate2"]("",m["\u0275\u0275pipeBind1"](20,35,"settings.sensors.temperature")," ",m["\u0275\u0275pipeBind1"](21,37,"settings.sensors.offset")," [\xb0C]"),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](23,39,"settings.sensors.offset")),m["\u0275\u0275property"]("ngModel",o.offset),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](26,41,"settings.sensors.i2c_addr"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",o.i2c_addr),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](29,43,"buttons.select",m["\u0275\u0275pureFunction0"](48,ba))),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue","0x76"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue","0x77")}}function wa(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"sensors-weight-calibration",60),m["\u0275\u0275listener"]("closeModal",function(e){m["\u0275\u0275restoreView"](n);var t=m["\u0275\u0275nextContext"](2).index;return m["\u0275\u0275nextContext"]().showCalibration[t]=e})("calibrationChange",function(e){m["\u0275\u0275restoreView"](n);var t=m["\u0275\u0275nextContext"](2).$implicit;return t.offset=e.offset,t.reference_unit=e.reference_unit}),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](2).$implicit;m["\u0275\u0275property"]("sensor",r)}}var ka=function(e){return{field:e}};function Ca(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.required",m["\u0275\u0275pureFunction1"](6,ka,m["\u0275\u0275pipeBind1"](3,4,"settings.sensors.scale")))," "))}function xa(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.length",m["\u0275\u0275pureFunction1"](6,ka,m["\u0275\u0275pipeBind1"](3,4,"settings.sensors.scale")))," "))}function $a(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",61),m["\u0275\u0275template"](1,Ca,4,8,"div",28),m["\u0275\u0275template"](2,xa,4,8,"div",28),m["\u0275\u0275elementEnd"]()),2&e){m["\u0275\u0275nextContext"]();var n=m["\u0275\u0275reference"](40);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",(null==n?null:n.errors.min)||(null==n?null:n.errors.max))}}function Sa(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",10),m["\u0275\u0275elementStart"](1,"div",18),m["\u0275\u0275elementStart"](2,"div",19),m["\u0275\u0275element"](3,"label",62),m["\u0275\u0275elementStart"](4,"input",63),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).$implicit.compensation_value=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",19),m["\u0275\u0275element"](7,"label",64),m["\u0275\u0275elementStart"](8,"input",65),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).$implicit.compensation_temp=e}),m["\u0275\u0275pipe"](9,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"div",18),m["\u0275\u0275elementStart"](11,"div",66),m["\u0275\u0275elementStart"](12,"settings-ts-field",67),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).$implicit.ts_field_temperature=e}),m["\u0275\u0275pipe"](13,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](2).$implicit,i=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.sensors.compensationValue"),m["\u0275\u0275advance"](1),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](5,11,"settings.sensors.compensationValuePlaceholder")),m["\u0275\u0275property"]("ngModel",r.compensation_value),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.sensors.compensationTemp"),m["\u0275\u0275advance"](1),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](9,13,"settings.sensors.compensationTempPlaceholder")),m["\u0275\u0275property"]("ngModel",r.compensation_temp),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label",m["\u0275\u0275pipeBind1"](13,15,"settings.sensors.compensationSelectTemp"))("ts_field_id","ts_field_temperature")("ts_field",r.ts_field_temperature)("channels",i.settings.ts_channels)("required",!0)}}var Ea=function(){return{value:"Channel"}};function Oa(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",13),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",18),m["\u0275\u0275elementStart"](3,"div",19),m["\u0275\u0275elementStart"](4,"settings-gpio-field",12),m["\u0275\u0275listener"]("fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.pin_dt=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](5,"div",19),m["\u0275\u0275elementStart"](6,"settings-gpio-field",12),m["\u0275\u0275listener"]("fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.pin_sck=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"div",18),m["\u0275\u0275elementStart"](8,"div",19),m["\u0275\u0275elementStart"](9,"label",41),m["\u0275\u0275text"](10,"HX711 Channel"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](11,"select",42),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.channel=e}),m["\u0275\u0275element"](12,"option",15),m["\u0275\u0275pipe"](13,"translate"),m["\u0275\u0275elementStart"](14,"option",32),m["\u0275\u0275text"](15,"Channel A"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](16,"option",32),m["\u0275\u0275text"](17,"Channel B"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](18,"div",19),m["\u0275\u0275elementStart"](19,"settings-ts-field",22),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field=e}),m["\u0275\u0275pipe"](20,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"div",18),m["\u0275\u0275elementStart"](22,"div",43),m["\u0275\u0275elementStart"](23,"button",44),m["\u0275\u0275listener"]("click",function(){m["\u0275\u0275restoreView"](n);var e=m["\u0275\u0275nextContext"]().index;return m["\u0275\u0275nextContext"]().showCalibration[e]=!0}),m["\u0275\u0275text"](24),m["\u0275\u0275pipe"](25,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](26,wa,1,1,"sensors-weight-calibration",45),m["\u0275\u0275elementStart"](27,"div",19),m["\u0275\u0275elementStart"](28,"label",46),m["\u0275\u0275text"](29),m["\u0275\u0275pipe"](30,"translate"),m["\u0275\u0275pipe"](31,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](32,"input",47),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.offset=e}),m["\u0275\u0275pipe"](33,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](34,"div",19),m["\u0275\u0275elementStart"](35,"label",48),m["\u0275\u0275text"](36),m["\u0275\u0275pipe"](37,"translate"),m["\u0275\u0275pipe"](38,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](39,"input",49,50),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.reference_unit=e}),m["\u0275\u0275pipe"](41,"number"),m["\u0275\u0275pipe"](42,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](43,$a,3,2,"div",51),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](44,"div",18),m["\u0275\u0275elementStart"](45,"div",52),m["\u0275\u0275element"](46,"div",53),m["\u0275\u0275pipe"](47,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](48,"div",52),m["\u0275\u0275element"](49,"div",53),m["\u0275\u0275pipe"](50,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](51,"div",18),m["\u0275\u0275elementStart"](52,"div",29),m["\u0275\u0275elementStart"](53,"div",25),m["\u0275\u0275elementStart"](54,"input",54),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.invert=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](55,"label",55),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](56,"div",18),m["\u0275\u0275elementStart"](57,"div",29),m["\u0275\u0275elementStart"](58,"div",56),m["\u0275\u0275elementStart"](59,"input",57),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.compensation=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](60,"label",58),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](61,"div",29),m["\u0275\u0275template"](62,Sa,14,17,"div",59),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275reference"](40),i=m["\u0275\u0275nextContext"](),o=i.index,a=i.$implicit,u=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](66,va,o%2==0)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","GPIO DT")("field_id","pin_dt")("field",a.pin_dt)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction3"](68,da,u.settings.led_pin,u.settings.button_pin,u.settings.w1gpio)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("label","GPIO SCK")("field_id","pin_sck")("field",a.pin_sck)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction3"](72,da,u.settings.led_pin,u.settings.button_pin,u.settings.w1gpio)),m["\u0275\u0275advance"](5),m["\u0275\u0275property"]("ngModel",a.channel),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](13,40,"buttons.select",m["\u0275\u0275pureFunction0"](76,Ea))),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue","A"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue","B"),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](20,43,"settings.thingspeak.field"))("ts_field",a.ts_field)("channels",u.settings.ts_channels),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("disabled",!(a.pin_dt&&a.pin_sck&&a.channel)),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](25,45,"settings.sensors.calibration.guidedTour")," "),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",!0===u.showCalibration[o]),m["\u0275\u0275advance"](3),m["\u0275\u0275textInterpolate2"]("",m["\u0275\u0275pipeBind1"](30,47,"settings.sensors.weightcell")," ",m["\u0275\u0275pipeBind1"](31,49,"settings.sensors.offset"),""),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](33,51,"settings.sensors.offset")),m["\u0275\u0275property"]("ngModel",a.offset),m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate2"]("",m["\u0275\u0275pipeBind1"](37,53,"settings.sensors.weightcell")," ",m["\u0275\u0275pipeBind1"](38,55,"settings.sensors.scale"),""),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](42,60,"settings.sensors.scale")),m["\u0275\u0275property"]("ngModel",m["\u0275\u0275pipeBind2"](41,57,a.reference_unit,"1.0-4"))("min",1e-4)("max",999.9999),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("ngIf",r.invalid&&(r.dirty||r.touched)),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](47,62,"alerts.hx711.offset"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](50,64,"alerts.hx711.scale"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](5),m["\u0275\u0275property"]("ngModel",a.invert),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.sensors.invert"),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("ngModel",a.compensation),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.sensors.enableCompensation"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",a.compensation)}}var Ia=function(){return{value:"DHT"}};function Ta(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",13),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",18),m["\u0275\u0275elementStart"](3,"div",19),m["\u0275\u0275elementStart"](4,"settings-ts-field",36),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",19),m["\u0275\u0275elementStart"](7,"settings-ts-field",36),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_humidity=e}),m["\u0275\u0275pipe"](8,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"div",18),m["\u0275\u0275elementStart"](10,"div",19),m["\u0275\u0275elementStart"](11,"settings-gpio-field",12),m["\u0275\u0275listener"]("fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.pin=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](12,"div",19),m["\u0275\u0275element"](13,"label",68),m["\u0275\u0275elementStart"](14,"select",69),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.dht_type=e}),m["\u0275\u0275element"](15,"option",15),m["\u0275\u0275pipe"](16,"translate"),m["\u0275\u0275elementStart"](17,"option",32),m["\u0275\u0275text"](18,"DHT11"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"option",32),m["\u0275\u0275text"](20,"DHT22"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"option",32),m["\u0275\u0275text"](22,"AM2302"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](23,"div",18),m["\u0275\u0275elementStart"](24,"div",19),m["\u0275\u0275elementStart"](25,"label",70),m["\u0275\u0275text"](26),m["\u0275\u0275pipe"](27,"translate"),m["\u0275\u0275pipe"](28,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](29,"input",71),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.offset=e}),m["\u0275\u0275pipe"](30,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](),i=r.index,o=r.$implicit,a=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](38,va,i%2==0)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](5,25,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",o.ts_field_temperature)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](8,27,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",o.ts_field_humidity)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","GPIO")("field_id","pin")("field",o.pin)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction3"](40,da,a.settings.led_pin,a.settings.button_pin,a.settings.w1gpio)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.sensors.selectType"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",o.dht_type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](16,29,"buttons.select",m["\u0275\u0275pureFunction0"](44,Ia))),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",11),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",22),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",2302),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate2"]("",m["\u0275\u0275pipeBind1"](27,32,"settings.sensors.temperature")," ",m["\u0275\u0275pipeBind1"](28,34,"settings.sensors.offset")," [\xb0C]"),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](30,36,"settings.sensors.offset")),m["\u0275\u0275property"]("ngModel",o.offset)}}var ja=function(){return{value:"MAX"}};function Va(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",13),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",18),m["\u0275\u0275elementStart"](3,"div",19),m["\u0275\u0275elementStart"](4,"settings-gpio-field",12),m["\u0275\u0275listener"]("fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.pin_cs=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](5,"div",19),m["\u0275\u0275elementStart"](6,"settings-gpio-field",12),m["\u0275\u0275listener"]("fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.pin_clock=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"div",18),m["\u0275\u0275elementStart"](8,"div",19),m["\u0275\u0275elementStart"](9,"settings-gpio-field",12),m["\u0275\u0275listener"]("fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.pin=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"div",19),m["\u0275\u0275element"](11,"label",68),m["\u0275\u0275elementStart"](12,"select",72),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.max_type=e}),m["\u0275\u0275element"](13,"option",15),m["\u0275\u0275pipe"](14,"translate"),m["\u0275\u0275elementStart"](15,"option",32),m["\u0275\u0275text"](16,"MAX6675"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](17,"option",32),m["\u0275\u0275text"](18,"MAX31855"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"div",18),m["\u0275\u0275elementStart"](20,"div",19),m["\u0275\u0275elementStart"](21,"label",73),m["\u0275\u0275text"](22),m["\u0275\u0275pipe"](23,"translate"),m["\u0275\u0275pipe"](24,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](25,"input",74),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.offset=e}),m["\u0275\u0275pipe"](26,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](27,"div",19),m["\u0275\u0275elementStart"](28,"settings-ts-field",36),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field=e}),m["\u0275\u0275pipe"](29,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](),i=r.index,o=r.$implicit,a=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](41,va,i%2==0)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","Chip-Select (CS)-GPIO")("field_id","pin_cs")("field",o.pin_cs)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction3"](43,da,a.settings.led_pin,a.settings.button_pin,a.settings.w1gpio)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("label","Clock (CLK)-GPIO")("field_id","pin_clock")("field",o.pin_clock)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction3"](47,da,a.settings.led_pin,a.settings.button_pin,a.settings.w1gpio)),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","Daten (MISO)-GPIO")("field_id","pin_miso")("field",o.pin)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction3"](51,da,a.settings.led_pin,a.settings.button_pin,a.settings.w1gpio)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.sensors.selectType"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",o.max_type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](14,30,"buttons.select",m["\u0275\u0275pureFunction0"](55,ja))),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",6675),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",31855),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate2"]("",m["\u0275\u0275pipeBind1"](23,33,"settings.sensors.temperature")," ",m["\u0275\u0275pipeBind1"](24,35,"settings.sensors.offset")," [\xb0C]"),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](26,37,"settings.sensors.offset")),m["\u0275\u0275property"]("ngModel",o.offset),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](29,39,"settings.thingspeak.field"))("ts_field_id","ts_field")("ts_field",o.ts_field)("channels",a.settings.ts_channels)}}function Aa(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",13),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",18),m["\u0275\u0275elementStart"](3,"div",19),m["\u0275\u0275elementStart"](4,"settings-ts-field",36),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",19),m["\u0275\u0275elementStart"](7,"settings-ts-field",36),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_humidity=e}),m["\u0275\u0275pipe"](8,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"div",18),m["\u0275\u0275elementStart"](10,"div",19),m["\u0275\u0275elementStart"](11,"settings-ts-field",36),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_air_pressure=e}),m["\u0275\u0275pipe"](12,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"div",18),m["\u0275\u0275elementStart"](14,"div",19),m["\u0275\u0275elementStart"](15,"label",75),m["\u0275\u0275text"](16),m["\u0275\u0275pipe"](17,"translate"),m["\u0275\u0275pipe"](18,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"input",76),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.offset=e}),m["\u0275\u0275pipe"](20,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"div",19),m["\u0275\u0275element"](22,"label",39),m["\u0275\u0275pipe"](23,"translate"),m["\u0275\u0275elementStart"](24,"select",40),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.i2c_addr=e}),m["\u0275\u0275element"](25,"option",15),m["\u0275\u0275pipe"](26,"translate"),m["\u0275\u0275elementStart"](27,"option",32),m["\u0275\u0275text"](28,"0x76"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](29,"option",32),m["\u0275\u0275text"](30,"0x77"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](),i=r.index,o=r.$implicit,a=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](40,va,i%2==0)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](5,23,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",o.ts_field_temperature)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](8,25,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",o.ts_field_humidity)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](12,27,"settings.sensors.pressure"))("ts_field_id","ts_field_air_pressure")("ts_field",o.ts_field_air_pressure)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate2"]("",m["\u0275\u0275pipeBind1"](17,29,"settings.sensors.temperature")," ",m["\u0275\u0275pipeBind1"](18,31,"settings.sensors.offset")," [\xb0C]"),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](20,33,"settings.sensors.offset")),m["\u0275\u0275property"]("ngModel",o.offset),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](23,35,"settings.sensors.i2c_addr"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",o.i2c_addr),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](26,37,"buttons.select",m["\u0275\u0275pureFunction0"](42,ba))),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue","0x76"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue","0x77")}}var Pa=function(){return{value:"VCC"}};function Ma(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"select",81),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).$implicit.I2CVoltage=e}),m["\u0275\u0275element"](2,"option",79),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementStart"](4,"option",32),m["\u0275\u0275text"](5,"Max. 16.5V 3.3V\xd7(30k\u2126\xf77.5k\u2126+1) (default)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"option",32),m["\u0275\u0275text"](7,"Max. 25V 5V\xd7(30k\u2126\xf77.5k\u2126+1)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](8,"option",32),m["\u0275\u0275text"](9,"Max. 29.7V 3.3V\xd7(40k\u2126\xf75k\u2126+1)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"option",82),m["\u0275\u0275elementStart"](11,"em"),m["\u0275\u0275text"](12),m["\u0275\u0275pipe"](13,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementContainerEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](2).$implicit;m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",r.I2CVoltage),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](3,8,"buttons.select",m["\u0275\u0275pureFunction0"](13,Pa))),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",16.5),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",25),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",29.7),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",null),m["\u0275\u0275advance"](2),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](13,11,"settings.sensors.customValue"))}}function Na(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"div",83),m["\u0275\u0275elementStart"](2,"input",84),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).$implicit.I2CVoltage=e}),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](4,"div",85),m["\u0275\u0275elementStart"](5,"button",86),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).$implicit.I2CVoltage=void 0}),m["\u0275\u0275text"](6,"X"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementContainerEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](2).$implicit;m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](3,2,"settings.sensors.selectI2CVoltage_c")),m["\u0275\u0275property"]("ngModel",r.I2CVoltage)}}var Da=function(){return{value:"PIN"}},Ra=function(){return[void 0,16.5,25,29.7]};function Fa(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",13),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",18),m["\u0275\u0275elementStart"](3,"div",19),m["\u0275\u0275elementStart"](4,"settings-ts-field",36),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",19),m["\u0275\u0275element"](7,"label",77),m["\u0275\u0275elementStart"](8,"select",78),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.pin=e}),m["\u0275\u0275element"](9,"option",79),m["\u0275\u0275pipe"](10,"translate"),m["\u0275\u0275elementStart"](11,"option",32),m["\u0275\u0275text"](12,"AIN0"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"option",32),m["\u0275\u0275text"](14,"AIN1"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](15,"option",32),m["\u0275\u0275text"](16,"AIN2 (default)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](17,"option",32),m["\u0275\u0275text"](18,"AIN3"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"div",18),m["\u0275\u0275elementStart"](20,"div",19),m["\u0275\u0275element"](21,"label",80),m["\u0275\u0275template"](22,Ma,14,14,"ng-container",28),m["\u0275\u0275template"](23,Na,7,4,"ng-container",28),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](),i=r.index,o=r.$implicit,a=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](21,va,i%2==0)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](5,16,"settings.thingspeak.field"))("ts_field_id","ts_field")("ts_field",o.ts_field)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.sensors.selectPin"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",o.pin),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](10,18,"buttons.select",m["\u0275\u0275pureFunction0"](23,Da))),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",0),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",1),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",2),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",3),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("translate","settings.sensors.selectI2CVoltage"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",m["\u0275\u0275pureFunction0"](24,Ra).includes(o.I2CVoltage)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",!m["\u0275\u0275pureFunction0"](25,Ra).includes(o.I2CVoltage))}}function La(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",13),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",18),m["\u0275\u0275elementStart"](3,"div",19),m["\u0275\u0275elementStart"](4,"settings-ts-field",36),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",18),m["\u0275\u0275elementStart"](7,"div",19),m["\u0275\u0275elementStart"](8,"settings-ts-field",36),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=e}),m["\u0275\u0275pipe"](9,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"div",19),m["\u0275\u0275elementStart"](11,"settings-ts-field",36),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_air_pressure=e}),m["\u0275\u0275pipe"](12,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](),i=r.index,o=r.$implicit,a=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](19,va,i%2==0)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](5,13,"settings.sensors.co2"))("ts_field_id","ts_field_temperature")("ts_field",o.ts_field)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](9,15,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",o.ts_field_temperature)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](12,17,"settings.sensors.pressure"))("ts_field_id","ts_field_air_pressure")("ts_field",o.ts_field_air_pressure)("channels",a.settings.ts_channels)}}function Ba(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"tr",13),m["\u0275\u0275elementStart"](1,"td",3),m["\u0275\u0275elementStart"](2,"div",18),m["\u0275\u0275elementStart"](3,"div",19),m["\u0275\u0275elementStart"](4,"settings-ts-field",36),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_temperature=e}),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",19),m["\u0275\u0275elementStart"](7,"settings-ts-field",36),m["\u0275\u0275listener"]("ts_fieldChanged",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().$implicit.ts_field_humidity=e}),m["\u0275\u0275pipe"](8,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](),i=r.index,o=r.$implicit,a=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](13,va,i%2==0)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](5,9,"settings.sensors.temperature"))("ts_field_id","ts_field_temperature")("ts_field",o.ts_field_temperature)("channels",a.settings.ts_channels),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label","ThingSpeak "+m["\u0275\u0275pipeBind1"](8,11,"settings.sensors.humidity"))("ts_field_id","ts_field_humidity")("ts_field",o.ts_field_humidity)("channels",a.settings.ts_channels)}}var Ha=function(e){return{value:e}};function Ua(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"tr",13),m["\u0275\u0275elementStart"](2,"td"),m["\u0275\u0275elementStart"](3,"select",14),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.$implicit.type=e}),m["\u0275\u0275element"](4,"option",15),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275pipe"](6,"translate"),m["\u0275\u0275elementStart"](7,"option",15),m["\u0275\u0275text"](8,"Temperatursensor (DS18b20)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"option",15),m["\u0275\u0275text"](10,"Temperatur+Luftfeuchtigkeit+Luftdruck+Qualit\xe4t (BME680)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](11,"option",15),m["\u0275\u0275text"](12,"Temperatur+Luftfeuchtigkeit+Luftdruck (BME280)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"option",15),m["\u0275\u0275text"](14,"Gewichtssensor (A/D: HX711)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](15,"option",15),m["\u0275\u0275text"](16,"Luftfeuchtigkeit und Temperatur (DHT)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](17,"option",15),m["\u0275\u0275text"](18,"Temperatursensor (MAX6675/MAX31855)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"option",15),m["\u0275\u0275text"](20,"Voltmeter (A/D: PCF8591)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"option",15),m["\u0275\u0275text"](22,"CO2, Temp, Luftdruck (EE895)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](23,"option",15),m["\u0275\u0275text"](24,"Luftfeuchtigkeit und Temperatur (HDC1008)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](25,"option",15),m["\u0275\u0275text"](26,"Luftfeuchtigkeit und Temperatur (SHT31)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](27,"option",15),m["\u0275\u0275text"](28,"Luftfeuchtigkeit und Temperatur (AHT10)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](29,"td"),m["\u0275\u0275elementStart"](30,"button",16),m["\u0275\u0275listener"]("click",function(){m["\u0275\u0275restoreView"](n);var e=t.index;return m["\u0275\u0275nextContext"]().removeSensor(e)}),m["\u0275\u0275pipe"](31,"translate"),m["\u0275\u0275text"](32," \u232b "),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](33,ya,35,39,"tr",17),m["\u0275\u0275template"](34,_a,34,49,"tr",17),m["\u0275\u0275template"](35,Oa,63,77,"tr",17),m["\u0275\u0275template"](36,Ta,31,45,"tr",17),m["\u0275\u0275template"](37,Va,30,56,"tr",17),m["\u0275\u0275template"](38,Aa,31,43,"tr",17),m["\u0275\u0275template"](39,Fa,24,26,"tr",17),m["\u0275\u0275template"](40,La,13,21,"tr",17),m["\u0275\u0275template"](41,Ba,9,15,"tr",17),m["\u0275\u0275elementContainerEnd"]()}if(2&e){var r=t.$implicit,i=t.index;m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](43,va,i%2==0)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](5,36,"buttons.select",m["\u0275\u0275pureFunction1"](45,Ha,m["\u0275\u0275pipeBind1"](6,39,"settings.sensors.sensor")))),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngValue",0)("translate","settings.sensors.sensor_0"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",1)("translate","settings.sensors.sensor_1"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",5)("translate","settings.sensors.sensor_5"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",2)("translate","settings.sensors.sensor_2"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",3)("translate","settings.sensors.sensor_3"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",4)("translate","settings.sensors.sensor_4"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",6)("translate","settings.sensors.sensor_6"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",7)("translate","settings.sensors.sensor_7"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",8)("translate","settings.sensors.sensor_8"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",9)("translate","settings.sensors.sensor_9"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",10)("translate","settings.sensors.sensor_10"),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("title",m["\u0275\u0275pipeBind1"](31,41,"buttons.remove")),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",0==r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",1==r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",2==r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",3==r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",4==r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",5==r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",6==r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",7==r.type),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",8==r.type||9==r.type||10==r.type)}}var qa,Wa=((qa=function(){function e(t){g(this,e),this.appService=t,this.temperatureSensors=[],this.temperatureSensorWasFiltered=!1,this.showCalibration=[],this.settingsChange=new m.EventEmitter}return y(e,[{key:"ngOnInit",value:function(){this.getTemperatureSensors()}},{key:"addSensor",value:function(){this.settings.sensors.push(new Go)}},{key:"removeSensor",value:function(e){this.settings.sensors.splice(e,1)}},{key:"filterTemperatureSensors",value:function(e){var t=e.filter(function(e,t,n){return-1===e.indexOf("00000000")});return this.temperatureSensorWasFiltered=e.length!==t.length,t}},{key:"getTemperatureSensors",value:function(){var e=this;this.appService.getTemperatureSensors().subscribe(function(t){t&&(console.log("unfiltered",t),e.temperatureSensors=e.filterTemperatureSensors(t),console.log("filtered",e.temperatureSensors))},function(e){console.error(e)})}},{key:"isChecked",value:function(e){return e.pin>0}},{key:"changeCheck",value:function(e){return e.target.checked?9:0}},{key:"settings",set:function(e){this.settingsChange.emit(e),this._settings=e},get:function(){return this._settings}}]),e}()).\u0275fac=function(e){return new(e||qa)(m["\u0275\u0275directiveInject"](no))},qa.\u0275cmp=m["\u0275\u0275defineComponent"]({type:qa,selectors:[["app-sensors"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:31,vars:36,consts:[[1,"table","table-bordered","table-sm",2,"position","relative","overflow-x","hidden","overflow-y","auto"],["id","sensors"],[4,"ngFor","ngForOf"],["colspan","2"],[1,"btn","btn-primary",3,"title","click"],["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["data-toggle","collapse","href","#collapseSensor","role","button","aria-expanded","false","aria-controls","collapseSensor",1,"text-danger"],["id","collapseSensor",1,"collapse"],[1,"card","card-body"],[1,"form-group"],[3,"label","field_id","field","required","disabled_pins","fieldChanged"],[3,"ngClass"],["name","sensor-type","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue","translate"],[1,"btn","btn-danger","float-right",3,"title","click"],[3,"ngClass",4,"ngIf"],[1,"row"],[1,"form-group","col-12","col-sm-6"],["for","device_id"],["id","device_id","name","device_id","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"label","ts_field","channels","ts_fieldChanged"],["for","offset_ds18b20"],["type","number","step","0.1","id","offset_ds18b20","name","offset_ds18b20",1,"form-control",3,"ngModel","placeholder","ngModelChange"],[1,"form-group","form-check"],["type","checkbox","id","use_3V","name","use_3V",1,"form-check-input",3,"checked","change"],["for","use_3V",1,"form-check-label",3,"translate"],[4,"ngIf"],[1,"col-12"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-info",4,"ngIf"],[3,"ngValue"],["role","alert",1,"alert","alert-warning"],[1,"alert","alert-info"],[3,"routerLink","click"],[3,"label","ts_field_id","ts_field","channels","ts_fieldChanged"],["for","offset_bme680"],["type","number","step","0.1","id","offset_bme680","name","offset_bme680",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","i2c_addr",3,"innerHTML"],["id","i2c_addr","name","i2c_addr",1,"custom-select",3,"ngModel","ngModelChange"],["for","channel"],["name","channel","id","channel","required","",1,"custom-select",3,"ngModel","ngModelChange"],[1,"form-group","col-12"],[1,"btn","btn-sm","btn-outline-primary",2,"width","100%",3,"disabled","click"],["style","z-index:9999;position:absolute",3,"sensor","closeModal","calibrationChange",4,"ngIf"],["for","offset"],["type","number","step","1","id","offset","name","offset","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","reference_unit"],["type","number","step","0.0001","id","reference_unit","name","reference_unit","required","",1,"form-control",3,"ngModel","placeholder","min","max","ngModelChange"],["ref_unit","ngModel"],["class","alert alert-danger col-12","role","alert","style","margin-top:5px",4,"ngIf"],[1,"col-12","col-md-6"],[1,"alert","alert-info",3,"innerHTML"],["type","checkbox","name","invert","id","invert",1,"form-check-input",3,"ngModel","ngModelChange"],["for","invert",1,"form-check-label",3,"translate"],[1,"form-check"],["type","checkbox","id","compensation",1,"form-check-input",3,"ngModel","ngModelChange"],["for","compensation",1,"form-check-label",3,"translate"],["class","card card-body",4,"ngIf"],[2,"z-index","9999","position","absolute",3,"sensor","closeModal","calibrationChange"],["role","alert",1,"alert","alert-danger","col-12",2,"margin-top","5px"],["for","compensation_value",3,"translate"],["type","number","step","0.01","id","compensation_value","name","compensation_value","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","compensation_temp",3,"translate"],["type","number","step","0.01","id","compensation_temp","name","compensation_temp","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],[1,"col-12","col-sm-6"],[3,"label","ts_field_id","ts_field","channels","required","ts_fieldChanged"],["for","dht_type",3,"translate"],["id","dht_type","name","dht_type","required","",1,"custom-select",3,"ngModel","ngModelChange"],["for","offset_dht"],["type","number","step","0.1","id","offset_dht","name","offset_dht",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["id","max_type","name","max_type","required","",1,"custom-select",3,"ngModel","ngModelChange"],["for","offset_max"],["type","number","step","0.1","id","offset_max","name","offset",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","offset_bme280"],["type","number","step","0.1","id","offset_bme280","name","offset_bme280",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["for","pcf8591_pin",3,"translate"],["id","pcf8591_pin","name","pcf8591_pin","required","",1,"custom-select",3,"ngModel","ngModelChange"],["disabled","",3,"ngValue","translate"],["for","ic2_voltage",3,"translate"],["id","ic2_voltage","name","ic2_voltage","required","",1,"custom-select",3,"ngModel","ngModelChange"],[2,"font-style","italic",3,"ngValue"],[1,"input-group","mb-3"],["type","number","step","0.01","id","ic2_voltage_c","name","ic2_voltage_c",1,"form-control",3,"ngModel","placeholder","ngModelChange"],[1,"input-group-append"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"table",0),m["\u0275\u0275elementStart"](1,"tbody",1),m["\u0275\u0275template"](2,Ua,42,47,"ng-container",2),m["\u0275\u0275elementStart"](3,"tr"),m["\u0275\u0275elementStart"](4,"td",3),m["\u0275\u0275elementStart"](5,"button",4),m["\u0275\u0275listener"]("click",function(){return t.addSensor()}),m["\u0275\u0275pipe"](6,"translate"),m["\u0275\u0275text"](7),m["\u0275\u0275pipe"](8,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"div",5),m["\u0275\u0275elementStart"](10,"a",6),m["\u0275\u0275text"](11,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](12,"span",7),m["\u0275\u0275pipe"](13,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](14,"p"),m["\u0275\u0275elementStart"](15,"a",8),m["\u0275\u0275text"](16),m["\u0275\u0275pipe"](17,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](18,"div",9),m["\u0275\u0275elementStart"](19,"div",10),m["\u0275\u0275elementStart"](20,"div",11),m["\u0275\u0275elementStart"](21,"settings-gpio-field",12),m["\u0275\u0275listener"]("fieldChanged",function(e){return t.settings.led_pin=e}),m["\u0275\u0275pipe"](22,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](23,"div",11),m["\u0275\u0275elementStart"](24,"settings-gpio-field",12),m["\u0275\u0275listener"]("fieldChanged",function(e){return t.settings.button_pin=e}),m["\u0275\u0275pipe"](25,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](26,"div",5),m["\u0275\u0275elementStart"](27,"a",6),m["\u0275\u0275text"](28,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](29),m["\u0275\u0275pipe"](30,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngForOf",t.settings.sensors),m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate"]("title",m["\u0275\u0275pipeBind1"](6,16,"buttons.add")),m["\u0275\u0275advance"](2),m["\u0275\u0275textInterpolate1"](" + ",m["\u0275\u0275pipeBind1"](8,18,"settings.sensors.addSensor")," "),m["\u0275\u0275advance"](5),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](13,20,"alerts.gpio"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](17,22,"settings.sensors.advancedSettings")," "),m["\u0275\u0275advance"](5),m["\u0275\u0275property"]("label",m["\u0275\u0275pipeBind1"](22,24,"settings.sensors.ledPin"))("field_id","led_pin")("field",t.settings.led_pin)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction2"](30,ma,t.settings.button_pin,t.settings.w1gpio)),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("label",m["\u0275\u0275pipeBind1"](25,26,"settings.sensors.buttonPin"))("field_id","button_pin")("field",t.settings.button_pin)("required",!0)("disabled_pins",m["\u0275\u0275pureFunction2"](33,ma,t.settings.led_pin,t.settings.w1gpio)),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](30,28,"alerts.afterSave")," "))},directives:[b.k,Qo,b.j,qe.SelectControlValueAccessor,qe.RequiredValidator,qe.NgControlStatus,qe.NgModel,qe.NgSelectOption,qe["\u0275angular_packages_forms_forms_x"],Gi,b.l,ta,qe.NumberValueAccessor,qe.DefaultValueAccessor,Lr,vi.MinValidator,vi.MaxValidator,qe.CheckboxControlValueAccessor,la],pipes:[Ki,b.d],styles:[""]}),qa);function za(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"pre",8),m["\u0275\u0275text"](1),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](n.debugInfo)}}function Ga(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"li",12),m["\u0275\u0275elementStart"](1,"strong"),m["\u0275\u0275text"](2),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](4),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](),r=n.$implicit,i=n.index,o=m["\u0275\u0275nextContext"](3);m["\u0275\u0275propertyInterpolate1"]("id","abc_",r,""),m["\u0275\u0275advance"](2),m["\u0275\u0275textInterpolate2"]("",m["\u0275\u0275pipeBind1"](3,4,"settings.thingspeak.field")," ",i+1,""),m["\u0275\u0275advance"](2),m["\u0275\u0275textInterpolate1"](": ",o.thingSpeakFields["field"+(i+1)]," ")}}function Ka(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275template"](1,Ga,5,6,"li",11),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=t.index,r=m["\u0275\u0275nextContext"](3);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",r.thingSpeakFields["field"+(n+1)]||0===r.thingSpeakFields["field"+(n+1)])}}function Qa(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"ul",9),m["\u0275\u0275template"](1,Ka,2,1,"ng-container",10),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngForOf",n.numbers)}}function Za(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275template"](1,za,2,1,"pre",6),m["\u0275\u0275template"](2,Qa,2,1,"ul",7),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",n.debugInfo),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",n.thingSpeakFields)}}a("Xs6s");var Xa=function(e){return{tab:e}};function Ya(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",13),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",2),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind2"](4,1,"settings.measurement.noData",m["\u0275\u0275pureFunction1"](6,Xa,m["\u0275\u0275pipeBind1"](5,4,"settings.sensors.title"))),m["\u0275\u0275sanitizeHtml"]))}function Ja(e,t){1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"div",14),m["\u0275\u0275elementStart"](2,"div",15),m["\u0275\u0275elementStart"](3,"div",15),m["\u0275\u0275elementStart"](4,"div",15),m["\u0275\u0275element"](5,"div",15),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementContainerEnd"]())}var eu,tu=((eu=function(){function e(t){g(this,e),this.appService=t,this.isLoading=!1,this.noData=!1,this.numbers=Array(80).fill(0).map(function(e,t){return t})}return y(e,[{key:"ngOnInit",value:function(){}},{key:"getMeasurement",value:function(){var e=this;this.measurement=null,this.isLoading=!0,this.appService.getMeasurement().finally(function(){return e.isLoading=!1}).subscribe(function(t){console.log(t),t?(e.measurement=t,e.noData=!1):e.noData=!0},function(e){console.error(e)})}},{key:"debugInfo",get:function(){return this.measurement&&this.measurement.includes("{")?this.measurement.split("{")[0]:null}},{key:"thingSpeakFields",get:function(){if(this.measurement&&this.measurement.includes("{")){var e=this.measurement.split("{");return e="{"+e[e.length-1],JSON.parse(e)}return null}}]),e}()).\u0275fac=function(e){return new(e||eu)(m["\u0275\u0275directiveInject"](no))},eu.\u0275cmp=m["\u0275\u0275defineComponent"]({type:eu,selectors:[["app-measurement"]],decls:11,vars:13,consts:[["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],[4,"ngIf"],["class","alert alert-warning","role","alert",4,"ngIf"],["type","button","role","button",1,"btn","btn-primary","btn-sm",3,"disabled","translate","click"],["class","pre-scrollable",4,"ngIf"],["class","list-group",4,"ngIf"],[1,"pre-scrollable"],[1,"list-group"],[4,"ngFor","ngForOf"],["class","list-group-item",3,"id",4,"ngIf"],[1,"list-group-item",3,"id"],["role","alert",1,"alert","alert-warning"],["id","circle"],[1,"loader"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",2),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](6,Za,3,2,"ng-container",3),m["\u0275\u0275template"](7,Ya,6,8,"div",4),m["\u0275\u0275template"](8,Ja,6,0,"ng-container",3),m["\u0275\u0275element"](9,"br"),m["\u0275\u0275elementStart"](10,"button",5),m["\u0275\u0275listener"]("click",function(){return t.getMeasurement()}),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind2"](4,6,"settings.measurement.info",m["\u0275\u0275pureFunction1"](11,Xa,m["\u0275\u0275pipeBind1"](5,9,"settings.sensors.title"))),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",t.measurement),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.noData&&!t.measurement),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.isLoading),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("disabled",t.isLoading)("translate","settings.measurement.get"))},directives:[b.l,Gi,b.k],pipes:[Ki],styles:["#circle[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:150px;height:150px}.loader[_ngcontent-%COMP%]{width:calc(100% - 0px);height:calc(100% - 0px);border:8px solid #f7f7f7;border-top-color:#ffc107;border-radius:50%;-webkit-animation:rotate 5s linear infinite;animation:rotate 5s linear infinite}@-webkit-keyframes rotate{to{transform:rotate(1turn)}}@keyframes rotate{to{transform:rotate(1turn)}}"]}),eu),nu=function(e){return{tab:e}};function ru(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",17),m["\u0275\u0275elementStart"](1,"a",3),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",4),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind2"](4,1,"settings.offline.noData",m["\u0275\u0275pureFunction1"](6,nu,m["\u0275\u0275pipeBind1"](5,4,"settings.thingspeak.title"))),m["\u0275\u0275sanitizeHtml"]))}function iu(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"div",19),m["\u0275\u0275elementStart"](2,"div",20),m["\u0275\u0275elementStart"](3,"a",21),m["\u0275\u0275text"](4),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"button",22),m["\u0275\u0275listener"]("click",function(){m["\u0275\u0275restoreView"](n);var e=m["\u0275\u0275nextContext"]().$implicit;return m["\u0275\u0275nextContext"]().deleteCsv(e.ts_channel_id)}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]().$implicit,i=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](3),m["\u0275\u0275propertyInterpolate2"]("href","",i.apiURL,"offlinecsv.php?channelId=",r.ts_channel_id,"",m["\u0275\u0275sanitizeUrl"]),m["\u0275\u0275propertyInterpolate1"]("download","HoneyPi-",r.ts_channel_id,"-export.csv"),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate3"](" ",m["\u0275\u0275pipeBind1"](5,7,"settings.offline.exportButton")," #",r.ts_channel_id," ",r.name," "),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.offline.delete")}}function ou(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275template"](1,iu,7,9,"div",18),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=t.$implicit;m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",n.ts_channel_id)}}var au,uu=((au=function(){function e(t){g(this,e),this.appService=t,this.settingsChange=new m.EventEmitter}return y(e,[{key:"ngOnInit",value:function(){this.apiURL="./backend/"}},{key:"deleteCsv",value:function(e){this.appService.deleteCsv(e).subscribe(function(e){},function(e){console.error(e)})}},{key:"settings",set:function(e){this.settingsChange.emit(e),this._settings=e},get:function(){return this._settings}},{key:"isThingSpeakDefined",get:function(){return 0===this.settings.ts_channels.filter(function(e){return e.ts_channel_id>0}).length}}]),e}()).\u0275fac=function(e){return new(e||au)(m["\u0275\u0275directiveInject"](no))},au.\u0275cmp=m["\u0275\u0275defineComponent"]({type:au,selectors:[["app-offline"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:23,vars:22,consts:[[1,"row"],[1,"col-12"],["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],[1,"form-check"],["type","radio","name","offline","id","offline0",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline0",1,"form-check-label",3,"translate"],["type","radio","name","offline","id","offline1",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline1",1,"form-check-label",3,"translate"],["type","radio","name","offline","id","offline2",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline2",1,"form-check-label",3,"translate"],["type","radio","name","offline","id","offline3",1,"form-check-input",3,"value","ngModel","checked","ngModelChange"],["for","offline3",1,"form-check-label",3,"translate"],[1,"h5",3,"translate"],["class","alert alert-warning","role","alert",4,"ngIf"],[4,"ngFor","ngForOf"],["role","alert",1,"alert","alert-warning"],["class","row",4,"ngIf"],[1,"col-12",2,"padding-bottom","15px"],["role","group",1,"btn-group","btn-group-sm"],["target","_blank",1,"btn","btn-primary","btn-sm",3,"href","download"],["type","button","role","button",1,"btn","btn-danger","btn-sm",3,"translate","click"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"div",1),m["\u0275\u0275elementStart"](2,"div",2),m["\u0275\u0275elementStart"](3,"a",3),m["\u0275\u0275text"](4,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](5,"span",4),m["\u0275\u0275pipe"](6,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"div",5),m["\u0275\u0275elementStart"](8,"input",6),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.offline=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](9,"label",7),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"div",5),m["\u0275\u0275elementStart"](11,"input",8),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.offline=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](12,"label",9),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"div",5),m["\u0275\u0275elementStart"](14,"input",10),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.offline=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](15,"label",11),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](16,"div",5),m["\u0275\u0275elementStart"](17,"input",12),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.offline=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](18,"label",13),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](19,"hr"),m["\u0275\u0275element"](20,"h5",14),m["\u0275\u0275template"](21,ru,6,8,"div",15),m["\u0275\u0275template"](22,ou,2,1,"ng-container",16)),2&e&&(m["\u0275\u0275advance"](5),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](6,20,"settings.offline.infoExport"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("value",0)("ngModel",t.settings.offline)("checked",0==t.settings.offline||null==t.settings.offline),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.offline.radio0"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",1)("ngModel",t.settings.offline)("checked",1==t.settings.offline),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.offline.radio1"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",2)("ngModel",t.settings.offline)("checked",2==t.settings.offline),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.offline.radio2"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("value",3)("ngModel",t.settings.offline)("checked",3==t.settings.offline),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.offline.radio3"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.offline.export"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.isThingSpeakDefined),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngForOf",t.settings.ts_channels))},directives:[qe.RadioControlValueAccessor,qe.DefaultValueAccessor,qe.NgControlStatus,qe.NgModel,Gi,b.l,b.k],pipes:[Ki],styles:[""]}),au);function su(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"pre",11),m["\u0275\u0275text"](1),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](n.log)}}function lu(e,t){1&e&&m["\u0275\u0275element"](0,"div",12),2&e&&m["\u0275\u0275property"]("translate","settings.log.nofile")}function cu(e,t){1&e&&m["\u0275\u0275element"](0,"div",12),2&e&&m["\u0275\u0275property"]("translate","settings.log.empty")}var du,fu=function(e){return{value:e}},hu=((du=function(){function e(t){g(this,e),this.appService=t,this.log=null,this.settingsChange=new m.EventEmitter}return y(e,[{key:"ngOnInit",value:function(){this.getLog()}},{key:"getLog",value:function(){var e=this;this.log=null,this.appService.getLog().subscribe(function(t){e.log=t},function(e){console.error(e)})}},{key:"deleteLog",value:function(){var e=this;this.appService.deleteLog().subscribe(function(t){e.log=t},function(e){console.error(e)})}},{key:"settings",set:function(e){this.settingsChange.emit(e),this._settings=e},get:function(){return this._settings}}]),e}()).\u0275fac=function(e){return new(e||du)(m["\u0275\u0275directiveInject"](no))},du.\u0275cmp=m["\u0275\u0275defineComponent"]({type:du,selectors:[["app-log"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:26,vars:22,consts:[[1,"row"],[1,"col-12"],["for","debuglevel",3,"translate"],["id","debuglevel","name","debuglevel",1,"custom-select",3,"ngModel","ngModelChange"],["disabled","",3,"ngValue","translate"],[3,"ngValue"],["class","pre-scrollable",4,"ngIf"],["class","alert alert-info",3,"translate",4,"ngIf"],["role","group",1,"btn-group","btn-group-sm"],["type","button","role","button",1,"btn","btn-primary","btn-sm",3,"translate","click"],["type","button","role","button",1,"btn","btn-danger","btn-sm",3,"translate","click"],[1,"pre-scrollable"],[1,"alert","alert-info",3,"translate"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"div",1),m["\u0275\u0275element"](2,"label",2),m["\u0275\u0275elementStart"](3,"select",3),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.debuglevel=e}),m["\u0275\u0275element"](4,"option",4),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275pipe"](6,"translate"),m["\u0275\u0275elementStart"](7,"option",5),m["\u0275\u0275text"](8,"NOTSET"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"option",5),m["\u0275\u0275text"](10,"DEBUG: No restarts, all logs."),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](11,"option",5),m["\u0275\u0275text"](12,"INFO: Logging successfull connections."),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"option",5),m["\u0275\u0275text"](14,"WARNING: No HDMI output. (default)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](15,"option",5),m["\u0275\u0275text"](16,"ERROR"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](17,"option",5),m["\u0275\u0275text"](18,"CRITICAL"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](19,"hr"),m["\u0275\u0275template"](20,su,2,1,"pre",6),m["\u0275\u0275template"](21,lu,1,1,"div",7),m["\u0275\u0275template"](22,cu,1,1,"div",7),m["\u0275\u0275elementStart"](23,"div",8),m["\u0275\u0275elementStart"](24,"button",9),m["\u0275\u0275listener"]("click",function(){return t.getLog()}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](25,"button",10),m["\u0275\u0275listener"]("click",function(){return t.deleteLog()}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.sensors.debugSelect"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",t.settings.debuglevel),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](5,15,"buttons.select",m["\u0275\u0275pureFunction1"](20,fu,m["\u0275\u0275pipeBind1"](6,18,"settings.sensors.debuglevel")))),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngValue",0),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",10),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",20),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",30),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",40),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",50),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",t.log&&"NOFILE"!==t.log),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf","NOFILE"===t.log),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",""==t.log),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.log.get"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.log.delete"))},directives:[Gi,qe.SelectControlValueAccessor,qe.NgControlStatus,qe.NgModel,qe.NgSelectOption,qe["\u0275angular_packages_forms_forms_x"],b.l],pipes:[Ki],styles:[""]}),du);function pu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",23),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",2),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.updateAP"),m["\u0275\u0275sanitizeHtml"]))}function vu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",24),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",2),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.updateNotAP"),m["\u0275\u0275sanitizeHtml"]))}function gu(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"pre",25),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"json"),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"]("Error-Code: ",m["\u0275\u0275pipeBind1"](2,1,n.log),"")}}function mu(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275text"](1),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate2"]("rpi-scripts ",n.versionInfo.result.scripts.tag_name,"\nChangelog:\n",n.versionInfo.result.scripts.body,"")}}function yu(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275text"](1),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate2"]("\nrpi-webinterface ",n.versionInfo.result.webinterface.tag_name,"\nChangelog:\n",n.versionInfo.result.webinterface.body,"")}}function bu(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"pre",25),m["\u0275\u0275text"](2),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"br"),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](3);m["\u0275\u0275advance"](2),m["\u0275\u0275textInterpolate"](n.versionInfo.result.currentVersion)}}function _u(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",26),m["\u0275\u0275elementStart"](1,"b"),m["\u0275\u0275text"](2,"Derzeit installierte Version:"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](3,bu,4,1,"ng-container",22),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",n.versionInfo.result.currentVersion)}}function wu(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",8),m["\u0275\u0275elementStart"](1,"div",26),m["\u0275\u0275elementStart"](2,"b"),m["\u0275\u0275text"](3,"Vef\xfcgbare Versionen:"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](4,"br"),m["\u0275\u0275elementStart"](5,"pre",25),m["\u0275\u0275template"](6,mu,2,2,"ng-container",22),m["\u0275\u0275text"](7,"\n"),m["\u0275\u0275template"](8,yu,2,2,"ng-container",22),m["\u0275\u0275text"](9,"\n"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](10,_u,4,1,"div",27),m["\u0275\u0275elementEnd"]()),2&e){var n=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](6),m["\u0275\u0275property"]("ngIf",n.versionInfo.result.scripts),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",n.versionInfo.result.webinterface),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",n.versionInfo.result.currentVersion)}}function ku(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"button",28),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().update("update")}),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275property"]("disabled",r.isLoading)("translate","settings.update.update")}}function Cu(e,t){1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"div",29),m["\u0275\u0275elementStart"](2,"div",30),m["\u0275\u0275elementStart"](3,"div",30),m["\u0275\u0275elementStart"](4,"div",30),m["\u0275\u0275element"](5,"div",30),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementContainerEnd"]())}var xu,$u=((xu=function(){function e(t){g(this,e),this.appService=t,this.log=null,this.isLoading=!1,this.versionInfo=null,this.usePreVersion=!1}return y(e,[{key:"ngOnInit",value:function(){this.apiURL="./backend/"}},{key:"update",value:function(e){var t=this;this.log=null,this.isLoading=!0,this.appService.checkInternet().timeout(15e3).subscribe(function(n){!0===n.connected?t.appService.update(e,t.usePreVersion).finally(function(){return t.isLoading=!1}).subscribe(function(e){console.log(e),t.log=e,window.confirm("Erfolgreich aktualisiert. Die Seite muss aktualisiert werden. Jetzt neuladen?")&&location.reload(!0)},function(e){console.error(e)}):(t.isLoading=!1,alert("No internet connection. Try again with internet connection."))},function(e){console.log(e),t.isLoading=!1,alert("No internet connection. Try again with internet connection.")})}},{key:"getVersionInfo",value:function(){var e=this;this.versionInfo=null,this.log=null,this.isLoading=!0,this.appService.checkInternet().timeout(15e3).subscribe(function(t){!0===t.connected?e.appService.update("versionInfo",e.usePreVersion).finally(function(){return e.isLoading=!1}).subscribe(function(t){try{if(e.versionInfo=t,e.log=null,e.versionInfo.error)throw new Error("Exception occured: "+e.versionInfo.error)}catch(n){console.error(n),e.log=n,e.versionInfo=null}},function(t){e.versionInfo=null,console.error(t),e.log=t,t.name&&"TimeoutError"===t.name?e.log="TimeoutError.":t.name&&"HttpErrorResponse"===t.name&&(e.log="HttpErrorResponse.")}):(e.isLoading=!1,alert("No internet connection. Try again with internet connection."))},function(t){console.log(t),e.isLoading=!1,alert("No internet connection. Try again with internet connection.")})}},{key:"onFileChanged",value:function(e){var t=this,n=e.target.files[0];if(console.log(n),n){var r=new FileReader;r.readAsText(n,"UTF-8"),r.onload=function(e){var n=JSON.parse(e.target.result);n&&window.confirm("Soll die Datei jetzt importiert werden?")&&t.appService.setSettings(n).subscribe(function(e){e&&(console.log(e),window.confirm("Erfolgreich gespeichert. Die Seite muss aktualisiert werden. Jetzt neuladen?")&&location.reload(!0))})},r.onerror=function(e){window.alert("Error reading file.")}}}},{key:"isAccessPoint",get:function(){return"192.168.4.1"===window.location.hostname}}]),e}()).\u0275fac=function(e){return new(e||xu)(m["\u0275\u0275directiveInject"](no))},xu.\u0275cmp=m["\u0275\u0275defineComponent"]({type:xu,selectors:[["app-update"]],decls:28,vars:18,consts:[["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-success","role","alert",4,"ngIf"],[1,"h5",3,"translate"],["class","pre-scrollable",4,"ngIf"],["class","row",4,"ngIf"],[1,"row"],[1,"col-12"],[1,"form-group","form-check"],["type","checkbox","name","usePreVersion","id","usePreVersion",1,"form-check-input",3,"ngModel","ngModelChange"],["for","usePreVersion",1,"form-check-label",3,"translate"],["type","button","role","button",1,"btn","btn-primary","btn-sm","mr-1","mt-1",3,"disabled","translate","click"],["class","btn btn-warning btn-sm mt-1","type","button","role","button",3,"disabled","translate","click",4,"ngIf"],[1,"form-group"],["for","settingsFile",3,"translate"],["type","file","id","settingsFile","name","settingsFile","accept","application/json,.json",1,"form-control-file",3,"change"],["fileInput",""],["role","group",1,"btn-group","btn-group-sm"],["href","./backend/settings.json","target","_blank","download","settings-backup.json",1,"btn","btn-primary","btn-sm",3,"translate"],["type","button","role","button",1,"btn","btn-warning","btn-sm",3,"translate","click"],[4,"ngIf"],["role","alert",1,"alert","alert-warning"],["role","alert",1,"alert","alert-success"],[1,"pre-scrollable"],[1,"col-12","col-sm-6"],["class","col-12 col-sm-6",4,"ngIf"],["type","button","role","button",1,"btn","btn-warning","btn-sm","mt-1",3,"disabled","translate","click"],["id","circle"],[1,"loader"]],template:function(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"a",1),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",2),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](5,pu,5,3,"div",3),m["\u0275\u0275template"](6,vu,5,3,"div",4),m["\u0275\u0275element"](7,"h5",5),m["\u0275\u0275template"](8,gu,3,3,"pre",6),m["\u0275\u0275template"](9,wu,11,3,"div",7),m["\u0275\u0275elementStart"](10,"div",8),m["\u0275\u0275elementStart"](11,"div",9),m["\u0275\u0275elementStart"](12,"div",10),m["\u0275\u0275elementStart"](13,"input",11),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.usePreVersion=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](14,"label",12),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](15,"p"),m["\u0275\u0275elementStart"](16,"button",13),m["\u0275\u0275listener"]("click",function(){return t.getVersionInfo()}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](17,ku,1,2,"button",14),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](18,"hr"),m["\u0275\u0275element"](19,"h5",5),m["\u0275\u0275elementStart"](20,"div",15),m["\u0275\u0275element"](21,"label",16),m["\u0275\u0275elementStart"](22,"input",17,18),m["\u0275\u0275listener"]("change",function(e){return t.onFileChanged(e)}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](24,"div",19),m["\u0275\u0275element"](25,"a",20),m["\u0275\u0275elementStart"](26,"button",21),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275reference"](23).click()}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](27,Cu,6,0,"ng-container",22)}2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,16,"alerts.updateInfo"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",t.isAccessPoint),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",!t.isAccessPoint),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.update.title"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.log),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.versionInfo),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("ngModel",t.usePreVersion),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.update.usePreVersion"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("disabled",t.isLoading)("translate","settings.update.preupdate"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.versionInfo),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.update.export"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","settings.log.importSettings"),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("translate","settings.log.export"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.log.import"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.isLoading))},directives:[b.l,Gi,qe.CheckboxControlValueAccessor,qe.NgControlStatus,qe.NgModel],pipes:[Ki,b.f],styles:["#circle[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:150px;height:150px}.loader[_ngcontent-%COMP%]{width:calc(100% - 0px);height:calc(100% - 0px);border:8px solid #f7f7f7;border-top-color:#ffc107;border-radius:50%;-webkit-animation:rotate 5s linear infinite;animation:rotate 5s linear infinite}@-webkit-keyframes rotate{to{transform:rotate(1turn)}}@keyframes rotate{to{transform:rotate(1turn)}}"]}),xu);function Su(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",11),m["\u0275\u0275elementStart"](1,"input",12),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().settings.wittyPi.normal.shutdownAfterTransfer=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](2,"label",13),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",r.settings.wittyPi.normal.shutdownAfterTransfer),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](3,2,"settings.sensors.shutdownAfterTransfer"),m["\u0275\u0275sanitizeHtml"])}}function Eu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",14),m["\u0275\u0275elementStart"](1,"a",15),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",16),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.shutdownAfterTransfer"),m["\u0275\u0275sanitizeHtml"]))}function Ou(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"button",28),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).installWittyPi(2)}),m["\u0275\u0275text"](1,"WittyPi 2 installieren"),m["\u0275\u0275elementEnd"]()}}function Iu(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"button",28),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).installWittyPi(3)}),m["\u0275\u0275text"](1,"WittyPi 3 installieren"),m["\u0275\u0275elementEnd"]()}}function Tu(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"option",4),m["\u0275\u0275text"](1),m["\u0275\u0275elementEnd"]()),2&e){var n=t.$implicit;m["\u0275\u0275property"]("ngValue",n.script),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](n.name)}}function ju(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",36),m["\u0275\u0275elementStart"](1,"a",15),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",16),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"error.wittypinotwait"),m["\u0275\u0275sanitizeHtml"]))}function Vu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",36),m["\u0275\u0275elementStart"](1,"a",15),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",16),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"error.wittypiwait"),m["\u0275\u0275sanitizeHtml"]))}function Au(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"div",19),m["\u0275\u0275elementStart"](2,"div",29),m["\u0275\u0275elementStart"](3,"select",30),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).selectedExampleNormal=e})("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).settings.wittyPi.normal.schedule=e}),m["\u0275\u0275element"](4,"option",31),m["\u0275\u0275template"](5,Tu,2,2,"option",32),m["\u0275\u0275element"](6,"option",33),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"div",0),m["\u0275\u0275elementStart"](8,"textarea",34),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).settings.wittyPi.normal.schedule=e}),m["\u0275\u0275pipe"](9,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](10,ju,5,3,"div",35),m["\u0275\u0275template"](11,Vu,5,3,"div",35),m["\u0275\u0275elementContainerEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngModel",r.selectedExampleNormal),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("value",null)("translate","settings.wittypi.loadexample"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngForOf",r.exampleScriptsNormal),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("value","")("translate","settings.wittypi.empty"),m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](9,10,"settings.wittypi.script")),m["\u0275\u0275property"]("ngModel",r.settings.wittyPi.normal.schedule),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",r.showWarningForMissingWait(r.settings.wittyPi.normal)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",r.showWarningForWait(r.settings.wittyPi.normal))}}var Pu=function(e){return{field:e}};function Mu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.required",m["\u0275\u0275pureFunction1"](6,Pu,m["\u0275\u0275pipeBind1"](3,4,"settings.wittypi.voltageLow")))," "))}function Nu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.length",m["\u0275\u0275pureFunction1"](6,Pu,m["\u0275\u0275pipeBind1"](3,4,"settings.wittypi.voltageLow")))," "))}function Du(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",52),m["\u0275\u0275template"](1,Mu,4,8,"div",10),m["\u0275\u0275template"](2,Nu,4,8,"div",10),m["\u0275\u0275elementEnd"]()),2&e){m["\u0275\u0275nextContext"]();var n=m["\u0275\u0275reference"](8);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",(null==n?null:n.errors.min)||(null==n?null:n.errors.max))}}function Ru(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.required",m["\u0275\u0275pureFunction1"](6,Pu,m["\u0275\u0275pipeBind1"](3,4,"settings.wittypi.voltageNormal")))," "))}function Fu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind2"](2,1,"error.length",m["\u0275\u0275pureFunction1"](6,Pu,m["\u0275\u0275pipeBind1"](3,4,"settings.wittypi.voltageNormal")))," "))}function Lu(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"div",52),m["\u0275\u0275template"](1,Ru,4,8,"div",10),m["\u0275\u0275template"](2,Fu,4,8,"div",10),m["\u0275\u0275elementEnd"]()),2&e){m["\u0275\u0275nextContext"]();var n=m["\u0275\u0275reference"](15);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",null==n?null:n.errors.required),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",(null==n?null:n.errors.min)||(null==n?null:n.errors.max))}}function Bu(e,t){if(1&e&&(m["\u0275\u0275elementStart"](0,"option",4),m["\u0275\u0275text"](1),m["\u0275\u0275elementEnd"]()),2&e){var n=t.$implicit;m["\u0275\u0275property"]("ngValue",n.script),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](n.name)}}function Hu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",36),m["\u0275\u0275elementStart"](1,"a",15),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",16),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"error.wittypinotwait"),m["\u0275\u0275sanitizeHtml"]))}function Uu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",36),m["\u0275\u0275elementStart"](1,"a",15),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",16),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"error.wittypiwait"),m["\u0275\u0275sanitizeHtml"]))}function qu(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"div",19),m["\u0275\u0275elementStart"](2,"div",29),m["\u0275\u0275elementStart"](3,"select",30),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](3).selectedExampleLow=e})("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](3).settings.wittyPi.low.schedule=e}),m["\u0275\u0275element"](4,"option",31),m["\u0275\u0275template"](5,Bu,2,2,"option",32),m["\u0275\u0275element"](6,"option",33),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"div",0),m["\u0275\u0275elementStart"](8,"textarea",53),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](3).settings.wittyPi.low.schedule=e}),m["\u0275\u0275pipe"](9,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](10,Hu,5,3,"div",35),m["\u0275\u0275template"](11,Uu,5,3,"div",35),m["\u0275\u0275elementContainerEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](3);m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngModel",r.selectedExampleLow),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("value",null)("translate","settings.wittypi.loadexample"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngForOf",r.exampleScriptsLow),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("value","")("translate","settings.wittypi.empty"),m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](9,10,"settings.wittypi.script")),m["\u0275\u0275property"]("ngModel",r.settings.wittyPi.low.schedule),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",r.showWarningForMissingWait(r.settings.wittyPi.low)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",r.showWarningForWait(r.settings.wittyPi.low))}}function Wu(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",11),m["\u0275\u0275elementStart"](1,"input",54),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](3).settings.wittyPi.low.shutdownAfterTransfer=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](2,"label",55),m["\u0275\u0275pipe"](3,"translate"),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](3);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",r.settings.wittyPi.low.shutdownAfterTransfer),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](3,2,"settings.sensors.shutdownAfterTransfer"),m["\u0275\u0275sanitizeHtml"])}}function zu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",14),m["\u0275\u0275elementStart"](1,"a",15),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",16),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.shutdownAfterTransfer"),m["\u0275\u0275sanitizeHtml"]))}var Gu=function(e){return{value:e}};function Ku(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",37),m["\u0275\u0275elementStart"](1,"div",38),m["\u0275\u0275elementStart"](2,"div",39),m["\u0275\u0275elementStart"](3,"div",40),m["\u0275\u0275elementStart"](4,"label",41),m["\u0275\u0275text"](5),m["\u0275\u0275pipe"](6,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"input",42,43),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).settings.wittyPi.low.voltage=e}),m["\u0275\u0275pipe"](9,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"div",40),m["\u0275\u0275elementStart"](11,"label",44),m["\u0275\u0275text"](12),m["\u0275\u0275pipe"](13,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](14,"input",45,46),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).settings.wittyPi.normal.voltage=e}),m["\u0275\u0275pipe"](16,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](17,Du,3,2,"div",47),m["\u0275\u0275template"](18,Lu,3,2,"div",47),m["\u0275\u0275elementStart"](19,"div",7),m["\u0275\u0275elementStart"](20,"input",48),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).settings.wittyPi.low.enabled=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](21,"label",49),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](22,qu,12,12,"ng-container",10),m["\u0275\u0275element"](23,"hr"),m["\u0275\u0275elementStart"](24,"div",0),m["\u0275\u0275elementStart"](25,"label",50),m["\u0275\u0275text"](26,">"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](27,"select",51),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).settings.wittyPi.low.interval=e}),m["\u0275\u0275element"](28,"option",3),m["\u0275\u0275pipe"](29,"translate"),m["\u0275\u0275pipe"](30,"translate"),m["\u0275\u0275elementStart"](31,"option",4),m["\u0275\u0275text"](32,"1min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](33,"option",4),m["\u0275\u0275text"](34,"5min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](35,"option",4),m["\u0275\u0275text"](36,"10min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](37,"option",4),m["\u0275\u0275text"](38,"15min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](39,"option",4),m["\u0275\u0275text"](40,"30min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](41,"option",4),m["\u0275\u0275text"](42,"60min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](43,"option",4),m["\u0275\u0275text"](44,"2h"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](45,"option",4),m["\u0275\u0275text"](46,"3h"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](47,"option",4),m["\u0275\u0275text"](48,"4h"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](49,"option",4),m["\u0275\u0275text"](50),m["\u0275\u0275pipe"](51,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](52,"option",4),m["\u0275\u0275text"](53),m["\u0275\u0275pipe"](54,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](55,Wu,4,4,"div",5),m["\u0275\u0275template"](56,zu,5,3,"div",6),m["\u0275\u0275elementStart"](57,"div",14),m["\u0275\u0275elementStart"](58,"a",15),m["\u0275\u0275text"](59,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275text"](60),m["\u0275\u0275pipe"](61,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275reference"](8),i=m["\u0275\u0275reference"](15),o=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate1"]("",m["\u0275\u0275pipeBind1"](6,35,"settings.wittypi.voltageLow")," [V]"),m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](9,37,"settings.wittypi.voltage")),m["\u0275\u0275property"]("min",0)("max",o.settings.wittyPi.normal.voltage)("ngModel",o.settings.wittyPi.low.voltage),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate1"]("",m["\u0275\u0275pipeBind1"](13,39,"settings.wittypi.voltageNormal")," [V]"),m["\u0275\u0275advance"](2),m["\u0275\u0275propertyInterpolate"]("placeholder",m["\u0275\u0275pipeBind1"](16,41,"settings.wittypi.voltage")),m["\u0275\u0275property"]("min",o.settings.wittyPi.low.voltage)("max",100)("ngModel",o.settings.wittyPi.normal.voltage),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",r.invalid&&(r.dirty||r.touched)),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",i.invalid&&(i.dirty||i.touched)),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",o.settings.wittyPi.low.enabled),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.wittypi.enableLowMode"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",o.settings.wittyPi.low.enabled),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.wittypi.voltageLowInterval"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",o.settings.wittyPi.low.interval),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](29,43,"buttons.select",m["\u0275\u0275pureFunction1"](54,Gu,m["\u0275\u0275pipeBind1"](30,46,"settings.sensors.interval")))),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngValue",60),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",300),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",600),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",900),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",1800),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",3600),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",7200),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",10800),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",14400),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",1),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](51,48,"settings.sensors.measurementOnce")),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",0),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](54,50,"settings.sensors.measurementNone")),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",1===o.settings.wittyPi.low.interval),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",1===o.settings.wittyPi.low.interval&&!0===o.settings.wittyPi.low.shutdownAfterTransfer),m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](61,52,"alerts.afterSaveOrManualStart")," ")}}function Qu(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",14),m["\u0275\u0275elementStart"](1,"a",15),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",16),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.dummyload"),m["\u0275\u0275sanitizeHtml"]))}function Zu(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275element"](1,"label",56),m["\u0275\u0275elementStart"](2,"select",57),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"](2).settings.wittyPi.dummyload=e}),m["\u0275\u0275element"](3,"option",3),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementStart"](6,"option",4),m["\u0275\u0275text"](7,"No Dummyload - disabled (default)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](8,"option",4),m["\u0275\u0275text"](9,"10ms"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"option",4),m["\u0275\u0275text"](11,"15ms (most used)"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](12,"option",4),m["\u0275\u0275text"](13,"20ms"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](14,"option",4),m["\u0275\u0275text"](15,"50ms"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](16,"option",4),m["\u0275\u0275text"](17,"100ms"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.sensors.dummyload"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngModel",r.settings.wittyPi.dummyload),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](4,10,"buttons.select",m["\u0275\u0275pureFunction1"](15,Gu,m["\u0275\u0275pipeBind1"](5,13,"settings.sensors.dummyloadTimespan")))),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngValue",0),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",10),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",15),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",20),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",50),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",100)}}function Xu(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div"),m["\u0275\u0275elementStart"](1,"div",14),m["\u0275\u0275elementStart"](2,"a",15),m["\u0275\u0275text"](3,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](4,"span",16),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",0),m["\u0275\u0275elementStart"](7,"label",17),m["\u0275\u0275text"](8,">"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"select",18),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().settings.wittyPi.version=e}),m["\u0275\u0275element"](10,"option",3),m["\u0275\u0275pipe"](11,"translate"),m["\u0275\u0275pipe"](12,"translate"),m["\u0275\u0275elementStart"](13,"option",4),m["\u0275\u0275text"](14,"WittyPi Version 2"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](15,"option",4),m["\u0275\u0275text"](16,"WittyPi Version 3"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](17,"div",19),m["\u0275\u0275elementStart"](18,"div",20),m["\u0275\u0275template"](19,Ou,2,0,"button",21),m["\u0275\u0275template"](20,Iu,2,0,"button",21),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"div",7),m["\u0275\u0275elementStart"](22,"input",22),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().settings.wittyPi.normal.enabled=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](23,"label",23),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](24,Au,12,12,"ng-container",10),m["\u0275\u0275elementStart"](25,"div",7),m["\u0275\u0275elementStart"](26,"input",24),m["\u0275\u0275listener"]("ngModelChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().settings.wittyPi.voltagecheck_enabled=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](27,"label",25),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](28,Ku,62,56,"div",26),m["\u0275\u0275element"](29,"hr"),m["\u0275\u0275template"](30,Qu,5,3,"div",6),m["\u0275\u0275template"](31,Zu,18,17,"div",27),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](5,19,"alerts.wittypi"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","settings.wittypi.version"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",r.settings.wittyPi.version),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](11,21,"buttons.select",m["\u0275\u0275pureFunction1"](26,Gu,m["\u0275\u0275pipeBind1"](12,24,"settings.sensors.version")))),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngValue",2),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",3),m["\u0275\u0275advance"](2),m["\u0275\u0275classProp"]("spinner",r.isLoading),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",2===r.settings.wittyPi.version),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",3===r.settings.wittyPi.version),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",r.settings.wittyPi.normal.enabled),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.wittypi.enableNormalMode"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",r.settings.wittyPi.normal.enabled),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",r.settings.wittyPi.voltagecheck_enabled),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.wittypi.enableVoltageCheck"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",r.settings.wittyPi.voltagecheck_enabled),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",3===r.settings.wittyPi.version),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",3===r.settings.wittyPi.version)}}var Yu,Ju=((Yu=function(){function e(t,n){g(this,e),this.appService=t,this.translate=n,this.exampleScriptsNormal=[{name:"Anschalten alle 30Minuten",script:"BEGIN 2015-08-01 08:00:00\nEND 2025-07-31 18:00:00\nON M5 WAIT\nOFF M25"},{name:"Anschalten alle 15min",script:"BEGIN 2015-08-01 00:00:00 \nEND 2025-07-31 23:59:59 \nON M5 WAIT\nOFF M10"},{name:"7-19Uhr alle 30min, 19-7h st\xfcndliches Anschalten",script:"BEGIN 2015-08-01 07:00:00\nEND 2025-07-31 23:59:59\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M25\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\nON M5 WAIT\nOFF M55\n"}],this.exampleScriptsLow=[{name:"T\xe4glich um 6 Uhr anschalten",script:"BEGIN 2020-03-01 06:00:00\nEND 2025-12-31 00:00:00\nON M5 WAIT\nOFF H23 M55"},{name:"Alle 8h anschalten",script:"BEGIN 2020-03-01 06:00:00\nEND 2025-12-31 00:00:00\nON M5 WAIT\nOFF H7 M55\nON M5 WAIT\nOFF H7 M55\nON M5 WAIT\nOFF H7 M55"}],this.selectedExampleNormal=null,this.selectedExampleLow=null,this.settingsChange=new m.EventEmitter}return y(e,[{key:"ngOnInit",value:function(){}},{key:"installWittyPi",value:function(e){var t=this;this.isLoading=!0,this.translate.get("settings.confirm.installWittyPi").subscribe(function(n){window.confirm(n)?t.appService.checkInternet().timeout(15e3).subscribe(function(n){!0===n.connected?t.appService.update("installWittyPi",!1,"&version="+e).finally(function(){return t.isLoading=!1}).subscribe(function(e){console.log(e),alert("Erfolgreich. Der Raspberry muss jetzt von dir neugestartet werden.")},function(e){console.error(e),alert("Error while installing WittyPi. Try again.")}):(t.isLoading=!1,alert("No internet connection. Try again with internet connection."))},function(e){console.log(e),t.isLoading=!1,alert("No internet connection. Try again with internet connection.")}):t.isLoading=!1})}},{key:"showWarningForMissingWait",value:function(e){return 1===e.interval&&!0===e.shutdownAfterTransfer&&-1===e.schedule.indexOf("WAIT")}},{key:"showWarningForWait",value:function(e){return(!0!==e.shutdownAfterTransfer||1!==e.interval)&&-1!==e.schedule.indexOf("WAIT")}},{key:"settings",set:function(e){this.settingsChange.emit(e),this._settings=e},get:function(){return this._settings}}]),e}()).\u0275fac=function(e){return new(e||Yu)(m["\u0275\u0275directiveInject"](no),m["\u0275\u0275directiveInject"](zi))},Yu.\u0275cmp=m["\u0275\u0275defineComponent"]({type:Yu,selectors:[["app-wittypi"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},decls:37,vars:33,consts:[[1,"form-group"],["for","interval",3,"translate"],["id","interval","name","interval","required","",1,"custom-select",3,"ngModel","ngModelChange"],[3,"ngValue","translate"],[3,"ngValue"],["class","form-group form-check",4,"ngIf"],["class","alert alert-info","role","alert",4,"ngIf"],[1,"form-check"],["type","checkbox","id","wittyPi",1,"form-check-input",3,"ngModel","ngModelChange"],["for","wittyPi",1,"form-check-label",3,"translate"],[4,"ngIf"],[1,"form-group","form-check"],["type","checkbox","name","shutdownAfterTransfer","id","shutdownAfterTransfer",1,"form-check-input",3,"ngModel","ngModelChange"],["for","shutdownAfterTransfer",1,"form-check-label",3,"innerHTML"],["role","alert",1,"alert","alert-info"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["for","version",3,"translate"],["id","version","name","version","required","",1,"custom-select",3,"ngModel","ngModelChange"],[1,"clearfix"],["role","group",1,"btn-group","btn-group-sm","float-right"],["class","btn btn-outline-warning btn-sm","type","button","role","button",3,"click",4,"ngIf"],["type","checkbox","id","normal_enabled",1,"form-check-input",3,"ngModel","ngModelChange"],["for","normal_enabled",1,"form-check-label",3,"translate"],["type","checkbox","id","wittyPi_voltage",1,"form-check-input",3,"ngModel","ngModelChange"],["for","wittyPi_voltage",1,"form-check-label",3,"translate"],["class","collapse show","id","collapseVolltageCheck",4,"ngIf"],["class","form-group",4,"ngIf"],["type","button","role","button",1,"btn","btn-outline-warning","btn-sm",3,"click"],[1,"form-group","float-right"],[1,"form-control",2,"max-width","250px",3,"ngModel","ngModelChange"],["disabled","",2,"display","none",3,"value","translate"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"value","translate"],["id","normal_schedule","rows","5","name","normal_schedule",1,"form-control","pre-scrollable",3,"placeholder","ngModel","ngModelChange"],["class","alert alert-warning","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-warning"],["id","collapseVolltageCheck",1,"collapse","show"],[1,"card","card-body"],[1,"row"],[1,"form-group","col-12","col-sm-6"],["for","low_voltage"],["type","number","step","0.1","id","low_voltage","name","low_voltage","required","",1,"form-control",3,"min","max","ngModel","placeholder","ngModelChange"],["lowVoltage","ngModel"],["for","normal_voltage"],["type","number","step","0.1","id","normal_voltage","name","normal_voltage","required","",1,"form-control",3,"min","max","ngModel","placeholder","ngModelChange"],["normalVoltage","ngModel"],["class","alert alert-danger",4,"ngIf"],["type","checkbox","id","low_enabled",1,"form-check-input",3,"ngModel","ngModelChange"],["for","low_enabled",1,"form-check-label",3,"translate"],["for","low_interval",3,"translate"],["id","low_interval","name","low_interval","required","",1,"custom-select",3,"ngModel","ngModelChange"],[1,"alert","alert-danger"],["id","low_schedule","rows","5","name","low_schedule",1,"form-control","pre-scrollable",3,"placeholder","ngModel","ngModelChange"],["type","checkbox","name","low_shutdownAfterTransfer","id","low_shutdownAfterTransfer",1,"form-check-input",3,"ngModel","ngModelChange"],["for","low_shutdownAfterTransfer",1,"form-check-label",3,"innerHTML"],["for","dummyload",3,"translate"],["id","dummyload","name","dummyload",1,"custom-select",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",0),m["\u0275\u0275elementStart"](1,"label",1),m["\u0275\u0275text"](2,">"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](3,"select",2),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.wittyPi.normal.interval=e}),m["\u0275\u0275element"](4,"option",3),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275pipe"](6,"translate"),m["\u0275\u0275elementStart"](7,"option",4),m["\u0275\u0275text"](8,"1min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](9,"option",4),m["\u0275\u0275text"](10,"5min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](11,"option",4),m["\u0275\u0275text"](12,"10min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"option",4),m["\u0275\u0275text"](14,"15min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](15,"option",4),m["\u0275\u0275text"](16,"30min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](17,"option",4),m["\u0275\u0275text"](18,"60min"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](19,"option",4),m["\u0275\u0275text"](20,"2h"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](21,"option",4),m["\u0275\u0275text"](22,"3h"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](23,"option",4),m["\u0275\u0275text"](24,"4h"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](25,"option",4),m["\u0275\u0275text"](26),m["\u0275\u0275pipe"](27,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](28,"option",4),m["\u0275\u0275text"](29),m["\u0275\u0275pipe"](30,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](31,Su,4,4,"div",5),m["\u0275\u0275template"](32,Eu,5,3,"div",6),m["\u0275\u0275elementStart"](33,"div",7),m["\u0275\u0275elementStart"](34,"input",8),m["\u0275\u0275listener"]("ngModelChange",function(e){return t.settings.wittyPi.enabled=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](35,"label",9),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](36,Xu,32,28,"div",10)),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.sensors.measurementInterval"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",t.settings.wittyPi.normal.interval),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngValue",void 0)("translate",m["\u0275\u0275pipeBind2"](5,22,"buttons.select",m["\u0275\u0275pureFunction1"](31,Gu,m["\u0275\u0275pipeBind1"](6,25,"settings.sensors.interval")))),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngValue",60),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",300),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",600),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",900),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",1800),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",3600),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",7200),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",10800),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",14400),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",1),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](27,27,"settings.sensors.measurementOnce")),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngValue",0),m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate"](m["\u0275\u0275pipeBind1"](30,29,"settings.sensors.measurementNone")),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",1===t.settings.wittyPi.normal.interval),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",1===t.settings.wittyPi.normal.interval&&!0===t.settings.wittyPi.normal.shutdownAfterTransfer),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngModel",t.settings.wittyPi.enabled),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("translate","settings.wittypi.enableWitty"),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.settings.wittyPi.enabled))},directives:[Gi,qe.SelectControlValueAccessor,qe.RequiredValidator,qe.NgControlStatus,qe.NgModel,qe.NgSelectOption,qe["\u0275angular_packages_forms_forms_x"],b.l,qe.CheckboxControlValueAccessor,b.k,qe.DefaultValueAccessor,qe.NumberValueAccessor,vi.MinValidator,vi.MaxValidator],pipes:[Ki],styles:[""]}),Yu);function es(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",42),m["\u0275\u0275elementStart"](1,"a",43),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",44),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.notAP"),m["\u0275\u0275sanitizeHtml"]))}function ts(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",45),m["\u0275\u0275text"](1),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementStart"](3,"div",46),m["\u0275\u0275elementStart"](4,"button",6),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().saveSettings()}),m["\u0275\u0275text"](5,"Speichern"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"button",47),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().undoChanges()}),m["\u0275\u0275text"](7,"\xc4nderungen verwerfen"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](8,"div",8),m["\u0275\u0275elementEnd"]()}2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](2,3,"alerts.changedSettings")," "),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("translate","buttons.save"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","buttons.undo"))}function ns(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",48),m["\u0275\u0275elementStart"](1,"a",43),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",44),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.saved"),m["\u0275\u0275sanitizeHtml"]))}function rs(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"div",49),m["\u0275\u0275elementStart"](1,"a",43),m["\u0275\u0275text"](2,"\xd7"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](3,"span",44),m["\u0275\u0275pipe"](4,"translate"),m["\u0275\u0275elementEnd"]()),2&e&&(m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](4,1,"alerts.errorSaving"),m["\u0275\u0275sanitizeHtml"]))}function is(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementStart"](0,"div",14),m["\u0275\u0275elementStart"](1,"div",50),m["\u0275\u0275elementStart"](2,"h5",16),m["\u0275\u0275elementStart"](3,"button",51),m["\u0275\u0275text"](4),m["\u0275\u0275pipe"](5,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"div",52),m["\u0275\u0275elementStart"](7,"div",19),m["\u0275\u0275elementStart"](8,"app-wittypi",20),m["\u0275\u0275listener"]("settingsChange",function(e){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().settings=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](4),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](5,2,"settings.wittypi.title")," "),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("settings",r.settings)}}function os(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"p"),m["\u0275\u0275element"](1,"img",62),m["\u0275\u0275elementEnd"]())}function as(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"p"),m["\u0275\u0275element"](1,"img",63),m["\u0275\u0275elementEnd"]())}function us(e,t){if(1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275element"](1,"p",44),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275template"](3,os,2,0,"p",41),m["\u0275\u0275template"](4,as,2,0,"p",41),m["\u0275\u0275elementContainerEnd"]()),2&e){var n=m["\u0275\u0275nextContext"](2);m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](2,3,"settings.connectionerror.stayconnectedAP"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf","Android"===n.getMobileOperatingSystem()),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf","iOS"===n.getMobileOperatingSystem())}}function ss(e,t){1&e&&(m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275element"](1,"p",44),m["\u0275\u0275pipe"](2,"translate"),m["\u0275\u0275elementContainerEnd"]()),2&e&&(m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](2,1,"settings.connectionerror.stayconnectedNotAP"),m["\u0275\u0275sanitizeHtml"]))}function ls(e,t){1&e&&m["\u0275\u0275element"](0,"div",64)}var cs=function(){return{display:"block"}};function ds(e,t){if(1&e){var n=m["\u0275\u0275getCurrentView"]();m["\u0275\u0275elementContainerStart"](0),m["\u0275\u0275elementStart"](1,"div",53),m["\u0275\u0275elementStart"](2,"div",54),m["\u0275\u0275elementStart"](3,"div",55),m["\u0275\u0275elementStart"](4,"div",56),m["\u0275\u0275elementStart"](5,"h5",57),m["\u0275\u0275text"](6,"Verbindung fehlgeschlagen"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](7,"div",58),m["\u0275\u0275elementStart"](8,"div",44),m["\u0275\u0275pipe"](9,"translate"),m["\u0275\u0275text"](10," Die Bienenstockwaage ist gerade nicht erreichbar. "),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](11,us,5,5,"ng-container",41),m["\u0275\u0275template"](12,ss,3,3,"ng-container",41),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](13,"div",59),m["\u0275\u0275elementStart"](14,"button",60),m["\u0275\u0275listener"]("click",function(){return m["\u0275\u0275restoreView"](n),m["\u0275\u0275nextContext"]().getSettings()}),m["\u0275\u0275text"](15,"Erneut versuchen"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](16,ls,1,0,"div",61),m["\u0275\u0275elementContainerEnd"]()}if(2&e){var r=m["\u0275\u0275nextContext"]();m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngStyle",!r.isConnected&&m["\u0275\u0275pureFunction0"](12,cs)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("translate","settings.connectionerror.title"),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("innerHTML",m["\u0275\u0275pipeBind1"](9,10,"settings.connectionerror.body"),m["\u0275\u0275sanitizeHtml"]),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",r.isAccessPoint),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",!r.isAccessPoint),m["\u0275\u0275advance"](2),m["\u0275\u0275classProp"]("spinner",r.isLoading),m["\u0275\u0275property"]("disabled",r.isLoading)("translate","buttons.tryagain"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("ngIf",!r.isConnected)}}var fs=function(e){return{container:e}};function hs(e){return new Zi(e,"./assets/i18n/translations_",".json")}var ps,vs,gs=[{path:"",component:(ps=function(){function e(t,n){g(this,e),this.appService=t,this.translate=n,this.settings=new so,this.settingsSaved=!1,this.settingsError=!1,this.isConnected=!0,this.isLoading=!1,this.enableWittyPi=!0,this.modalEnabled=!0}return y(e,[{key:"processSettings",value:function(t){this.settings=e.validateSettings(t),this.saveSettingsBackup(this.settings)}},{key:"saveSettingsBackup",value:function(t){this.settingsBackup=e.deepCopy(t),console.log(this.settingsBackup)}},{key:"undoChanges",value:function(){this.settings=e.deepCopy(this.settingsBackup)}},{key:"getMobileOperatingSystem",value:function(){var e=navigator.userAgent||navigator.vendor||window.opera;return/windows phone/i.test(e)?"Windows Phone":/android/i.test(e)?"Android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"iOS":"unknown"}},{key:"ngOnInit",value:function(){this.getSettings(),this.innerWidth=window.innerWidth}},{key:"hideAlertsTimer",value:function(){var e=this;this.n&&clearTimeout(this.n),this.n=window.setTimeout(function(){e.settingsSaved=!1,e.settingsError=!1},4e3)}},{key:"getSettings",value:function(){var e=this;this.isLoading=!0,this.appService.getSettings().timeout(3e3).finally(function(){return e.isLoading=!1}).subscribe(function(t){t&&(e.processSettings(t),e.isConnected=!0)},function(t){console.error(t,t.name),!t.name||"TimeoutError"!==t.name&&"HttpErrorResponse"!==t.name||(e.isConnected=!1)})}},{key:"saveSettings",value:function(){var e=this;this.appService.setSettings(this.settings).timeout(5e3).subscribe(function(t){console.log(t),t&&e.processSettings(t),e.settingsSaved=!0,e.settingsError=!1,e.hideAlertsTimer(),e.isAccessPoint||e.translate.get("settings.confirm.savedAP").subscribe(function(t){window.confirm(t)&&e.boot("reboot")})},function(t){console.error(t),!t.name||"TimeoutError"!==t.name&&"HttpErrorResponse"!==t.name||(e.isConnected=!1),e.settingsError=!0,e.hideAlertsTimer()})}},{key:"askForReboot",value:function(){var e=this;this.translate.get("settings.confirm.reboot").subscribe(function(t){window.confirm(t)&&e.boot("reboot")})}},{key:"askForShutdown",value:function(){var e=this;this.translate.get("settings.confirm.shutdown").subscribe(function(t){window.confirm(t)&&e.boot("shutdown")})}},{key:"boot",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"reboot";this.isConnected=!1,this.appService.boot(t).timeout(3e3).subscribe(function(e){console.log(e)},function(t){console.error(t,t.name),!t.name||"TimeoutError"!==t.name&&"HttpErrorResponse"!==t.name||(console.log("Boot: Connection timeout."),e.isConnected=!1)},function(){window.location.reload(!0)})}},{key:"onResize",value:function(e){this.innerWidth=window.innerWidth}},{key:"isAccessPoint",get:function(){return"192.168.4.1"===window.location.hostname}},{key:"isSettingsChanged",get:function(){return JSON.stringify(this.settings)!==JSON.stringify(this.settingsBackup)}}],[{key:"validateSettings",value:function(e){return e.ts_channels||(e.ts_channels=[],e.ts_channels.push(new lo)),e.internet||(e.internet=new ro),e.sensors||(e.sensors=[]),e}},{key:"deepCopy",value:function(e){return JSON.parse(JSON.stringify(e))}}]),e}(),ps.\u0275fac=function(e){return new(e||ps)(m["\u0275\u0275directiveInject"](no),m["\u0275\u0275directiveInject"](zi))},ps.\u0275cmp=m["\u0275\u0275defineComponent"]({type:ps,selectors:[["app-settings"]],hostBindings:function(e,t){1&e&&m["\u0275\u0275listener"]("resize",function(e){return t.onResize(e)},!1,m["\u0275\u0275resolveWindow"])},decls:83,vars:39,consts:[["role","main",3,"ngClass"],[1,"jumbotron"],[1,"float-right"],["role","group","aria-label","Controls",1,"btn-group","btn-group-sm"],["type","button",1,"btn","btn-sm","btn-secondary",3,"translate","click"],["type","button",1,"btn","btn-sm","btn-warning",3,"translate","click"],["type","button",1,"btn","btn-sm","btn-primary",3,"translate","click"],[1,"h1",3,"translate"],[1,"clearfix"],["class","alert alert-warning","role","alert","style","margin-top:5px",4,"ngIf"],["class","alert alert-info","role","alert",4,"ngIf"],["class","alert alert-success myAlert-top","role","alert",4,"ngIf"],["class","alert alert-danger myAlert-top","role","alert",4,"ngIf"],["id","accordion"],[1,"card"],["id","headingOne",1,"card-header"],[1,"mb-0"],["data-toggle","collapse","data-target","#collapseOne","aria-expanded","true","aria-controls","collapseOne",1,"btn","btn-link","collapsed"],["id","collapseOne","aria-labelledby","headingOne","data-parent","#accordion",1,"collapse"],[1,"card-body"],[3,"settings","settingsChange"],["id","headingTwo",1,"card-header"],["data-toggle","collapse","data-target","#collapseTwo","aria-expanded","false","aria-controls","collapseTwo",1,"btn","btn-link","collapsed"],["id","collapseTwo","aria-labelledby","headingTwo","data-parent","#accordion",1,"collapse"],[3,"wifi","wifiChange"],["id","headingThree",1,"card-header"],["data-toggle","collapse","data-target","#collapseThree","aria-expanded","false","aria-controls","collapseThree",1,"btn","btn-link","collapsed"],["id","collapseThree","aria-labelledby","headingThree","data-parent","#accordion",1,"collapse"],["id","headingFour",1,"card-header"],["data-toggle","collapse","data-target","#collapseFour","aria-expanded","false","aria-controls","collapseFour",1,"btn","btn-link","collapsed"],["id","collapseFour","aria-labelledby","headingFour","data-parent","#accordion",1,"collapse"],["id","headingEight",1,"card-header"],["data-toggle","collapse","data-target","#collapseEight","aria-expanded","false","aria-controls","collapseEight",1,"btn","btn-link","collapsed"],["id","collapseEight","aria-labelledby","headingEight","data-parent","#accordion",1,"collapse"],["id","headingFive",1,"card-header"],["data-toggle","collapse","data-target","#collapseFive","aria-expanded","false","aria-controls","collapseFive",1,"btn","btn-link","collapsed"],["id","collapseFive","aria-labelledby","headingFive","data-parent","#accordion",1,"collapse"],["id","headingSeven",1,"card-header"],["data-toggle","collapse","data-target","#collapseSeven","aria-expanded","false","aria-controls","collapseSeven",1,"btn","btn-link","collapsed"],["id","collapseSeven","aria-labelledby","headingSeven","data-parent","#accordion",1,"collapse"],["class","card",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-warning",2,"margin-top","5px"],["href","#","data-dismiss","alert","aria-label","close",1,"close"],[3,"innerHTML"],["role","alert",1,"alert","alert-info"],["role","group","aria-label","Controls",1,"btn-group","btn-group-sm","float-right"],["type","button",1,"btn","btn-sm","btn-info",3,"translate","click"],["role","alert",1,"alert","alert-success","myAlert-top"],["role","alert",1,"alert","alert-danger","myAlert-top"],["id","headingSix",1,"card-header"],["data-toggle","collapse","data-target","#collapseSix","aria-expanded","false","aria-controls","collapseSix",1,"btn","btn-link","collapsed"],["id","collapseSix","aria-labelledby","headingSix","data-parent","#accordion",1,"collapse"],["tabindex","0","role","dialog",1,"modal","fade","show",3,"ngStyle"],["role","document",1,"modal-dialog",2,"overflow-y","initial"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"translate"],[1,"modal-body",2,"max-height","250px","overflow-y","auto"],[1,"modal-footer"],["type","button",1,"btn","btn-primary",3,"disabled","translate","click"],["class","modal-backdrop fade show",4,"ngIf"],["src","assets/images/screenshot-stayconnected-Android.png","alt","Screenshot",1,"rounded","img-fluid"],["src","assets/images/screenshot-stayconnected-iOS.jpeg","alt","Screenshot",1,"rounded","img-fluid"],[1,"modal-backdrop","fade","show"]],template:function(e,t){1&e&&(m["\u0275\u0275elementStart"](0,"main",0),m["\u0275\u0275elementStart"](1,"div",1),m["\u0275\u0275elementStart"](2,"div",2),m["\u0275\u0275elementStart"](3,"div",3),m["\u0275\u0275elementStart"](4,"button",4),m["\u0275\u0275listener"]("click",function(){return t.askForReboot()}),m["\u0275\u0275text"](5,"Neustarten"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](6,"button",5),m["\u0275\u0275listener"]("click",function(){return t.askForShutdown()}),m["\u0275\u0275text"](7,"Ausschalten"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](8,"button",6),m["\u0275\u0275listener"]("click",function(){return t.saveSettings()}),m["\u0275\u0275text"](9,"Speichern"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](10,"h1",7),m["\u0275\u0275text"](11,"Wartungsmodus"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275element"](12,"div",8),m["\u0275\u0275template"](13,es,5,3,"div",9),m["\u0275\u0275template"](14,ts,9,5,"div",10),m["\u0275\u0275template"](15,ns,5,3,"div",11),m["\u0275\u0275template"](16,rs,5,3,"div",12),m["\u0275\u0275elementStart"](17,"div",13),m["\u0275\u0275elementStart"](18,"div",14),m["\u0275\u0275elementStart"](19,"div",15),m["\u0275\u0275elementStart"](20,"h5",16),m["\u0275\u0275elementStart"](21,"button",17),m["\u0275\u0275text"](22),m["\u0275\u0275pipe"](23,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](24,"div",18),m["\u0275\u0275elementStart"](25,"div",19),m["\u0275\u0275elementStart"](26,"app-thingspeak",20),m["\u0275\u0275listener"]("settingsChange",function(e){return t.settings=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](27,"div",14),m["\u0275\u0275elementStart"](28,"div",21),m["\u0275\u0275elementStart"](29,"h5",16),m["\u0275\u0275elementStart"](30,"button",22),m["\u0275\u0275text"](31),m["\u0275\u0275pipe"](32,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](33,"div",23),m["\u0275\u0275elementStart"](34,"div",19),m["\u0275\u0275elementStart"](35,"app-internet",24),m["\u0275\u0275listener"]("wifiChange",function(e){return t.settings.internet=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](36,"div",14),m["\u0275\u0275elementStart"](37,"div",25),m["\u0275\u0275elementStart"](38,"h5",16),m["\u0275\u0275elementStart"](39,"button",26),m["\u0275\u0275text"](40),m["\u0275\u0275pipe"](41,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](42,"div",27),m["\u0275\u0275elementStart"](43,"div",19),m["\u0275\u0275elementStart"](44,"app-sensors",20),m["\u0275\u0275listener"]("settingsChange",function(e){return t.settings=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](45,"div",14),m["\u0275\u0275elementStart"](46,"div",28),m["\u0275\u0275elementStart"](47,"h5",16),m["\u0275\u0275elementStart"](48,"button",29),m["\u0275\u0275text"](49),m["\u0275\u0275pipe"](50,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](51,"div",30),m["\u0275\u0275elementStart"](52,"div",19),m["\u0275\u0275element"](53,"app-measurement"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](54,"div",14),m["\u0275\u0275elementStart"](55,"div",31),m["\u0275\u0275elementStart"](56,"h5",16),m["\u0275\u0275elementStart"](57,"button",32),m["\u0275\u0275text"](58),m["\u0275\u0275pipe"](59,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](60,"div",33),m["\u0275\u0275elementStart"](61,"div",19),m["\u0275\u0275elementStart"](62,"app-offline",20),m["\u0275\u0275listener"]("settingsChange",function(e){return t.settings=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](63,"div",14),m["\u0275\u0275elementStart"](64,"div",34),m["\u0275\u0275elementStart"](65,"h5",16),m["\u0275\u0275elementStart"](66,"button",35),m["\u0275\u0275text"](67),m["\u0275\u0275pipe"](68,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](69,"div",36),m["\u0275\u0275elementStart"](70,"div",19),m["\u0275\u0275elementStart"](71,"app-log",20),m["\u0275\u0275listener"]("settingsChange",function(e){return t.settings=e}),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](72,"div",14),m["\u0275\u0275elementStart"](73,"div",37),m["\u0275\u0275elementStart"](74,"h5",16),m["\u0275\u0275elementStart"](75,"button",38),m["\u0275\u0275text"](76),m["\u0275\u0275pipe"](77,"translate"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementStart"](78,"div",39),m["\u0275\u0275elementStart"](79,"div",19),m["\u0275\u0275element"](80,"app-update"),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](81,is,9,4,"div",40),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275elementEnd"](),m["\u0275\u0275template"](82,ds,17,13,"ng-container",41)),2&e&&(m["\u0275\u0275property"]("ngClass",m["\u0275\u0275pureFunction1"](37,fs,t.innerWidth>600)),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("translate","buttons.reboot"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","buttons.shutdown"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","buttons.save"),m["\u0275\u0275advance"](2),m["\u0275\u0275property"]("translate","title"),m["\u0275\u0275advance"](3),m["\u0275\u0275property"]("ngIf",!t.isAccessPoint),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.isSettingsChanged),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.settingsSaved),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.settingsError),m["\u0275\u0275advance"](6),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](23,23,"settings.thingspeak.title")," "),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("settings",t.settings),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](32,25,"settings.internet.title")," "),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("wifi",t.settings.internet),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](41,27,"settings.sensors.title")," "),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("settings",t.settings),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](50,29,"settings.measurement.title")," "),m["\u0275\u0275advance"](9),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](59,31,"settings.offline.title")," "),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("settings",t.settings),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](68,33,"settings.log.title")," "),m["\u0275\u0275advance"](4),m["\u0275\u0275property"]("settings",t.settings),m["\u0275\u0275advance"](5),m["\u0275\u0275textInterpolate1"](" ",m["\u0275\u0275pipeBind1"](77,35,"settings.update.title")," "),m["\u0275\u0275advance"](5),m["\u0275\u0275property"]("ngIf",t.enableWittyPi),m["\u0275\u0275advance"](1),m["\u0275\u0275property"]("ngIf",t.modalEnabled))},directives:[b.j,Gi,b.l,$o,zo,Wa,tu,uu,hu,$u,Ju,b.m],pipes:[Ki],styles:[".myAlert-top[_ngcontent-%COMP%]{top:5px}.myAlert-bottom[_ngcontent-%COMP%], .myAlert-top[_ngcontent-%COMP%]{position:fixed;left:2%;width:96%;z-index:99}.myAlert-bottom[_ngcontent-%COMP%]{bottom:5px}"]}),ps)},{path:"**",redirectTo:"/"}],ms=((vs=function e(){g(this,e)}).\u0275mod=m["\u0275\u0275defineNgModule"]({type:vs,bootstrap:[eo]}),vs.\u0275inj=m["\u0275\u0275defineInjector"]({factory:function(e){return new(e||vs)},providers:[Ue],imports:[[X,Ue,qe.FormsModule,qe.ReactiveFormsModule,vi.CustomFormsModule,Qi.forRoot({loader:{provide:_i,useFactory:hs,deps:[Oe]}}),ni.forRoot(gs,{relativeLinkResolution:"legacy"})]]}),vs);Object(m.enableProdMode)(),Q().bootstrapModule(ms).catch(function(e){return console.log(e)})},zx2A:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return u}),n.d(t,"c",function(){return s});var r=n("7o/Q"),i=n("HDdC"),o=n("SeVD"),a=function(e){l(n,e);var t=d(n);function n(e){var r;return g(this,n),(r=t.call(this)).parent=e,r}return y(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(r.a),u=function(e){l(n,e);var t=d(n);function n(){return g(this,n),t.apply(this,arguments)}return y(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(r.a);function s(e,t){if(!t.closed)return e instanceof i.a?e.subscribe(t):Object(o.a)(e)(t)}}},[[0,0]]])}(); \ No newline at end of file